from pathlib import Path def test_v106_readme_matches_current_ui_contract(): readme = Path("README.md").read_text(encoding="utf-8") for text in [ "Center workspace", "Active Run", "Space Test", "Runs Explorer", "Run Stats", "traces/raw/", "traces/redacted/", "@spaces.GPU(duration=...)", ]: assert text in readme assert "Selected run details" not in readme def test_v106_docs_cover_security_and_production_readiness(): security = Path("docs/SECURITY.md").read_text(encoding="utf-8") public_preview = Path("docs/PUBLIC_PREVIEW.md").read_text(encoding="utf-8") architecture = Path("docs/ARCHITECTURE.md").read_text(encoding="utf-8") next_steps = Path("docs/NEXT_STEPS.md").read_text(encoding="utf-8") assert "Raw traces" in security or "traces/raw/" in security assert "redacted" in security.lower() assert "Billing dashboard" in security assert "controlled public-preview" in public_preview assert "GitHub gist" in architecture assert "Production smoke checklist" in next_steps