47 lines
1.3 KiB
Python
47 lines
1.3 KiB
Python
from pathlib import Path
|
|
|
|
|
|
REPORT = Path("reports/evaluations/2026-04-15-phase-4-sovereignty-audit.md")
|
|
README = Path("timmy-local/README.md")
|
|
|
|
|
|
def _report() -> str:
|
|
return REPORT.read_text()
|
|
|
|
|
|
def _readme() -> str:
|
|
return README.read_text()
|
|
|
|
|
|
def test_phase4_audit_report_exists() -> None:
|
|
assert REPORT.exists()
|
|
|
|
|
|
def test_phase4_audit_report_has_required_sections() -> None:
|
|
content = _report()
|
|
assert "# Phase 4 Sovereignty Audit" in content
|
|
assert "## Phase Definition" in content
|
|
assert "## Current Repo Evidence" in content
|
|
assert "## Contradictions and Drift" in content
|
|
assert "## Verdict" in content
|
|
assert "## Highest-Leverage Next Actions" in content
|
|
assert "## Definition of Done" in content
|
|
|
|
|
|
def test_phase4_audit_captures_key_repo_findings() -> None:
|
|
content = _report()
|
|
assert "#551" in content
|
|
assert "0.7%" in content
|
|
assert "400 cloud" in content
|
|
assert "openai-codex" in content
|
|
assert "GROQ_API_KEY" in content
|
|
assert "143.198.27.163" in content
|
|
assert "not yet reached" in content.lower()
|
|
|
|
|
|
def test_timmy_local_readme_is_honest_about_phase4_status() -> None:
|
|
content = _readme()
|
|
assert "Phase 4" in content
|
|
assert "zero-cloud sovereignty is not yet complete" in content
|
|
assert "no cloud dependencies for core functionality" not in content
|