Test Gate Governance
Path:
pi-cybernetic/phase0-gate-governance/scripts/test_gate_governance.pyRelative: phase0-gate-governance/scripts/test_gate_governance.pySubproject: pi-cyberneticCategory: testsLines: 238Bytes: 11,790Imports: 9Exports: 6has tests
Content Preview
- #!/usr/bin/env python3
- """test_gate_governance.py — N10 discipline applied to the governance system.
- Every enforcement layer ships with a positive fixture (rule MUST fire) and a
- negative fixture (rule MUST stay quiet). Builds a disposable sandbox gates
- tree + git repo; touches nothing outside the sandbox.
- Usage: test_gate_governance.py [--json] Exit: 0 all pass · 1 any failure.
- """
- from __future__ import annotations
- import argparse
- import json
- import os
- import shutil
- import subprocess
- im