Footer-block markers that templates and AI agents have historically emitted at the end of every artifact (sometimes twice). The aggregator already strips a curated set of trailing administrative blocks (see cleanArtifactBody); this function catches the intra-body duplicates โ when an ISMS / classification / GDPR provenance line appears two-or-more times in the same artifact body, only the first occurrence is kept.
A "footer block" is a single line (post-trim) that:
starts with the bold marker **ISMS โฆ, **Classified under โฆ, **GDPR โฆ, **Article-Generation contract**, **Hack23 ISMS**, **Provenance**, or
starts with the italic marker _Classified under โฆ or *Classified under โฆ.
Lines inside fenced code blocks are preserved verbatim. Subsequent occurrences of the exact same footer line are removed (along with a single trailing blank line so the surrounding paragraph spacing is preserved).
Footer-block markers that templates and AI agents have historically emitted at the end of every artifact (sometimes twice). The aggregator already strips a curated set of trailing administrative blocks (see cleanArtifactBody); this function catches the intra-body duplicates โ when an ISMS / classification / GDPR provenance line appears two-or-more times in the same artifact body, only the first occurrence is kept.
A "footer block" is a single line (post-trim) that:
**ISMS โฆ,**Classified under โฆ,**GDPR โฆ,**Article-Generation contract**,**Hack23 ISMS**,**Provenance**, or_Classified under โฆor*Classified under โฆ.Lines inside fenced code blocks are preserved verbatim. Subsequent occurrences of the exact same footer line are removed (along with a single trailing blank line so the surrounding paragraph spacing is preserved).