Test Gate Governance

Path: loom-builder-sol/scripts/test_gate_governance.pyRelative: scripts/test_gate_governance.pySubproject: loom-builder-solCategory: dispatch-scripts-sol
Lines: 238Bytes: 11,790Imports: 9Exports: 6has tests

Content Preview

  1. #!/usr/bin/env python3
  2. """test_gate_governance.py — N10 discipline applied to the governance system.
  3. Every enforcement layer ships with a positive fixture (rule MUST fire) and a
  4. negative fixture (rule MUST stay quiet). Builds a disposable sandbox gates
  5. tree + git repo; touches nothing outside the sandbox.
  6. Usage: test_gate_governance.py [--json] Exit: 0 all pass · 1 any failure.
  7. """
  8. from __future__ import annotations
  9. import argparse
  10. import json
  11. import os
  12. import shutil
  13. import subprocess
  14. im