From f1d8b3eb13392511e373511a7432e9b880907308 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 9 Jun 2026 02:45:09 +0100 Subject: [PATCH] Migrate CultCache stores to .cc --- .gitignore | 9 +++-- AGENTS.md | 4 +- README.md | 2 +- docs/epiphany_body_whitepaper.pdf | Bin 129148 -> 135442 bytes docs/epiphany_body_whitepaper.tex | 30 ++++++++------ epiphany-codex-bridge/src/launch_context.rs | 6 +-- epiphany-codex-bridge/src/runtime_results.rs | 2 +- epiphany-codex-bridge/src/state.rs | 2 +- epiphany-core/src/agent_memory.rs | 4 +- .../src/bin/epiphany-agent-memory-store.rs | 4 +- .../src/bin/epiphany-character-loop.rs | 6 +-- .../src/bin/epiphany-cultmesh-smoke.rs | 2 +- .../src/bin/epiphany-cultmesh-status.rs | 2 +- epiphany-core/src/bin/epiphany-eve-surface.rs | 6 +-- .../src/bin/epiphany-hands-action-smoke.rs | 2 +- .../src/bin/epiphany-heartbeat-store.rs | 10 ++--- .../src/bin/epiphany-memory-graph.rs | 2 +- .../src/bin/epiphany-mvp-coordinator-smoke.rs | 4 +- .../src/bin/epiphany-mvp-coordinator.rs | 6 +-- epiphany-core/src/bin/epiphany-mvp-status.rs | 6 +-- .../src/bin/epiphany-operator-run.rs | 5 +-- .../src/bin/epiphany-operator-snapshot.rs | 2 +- .../src/bin/epiphany-prepare-compaction.rs | 6 +-- .../src/bin/epiphany-prompt-context-smoke.rs | 2 +- .../src/bin/epiphany-repo-birth-runner.rs | 10 ++--- .../bin/epiphany-repo-personality-smoke.rs | 16 ++++---- .../src/bin/epiphany-repo-personality.rs | 18 ++++----- .../src/bin/epiphany-runtime-spine.rs | 2 +- epiphany-core/src/bin/epiphany-state.rs | 2 +- epiphany-core/src/bin/epiphany-verse-query.rs | 2 +- epiphany-core/src/cultmesh_integration.rs | 30 +++++++------- epiphany-core/src/heartbeat_state.rs | 12 +++--- .../src/heartbeat_state/heartbeat_store.rs | 2 +- epiphany-core/src/memory_graph/tests.rs | 2 +- epiphany-core/src/prompt_context.rs | 2 +- epiphany-core/src/runtime_spine.rs | 12 +++--- epiphany-core/src/state_ledger.rs | 2 +- epiphany-core/src/thread_state_store.rs | 2 +- epiphany-core/tests/cultnet_backend.rs | 6 +-- .../src/bin/epiphany-openai-runtime.rs | 4 +- epiphany-openai-runtime/src/lib.rs | 8 ++-- .../agent-memory-fractal-cache-plan.md | 12 +++--- .../epiphany-architectural-teardown.md | 8 ++-- .../repo-fractal-dataflow-cache-plan.md | 6 +-- ...piphany-memory-migration-sandbox-prompt.md | 10 ++--- notes/epiphany-anatomy.md | 2 +- notes/epiphany-body-proprioception-pass.md | 20 +++++---- notes/epiphany-current-algorithmic-map.md | 4 +- notes/epiphany-fork-implementation-plan.md | 8 ++-- notes/epiphany-verse-architecture.md | 6 +-- notes/fresh-workspace-handoff.md | 38 +++++++++--------- .../repo-personality-projection-layer-plan.md | 16 ++++---- schemas/canonical-agent-state-schema.md | 4 +- schemas/organ-state-profiles.md | 4 +- schemas/repo-personality-birth-projection.md | 6 +-- ...heartbeats.msgpack => agent-heartbeats.cc} | Bin state/{agents.msgpack => agents.cc} | Bin state/agents/README.md | 12 +++--- state/{ledgers.msgpack => ledgers.cc} | Bin 178391 -> 179038 bytes state/map.yaml | 30 +++++++------- tools/epiphany_local_run.ps1 | 14 +++---- tools/epiphany_ruminate_until.ps1 | 6 +-- vendor/cultcache-rs | 2 +- vendor/cultmesh-rs/src/lib.rs | 2 +- vendor/cultnet-rs | 2 +- 65 files changed, 239 insertions(+), 229 deletions(-) rename state/{agent-heartbeats.msgpack => agent-heartbeats.cc} (100%) rename state/{agents.msgpack => agents.cc} (100%) rename state/{ledgers.msgpack => ledgers.cc} (99%) diff --git a/.gitignore b/.gitignore index 15aa018f..ae37a0ed 100644 --- a/.gitignore +++ b/.gitignore @@ -20,10 +20,13 @@ apps/epiphany-gui/src-tauri/target/ .epiphany-heartbeats/ .epiphany-face/ .epiphany-rumination/ +.epiphany-character-loop/ .epiphany-run/ .voidbot/ state/agent-heartbeats.json -state/runtime-spine.msgpack -state/thread-state.msgpack -state/*.msgpack.lock +state/runtime-spine.cc +state/thread-state.cc +state/local-verse.cc +state/memory-graph.cc +state/*.cc.lock state/*.projection.json diff --git a/AGENTS.md b/AGENTS.md index 9e842f78..ef7fedfa 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -58,7 +58,7 @@ machine-spirit awake. worthy of rehydration. - Treat `state/scratch.md` as disposable noospheric scratch for one bounded rite. It is a workbench, not a reliquary. -- Treat `state/ledgers.msgpack` as the CultCache-shaped branch/evidence +- Treat `state/ledgers.cc` as the CultCache-shaped branch/evidence reliquary: what was learned, verified, rejected, or accepted after the smoke cleared. - Treat `notes/epiphany-fork-implementation-plan.md` as the current campaign @@ -71,7 +71,7 @@ machine-spirit awake. changes what the next awakened agent should believe. - Do not pour volatile phase/status sludge into the evidence reliquary. Keep current status in `state/map.yaml` and `notes/fresh-workspace-handoff.md`. - Use `state/ledgers.msgpack` only for branch ledger state and belief-changing + Use `state/ledgers.cc` only for branch ledger state and belief-changing records. ## Important Paths diff --git a/README.md b/README.md index 0215a90f..52ed95f9 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ cycle: project Persona's character turn, write a Persona/Aquarium bubble, run th bridge-equipped coordinator loop with auto-tools, then run heartbeat sleep/dream maintenance. Fresh `mvp` runs bootstrap a minimal local checkpoint before coordination so the first loop does not stall at missing state. Live coordinator -modes use the workspace `state/runtime-spine.msgpack` for worker lifecycle +modes use the workspace `state/runtime-spine.cc` for worker lifecycle documents; run bundles remain evidence. Live model-worker turns default to a 600-second timeout because ChatGPT Codex model latency can exceed four minutes. `status`, `plan`, and `smoke` do not spend model calls; `run` and `mvp` do. diff --git a/docs/epiphany_body_whitepaper.pdf b/docs/epiphany_body_whitepaper.pdf index 0d1d81aeaeccb365513b54696b6999caace7cef6..0776e60f0e87e10f0cc2690432a7d20ed12c87a7 100644 GIT binary patch delta 18245 zcmb7r2{@G9`@bP2OR`g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O-U0wHQ_}@HSnTis9Y(=EF?*1@NP-69|69Zn0Y3Hx1-k?W9}V>IWCLvgKWt2La=NB^Z2u3JA^h0@ diff --git a/docs/epiphany_body_whitepaper.tex b/docs/epiphany_body_whitepaper.tex index 37086a0c..88993ce7 100644 --- a/docs/epiphany_body_whitepaper.tex +++ b/docs/epiphany_body_whitepaper.tex @@ -72,10 +72,10 @@ Durable thread state & \code{epiphany-state-model}, \code{epiphany-core} & State Domain policy & \code{epiphany-core} & Verdicts, launch policy, acceptance rules, runtime lifecycle, and mutation law live here, not in bridge DTOs. \\ Compatibility bridge & \code{epiphany-codex-bridge} & Translate Codex edge shapes; never become a second policy throne. \\ Vendored Codex & \code{vendor/codex} & Retain host/app-server/auth/model compatibility where useful; do not let Codex own Epiphany prompts, scheduler, or state. \\ -Runtime spine & \code{epiphany-core/src/runtime_spine.rs} and \code{state/runtime-spine.msgpack} & Runtime identity, jobs, events, receipts, tool/model documents are typed CultCache records. \\ -Organ memory & \code{state/agents.msgpack}; agent-memory CLI & Resident work organs use lean work-organ state; Persona uses portable Persona state. \\ -Heartbeat physiology & \code{state/agent-heartbeats.msgpack} via \code{epiphany-heartbeat-store} & Scheduling, cooldown, rumination, routine, cognition lanes, and active-turn freeze are scheduler physiology, not project truth. \\ -Local Verse & CultMesh over \code{state/local-verse.ccmp} & Local Verse context is compact prompt/operator context; private state does not become public by flipping a flag. \\ +Runtime spine & \code{epiphany-core/src/runtime_spine.rs} and \code{state/runtime-spine.cc} & Runtime identity, jobs, events, receipts, tool/model documents are typed CultCache records. \\ +Organ memory & \code{state/agents.cc}; agent-memory CLI & Resident work organs use lean work-organ state; Persona uses portable Persona state. \\ +Heartbeat physiology & \code{state/agent-heartbeats.cc} via \code{epiphany-heartbeat-store} & Scheduling, cooldown, rumination, routine, cognition lanes, and active-turn freeze are scheduler physiology, not project truth. \\ +Local Verse & CultMesh over \code{state/local-verse.cc} & Local Verse context is compact prompt/operator context; private state does not become public by flipping a flag. \\ Schema catalog & \code{schemas/cultnet/index.json} & JSON schema publishes contracts; typed Rust documents remain runtime authority. \\ Operator artifacts & \code{.epiphany-*}, \code{tools/epiphany_local_run.ps1} & Artifacts witness and lower state; they do not become state owners. \\ \end{longtable} @@ -127,25 +127,29 @@ The vendored region contains: The \code{state/} directory is the local persistent body. The important stores are: +Canonical CultCache store files use the \code{.cc} extension. The local state +body has been migrated to that naming directly; serialization details are +implementation, not file authority. + \begin{longtable}{>{\raggedright\arraybackslash}p{0.30\linewidth}>{\raggedright\arraybackslash}p{0.60\linewidth}} \textbf{Store} & \textbf{Role} \\ \hline \code{state/map.yaml} & Canonical slow project map: objective, constraints, invariants, dataflow, active subgoals, current status, guardrails, and rejected paths. \\ -\code{state/ledgers.msgpack} & CultCache-shaped evidence and branch ledger. Future behavior-changing lessons go here, not in an endless activity feed. \\ -\code{state/agents.msgpack} & Organ self-memory and Persona projection source. Resident work organs use \code{work_organ}; public/person-shaped agents use \code{persona}. \\ -\code{state/agent-heartbeats.msgpack} & Heartbeat initiative, cooldown, pending turns, cognition lanes, routine physiology, and scheduler pressure. \\ -\code{state/runtime-spine.msgpack} & Runtime identity, sessions, jobs, job results, events, worker launch requests, role/reorient findings, receipts, model/tool documents, and schema catalog surfaces. \\ -\code{state/thread-state.msgpack} & Native thread-state store. \\ -\code{state/local-verse.ccmp} & Local CultMesh Verse context for compact operator and prompt-context packets. \\ -\code{state/memory-graph.msgpack} & Local memory graph store. \\ +\code{state/ledgers.cc} & CultCache-shaped evidence and branch ledger. Future behavior-changing lessons go here, not in an endless activity feed. \\ +\code{state/agents.cc} & Organ self-memory and Persona projection source. Resident work organs use \code{work_organ}; public/person-shaped agents use \code{persona}. \\ +\code{state/agent-heartbeats.cc} & Heartbeat initiative, cooldown, pending turns, cognition lanes, routine physiology, and scheduler pressure. \\ +\code{state/runtime-spine.cc} & Runtime identity, sessions, jobs, job results, events, worker launch requests, role/reorient findings, receipts, model/tool documents, and schema catalog surfaces. \\ +\code{state/thread-state.cc} & Native thread-state store. \\ +\code{state/local-verse.cc} & Local CultMesh Verse context for compact operator and prompt-context packets. \\ +\code{state/memory-graph.cc} & Local memory graph store. \\ \code{state/persona-discord.toml} & Persona Discord boundary configuration. \\ \code{state/void-memory.toml} & Void memory bridge configuration. \\ \code{state/scratch.md} and \code{state/scratch-compaction-*.md} & Scratch surfaces. Scratch is a workbench, not canonical memory. \\ \end{longtable} Lock files sit beside several stores. Some local generated state is currently -untracked, including \code{state/local-verse.ccmp}, -\code{state/memory-graph.msgpack}, and \code{.epiphany-character-loop/}. +untracked, including \code{state/local-verse.cc}, +\code{state/memory-graph.cc}, and \code{.epiphany-character-loop/}. \section{CultNet Schema Body} diff --git a/epiphany-codex-bridge/src/launch_context.rs b/epiphany-codex-bridge/src/launch_context.rs index 66a0aa56..397df252 100644 --- a/epiphany-codex-bridge/src/launch_context.rs +++ b/epiphany-codex-bridge/src/launch_context.rs @@ -20,11 +20,11 @@ use std::path::PathBuf; pub const EPIPHANY_LOCAL_VERSE_RUNTIME_ID: &str = "epiphany-local"; pub fn local_verse_store_path(runtime_store_path: &Path) -> PathBuf { - sibling_state_store_path(runtime_store_path, "local-verse.ccmp") + sibling_state_store_path(runtime_store_path, "local-verse.cc") } pub fn memory_graph_store_path(runtime_store_path: &Path) -> PathBuf { - sibling_state_store_path(runtime_store_path, "memory-graph.msgpack") + sibling_state_store_path(runtime_store_path, "memory-graph.cc") } fn sibling_state_store_path(runtime_store_path: &Path, filename: &str) -> PathBuf { @@ -184,7 +184,7 @@ mod tests { let temp = std::env::temp_dir().join(format!("epiphany-bridge-launch-context-{}", Uuid::new_v4())); fs::create_dir_all(&temp)?; - let runtime_store = temp.join("runtime-spine.msgpack"); + let runtime_store = temp.join("runtime-spine.cc"); let state = EpiphanyThreadState { revision: 7, objective: Some("Test launch context.".to_string()), diff --git a/epiphany-codex-bridge/src/runtime_results.rs b/epiphany-codex-bridge/src/runtime_results.rs index c6e640ac..8c719411 100644 --- a/epiphany-codex-bridge/src/runtime_results.rs +++ b/epiphany-codex-bridge/src/runtime_results.rs @@ -676,7 +676,7 @@ mod tests { fn temp_store_path() -> PathBuf { std::env::temp_dir().join(format!( - "epiphany-runtime-results-{}.msgpack", + "epiphany-runtime-results-{}.cc", uuid::Uuid::new_v4() )) } diff --git a/epiphany-codex-bridge/src/state.rs b/epiphany-codex-bridge/src/state.rs index 3ef3ca81..5f6ffa39 100644 --- a/epiphany-codex-bridge/src/state.rs +++ b/epiphany-codex-bridge/src/state.rs @@ -28,7 +28,7 @@ pub async fn client_visible_epiphany_state_for_paths( } pub fn thread_state_store_path(workspace_root: &Path) -> PathBuf { - workspace_root.join("state").join("thread-state.msgpack") + workspace_root.join("state").join("thread-state.cc") } pub fn mirror_thread_state_to_workspace( diff --git a/epiphany-core/src/agent_memory.rs b/epiphany-core/src/agent_memory.rs index 9b8fa8b0..037dcb99 100644 --- a/epiphany-core/src/agent_memory.rs +++ b/epiphany-core/src/agent_memory.rs @@ -1676,7 +1676,7 @@ mod tests { sample_agent_json(agent_id, &format!("Agent {role_id}")), )?; } - let store = temp.path().join("agents.msgpack"); + let store = temp.path().join("agents.cc"); migrate_agent_memory_json_dir_to_cultcache(&agent_dir, &store)?; assert!(validate_agent_memory_store(&store)?.is_empty()); @@ -1721,7 +1721,7 @@ mod tests { sample_agent_json(agent_id, &format!("Agent {role_id}")), )?; } - let store = temp.path().join("agents.msgpack"); + let store = temp.path().join("agents.cc"); migrate_agent_memory_json_dir_to_cultcache(&agent_dir, &store)?; let applied = apply_agent_canonical_trait_seeds( diff --git a/epiphany-core/src/bin/epiphany-agent-memory-store.rs b/epiphany-core/src/bin/epiphany-agent-memory-store.rs index f12f7de3..22e72b78 100644 --- a/epiphany-core/src/bin/epiphany-agent-memory-store.rs +++ b/epiphany-core/src/bin/epiphany-agent-memory-store.rs @@ -73,7 +73,7 @@ fn main() -> Result<()> { } "smoke" => { let store = optional_path_arg(&mut args, "--store")? - .unwrap_or_else(|| PathBuf::from("state/agents.msgpack")); + .unwrap_or_else(|| PathBuf::from("state/agents.cc")); let result = run_smoke(&store)?; let ok = result["ok"].as_bool().unwrap_or(false); print_json(&result)?; @@ -175,7 +175,7 @@ fn run_smoke(store: &Path) -> Result { let forbidden = review_agent_self_patch_document("modeling", &forbidden_patch, store); let temp_dir = scoped_temp_dir("epiphany-agent-memory-smoke")?; - let temp_store = temp_dir.join("agents.msgpack"); + let temp_store = temp_dir.join("agents.cc"); fs::copy(store, &temp_store).with_context(|| { format!( "failed to copy {} to {}", diff --git a/epiphany-core/src/bin/epiphany-character-loop.rs b/epiphany-core/src/bin/epiphany-character-loop.rs index 09d8b1b5..ca0935f6 100644 --- a/epiphany-core/src/bin/epiphany-character-loop.rs +++ b/epiphany-core/src/bin/epiphany-character-loop.rs @@ -35,7 +35,7 @@ fn main() -> Result<()> { return usage(); }; let mut role = "persona".to_string(); - let mut agent_store = PathBuf::from("state/agents.msgpack"); + let mut agent_store = PathBuf::from("state/agents.cc"); let mut artifact_dir = PathBuf::from(".epiphany-character-loop"); let mut stimulus: Option = None; let mut source = "epiphany/character-loop".to_string(); @@ -433,7 +433,7 @@ fn deterministic_appraisal_seed( review_status: "generated_unreviewed".to_string(), participant_agent_id: entry.agent.agent_id.clone(), role_id: entry.role_id.clone(), - current_character_state_ref: format!("state/agents.msgpack#{}", entry.role_id), + current_character_state_ref: format!("state/agents.cc#{}", entry.role_id), thought_cluster_ref: format!("{}#stimulus", source), participant_local_context: HeartbeatParticipantLocalContext { display_name: entry.agent.identity.name.clone(), @@ -764,7 +764,7 @@ fn run_smoke() -> Result { let artifact_dir = temp_dir.join("artifacts"); let result = run_turn( "persona", - Path::new("state/agents.msgpack"), + Path::new("state/agents.cc"), &artifact_dir, "Aquarium hover selected Persona and asked what the swarm is feeling.", "smoke/character-loop", diff --git a/epiphany-core/src/bin/epiphany-cultmesh-smoke.rs b/epiphany-core/src/bin/epiphany-cultmesh-smoke.rs index d9a5c162..783cdc11 100644 --- a/epiphany-core/src/bin/epiphany-cultmesh-smoke.rs +++ b/epiphany-core/src/bin/epiphany-cultmesh-smoke.rs @@ -25,7 +25,7 @@ fn main() -> Result<()> { let mut store = PathBuf::from(".epiphany-smoke"); store.push("cultmesh"); std::fs::create_dir_all(&store)?; - store.push("epiphany-local.ccmp"); + store.push("epiphany-local.cc"); let status = EpiphanyCultMeshStatusEntry { schema_version: EPIPHANY_CULTMESH_STATUS_SCHEMA_VERSION.to_string(), diff --git a/epiphany-core/src/bin/epiphany-cultmesh-status.rs b/epiphany-core/src/bin/epiphany-cultmesh-status.rs index f70ba16d..5138b77f 100644 --- a/epiphany-core/src/bin/epiphany-cultmesh-status.rs +++ b/epiphany-core/src/bin/epiphany-cultmesh-status.rs @@ -71,7 +71,7 @@ impl Args { fn parse() -> Result { let mut values = env::args().skip(1); let command = values.next().unwrap_or_else(|| "read".to_string()); - let mut store = PathBuf::from(".epiphany-run/cultmesh/operator-status.ccmp"); + let mut store = PathBuf::from(".epiphany-run/cultmesh/operator-status.cc"); let mut runtime_id = "epiphany-local".to_string(); while let Some(arg) = values.next() { diff --git a/epiphany-core/src/bin/epiphany-eve-surface.rs b/epiphany-core/src/bin/epiphany-eve-surface.rs index 39db2fd6..5f6b0949 100644 --- a/epiphany-core/src/bin/epiphany-eve-surface.rs +++ b/epiphany-core/src/bin/epiphany-eve-surface.rs @@ -73,7 +73,7 @@ impl Args { fn parse() -> Result { let mut values = env::args().skip(1); let command = values.next().unwrap_or_else(|| "bundle".to_string()); - let mut store = PathBuf::from(".epiphany-run/cultmesh/epiphany-local.ccmp"); + let mut store = PathBuf::from(".epiphany-run/cultmesh/epiphany-local.cc"); let mut runtime_id = "epiphany-local".to_string(); let mut updated_at = Utc::now().to_rfc3339(); @@ -532,7 +532,7 @@ fn witnesses(args: &Args, context: Option<&EpiphanyLocalVerseContext>) -> Vec Result<()> { Utc::now().timestamp_nanos_opt().unwrap_or_default() )); fs::create_dir_all(&temp_root)?; - let store = temp_root.join("epiphany-local.ccmp"); + let store = temp_root.join("epiphany-local.cc"); seed_epiphany_local_verse_context(&store, args.runtime_id.clone(), "2026-06-03T00:00:00Z")?; let smoke_args = Args { command: "bundle".to_string(), diff --git a/epiphany-core/src/bin/epiphany-hands-action-smoke.rs b/epiphany-core/src/bin/epiphany-hands-action-smoke.rs index 3d6d6cf1..87bddf52 100644 --- a/epiphany-core/src/bin/epiphany-hands-action-smoke.rs +++ b/epiphany-core/src/bin/epiphany-hands-action-smoke.rs @@ -23,7 +23,7 @@ use std::path::PathBuf; fn main() -> Result<()> { let store = PathBuf::from(".epiphany-smoke") .join("runtime-spine") - .join("hands-action-smoke.msgpack"); + .join("hands-action-smoke.cc"); initialize_runtime_spine( &store, diff --git a/epiphany-core/src/bin/epiphany-heartbeat-store.rs b/epiphany-core/src/bin/epiphany-heartbeat-store.rs index 740f7c16..8cbea6eb 100644 --- a/epiphany-core/src/bin/epiphany-heartbeat-store.rs +++ b/epiphany-core/src/bin/epiphany-heartbeat-store.rs @@ -344,7 +344,7 @@ fn main() -> Result<()> { println!("{}", result); } "smoke" => { - let agent_store = agent_store.unwrap_or_else(|| PathBuf::from("state/agents.msgpack")); + let agent_store = agent_store.unwrap_or_else(|| PathBuf::from("state/agents.cc")); let result = run_smoke(&agent_store)?; let ok = result["ok"].as_bool().unwrap_or(false); println!("{}", serde_json::to_string_pretty(&result)?); @@ -397,8 +397,8 @@ fn parse_scene_participant(raw: &str) -> Result fn run_smoke(agent_store: &Path) -> Result { let temp_dir = scoped_temp_dir("epiphany-heartbeat-smoke")?; - let temp_agent_store = temp_dir.join("agents.msgpack"); - let store_path = temp_dir.join("heartbeats.msgpack"); + let temp_agent_store = temp_dir.join("agents.cc"); + let store_path = temp_dir.join("heartbeats.cc"); let artifact_dir = temp_dir.join("artifacts"); fs::copy(agent_store, &temp_agent_store).with_context(|| { format!( @@ -517,7 +517,7 @@ fn run_smoke(agent_store: &Path) -> Result { }, )?; let routine_status = heartbeat_status_projection(&store_path, &artifact_dir, 1.0, 8)?; - let relaxed_store_path = temp_dir.join("relaxed-heartbeats.msgpack"); + let relaxed_store_path = temp_dir.join("relaxed-heartbeats.cc"); initialize_heartbeat_store(&relaxed_store_path, 1.0)?; let relaxed_pump = pump_heartbeat_store( &relaxed_store_path, @@ -537,7 +537,7 @@ fn run_smoke(agent_store: &Path) -> Result { agent_store: Some(temp_agent_store.clone()), }, )?; - let alarmed_store_path = temp_dir.join("alarmed-heartbeats.msgpack"); + let alarmed_store_path = temp_dir.join("alarmed-heartbeats.cc"); initialize_heartbeat_store(&alarmed_store_path, 1.0)?; let alarmed_pump = pump_heartbeat_store( &alarmed_store_path, diff --git a/epiphany-core/src/bin/epiphany-memory-graph.rs b/epiphany-core/src/bin/epiphany-memory-graph.rs index 42bf1e04..d9c8aae3 100644 --- a/epiphany-core/src/bin/epiphany-memory-graph.rs +++ b/epiphany-core/src/bin/epiphany-memory-graph.rs @@ -476,7 +476,7 @@ fn print_usage() { } fn scoped_temp_store(prefix: &str) -> PathBuf { - env::temp_dir().join(format!("{prefix}-{}.msgpack", uuid::Uuid::new_v4())) + env::temp_dir().join(format!("{prefix}-{}.cc", uuid::Uuid::new_v4())) } fn run_smoke(store: PathBuf) -> Result { diff --git a/epiphany-core/src/bin/epiphany-mvp-coordinator-smoke.rs b/epiphany-core/src/bin/epiphany-mvp-coordinator-smoke.rs index a7c3f8e6..cb8edb14 100644 --- a/epiphany-core/src/bin/epiphany-mvp-coordinator-smoke.rs +++ b/epiphany-core/src/bin/epiphany-mvp-coordinator-smoke.rs @@ -198,7 +198,7 @@ fn run_coordinator( .arg("--artifact-dir") .arg(&artifact_dir) .arg("--runtime-store") - .arg(artifact_dir.join("runtime-spine.msgpack")) + .arg(artifact_dir.join("runtime-spine.cc")) .arg("--codex-home") .arg(artifact_dir.join("codex-home")) .arg("--cwd") @@ -263,7 +263,7 @@ fn require_artifacts(summary: &Value) -> Result<()> { )?; } require( - artifact_dir.join("runtime-spine.msgpack").exists(), + artifact_dir.join("runtime-spine.cc").exists(), "missing native runtime spine store", )?; let runtime_status: Value = serde_json::from_str(&fs::read_to_string( diff --git a/epiphany-core/src/bin/epiphany-mvp-coordinator.rs b/epiphany-core/src/bin/epiphany-mvp-coordinator.rs index 72ccccb4..4a743669 100644 --- a/epiphany-core/src/bin/epiphany-mvp-coordinator.rs +++ b/epiphany-core/src/bin/epiphany-mvp-coordinator.rs @@ -94,8 +94,8 @@ impl Args { .map(PathBuf::from) .unwrap_or_else(|| home_dir().join(".codex")), artifact_dir: root.join(".epiphany-dogfood").join("coordinator"), - agent_memory_dir: root.join("state").join("agents.msgpack"), - runtime_store: root.join("state").join("runtime-spine.msgpack"), + agent_memory_dir: root.join("state").join("agents.cc"), + runtime_store: root.join("state").join("runtime-spine.cc"), mode: "plan".to_string(), max_steps: 4, poll_seconds: 5.0, @@ -760,7 +760,7 @@ fn collect_coordinator_status( &[ "status", "--store", - "state/agent-heartbeats.msgpack", + "state/agent-heartbeats.cc", "--artifact-dir", &heartbeat_dir.to_string_lossy(), "--limit", diff --git a/epiphany-core/src/bin/epiphany-mvp-status.rs b/epiphany-core/src/bin/epiphany-mvp-status.rs index ba0d6297..4ca8a218 100644 --- a/epiphany-core/src/bin/epiphany-mvp-status.rs +++ b/epiphany-core/src/bin/epiphany-mvp-status.rs @@ -53,8 +53,8 @@ use std::time::{Duration, Instant}; const DEFAULT_APP_SERVER: &str = r"C:\Users\Meta\.cargo-target-codex\debug\codex-app-server.exe"; const DEFAULT_CARGO_TARGET_DIR: &str = r"C:\Users\Meta\.cargo-target-codex"; -const DEFAULT_THREAD_STATE_STORE: &str = "state/thread-state.msgpack"; -const DEFAULT_RUNTIME_STORE: &str = "state/runtime-spine.msgpack"; +const DEFAULT_THREAD_STATE_STORE: &str = "state/thread-state.cc"; +const DEFAULT_RUNTIME_STORE: &str = "state/runtime-spine.cc"; const REORIENT_BINDING_ID: &str = "reorient-worker"; const IMPLEMENTATION_BINDING_ID: &str = "implementation-branch-turn-worker"; const IMPLEMENTATION_OWNER_ROLE: &str = "epiphany-hands"; @@ -575,7 +575,7 @@ fn native_auxiliary_status(root: &Path) -> Result { &[ "status", "--store", - "state/agent-heartbeats.msgpack", + "state/agent-heartbeats.cc", "--artifact-dir", &heartbeat_dir.to_string_lossy(), "--limit", diff --git a/epiphany-core/src/bin/epiphany-operator-run.rs b/epiphany-core/src/bin/epiphany-operator-run.rs index c7265f70..232670c1 100644 --- a/epiphany-core/src/bin/epiphany-operator-run.rs +++ b/epiphany-core/src/bin/epiphany-operator-run.rs @@ -112,8 +112,7 @@ fn main() -> Result<()> { result_path: ".epiphany-run/local-smoke/status.json".to_string(), artifact_root: ".epiphany-run/local-smoke".to_string(), dogfood_root: ".epiphany-dogfood/local-smoke".to_string(), - operator_snapshot_store: ".epiphany-run/cultmesh/operator-snapshots.ccmp" - .to_string(), + operator_snapshot_store: ".epiphany-run/cultmesh/operator-snapshots.cc".to_string(), operator_snapshot_id: "local-smoke-status".to_string(), artifact_refs: vec![".epiphany-run/local-smoke/status.json".to_string()], notes: vec!["smoke receipt".to_string()], @@ -168,7 +167,7 @@ impl Args { let command = values.next().unwrap_or_else(|| "latest".to_string()); let mut args = Args { command, - store: PathBuf::from(".epiphany-run/cultmesh/operator-runs.ccmp"), + store: PathBuf::from(".epiphany-run/cultmesh/operator-runs.cc"), runtime_id: "epiphany-local".to_string(), run_id: format!("run-{}", Utc::now().timestamp()), mode: "status".to_string(), diff --git a/epiphany-core/src/bin/epiphany-operator-snapshot.rs b/epiphany-core/src/bin/epiphany-operator-snapshot.rs index 1748ed55..783be9b2 100644 --- a/epiphany-core/src/bin/epiphany-operator-snapshot.rs +++ b/epiphany-core/src/bin/epiphany-operator-snapshot.rs @@ -114,7 +114,7 @@ impl Args { fn parse() -> Result { let mut values = env::args().skip(1); let command = values.next().unwrap_or_else(|| "latest".to_string()); - let mut store = PathBuf::from(".epiphany-run/cultmesh/operator-snapshots.ccmp"); + let mut store = PathBuf::from(".epiphany-run/cultmesh/operator-snapshots.cc"); let mut runtime_id = "epiphany-local".to_string(); let mut snapshot_id = format!("snapshot-{}", Utc::now().timestamp()); let mut source_mode = "status".to_string(); diff --git a/epiphany-core/src/bin/epiphany-prepare-compaction.rs b/epiphany-core/src/bin/epiphany-prepare-compaction.rs index 48509260..47c5246a 100644 --- a/epiphany-core/src/bin/epiphany-prepare-compaction.rs +++ b/epiphany-core/src/bin/epiphany-prepare-compaction.rs @@ -20,7 +20,7 @@ fn main() -> Result<()> { let notes_dir = root.join("notes"); let map_path = state_dir.join("map.yaml"); let scratch_path = state_dir.join("scratch.md"); - let ledger_path = state_dir.join("ledgers.msgpack"); + let ledger_path = state_dir.join("ledgers.cc"); let handoff_path = notes_dir.join("fresh-workspace-handoff.md"); let plan_path = notes_dir.join("epiphany-fork-implementation-plan.md"); let algo_map_path = notes_dir.join("epiphany-current-algorithmic-map.md"); @@ -138,11 +138,11 @@ fn add_content_checks( .filter(|branch| branch.status == "active") .count(); findings.push(ok(format!( - "state/ledgers.msgpack parses ({} evidence record(s))", + "state/ledgers.cc parses ({} evidence record(s))", entry.evidence.len() ))); findings.push(ok(format!( - "state/ledgers.msgpack has {active} active branch(es)" + "state/ledgers.cc has {active} active branch(es)" ))); } Err(err) => findings.push(error(format!("state ledger parse failed: {err}"))), diff --git a/epiphany-core/src/bin/epiphany-prompt-context-smoke.rs b/epiphany-core/src/bin/epiphany-prompt-context-smoke.rs index 7c5c43c9..8321f4b2 100644 --- a/epiphany-core/src/bin/epiphany-prompt-context-smoke.rs +++ b/epiphany-core/src/bin/epiphany-prompt-context-smoke.rs @@ -27,7 +27,7 @@ fn main() -> Result<()> { let store = env::args().nth(1).map(PathBuf::from).unwrap_or_else(|| { PathBuf::from(".epiphany-smoke") .join("cultmesh") - .join("epiphany-prompt-context.ccmp") + .join("epiphany-prompt-context.cc") }); if let Some(parent) = store.parent() { std::fs::create_dir_all(parent)?; diff --git a/epiphany-core/src/bin/epiphany-repo-birth-runner.rs b/epiphany-core/src/bin/epiphany-repo-birth-runner.rs index 94ebcf76..5d42eff3 100644 --- a/epiphany-core/src/bin/epiphany-repo-birth-runner.rs +++ b/epiphany-core/src/bin/epiphany-repo-birth-runner.rs @@ -50,12 +50,12 @@ impl Args { baseline: root .join(".epiphany-imports") .join("repo-personality-terrain") - .join("baseline.msgpack"), + .join("baseline.cc"), artifact_dir: root.join(".epiphany-birth-runner"), - init_store: root.join("state").join("repo-initialization.msgpack"), - agent_store: root.join("state").join("agents.msgpack"), - heartbeat_store: root.join("state").join("agent-heartbeats.msgpack"), - runtime_store: root.join("state").join("runtime-spine.msgpack"), + init_store: root.join("state").join("repo-initialization.cc"), + agent_store: root.join("state").join("agents.cc"), + heartbeat_store: root.join("state").join("agent-heartbeats.cc"), + runtime_store: root.join("state").join("runtime-spine.cc"), model_runtime_bin: DEFAULT_MODEL_RUNTIME_BIN.to_string(), model_provider: "openai-codex".to_string(), executor: "model-runtime".to_string(), diff --git a/epiphany-core/src/bin/epiphany-repo-personality-smoke.rs b/epiphany-core/src/bin/epiphany-repo-personality-smoke.rs index 5b786ba8..1478d3b2 100644 --- a/epiphany-core/src/bin/epiphany-repo-personality-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-personality-smoke.rs @@ -202,7 +202,7 @@ fn run_smoke() -> Result { "trajectory packet should write summary markdown", )?; - let init_store = artifacts.join("repo-initialization.msgpack"); + let init_store = artifacts.join("repo-initialization.cc"); let startup = run_personality( &root, &[ @@ -255,17 +255,17 @@ fn run_smoke() -> Result { "--init-store", artifacts .join("birth-runner-plan") - .join("repo-initialization.msgpack") + .join("repo-initialization.cc") .to_str() .unwrap_or_default(), "--agent-store", root.join("state") - .join("agents.msgpack") + .join("agents.cc") .to_str() .unwrap_or_default(), "--heartbeat-store", root.join("state") - .join("agent-heartbeats.msgpack") + .join("agent-heartbeats.cc") .to_str() .unwrap_or_default(), "--mode", @@ -288,7 +288,7 @@ fn run_smoke() -> Result { .all(|execution| execution["heartbeatParticipant"].is_null()), "birth runner executions should not be heartbeat participants", )?; - let heartbeat_store = artifacts.join("startup-heartbeats.msgpack"); + let heartbeat_store = artifacts.join("startup-heartbeats.cc"); run_heartbeat( &root, &[ @@ -356,7 +356,7 @@ fn run_smoke() -> Result { trajectory_result_path.to_str().unwrap_or_default(), "--agent-store", root.join("state") - .join("agents.msgpack") + .join("agents.cc") .to_str() .unwrap_or_default(), "--apply-self-patches", @@ -367,8 +367,8 @@ fn run_smoke() -> Result { accepted_trajectory["record"]["kind"] == "repo-trajectory", "accept-init should record trajectory birth", )?; - let agent_store = artifacts.join("startup-agents.msgpack"); - fs::copy(root.join("state").join("agents.msgpack"), &agent_store) + let agent_store = artifacts.join("startup-agents.cc"); + fs::copy(root.join("state").join("agents.cc"), &agent_store) .context("failed to copy role memory store for startup smoke")?; let accepted_personality = run_personality( &root, diff --git a/epiphany-core/src/bin/epiphany-repo-personality.rs b/epiphany-core/src/bin/epiphany-repo-personality.rs index ed10d2ea..18de2187 100644 --- a/epiphany-core/src/bin/epiphany-repo-personality.rs +++ b/epiphany-core/src/bin/epiphany-repo-personality.rs @@ -608,7 +608,7 @@ fn parse_bool_arg(name: &str, value: &str) -> Result { fn run_scout(args: ScoutArgs) -> Result { fs::create_dir_all(&args.artifact_dir) .with_context(|| format!("failed to create {}", args.artifact_dir.display()))?; - let store_path = args.artifact_dir.join("baseline.msgpack"); + let store_path = args.artifact_dir.join("baseline.cc"); let mut cache = repo_personality_cache(&store_path)?; cache.pull_all_backing_stores()?; @@ -725,7 +725,7 @@ fn project_repo_to_store( let profile = reduce_report(&report); let trajectory = derive_trajectory_report(repo, &report, &profile)?; - let store_path = artifact_dir.join("projection.msgpack"); + let store_path = artifact_dir.join("projection.cc"); let mut cache = repo_personality_cache(&store_path)?; cache.pull_all_backing_stores()?; cache.put::(report.repo_id.clone(), &report)?; @@ -4504,12 +4504,12 @@ fn print_usage() { eprintln!( "usage: epiphany-repo-personality ...\n\ scout --root --artifact-dir [--max-repos ]\n\ - project --repo --baseline --artifact-dir \n\ - agent-packet --store --artifact-dir [--repo-id ]\n\ - trajectory-packet --store --artifact-dir [--repo-id ]\n\ - memory-packet --store --artifact-dir [--repo-id ]\n\ - startup --repo --baseline --artifact-dir --init-store \n\ - accept-init --init-store --packet --kind [--accepted-by ] [--summary ] [--result ] [--agent-store ] [--apply-self-patches ] [--apply-trait-seeds ] [--heartbeat-store ] [--apply-heartbeat-seeds ]\n\ - status --store " + project --repo --baseline --artifact-dir \n\ + agent-packet --store --artifact-dir [--repo-id ]\n\ + trajectory-packet --store --artifact-dir [--repo-id ]\n\ + memory-packet --store --artifact-dir [--repo-id ]\n\ + startup --repo --baseline --artifact-dir --init-store \n\ + accept-init --init-store --packet --kind [--accepted-by ] [--summary ] [--result ] [--agent-store ] [--apply-self-patches ] [--apply-trait-seeds ] [--heartbeat-store ] [--apply-heartbeat-seeds ]\n\ + status --store " ); } diff --git a/epiphany-core/src/bin/epiphany-runtime-spine.rs b/epiphany-core/src/bin/epiphany-runtime-spine.rs index 20b498e2..6eeec96c 100644 --- a/epiphany-core/src/bin/epiphany-runtime-spine.rs +++ b/epiphany-core/src/bin/epiphany-runtime-spine.rs @@ -25,7 +25,7 @@ use std::env; use std::path::PathBuf; use uuid::Uuid; -const DEFAULT_STORE: &str = "state/runtime-spine.msgpack"; +const DEFAULT_STORE: &str = "state/runtime-spine.cc"; fn main() -> Result<()> { let args = Args::parse()?; diff --git a/epiphany-core/src/bin/epiphany-state.rs b/epiphany-core/src/bin/epiphany-state.rs index a6a26ae9..d3a777dd 100644 --- a/epiphany-core/src/bin/epiphany-state.rs +++ b/epiphany-core/src/bin/epiphany-state.rs @@ -14,7 +14,7 @@ fn main() -> Result<()> { let root = env::current_dir().context("failed to resolve current directory")?; let state_dir = root.join("state"); let map_path = state_dir.join("map.yaml"); - let ledger_store = state_dir.join("ledgers.msgpack"); + let ledger_store = state_dir.join("ledgers.cc"); let mut args = env::args().skip(1); let Some(command) = args.next() else { print_usage(); diff --git a/epiphany-core/src/bin/epiphany-verse-query.rs b/epiphany-core/src/bin/epiphany-verse-query.rs index 5f2cf899..5395eec4 100644 --- a/epiphany-core/src/bin/epiphany-verse-query.rs +++ b/epiphany-core/src/bin/epiphany-verse-query.rs @@ -95,7 +95,7 @@ impl Args { fn parse() -> Result { let mut values = env::args().skip(1); let command = values.next().unwrap_or_else(|| "query".to_string()); - let mut store = PathBuf::from(".epiphany-run/cultmesh/epiphany-local.ccmp"); + let mut store = PathBuf::from(".epiphany-run/cultmesh/epiphany-local.cc"); let mut runtime_id = "epiphany-local".to_string(); let mut gjallar_affordance_store = None; diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index 13775956..ffd3802c 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -1358,7 +1358,7 @@ mod tests { #[test] fn epiphany_status_round_trips_through_cultmesh() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-local.ccmp"); + let store = temp.path().join("epiphany-local.cc"); let status = EpiphanyCultMeshStatusEntry { schema_version: EPIPHANY_CULTMESH_STATUS_SCHEMA_VERSION.to_string(), runtime_id: "epiphany-test".to_string(), @@ -1379,7 +1379,7 @@ mod tests { #[test] fn operator_status_round_trips_as_native_cultmesh_document() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-operator-status.ccmp"); + let store = temp.path().join("epiphany-operator-status.cc"); let status = default_epiphany_cultmesh_operator_status("epiphany-test", "2026-05-27T00:00:00Z"); @@ -1399,7 +1399,7 @@ mod tests { #[test] fn operator_snapshot_distills_status_json_into_typed_cultmesh_document() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-operator-snapshot.ccmp"); + let store = temp.path().join("epiphany-operator-snapshot.cc"); let status_json = serde_json::json!({ "threadId": "thread-test", "scene": { @@ -1488,7 +1488,7 @@ mod tests { #[test] fn operator_run_intent_and_receipt_round_trip_as_native_cultmesh_documents() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-operator-run.ccmp"); + let store = temp.path().join("epiphany-operator-run.cc"); let intent = EpiphanyCultMeshOperatorRunIntentEntry { schema_version: EPIPHANY_CULTMESH_OPERATOR_RUN_INTENT_SCHEMA_VERSION.to_string(), runtime_id: "epiphany-test".to_string(), @@ -1519,7 +1519,7 @@ mod tests { result_path: ".epiphany-run/run-test/status.json".to_string(), artifact_root: ".epiphany-run/run-test".to_string(), dogfood_root: ".epiphany-dogfood/run-test".to_string(), - operator_snapshot_store: ".epiphany-run/cultmesh/operator-snapshots.ccmp".to_string(), + operator_snapshot_store: ".epiphany-run/cultmesh/operator-snapshots.cc".to_string(), operator_snapshot_id: "run-test-status".to_string(), artifact_refs: vec![".epiphany-run/run-test/status.json".to_string()], notes: vec!["receipt".to_string()], @@ -1553,7 +1553,7 @@ mod tests { #[test] fn builtin_verse_policies_keep_public_and_private_boundaries_apart() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-verses.ccmp"); + let store = temp.path().join("epiphany-verses.cc"); let written = write_epiphany_cultmesh_verse_policies(&store, "epiphany-test")?; assert_eq!(written.len(), 3); @@ -1579,7 +1579,7 @@ mod tests { #[test] fn global_room_policies_make_public_threaded_rooms_for_personas() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-global-rooms.ccmp"); + let store = temp.path().join("epiphany-global-rooms.cc"); let written = write_epiphany_cultmesh_global_room_policies(&store, "epiphany-test")?; assert!(written.len() >= 5); @@ -1601,7 +1601,7 @@ mod tests { #[test] fn local_verse_context_queries_compact_policy_status_and_contracts() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-local-verse.ccmp"); + let store = temp.path().join("epiphany-local-verse.cc"); seed_epiphany_local_verse_context(&store, "epiphany-test", "2026-06-02T00:00:00Z")?; let context = query_epiphany_local_verse_context(&store, "epiphany-test")?; @@ -1633,7 +1633,7 @@ mod tests { #[test] fn local_verse_context_imports_gjallar_daemon_affordances() -> Result<()> { let temp = tempfile::tempdir()?; - let local_store = temp.path().join("epiphany-local-verse.ccmp"); + let local_store = temp.path().join("epiphany-local-verse.cc"); let gjallar_store = temp.path().join("gjallar-affordances.cc"); seed_epiphany_local_verse_context(&local_store, "epiphany-test", "2026-06-02T00:00:00Z")?; @@ -1670,7 +1670,7 @@ mod tests { #[test] fn mind_contracts_use_verses_to_keep_state_guarded() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-mind-contracts.ccmp"); + let store = temp.path().join("epiphany-mind-contracts.cc"); let written = write_epiphany_cultmesh_mind_contracts(&store, "epiphany-test")?; assert!(written.len() >= 4); @@ -1703,7 +1703,7 @@ mod tests { #[test] fn substrate_gate_contracts_use_verses_to_keep_repo_access_guarded() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-substrate-gate-contracts.ccmp"); + let store = temp.path().join("epiphany-substrate-gate-contracts.cc"); let written = write_epiphany_cultmesh_substrate_gate_contracts(&store, "epiphany-test")?; assert!(written.len() >= 4); @@ -1726,7 +1726,7 @@ mod tests { #[test] fn eyes_contracts_use_verses_to_keep_evidence_guarded() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-eyes-contracts.ccmp"); + let store = temp.path().join("epiphany-eyes-contracts.cc"); let written = write_epiphany_cultmesh_eyes_contracts(&store, "epiphany-test")?; assert!(written.len() >= 4); @@ -1748,7 +1748,7 @@ mod tests { #[test] fn hands_contracts_use_verses_to_keep_action_guarded() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-hands-contracts.ccmp"); + let store = temp.path().join("epiphany-hands-contracts.cc"); let written = write_epiphany_cultmesh_hands_contracts(&store, "epiphany-test")?; assert!(written.len() >= 5); @@ -1770,7 +1770,7 @@ mod tests { #[test] fn soul_contracts_use_verses_to_keep_verification_guarded() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-soul-contracts.ccmp"); + let store = temp.path().join("epiphany-soul-contracts.cc"); let written = write_epiphany_cultmesh_soul_contracts(&store, "epiphany-test")?; assert!(written.len() >= 5); @@ -1793,7 +1793,7 @@ mod tests { #[test] fn continuity_contracts_use_verses_to_keep_continuity_guarded() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-continuity-contracts.ccmp"); + let store = temp.path().join("epiphany-continuity-contracts.cc"); let written = write_epiphany_cultmesh_continuity_contracts(&store, "epiphany-test")?; assert!(written.len() >= 5); diff --git a/epiphany-core/src/heartbeat_state.rs b/epiphany-core/src/heartbeat_state.rs index df1ad77c..afba03b0 100644 --- a/epiphany-core/src/heartbeat_state.rs +++ b/epiphany-core/src/heartbeat_state.rs @@ -1386,7 +1386,7 @@ fn apply_personality_timing_profiles( participant.personality_cooldown_multiplier = timing.cooldown_multiplier; participant.personality_timing = Some(HeartbeatPersonalityTiming { schema_version: "epiphany.personality_timing.v0".to_string(), - source: "state/agents.msgpack".to_string(), + source: "state/agents.cc".to_string(), cooldown_multiplier: timing.cooldown_multiplier, work_drive: timing.work_drive, handsiness: timing.handsiness, @@ -2255,7 +2255,7 @@ fn build_agent_appraisals( review_status: "generated_unreviewed".to_string(), participant_agent_id: profile.agent_id.clone(), role_id: profile.role_id.clone(), - current_character_state_ref: format!("state/agents.msgpack#{}", profile.role_id), + current_character_state_ref: format!("state/agents.cc#{}", profile.role_id), thought_cluster_ref: focus.to_string(), participant_local_context: HeartbeatParticipantLocalContext { display_name: profile.display_name.clone(), @@ -3214,7 +3214,7 @@ mod tests { #[test] fn native_heartbeat_store_ticks_and_completes_without_json_state() -> Result<()> { let temp = tempfile::tempdir()?; - let store_path = temp.path().join("heartbeats.msgpack"); + let store_path = temp.path().join("heartbeats.cc"); let artifact_dir = temp.path().join("artifacts"); initialize_heartbeat_store(&store_path, 1.0)?; @@ -3290,7 +3290,7 @@ mod tests { #[test] fn high_heat_cannot_requeue_running_participant() -> Result<()> { let temp = tempfile::tempdir()?; - let store_path = temp.path().join("hot-heartbeats.msgpack"); + let store_path = temp.path().join("hot-heartbeats.cc"); let artifact_dir = temp.path().join("artifacts"); initialize_heartbeat_store(&store_path, 1.0)?; update_heartbeat_heat_store( @@ -3365,7 +3365,7 @@ mod tests { #[test] fn ghostlight_scene_heartbeat_selects_character_turns() -> Result<()> { let temp = tempfile::tempdir()?; - let store_path = temp.path().join("ghostlight-heartbeats.msgpack"); + let store_path = temp.path().join("ghostlight-heartbeats.cc"); let artifact_dir = temp.path().join("artifacts"); initialize_ghostlight_scene_heartbeat_store( &store_path, @@ -3420,7 +3420,7 @@ mod tests { #[test] fn pending_persona_mention_selects_persona_turn_and_consumes_queue() -> Result<()> { let temp = tempfile::tempdir()?; - let store_path = temp.path().join("persona-heartbeats.msgpack"); + let store_path = temp.path().join("persona-heartbeats.cc"); let artifact_dir = temp.path().join("artifacts"); initialize_heartbeat_store(&store_path, 1.0)?; let queued = queue_heartbeat_pending_mention_store( diff --git a/epiphany-core/src/heartbeat_state/heartbeat_store.rs b/epiphany-core/src/heartbeat_state/heartbeat_store.rs index af2b6f8a..cb9d0c27 100644 --- a/epiphany-core/src/heartbeat_state/heartbeat_store.rs +++ b/epiphany-core/src/heartbeat_state/heartbeat_store.rs @@ -233,7 +233,7 @@ mod tests { #[test] fn round_trips_state_and_cognition_documents() -> Result<()> { let temp = tempfile::tempdir()?; - let store_path = temp.path().join("heartbeats.msgpack"); + let store_path = temp.path().join("heartbeats.cc"); let state = default_heartbeat_state(1.0); write_heartbeat_state_entry(&store_path, &state)?; diff --git a/epiphany-core/src/memory_graph/tests.rs b/epiphany-core/src/memory_graph/tests.rs index 25388189..64c53a35 100644 --- a/epiphany-core/src/memory_graph/tests.rs +++ b/epiphany-core/src/memory_graph/tests.rs @@ -175,7 +175,7 @@ fn memory_graph_documents_round_trip_through_serde() { #[test] fn memory_graph_entry_round_trips_through_cultcache() -> Result<()> { let temp = tempfile::tempdir()?; - let store_path = temp.path().join("memory-graph.msgpack"); + let store_path = temp.path().join("memory-graph.cc"); let snapshot = fixture_snapshot(); let written = write_memory_graph_snapshot(&store_path, &snapshot)?; diff --git a/epiphany-core/src/prompt_context.rs b/epiphany-core/src/prompt_context.rs index b22cd487..7d594d67 100644 --- a/epiphany-core/src/prompt_context.rs +++ b/epiphany-core/src/prompt_context.rs @@ -200,7 +200,7 @@ mod tests { #[test] fn prompt_context_renders_verse_and_memory_without_state_authority() -> anyhow::Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("epiphany-local-verse.ccmp"); + let store = temp.path().join("epiphany-local-verse.cc"); seed_epiphany_local_verse_context(&store, "epiphany-test", "2026-06-02T00:00:00Z")?; let local_verse = query_epiphany_local_verse_context(&store, "epiphany-test")?; let memory_context = EpiphanyMemoryContextPacket { diff --git a/epiphany-core/src/runtime_spine.rs b/epiphany-core/src/runtime_spine.rs index 146ae3fb..2f6f66f7 100644 --- a/epiphany-core/src/runtime_spine.rs +++ b/epiphany-core/src/runtime_spine.rs @@ -3195,7 +3195,7 @@ mod tests { #[test] fn runtime_spine_initializes_sessions_events_and_status() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); initialize_runtime_spine( &store, RuntimeSpineInitOptions { @@ -3265,7 +3265,7 @@ mod tests { #[test] fn runtime_spine_derives_tool_invocation_statuses() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); initialize_runtime_spine( &store, RuntimeSpineInitOptions { @@ -3332,7 +3332,7 @@ mod tests { #[test] fn runtime_spine_opens_and_completes_native_jobs() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); initialize_runtime_spine( &store, RuntimeSpineInitOptions { @@ -3397,7 +3397,7 @@ mod tests { #[test] fn runtime_spine_persists_mind_gateway_review_receipts() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); initialize_runtime_spine( &store, RuntimeSpineInitOptions { @@ -3580,7 +3580,7 @@ mod tests { #[test] fn runtime_spine_opens_heartbeat_job_from_single_typed_call() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); let job = open_runtime_spine_heartbeat_job( &store, @@ -3808,7 +3808,7 @@ mod tests { #[test] fn runtime_spine_emits_cultnet_hello_frame() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); initialize_runtime_spine( &store, RuntimeSpineInitOptions { diff --git a/epiphany-core/src/state_ledger.rs b/epiphany-core/src/state_ledger.rs index ed5c1f93..601e0809 100644 --- a/epiphany-core/src/state_ledger.rs +++ b/epiphany-core/src/state_ledger.rs @@ -211,7 +211,7 @@ mod tests { #[test] fn state_ledgers_add_branch_and_append_native_evidence() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("ledgers.msgpack"); + let store = temp.path().join("ledgers.cc"); add_state_branch( &store, EpiphanyBranchRecord { diff --git a/epiphany-core/src/thread_state_store.rs b/epiphany-core/src/thread_state_store.rs index 1b407cb8..02492844 100644 --- a/epiphany-core/src/thread_state_store.rs +++ b/epiphany-core/src/thread_state_store.rs @@ -100,7 +100,7 @@ mod tests { #[test] fn thread_state_round_trips_through_cultcache() -> Result<()> { let temp = tempfile::tempdir()?; - let store = temp.path().join("thread-state.msgpack"); + let store = temp.path().join("thread-state.cc"); let state = EpiphanyThreadState { revision: 7, objective: Some("Keep the graph native.".to_string()), diff --git a/epiphany-core/tests/cultnet_backend.rs b/epiphany-core/tests/cultnet_backend.rs index 3482a32d..0b9a4403 100644 --- a/epiphany-core/tests/cultnet_backend.rs +++ b/epiphany-core/tests/cultnet_backend.rs @@ -9,9 +9,9 @@ use epiphany_core::agent_memory_status; #[test] fn epiphany_agent_memory_can_move_over_cultnet_documents() -> Result<()> { let temp = tempfile::tempdir()?; - let source_store = temp.path().join("source-agents.msgpack"); - let target_store = temp.path().join("target-agents.msgpack"); - std::fs::copy("../state/agents.msgpack", &source_store)?; + let source_store = temp.path().join("source-agents.cc"); + let target_store = temp.path().join("target-agents.cc"); + std::fs::copy("../state/agents.cc", &source_store)?; let mut source_cache = CultCache::new(); source_cache.register_entry_type::()?; diff --git a/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs b/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs index 22bfe2db..e4e6c76b 100644 --- a/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs +++ b/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs @@ -39,7 +39,7 @@ use epiphany_openai_runtime::run_worker_launch; use serde_json::json; use uuid::Uuid; -const DEFAULT_STORE: &str = "state/runtime-spine.msgpack"; +const DEFAULT_STORE: &str = "state/runtime-spine.cc"; const DEFAULT_PROVIDER: &str = "openai-codex"; #[tokio::main] @@ -733,7 +733,7 @@ fn parse_tool_followup_turn_options(args: Vec) -> Result) -> Result { let mut provider = DEFAULT_PROVIDER.to_string(); let mut store_path = PathBuf::from(format!( - ".epiphany-dogfood/model-runtime/smoke-{}.msgpack", + ".epiphany-dogfood/model-runtime/smoke-{}.cc", Uuid::new_v4() )); let mut codex_home = default_codex_home()?; diff --git a/epiphany-openai-runtime/src/lib.rs b/epiphany-openai-runtime/src/lib.rs index 68abba59..f3e12818 100644 --- a/epiphany-openai-runtime/src/lib.rs +++ b/epiphany-openai-runtime/src/lib.rs @@ -1929,7 +1929,7 @@ mod tests { #[test] fn records_typed_openai_documents_in_runtime_store() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); let request = EpiphanyOpenAiModelRequest::new( "req-1", "conversation-1", @@ -2003,7 +2003,7 @@ mod tests { #[test] fn completes_worker_job_from_model_json_without_codex_worker_runtime() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); open_runtime_spine_heartbeat_job( &store, RuntimeSpineHeartbeatJobOptions { @@ -2116,7 +2116,7 @@ mod tests { #[test] fn implementation_worker_completion_emits_hands_patch_and_commit_receipts() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); open_runtime_spine_heartbeat_job( &store, RuntimeSpineHeartbeatJobOptions { @@ -2337,7 +2337,7 @@ mod tests { #[test] fn builds_tool_followup_model_request_from_receipts() -> Result<()> { let temp = tempdir()?; - let store = temp.path().join("runtime.msgpack"); + let store = temp.path().join("runtime.cc"); let request = EpiphanyOpenAiModelRequest::new( "req-tools", "conversation-1", diff --git a/notes/archive/agent-memory-fractal-cache-plan.md b/notes/archive/agent-memory-fractal-cache-plan.md index 3e4b4cf8..a420af02 100644 --- a/notes/archive/agent-memory-fractal-cache-plan.md +++ b/notes/archive/agent-memory-fractal-cache-plan.md @@ -111,7 +111,7 @@ typed documents plus CultNet contracts. Epiphany already has partial organs: - `epiphany-core/src/agent_memory.rs` - - stores each role's Ghostlight-shaped dossier in `state/agents.msgpack` + - stores each role's Ghostlight-shaped dossier in `state/agents.cc` - exposes typed `AgentSelfPatch` - reviews/applies bounded lane memory, goal, value, and private-note patches - rejects project truth, authority, graphs, checkpoints, jobs, planning, @@ -157,7 +157,7 @@ context packets instead of inventing its own free-form memory weather. ## Core Inputs -- Role dossiers from `state/agents.msgpack` +- Role dossiers from `state/agents.cc` - Reviewed `AgentSelfPatch` requests - Heartbeat rumination receipts - Sleep-cycle pressure @@ -590,9 +590,9 @@ Files: Commands: ```powershell -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- memory-status --store .\state\agent-memory.msgpack -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- memory-apply-operation --store .\state\agent-memory.msgpack --operation -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- memory-context --store .\state\agent-memory.msgpack --role-id modeling --query "graph ownership" +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- memory-status --store .\state\agent-memory.cc +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- memory-apply-operation --store .\state\agent-memory.cc --operation +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- memory-context --store .\state\agent-memory.cc --role-id modeling --query "graph ownership" ``` Tests: @@ -820,7 +820,7 @@ Out of scope: - no prompt/model runner - no heartbeat integration - no Aquarium surface -- no migration of existing `state/agents.msgpack` +- no migration of existing `state/agents.cc` Verification: diff --git a/notes/archive/epiphany-architectural-teardown.md b/notes/archive/epiphany-architectural-teardown.md index 5bc4b5af..9cfc3a7a 100644 --- a/notes/archive/epiphany-architectural-teardown.md +++ b/notes/archive/epiphany-architectural-teardown.md @@ -28,10 +28,10 @@ host seam. ### Durable State Stores - `EpiphanyThreadState` in Codex protocol/session/rollout state -- native runtime-spine documents in `state/runtime-spine.msgpack` -- heartbeat physiology in `state/agent-heartbeats.msgpack` -- role dossiers in `state/agents.msgpack` -- distilled project memory in `state/map.yaml`, `state/ledgers.msgpack`, and +- native runtime-spine documents in `state/runtime-spine.cc` +- heartbeat physiology in `state/agent-heartbeats.cc` +- role dossiers in `state/agents.cc` +- distilled project memory in `state/map.yaml`, `state/ledgers.cc`, and handoff notes - retrieval manifests and optional Qdrant collections outside the thread state diff --git a/notes/archive/repo-fractal-dataflow-cache-plan.md b/notes/archive/repo-fractal-dataflow-cache-plan.md index e8700dad..9a784013 100644 --- a/notes/archive/repo-fractal-dataflow-cache-plan.md +++ b/notes/archive/repo-fractal-dataflow-cache-plan.md @@ -589,9 +589,9 @@ Files: Commands: ```powershell -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-model -- scan --workspace . --store .\state\repo-model.msgpack -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-model -- status --store .\state\repo-model.msgpack -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-model -- context --store .\state\repo-model.msgpack --query "heartbeat scheduling split" +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-model -- scan --workspace . --store .\state\repo-model.cc +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-model -- status --store .\state\repo-model.cc +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-model -- context --store .\state\repo-model.cc --query "heartbeat scheduling split" ``` Tests: diff --git a/notes/archive/true-epiphany-memory-migration-sandbox-prompt.md b/notes/archive/true-epiphany-memory-migration-sandbox-prompt.md index 8a5a9bc3..6b143afb 100644 --- a/notes/archive/true-epiphany-memory-migration-sandbox-prompt.md +++ b/notes/archive/true-epiphany-memory-migration-sandbox-prompt.md @@ -42,7 +42,7 @@ Use the existing Ghostlight-shaped role memory contract in: - `E:\Projects\EpiphanyAgent\state\agents\README.md` - native `epiphany-agent-memory-store` binary in `E:\Projects\EpiphanyAgent\epiphany-core` -- `E:\Projects\EpiphanyAgent\state\agents.msgpack` +- `E:\Projects\EpiphanyAgent\state\agents.cc` All proposed memory mutations must be expressible as bounded `selfPatch` JSON objects accepted by `epiphany-agent-memory-store review-patch`. @@ -78,7 +78,7 @@ For each primary repo, inspect if present: - `AGENTS.md` - `state/map.yaml` - `state/memory.json` -- `state/ledgers.msgpack` +- `state/ledgers.cc` - `state/evidence.archive.jsonl` only if the live evidence is too thin - `state/scratch.md` - `notes/fresh-workspace-handoff.md` @@ -448,7 +448,7 @@ Write these files: Validate every role memory patch with: ```powershell - cargo run --manifest-path E:\Projects\EpiphanyAgent\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- review-patch --store E:\Projects\EpiphanyAgent\state\agents.msgpack --role-id --patch '' + cargo run --manifest-path E:\Projects\EpiphanyAgent\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- review-patch --store E:\Projects\EpiphanyAgent\state\agents.cc --role-id --patch '' ``` Record status and refusal reasons. Fix rejected patches until they validate, unless a rejection reveals the lesson should not be migrated. @@ -467,13 +467,13 @@ Write these files: - exact command sequence to apply the validated role patches - exact command sequence to apply typed-state candidates to a selected Epiphany thread through `thread/epiphany/update` - - expected changed entries in `state/agents.msgpack` + - expected changed entries in `state/agents.cc` - expected typed state fields changed: `planning`, `graphs`, `graphFrontier`, `investigationCheckpoint`, `observations`, or `evidence` - validation command after apply - rollback plan using git - recommendation on whether to apply now or stage for later review -Do not apply role patches unless the operator explicitly says this sandbox run is allowed to modify `state/agents.msgpack`. Do not apply typed-state candidates unless the operator explicitly names the target thread or workspace state surface. The default deliverable is a reviewable migration packet, but that packet must be rich enough to initialize Epiphany's typed state after review. +Do not apply role patches unless the operator explicitly says this sandbox run is allowed to modify `state/agents.cc`. Do not apply typed-state candidates unless the operator explicitly names the target thread or workspace state surface. The default deliverable is a reviewable migration packet, but that packet must be rich enough to initialize Epiphany's typed state after review. ## Distillation Rules diff --git a/notes/epiphany-anatomy.md b/notes/epiphany-anatomy.md index 712b8aa9..29665fe2 100644 --- a/notes/epiphany-anatomy.md +++ b/notes/epiphany-anatomy.md @@ -20,7 +20,7 @@ Only thinking lanes get embodiment titles. actuators. - `Soul`: verification, invariants, ethics, falsification, and promise-keeping. -Each embodied sub-agent may have lean work-organ state in `state/agents.msgpack`, +Each embodied sub-agent may have lean work-organ state in `state/agents.cc`, may be represented as a heartbeat participant, and may request reviewed `selfPatch` changes to its own lane memory. Persona may additionally project or adopt portable `Persona` state because public personhood is part of its job. diff --git a/notes/epiphany-body-proprioception-pass.md b/notes/epiphany-body-proprioception-pass.md index 01843eb4..5d905b27 100644 --- a/notes/epiphany-body-proprioception-pass.md +++ b/notes/epiphany-body-proprioception-pass.md @@ -97,25 +97,29 @@ The root body has these major organs: ## State Body +Canonical CultCache store files use the `.cc` extension. The local state body +has been migrated to that naming directly; serialization details are +implementation, not file authority. + `state/` currently contains: - `map.yaml`: canonical slow machine map. -- `ledgers.msgpack`: distilled evidence and branch ledger. -- `agents.msgpack`: resident organ state and Persona projection source. -- `agent-heartbeats.msgpack`: heartbeat initiative and cognition physiology. -- `runtime-spine.msgpack`: runtime identity, sessions, jobs, job results, +- `ledgers.cc`: distilled evidence and branch ledger. +- `agents.cc`: resident organ state and Persona projection source. +- `agent-heartbeats.cc`: heartbeat initiative and cognition physiology. +- `runtime-spine.cc`: runtime identity, sessions, jobs, job results, events, receipts, tool calls, model calls, launch requests, and schema catalog surfaces. -- `thread-state.msgpack`: native thread-state store. -- `local-verse.ccmp`: local CultMesh Verse context. -- `memory-graph.msgpack`: local memory graph store. +- `thread-state.cc`: native thread-state store. +- `local-verse.cc`: local CultMesh Verse context. +- `memory-graph.cc`: local memory graph store. - `persona-discord.toml`: Persona Discord boundary configuration. - `void-memory.toml`: Void memory bridge configuration. - `scratch.md` and `scratch-compaction-*.md`: scratch and compaction emergency context. Lock files exist beside several stores. Generated local stores -`state/local-verse.ccmp`, `state/memory-graph.msgpack`, and +`state/local-verse.cc`, `state/memory-graph.cc`, and `.epiphany-character-loop/` are currently untracked. ## Schema Body diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 8563d74a..c3d0ac5a 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -36,8 +36,8 @@ The spine exists in more than twenty-five live paths: - reorientation policy: the `reorient` view lens reuses the same live/stored thread view plus mapped pressure/freshness/watcher signals, then adapts those inputs into pure `epiphany-core` verdict policy. Core derives the bounded `resume`/`regather` decision with checkpoint-path/frontier reasons; app-server only maps the core decision back to protocol shape, without mutating, compacting, scheduling, notifying, or continuing work in [reorient.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/surfaces/reorient.rs:1), [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4514), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:15296). - CRRC coordinator recommendation: the `crrc` view lens reuses pressure/freshness/watcher/reorientation mapping plus the fixed `reorient-worker` binding and result read-back helper, recognizes already accepted reorientation findings so an accepted result is not recommended for acceptance again, and calls pure `epiphany-core` CRRC policy to return one bounded recommendation such as continue, prepare checkpoint, launch worker, wait, review, accept, or regather manually without mutating, launching, accepting, compacting, notifying, scheduling, or silently continuing work in [v2.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs:4661), [crrc.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/surfaces/crrc.rs:60), and [codex_message_processor.rs](E:/Projects/EpiphanyAgent/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs:4546). - role ownership projection: the `roles` view lens reuses the same state/jobs/pressure/reorient/result/CRRC signals as the coordinator loop, and projects implementation, Imagination/planning, modeling/checkpoint, verification/review, and reorientation lanes with owner roles, status, linked jobs, authority scopes, and recommended scene actions without launching, scheduling, accepting, compacting, notifying, or mutating state. App-server adapts concrete protocol jobs and thread state, while the pure role-board projection policy now lives in [role_board.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/surfaces/role_board.rs:70). -- role specialist launch/read-back/acceptance: app-server declares experimental `thread/epiphany/roleLaunch`, read-only `thread/epiphany/roleResult`, and write-gated `thread/epiphany/roleAccept`. `roleLaunch` accepts fixed Imagination/planning, modeling/checkpoint, and verification/review role ids, builds bounded specialist payloads from authoritative Epiphany state, routes them through the heartbeat-backed `epiphany_launch_job` seam, opens a typed runtime-spine job receipt, and emits the normal `jobLaunch` state update for `jobBindings` only. `roleResult` resolves heartbeat bindings through typed runtime-spine job results and seals legacy `agent_jobs` bindings, then adapts worker JSON through core role-result interpretation in [role_result.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/surfaces/role_result.rs:45), projecting structured output as a reviewable finding with verdict, summary, next safe move, inspected files, frontier/evidence ids, optional `statePatch`, optional `selfPatch`, coordinator `selfPersistence` review, and errors without mutation, promotion, scheduling, or hidden continuation. `selfPatch` is a Ghostlight-shaped lane-memory request, not project truth: core accepts only role-matched, bounded, evidence-grounded memory/goal/value/private-note mutations and refuses objectives, graphs, checkpoints, scratch, planning, jobs, authority, code edits, or raw transcripts with reasons. `roleAccept` accepts completed heartbeat findings from typed runtime-spine results, accepts completed Imagination findings only when they contain a valid planning-only patch with draft Objective Draft review gates, accepts completed modeling/checkpoint findings only with a modeling-safe `statePatch`, applies accepted project patches through the existing Epiphany state validator, and uses core acceptance bundle policy to build the audit observation, evidence, and typed receipt. GUI/coordinator accept paths then apply accepted `selfPatch` requests to typed CultCache role dossiers in `state/agents.msgpack` through the native `epiphany-agent-memory-store` binary. Implementation stays owned by the main coding agent, verification output remains review-only, and reorientation stays on the CRRC-specific `reorientLaunch` / `reorientResult` / `reorientAccept` path. -- shared prompt memory projection and role dossiers: the prompt config now carries `[shared].persistent_memory` in [epiphany_specialists.toml](E:/Projects/EpiphanyAgent/epiphany-core/src/prompts/epiphany_specialists.toml:2). App-server parses that block through the bridge, prepends it with `epiphany_agent_prompt_with_memory` for embodied lanes, and keeps reorientation as a Continuity worker/protocol path rather than a role dossier. The base `` doctrine reinforces the Perfect Machine rule through [prompt.rs](E:/Projects/EpiphanyAgent/epiphany-state-model/src/prompt.rs:31) and [epiphany_doctrine.md](E:/Projects/EpiphanyAgent/epiphany-state-model/src/prompts/epiphany_doctrine.md:1). Individual Ghostlight-shaped role dossiers now live in typed CultCache `state/agents.msgpack` for embodied sub-agent lanes, and the native `epiphany-agent-memory-store` binary validates, reviews, and applies bounded self-memory patches through the Rust store. +- role specialist launch/read-back/acceptance: app-server declares experimental `thread/epiphany/roleLaunch`, read-only `thread/epiphany/roleResult`, and write-gated `thread/epiphany/roleAccept`. `roleLaunch` accepts fixed Imagination/planning, modeling/checkpoint, and verification/review role ids, builds bounded specialist payloads from authoritative Epiphany state, routes them through the heartbeat-backed `epiphany_launch_job` seam, opens a typed runtime-spine job receipt, and emits the normal `jobLaunch` state update for `jobBindings` only. `roleResult` resolves heartbeat bindings through typed runtime-spine job results and seals legacy `agent_jobs` bindings, then adapts worker JSON through core role-result interpretation in [role_result.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/surfaces/role_result.rs:45), projecting structured output as a reviewable finding with verdict, summary, next safe move, inspected files, frontier/evidence ids, optional `statePatch`, optional `selfPatch`, coordinator `selfPersistence` review, and errors without mutation, promotion, scheduling, or hidden continuation. `selfPatch` is a Ghostlight-shaped lane-memory request, not project truth: core accepts only role-matched, bounded, evidence-grounded memory/goal/value/private-note mutations and refuses objectives, graphs, checkpoints, scratch, planning, jobs, authority, code edits, or raw transcripts with reasons. `roleAccept` accepts completed heartbeat findings from typed runtime-spine results, accepts completed Imagination findings only when they contain a valid planning-only patch with draft Objective Draft review gates, accepts completed modeling/checkpoint findings only with a modeling-safe `statePatch`, applies accepted project patches through the existing Epiphany state validator, and uses core acceptance bundle policy to build the audit observation, evidence, and typed receipt. GUI/coordinator accept paths then apply accepted `selfPatch` requests to typed CultCache role dossiers in `state/agents.cc` through the native `epiphany-agent-memory-store` binary. Implementation stays owned by the main coding agent, verification output remains review-only, and reorientation stays on the CRRC-specific `reorientLaunch` / `reorientResult` / `reorientAccept` path. +- shared prompt memory projection and role dossiers: the prompt config now carries `[shared].persistent_memory` in [epiphany_specialists.toml](E:/Projects/EpiphanyAgent/epiphany-core/src/prompts/epiphany_specialists.toml:2). App-server parses that block through the bridge, prepends it with `epiphany_agent_prompt_with_memory` for embodied lanes, and keeps reorientation as a Continuity worker/protocol path rather than a role dossier. The base `` doctrine reinforces the Perfect Machine rule through [prompt.rs](E:/Projects/EpiphanyAgent/epiphany-state-model/src/prompt.rs:31) and [epiphany_doctrine.md](E:/Projects/EpiphanyAgent/epiphany-state-model/src/prompts/epiphany_doctrine.md:1). Individual Ghostlight-shaped role dossiers now live in typed CultCache `state/agents.cc` for embodied sub-agent lanes, and the native `epiphany-agent-memory-store` binary validates, reviews, and applies bounded self-memory patches through the Rust store. - fixed-lane coordinator: the `coordinator` view lens composes role, pressure, reorient, CRRC, role result, and reorient result signals, and returns one current action without mutation. App-server assembles host/protocol inputs, but the pure fixed-lane decision ladder now lives in `epiphany-core` in [coordinator.rs](E:/Projects/EpiphanyAgent/epiphany-core/src/surfaces/coordinator.rs:132). Review acceptance and implementation clearance are intentionally different: an accepted verification finding clears implementation only when the verifier verdict is `pass`; accepted `needs-evidence`, `needs-review`, or `fail` findings route back toward modeling/checkpoint strengthening before code work resumes. `regatherManually` is now fallback, not a supervisor-puppeteering excuse: completed unaccepted modeling findings stop at `reviewModelingResult`, modeling acceptance precedes verification, and fixed lane actions are considered before manual regather. - MVP operator view: native `epiphany-mvp-status` launches app-server over stdio, starts or reads one thread, gathers scene, planning, pressure, reorient, jobs, roles, Imagination/modeling/verification role results, reorient result, CRRC responses, heartbeat, and Persona bubble artifacts, and renders them as text or JSON so the loop can be dogfooded without Python owning the product surface. - MVP dogfood runner: the old Python runner was cut with the `agent_jobs` path. The replacement must be native Rust/CultCache/CultNet and complete heartbeat-owned runtime-spine job results with operator-safe artifacts. diff --git a/notes/epiphany-fork-implementation-plan.md b/notes/epiphany-fork-implementation-plan.md index 1343b832..7eae0fd3 100644 --- a/notes/epiphany-fork-implementation-plan.md +++ b/notes/epiphany-fork-implementation-plan.md @@ -5,7 +5,7 @@ Codex. It is not a changelog. Git history, commit messages, smoke artifacts, and targeted logs already do the proof job without turning this file into a hay -bale; `state/ledgers.msgpack` carries only distilled belief-changing evidence. +bale; `state/ledgers.cc` carries only distilled belief-changing evidence. The purpose of this note is to answer four questions: @@ -28,7 +28,7 @@ forever becomes the documentation equivalent of the Jenga tower. Historical detail belongs in: - `git log` -- `state/ledgers.msgpack`, when the detail changes what a future agent should believe +- `state/ledgers.cc`, when the detail changes what a future agent should believe - `notes/fresh-workspace-handoff.md` - `notes/epiphany-current-algorithmic-map.md` @@ -87,7 +87,7 @@ The landed machine now has: - first Codex-independent native runtime vertebra through `epiphany-runtime-spine`, storing runtime identity, sessions, jobs, job results, and events as typed CultCache MessagePack documents, opening/completing native jobs, projecting job-result counts, and emitting a framed CultNet hello message for the native contract - first Rust CultMesh local-node integration: `vendor/cultmesh-rs` now provides the repo-contained CultMesh surface over vendored CultCache/CultNet, and `epiphany-core` depends on that surface for local `EpiphanyCultMeshStatusEntry`, `EpiphanyCultMeshVersePolicyEntry`, and `EpiphanyCultMeshGlobalRoomPolicyEntry` round-trip smokes instead of treating raw CultNet as the ergonomic app-facing database layer - first local Verse query surface: `notes/epiphany-verse-architecture.md` names Verse/Odin/Gjallar/Yggdrasil ownership, `epiphany-verse-query` can seed/query a compact CultMesh-backed local Verse context bundle for operator inspection and future dynamic prompt assembly without granting semantic memory, public sharing, or state-admission authority, can import `gjallar.affordance.v1` daemon affordance summaries from Odin/Gjallar stores, and `tools/epiphany_local_run.ps1 -Mode status` now writes that packet as `local-verse-context.json` beside native status/operator snapshot artifacts while auto-detecting the sibling Odin Gjallar store when present -- first dynamic prompt launch handoff: role/reorient worker launch documents carry optional `dynamicPromptContext`, runtime prompt assembly consumes that field into worker instructions, `epiphany-prompt-context-smoke` proves rendered Verse/memory context can ride a role launch document without admitting unrelated private-looking text, live bridge role/reorient launch paths 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 dynamic packet survives in a persisted runtime-spine worker launch request +- first dynamic prompt launch handoff: role/reorient worker launch documents carry optional `dynamicPromptContext`, runtime prompt assembly consumes that field into worker instructions, `epiphany-prompt-context-smoke` proves rendered Verse/memory context can ride a role launch document without admitting unrelated private-looking text, live bridge role/reorient launch paths now feed local Verse plus memory graph context from sibling `local-verse.cc` and `memory-graph.cc` stores beside runtime-spine, and the bridge launch-context test proves the dynamic packet survives in a persisted runtime-spine worker launch request - first Hands/Soul/Continuity contract catalogs: action, verification, and continuity now have native `epiphany-core` contract families, runtime-spine advertisement, CultMesh policy documents, and local CultMesh smoke coverage beside Mind/Substrate Gate/Eyes; Hands now also has typed runtime-spine document bodies/helpers for `HandsActionIntent`, `HandsActionReview`, `HandsPatchReceipt`, `HandsCommandReceipt`, and `HandsCommitReceipt`, with `epiphany-hands-action-smoke` proving the action receipt chain without live file execution; Implementation now launches as `implementation-branch-turn-worker` owned by `epiphany-hands`, receives dynamic Proprioception context, gets a Substrate Gate mutation grant, and must make at most one branch-turn commit before Proprioception refresh - live-specialist runner must be rebuilt around heartbeat/runtime-spine result receipts - first Phase 6 Aquarium operator shell extracted to sibling repo `E:\Projects\EpiphanyAquarium`, a Tauri v2 + React/WebGL client over the existing status bridge, dogfood artifacts, and GUI action artifacts, with its own distilled interface state/memory/doctrine plus durable checkpoint preparation, bounded status/coordinator artifact buttons, fixed modeling/verification/reorient launch and read-back buttons, and explicit review-gated reorient acceptance @@ -195,7 +195,7 @@ The current lessons: - Keep the implementation plan as a distilled forward plan, not a trophy wall. - Keep the harness-surfaces note as a surface contract, not a dump of every possible future type. - Keep `fresh-workspace-handoff.md` as a re-entry packet, not a substitute brain. -- Keep `state/ledgers.msgpack` as a durable distilled ledger, not an activity feed. +- Keep `state/ledgers.cc` as a durable distilled ledger, not an activity feed. - Revert failed code hypotheses immediately. - Distill failed or obsolete state hypotheses just as aggressively. - Treat unpersisted source-gathering and slice-planning work as volatile. If compaction interrupts it, the correct recovery is re-gathering from source or a persisted checkpoint, not continuing from the ghost of the old context. diff --git a/notes/epiphany-verse-architecture.md b/notes/epiphany-verse-architecture.md index 3dc4b3ee..e66342f4 100644 --- a/notes/epiphany-verse-architecture.md +++ b/notes/epiphany-verse-architecture.md @@ -184,9 +184,9 @@ role-local instruction and the output contract, so dynamic Verse/memory context is executable worker input without becoming durable state authority. The bridge launch path now feeds that field for live role/reorient launches. -It derives a sibling `local-verse.ccmp` CultMesh store from the runtime-spine +It derives a sibling `local-verse.cc` CultMesh store from the runtime-spine store path, seeds/queries the local Verse context, refreshes/loads a sibling -`memory-graph.msgpack` from the current typed thread-state repo graph, cuts a +`memory-graph.cc` from the current typed thread-state repo graph, cuts a bounded semantic memory packet from that graph, and renders both into `dynamicPromptContext`. If the graph is thin, the packet says so instead of pretending semantic retrieval was rich. @@ -231,7 +231,7 @@ the persisted launch document, and asserts the Verse/memory packet survived. The local-run status smoke is now the first operator read proof for this chain. It writes `local-verse-context.json` from a CultMesh store under -`.epiphany-run/cultmesh/local-verse.ccmp` and leaves the compact packet beside +`.epiphany-run/cultmesh/local-verse.cc` and leaves the compact packet beside the operator snapshot. No live swarm runner is cleared until pause/brake, stale active-turn recovery, diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 57bc21cd..990ea88f 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -4,7 +4,7 @@ This is the re-entry rite for `E:\Projects\EpiphanyAgent`: the waking chant for the local machine-spirit before it touches the forge. It is intentionally short. Historical proof belongs in git, commit messages, -smoke artifacts, and the distilled `state/ledgers.msgpack` evidence reliquary; +smoke artifacts, and the distilled `state/ledgers.cc` evidence reliquary; exact control flow belongs in `notes/epiphany-current-algorithmic-map.md`; forward campaign planning belongs in `notes/epiphany-fork-implementation-plan.md`. Do not let this file become a second brain. That way lies holy-looking sludge. @@ -34,12 +34,12 @@ remembers doctrine; the branch remembers the blade. - Do not copy exact branch or HEAD from this note. Run `git status --short --branch` and `git log --oneline -5`. - Canonical anatomy now lives in `notes/epiphany-anatomy.md`. Embodied sub-agents are Self, Persona, Imagination, Eyes, Proprioception, Hands, and Soul. Body, Mind, Continuity, and Substrate Gate are substrate/state/protocol surfaces, not sub-agent identities. State is split by layer: `work_organ` for resident Epiphany sub-agents, `persona` for portable public/person-shaped state shared by Epiphany Persona, VoidBot repo Personas, and Ghostlight characters, and heartbeat/swarm state for scheduling and coordination physiology. Persona state now carries provenance, required public presentation, `date-time` timestamps, typed `candidateActions`, strict anchored thoughts with non-authoritative extensions, custom enum companion labels, and typed affect records for bonds/status reads/doctrine stances. Persona is no longer a renamed legacy public organ: the former public-role token is not a live role id, schema surface, action, artifact namespace, or internal alias; the tracked Persona memory and heartbeat stores were rebuilt/migrated, stale heartbeat artifacts were purged, and the native MVP status smoke artifact scanned clean for legacy public-organ authority tokens. -- The repo now has a one-command local operator path: `.\tools\epiphany_local_run.ps1`. Default mode is `smoke`; it builds the retained Codex app-server compatibility edge, builds native Epiphany operator binaries, runs the coordinator smoke, and writes launcher artifacts under `.epiphany-run/` plus coordinator artifacts under `.epiphany-dogfood/`. `-Mode status` is now Epiphany-native: it builds only Epiphany operator binaries, reads `state/thread-state.msgpack` when present, derives status through `epiphany-core`, and does not start or require `codex-app-server`. Use `-Mode plan` or `-Mode run -MaxSteps 4` for the raw bridge-equipped coordinator entrypoints; use `-Mode mvp -PersonaInput "" -MaxSteps 4` for the local product cycle that projects Persona's character turn, writes a Persona/Aquarium bubble, bootstraps a minimal local checkpoint for fresh threads, runs the coordinator with auto-tools, then runs heartbeat sleep/dream maintenance. Live plan/run/mvp modes use the workspace `state/runtime-spine.msgpack`, because CodexThread launch writes worker requests there; the run bundle remains artifact evidence, not runtime lifecycle authority. Add `-ThreadId ` and `-Workspace ` to inspect or continue an existing thread. `status`, `plan`, and `smoke` do not spend model calls; `run` and `mvp` build and use `epiphany-openai-runtime`. Coordinator workers now launch detached and are polled through runtime-spine instead of blocking the coordinator. MVP runs are non-ephemeral by default so `-ThreadId ` can resume and poll later. `-MaxRuntimeSeconds ` is passed into worker runtime; timeout writes a failed worker receipt and exits. Failed modeling now blocks downstream verification until the failed result is reviewed. +- The repo now has a one-command local operator path: `.\tools\epiphany_local_run.ps1`. Default mode is `smoke`; it builds the retained Codex app-server compatibility edge, builds native Epiphany operator binaries, runs the coordinator smoke, and writes launcher artifacts under `.epiphany-run/` plus coordinator artifacts under `.epiphany-dogfood/`. `-Mode status` is now Epiphany-native: it builds only Epiphany operator binaries, reads `state/thread-state.cc` when present, derives status through `epiphany-core`, and does not start or require `codex-app-server`. Use `-Mode plan` or `-Mode run -MaxSteps 4` for the raw bridge-equipped coordinator entrypoints; use `-Mode mvp -PersonaInput "" -MaxSteps 4` for the local product cycle that projects Persona's character turn, writes a Persona/Aquarium bubble, bootstraps a minimal local checkpoint for fresh threads, runs the coordinator with auto-tools, then runs heartbeat sleep/dream maintenance. Live plan/run/mvp modes use the workspace `state/runtime-spine.cc`, because CodexThread launch writes worker requests there; the run bundle remains artifact evidence, not runtime lifecycle authority. Add `-ThreadId ` and `-Workspace ` to inspect or continue an existing thread. `status`, `plan`, and `smoke` do not spend model calls; `run` and `mvp` build and use `epiphany-openai-runtime`. Coordinator workers now launch detached and are polled through runtime-spine instead of blocking the coordinator. MVP runs are non-ephemeral by default so `-ThreadId ` can resume and poll later. `-MaxRuntimeSeconds ` is passed into worker runtime; timeout writes a failed worker receipt and exits. Failed modeling now blocks downstream verification until the failed result is reviewed. - Current Mom-ready status: the normal MVP pass reaches Persona -> coordinator -> detached runtime -> heartbeat sleep, and modeling workers now complete through the ChatGPT subscription transport. The first failure was a stack of violated observability/runtime invariants: worker prompts prepended the whole shared persistent-memory rite, Responses frame liveness was invisible until completion, and the runtime tried to persist hundreds of text deltas before completing the worker job. Role/reorient workers now get a compact Epiphany worker boundary instead of full persistent memory; runtime-spine records sampled raw Responses frame kinds with small previews; contiguous reasoning/text deltas compact before durable storage; and live proofs completed `2fe38dcd-d99e-4c73-9a58-afcc81f851c7`, `241e3851-e3ea-4877-a63b-0d2bbd96a7e2`, and `85149a26-6975-403f-ac93-092b717c5825` instead of timing out. The second failure was stale lifecycle authority: completed runtime jobs remained as unresolved `runtime_links`, replacement launches treated historical active links as current, and one bad validation path opened an orphan job before rejecting the state patch. Latest-link-wins is now the runtime-link invariant, terminal links project completed jobs, stale active history cannot veto replacement, launch validation happens before opening runtime jobs, and completed-but-unreviewable modeling findings stop for review instead of relaunching the same lane. The Eyes/source-gather fork is now landed: Research is a fixed Eyes lane with launch/result/accept/status/coordinator/protocol support, and `regather-needed` modeling findings route to `LaunchResearch` instead of relaunching blind Proprioception. Research statePatch admission is Eyes-shaped only: observations, evidence, scratch, and optional investigationCheckpoint; no graph, planning, objective, or checkpoint authority. Mind admission now leaves typed runtime-spine proof: role/reorient acceptance persists `epiphany.mind.gateway_review` before state admission and `epiphany.mind.state_commit_receipt` after admission with the resulting durable revision. Launch contracts now split the broad receipt catalogue from effect-specific proof profiles for state admission, evidence promotion, repo action, verification, and continuity recovery. Research evidence promotion enforces Substrate Gate read/snapshot grant, Eyes evidence packet, and Mind review before state admission; Verification acceptance enforces Soul verdict and Mind review; Reorient acceptance enforces Continuity recovery receipt and Mind review. The next concrete rebuild layer is Hands action proof once action lanes become live, or collapsing Mind review/state mutation/commit into one state-admission primitive. - The investment dossier readiness target is now explicit: `E:\Projects\gamecult-site\docs\gamecult_integrated_dossier.tex` expects Epiphany to be part of a Bifrost-first labor loop, not only a local Mom demo. The external proof bar is: Bifrost owns topics/work items/dispatch packets/receipts/credit/reward pressure; Epiphany executes bounded work; maintainers review artifacts; public/operator evidence records scope, consent, roles, model spend, review load, artifacts, accepted/rejected outcome, memory lessons, and case-study permission; and private worker/operator/agent context stays sealed. Diligence also asks for a live fresh-repo Epiphany demo, Bifrost work item/topic/agent transport/receipt/ledger demo, CultMesh status, VoidBot/Discord swarm demo, compute/output metrics, and security model for secrets/write permissions/public-private exports. - This Codex operator's own roadmap/todo posture has been retuned for this scale target, with the Epiphany Imagination specialist as an optional sub-agent rail rather than the whole point. `notes/epiphany-investor-readiness-roadmap.md` now says: make the local Mom MVP a repeatable proof bundle; build the Bifrost-first external-work bridge; add compute/review/accepted-artifact accounting; prove fresh-repo operation without supervisor contamination; keep public/operator-safe exports sealed; and treat angel capital as fuel for capacity, not command authority. The Imagination specialist prompt was also updated so investor-scale Objective Drafts must name Bifrost provenance, bounded Epiphany proof, maintainer review, receipts/ledger evidence, compute/output metrics, public/private export safety, consent, and legal/security gates. -- Local operator runs now write typed CultMesh intent/receipt documents to `.epiphany-run/cultmesh/operator-runs.ccmp` through `epiphany-operator-run`. The wrapper writes intent before acting and a completion receipt after success; this is the local consent/trace rail, not a hidden scheduler queue. -- Status-mode local runs now also write a native CultMesh operator snapshot to `.epiphany-run/cultmesh/operator-snapshots.ccmp` through `epiphany-operator-snapshot`. That snapshot distills the operator-safe MVP status artifact into typed fields such as thread id, state status, coordinator action, CRRC action, reorient action, available actions, and artifact refs; it does not preserve the raw JSON status blob as internal state. +- Local operator runs now write typed CultMesh intent/receipt documents to `.epiphany-run/cultmesh/operator-runs.cc` through `epiphany-operator-run`. The wrapper writes intent before acting and a completion receipt after success; this is the local consent/trace rail, not a hidden scheduler queue. +- Status-mode local runs now also write a native CultMesh operator snapshot to `.epiphany-run/cultmesh/operator-snapshots.cc` through `epiphany-operator-snapshot`. That snapshot distills the operator-safe MVP status artifact into typed fields such as thread id, state status, coordinator action, CRRC action, reorient action, available actions, and artifact refs; it does not preserve the raw JSON status blob as internal state. - `epiphany-mvp-status --source native` is the current provider-neutral status boundary. It projects scene, pressure, jobs, roles, planning, reorient, CRRC, coordinator status, and runtime-linked worker lifecycle from native core surfaces. It reads runtime-spine job/result receipts for linked jobs so failed workers show as failed in role results, jobs, roles, and coordinator source signals, while successful semantic findings still require typed role/reorient worker result documents. Keep future pluggable model-provider work behind launch/result/runtime documents; do not let provider choice leak into status, prompt authority, scheduler policy, or durable `EpiphanyThreadState`. - `epiphany-model-runtime` is the current provider-neutral executable boundary. It is built by the `epiphany-openai-runtime` crate for now and accepts `--provider openai-codex`; the old `epiphany-openai-runtime` binary, `--openai-runtime-bin`, and `openai-runtime` executor name survive only as compatibility aliases. Coordinator run mode, local wrapper run mode, and repo birth runner should call `--model-runtime-bin` plus `--model-provider`. The runtime default model is `gpt-5.4`, with `EPIPHANY_MODEL` / `CODEX_MODEL` as overrides; `gpt-5.5` was rejected by this Codex-compatible transport as requiring a newer Codex. The typed request/event/receipt contract is now provider-neutral in `epiphany-model-adapter` as `epiphany.model_request.v0`, `epiphany.model_stream_event.v0`, `epiphany.model_receipt.v0`, and `epiphany.model_adapter_status.v0`; OpenAI/Codex documents are adapter evidence behind that boundary, not scheduler/status/state authority. - Epiphany prompt authority is now explicitly Codex-free and core-owned. Bundled specialist prompts live in `epiphany-core/src/prompts/epiphany_specialists.toml`; `epiphany-core::agent_launch` owns prompt parsing/rendering, role/reorient launch instructions, role binding ids, output schemas, coordinator note rendering, and CRRC pre-compaction prompt rendering. `epiphany-codex-bridge/src/launch.rs` is only a compatibility facade for Codex-facing callers, and bridge pressure rendering delegates back to core. The no-Codex prompt authority regression test lives beside that core owner, and `epiphany-repo-birth-runner` no longer accepts `codex-exec` or `--codex-bin`. Use `epiphany-model-runtime` for startup-only birth specialists so Codex cannot wrap Epiphany agents in its own prompt machinery. @@ -48,10 +48,10 @@ remembers doctrine; the branch remembers the blade. - Native status now exposes that quarantined bridge spine without granting it authority. `runtime_spine_status` counts tool invocation intents, receipts, and pending calls; `runtime_tool_invocation_statuses` derives read-only intent/receipt status rows; `epiphany-runtime-spine status` reports the counts; and `epiphany-mvp-status --runtime-store ` renders the latest tool calls under `tools`. This is operator visibility only. The model-runtime feedback seam is also now typed: MCP-shaped model tool calls preserve the original provider `call_id` plus source model request id; `epiphany-model-runtime tool-followup` builds a provider-neutral follow-up `EpiphanyModelRequest` from completed typed tool receipts using the previous provider response id; and `epiphany-model-runtime tool-followup-turn` derives and runs that continuation through the selected provider in one runtime-owned operation. `epiphany-model-runtime run-worker --auto-tools --tool-adapter-bin ` now lets a launched worker automatically execute typed MCP intents through the quarantined Codex MCP adapter, feed receipts back through follow-up model turns, and only then parse/complete the worker result. Codex still executes the quarantined MCP edge; Epiphany owns the continuation request shape and invocation boundary. - The active foundation directive is now `notes/codex-starvation-and-cultnet-liberation-plan.md`. The previous Codex app-server control-plane rebuild made Epiphany less rotten inside Codex, but that is not the destination. Epiphany must become a native CultCache/CultMesh/CultNet runtime while remaining an honest modified Codex-derived backend for subscription auth/model use. Codex should remain relatively vanilla and keep doing Codex things, including useful app-server and streaming bridge affordances, but it must not own Epiphany state, processes, prompts, scheduler decisions, or policy. The bridge handles interop; Codex and Epiphany do not get to rummage around in each other's organs. - `notes/epiphany-cultmesh-dreaming-roadmap.md` is the new concrete design for distributed Epiphany dreaming. The invariant is hard: private state stays local; public dreams are separately authored typed documents distributed through CultMesh/CultNet; foreign dreams are thought weather until a reviewed local adoption receipt digests them. The first code slice should be dream schemas plus a local CultMesh-backed store, not public fanout. -- 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, local operator run intent/receipt round-trip, and imported `gjallar.affordance.v1` daemon affordance summaries through CultMesh. `notes/epiphany-verse-architecture.md` now names the local Verse/Odin/Yggdrasil architecture: Odin sees advertised Verse metadata without bypassing boundaries, Gjallar turns Odin sight into agent-ready affordances, 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 if `EPIPHANY_GJALLAR_AFFORDANCE_STORE` points at a Gjallar store they import daemon affordances before rendering. 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; it auto-detects `E:\Projects\Odin\scratch\gjallar\gjallar.affordances.cc` when present. 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 --gjallar-affordance-store E:\Projects\Odin\scratch\gjallar\gjallar.affordances.cc`, `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 Persona posts. MCP is not the native GameCult daemon control path; daemon discovery/inspection/control should travel through Odin, Gjallar, Eve/CultUI, CultMesh, CultNet, and provider-owned command receipts. +- 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.cc` 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, local operator run intent/receipt round-trip, and imported `gjallar.affordance.v1` daemon affordance summaries through CultMesh. `notes/epiphany-verse-architecture.md` now names the local Verse/Odin/Yggdrasil architecture: Odin sees advertised Verse metadata without bypassing boundaries, Gjallar turns Odin sight into agent-ready affordances, 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.cc` and `memory-graph.cc` stores beside runtime-spine, and if `EPIPHANY_GJALLAR_AFFORDANCE_STORE` points at a Gjallar store they import daemon affordances before rendering. 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.cc` beside `status.json` and the operator snapshot; it auto-detects `E:\Projects\Odin\scratch\gjallar\gjallar.affordances.cc` when present. 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.cc --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.cc --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.cc --runtime-id epiphany-operator-run-smoke --run-id smoke-run`, `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-verse-query -- smoke --gjallar-affordance-store E:\Projects\Odin\scratch\gjallar\gjallar.affordances.cc`, `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 Persona posts. MCP is not the native GameCult daemon control path; daemon discovery/inspection/control should travel through Odin, Gjallar, Eve/CultUI, CultMesh, CultNet, and provider-owned command receipts. - `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 plus a launchable branch-turn lane. `epiphany-core::hands_gateway` owns `HandsActionIntent`, `HandsActionReview`, `HandsPatchReceipt`, `HandsCommandReceipt`, and `HandsCommitReceipt`; 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/command/commit 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. Implementation is no longer a main-agent-only dead launch path: `implementation-branch-turn-worker` is owned by `epiphany-hands`, receives dynamic Proprioception/Verse context, gets a Substrate Gate mutation grant from the bridge, and its prompt/output schema require one task branch, at most one commit, branch/commit/changed-path/command evidence, and a Proprioception branch-map refresh request. `roleAccept` still refuses Implementation findings. Runtime completion now emits Hands intent/review/patch receipts from implementation results with `changedPaths`, emits a Hands commit receipt when `branchName` plus `commitSha` are present, and emits `HandsCommandReceipt` only from matching typed command-like tool invocation receipts with command plus exit-code proof. Hands receipt ids are projected into the typed Implementation result, and coordinator policy routes a completed Hands commit to Proprioception/modeling refresh until an accepted modeling result is newer than the commit; both the Codex bridge coordinator path and native `epiphany-mvp-status` compute that refresh-debt signal. Coordinator JSON/protocol, rendered MVP status, status smoke, CultMesh operator snapshots, and coordinator-run `coordinationGuards` now expose the debt as a first-class operator signal, including whether Implementation launch was suppressed for modeling refresh. The coordinator runner now maps `continueImplementation` into the Implementation role-launch/runtime path instead of stopping at the recommendation. Next hardening slice: run the non-ephemeral Hands branch-turn smoke, prove bounded branch/commit evidence appears, then prove the next coordinator/status pass routes to Proprioception/modeling refresh before another Hands turn. +- Hands now has a first executable action receipt spine plus a launchable branch-turn lane. `epiphany-core::hands_gateway` owns `HandsActionIntent`, `HandsActionReview`, `HandsPatchReceipt`, `HandsCommandReceipt`, and `HandsCommitReceipt`; 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/command/commit receipt ids from `.epiphany-smoke\runtime-spine\hands-action-smoke.cc`; and the repo-action launch proof profile now requires action intent, action review, and patch receipt together. Implementation is no longer a main-agent-only dead launch path: `implementation-branch-turn-worker` is owned by `epiphany-hands`, receives dynamic Proprioception/Verse context, gets a Substrate Gate mutation grant from the bridge, and its prompt/output schema require one task branch, at most one commit, branch/commit/changed-path/command evidence, and a Proprioception branch-map refresh request. `roleAccept` still refuses Implementation findings. Runtime completion now emits Hands intent/review/patch receipts from implementation results with `changedPaths`, emits a Hands commit receipt when `branchName` plus `commitSha` are present, and emits `HandsCommandReceipt` only from matching typed command-like tool invocation receipts with command plus exit-code proof. Hands receipt ids are projected into the typed Implementation result, and coordinator policy routes a completed Hands commit to Proprioception/modeling refresh until an accepted modeling result is newer than the commit; both the Codex bridge coordinator path and native `epiphany-mvp-status` compute that refresh-debt signal. Coordinator JSON/protocol, rendered MVP status, status smoke, CultMesh operator snapshots, and coordinator-run `coordinationGuards` now expose the debt as a first-class operator signal, including whether Implementation launch was suppressed for modeling refresh. The coordinator runner now maps `continueImplementation` into the Implementation role-launch/runtime path instead of stopping at the recommendation. Next hardening slice: run the non-ephemeral Hands branch-turn smoke, prove bounded branch/commit evidence appears, then prove the next coordinator/status pass routes to Proprioception/modeling refresh before another Hands turn. - `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`. @@ -136,7 +136,7 @@ remembers doctrine; the branch remembers the blade. - The May 2026 foundation migration is closed enough to archive. `notes/archive/epiphany-architectural-teardown.md` and `notes/archive/epiphany-ideal-architecture-rebuild-plan.md` remain provenance for the host-seam suspicion pass and rebuild blueprint, but current authority is the top-level map, fork plan, anatomy, and contract docs. The rebuild moved scene projection, freshness derivation, pressure policy, targeted context shards, bounded graph traversal, job/progress view derivation, planning view derivation, reorientation resume/regather verdict policy, pure CRRC recommendation policy, fixed-lane coordinator decision policy, role-board projection policy, role/reorient result interpretation, role self-persistence review policy, and role/reorient acceptance bundle policy into `epiphany-core`; typed acceptance receipts replaced summary-string identity for live accept paths, runtime links are dual-written on launch, and result read-back now prefers runtime links. - Do not continue Aquarium UI, bridge, Persona, or dogfood expansion until the teardown has a source-grounded cleanup slice plan. Epiphany is the foundation; patches on patches are not a purification rite, they are how the altar becomes load-bearing garbage. - Phase 1 through Phase 5 are complete enough. -- Phase 6 has canonical read-only `thread/epiphany/view` lenses for scene, jobs, roles, planning, pressure, reorient, CRRC, and coordinator; separate read-only `thread/epiphany/freshness`, `thread/epiphany/context`, and `thread/epiphany/graphQuery` query surfaces; `thread/epiphany/reorientResult`; and `thread/epiphany/roleResult`. Durable `jobBindings` are now legacy launcher compatibility slots only; they keep binding id/kind/scope/owner/authority/linkage/blocking reason while durable `runtimeLinks` hold runtime-spine job/result association. The old standalone scene/jobs/roles/planning/pressure/reorient/CRRC/coordinator read verbs have been deleted; read those projections through view lenses. New `thread/epiphany/jobLaunch`, `thread/epiphany/jobInterrupt`, `thread/epiphany/roleLaunch`, and `thread/epiphany/reorientLaunch` writes open typed runtime-spine job receipts under `state/runtime-spine.msgpack` and do not require the Codex SQLite state runtime. Freshness carries watcher-backed invalidation inputs, graphQuery traverses authoritative typed graph neighborhoods and path/symbol matches without mutation, planning projects typed captures/backlog/roadmap/objective drafts without adopting work, roles project implementation/imagination/modeling/verification/reorientation ownership from existing signals without becoming a scheduler, `roleResult` and `reorientResult` read heartbeat-backed typed runtime-spine job results through runtime links when present, and `roleAccept` / `reorientAccept` accept completed heartbeat findings by writing typed acceptance receipts while remaining explicit review gates. +- Phase 6 has canonical read-only `thread/epiphany/view` lenses for scene, jobs, roles, planning, pressure, reorient, CRRC, and coordinator; separate read-only `thread/epiphany/freshness`, `thread/epiphany/context`, and `thread/epiphany/graphQuery` query surfaces; `thread/epiphany/reorientResult`; and `thread/epiphany/roleResult`. Durable `jobBindings` are now legacy launcher compatibility slots only; they keep binding id/kind/scope/owner/authority/linkage/blocking reason while durable `runtimeLinks` hold runtime-spine job/result association. The old standalone scene/jobs/roles/planning/pressure/reorient/CRRC/coordinator read verbs have been deleted; read those projections through view lenses. New `thread/epiphany/jobLaunch`, `thread/epiphany/jobInterrupt`, `thread/epiphany/roleLaunch`, and `thread/epiphany/reorientLaunch` writes open typed runtime-spine job receipts under `state/runtime-spine.cc` and do not require the Codex SQLite state runtime. Freshness carries watcher-backed invalidation inputs, graphQuery traverses authoritative typed graph neighborhoods and path/symbol matches without mutation, planning projects typed captures/backlog/roadmap/objective drafts without adopting work, roles project implementation/imagination/modeling/verification/reorientation ownership from existing signals without becoming a scheduler, `roleResult` and `reorientResult` read heartbeat-backed typed runtime-spine job results through runtime links when present, and `roleAccept` / `reorientAccept` accept completed heartbeat findings by writing typed acceptance receipts while remaining explicit review gates. - Native `epiphany-mvp-status` is the first dogfood operator view. It starts or reads a thread through app-server and prints scene, planning, pressure, reorient, jobs, roles, Imagination/modeling/verification role result read-backs, reorient result, heartbeat, Persona bubbles, and CRRC recommendation as text or machine output. The old Python status module has been cut; native Rust/CultCache/CultNet surfaces are the smoked product path. - Native `epiphany-mvp-coordinator` is the first auditable fixed-lane coordinator runner. It starts or reads a thread through app-server, opens a native runtime-spine session, follows the harness-native coordinator action, can auto-launch modeling, verification, or reorient-worker jobs, records native runtime job/result receipts for terminal launched work, keeps semantic findings review-gated by default, and writes summary, steps, rendered snapshots, transcript, stderr, runtime-spine status, and final next-action artifacts under `.epiphany-dogfood/coordinator` or a caller-provided artifact directory. It refuses direct backend-completion mutation; full completion smoke needs live workers while execution is being cauterized into CultNet. - Native `epiphany-runtime-spine` is the first Codex-independent runtime vertebra. It owns typed CultCache documents for runtime identity, sessions, jobs, job results, and events; opens/completes native jobs; snapshots jobs/results by runtime job id; projects job-result counts; and can emit a framed CultNet hello message advertising the native document and mutation contract surface. Codex app-server launch/read-back/acceptance is now a typed heartbeat/runtime-spine bridge with no Epiphany job-result dependency on the Codex SQLite runtime. @@ -144,12 +144,12 @@ remembers doctrine; the branch remembers the blade. - The native runtime-spine hello now publishes the interactive surface catalog, not just the deep runtime bones. In addition to runtime/session/job/memory/heartbeat/ledger documents, Aquarium-discoverable contracts now advertise scene, pressure, reorient, CRRC, jobs, roles, role-result, reorient-result, planning, coordinator, Persona, Void memory, repo initialization/birth runner, Rider bridge, and Unity bridge surfaces, with explicit read-only versus coordinator-owned intent/receipt posture. The point is to let Aquarium discover operator affordances from CultNet instead of hard-coding a secret menu of verbs. - Epiphany now publishes those CultNet receipts locally under `schemas/cultnet/`, and `epiphany-runtime-spine schema-catalog --include-schema-json true` emits a merged builtin-plus-local schema catalog Aquarium can consume directly. The local catalog covers runtime-spine documents, durable agent/heartbeat/ledger state, operator-safe `epiphany.surface.*` projections, control intents, and receipt/artifact payloads. The vendored `cultnet-rs` wire contract was aligned with the C# canon at the same time: raw document replication now keys on `schemaId` and `recordKey`, snapshot filters use `schemaIds` / `recordKeys`, and hello supports typed mutation-contract advertisement instead of the old half-remembered payload-schema-version folklore. - Epiphany now owns the canonical schema paperwork locally under `schemas/`. The key receipts are `schemas/cultnet/gamecult.persona_state.v0.schema.json`, `schemas/cultnet/epiphany.work_organ_state.v0.schema.json`, `schemas/canonical-agent-state-schema.md`, `schemas/agent-state-variable-glossary.md`, `schemas/organ-state-profiles.md`, `schemas/repo-personality-birth-projection.md`, and `schemas/heartbeat-state-schema.md`. If a standing trait name like `routing_discipline` changes, or if organ-state, Persona, heartbeat, or birth-projection semantics move, update those docs in the same pass instead of relying on old Ghostlight notes or live store archaeology. -- The schema doctrine now makes the profile split explicit: resident Epiphany organs are `work_organ` state with lean role memory and growth via rumination/distillation, while Persona is the Epiphany organ that may use portable `persona` state shared with VoidBot repo Personas and Ghostlight characters. Work organs do not inherit Persona affect, social bonds, or status-read machinery. PersonaState now has explicit provenance and required presentation surfaces, `date-time` timestamps, typed `candidateActions` with action type/target/readiness/risk/urgency/confidence/evidence/expiry, `voidbotProjection.candidateInterventions` only as a VoidBot compatibility projection, strict anchored thoughts, extension data marked non-authoritative, custom enum companion labels, and typed affect records for bonds/status reads/doctrine stances. `privateNotes` remain a deliberate v0 simplification, not an authority surface. `epiphany-agent-memory-store status` and `epiphany-character-loop` now surface profile classification on the wire as `organStateProfile`; `epiphany-agent-memory-store project-persona --store .\state\agents.msgpack --role-id persona` projects the local Persona record into `gamecult.persona_state.v0` for interop. +- The schema doctrine now makes the profile split explicit: resident Epiphany organs are `work_organ` state with lean role memory and growth via rumination/distillation, while Persona is the Epiphany organ that may use portable `persona` state shared with VoidBot repo Personas and Ghostlight characters. Work organs do not inherit Persona affect, social bonds, or status-read machinery. PersonaState now has explicit provenance and required presentation surfaces, `date-time` timestamps, typed `candidateActions` with action type/target/readiness/risk/urgency/confidence/evidence/expiry, `voidbotProjection.candidateInterventions` only as a VoidBot compatibility projection, strict anchored thoughts, extension data marked non-authoritative, custom enum companion labels, and typed affect records for bonds/status reads/doctrine stances. `privateNotes` remain a deliberate v0 simplification, not an authority surface. `epiphany-agent-memory-store status` and `epiphany-character-loop` now surface profile classification on the wire as `organStateProfile`; `epiphany-agent-memory-store project-persona --store .\state\agents.cc --role-id persona` projects the local Persona record into `gamecult.persona_state.v0` for interop. - Persona packets now carry deterministic Ghostlight-style `projectionSeed`, `appraisalSeed`, and `reactionSeed` surfaces rebuilt from local organ traits, relationship memories, perceived overlays, and visible stimulus so the public mouth can use actual projection/appraisal machinery instead of decorative prompt text. Also record this now before some future fool hard-codes singularity: multiple Persona actors are part of the plan, even though the current MVP still routes through one `persona` role. - Repo personality initialization now has a terrain-reduced plan and native birth surface. `epiphany-repo-personality scout/project/agent-packet/status` scouts local git repos, scores body taxonomy/history temperament/memory doctrine, writes typed CultCache terrain/profile/role-projection MessagePack stores, emits JSON/Markdown inspection exports, and renders a birth-only Repo Personality Distiller specialist prompt packet. `epiphany-repo-personality startup` now checks for accepted personality/memory initialization records, launches packet generation only when absent, and `accept-init` can route reviewed role `selfPatch` candidates into initial role memory, stamp the newborn Ghostlight trait lattice from deterministic role projections, and seed heartbeat physiology from the same typed role personality projections. The birth specialists are startup-only initialization actuators, not heartbeat lanes; heartbeat receives only the accepted physiology seed. `epiphany-repo-birth-runner` owns the startup-only execution path through `epiphany-model-runtime` typed model-request documents plus runtime-spine receipts and reviewable `result.json`; the old Codex CLI executor path is cut so birth specialists cannot receive Codex prompt wrappers. The remaining seam is Aquarium review/action surfacing. After accepted birth, personality drift belongs to heartbeat, mood, rumination, sleep consolidation, lived evidence, and reviewed `selfPatch`, not repeated startup distillation. - Repo trajectory initialization is now a separate birth-only organ. `epiphany-repo-personality` derives a typed `repo_trajectory_report` from early-history, recent-history, doctrine/content excerpts, and deterministic theme scoring, and `trajectory-packet` renders a startup-only Repo Trajectory Distiller prompt/packet so Self can review historical direction, self-image, implicit goals, and anti-goals before the newborn wakes. - Repo memory initialization is now split from personality initialization. `epiphany-repo-personality memory-packet` renders a birth-only Repo Memory Distiller packet from the same typed terrain/profile/projection store plus bounded source excerpts. It gives each organ its own mission filter: Self for routing/authority, Persona for public surface, Imagination for plans/backlog, Eyes for prior art, Proprioception for architecture, Hands for implementation habits, Soul for evidence, and Continuity for continuity. The output is still a Self-reviewed petition, not direct memory mutation. -- The first birth startup valve is now native. `epiphany-repo-personality startup` checks a typed init store for accepted `repo-trajectory`, `repo-personality`, and `repo-memory` records, generates missing packets under a startup artifact dir, and returns `reviewInitializationPackets`. Generated birth packets now advertise `birthOnly`, `executionOwner: repo-initialization-startup-runner`, and no heartbeat participant. `epiphany-repo-birth-runner` consumes those packets as startup-only typed OpenAI runtime jobs by default and writes prompts, output schemas, model-request documents, runtime summaries, stdout/stderr logs, result files, and exact `accept-init` commands. `accept-init` can process a distiller result, review/apply role `selfPatch` candidates through `state/agents.msgpack`, apply `repo-personality` heartbeat seeds through `state/agent-heartbeats.msgpack`, and seal the reviewed packet as `epiphany.repo_initialization_record.v0`; after all required records exist, startup returns `continueStartup` and does not regenerate birth packets. The remaining UI wound is Aquarium review/action surfacing. +- The first birth startup valve is now native. `epiphany-repo-personality startup` checks a typed init store for accepted `repo-trajectory`, `repo-personality`, and `repo-memory` records, generates missing packets under a startup artifact dir, and returns `reviewInitializationPackets`. Generated birth packets now advertise `birthOnly`, `executionOwner: repo-initialization-startup-runner`, and no heartbeat participant. `epiphany-repo-birth-runner` consumes those packets as startup-only typed OpenAI runtime jobs by default and writes prompts, output schemas, model-request documents, runtime summaries, stdout/stderr logs, result files, and exact `accept-init` commands. `accept-init` can process a distiller result, review/apply role `selfPatch` candidates through `state/agents.cc`, apply `repo-personality` heartbeat seeds through `state/agent-heartbeats.cc`, and seal the reviewed packet as `epiphany.repo_initialization_record.v0`; after all required records exist, startup returns `continueStartup` and does not regenerate birth packets. The remaining UI wound is Aquarium review/action surfacing. - Native CRRC automation is now landed only at turn-complete safe boundaries. It may submit `Op::Compact` for coordinator-approved `compactRehydrateReorient` or for a successful pre-compaction checkpoint intervention's pending compact handoff, and it may launch the fixed `reorient-worker` for coordinator-approved `launchReorientWorker`. It does not auto-launch Imagination/modeling/verification, accept findings, promote evidence, edit implementation code, or keep going after reviewable semantic output. - Pre-compaction checkpoint intervention is now landed. On token-count events for loaded Epiphany threads, when current context usage reaches 80% of the active auto-compact/context limit, the harness steers the active turn once with a CRRC checkpoint directive so the agent banks working context before compaction/reorientation. Pressure ignores cumulative token spend; cumulative-only telemetry reports unknown instead of yelling. A successful steer now latches a turn-scoped compact handoff that is consumed at clean turn completion, preventing the brake from decaying into another implementation turn. This is still bounded steering plus compaction handoff, not automatic semantic acceptance, a broad scheduler, or implementation continuation. - The old Python dogfood/live-specialist runners were cut because they encoded the obsolete completion path. The replacement must be native Rust/CultCache/CultNet and complete heartbeat-owned runtime-spine job results with auditable artifacts. @@ -158,21 +158,21 @@ remembers doctrine; the branch remembers the blade. - The prompt doctrine pass is landed. Shared Epiphany prompts now carry distilled memory/evidence discipline. Rendered state intro/doctrine text lives in `epiphany-state-model/src/prompts/`, and lane/control prompt text now lives in `epiphany-core/src/prompts/epiphany_specialists.toml` under the core `agent_launch` owner: modeling is Proprioception, implementation is the Hands and GUI-launched main coding lane, verification is the Soul, reorientation is a Continuity worker, coordinator remains the read-only Self, and CRRC owns the pre-compaction intervention template. - The machine-priest voice now says the quiet part plainly: crusade/heresy/purity language is aimed at technical rot, hidden state, duplicate truth, drift, and lying structures, not at humans. Future Epiphany swarms should inherit severity toward systems and curiosity toward people. - The Ghostlight memory pass is landed. `epiphany_specialists.toml` now has a shared persistent-memory projection prepended by the harness to fixed role specialists, reorientation workers, coordinator notes, and CRRC checkpoint interventions. The rendered base doctrine also states the Perfect Machine rule directly: prompt is projection, durable typed state is the mind, every lane must improve its own memory/model/prompt/evidence habit or name the repair, and each lane phrases that duty in its own organ language so the salience sticks. -- The role self-memory persistence pass is native now. Each lane has a typed organ-state record in `state/agents.msgpack`, and specialists may return optional `selfPatch` requests beside their normal role result. Relationship, event, scene, and perceived-overlay arrays are typed organ-state record documents, not JSON cargo, and the durable structs do not keep unknown `extra` maps. `roleResult`/`roleAccept` project coordinator review as `selfPersistence`: accepted requests are role-matched, bounded lane memory/goal/value/private-note mutations; refused requests explain wrong role, project-truth smuggling, authority grabs, bloat, missing reason, or malformed records. GUI/coordinator accept paths apply accepted `selfPatch` requests through the native `epiphany-agent-memory-store` binary; project truth still belongs only in `EpiphanyThreadState`. -- The heartbeat initiative pass is landed as a bounded tool seam. `state/agent-heartbeats.msgpack` tracks Self, Persona, Imagination, Eyes, Proprioception, Hands, and Soul as Ghostlight-style initiative participants with arena, participant kind, speed, next-ready time, reaction bias, interrupt threshold, load, status, constraints, personality cooldown, mood cooldown, effective cooldown, adaptive pacing, history, and pending turns through `epiphany-core::EpiphanyHeartbeatStateEntry` and the native `epiphany-heartbeat-store` binary. Continuity is protocol machinery over sleep/recovery receipts, not a heartbeat persona. Organ-state records set baseline timing; appraisal mood/anxiety bends it through urgency, arousal, thought pressure, guardedness, and reaction intensity, so Hands-like work pressure and high-need anxious lanes can recover sooner without being heartbeaten while a prior turn is running. Mood is now official physiology, not prose: `HeartbeatMoodTiming.emotional_dimensions` carries the 32-axis current affect vector that utterance state turns into the Weksa/AquaSynth 64-float character-state lane. `epiphany-heartbeat-store pump` computes pressure from external urgency, mood/anxiety, reaction intensity, thought pressure, and current pending load, then chooses tempo plus target concurrency: calm can launch zero and sleep slow; alarm can fill most active lanes. Idle turns are for rumination: light thought shuffling, role-quality attention, and candidate selfPatch pressure. Sleep/dream cycle passes are the intended distillation window for durable self-memory and doctrine. JSON heartbeat state, Python wrapper state, live heartbeat timing `extra` maps, JSON `sleepCycle` persistence, and JSON `memoryResonance` persistence are gone; general CultCache schema sync, polyglot domain loading, and debug display tools belong in CultLib. This is a callable scheduler seam, not yet an always-on daemon; a heart valve, not a whole circulatory god. +- The role self-memory persistence pass is native now. Each lane has a typed organ-state record in `state/agents.cc`, and specialists may return optional `selfPatch` requests beside their normal role result. Relationship, event, scene, and perceived-overlay arrays are typed organ-state record documents, not JSON cargo, and the durable structs do not keep unknown `extra` maps. `roleResult`/`roleAccept` project coordinator review as `selfPersistence`: accepted requests are role-matched, bounded lane memory/goal/value/private-note mutations; refused requests explain wrong role, project-truth smuggling, authority grabs, bloat, missing reason, or malformed records. GUI/coordinator accept paths apply accepted `selfPatch` requests through the native `epiphany-agent-memory-store` binary; project truth still belongs only in `EpiphanyThreadState`. +- The heartbeat initiative pass is landed as a bounded tool seam. `state/agent-heartbeats.cc` tracks Self, Persona, Imagination, Eyes, Proprioception, Hands, and Soul as Ghostlight-style initiative participants with arena, participant kind, speed, next-ready time, reaction bias, interrupt threshold, load, status, constraints, personality cooldown, mood cooldown, effective cooldown, adaptive pacing, history, and pending turns through `epiphany-core::EpiphanyHeartbeatStateEntry` and the native `epiphany-heartbeat-store` binary. Continuity is protocol machinery over sleep/recovery receipts, not a heartbeat persona. Organ-state records set baseline timing; appraisal mood/anxiety bends it through urgency, arousal, thought pressure, guardedness, and reaction intensity, so Hands-like work pressure and high-need anxious lanes can recover sooner without being heartbeaten while a prior turn is running. Mood is now official physiology, not prose: `HeartbeatMoodTiming.emotional_dimensions` carries the 32-axis current affect vector that utterance state turns into the Weksa/AquaSynth 64-float character-state lane. `epiphany-heartbeat-store pump` computes pressure from external urgency, mood/anxiety, reaction intensity, thought pressure, and current pending load, then chooses tempo plus target concurrency: calm can launch zero and sleep slow; alarm can fill most active lanes. Idle turns are for rumination: light thought shuffling, role-quality attention, and candidate selfPatch pressure. Sleep/dream cycle passes are the intended distillation window for durable self-memory and doctrine. JSON heartbeat state, Python wrapper state, live heartbeat timing `extra` maps, JSON `sleepCycle` persistence, and JSON `memoryResonance` persistence are gone; general CultCache schema sync, polyglot domain loading, and debug display tools belong in CultLib. This is a callable scheduler seam, not yet an always-on daemon; a heart valve, not a whole circulatory god. - Heartbeat initiative heat is now part of that seam. `EpiphanyHeartbeatStateEntry` owns `initiative_heat`, pacing applies active global/all/agent/role/arena/participant-kind/group/constraint multipliers into per-participant `initiativeHeatMultiplier`, and recovery divides by that multiplier. The CLI exposes `epiphany-heartbeat-store heat`, status/schedule projections show heat, and the CultNet catalog advertises both `epiphany.heartbeat_initiative_heat.v0` and coordinator intent `epiphany.heartbeat_heat_intent.v0`; runtime-spine hello lists the heat intent on the heartbeat mutation contract. Smoke proves a heated implementation lane reaches the live action catalog with `initiative_heat_multiplier: 4.0`. - Active heartbeat turns now freeze initiative explicitly. A running pending turn carries `initiativeFrozen` and `initiativeFreezeReason`; schedule/status/readiness projections expose `initiative_frozen`; the scheduler still rejects attempts to wake that lane again; and completion receipts mark `cooldownStartedAfterCompletion: true`. A focused high-heat test proves a 25x heated implementation lane cannot be queued again while it is still thinking. - The first Ghostlight-derived timing slice is landed in Epiphany, but Ghostlight is reference lineage rather than a sibling runtime to preserve. `epiphany-heartbeat-store init --profile ghostlight-scene --scene-id --scene-participant ` creates a typed CultCache MessagePack scene heartbeat store whose participants are `arena=scene`, `participantKind=character`; `tick` emits `ghostlight.initiative_schedule.v0` receipts with `scene_turn` actions and local-affordance basis. The generic Epiphany maintenance lanes are not auto-patched into scene stores. -- The first Void-derived routine slice is landed in Epiphany, but VoidBot is reference lineage rather than a runtime dependency. `epiphany-heartbeat-store routine --store .\state\agent-heartbeats.msgpack --artifact-dir .\.epiphany-heartbeats --agent-store .\state\agents.msgpack` reads typed organ-state records, computes typed bounded memory resonance, maintains typed incubation themes/source coverage, runs typed analytic and associative cognition lanes, writes typed bridge syntheses/saturation/refractory cooling/decision state, produces typed candidate interventions, projects the active thought cluster through each role's organ/persona vectors, derives typed participant-local reactions from typed appraisals, applies personality/mood timing, advances typed sleep/dream-cycle state, updates the typed heartbeat store, and emits an auditable `epiphany.void_routine.v0` receipt. The routine now also carries anti-loop physiology imported from Void's calmer brain: `noveltyToSelf`, `noveltyToRoom`, source coverage, saturation pressure, refractory cooling, and explicit permission to let a live unsaturated thought deepen without forcing novelty theater every pass. This mutates only heartbeat physiology fields: project truth and role memory mutation remain on their reviewed surfaces. -- The next memory foundation must not build separate engines for repo graph and agent mind. Heartbeat cognition, role self-memory, repo architecture/dataflow, evidence scars, incubation, agency pressure, and context packets should converge through `EpiphanyMemoryGraph` profiles so one typed graph owns anchors, lifecycle, summaries, freshness, context cuts, and Qdrant embedding manifests. Repo, agent, and heartbeat profile producers now map accepted graph truth, reviewed organ-state record memories/goals/values, and provisional heartbeat short-term/incubation/agency/candidate pressure into memory graph documents without scanner/Qdrant/model work. Heartbeat import deliberately does not mark durable promotion. Compose now merges profile snapshots into one validated graph and rejects duplicate authority; `epiphany-memory-graph compose` writes a composed typed CultCache graph from typed source graph stores; `epiphany-memory-graph refresh` can invoke live agent-memory plus heartbeat-cognition producers from their typed stores into one graph store; `epiphany-core` has a native typed `EpiphanyThreadState` CultCache store seam; the bridge mirrors loaded Codex-thread Epiphany state into `state/thread-state.msgpack`; and CultNet now advertises logical `EpiphanyThreadState` plus `EpiphanyMemoryGraph` snapshot contracts. The next clean slice is local refresh/dogfood once a mirrored thread-state store exists, then a Qdrant embedding cache writer that treats embeddings as rebuildable manifests, not canonical memory. +- The first Void-derived routine slice is landed in Epiphany, but VoidBot is reference lineage rather than a runtime dependency. `epiphany-heartbeat-store routine --store .\state\agent-heartbeats.cc --artifact-dir .\.epiphany-heartbeats --agent-store .\state\agents.cc` reads typed organ-state records, computes typed bounded memory resonance, maintains typed incubation themes/source coverage, runs typed analytic and associative cognition lanes, writes typed bridge syntheses/saturation/refractory cooling/decision state, produces typed candidate interventions, projects the active thought cluster through each role's organ/persona vectors, derives typed participant-local reactions from typed appraisals, applies personality/mood timing, advances typed sleep/dream-cycle state, updates the typed heartbeat store, and emits an auditable `epiphany.void_routine.v0` receipt. The routine now also carries anti-loop physiology imported from Void's calmer brain: `noveltyToSelf`, `noveltyToRoom`, source coverage, saturation pressure, refractory cooling, and explicit permission to let a live unsaturated thought deepen without forcing novelty theater every pass. This mutates only heartbeat physiology fields: project truth and role memory mutation remain on their reviewed surfaces. +- The next memory foundation must not build separate engines for repo graph and agent mind. Heartbeat cognition, role self-memory, repo architecture/dataflow, evidence scars, incubation, agency pressure, and context packets should converge through `EpiphanyMemoryGraph` profiles so one typed graph owns anchors, lifecycle, summaries, freshness, context cuts, and Qdrant embedding manifests. Repo, agent, and heartbeat profile producers now map accepted graph truth, reviewed organ-state record memories/goals/values, and provisional heartbeat short-term/incubation/agency/candidate pressure into memory graph documents without scanner/Qdrant/model work. Heartbeat import deliberately does not mark durable promotion. Compose now merges profile snapshots into one validated graph and rejects duplicate authority; `epiphany-memory-graph compose` writes a composed typed CultCache graph from typed source graph stores; `epiphany-memory-graph refresh` can invoke live agent-memory plus heartbeat-cognition producers from their typed stores into one graph store; `epiphany-core` has a native typed `EpiphanyThreadState` CultCache store seam; the bridge mirrors loaded Codex-thread Epiphany state into `state/thread-state.cc`; and CultNet now advertises logical `EpiphanyThreadState` plus `EpiphanyMemoryGraph` snapshot contracts. The next clean slice is local refresh/dogfood once a mirrored thread-state store exists, then a Qdrant embedding cache writer that treats embeddings as rebuildable manifests, not canonical memory. - Manual Codex-run rumination still has an explicit aftercare rule until Epiphany owns the full sleep consolidator. In the intended Epiphany cycle, sub-agents ruminate when idle and distill when they sleep; in this supervising Codex thread, a heartbeat/routine vigil is only physiology until a separate closing pass reviews the receipts and decides whether map, handoff, evidence, or role self-memory should change. -- The Persona public-surface pass is landed as a bounded lane. Persona's organ-state record lives in `state/agents.msgpack`; `epiphany_specialists.toml` gives it a VoidBot-heartbeat-derived prompt stripped of moderation authority; `state/persona-discord.toml` and the native `epiphany-persona-discord` binary enforce that Persona may interact only through #aquarium. Missing channel id or token writes candidate chat artifacts instead of posting elsewhere. If a Persona has a persona name/avatar, `post` uses the shared Discord webhook pipe so each Epiphany can speak with its own nickname and avatar without a separate bot identity. +- The Persona public-surface pass is landed as a bounded lane. Persona's organ-state record lives in `state/agents.cc`; `epiphany_specialists.toml` gives it a VoidBot-heartbeat-derived prompt stripped of moderation authority; `state/persona-discord.toml` and the native `epiphany-persona-discord` binary enforce that Persona may interact only through #aquarium. Missing channel id or token writes candidate chat artifacts instead of posting elsewhere. If a Persona has a persona name/avatar, `post` uses the shared Discord webhook pipe so each Epiphany can speak with its own nickname and avatar without a separate bot identity. - The Void memory bridge is now native enough to keep the useful organs attached. `state/void-memory.toml` and `epiphany-void-memory` can check Void's Docker Postgres state spine, query Qdrant Discord-history and source/lore collections with the configured Ollama embedding model, and fetch raw archive context windows from Void's file-backed Discord archive. Native `epiphany-mvp-status` includes a `voidMemory` block so Aquarium/backend clients can inspect whether the mouth and memory are actually wired. -- The Epiphany-native character-loop now emits a Weksa/AquaSynth-ready utterance-state seam. `epiphany-character-loop turn --role persona --stimulus ` loads Persona's typed organ-state record from `state/agents.msgpack`, builds typed projection/appraisal/reaction seeds from the shared heartbeat cognition documents, and emits an auditable `epiphany.character_turn_packet.v0` packet with `epiphany.agent_utterance_state.v0`. That utterance state is memory-free: identity, personality vectors, values, current mood, activation, 32 named affect dimensions, and the fixed 64-float `weksa.utterance_embedding_handoff.v0.1` character-state vector for AquaSynth/Weksa speech embedding. The same packet builder works for other role ids, because every organ already has a organ-state record. +- The Epiphany-native character-loop now emits a Weksa/AquaSynth-ready utterance-state seam. `epiphany-character-loop turn --role persona --stimulus ` loads Persona's typed organ-state record from `state/agents.cc`, builds typed projection/appraisal/reaction seeds from the shared heartbeat cognition documents, and emits an auditable `epiphany.character_turn_packet.v0` packet with `epiphany.agent_utterance_state.v0`. That utterance state is memory-free: identity, personality vectors, values, current mood, activation, 32 named affect dimensions, and the fixed 64-float `weksa.utterance_embedding_handoff.v0.1` character-state vector for AquaSynth/Weksa speech embedding. The same packet builder works for other role ids, because every organ already has a organ-state record. - The heartbeat/Persona operator API pass is landed. Native `epiphany-heartbeat-store status` returns machine-readable initiative state plus CultCache store presence, thought appraisals, and derived reactions; native `epiphany-persona-discord bubble` writes Discord-independent `epiphany.persona_bubble.v0` artifacts, and native `epiphany-mvp-status` includes `heartbeat` and `persona` blocks. Aquarium should call native/backend surfaces rather than resurrecting deleted Python action shims. -- The native runtime-spine pass is landed as a first vertebra, not a full daemon. `state/runtime-spine.msgpack` is the default store, `.epiphany-dogfood/runtime-spine-job/runtime.msgpack` and `hello.cultnet` are the latest job/result smoke artifacts, and specialist launch/result flows now route through typed heartbeat/runtime-spine documents. Its CultNet hello advertises mutation contracts for runtime/session/job/memory/heartbeat/ledger documents, with coordinator-owned intent/receipt paths for writes. +- The native runtime-spine pass is landed as a first vertebra, not a full daemon. `state/runtime-spine.cc` is the default store, `.epiphany-dogfood/runtime-spine-job/runtime.cc` and `hello.cultnet` are the latest job/result smoke artifacts, and specialist launch/result flows now route through typed heartbeat/runtime-spine documents. Its CultNet hello advertises mutation contracts for runtime/session/job/memory/heartbeat/ledger documents, with coordinator-owned intent/receipt paths for writes. - The Aetheria dogfood run has a contamination scar. The supervising Codex session directly edited and committed target-repo work on `E:\Projects\Aetheria-Economy` instead of only driving Epiphany lanes. Treat those Aetheria commits as supervisor-seeded implementation, not clean evidence that Epiphany coordinated the work. Future dogfood must run through the GUI/coordinator/fixed role lanes with auditable artifacts unless the user explicitly authorizes an operator intervention. Remember the sunburn: do not stare into the worker's objective until you become it. - The dogfood quarantine now has a direct-thought boundary. The supervisor may read coordinator actions, role/reorient statuses, structured finding summaries, reviewed state patches, rendered status snapshots, and artifact manifests. It must not read raw worker transcripts, direct worker messages, full turn logs, or `rawResult` payloads during normal dogfood. Those artifacts are sealed black reliquaries for explicit forensic debugging only. - Native `epiphany-agent-telemetry` is the safe instrument panel for sealed runs. Status/coordinator/GUI/dogfood/live-specialist tools generate telemetry JSON from sealed transcripts that preserves method names, call shape, job/status/path counts, and any visible function/tool names while sealing text, direct messages, and raw results. @@ -266,7 +266,7 @@ The current spine, blessed but not yet finished: - Void-derived native routine physiology through `epiphany-heartbeat-store routine`, with typed sleep cycle, typed memory resonance, typed incubation, typed analytic/associative cognition lanes, typed bridge judgment/cooling, typed candidate interventions, typed Ghostlight-style personality appraisals, mood/anxiety timing, typed derived reactions, and dream maintenance stored in the typed heartbeat store - Epiphany-native character-loop packet projection through `epiphany-character-loop`, with Persona as the first public-surface actor over its typed organ-state record and typed heartbeat-derived projection/appraisal/reaction seeds before JSON artifact serialization - Persona as the public #aquarium-only surface for translating agent thought-weather into short chats or candidate drafts, with persona webhook presentation and Void memory/search access, without moderator authority -- local organ-state records in `state/agents.msgpack`, plus `selfPatch` review projection through `roleResult`/`roleAccept` and accepted memory application through the native `epiphany-agent-memory-store` binary +- local organ-state records in `state/agents.cc`, plus `selfPatch` review projection through `roleResult`/`roleAccept` and accepted memory application through the native `epiphany-agent-memory-store` binary - first Unity runtime bridge through native `epiphany-unity-bridge`, native `epiphany-unity-bridge-smoke`, GUI Inspect Unity, runtime artifact listing, and implementation prompt guardrails - first Rider source-context bridge through native `epiphany-rider-bridge`, native `epiphany-rider-bridge-smoke`, GUI Inspect Rider, Rider artifact listing, implementation prompt guardrails, and a source scaffold under `integrations/rider` - first GUI graph dashboard through the adjacent `@epiphanygraph/epiphany-graph-viewer` package over typed Epiphany graph state @@ -398,7 +398,7 @@ cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-character-lo For the native Void-derived routine pass, run: ```powershell -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- routine --store .\state\agent-heartbeats.msgpack --artifact-dir .\.epiphany-heartbeats --agent-store .\state\agents.msgpack +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- routine --store .\state\agent-heartbeats.cc --artifact-dir .\.epiphany-heartbeats --agent-store .\state\agents.cc ``` For repo trajectory, personality, and memory birth packet changes, run: @@ -446,7 +446,7 @@ Rules now in force: - `state/map.yaml` is canonical current truth. - `state/scratch.md` is disposable scratch. -- `state/ledgers.msgpack` is a distilled durable belief and branch ledger. +- `state/ledgers.cc` is a distilled durable belief and branch ledger. - `epiphany-prepare-compaction` is the native pre-compaction persistence check; run it before and after imminent-compaction persistence passes. - this handoff is a compact re-entry packet. - `notes/codex-starvation-and-cultnet-liberation-plan.md` is the active foundation directive until Epiphany no longer depends on Codex as anything beyond OpenAI subscription auth/model transport. diff --git a/notes/repo-personality-projection-layer-plan.md b/notes/repo-personality-projection-layer-plan.md index 1d70cc7d..10faa749 100644 --- a/notes/repo-personality-projection-layer-plan.md +++ b/notes/repo-personality-projection-layer-plan.md @@ -466,8 +466,8 @@ Initial commands: ```powershell cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality -- scout --root E:\Projects --artifact-dir .\.epiphany-imports\repo-personality-terrain -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality -- project --repo E:\Projects\AetheriaLore --baseline .\.epiphany-imports\repo-personality-terrain\baseline.msgpack --artifact-dir .\.epiphany-imports\aetheria-lore-personality -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality -- memory-packet --store .\.epiphany-imports\aetheria-lore-personality\projection.msgpack --artifact-dir .\.epiphany-imports\aetheria-lore-memory +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality -- project --repo E:\Projects\AetheriaLore --baseline .\.epiphany-imports\repo-personality-terrain\baseline.cc --artifact-dir .\.epiphany-imports\aetheria-lore-personality +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality -- memory-packet --store .\.epiphany-imports\aetheria-lore-personality\projection.cc --artifact-dir .\.epiphany-imports\aetheria-lore-memory ``` The first version can use deterministic scoring from local filesystem and git @@ -493,12 +493,12 @@ The native `epiphany-repo-personality` binary now exists in It provides: - `scout --root --artifact-dir [--max-repos ]` -- `project --repo --baseline --artifact-dir ` -- `agent-packet --store --artifact-dir [--repo-id ]` -- `memory-packet --store --artifact-dir [--repo-id ]` -- `startup --repo --baseline --artifact-dir --init-store ` -- `accept-init --init-store --packet --kind [--accepted-by ] [--summary ] [--result ] [--agent-store ] [--apply-self-patches ] [--heartbeat-store ] [--apply-heartbeat-seeds ]` -- `status --store ` +- `project --repo --baseline --artifact-dir ` +- `agent-packet --store --artifact-dir [--repo-id ]` +- `memory-packet --store --artifact-dir [--repo-id ]` +- `startup --repo --baseline --artifact-dir --init-store ` +- `accept-init --init-store --packet --kind [--accepted-by ] [--summary ] [--result ] [--agent-store ] [--apply-self-patches ] [--heartbeat-store ] [--apply-heartbeat-seeds ]` +- `status --store ` The first implementation is intentionally deterministic. It inventories git repos, instruction/state/test/runtime surfaces, file-extension/body shape, diff --git a/schemas/canonical-agent-state-schema.md b/schemas/canonical-agent-state-schema.md index 582f556c..8deae9cf 100644 --- a/schemas/canonical-agent-state-schema.md +++ b/schemas/canonical-agent-state-schema.md @@ -23,7 +23,7 @@ Epiphany Persona projects its local organ-state record into the portable Persona contract with: ```powershell -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- project-persona --store .\state\agents.msgpack --role-id persona +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- project-persona --store .\state\agents.cc --role-id persona ``` ## Objective @@ -46,7 +46,7 @@ in personality memory. That way lies a small cult of confused blobs. ## Stored Shape -Each record in `state/agents.msgpack` is an +Each record in `state/agents.cc` is an `EpiphanyAgentMemoryEntry` keyed by role id: - `coordinator` -> `epiphany.self` diff --git a/schemas/organ-state-profiles.md b/schemas/organ-state-profiles.md index bcfdc451..a0ea8938 100644 --- a/schemas/organ-state-profiles.md +++ b/schemas/organ-state-profiles.md @@ -1,6 +1,6 @@ # Organ State Profiles -Epiphany uses one local `state/agents.msgpack` store, but it does not use one +Epiphany uses one local `state/agents.cc` store, but it does not use one personality ontology for every organ. That was the old mush vector. The live profile split is: @@ -152,7 +152,7 @@ is already drifting back toward folklore. `project-persona` is the current Epiphany Persona bridge into `gamecult.persona_state.v0`: it reads the local Persona organ-state record from -`state/agents.msgpack` and emits the portable Persona document with provenance, +`state/agents.cc` and emits the portable Persona document with provenance, presentation, activation profile, memories, agency pressure, typed candidate actions, typed affect projections, and the VoidBot projection slot. The local store remains Epiphany-owned; the Persona document is the interchange nerve. diff --git a/schemas/repo-personality-birth-projection.md b/schemas/repo-personality-birth-projection.md index 20be4f91..566afa98 100644 --- a/schemas/repo-personality-birth-projection.md +++ b/schemas/repo-personality-birth-projection.md @@ -100,9 +100,9 @@ Current sanctioned routes are: ## Related Stores -- canonical organ state: `state/agents.msgpack` -- heartbeat physiology: `state/agent-heartbeats.msgpack` -- initialization receipts: `state/repo-initialization.msgpack` +- canonical organ state: `state/agents.cc` +- heartbeat physiology: `state/agent-heartbeats.cc` +- initialization receipts: `state/repo-initialization.cc` ## Operator Rule diff --git a/state/agent-heartbeats.msgpack b/state/agent-heartbeats.cc similarity index 100% rename from state/agent-heartbeats.msgpack rename to state/agent-heartbeats.cc diff --git a/state/agents.msgpack b/state/agents.cc similarity index 100% rename from state/agents.msgpack rename to state/agents.cc diff --git a/state/agents/README.md b/state/agents/README.md index 1b5439e0..bd77b866 100644 --- a/state/agents/README.md +++ b/state/agents/README.md @@ -1,7 +1,7 @@ # Epiphany Role Memory Epiphany's lane dossiers are Ghostlight-shaped persistent memory reliquaries -stored in `state/agents.msgpack` through CultCache. They are not project truth. +stored in `state/agents.cc` through CultCache. They are not project truth. The active objective, graphs, checkpoint, scratch, planning records, evidence, and job bindings still live in authoritative `EpiphanyThreadState`; role memory is a lane's soul-polish, not a counterfeit throne. @@ -67,11 +67,11 @@ speech itself. Use: ```powershell -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- validate --store .\state\agents.msgpack -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- smoke --store .\state\agents.msgpack -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- status --store .\state\agents.msgpack -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- tick --store .\state\agent-heartbeats.msgpack --artifact-dir .\.epiphany-heartbeats --coordinator-action continueImplementation --urgency 0.95 --agent-store .\state\agents.msgpack --apply-rumination -cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- smoke --agent-store .\state\agents.msgpack +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- validate --store .\state\agents.cc +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- smoke --store .\state\agents.cc +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- status --store .\state\agents.cc +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- tick --store .\state\agent-heartbeats.cc --artifact-dir .\.epiphany-heartbeats --coordinator-action continueImplementation --urgency 0.95 --agent-store .\state\agents.cc --apply-rumination +cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- smoke --agent-store .\state\agents.cc cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-persona-discord -- draft --content 'Persona notices the organs are arguing about evidence again.' cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-persona-discord -- post --content 'Persona has entered the aquarium.' --persona-name 'Epiphany Persona' cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-persona-discord -- smoke diff --git a/state/ledgers.msgpack b/state/ledgers.cc similarity index 99% rename from state/ledgers.msgpack rename to state/ledgers.cc index 0ab249bbb8d2d65c0ffae64fec15c778ca398a2f..1b6033031781079335c8f7b7f29cd27348efff75 100644 GIT binary patch delta 641 zcmZvZv2GJV5Qe!cgXjQ-ZX{aUI1Y}KON9+|ktm`lN)wIu#=e#Jc9-2b8&{T~-~ou0 zl2<@N0)+?Q73d@vvu`%>&xTh!A{oO&-(q-pZC%q z2Vb8iZ&`i@jgJETOh^ionQYIK{LlIE^6k2DsLSq)tQR<)> zY8_Jxj_3sDg=X?716zPLhvokUDA9v;bJ@cbR3%iFp;N|*M>TyW!%8o5$c>!EvX+d% z0d3SZEgHyaEM6iAZXw`YpsgKo(3U#4L#RW$NM58*P6vm2A}x}E(KEW!-dazPMFYiu zgmG}?Z9sN65!3-(TpuS7mkoCPtzxS&ab_r=)QA*WqL_%;DEDE8M(2XEuC)uoz$3!u zbTcAUmUT((=xbxrwmI;^fwS6+L`aM3*D&EvtFm#;hj0BP6dKL7v# delta 43 zcmccjjqCbHt_@<0yarY###V-=QO6jVwr|<2%vi|C$k{xVseLLF (Join-Path $cycleArtifactDir "routine.out") + & cargo run --manifest-path ".\epiphany-core\Cargo.toml" --bin epiphany-heartbeat-store -- routine --store ".\state\agent-heartbeats.cc" --artifact-dir $cycleArtifactDir --agent-store ".\state\agents.cc" --source "epiphany/perfect-machine-rumination" *> (Join-Path $cycleArtifactDir "routine.out") if ($LASTEXITCODE -ne 0) { $failures += 1 Write-Log "Cycle ${cycles}: routine failed with exit code $LASTEXITCODE." @@ -48,7 +48,7 @@ while ((Get-Date) -lt $target) { Write-Log "Cycle ${cycles}: routine completed." } - & cargo run --manifest-path ".\epiphany-core\Cargo.toml" --bin epiphany-heartbeat-store -- status --store ".\state\agent-heartbeats.msgpack" *> $statusPath + & cargo run --manifest-path ".\epiphany-core\Cargo.toml" --bin epiphany-heartbeat-store -- status --store ".\state\agent-heartbeats.cc" *> $statusPath if ($LASTEXITCODE -ne 0) { $failures += 1 Write-Log "Cycle ${cycles}: status failed with exit code $LASTEXITCODE." @@ -73,7 +73,7 @@ while ((Get-Date) -lt $target) { - log: $logPath - latestStatus: $statusPath -This pass repeatedly ran the native heartbeat routine over `state/agent-heartbeats.msgpack`, +This pass repeatedly ran the native heartbeat routine over `state/agent-heartbeats.cc`, projecting memory resonance, thought lanes, appraisals, reactions, sleep, and dream maintenance through the typed Rust/CultCache surface. "@ | Set-Content -LiteralPath $summaryPath -Encoding UTF8 diff --git a/vendor/cultcache-rs b/vendor/cultcache-rs index e6fcdc1d..e4063b69 160000 --- a/vendor/cultcache-rs +++ b/vendor/cultcache-rs @@ -1 +1 @@ -Subproject commit e6fcdc1dcf46e148925fea25b3eaa9b2ec36650b +Subproject commit e4063b69e8473db5ff69440bb942c16589f80d51 diff --git a/vendor/cultmesh-rs/src/lib.rs b/vendor/cultmesh-rs/src/lib.rs index cde40667..37ce292e 100644 --- a/vendor/cultmesh-rs/src/lib.rs +++ b/vendor/cultmesh-rs/src/lib.rs @@ -182,7 +182,7 @@ mod tests { #[test] fn node_round_trips_registered_documents() -> Result<()> { let temp = tempfile::tempdir()?; - let store_path = temp.path().join("cultmesh.ccmp"); + let store_path = temp.path().join("cultmesh.cc"); let note = Note { body: "blessed circuit".to_string(), }; diff --git a/vendor/cultnet-rs b/vendor/cultnet-rs index ab86857a..77580f8e 160000 --- a/vendor/cultnet-rs +++ b/vendor/cultnet-rs @@ -1 +1 @@ -Subproject commit ab86857a687917f6383595a721ade0e1a7e247df +Subproject commit 77580f8eee1def465eb8d74c3c86c9c7dcd75d2d