Integration
Path:
pi-cybernetic/phase0-gate-governance/harness/INTEGRATION.mdRelative: phase0-gate-governance/harness/INTEGRATION.mdSubproject: pi-cyberneticCategory: documentationLines: 47Bytes: 2,089Imports: 0Exports: 0
Content Preview
- # gate-integrity.ts — Harness Integration (Layer 1, A13)
- This module is the **unroutable layer**. Wire it into the dispatch preflight
- so it runs before any model call, unconditionally — same slot as the token
- estimate print.
- ## Wiring (adapt to run.ts's actual structure)
- ```ts
- import { verifyGateRef, formatGateCheck } from "./gate-integrity";
- // in the preflight, after spec load, before executor spawn:
- if (typeof spec.gates === "string") {
- const check = verifyGateRef(join(repoRoot, "gates"