Classify CTO failed workflow attempt as historical

This commit is contained in:
Svrnty
2026-06-18 11:44:26 -04:00
parent 817fcb528d
commit fd313768a5
3 changed files with 46 additions and 6 deletions
+37 -1
View File
@@ -99,6 +99,8 @@ REQUIRED_FILES = [
".sot/03-PROTOCOLS/CTO-FIRST-REAL-GOVERNED-WORKFLOW-PRD.md",
".sot/03-PROTOCOLS/CTO-FIRST-REAL-GOVERNED-WORKFLOW-ISSUES.md",
".sot/03-PROTOCOLS/CTO-FIRST-REAL-GOVERNED-WORKFLOW-APPROVAL-PACKET.md",
".sot/03-PROTOCOLS/CTO-FIRST-REAL-GOVERNED-WORKFLOW-EXECUTION-ATTEMPT.md",
".sot/03-PROTOCOLS/CTO-FIRST-REAL-GOVERNED-WORKFLOW-PASS-EVIDENCE.md",
".sot/03-PROTOCOLS/CTO-CASE-PROVIDER-ADMISSION-PRD.md",
".sot/03-PROTOCOLS/CTO-CASE-PROVIDER-ADMISSION-ISSUES.md",
".sot/03-PROTOCOLS/CTO-CASE-PROVIDER-BUILD-PRD.md",
@@ -231,6 +233,20 @@ REQUIRED_FIRST_REAL_WORKFLOW_APPROVAL_PACKET_PHRASES = [
"Runtime default activation remains false.",
]
REQUIRED_FIRST_REAL_WORKFLOW_ATTEMPT_PHRASES = [
"status: historical",
"Status: historical failed attempt.",
"Do not use this attempt to validate `CTO-WORK-049`.",
".sot/03-PROTOCOLS/CTO-FIRST-REAL-GOVERNED-WORKFLOW-PASS-EVIDENCE.md",
]
REQUIRED_FIRST_REAL_WORKFLOW_PASS_PHRASES = [
"status: validated",
"`CTO-WORK-049` is validated as the first real governed workflow execution.",
"Runtime default activation remains false.",
"This evidence does not promote CTO artifacts into Core",
]
REQUIRED_HERMES_WEBUI_CONTROL_PANEL_PHRASES = [
"Local planning SOT only. Not a Core Protocol. Not active Core authority.",
"Hermes WebUI consumer panel",
@@ -1997,6 +2013,26 @@ def main() -> int:
if "core_promotion_status: not-promoted" not in text:
errors.append("brief_missing_not_promoted_frontmatter")
first_real_workflow_attempt = ROOT / ".sot/03-PROTOCOLS/CTO-FIRST-REAL-GOVERNED-WORKFLOW-EXECUTION-ATTEMPT.md"
if first_real_workflow_attempt.is_file():
text = first_real_workflow_attempt.read_text(encoding="utf-8")
if "core_promotion_status: not-promoted" not in text:
errors.append("first_real_workflow_attempt_missing_not_promoted_frontmatter")
for phrase in REQUIRED_FIRST_REAL_WORKFLOW_ATTEMPT_PHRASES:
checked.append(f"first_real_workflow_attempt_phrase:{phrase}")
if phrase not in text:
errors.append(f"missing_first_real_workflow_attempt_phrase:{phrase}")
first_real_workflow_pass = ROOT / ".sot/03-PROTOCOLS/CTO-FIRST-REAL-GOVERNED-WORKFLOW-PASS-EVIDENCE.md"
if first_real_workflow_pass.is_file():
text = first_real_workflow_pass.read_text(encoding="utf-8")
if "core_promotion_status: not-promoted" not in text:
errors.append("first_real_workflow_pass_missing_not_promoted_frontmatter")
for phrase in REQUIRED_FIRST_REAL_WORKFLOW_PASS_PHRASES:
checked.append(f"first_real_workflow_pass_phrase:{phrase}")
if phrase not in text:
errors.append(f"missing_first_real_workflow_pass_phrase:{phrase}")
stage6_real_refresh_prd = ROOT / ".sot/03-PROTOCOLS/CTO-CASE-STAGE6-REAL-GOVERNED-REFRESH-PRD.md"
if stage6_real_refresh_prd.is_file():
text = stage6_real_refresh_prd.read_text(encoding="utf-8")
@@ -3192,7 +3228,7 @@ def main() -> int:
"CTO-WORK-048": "validated",
"CTO-WORK-049": "validated",
"CTO-WORK-050": "validated",
"CTO-WORK-051": "blocked",
"CTO-WORK-051": "historical",
"CTO-WORK-052": "validated",
"CTO-WORK-053": "validated",
"CTO-WORK-054": "validated",