Gate Integrity

pi-cyberneticsourcetypescript
Path: pi-cybernetic/phase0-gate-governance/harness/gate-integrity.tsRelative: phase0-gate-governance/harness/gate-integrity.tsSubproject: pi-cyberneticCategory: other
Lines: 137Bytes: 5,182Imports: 3Exports: 4

Content Preview

  1. /**
  2. * gate-integrity.ts — Layer 1 runtime enforcement (A13 / N15 / N16).
  3. *
  4. * Verifies a spec's pinned gate reference against gates/MANIFEST.json before
  5. * any dispatch fires. This is the layer no agent can route around: hooks can
  6. * be skipped and commits can be bypassed, but a mutated pack cannot produce
  7. * a matching sha256.
  8. *
  9. * Ref format (loom-builder): "vX.Y.Z/scope", e.g. "v1.0.0/default".
  10. * The extends chain is walked from manifest entries, not pack files, so bare
  11. * extends values