From 4dde747ee8541e0a738b8cdc1804c47156f54104 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 13 Jul 2026 04:34:29 +0100 Subject: [PATCH] Separate artifact acceptance and accounting --- epiphany-core/src/bin/epiphany-verse-query.rs | 8 ++++---- epiphany-core/src/bin/epiphany-work.rs | 5 ++++- .../closure_contracts/external_governance.rs | 10 ++++++++-- .../external_governance_tests.rs | 5 ++++- ...onceptual-substitution-audit-2026-07-12.md | 9 +++++++++ notes/epiphany-current-algorithmic-map.md | 1 + notes/fresh-workspace-handoff.md | 5 +++++ state/ledgers.msgpack | Bin 475862 -> 476221 bytes state/map.yaml | 2 +- 9 files changed, 36 insertions(+), 9 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 92b2ef0b..24a49cf8 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -1029,7 +1029,7 @@ fn run_cli() -> Result<()> { || args.source_agent_id.is_some() { anyhow::bail!( - "bifrost-artifact-acceptance inspects a pending repo request only; Maintainer/Bifrost owns artifact, proof, review, ledger, acceptance identity/status, and accepted-by result fields" + "bifrost-artifact-acceptance inspects a pending request only; Maintainer owns acceptance decisions and Bifrost owns accounting fields" ); } @@ -1061,7 +1061,7 @@ fn run_cli() -> Result<()> { "ledgerEntryId": null, "reviewReceiptIds": [], "acceptedBy": null, - "responseOwner": "Maintainer/Bifrost", + "responseOwner": "Maintainer", "commands": { "swarmOverview": WRAPPER_OVERVIEW_COMMAND, "bifrostArtifactAcceptance": WRAPPER_BIFROST_ARTIFACT_ACCEPTANCE_COMMAND, @@ -7785,7 +7785,7 @@ fn bifrost_ledger_report( &mut tui_rows, BifrostLedgerRow { document_kind: "artifact-acceptance-receipt".to_string(), - owner: "Maintainer/Bifrost".to_string(), + owner: "Maintainer".to_string(), id: receipt.receipt_id.clone(), status: receipt.status.clone(), route: receipt.bifrost_ledger_entry_id.clone(), @@ -8209,7 +8209,7 @@ fn push_artifact_acceptance_accounting_row( tui_rows, BifrostAccountingRow { lane: "artifact-acceptance-request".to_string(), - owner: "Maintainer/Bifrost".to_string(), + owner: "Bifrost".to_string(), status: bifrost_accounting_status( false, latest_request.is_some() || latest_receipt.is_some(), diff --git a/epiphany-core/src/bin/epiphany-work.rs b/epiphany-core/src/bin/epiphany-work.rs index 8c64b91c..4c07fd9e 100644 --- a/epiphany-core/src/bin/epiphany-work.rs +++ b/epiphany-core/src/bin/epiphany-work.rs @@ -4679,7 +4679,10 @@ fn derive_repo_artifact_acceptance_request_plan( "[request]".to_string(), format!("id = {}", toml_basic_string(&request_id)), "status = \"awaiting-artifact-acceptance-review\"".to_string(), - "requested_owner = \"Maintainer/Bifrost\"".to_string(), + "routing_owner = \"Self\"".to_string(), + "acceptance_owner = \"Maintainer\"".to_string(), + "accounting_owner = \"Bifrost\"".to_string(), + "acceptance_receipt_required = true".to_string(), "requested_effect = \"record-accepted-artifact-for-reviewed-branch-work\"".to_string(), format!( "verification_request_ref = {}", diff --git a/epiphany-core/src/bin/epiphany_work/closure_contracts/external_governance.rs b/epiphany-core/src/bin/epiphany_work/closure_contracts/external_governance.rs index 1773ccfa..06f962bc 100644 --- a/epiphany-core/src/bin/epiphany_work/closure_contracts/external_governance.rs +++ b/epiphany-core/src/bin/epiphany_work/closure_contracts/external_governance.rs @@ -260,7 +260,10 @@ impl RepoArtifactAcceptanceRequest { pub(super) fn awaits_owned_review(&self) -> bool { let r = &self.request; r.status == "awaiting-artifact-acceptance-review" - && r.requested_owner == "Maintainer/Bifrost" + && r.routing_owner == "Self" + && r.acceptance_owner == "Maintainer" + && r.accounting_owner == "Bifrost" + && r.acceptance_receipt_required && r.requested_effect == "record-accepted-artifact-for-reviewed-branch-work" && !r.verification_request_ref.is_empty() && !r.maintainer_review_request_ref.is_empty() @@ -319,7 +322,10 @@ impl RepoArtifactAcceptanceRequest { #[derive(Debug, Deserialize)] struct RepoArtifactAcceptanceRequestBody { status: String, - requested_owner: String, + routing_owner: String, + acceptance_owner: String, + accounting_owner: String, + acceptance_receipt_required: bool, requested_effect: String, verification_request_ref: String, maintainer_review_request_ref: String, 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 83cdbbe2..847c5d96 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 @@ -144,7 +144,10 @@ summary = "summary" private_state_exposed = false [request] status = "awaiting-artifact-acceptance-review" -requested_owner = "Maintainer/Bifrost" +routing_owner = "Self" +acceptance_owner = "Maintainer" +accounting_owner = "Bifrost" +acceptance_receipt_required = true requested_effect = "record-accepted-artifact-for-reviewed-branch-work" verification_request_ref = "verification" maintainer_review_request_ref = "review" diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index ac81666c..ec75bc72 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -1280,6 +1280,15 @@ and GitHub provider outcome. GitHub-authored PR receipts are labeled GitHub; they do not make the provider a publication-policy organ. The request requires the provider receipt rather than treating provider identity as participation. +## Bifrost accounting as Maintainer artifact acceptance + +`repo.artifact_acceptance_request` named `Maintainer/Bifrost` as one owner, +letting review decision and accounting custody blur together. The request now +assigns Self routing, Maintainer acceptance, and Bifrost accounting separately, +with an explicit acceptance-receipt requirement. Operator projections label +artifact-acceptance receipts Maintainer-owned and the accounting lane +Bifrost-owned. + The same inspection found 33 consecutive duplicate `#[cfg(test)]` attributes on provider constructors/writers and their re-exports. One gate already makes each item test-only; the second owned nothing. The duplicates are removed. diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 4409ddcf..b1333dac 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -60,6 +60,7 @@ - Closure has no substring authority. Worklog, planning/checklist notes, managed/status sections, and task cards are explicitly presentation-only; closure relies on committed target/path/blob evidence instead of treating formatting text as Soul truth. - Deployment requests split Self routing from independent Maintainer/Soul/Mind/Bifrost review and Idunn-only execution. Maintainer review cannot impersonate Idunn deployment; only Idunn deployment and aftercare receipts prove outcomes. - PR requests split Self routing, Bifrost publication gating, Hands execution, and GitHub provider outcomes. GitHub receipt authorship does not grant publication-policy authority. +- Artifact acceptance requests split Self routing, Maintainer acceptance decisions, and Bifrost accounting. Acceptance receipts and accounting ledger rows no longer claim one composite owner. - `repo.planning_brief` is deleted. It contained no candidate work-item records and let copied global catalog/schema/closure constants self-attest as per-item planning and readiness evidence. The live preparation chain is consensus draft -> interpretation request -> objective draft -> Mind adoption. - There is no aggregate repo-swarm MVP gate. The former smoke manually aggregated fixture summaries into green rows and `demoReady=true`; it and its wrapper are deleted. Whole-organism readiness requires a live-fire path whose claimed consequences are observed at their owning boundaries. - Persona owner: `collaboration-feedback` writes public, bounded feedback only after that provider receipt exists. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 327ede27..fc9bf79b 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -447,4 +447,9 @@ next consequence-bearing request and require a named owner. ## Verification baseline +Artifact acceptance is split: Self routes, Maintainer decides acceptance, +Bifrost records accounting, and the typed request requires the acceptance +receipt. Operator receipt and accounting rows report those separate owners. +Nine external-governance fixtures, 259 library tests, and all binaries pass. + The last completed code pass had 259 library tests passing and all binaries compiling. Re-run focused checks for the next touched surface; use the full library/binary baseline before committing a new architectural cut. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 2860c6e183271140f7c959984597a993954770d1..9861ddf01acf12c9e399b5ec16d42f5cac68e1d9 100644 GIT binary patch delta 292 zcmccCD!aEsc7r4%mx+~;Mbt3{c4w*0%8Z4KjAhMJncAl^F#<7&W(HywAZ7((w(V1y z*c~0F2Qahqu^C$#1GP?G_)%KQJh&hyvqT}Ws3bEjF&W56PEIW-Nz6-5oxaqOUAf*j zF*C0Oh*OIcQc{yMQ&NkOl;|ipWu_J77ndmHm*;^c@=NndGV{`P6cY1NkQ6Eur6#9l z7L+Jt76X}urI|&kDS8V21*t`eCHX}_q2hx4yy8@Sn6je$a-eZVsR~92`*neKq^4Md YOoiH_kdv5~3NjMv3W$p7Jx=Ui0PjR*EdT%j delta 60 zcmdnnA$zS=c7r4%mw}bBWz;bScE`<|l^F{e8B3d|GPO@-VgzCk%?!jWK+FonY}=