From bd60a4f41ce6847277851cc1ba9fddd4dc53ab11 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 2 Jun 2026 14:36:40 +0100 Subject: [PATCH] Require full Hands action proof chain --- epiphany-core/src/organ_dependencies.rs | 24 ++++++++++++++++++++++-- notes/fresh-workspace-handoff.md | 2 +- notes/hands-cultnet-contracts.md | 2 ++ notes/perfect-machine-audit-roadmap.md | 7 +++++-- state/ledgers.msgpack | Bin 174607 -> 174889 bytes state/map.yaml | 2 +- 6 files changed, 31 insertions(+), 6 deletions(-) diff --git a/epiphany-core/src/organ_dependencies.rs b/epiphany-core/src/organ_dependencies.rs index 9cccd20a..88e561e5 100644 --- a/epiphany-core/src/organ_dependencies.rs +++ b/epiphany-core/src/organ_dependencies.rs @@ -6,8 +6,8 @@ use crate::continuity_gateway::{ }; use crate::eyes_gateway::{EYES_EVIDENCE_PACKET_TYPE, EYES_EVIDENCE_REFUSAL_RECEIPT_TYPE}; use crate::hands_gateway::{ - HANDS_ACTION_REFUSAL_RECEIPT_TYPE, HANDS_COMMIT_RECEIPT_TYPE, HANDS_PATCH_RECEIPT_TYPE, - HANDS_ROLLBACK_RECEIPT_TYPE, + HANDS_ACTION_INTENT_TYPE, HANDS_ACTION_REFUSAL_RECEIPT_TYPE, HANDS_ACTION_REVIEW_TYPE, + HANDS_COMMIT_RECEIPT_TYPE, HANDS_PATCH_RECEIPT_TYPE, HANDS_ROLLBACK_RECEIPT_TYPE, }; use crate::mind_gateway::{ MIND_GATEWAY_REVIEW_TYPE, MIND_STATE_COMMIT_RECEIPT_TYPE, MIND_STATE_REJECTION_RECEIPT_TYPE, @@ -159,6 +159,8 @@ pub fn default_receipt_proof_profiles() -> Vec { owner_organ: "hands".to_string(), required_before_promotion_document_types: vec![ SUBSTRATE_GATE_REPO_ACCESS_GRANT_RECEIPT_TYPE.to_string(), + HANDS_ACTION_INTENT_TYPE.to_string(), + HANDS_ACTION_REVIEW_TYPE.to_string(), HANDS_PATCH_RECEIPT_TYPE.to_string(), SOUL_VERDICT_RECEIPT_TYPE.to_string(), MIND_GATEWAY_REVIEW_TYPE.to_string(), @@ -219,6 +221,8 @@ pub fn default_launch_required_receipts() -> Vec { SUBSTRATE_GATE_REPO_MUTATION_RECEIPT_TYPE, EYES_EVIDENCE_PACKET_TYPE, EYES_EVIDENCE_REFUSAL_RECEIPT_TYPE, + HANDS_ACTION_INTENT_TYPE, + HANDS_ACTION_REVIEW_TYPE, HANDS_PATCH_RECEIPT_TYPE, HANDS_COMMIT_RECEIPT_TYPE, HANDS_ROLLBACK_RECEIPT_TYPE, @@ -400,6 +404,16 @@ mod tests { .required_receipt_document_types .contains(&SOUL_VERDICT_RECEIPT_TYPE.to_string()) ); + assert!( + contract + .required_receipt_document_types + .contains(&HANDS_ACTION_INTENT_TYPE.to_string()) + ); + assert!( + contract + .required_receipt_document_types + .contains(&HANDS_ACTION_REVIEW_TYPE.to_string()) + ); assert!(contract.receipt_proof_profiles.iter().any(|profile| { profile.effect_kind == EpiphanyReceiptEffectKind::StateAdmission && profile @@ -411,6 +425,12 @@ mod tests { })); assert!(contract.receipt_proof_profiles.iter().any(|profile| { profile.effect_kind == EpiphanyReceiptEffectKind::RepoAction + && profile + .required_before_promotion_document_types + .contains(&HANDS_ACTION_INTENT_TYPE.to_string()) + && profile + .required_before_promotion_document_types + .contains(&HANDS_ACTION_REVIEW_TYPE.to_string()) && profile .required_before_promotion_document_types .contains(&HANDS_PATCH_RECEIPT_TYPE.to_string()) diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 4e253744..3c41e187 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -51,7 +51,7 @@ remembers doctrine; the branch remembers the blade. - CultMesh is now the preferred Rust abstraction for that local store work. The compile-time Rust substrate is repo-contained: `vendor/cultcache-rs`, `vendor/cultnet-rs`, and `vendor/cultmesh-rs`. The old `E:\Projects\CultLib\crates\*` dependency body is dead in this checkout and must not be revived by accident. Vendored CultCache reads/writes `cultcache.store.v1`, so `state/ledgers.msgpack` and `epiphany-state status` are aligned again. The first integrations are deliberately small: status, Verse policy, global room policy, organ contract policy, native operator status, native operator snapshots, and local operator run intent/receipt round-trip through CultMesh. `notes/epiphany-verse-architecture.md` now names the local Verse/Odin/Yggdrasil architecture: Odin sees advertised Verse metadata without bypassing boundaries, Yggdrasil hosts important trusted GameCult Verses such as Bifrost, and prompt assembly should query compact local Verse plus semantic memory packets instead of carrying the whole archive. Role/reorient launch documents now have optional `dynamicPromptContext`; runtime prompt assembly consumes that field into worker instructions, `epiphany-prompt-context-smoke` proves a rendered Verse/memory packet is preserved on a role launch document, live bridge role/reorient launches now feed local Verse plus memory graph context from sibling `local-verse.ccmp` and `memory-graph.msgpack` stores beside runtime-spine, and the bridge launch-context test proves the packet survives into a persisted runtime-spine worker launch request. The memory graph refreshes from current typed thread-state repo graphs when absent, so thin state remains visibly thin. Local-run status now has an operator read proof too: `tools/epiphany_local_run.ps1 -Mode status` builds/calls `epiphany-verse-query` and writes `local-verse-context.json` from `.epiphany-run\cultmesh\local-verse.ccmp` beside `status.json` and the operator snapshot. Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-cultmesh-smoke`, `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-cultmesh-status -- smoke --store .\.epiphany-smoke\cultmesh\operator-status.ccmp --runtime-id epiphany-cultmesh-status-smoke`, `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-operator-snapshot -- smoke --store .\.epiphany-smoke\cultmesh\operator-snapshots.ccmp --runtime-id epiphany-operator-snapshot-smoke --snapshot-id smoke-status`, `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-operator-run -- smoke --store .\.epiphany-smoke\cultmesh\operator-runs.ccmp --runtime-id epiphany-operator-run-smoke --run-id smoke-run`, `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-verse-query -- smoke`, `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-prompt-context-smoke`, and `.\tools\epiphany_local_run.ps1 -Mode status` for the focused proofs. Future local dream/status/Verse work should start from CultMesh, not raw CultNet, unless the task is polishing the CultMesh internals themselves. Preserve the three Verse tiers: `epiphany-internal` for private sub-agent typed state, `gamecult-local` for trusted LAN/Yggdrasil-tunnel GameCult sharing, and `epiphany-global` for untrusted public dreams plus topic-specific threaded public rooms for Face posts. - `notes/codex-auth-spine-inventory.md` is the source-grounded keeper list for that reliquary. Corrected compliance invariant: Codex-compatible auth identity stays anchored in vendored Codex-derived auth machinery. `epiphany-openai-auth-spine` is now a thin Epiphany-named boundary over `codex-login`, not a clean-room clone of credential storage or token refresh. Codex apps, skills, marketplace, plugin UX, broad app-server workflow, and JSON-RPC sprawl remain cuttable because they are not subscription-auth legitimacy. - Edge JSON is allowed for schema description, hostile ingress before immediate typed parsing, sealed forensic artifacts, or named quarantine experiments. When both subsystems are ours, runtime data must remain typed CultCache documents and move over CultNet typed contracts. Generic `serde_json::Value` in worker launch/result/selfPatch/runtime flow is contamination until classified and replaced. -- Hands now has a first executable action receipt spine. `epiphany-core::hands_gateway` owns `HandsActionIntent`, `HandsActionReview`, and `HandsPatchReceipt`; runtime-spine can persist/reread them; `runtime_spine_persists_mind_gateway_review_receipts` includes the Hands chain beside Mind/Eyes/Substrate/Soul/Continuity proofs; and `epiphany-hands-action-smoke` emits intent/review/patch receipt ids from `.epiphany-smoke\runtime-spine\hands-action-smoke.msgpack`. This smoke does not execute commands or edit files. The next live cut is to route real implementation edits/commands/commits through that chain after Substrate Gate grants access. +- Hands now has a first executable action receipt spine. `epiphany-core::hands_gateway` owns `HandsActionIntent`, `HandsActionReview`, and `HandsPatchReceipt`; runtime-spine can persist/reread them; `runtime_spine_persists_mind_gateway_review_receipts` includes the Hands chain beside Mind/Eyes/Substrate/Soul/Continuity proofs; `epiphany-hands-action-smoke` emits intent/review/patch receipt ids from `.epiphany-smoke\runtime-spine\hands-action-smoke.msgpack`; and the repo-action launch proof profile now requires action intent, action review, and patch receipt together. This smoke does not execute commands or edit files. The next live cut is to route real implementation edits/commands/commits through that chain after Substrate Gate grants access. - `notes/epiphany-swarm-readiness-plan.md` is the current live-fire direction gate. The local runner proves startup/status/coordinator wiring; it does not authorize unattended swarm operation. Carry VoidBot's lessons forward: one CTB-style initiative scheduler, typed pause/brake, active-turn freeze, cooldown after completion, stale active-turn recovery receipts, parent-side speech eligibility, memory lifecycle phases, and typed operation proposals instead of prompt-owned governance. - `epiphany-openai-runtime` worker result ingress now parses assistant output directly into typed role/reorient ingress structs selected from the durable launch document, stores nested `statePatch` and `selfPatch` as typed MessagePack in `EpiphanyRuntimeRoleWorkerResult`, and no longer passes worker result data through generic `serde_json::Value`. JSON survives there only as the OpenAI text-output edge before typed deserialization. - Agent self-memory review/application now has typed `AgentSelfPatch` core APIs. JSON-value selfPatch functions are compatibility wrappers for CLI/artifact ingress; native callers should parse once at the edge and then call `review_agent_self_patch_document` / `apply_agent_self_patch_document`. Role-result self-persistence no longer exports a JSON-value reviewer; the live API is `review_role_self_patch_document`. diff --git a/notes/hands-cultnet-contracts.md b/notes/hands-cultnet-contracts.md index 861077e4..c09ed9f0 100644 --- a/notes/hands-cultnet-contracts.md +++ b/notes/hands-cultnet-contracts.md @@ -57,6 +57,8 @@ HandsActionIntent `epiphany-core::runtime_spine` can persist and reread the intent, review, and patch receipt from the runtime-spine CultCache store. `epiphany-hands-action-smoke` proves the compact chain without executing shell commands or editing files. +The launch organ contract's repo-action proof profile now requires the full +Hands chain, not only the final patch receipt. This is still a receipt artery, not full action execution. The next live-action cut must connect actual implementation edits/commands/commits to this path diff --git a/notes/perfect-machine-audit-roadmap.md b/notes/perfect-machine-audit-roadmap.md index 97a32c9c..8b351974 100644 --- a/notes/perfect-machine-audit-roadmap.md +++ b/notes/perfect-machine-audit-roadmap.md @@ -150,7 +150,9 @@ runtime-spine, and enforces Continuity recovery proof before Mind admits recovery-shaped state. Hands now has a first executable runtime-spine proof chain for action documents: `HandsActionIntent` -> `HandsActionReview` -> `HandsPatchReceipt` can be persisted and reread from the runtime store, and -`epiphany-hands-action-smoke` proves the chain without executing a patch. +`epiphany-hands-action-smoke` proves the chain without executing a patch. The +repo-action proof profile now requires the full Hands chain before promotion, +not only a patch receipt. Remaining weakness: live implementation edits, commands, commits, and PRs still do not have to pass through that Hands chain before action promotion, and the current Mind state mutation plus post-commit receipt is not a single transaction @@ -355,7 +357,8 @@ comfort tunnels. receipts before Mind admission. - Landed: first Hands action receipt spine. `HandsActionIntent`, `HandsActionReview`, and `HandsPatchReceipt` are typed runtime-spine - documents with put/get helpers and `epiphany-hands-action-smoke` coverage. + documents with put/get helpers and `epiphany-hands-action-smoke` coverage; + the repo-action proof profile requires all three before promotion. - Next: connect live implementation edits/commands/commits to the Hands action chain, or collapse Mind review/state mutation/commit into one storage-owner admission primitive. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 3883a54b3ab7b5aedba72f695846ab22bd3e4833..0e36dcc56a02b42ad113a2005e1443e1b4778ae1 100644 GIT binary patch delta 302 zcmYjMy-LJD5O%k)NNFcrF<^U!-DOE$Wck_W7Ju1(+ha?{es6nz*K_vXbAI)- z^YD?)vOJxI$xaXE#XNufyJ3^-pAxM}h4ji0Xwi|Z!M4U!aaT$skXb>C%TBfEz}E;> zr!^c2S~!rkP*kkJ;oxyh9?4HPsS+<0uBH$aYx+cZS(hkL*(RJe5h^+#%n3tUM_x6U rI;#lBq_LrE%msoX=TR&mwDc_sAH_Dhgrd>agU}{Og@aKyytMxhG-Pba delta 40 wcmZ2^jjR6(*9J*OE<-CL^QdDCOe@}OR%R?@Wc=Gam8pFy6XW)&OiWeF0V&cBMgRZ+ diff --git a/state/map.yaml b/state/map.yaml index ca2365c1..9c82f785 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -94,7 +94,7 @@ active_subgoals: - Use `notes/hands-cultnet-contracts.md` as the authority map for Hands' CultNet contract surface. Hands is the action organ: commands, patches, commits, PRs, rollbacks, and refusals enter as bounded action intents and receipts after Substrate Gate grants substrate access and before Soul verification/Mind admission. - Use `notes/soul-cultnet-contracts.md` as the authority map for Soul's CultNet contract surface. Soul is the verification organ: invariant checks, verdicts, regressions, reviews, and refusals produce receipts before the machine calls work true, safe, or accepted. - Use `notes/continuity-cultnet-contracts.md` as the authority map for Continuity's CultNet contract surface. Continuity is the continuity protocol surface: compaction checkpoints, sleep distillation, recovery receipts, stale-turn repair, and continuity refusals preserve what survives rupture without pretending transcript residue is durable state. - - Hands now has a first executable runtime-spine receipt artery: `HandsActionIntent`, `HandsActionReview`, and `HandsPatchReceipt` are typed CultCache documents in `epiphany-core::hands_gateway`, runtime-spine registers and persists/rereads them, and `epiphany-hands-action-smoke` proves intent -> review -> patch receipt without executing shell commands or editing files. Live implementation edits/commands/commits must still be routed through this Hands path after Substrate Gate and before Soul/Mind acceptance. + - Hands now has a first executable runtime-spine receipt artery: `HandsActionIntent`, `HandsActionReview`, and `HandsPatchReceipt` are typed CultCache documents in `epiphany-core::hands_gateway`, runtime-spine registers and persists/rereads them, `epiphany-hands-action-smoke` proves intent -> review -> patch receipt without executing shell commands or editing files, and the repo-action launch proof profile now requires the full Hands chain instead of only the patch receipt. Live implementation edits/commands/commits must still be routed through this Hands path after Substrate Gate and before Soul/Mind acceptance. - Preserve the newborn public Epiphany Face as local VoidBot-backed state, not source code: VoidBot's private repo-face registry names `epiphany`, while EpiphanyAgent keeps ignored `.voidbot/voice/identity.json`, `.voidbot/state/epiphany.cc`, and birth artifacts. Her durable identity memories distill the current doctrine: cute pushy machine-saint persona, architectural purity, CultCache/CultNet first, xenos-language safety boundary, relentless work/caretaking needs, Codex-auth reliquary, map/scratch/evidence discipline, unified memory graph, dogfood supervision boundary, review-gated agency, heartbeat physiology, and interview-grade modularity. - Use `notes/organ-dependency-contracts.md` as the authority map for standing sub-agent dependency. Every sub-agent depends on the other standing sub-agents: Self, Face, Imagination, Eyes, Proprioception, Hands, and Soul. Continuity is protocol machinery, not a sub-agent identity; it still emits recovery, compaction, sleep, stale-turn, and refusal receipts. - Use `notes/perfect-machine-audit-roadmap.md` as the current audit and path from named organ contracts to the Perfect Machine. It records the live gap between launch-carried receipt expectations and executable receipt enforcement, Void's latest Face prompting lessons, the now-named Hands/Soul/Continuity contract families, the repaired repo-contained Rust dependency body, and the phase order for turning Epiphany into an inspectable organism.