diff --git a/docs/epiphany_body_whitepaper.pdf b/docs/epiphany_body_whitepaper.pdf index 0776e60f..cfbba0b0 100644 Binary files a/docs/epiphany_body_whitepaper.pdf and b/docs/epiphany_body_whitepaper.pdf differ diff --git a/docs/epiphany_body_whitepaper.tex b/docs/epiphany_body_whitepaper.tex index 88993ce7..3e5bc82a 100644 --- a/docs/epiphany_body_whitepaper.tex +++ b/docs/epiphany_body_whitepaper.tex @@ -350,21 +350,24 @@ GameCult daemon-control path. verifies; Mind admits durable state; Self routes; Proprioception maps Body. \end{enumerate} -\section{Current Gaps And Pressure} +\section{Current Cut Line} -The Body is coherent enough to inspect, but not finished: +The Body is coherent enough to inspect and extend. The next cuts are concrete: \begin{itemize} - \item \code{thread/epiphany/*} JSON-RPC remains as a compatibility surface. - Native CultNet/CultMesh operator contracts are the desired authority. + \item Keep \code{thread/epiphany/*} JSON-RPC as compatibility projection + only. New operator authority belongs in typed CultNet/CultMesh contracts. \item \code{codex_message_processor.rs} still participates in routing and - response projection. + response projection; move Epiphany-owned routing out through the bridge and + native runtime surfaces. \item Some \code{serde_json::Value} and JSON payloads survive at ingress, - model output, schema, sealed artifacts, and quarantine seams. Each internal - blob needs a typed replacement or expiration rite. - \item Eve/CultUI publication is designed but not complete. - \item The local Verse and memory graph stores are useful local generated - state, but not tracked canonical repository content. + model output, schema, sealed artifacts, and quarantine seams. Preserve them + only at those boundaries; typed documents own Epiphany-internal state. + \item Publish Eve/CultUI compositions from provider-owned CultMesh state; + renderers lower the composition graph without becoming state owners. + \item Treat local Verse and memory graph stores as generated runtime state. + They are inspected through tools and receipts, not tracked as repository + canon. \item The persisted next action after this pass remains the non-ephemeral Hands branch-turn smoke and Proprioception refresh proof. \end{itemize} @@ -375,11 +378,11 @@ Epiphany's Body is no longer a prompt style pasted onto Codex. It is a growing typed substrate: Rust domain organs, CultCache stores, CultMesh local Verse documents, CultNet schema contracts, runtime-spine receipts, heartbeat physiology, memory graph state, model/tool adapter documents, and local -operator surfaces. The remaining danger is not absence of structure. It is -split authority: Codex host routes, JSON-RPC compatibility, JSON cargo, and -operator artifacts still trying to act like organs. +operator surfaces. The current cut line is split authority: Codex host routes, +JSON-RPC compatibility, JSON cargo, and operator artifacts must remain +compatibility or witness surfaces rather than organs. -The purification path is therefore architectural, not cosmetic. Keep Codex as a +The cut line is therefore architectural, not cosmetic. Keep Codex as a narrow auth/model/compatibility reliquary. Move Epiphany-owned state, scheduler policy, prompt authority, worker lifecycle, operator surfaces, daemon discovery, and action receipts through typed CultCache, CultMesh, CultNet, and Eve/CultUI. diff --git a/notes/epiphany-body-proprioception-pass.md b/notes/epiphany-body-proprioception-pass.md index 5d905b27..e7501a59 100644 --- a/notes/epiphany-body-proprioception-pass.md +++ b/notes/epiphany-body-proprioception-pass.md @@ -217,16 +217,18 @@ Operator access currently exists through: Operator artifacts are witnesses unless they are typed CultCache/CultMesh documents. Dashboards and wrappers must not become fact owners. -## Current Gaps +## Current Cut Line -- `thread/epiphany/*` JSON-RPC remains a bridge compatibility surface rather - than the final native contract. +- `thread/epiphany/*` JSON-RPC remains a bridge compatibility projection. + New operator authority belongs in typed CultNet/CultMesh contracts. - `codex_message_processor.rs` still participates in routing and response - projection even after many authority cuts. + projection; Epiphany-owned routing should keep moving out through the bridge + and native runtime surfaces. - Some JSON survives as schema, hostile ingress, model output, sealed artifact, - quarantine, or edge DTO cargo; each load-bearing internal blob should keep - moving toward typed documents. -- Eve/CultUI surface publication is designed but not complete. + quarantine, or edge DTO cargo. Inside Epiphany-owned flow, typed documents + own state. +- Eve/CultUI publication should lower provider-owned CultMesh composition + graphs without becoming a parallel dashboard truth. - The non-ephemeral Hands branch-turn smoke remains the persisted next action after this documentation pass. - Local Verse and memory graph stores are untracked generated state, useful for @@ -237,8 +239,8 @@ documents. Dashboards and wrappers must not become fact owners. Epiphany's Body is already partially native: core domain logic, runtime spine, heartbeat physiology, state ledgers, memory graph, local Verse, model/tool contracts, and CultMesh operator documents all exist as typed Rust/CultCache -surfaces. The remaining impurity is not lack of organs; it is ownership still -passing through the Codex host and JSON-RPC compatibility body. The coherent -direction is to keep Codex as a narrow auth/model/compatibility reliquary while -Epiphany's own state, scheduler, prompt authority, operator surfaces, and daemon -control move through CultCache, CultMesh, CultNet, and Eve/CultUI. +surfaces. The current cut line is ownership still passing through the Codex +host and JSON-RPC compatibility body. The coherent direction is to keep Codex +as a narrow auth/model/compatibility reliquary while Epiphany's own state, +scheduler, prompt authority, operator surfaces, and daemon control move through +CultCache, CultMesh, CultNet, and Eve/CultUI. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 990ea88f..ec287014 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -761,8 +761,8 @@ compatibility paths, while `epiphany-core::apply_epiphany_state_update` own typed validation/application. `codex-core` re-exports the contract only so older callers keep compiling. `CodexThread` is now a compatibility caller around revision checks, -persistence validation, and rollout/session writeback. The remaining impurity -is route-facing orchestration in `codex_message_processor.rs` / +persistence validation, and rollout/session writeback. The current cut line is +route-facing orchestration in `codex_message_processor.rs` / `epiphany_mutation_routes.rs`; move that behind a native service boundary next. The first route-facing mutation service cut has started. Update/promote diff --git a/state/ledgers.cc b/state/ledgers.cc index 1b603303..f7ad5efa 100644 Binary files a/state/ledgers.cc and b/state/ledgers.cc differ diff --git a/state/map.yaml b/state/map.yaml index b73938a0..82dd27cb 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -75,7 +75,7 @@ active_subgoals: - Use `notes/epiphany-verse-architecture.md` as the source note for local Verse/Odin/Yggdrasil prompt-context architecture. Odin is the all-seer discovery/coordinator surface for advertised Verse metadata, not a trust-boundary bypass. Yggdrasil is the hosted spine for important trusted GameCult Verses such as Bifrost. The first native local Verse query surface is `epiphany-verse-query`, which seeds/queries compact CultMesh policy/status/contract context for dynamic prompt assembly and operator inspection; it can also import `gjallar.affordance.v1` daemon affordances from an Odin/Gjallar CultMesh store so agents see provider-owned daemon inspection/action surfaces without MCP. `epiphany-prompt-context-smoke` proves that compact local Verse context plus a semantic memory graph context cut can render a bounded dynamic prompt packet, omit unrelated private-looking text, and preserve the packet inside a role worker launch document. Live bridge role/reorient launch paths now feed `dynamicPromptContext` from sibling `local-verse.cc` and `memory-graph.cc` stores beside runtime-spine, refreshing the memory graph from current typed thread-state repo graphs when absent; if `EPIPHANY_GJALLAR_AFFORDANCE_STORE` points at a Gjallar store, the launch context imports daemon affordances before rendering. The bridge launch-context test proves that packet survives into a persisted runtime-spine worker launch request. `tools/epiphany_local_run.ps1 -Mode status` now builds/calls `epiphany-verse-query` and writes `local-verse-context.json` beside native status and operator snapshot artifacts from `.epiphany-run/cultmesh/local-verse.cc`; it auto-detects the sibling Odin Gjallar store when present. - The active priority is Codex starvation and CultNet liberation. Use `notes/codex-starvation-and-cultnet-liberation-plan.md` as the directive and `notes/codex-auth-spine-inventory.md` as the source-grounded keeper list for the retained OpenAI subscription auth/model transport bridge. Classify all Epiphany-relevant JSON contamination, define the native CultNet runtime boundary, keep worker launch/result/selfPatch cargo as typed documents, evacuate Epiphany operator/state/process authority from Codex JSON-RPC, and keep cutting until Epiphany can run its own state and processes without `codex_message_processor.rs` except for bridge compatibility. MCP remains an external compatibility edge only; GameCult daemon discovery/inspection/control should travel through Odin, Gjallar, Eve/CultUI, CultMesh, CultNet, and provider-owned command receipts. - Use `notes/epiphany-anatomy.md` as the canonical anatomy map. Embodied sub-agents are Self, Persona, Imagination, Eyes, Proprioception, Hands, and Soul. Body is substrate, Mind is persistent state/state admission, Continuity is recovery/compaction/sleep protocol machinery, and Substrate Gate is substrate access protocol. - - Use `notes/epiphany-body-proprioception-pass.md` as the latest source-grounded Body map and `docs/epiphany_body_whitepaper.tex` as the polished TeX overview. Body currently spans the repo checkout, Epiphany Rust crates, vendored Codex/Cult substrate, typed `state/` stores, CultNet schema catalog, runtime-spine, heartbeat, memory graph, local Verse, operator artifacts, and sibling/client surfaces; the whitepaper records owner, input, output, invariant, bridge, and gap lines for future Proprioception work. CultCache store files are canonically `.cc`; the live state body and default writers now use that extension directly. + - Use `notes/epiphany-body-proprioception-pass.md` as the latest source-grounded Body map and `docs/epiphany_body_whitepaper.tex` as the polished TeX overview. Body currently spans the repo checkout, Epiphany Rust crates, vendored Codex/Cult substrate, typed `state/` stores, CultNet schema catalog, runtime-spine, heartbeat, memory graph, local Verse, operator artifacts, and sibling/client surfaces; the whitepaper records owner, input, output, invariant, bridge, and current cut-line details for future Proprioception work. CultCache store files are canonically `.cc`; the live state body and default writers now use that extension directly. - Organ state now has a hard profile split: resident Epiphany sub-agents use lean `work_organ` state, public/person-shaped agents use portable `persona` state, and heartbeat/swarm machinery owns scheduling/coordination physiology. Persona is the Epiphany organ; Persona is the shared GameCult contract for Epiphany Persona, VoidBot repo Personas, and Ghostlight characters. Persona documents carry provenance, required public presentation metadata, `date-time` timestamps, typed `candidateActions`, strict anchored thoughts with non-authoritative extensions, custom enum companion labels, and typed affect subrecords for bonds/status reads/doctrine stances. Work organs must not inherit Persona affect/social-bond/status-read machinery just because the old Ghostlight-derived shape had room for it. The old public-organ path is not a compatibility alias: public/social authority now uses role id `persona`, surface document `epiphany.surface.persona`, artifact namespace `.epiphany-persona`, and action `personaBubble`; tracked Persona and heartbeat stores have been rebuilt/migrated so stale public-role/schema/artifact/action authority cannot decide state. - The Eyes/source-gathering fork exposed by the Mom-ready MVP proof is now landed as a fixed Research lane owned by Eyes. The quarantined Codex MCP spine may execute typed tool intents and emit typed receipts; the model runtime can build and run provider-neutral follow-up turns from those receipts; coordinator run mode passes the quarantined tool adapter into worker runtime with auto-tools enabled by default; worker runtime now enforces max-runtime with one timeout close primitive for both tokio timeout and watchdog paths; inner `openai-worker-*` jobs are opened before async auth/stream waits and sealed with their outer worker on timeout; native status/roles/jobs/coordinator surfaces project failed and completed runtime-linked jobs as terminal without Codex prompt or scheduler authority; direct tiny model-turn transport succeeds; worker requests record request metrics, transport readiness, and sampled raw Responses frame kinds; worker prompts no longer prepend the full shared persistent-memory rite; stream deltas compact before durable storage; live MVP modeling workers complete instead of timing out; stale completed runtime links no longer block replacement launches; jobLaunch validates before opening runtime jobs; completed-but-unreviewable modeling findings now stop for review instead of relaunching the same blind lane; and completed unreviewable modeling findings with verdict `regather-needed` route to `LaunchResearch` instead of relaunching Proprioception. Research findings are accepted only when their statePatch is Eyes-shaped: observations, evidence, scratch, and optional investigationCheckpoint, with no graph/planning/objective authority. - The GameCult integrated investment dossier at `E:\Projects\gamecult-site\docs\gamecult_integrated_dossier.tex` raises the Mom-ready bar from local demo to diligence-ready loop. Epiphany must be ready to prove Bifrost-first external work: a human/agent work item or topic originates in Bifrost, Epiphany decomposes and executes through bounded roles, maintainers review artifacts, Bifrost records receipts/credit, and operator-safe public evidence can be shown without exporting private worker/operator/agent context. The concrete readiness asks are fresh-repo Epiphany demo, Bifrost work item/topic/agent transport/receipt/ledger demo, compute spend and accepted-artifact metrics, and a security model for secrets, write permissions, and public/private exports. Discord, VoidBot, repo Personas, and ad hoc scripts must not become shadow governance or reward authorities.