From 09085d4c26c43d931783959349a364061e4b7fb6 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 13 Jul 2026 03:15:22 +0100 Subject: [PATCH] Prove maintainer approval seal semantics --- .../external_governance_tests.rs | 52 ++++++++++++++++++ ...onceptual-substitution-audit-2026-07-12.md | 3 + notes/fresh-workspace-handoff.md | 4 +- state/ledgers.msgpack | Bin 467474 -> 467765 bytes state/map.yaml | 2 +- 5 files changed, 58 insertions(+), 3 deletions(-) diff --git a/epiphany-core/src/bin/epiphany_work/closure_contracts/external_governance_tests.rs b/epiphany-core/src/bin/epiphany_work/closure_contracts/external_governance_tests.rs index e396ec2a..c0908842 100644 --- a/epiphany-core/src/bin/epiphany_work/closure_contracts/external_governance_tests.rs +++ b/epiphany-core/src/bin/epiphany_work/closure_contracts/external_governance_tests.rs @@ -372,4 +372,56 @@ bifrost_or_maintainer_authority_required = true let request = parse_repo_pr_request(text).expect("fixture is typed TOML"); assert!(!request.has_authority_seals()); } + + #[test] + fn maintainer_comment_cannot_counterfeit_approval_seal() { + let text = r#" +schema_version = "epiphany.repo_maintainer_review_request.v0" +safe_action_family = "repo.maintainer_review_request" +summary = "summary" +private_state_exposed = false +[request] +status = "awaiting-maintainer-review" +requested_owner = "Maintainer" +requested_effect = "review-redacted-proof-and-branch-diff" +verification_request_ref = "verification" +publication_request_ref = "publication" +[antecedents] +closure_review_required = true +soul_verdict_required = true +mind_commit_required = true +public_proof_required = true +bifrost_publication_request_required = true +[required_receipts] +closure_review = "epiphany.repo_work_closure_review.v0" +soul_verdict = "epiphany.soul.verification_verdict" +mind_commit = "epiphany.mind.state_commit_receipt" +public_proof = "epiphany.repo_work_public_proof_bundle.v0" +maintainer_review = "gamecult.maintainer.review_receipt.v0" +bifrost_publication = "gamecult.bifrost.public_proof_publication_receipt.v0" +[review_packet] +requires_reviewer_identity = true +requires_review_verdict = true +allowed_verdicts = ["approved", "changes-requested", "rejected", "needs-human-context"] +requires_changed_path_list = true +requires_public_proof_ref = true +requires_private_state_redaction_check = true +[authority] +branch_local_only = true +# maintainer_approval_authorized = false +maintainer_approval_authorized = true +merge_authorized = false +push_authorized = false +publication_authorized = false +upstream_sync_authorized = false +hands_action_authorized = false +service_lifecycle_authority = false +cross_body_mutation_authorized = false +private_verse_rummaging = false +human_or_maintainer_response_required = true +"#; + let request = parse_repo_maintainer_review_request(text) + .expect("fixture is typed TOML"); + assert!(!request.has_authority_seals()); + } } diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index dd00efe3..9b63d6a4 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -984,6 +984,9 @@ antecedent, receipt, allowed-verdict, review-packet, and authority semantics. Maintainer/human judgment remains the consequence owner; Soul, Mind, and Bifrost receipts remain prerequisites rather than approval substitutes. The class guard prevents substring fallback. +A malicious typed fixture proves commented +`maintainer_approval_authorized = false` cannot conceal an actual approval +grant. Twelve high-authority families are now typed; 582 substring assertions remain. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index e5525584..d55664ba 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -305,8 +305,8 @@ Current count: eleven typed high-authority families and 620 remaining closure substring assertions. Maintainer-review closure is now typed and class-guarded. Current count: twelve -typed high-authority families and 582 remaining substring assertions. Add the -explicit malicious maintainer-approval fixture next. +typed high-authority families and 582 remaining substring assertions. The +explicit malicious maintainer-approval fixture now passes as a negative proof. The latest structural count is 32 closure family branches, 744 remaining substring assertions in the closure region, and 1,284 lines in diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 49b9417843226026db8fb054a0a7da1c5dc48536..ea9dcbe157da65d0cf408ed0ee4330eb9c9119db 100644 GIT binary patch delta 143 zcmbPqL}u$TnGKSRT&7k=22sZt*p-AfD>D`{GA1@pWonN|~-G$F2