Integration

pi-cyberneticdocmarkdown
Path: pi-cybernetic/phase0-gate-governance/harness/INTEGRATION.mdRelative: phase0-gate-governance/harness/INTEGRATION.mdSubproject: pi-cyberneticCategory: documentation
Lines: 47Bytes: 2,089Imports: 0Exports: 0

Content Preview

  1. # gate-integrity.ts — Harness Integration (Layer 1, A13)
  2. This module is the **unroutable layer**. Wire it into the dispatch preflight
  3. so it runs before any model call, unconditionally — same slot as the token
  4. estimate print.
  5. ## Wiring (adapt to run.ts's actual structure)
  6. ```ts
  7. import { verifyGateRef, formatGateCheck } from "./gate-integrity";
  8. // in the preflight, after spec load, before executor spawn:
  9. if (typeof spec.gates === "string") {
  10. const check = verifyGateRef(join(repoRoot, "gates"