test_governance_gates_large_roadmap.py
python
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
2 days ago
| 1 | """Stress tests for governance gate scan on large roadmap tables.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | from pathlib import Path |
| 6 | |
| 7 | from adapters.config import load_config |
| 8 | from tests.support import FIXTURES |
| 9 | from tools.governance_gates import scan_governance_gates |
| 10 | |
| 11 | |
| 12 | def test_large_roadmap_scan_bounded(tmp_path: Path) -> None: |
| 13 | config = load_config(FIXTURES / "config-governance-gates.yaml") |
| 14 | docs = tmp_path / "docs" |
| 15 | docs.mkdir(parents=True) |
| 16 | rows = ["| Phase | Model | Status | Deliverable |", "| --- | --- | --- | --- |"] |
| 17 | for index in range(500): |
| 18 | rows.append( |
| 19 | f"| **K{index} slice** | Auto | **DONE** | shipped slice {index} |" |
| 20 | ) |
| 21 | rows.append("| **Active Auto** | Auto | **WIP** | `docs/archive/phases/PHASE-ACTIVE.md` pending |") |
| 22 | (docs / "ROADMAP.md").write_text("\n".join(rows) + "\n", encoding="utf-8") |
| 23 | (docs / "OVERSEER-HANDOVER.md").write_text( |
| 24 | "| **ID** | **Active Auto** |\n", |
| 25 | encoding="utf-8", |
| 26 | ) |
| 27 | (docs / "PHASE-ACTIVE.md").write_text("not frozen\n", encoding="utf-8") |
| 28 | |
| 29 | result = scan_governance_gates(config, tmp_path) |
| 30 | assert any(gate.phase_id == "Active Auto" for gate in result.pending) |
File History
2 commits
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
2 days ago
sha256:4671b7f787ddbe63ced31c895b688c77ab495653b65a730b423329f26b3c1439
feat: K1-P1 complete — agent provenance, build-verification…
Sonnet 4.6
patch
53 days ago