Plan Hermes approval packet
This commit is contained in:
@@ -57,6 +57,8 @@ REQUIRED_FILES = [
|
||||
".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-STATE-PRD.md",
|
||||
".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-STATE-ISSUES.md",
|
||||
".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-STATE-EVIDENCE.md",
|
||||
".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-PACKET-PRD.md",
|
||||
".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-PACKET-ISSUES.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",
|
||||
@@ -241,6 +243,22 @@ REQUIRED_HERMES_APPROVAL_STATE_EVIDENCE_PHRASES = [
|
||||
"upstream `hermes-agent` edited: false",
|
||||
]
|
||||
|
||||
REQUIRED_HERMES_APPROVAL_PACKET_PHRASES = [
|
||||
"Local planning SOT only. Not a Core Protocol. Not active Core authority.",
|
||||
"JP approval packet",
|
||||
"copy/paste approval packet",
|
||||
"approval_packet",
|
||||
"approval_command_text",
|
||||
"required evidence paths",
|
||||
"allowed paths",
|
||||
"blocked actions",
|
||||
"Do not add executable approval buttons.",
|
||||
"Do not activate Case as default backend.",
|
||||
"Do not mutate target repositories.",
|
||||
"Harness-backed summary data remains the source of truth.",
|
||||
"Hermes prepares approval text; JP remains the approver.",
|
||||
]
|
||||
|
||||
REQUIRED_HERMES_REAL_REFRESH_CONTROL_REPLAY_EVIDENCE_PHRASES = [
|
||||
"Local planning SOT only. Not a Core Protocol. Not active Core authority.",
|
||||
"CTO-WORK-057",
|
||||
@@ -1324,6 +1342,26 @@ def main() -> int:
|
||||
if phrase not in text:
|
||||
errors.append(f"missing_hermes_approval_state_evidence_phrase:{phrase}")
|
||||
|
||||
hermes_approval_packet_prd = ROOT / ".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-PACKET-PRD.md"
|
||||
if hermes_approval_packet_prd.is_file():
|
||||
text = hermes_approval_packet_prd.read_text(encoding="utf-8")
|
||||
if "core_promotion_status: not-promoted" not in text:
|
||||
errors.append("hermes_approval_packet_prd_missing_not_promoted_frontmatter")
|
||||
for phrase in REQUIRED_HERMES_APPROVAL_PACKET_PHRASES:
|
||||
checked.append(f"hermes_approval_packet_prd_phrase:{phrase}")
|
||||
if phrase not in text:
|
||||
errors.append(f"missing_hermes_approval_packet_prd_phrase:{phrase}")
|
||||
|
||||
hermes_approval_packet_issues = ROOT / ".sot/03-PROTOCOLS/CTO-HERMES-APPROVAL-PACKET-ISSUES.md"
|
||||
if hermes_approval_packet_issues.is_file():
|
||||
text = hermes_approval_packet_issues.read_text(encoding="utf-8")
|
||||
if "core_promotion_status: not-promoted" not in text:
|
||||
errors.append("hermes_approval_packet_issues_missing_not_promoted_frontmatter")
|
||||
for phrase in ["CTO-WORK-064", "CTO-WORK-065", *REQUIRED_HERMES_APPROVAL_PACKET_PHRASES]:
|
||||
checked.append(f"hermes_approval_packet_issue_phrase:{phrase}")
|
||||
if phrase not in text:
|
||||
errors.append(f"missing_hermes_approval_packet_issue_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")
|
||||
@@ -1938,6 +1976,8 @@ def main() -> int:
|
||||
"CTO-WORK-061": "validated",
|
||||
"CTO-WORK-062": "validated",
|
||||
"CTO-WORK-063": "validated",
|
||||
"CTO-WORK-064": "validated",
|
||||
"CTO-WORK-065": "candidate",
|
||||
}
|
||||
for issue_id, expected in expected_statuses.items():
|
||||
checked.append(f"workboard_status:{issue_id}:{expected}")
|
||||
|
||||
Reference in New Issue
Block a user