All files / scripts/agentic/gate-checks family-c-structure.ts

100% Statements 8/8
100% Branches 0/0
100% Functions 1/1
100% Lines 8/8

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 32 33 34 35 36 37                                                  5x   5x 5x 5x 5x 5x 5x   5x    
/**
 * @module scripts/agentic/gate-checks/family-c-structure
 * @description Check 7 — Aggregator for Family C structural requirements
 *              (executive-brief, intelligence-assessment, scenario-analysis,
 *              devils-advocate, methodology-reflection, comparative-international).
 *
 * @see .github/prompts/05-analysis-gate.md §Check 7
 * @author Hack23 AB
 * @license Apache-2.0
 */
 
import { checkComparativeInternational } from './comparative-international.js';
import { checkDevilsAdvocate } from './devils-advocate.js';
import { checkExecutiveBrief } from './executive-brief.js';
import { checkIntelligenceAssessment } from './intelligence-assessment.js';
import { checkMethodologyReflection } from './methodology-reflection.js';
import { checkScenarioAnalysis } from './scenario-analysis.js';
import type { GateCheckResult } from '../gate-shared/types.js';
 
/**
 * Validate Family C structural requirements.
 */
export async function checkFamilyCStructure(
  analysisDir: string,
): Promise<GateCheckResult[]> {
  const results: GateCheckResult[] = [];
 
  results.push(...(await checkExecutiveBrief(analysisDir)));
  results.push(...(await checkIntelligenceAssessment(analysisDir)));
  results.push(...(await checkScenarioAnalysis(analysisDir)));
  results.push(...(await checkDevilsAdvocate(analysisDir)));
  results.push(...(await checkMethodologyReflection(analysisDir)));
  results.push(...(await checkComparativeInternational(analysisDir)));
 
  return results;
}