Record governed execution request
This commit is contained in:
@@ -60,6 +60,9 @@ REQUIRED_FILES = [
|
||||
".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-PACKET-PRD.md",
|
||||
".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-PACKET-ISSUES.md",
|
||||
".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-PACKET-EVIDENCE.md",
|
||||
".sot/03-PROTOCOLS/CTO-GOVERNED-EXECUTION-REQUEST-PRD.md",
|
||||
".sot/03-PROTOCOLS/CTO-GOVERNED-EXECUTION-REQUEST-ISSUES.md",
|
||||
".sot/03-PROTOCOLS/CTO-GOVERNED-EXECUTION-REQUEST-RECORD.md",
|
||||
".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",
|
||||
@@ -278,6 +281,23 @@ REQUIRED_HERMES_APPROVAL_PACKET_EVIDENCE_PHRASES = [
|
||||
"Hermes prepares approval text; JP remains the approver.",
|
||||
]
|
||||
|
||||
REQUIRED_GOVERNED_EXECUTION_REQUEST_PHRASES = [
|
||||
"Local planning SOT only. Not a Core Protocol. Not active Core authority.",
|
||||
"governed execution request",
|
||||
"non-mutating execution request record",
|
||||
"exact approval packet",
|
||||
"admitted target repository",
|
||||
"allowed paths",
|
||||
"Harness command",
|
||||
"approval_granted: false",
|
||||
"execution_allowed: false",
|
||||
"Do not execute Case.",
|
||||
"Do not activate Case as default backend.",
|
||||
"Do not mutate target repositories.",
|
||||
"Runtime default activation remains false.",
|
||||
"JP approval is still required before execution.",
|
||||
]
|
||||
|
||||
REQUIRED_HERMES_REAL_REFRESH_CONTROL_REPLAY_EVIDENCE_PHRASES = [
|
||||
"Local planning SOT only. Not a Core Protocol. Not active Core authority.",
|
||||
"CTO-WORK-057",
|
||||
@@ -1391,6 +1411,43 @@ def main() -> int:
|
||||
if phrase not in text:
|
||||
errors.append(f"missing_hermes_approval_packet_evidence_phrase:{phrase}")
|
||||
|
||||
governed_execution_request_prd = ROOT / ".sot/03-PROTOCOLS/CTO-GOVERNED-EXECUTION-REQUEST-PRD.md"
|
||||
if governed_execution_request_prd.is_file():
|
||||
text = governed_execution_request_prd.read_text(encoding="utf-8")
|
||||
if "core_promotion_status: not-promoted" not in text:
|
||||
errors.append("governed_execution_request_prd_missing_not_promoted_frontmatter")
|
||||
for phrase in REQUIRED_GOVERNED_EXECUTION_REQUEST_PHRASES:
|
||||
checked.append(f"governed_execution_request_prd_phrase:{phrase}")
|
||||
if phrase not in text:
|
||||
errors.append(f"missing_governed_execution_request_prd_phrase:{phrase}")
|
||||
|
||||
governed_execution_request_issues = ROOT / ".sot/03-PROTOCOLS/CTO-GOVERNED-EXECUTION-REQUEST-ISSUES.md"
|
||||
if governed_execution_request_issues.is_file():
|
||||
text = governed_execution_request_issues.read_text(encoding="utf-8")
|
||||
if "core_promotion_status: not-promoted" not in text:
|
||||
errors.append("governed_execution_request_issues_missing_not_promoted_frontmatter")
|
||||
for phrase in ["CTO-WORK-066", "CTO-WORK-067", *REQUIRED_GOVERNED_EXECUTION_REQUEST_PHRASES]:
|
||||
checked.append(f"governed_execution_request_issue_phrase:{phrase}")
|
||||
if phrase not in text:
|
||||
errors.append(f"missing_governed_execution_request_issue_phrase:{phrase}")
|
||||
|
||||
governed_execution_request_record = ROOT / ".sot/03-PROTOCOLS/CTO-GOVERNED-EXECUTION-REQUEST-RECORD.md"
|
||||
if governed_execution_request_record.is_file():
|
||||
text = governed_execution_request_record.read_text(encoding="utf-8")
|
||||
if "core_promotion_status: not-promoted" not in text:
|
||||
errors.append("governed_execution_request_record_missing_not_promoted_frontmatter")
|
||||
for phrase in [
|
||||
"CTO-WORK-067",
|
||||
"/home/svrnty/workspaces/cortex-os/cto-stage5-target-sandbox",
|
||||
"src/strings.py",
|
||||
"test_strings.py",
|
||||
"python3 -m pytest -q",
|
||||
*REQUIRED_GOVERNED_EXECUTION_REQUEST_PHRASES,
|
||||
]:
|
||||
checked.append(f"governed_execution_request_record_phrase:{phrase}")
|
||||
if phrase not in text:
|
||||
errors.append(f"missing_governed_execution_request_record_phrase:{phrase}")
|
||||
|
||||
hermes_real_refresh_control_replay_evidence = ROOT / ".sot/03-PROTOCOLS/CTO-HERMES-REAL-REFRESH-CONTROL-REPLAY-EVIDENCE.md"
|
||||
if hermes_real_refresh_control_replay_evidence.is_file():
|
||||
text = hermes_real_refresh_control_replay_evidence.read_text(encoding="utf-8")
|
||||
@@ -2007,6 +2064,8 @@ def main() -> int:
|
||||
"CTO-WORK-063": "validated",
|
||||
"CTO-WORK-064": "validated",
|
||||
"CTO-WORK-065": "validated",
|
||||
"CTO-WORK-066": "validated",
|
||||
"CTO-WORK-067": "validated",
|
||||
}
|
||||
for issue_id, expected in expected_statuses.items():
|
||||
checked.append(f"workboard_status:{issue_id}:{expected}")
|
||||
|
||||
Reference in New Issue
Block a user