Materialize CTO Legacy Ingest overview

This commit is contained in:
Svrnty
2026-06-16 10:53:08 -04:00
parent a32a996e69
commit 1c3fb4f718
5 changed files with 132 additions and 0 deletions
+27
View File
@@ -15,6 +15,7 @@ REQUIRED_FILES = [
"README.md",
"WORKBOARD.yaml",
"CONTEXT.md",
"docs/LEGACY-INGEST.md",
".sot/00-START/CTO-WORKSPACE-INTENT.md",
".sot/03-PROTOCOLS/CTO-CASE-BACKEND-BRIEF.md",
".sot/03-PROTOCOLS/CTO-ARCHITECTURE-BRIEF-CLOSEOUT-PRD.md",
@@ -136,6 +137,21 @@ REQUIRED_BRIEF_PHRASES = [
"Runtime default activation remains false until a later governed route changes it.",
]
REQUIRED_LEGACY_INGEST_PHRASES = [
"Local planning only. Not Core authority.",
"Source: CTO-WORK-097.",
"Legacy Ingest captures intention; it does not import implementation mass.",
"Cortex governs.",
"Hermes controls.",
"CTO routes.",
"Case executes.",
"Harness proves.",
"Core promotes only through SOT route.",
"Source Clusters Assessed By Intention",
"Do not activate Case as default backend.",
"Do not mutate target repositories.",
]
REQUIRED_ARCHITECTURE_CLOSEOUT_PRD_PHRASES = [
"Local planning SOT only. Not a Core Protocol. Not active Core authority.",
"`CTO-WORK-001` remains `candidate`",
@@ -1780,6 +1796,14 @@ def main() -> int:
if not path.is_file():
errors.append(f"missing_required_file:{rel}")
legacy_ingest = ROOT / "docs/LEGACY-INGEST.md"
if legacy_ingest.is_file():
text = legacy_ingest.read_text(encoding="utf-8")
for phrase in REQUIRED_LEGACY_INGEST_PHRASES:
checked.append(f"legacy_ingest_phrase:{phrase}")
if phrase not in text:
errors.append(f"missing_legacy_ingest_phrase:{phrase}")
brief = ROOT / ".sot/03-PROTOCOLS/CTO-CASE-BACKEND-BRIEF.md"
if brief.is_file():
text = brief.read_text(encoding="utf-8")
@@ -3069,6 +3093,7 @@ def main() -> int:
"CTO-WORK-094": "validated",
"CTO-WORK-095": "validated",
"CTO-WORK-096": "validated",
"CTO-WORK-097": "validated",
}
for issue_id, expected in expected_statuses.items():
checked.append(f"workboard_status:{issue_id}:{expected}")
@@ -3169,6 +3194,8 @@ def main() -> int:
errors.append("workboard_missing_codex_retention_policy_source")
if "CTO-CODEX-RETENTION-ARCHIVE-EXECUTOR-PACKET.md" not in text:
errors.append("workboard_missing_codex_retention_archive_source")
if "docs/LEGACY-INGEST.md" not in text:
errors.append("workboard_missing_legacy_ingest_source")
payload = {
"ok": not errors,