Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 5x 5x 5x 5x | /**
* @module scripts/agentic/gate-checks/evidence-citations
* @description Check 4 — Aggregator that fans out to the SWOT and
* significance-scoring evidence checks.
*
* @see .github/prompts/05-analysis-gate.md §Check 4
* @author Hack23 AB
* @license Apache-2.0
*/
import { checkSwotEvidence } from './swot-evidence.js';
import { checkSignificanceScoringEvidence } from './significance-scoring.js';
import type { GateCheckResult } from '../gate-shared/types.js';
/**
* Verify that swot-analysis.md and significance-scoring.md contain
* primary-source evidence (a dok_id or recognised URL host) in each
* bullet/table row. Mirrors the awk-based gate in `05-analysis-gate.md`
* (check 4).
*/
export async function checkEvidenceCitations(
analysisDir: string,
): Promise<GateCheckResult[]> {
const results: GateCheckResult[] = [];
results.push(...(await checkSwotEvidence(analysisDir)));
results.push(...(await checkSignificanceScoringEvidence(analysisDir)));
return results;
}
|