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.
Description
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.jsonlisting every artifact underfiles.*.Exit codes:
--min-lines(default 30), no placeholder markers, manifest lists every on-disk artifact.--analysis-dir, unreadable directory, invalidmanifest.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=