Gate Analyzer
Path:
loom-builder/src/gate-analyzer.tsRelative: src/gate-analyzer.tsSubproject: loom-builderCategory: dispatch-systemLines: 573Bytes: 18,277Imports: 6Exports: 7
Content Preview
- /**
- * gate-analyzer — preflight gate complexity review.
- *
- * Runs on EVERY dispatch after spec lint, before the executor launches.
- * Two layers:
- * Layer A — deterministic heuristics (pure code, no LLM)
- * Layer B — LLM review (cheap model, read-only analysis)
- *
- * Design: always on (no config flag), like the artifact contract and escalation loop.
- */
- import { readFileSync } from "node:fs";
- import { join } from "node:path";
- import type { DispatchSpec, ValidationCmd, GateAnalysisFinding,