EU Parliament Monitor โ€” API Documentation - v0.8.36
    Preparing search index...

    Module Utils/ValidateAnalysisCompleteness

    Pre-article-generation blocking gate that enforces analysis/methodologies/ai-driven-analysis-guide.md ยงReference-Quality Depth Requirements and Rule 19 (Mandatory Pre-Flight Analysis Reading).

    This validator is the hard precondition that agentic news workflows MUST pass before invoking any article generator. It verifies that the analysis run directory contains the mandatory intelligence artifacts with sufficient depth, no placeholder markers, and a well-formed manifest.json listing every artifact under files.*.

    Exit codes:

    • 0 โ€” all mandatory artifacts present, each โ‰ฅ --min-lines (default 30), no placeholder markers, manifest lists every on-disk artifact.
    • 1 โ€” one or more mandatory artifacts missing, too short, contain placeholder markers, or manifest omits an on-disk artifact.
    • 2 โ€” usage error (missing --analysis-dir, unreadable directory, invalid manifest.json, etc.).

    Usage: npx tsx src/utils/validate-analysis-completeness.ts --analysis-dir=analysis/daily/2026-04-18/breaking-run184 npx tsx src/utils/validate-analysis-completeness.ts --analysis-dir=

    --article-type=week-in-review npx tsx src/utils/validate-analysis-completeness.ts --analysis-dir= --json