EU Parliament Monitor — API Documentation - v0.8.40
    Preparing search index...
    • Scan rendered HTML for AI-First fallback-template leaks.

      This enforces the Analysis-to-Article Data Contract at publish time: the AI agent must have authored every stakeholder / outcome / impact slot by reading the run's analysis markdown as context. If any FALLBACK_TEMPLATE_PATTERNS pattern matches, the AI did not do its job and publication must fail.

      The HTML is whitespace-normalised (all runs of whitespace collapsed to a single space) before scanning so that sentence-level patterns still match across HTML reflow and newline boundaries.

      Parameters

      • html: string

        Full HTML document or .article-content fragment.

      Returns readonly FallbackLeak[]

      Array of leak records (empty when clean).