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

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

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                                        5x   5x 5x   5x    
/**
 * @module scripts/agentic/gate-checks/family-d-structure
 * @description Check 8 — Aggregator for Family D structural requirements
 *              (forward-indicators, coalition-mathematics).
 *
 * @see .github/prompts/05-analysis-gate.md §Check 8
 * @author Hack23 AB
 * @license Apache-2.0
 */
 
import { checkCoalitionMathematics } from './coalition-mathematics.js';
import { checkForwardIndicators } from './forward-indicators.js';
import type { GateCheckResult } from '../gate-shared/types.js';
 
/**
 * Validate Family D structural requirements.
 */
export async function checkFamilyDStructure(
  analysisDir: string,
): Promise<GateCheckResult[]> {
  const results: GateCheckResult[] = [];
 
  results.push(...(await checkForwardIndicators(analysisDir)));
  results.push(...(await checkCoalitionMathematics(analysisDir)));
 
  return results;
}