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 2860c6e1..9861ddf0 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index 6db532d0..18d5e4e5 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -660,4 +660,4 @@ current_status: - Service lifecycle receipt history is now event-only: `load_epiphany_cultmesh_daemon_service_lifecycle_receipts` filters out the `epiphany-local/daemon-service-lifecycle-receipt/latest` mirror, while `load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt` remains the latest-state reader. Focused unit test `service_lifecycle_receipt_history_excludes_latest_mirror` proves two per-receipt writes return exactly two history records and latest points at the second. Fresh smoke `verse-query-lifecycle-history-filter-smoke` and live overview/triage `local-20260618-145632-497-efac6f0d` / `local-20260618-145632-321-867947af` prove compact swarm sights still expose service lifecycle attention plus the present elevated runbook artifact without daemon pokes or service mutation. Do not use a broad unscoped cargo test filter for this check on Windows; it fans out across bin harnesses and hit a broken pipe during this pass. - `epiphany-verse-query seed-compact` is the compact seed receipt for wrappers and read-only rites. The older `seed` command still prints the full local Verse context for explicit debugging, but compact wrapper modes now avoid full `seed`/final `query` readback after the combined overview proof exposed Windows debug stack overflow from full-context serialization pressure. last_completed_repo_swarm_cut: Huginn live-fire has crossed the first real repo Body from Persona pressure to branch-local Hands commit and Soul/Mind closure, and now has repeatable closure and redacted-public-proof mouths. On `E:\Projects\Huginn` branch `epiphany/huginn/first-awakening`, `tools/epiphany_local_run.ps1 -Mode repo-persona-intake` accepted item `huginn-inspection-readback-livefire`, Weksa/Persona intake remained sealed, and `epiphany-work derive-plan` lowered it to model-authored safe family `repo.status_section` for `README.md` only. `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` advanced four bounded pulses: run-from-plan, adopt-from-plan, execute-from-plan, and close-from-execute. Huginn commit `e9b07c38fceabbdc89ea35c2156326c80c0393a2` updated only `README.md`; closure receipt `.epiphany\work\work-close-huginn-inspection-readback-livefire.json` records status `closed`, Soul verdict `passed`, Mind state commit `repo-work-close-huginn-inspection-readback-livefire-mind-commit`, safe family `repo.status_section`, path scope `README.md`, Bifrost publication gate, and `privateStateExposed=false`. Verification also ran Huginn's TypeScript compiler through concrete Node path: `C:\Program Files\nodejs\node.exe E:\Projects\Huginn\node_modules\typescript\bin\tsc -p tsconfig.json` passed. Native verifier `epiphany-repo-livefire-closure-smoke --workspace E:\Projects\Huginn --item huginn-inspection-readback-livefire --expected-path README.md --expected-family repo.status_section --expected-gate awaiting-publication --expected-blocker bifrost-publication-missing` checks closure receipt, Mind map entry, overview gate/blocker, authority seals, and `git show` changed paths, returning `status=ok`, `soulVerdict=passed`, `publicationGate=Bifrost`, and `privateStateExposed=false`. Wrapper `tools/epiphany_local_run.ps1 -Mode repo-livefire-closure -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exposes the same read-only proof through the local operator mouth; artifact `local-20260621-190156-803-2f85ba15` printed commit, path, gate, blocker, Soul verdict, Mind commit receipt, and `privateStateExposed=False` without push, merge, publication, or target mutation. New wrapper `tools/epiphany_local_run.ps1 -Mode repo-work-public-proof -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exports the redacted proof bundle and repo-local Verse index without publishing; artifact `local-20260621-190645-345-4555b1dc` wrote `.epiphany\public\proof-bundles\repo-work-public-proof-huginn-inspection-readback-livefire.json`, proof id `repo-work-public-proof-huginn-inspection-readback-livefire`, SHA-256 `857545b199f3e37eb06c2e757e5cfc201958e46667bb1f8403fd333a22620f63`, nine artifact rows, zero publication rows, and `privateStateExposed=False`. swarm overview readback `local-20260621-190701-140-b9519ec6` sees the `REPO-WORK-PUBLIC-PROOF` row and action row from Huginn's repo-local Verse with the same SHA-256 while Bifrost publication remains missing. Launcher compact modes are now named compact operator-context modes instead of read-only modes, and `bifrost-public-proof` summaries print item, target public Verse, room, proof SHA-256, review receipts, and credit receipts so publication receipts are auditable without claiming upstream sync. - next_action: Continue the beyond-closure composite-owner purge. Deployment and PR are split: Self routes, Bifrost gates publication, Hands performs PR actions, GitHub supplies provider receipts, and Idunn alone executes deployment. Remaining production findings include Maintainer/Bifrost artifact review, Bifrost/Maintainer metrics/accounting, Maintainer/Soul/Bifrost security/dependency policy, plus composite owner labels in epiphany-verse-query projections. Map and cut artifact acceptance next; keep closure's zero-substring invariant intact. + next_action: Continue the beyond-closure composite-owner purge. Deployment, PR, and artifact acceptance are split: Self routes; Bifrost gates publication/accounts; Hands performs PR action; GitHub supplies provider receipts; Idunn executes deployment; Maintainer decides artifact acceptance. Remaining production findings include Bifrost/Maintainer metrics/accounting, Maintainer/Soul/Bifrost security/dependency policy, plus composite owner labels in epiphany-verse-query projections. Map and cut metrics/accounting next; keep closure's zero-substring invariant intact.