Spec Lint Gates

loom-builder-solsourcepython
Path: loom-builder-sol/scripts/spec_lint_gates.pyRelative: scripts/spec_lint_gates.pySubproject: loom-builder-solCategory: dispatch-scripts-sol
Lines: 149Bytes: 6,453Imports: 7Exports: 4

Content Preview

  1. #!/usr/bin/env python3
  2. """spec_lint_gates.py — lint dispatch specs for gate governance (N16 + fidelity).
  3. Checks, per spec file:
  4. PIN spec's "gates" field matches ^v\\d+\\.\\d+\\.\\d+\\/[a-z0-9-]+$ AND
  5. resolves through the manifest (full extends chain, hash-verified).
  6. Violation = FAIL.
  7. FIDELITY the effective validation set must contain >=1 PRESENCE assertion.
  8. 100% absence-checks = FAIL (would have caught the 96%-content-loss
  9. gaming before