test_governance_gates_bounded.py python
27 lines 959 B
Raw
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 12 hours ago
1 """Performance bounds for governance gate scan."""
2
3 from __future__ import annotations
4
5 import time
6 from pathlib import Path
7
8 from adapters.config import load_config
9 from tests.support import FIXTURES
10 from tools.governance_gates import scan_governance_gates
11
12
13 def test_gate_scan_completes_within_bound(tmp_path: Path) -> None:
14 config = load_config(FIXTURES / "config-governance-gates.yaml")
15 docs = tmp_path / "docs"
16 docs.mkdir(parents=True)
17 rows = ["| Phase | Model | Status | Deliverable |", "| --- | --- | --- | --- |"]
18 rows.extend(
19 f"| **K{index}** | Auto | **WIP** | slice {index} |" for index in range(100)
20 )
21 (docs / "ROADMAP.md").write_text("\n".join(rows) + "\n", encoding="utf-8")
22 (docs / "OVERSEER-HANDOVER.md").write_text("| **ID** | **K0** |\n", encoding="utf-8")
23
24 start = time.perf_counter()
25 scan_governance_gates(config, tmp_path)
26 elapsed = time.perf_counter() - start
27 assert elapsed < 1.0
File History 2 commits
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 12 hours ago
sha256:4671b7f787ddbe63ced31c895b688c77ab495653b65a730b423329f26b3c1439 feat: K1-P1 complete — agent provenance, build-verification… Sonnet 4.6 patch 52 days ago