Migrate CultCache stores to .cc
This commit is contained in:
parent
ba5de43e46
commit
f1d8b3eb13
65 changed files with 239 additions and 229 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
|
|
@ -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()),
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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<serde_json::Value> {
|
|||
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 {}",
|
||||
|
|
|
|||
|
|
@ -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<String> = 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<Value> {
|
|||
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",
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ impl Args {
|
|||
fn parse() -> Result<Self> {
|
||||
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() {
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ impl Args {
|
|||
fn parse() -> Result<Self> {
|
||||
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<Va
|
|||
vec![
|
||||
json!({
|
||||
"id": "epiphany.local-verse.store",
|
||||
"kind": "ccmp-store",
|
||||
"kind": "cc-store",
|
||||
"path": args.store,
|
||||
"schemas": [
|
||||
EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION,
|
||||
|
|
@ -680,7 +680,7 @@ fn run_smoke(args: Args) -> 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(),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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<GhostlightSceneParticipantSeed>
|
|||
|
||||
fn run_smoke(agent_store: &Path) -> Result<serde_json::Value> {
|
||||
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<serde_json::Value> {
|
|||
},
|
||||
)?;
|
||||
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<serde_json::Value> {
|
|||
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,
|
||||
|
|
|
|||
|
|
@ -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<serde_json::Value> {
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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<NativeAuxiliaryStatus> {
|
|||
&[
|
||||
"status",
|
||||
"--store",
|
||||
"state/agent-heartbeats.msgpack",
|
||||
"state/agent-heartbeats.cc",
|
||||
"--artifact-dir",
|
||||
&heartbeat_dir.to_string_lossy(),
|
||||
"--limit",
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ impl Args {
|
|||
fn parse() -> Result<Self> {
|
||||
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();
|
||||
|
|
|
|||
|
|
@ -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}"))),
|
||||
|
|
|
|||
|
|
@ -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)?;
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ fn run_smoke() -> Result<Value> {
|
|||
"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<Value> {
|
|||
"--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<Value> {
|
|||
.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<Value> {
|
|||
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<Value> {
|
|||
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,
|
||||
|
|
|
|||
|
|
@ -608,7 +608,7 @@ fn parse_bool_arg(name: &str, value: &str) -> Result<bool> {
|
|||
fn run_scout(args: ScoutArgs) -> Result<Value> {
|
||||
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::<RepoTerrainReport>(report.repo_id.clone(), &report)?;
|
||||
|
|
@ -4504,12 +4504,12 @@ fn print_usage() {
|
|||
eprintln!(
|
||||
"usage: epiphany-repo-personality <scout|project|agent-packet|trajectory-packet|memory-packet|startup|accept-init|status> ...\n\
|
||||
scout --root <path> --artifact-dir <path> [--max-repos <n>]\n\
|
||||
project --repo <path> --baseline <baseline.msgpack> --artifact-dir <path>\n\
|
||||
agent-packet --store <projection.msgpack> --artifact-dir <path> [--repo-id <id>]\n\
|
||||
trajectory-packet --store <projection.msgpack> --artifact-dir <path> [--repo-id <id>]\n\
|
||||
memory-packet --store <projection.msgpack> --artifact-dir <path> [--repo-id <id>]\n\
|
||||
startup --repo <path> --baseline <baseline.msgpack> --artifact-dir <path> --init-store <init.msgpack>\n\
|
||||
accept-init --init-store <init.msgpack> --packet <packet.json> --kind <repo-trajectory|repo-personality|repo-memory> [--accepted-by <name>] [--summary <text>] [--result <distiller-result.json>] [--agent-store <agents.msgpack>] [--apply-self-patches <true|false>] [--apply-trait-seeds <true|false>] [--heartbeat-store <heartbeats.msgpack>] [--apply-heartbeat-seeds <true|false>]\n\
|
||||
status --store <baseline-or-projection.msgpack>"
|
||||
project --repo <path> --baseline <baseline.cc> --artifact-dir <path>\n\
|
||||
agent-packet --store <projection.cc> --artifact-dir <path> [--repo-id <id>]\n\
|
||||
trajectory-packet --store <projection.cc> --artifact-dir <path> [--repo-id <id>]\n\
|
||||
memory-packet --store <projection.cc> --artifact-dir <path> [--repo-id <id>]\n\
|
||||
startup --repo <path> --baseline <baseline.cc> --artifact-dir <path> --init-store <init.cc>\n\
|
||||
accept-init --init-store <init.cc> --packet <packet.json> --kind <repo-trajectory|repo-personality|repo-memory> [--accepted-by <name>] [--summary <text>] [--result <distiller-result.json>] [--agent-store <agents.cc>] [--apply-self-patches <true|false>] [--apply-trait-seeds <true|false>] [--heartbeat-store <heartbeats.cc>] [--apply-heartbeat-seeds <true|false>]\n\
|
||||
status --store <baseline-or-projection.cc>"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()?;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ impl Args {
|
|||
fn parse() -> Result<Self> {
|
||||
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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)?;
|
||||
|
|
|
|||
|
|
@ -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)?;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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()),
|
||||
|
|
|
|||
|
|
@ -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::<EpiphanyAgentMemoryEntry>()?;
|
||||
|
|
|
|||
|
|
@ -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<String>) -> Result<ToolFollowupTur
|
|||
fn parse_smoke_options(args: Vec<String>) -> Result<SmokeCliOptions> {
|
||||
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()?;
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 <json-or-path>
|
||||
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 <json-or-path>
|
||||
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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 <role> --patch '<path-to-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 <role> --patch '<path-to-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
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 `<epiphany_state>` 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 `<epiphany_state>` 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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 "<operator request>" -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 <id>` and `-Workspace <path>` 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 <id>` can resume and poll later. `-MaxRuntimeSeconds <n>` 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 "<operator request>" -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 <id>` and `-Workspace <path>` 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 <id>` can resume and poll later. `-MaxRuntimeSeconds <n>` 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 <path>` 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 <path>` 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 <id> --scene-participant <id|name|speed|reaction|threshold|constraints>` 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 <text>` 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 <text>` 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.
|
||||
|
|
|
|||
|
|
@ -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 <path> --artifact-dir <path> [--max-repos <n>]`
|
||||
- `project --repo <path> --baseline <baseline.msgpack> --artifact-dir <path>`
|
||||
- `agent-packet --store <projection.msgpack> --artifact-dir <path> [--repo-id <id>]`
|
||||
- `memory-packet --store <projection.msgpack> --artifact-dir <path> [--repo-id <id>]`
|
||||
- `startup --repo <path> --baseline <baseline.msgpack> --artifact-dir <path> --init-store <init.msgpack>`
|
||||
- `accept-init --init-store <init.msgpack> --packet <packet.json> --kind <repo-personality|repo-memory> [--accepted-by <name>] [--summary <text>] [--result <distiller-result.json>] [--agent-store <agents.msgpack>] [--apply-self-patches <true|false>] [--heartbeat-store <heartbeats.msgpack>] [--apply-heartbeat-seeds <true|false>]`
|
||||
- `status --store <baseline-or-projection.msgpack>`
|
||||
- `project --repo <path> --baseline <baseline.cc> --artifact-dir <path>`
|
||||
- `agent-packet --store <projection.cc> --artifact-dir <path> [--repo-id <id>]`
|
||||
- `memory-packet --store <projection.cc> --artifact-dir <path> [--repo-id <id>]`
|
||||
- `startup --repo <path> --baseline <baseline.cc> --artifact-dir <path> --init-store <init.cc>`
|
||||
- `accept-init --init-store <init.cc> --packet <packet.json> --kind <repo-personality|repo-memory> [--accepted-by <name>] [--summary <text>] [--result <distiller-result.json>] [--agent-store <agents.cc>] [--apply-self-patches <true|false>] [--heartbeat-store <heartbeats.cc>] [--apply-heartbeat-seeds <true|false>]`
|
||||
- `status --store <baseline-or-projection.cc>`
|
||||
|
||||
The first implementation is intentionally deterministic. It inventories git
|
||||
repos, instruction/state/test/runtime surfaces, file-extension/body shape,
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -72,10 +72,10 @@ data_flow:
|
|||
active_subgoals:
|
||||
- Use `notes/epiphany-cultmesh-dreaming-roadmap.md` as the design authority for distributed Epiphany dreaming. Public dreams are separately authored typed documents distributed through CultMesh/CultNet; private state remains local and cannot be shared by flipping a visibility flag. Foreign dreams are external thought weather until a reviewed local adoption receipt digests them into memory, planning, doctrine, or governance.
|
||||
- CultMesh is now the preferred ergonomic Rust abstraction over CultCache and CultNet for Epiphany-owned local database surfaces. The Rust substrate is repo-contained under `vendor/cultcache-rs`, `vendor/cultnet-rs`, and `vendor/cultmesh-rs`; the old `E:\Projects\CultLib\crates\*` path is dead in this checkout and must not be reintroduced as a compile-time dependency. Future local Verse/dream/status work should start at CultMesh unless it is explicitly polishing CultMesh internals. Preserve the three-Verse boundary: `epiphany-internal` for private sub-agent typed state, `gamecult-local` for trusted LAN/Yggdrasil-tunnel GameCult project sharing, and `epiphany-global` for untrusted public dreams plus topic-specific threaded public rooms for Persona posts.
|
||||
- Use `notes/epiphany-verse-architecture.md` as the source note for local Verse/Odin/Yggdrasil prompt-context architecture. Odin is the all-seer discovery/coordinator surface for advertised Verse metadata, not a trust-boundary bypass. Yggdrasil is the hosted spine for important trusted GameCult Verses such as Bifrost. The first native local Verse query surface is `epiphany-verse-query`, which seeds/queries compact CultMesh policy/status/contract context for dynamic prompt assembly and operator inspection; it can also import `gjallar.affordance.v1` daemon affordances from an Odin/Gjallar CultMesh store so agents see provider-owned daemon inspection/action surfaces without MCP. `epiphany-prompt-context-smoke` proves that compact local Verse context plus a semantic memory graph context cut can render a bounded dynamic prompt packet, omit unrelated private-looking text, and preserve the packet inside a role worker launch document. Live bridge role/reorient launch paths now feed `dynamicPromptContext` from sibling `local-verse.ccmp` and `memory-graph.msgpack` stores beside runtime-spine, refreshing the memory graph from current typed thread-state repo graphs when absent; if `EPIPHANY_GJALLAR_AFFORDANCE_STORE` points at a Gjallar store, the launch context imports daemon affordances before rendering. The bridge launch-context test proves that packet survives into a persisted runtime-spine worker launch request. `tools/epiphany_local_run.ps1 -Mode status` now builds/calls `epiphany-verse-query` and writes `local-verse-context.json` beside native status and operator snapshot artifacts from `.epiphany-run/cultmesh/local-verse.ccmp`; it auto-detects the sibling Odin Gjallar store when present.
|
||||
- Use `notes/epiphany-verse-architecture.md` as the source note for local Verse/Odin/Yggdrasil prompt-context architecture. Odin is the all-seer discovery/coordinator surface for advertised Verse metadata, not a trust-boundary bypass. Yggdrasil is the hosted spine for important trusted GameCult Verses such as Bifrost. The first native local Verse query surface is `epiphany-verse-query`, which seeds/queries compact CultMesh policy/status/contract context for dynamic prompt assembly and operator inspection; it can also import `gjallar.affordance.v1` daemon affordances from an Odin/Gjallar CultMesh store so agents see provider-owned daemon inspection/action surfaces without MCP. `epiphany-prompt-context-smoke` proves that compact local Verse context plus a semantic memory graph context cut can render a bounded dynamic prompt packet, omit unrelated private-looking text, and preserve the packet inside a role worker launch document. Live bridge role/reorient launch paths now feed `dynamicPromptContext` from sibling `local-verse.cc` and `memory-graph.cc` stores beside runtime-spine, refreshing the memory graph from current typed thread-state repo graphs when absent; if `EPIPHANY_GJALLAR_AFFORDANCE_STORE` points at a Gjallar store, the launch context imports daemon affordances before rendering. The bridge launch-context test proves that packet survives into a persisted runtime-spine worker launch request. `tools/epiphany_local_run.ps1 -Mode status` now builds/calls `epiphany-verse-query` and writes `local-verse-context.json` beside native status and operator snapshot artifacts from `.epiphany-run/cultmesh/local-verse.cc`; it auto-detects the sibling Odin Gjallar store when present.
|
||||
- The active priority is Codex starvation and CultNet liberation. Use `notes/codex-starvation-and-cultnet-liberation-plan.md` as the directive and `notes/codex-auth-spine-inventory.md` as the source-grounded keeper list for the retained OpenAI subscription auth/model transport bridge. Classify all Epiphany-relevant JSON contamination, define the native CultNet runtime boundary, keep worker launch/result/selfPatch cargo as typed documents, evacuate Epiphany operator/state/process authority from Codex JSON-RPC, and keep cutting until Epiphany can run its own state and processes without `codex_message_processor.rs` except for bridge compatibility. MCP remains an external compatibility edge only; GameCult daemon discovery/inspection/control should travel through Odin, Gjallar, Eve/CultUI, CultMesh, CultNet, and provider-owned command receipts.
|
||||
- Use `notes/epiphany-anatomy.md` as the canonical anatomy map. Embodied sub-agents are Self, Persona, Imagination, Eyes, Proprioception, Hands, and Soul. Body is substrate, Mind is persistent state/state admission, Continuity is recovery/compaction/sleep protocol machinery, and Substrate Gate is substrate access protocol.
|
||||
- Use `notes/epiphany-body-proprioception-pass.md` as the latest source-grounded Body map and `docs/epiphany_body_whitepaper.tex` as the polished TeX overview. Body currently spans the repo checkout, Epiphany Rust crates, vendored Codex/Cult substrate, typed `state/` stores, CultNet schema catalog, runtime-spine, heartbeat, memory graph, local Verse, operator artifacts, and sibling/client surfaces; the whitepaper records owner, input, output, invariant, bridge, and gap lines for future Proprioception work.
|
||||
- Use `notes/epiphany-body-proprioception-pass.md` as the latest source-grounded Body map and `docs/epiphany_body_whitepaper.tex` as the polished TeX overview. Body currently spans the repo checkout, Epiphany Rust crates, vendored Codex/Cult substrate, typed `state/` stores, CultNet schema catalog, runtime-spine, heartbeat, memory graph, local Verse, operator artifacts, and sibling/client surfaces; the whitepaper records owner, input, output, invariant, bridge, and gap lines for future Proprioception work. CultCache store files are canonically `.cc`; the live state body and default writers now use that extension directly.
|
||||
- Organ state now has a hard profile split: resident Epiphany sub-agents use lean `work_organ` state, public/person-shaped agents use portable `persona` state, and heartbeat/swarm machinery owns scheduling/coordination physiology. Persona is the Epiphany organ; Persona is the shared GameCult contract for Epiphany Persona, VoidBot repo Personas, and Ghostlight characters. Persona documents carry provenance, required public presentation metadata, `date-time` timestamps, typed `candidateActions`, strict anchored thoughts with non-authoritative extensions, custom enum companion labels, and typed affect subrecords for bonds/status reads/doctrine stances. Work organs must not inherit Persona affect/social-bond/status-read machinery just because the old Ghostlight-derived shape had room for it. The old public-organ path is not a compatibility alias: public/social authority now uses role id `persona`, surface document `epiphany.surface.persona`, artifact namespace `.epiphany-persona`, and action `personaBubble`; tracked Persona and heartbeat stores have been rebuilt/migrated so stale public-role/schema/artifact/action authority cannot decide state.
|
||||
- The Eyes/source-gathering fork exposed by the Mom-ready MVP proof is now landed as a fixed Research lane owned by Eyes. The quarantined Codex MCP spine may execute typed tool intents and emit typed receipts; the model runtime can build and run provider-neutral follow-up turns from those receipts; coordinator run mode passes the quarantined tool adapter into worker runtime with auto-tools enabled by default; worker runtime now enforces max-runtime with one timeout close primitive for both tokio timeout and watchdog paths; inner `openai-worker-*` jobs are opened before async auth/stream waits and sealed with their outer worker on timeout; native status/roles/jobs/coordinator surfaces project failed and completed runtime-linked jobs as terminal without Codex prompt or scheduler authority; direct tiny model-turn transport succeeds; worker requests record request metrics, transport readiness, and sampled raw Responses frame kinds; worker prompts no longer prepend the full shared persistent-memory rite; stream deltas compact before durable storage; live MVP modeling workers complete instead of timing out; stale completed runtime links no longer block replacement launches; jobLaunch validates before opening runtime jobs; completed-but-unreviewable modeling findings now stop for review instead of relaunching the same blind lane; and completed unreviewable modeling findings with verdict `regather-needed` route to `LaunchResearch` instead of relaunching Proprioception. Research findings are accepted only when their statePatch is Eyes-shaped: observations, evidence, scratch, and optional investigationCheckpoint, with no graph/planning/objective authority.
|
||||
- The GameCult integrated investment dossier at `E:\Projects\gamecult-site\docs\gamecult_integrated_dossier.tex` raises the Mom-ready bar from local demo to diligence-ready loop. Epiphany must be ready to prove Bifrost-first external work: a human/agent work item or topic originates in Bifrost, Epiphany decomposes and executes through bounded roles, maintainers review artifacts, Bifrost records receipts/credit, and operator-safe public evidence can be shown without exporting private worker/operator/agent context. The concrete readiness asks are fresh-repo Epiphany demo, Bifrost work item/topic/agent transport/receipt/ledger demo, compute spend and accepted-artifact metrics, and a security model for secrets, write permissions, and public/private exports. Discord, VoidBot, repo Personas, and ad hoc scripts must not become shadow governance or reward authorities.
|
||||
|
|
@ -116,7 +116,7 @@ active_subgoals:
|
|||
|
||||
accepted_design:
|
||||
- Distributed Epiphany dreaming is a CultMesh typed-document problem, not prompt folklore. CultCache owns local typed documents, Epiphany owns export/import/adoption policy, CultNet owns wire/provenance/shard delivery, and CultMesh owns Verses, peer exchange, leases, shard logs, replicas, and watchable runtime surfaces. Start with local dream document types and a local store before public Verse wiring.
|
||||
- The first Rust CultMesh integration slice is landed and repaired to compile from repo-contained vendored crates. `vendor/cultmesh-rs` is a small Rust node/database facade over vendored CultCache and CultNet with document-set registration and durable typed put/get/delete. `vendor/cultcache-rs` now reads and writes the `cultcache.store.v1` snapshot format used by `state/ledgers.msgpack`, so `epiphany-state status` is a working re-entry rite again. `epiphany-core` depends on `vendor/cultcache-rs`, `vendor/cultnet-rs`, and `vendor/cultmesh-rs`, exposes an `EpiphanyCultMeshStatusEntry`, records typed `EpiphanyCultMeshVersePolicyEntry` documents for the internal/local-area/global Verse tiers, and records typed `EpiphanyCultMeshGlobalRoomPolicyEntry` documents for threaded public global rooms such as dreams, architecture, research, faces, GameCult, and governance. Native operator status is now a typed `EpiphanyCultMeshOperatorStatusEntry` in the internal Verse; it names Codex as bridge transport, Epiphany as authority owner, prompt-authority separation, and the quarantined Rider/Unity optional surfaces. Native operator snapshots are typed `EpiphanyCultMeshOperatorSnapshotEntry` documents distilled from operator-safe status artifacts; local status runs now write `.epiphany-run/cultmesh/operator-snapshots.ccmp` instead of leaving JSON artifacts as the only operator memory.
|
||||
- The first Rust CultMesh integration slice is landed and repaired to compile from repo-contained vendored crates. `vendor/cultmesh-rs` is a small Rust node/database facade over vendored CultCache and CultNet with document-set registration and durable typed put/get/delete. `vendor/cultcache-rs` now reads and writes the `cultcache.store.v1` snapshot format used by `state/ledgers.cc`, so `epiphany-state status` is a working re-entry rite again. `epiphany-core` depends on `vendor/cultcache-rs`, `vendor/cultnet-rs`, and `vendor/cultmesh-rs`, exposes an `EpiphanyCultMeshStatusEntry`, records typed `EpiphanyCultMeshVersePolicyEntry` documents for the internal/local-area/global Verse tiers, and records typed `EpiphanyCultMeshGlobalRoomPolicyEntry` documents for threaded public global rooms such as dreams, architecture, research, faces, GameCult, and governance. Native operator status is now a typed `EpiphanyCultMeshOperatorStatusEntry` in the internal Verse; it names Codex as bridge transport, Epiphany as authority owner, prompt-authority separation, and the quarantined Rider/Unity optional surfaces. Native operator snapshots are typed `EpiphanyCultMeshOperatorSnapshotEntry` documents distilled from operator-safe status artifacts; local status runs now write `.epiphany-run/cultmesh/operator-snapshots.cc` instead of leaving JSON artifacts as the only operator memory.
|
||||
- Mind's CultNet contract surface is native enough for the next Aquarium/CultMesh cut: `epiphany-core::mind_gateway` defines thought, state-effect proposal, gateway-review, commit-receipt, rejection-receipt, and Verse-adoption document contracts; runtime-spine advertises those mutation/read contracts; CultMesh persists matching `EpiphanyCultMeshMindContractEntry` policy documents so the private state guardian boundary is inspectable as typed state.
|
||||
- Substrate Gate contract surface is now named beside Mind's state gate: `epiphany-core::substrate_gate` defines repo access requests, access reviews, grant/refusal receipts, snapshot receipts, and mutation receipts; runtime-spine advertises those contracts; CultMesh persists matching `EpiphanyCultMeshSubstrateGateContractEntry` policy documents so repo substrate access has its own typed guardian instead of hiding behind worker launch scope.
|
||||
- Eyes' evidence contract surface is named beside Substrate Gate and Mind: `epiphany-core::eyes_gateway` defines evidence requests, evidence reviews, source lookup receipts, evidence packets, and evidence refusal receipts; runtime-spine advertises those contracts; CultMesh persists matching `EpiphanyCultMeshEyesContractEntry` policy documents so retrieved snippets and source reads are not confused with inspected evidence.
|
||||
|
|
@ -179,7 +179,7 @@ accepted_design:
|
|||
- Native `epiphany-repo-personality` is the first startup-personality scout and birth-only distiller packet renderer: it deterministically inventories local git repos, scores repo terrain/history/state surfaces, writes typed CultCache terrain/profile/role-projection MessagePack stores, emits JSON/Markdown inspection glass, and renders a Repo Personality Distiller specialist prompt packet for Self-reviewed first role-memory petitions. The distiller must run only when a repo/swarm has no accepted personality initialization; after that, personality drift belongs to heartbeat, mood, rumination, sleep consolidation, lived evidence, and reviewed `selfPatch`. Startup routing now checks accepted initialization records, generates missing startup-only packets only once, applies reviewed birth memory and heartbeat physiology seeds, and leaves later drift alone. Birth specialists are not heartbeat lanes; heartbeat receives only accepted seed pressure.
|
||||
- Repo memory initialization is a separate birth-only organ from repo personality initialization. `epiphany-repo-personality memory-packet` uses the typed terrain/profile/projection store plus bounded source excerpts from doctrine, docs, state, research, contracts, verification, runtime, and code surfaces to render a Repo Memory Distiller packet with mission-specific briefs for Self, Persona, Imagination, Eyes, Proprioception, Hands, and Soul, plus Continuity protocol doctrine as typed state pressure rather than role memory. It petitions Self with role-specific organ-state memory candidates; it does not mutate memory, set objectives, copy raw dumps, or reset living memory after startup.
|
||||
- Repo trajectory initialization is now its own 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 Repo Trajectory Distiller prompt/packet so Self can review historical direction, self-image, implicit goals, anti-goals, and role-local trajectory pressure before the swarm wakes.
|
||||
- The first repo birth startup valve is native: `epiphany-repo-personality startup` checks a typed CultCache init store for accepted `repo-trajectory`, `repo-personality`, and `repo-memory` records, generates missing birth packets for Self review, marks them as birth-only startup-runner work with no heartbeat participant, and stops with `reviewInitializationPackets`; `epiphany-repo-birth-runner` now turns those packets into startup-only prompts, output schemas, typed model-runtime request documents, runtime-spine receipts, result files, and exact accept commands without offering the old Codex CLI executor path; `accept-init` can review/apply role `selfPatch` candidates from a distiller result through `state/agents.msgpack`, stamp `repo-personality` canonical Ghostlight trait bundles from deterministic role projections, seed `repo-personality` heartbeat physiology through `state/agent-heartbeats.msgpack`, record reviewed packet acceptance as `epiphany.repo_initialization_record.v0`, and later startup returns `continueStartup` without rerunning the birth rites. Aquarium review UI is still the next routing gap.
|
||||
- The first repo birth startup valve is native: `epiphany-repo-personality startup` checks a typed CultCache init store for accepted `repo-trajectory`, `repo-personality`, and `repo-memory` records, generates missing birth packets for Self review, marks them as birth-only startup-runner work with no heartbeat participant, and stops with `reviewInitializationPackets`; `epiphany-repo-birth-runner` now turns those packets into startup-only prompts, output schemas, typed model-runtime request documents, runtime-spine receipts, result files, and exact accept commands without offering the old Codex CLI executor path; `accept-init` can review/apply role `selfPatch` candidates from a distiller result through `state/agents.cc`, stamp `repo-personality` canonical Ghostlight trait bundles from deterministic role projections, seed `repo-personality` heartbeat physiology through `state/agent-heartbeats.cc`, record reviewed packet acceptance as `epiphany.repo_initialization_record.v0`, and later startup returns `continueStartup` without rerunning the birth rites. Aquarium review UI is still the next routing gap.
|
||||
- Limited native CRRC automation is now wired only at turn-complete safe boundaries: it can submit a compact operation when the read-only coordinator recommends `compactRehydrateReorient` or when a successful pre-compaction checkpoint intervention left a pending compact handoff for the completed turn, and it can launch the fixed `reorient-worker` when the coordinator recommends `launchReorientWorker`. It does not auto-launch modeling or verification, auto-accept findings, promote evidence, edit implementation code, or continue after reviewable semantic results; the rite may carry the stretcher, not declare the patient healed.
|
||||
- Pre-compaction checkpoint intervention is now wired at token-count boundaries: when a loaded Epiphany thread crosses the existing `shouldPrepareCompaction` pressure threshold during an active turn, the harness steers the active agent once for that turn with a bounded CRRC directive to bank scratch/checkpoint/map/evidence before compaction/reorientation. A successful steer marks a turn-scoped pending compact handoff consumed at clean turn completion; this is banking the fire before the dark, not semantic acceptance, broad scheduling, or automatic implementation continuation.
|
||||
- Native `epiphany-mvp-status` is the first dogfood operator view: it starts or reads a thread through app-server and renders scene, planning, pressure, reorient, jobs, role result read-backs, reorient result, CRRC recommendation, heartbeat, Persona bubbles, and MVP role lanes as text or machine output without becoming a state store. The old Python status module has been cut; native Rust/CultCache/CultNet surfaces are the product path.
|
||||
|
|
@ -203,9 +203,9 @@ accepted_design:
|
|||
- Major Epiphany prompt surfaces live in prompt files rather than Rust/Python string slabs: rendered state intro/doctrine under `epiphany-state-model/src/prompts/`, and modeling/Proprioception, research/Eyes, implementation/Hands, verification/Soul, reorientation/Continuity, coordinator/Self, Persona/public-surface, and CRRC intervention templates in `epiphany-core/src/prompts/epiphany_specialists.toml`.
|
||||
- Specialist prompts are role-distilled instead of generic and their live text is config-backed in `epiphany-core`: modeling/checkpoint is Proprioception: code, dataflow, seams, and frontier; research/scout is the Eyes prompt surface for existing work, vendor guidance, libraries, papers, and anti-Greenspun source selection; implementation is the Hands, the main coding lane and actuator rather than a `roleLaunch` specialist; verification/review is the Soul of promise, invariants, evidence, and user truth; reorientation is a Continuity worker across compaction and source drift; coordinator is the read-only Self that routes attention without implementing, verifying, promoting, or accepting; Persona is the public Discord #aquarium surface that translates agent thought-weather without moderating or leaking sealed thought.
|
||||
- Epiphany prompt surfaces now carry a shared Ghostlight-derived persistent memory projection before lane-specific text: prompt is not memory, durable typed state is the mind, personality and protected values are first-class salience handles, and every lane is explicitly responsible for making its own memory/model/prompt/evidence habit sharper or naming the needed repair. Each lane states self-improvement in its own rite-language: Imagination selects futures, Proprioception clarifies anatomy, Eyes sees earlier, Hands touches source more precisely, Soul becomes harder to fool, Continuity loses less context, Self routes repair, and Persona becomes clearer at turning inner weather into useful social presence.
|
||||
- Specialist self-memory now has a bounded CultCache persistence surface in `state/agents.msgpack`: Imagination, Proprioception, Eyes, Hands, Soul, Self, and Persona each have an individual typed organ-state record for identity, semantic/episodic/relationship memory, goals, values, and profile classification. Work organs stay light; Persona may use portable Persona state. Continuity has typed protocol receipts instead of an organ-state record. These entries are lane memory only; project truth remains in authoritative `EpiphanyThreadState`.
|
||||
- `state/agent-heartbeats.msgpack`, `epiphany-core::EpiphanyHeartbeatStateEntry`, and the native `epiphany-heartbeat-store` binary are the Ghostlight-derived heartbeat initiative seam. The harness sets a target heartbeat rate; participants carry arena, participant kind, initiative speed, next-ready time, reaction bias, interrupt threshold, current load, status, constraints, personality cooldown, mood cooldown, initiative heat, active-turn freeze state, and effective cooldown; pending coordinator work can pull its owning lane through a reaction window; otherwise the earliest ready active participant wins the slot. Organ-state records set the personality baseline, appraisals bend it with mood/anxiety signals such as urgency, arousal, thought pressure, guardedness, and reaction intensity, and lower effective cooldown means the lane recovers sooner and gets the floor more often. `HeartbeatMoodTiming` now also owns the 32-axis current affect vector used by utterance state: anger, despair, sadness, fear, contempt, annoyance, dismissal, flippancy, tenderness, warmth, shame, pride, fatigue, secrecy, hesitation, emotional containment, and related speech pressures are heartbeat physiology, not decorative prompt adjectives. Initiative heat is typed heartbeat policy, not a side flag: `epiphany-heartbeat-store heat` and the CultNet `epiphany.heartbeat_heat_intent.v0` contract can set or clear global, all, agent, role, arena, participant-kind, group, and constraint multipliers, with optional scene-clock expiry. Active thinking freezes initiative explicitly: running pending turns project `initiativeFrozen` / `initiative_frozen`, are ineligible for reaction, cannot be selected again, and start cooldown only after completion. The native `pump` command computes adaptive swarm pressure from external urgency, mood/anxiety, reaction intensity, thought pressure, and current pending load; relaxed pressure can launch nothing and run at crawl tempo, while alarm pressure can fill most or all active lanes up to a configured concurrency cap without waking any lane already running. If the winner has no routeable maintenance work, it ruminates on role quality and prepares bounded selfPatch pressure rather than pretending rumination has already consolidated doctrine. Sleep/dream cycle passes are the intended distillation window for reviewed self-memory and doctrine. Persona can win `surfaceAgentThoughts` or `discordAquariumChat` work slots. Epiphany also owns native character-loop projection through `epiphany-character-loop`, so organ-state records can respond to visible stimuli without importing Ghostlight as runtime. The same heartbeat store now owns the Void-derived routine fields typed `sleep_cycle`, typed `memory_resonance`, `incubation`, `thought_lanes`, `bridge`, `candidate_interventions`, typed `appraisals`, and typed `reactions` through the native `epiphany-heartbeat-store routine` command.
|
||||
- `state/ledgers.msgpack`, `epiphany-core::EpiphanyStateLedgerEntry`, the `epiphany-state-ledger-store` binary, and the native `epiphany-state` CLI now own durable branch and evidence ledgers. The old tracked JSON ledger files and the migration/projection CLI hatches are gone.
|
||||
- Specialist self-memory now has a bounded CultCache persistence surface in `state/agents.cc`: Imagination, Proprioception, Eyes, Hands, Soul, Self, and Persona each have an individual typed organ-state record for identity, semantic/episodic/relationship memory, goals, values, and profile classification. Work organs stay light; Persona may use portable Persona state. Continuity has typed protocol receipts instead of an organ-state record. These entries are lane memory only; project truth remains in authoritative `EpiphanyThreadState`.
|
||||
- `state/agent-heartbeats.cc`, `epiphany-core::EpiphanyHeartbeatStateEntry`, and the native `epiphany-heartbeat-store` binary are the Ghostlight-derived heartbeat initiative seam. The harness sets a target heartbeat rate; participants carry arena, participant kind, initiative speed, next-ready time, reaction bias, interrupt threshold, current load, status, constraints, personality cooldown, mood cooldown, initiative heat, active-turn freeze state, and effective cooldown; pending coordinator work can pull its owning lane through a reaction window; otherwise the earliest ready active participant wins the slot. Organ-state records set the personality baseline, appraisals bend it with mood/anxiety signals such as urgency, arousal, thought pressure, guardedness, and reaction intensity, and lower effective cooldown means the lane recovers sooner and gets the floor more often. `HeartbeatMoodTiming` now also owns the 32-axis current affect vector used by utterance state: anger, despair, sadness, fear, contempt, annoyance, dismissal, flippancy, tenderness, warmth, shame, pride, fatigue, secrecy, hesitation, emotional containment, and related speech pressures are heartbeat physiology, not decorative prompt adjectives. Initiative heat is typed heartbeat policy, not a side flag: `epiphany-heartbeat-store heat` and the CultNet `epiphany.heartbeat_heat_intent.v0` contract can set or clear global, all, agent, role, arena, participant-kind, group, and constraint multipliers, with optional scene-clock expiry. Active thinking freezes initiative explicitly: running pending turns project `initiativeFrozen` / `initiative_frozen`, are ineligible for reaction, cannot be selected again, and start cooldown only after completion. The native `pump` command computes adaptive swarm pressure from external urgency, mood/anxiety, reaction intensity, thought pressure, and current pending load; relaxed pressure can launch nothing and run at crawl tempo, while alarm pressure can fill most or all active lanes up to a configured concurrency cap without waking any lane already running. If the winner has no routeable maintenance work, it ruminates on role quality and prepares bounded selfPatch pressure rather than pretending rumination has already consolidated doctrine. Sleep/dream cycle passes are the intended distillation window for reviewed self-memory and doctrine. Persona can win `surfaceAgentThoughts` or `discordAquariumChat` work slots. Epiphany also owns native character-loop projection through `epiphany-character-loop`, so organ-state records can respond to visible stimuli without importing Ghostlight as runtime. The same heartbeat store now owns the Void-derived routine fields typed `sleep_cycle`, typed `memory_resonance`, `incubation`, `thought_lanes`, `bridge`, `candidate_interventions`, typed `appraisals`, and typed `reactions` through the native `epiphany-heartbeat-store routine` command.
|
||||
- `state/ledgers.cc`, `epiphany-core::EpiphanyStateLedgerEntry`, the `epiphany-state-ledger-store` binary, and the native `epiphany-state` CLI now own durable branch and evidence ledgers. The old tracked JSON ledger files and the migration/projection CLI hatches are gone.
|
||||
- CultCache inspection, cross-language schema synchronization, and debug display tooling belong in CultLib, not in EpiphanyAgent. Epiphany should consume typed CultCache documents and expose product-specific status through its API, while general polyglot domain loading/inspection lives with the shared CultCache ecosystem.
|
||||
- VoidBot's current routine is reference lineage only. Epiphany's native routine pass lives in Rust as `epiphany-heartbeat-store routine`: it reads typed organ-state records, projects typed memory-resonance pair documents, maintains incubation themes, runs analytic and associative cognition lanes, writes bridge syntheses/saturation/tension, produces reviewed candidate interventions, advances typed sleep/dream-cycle state, and writes an auditable routine receipt while leaving project truth and role memory mutation on their dedicated reviewed surfaces. Qdrant-backed memory vectors remain a future enhancement; the current native pass uses bounded local resonance over typed memories.
|
||||
- `epiphany-character-loop` now advertises `epiphany.cognition_lanes.v0` and `epiphany.cognition_bridge.v0` in every character-turn packet, and its projection/appraisal/reaction seeds reuse the typed heartbeat cognition documents before artifact serialization. Its utterance-state projection is the Weksa/AquaSynth speech seam: typed identity, trait vectors, values, current mood, activation, 32 named affect dimensions, and a 64-float character-state vector, with episodic/semantic/relationship memories deliberately excluded. Persona and future role-local actors must run an analytic lane and an associative lane, then let the bridge choose bubble, draft, finding, silence, or bounded `selfPatch`; those lanes shape attention but do not mutate project truth.
|
||||
|
|
@ -264,11 +264,11 @@ landed_baseline:
|
|||
- Phase 6 GUI planning operator slice: MVP status and Tauri/React GUI render planning state; old Python GUI action shims have been cut from EpiphanyAgent.
|
||||
- Phase 6 Imagination role lane: the `roles` view lens exposes Imagination/planning, `roleLaunch` can launch the fixed `planning-synthesis-worker`, `roleResult` projects its finding, `roleAccept` applies planning-only patches with review-gated Objective Drafts, and the GUI/status tools can launch, read, and accept that lane.
|
||||
- Phase 6 Aquarium graph and Rider bridge slice: the Tauri/React/WebGL Aquarium embeds the adjacent EpiphanyGraph viewer over typed graph state, native `epiphany-rider-bridge` writes Rider/source-context artifacts, Aquarium Inspect Rider surfaces those artifacts, and `integrations/rider` scaffolds the first frontend-only Rider tool-window/context-action plugin.
|
||||
- Phase 6 role self-memory slice: local organ-state records live in typed CultCache `state/agents.msgpack`, specialists may request bounded `selfPatch` lane-memory mutations, coordinator review projects acceptance/refusal reasons through `selfPersistence`, and GUI/coordinator accept paths apply accepted requests with the native `epiphany-agent-memory-store` binary.
|
||||
- Phase 6 role self-memory slice: local organ-state records live in typed CultCache `state/agents.cc`, specialists may request bounded `selfPatch` lane-memory mutations, coordinator review projects acceptance/refusal reasons through `selfPersistence`, and GUI/coordinator accept paths apply accepted requests with the native `epiphany-agent-memory-store` binary.
|
||||
- Phase 6 Persona public-surface slice: Persona's typed organ-state record, Persona prompt text, `state/persona-discord.toml`, the native `epiphany-persona-discord` persona/webhook pipe, `state/void-memory.toml`, and the native `epiphany-void-memory` bridge establish Persona as the public #aquarium-only translator of Epiphany agent thought-weather, with Void-derived Discord memory/search/presentation organs but without VoidBot's moderation authority.
|
||||
- Phase 6 character-loop slice: native `epiphany-character-loop` loads any role's typed organ-state record from `state/agents.msgpack`, combines it with a visible stimulus, builds typed projection/appraisal/reaction seeds from the shared heartbeat cognition structs, and emits an auditable `epiphany.character_turn_packet.v0` local projection for response, bubble, finding, silence, or bounded `selfPatch`. Persona is the first intended public-surface consumer; Ghostlight is reference material, not a runtime dependency.
|
||||
- Phase 6 heartbeat initiative slice: `state/agent-heartbeats.msgpack`, `epiphany-core::EpiphanyHeartbeatStateEntry`, the native `epiphany-heartbeat-store` binary, and heartbeat smoke coverage borrow Ghostlight initiative scheduling so Self, Persona, Imagination, Eyes, Proprioception, Hands, and Soul compete for heartbeat slots; idle slots become bounded rumination instead of fake project work, and sleep/dream cycle passes emit Continuity protocol receipts rather than waking a Continuity persona. The live state surface now ticks/completes/pumps/applies heartbeat physiology through typed CultCache MessagePack instead of JSON or Python wrapper state. Role personality and current mood/anxiety both shape initiative recovery through personality, mood, and effective cooldown multipliers, so Hands-like work pressure and anxious high-need lanes can recover sooner without waking lanes whose previous turn is still running. Adaptive pump pressure controls tempo and concurrency: calm can launch zero and sleep slow; alarm can fill most active lanes. The same store can now initialize a `ghostlight-scene` profile for character scene turns.
|
||||
- Phase 6 cognition-lanes/Void routine slice: native `epiphany-heartbeat-store routine` rebuilds VoidBot-style sleep, resonance, incubation, parallel analytic/associative thought lanes, bridge judgment, candidate interventions, Ghostlight-style participant-local thought appraisal, derived reactions, dream maintenance, and mood/anxiety timing inside Epiphany's heartbeat store. It now also carries Void's anti-loop organs: split `noveltyToSelf`/`noveltyToRoom`, source coverage, saturation pressure, refractory cooling, and explicit permission to let a live unsaturated thought deepen without forced novelty theater. It reads typed organ-state records from `state/agents.msgpack`, projects clustered thought state through each role's personality vectors, updates `state/agent-heartbeats.msgpack`, and emits an auditable `epiphany.void_routine.v0` receipt without importing VoidBot or granting speech/project authority. `epiphany-character-loop` also carries the same cognition lane/bridge/appraisal contract for role-local actor turns; reactions may pace, color, draft, or display behavior, but state mutation remains on reviewed `selfPatch` or project-state surfaces.
|
||||
- Phase 6 character-loop slice: native `epiphany-character-loop` loads any role's typed organ-state record from `state/agents.cc`, combines it with a visible stimulus, builds typed projection/appraisal/reaction seeds from the shared heartbeat cognition structs, and emits an auditable `epiphany.character_turn_packet.v0` local projection for response, bubble, finding, silence, or bounded `selfPatch`. Persona is the first intended public-surface consumer; Ghostlight is reference material, not a runtime dependency.
|
||||
- Phase 6 heartbeat initiative slice: `state/agent-heartbeats.cc`, `epiphany-core::EpiphanyHeartbeatStateEntry`, the native `epiphany-heartbeat-store` binary, and heartbeat smoke coverage borrow Ghostlight initiative scheduling so Self, Persona, Imagination, Eyes, Proprioception, Hands, and Soul compete for heartbeat slots; idle slots become bounded rumination instead of fake project work, and sleep/dream cycle passes emit Continuity protocol receipts rather than waking a Continuity persona. The live state surface now ticks/completes/pumps/applies heartbeat physiology through typed CultCache MessagePack instead of JSON or Python wrapper state. Role personality and current mood/anxiety both shape initiative recovery through personality, mood, and effective cooldown multipliers, so Hands-like work pressure and anxious high-need lanes can recover sooner without waking lanes whose previous turn is still running. Adaptive pump pressure controls tempo and concurrency: calm can launch zero and sleep slow; alarm can fill most active lanes. The same store can now initialize a `ghostlight-scene` profile for character scene turns.
|
||||
- Phase 6 cognition-lanes/Void routine slice: native `epiphany-heartbeat-store routine` rebuilds VoidBot-style sleep, resonance, incubation, parallel analytic/associative thought lanes, bridge judgment, candidate interventions, Ghostlight-style participant-local thought appraisal, derived reactions, dream maintenance, and mood/anxiety timing inside Epiphany's heartbeat store. It now also carries Void's anti-loop organs: split `noveltyToSelf`/`noveltyToRoom`, source coverage, saturation pressure, refractory cooling, and explicit permission to let a live unsaturated thought deepen without forced novelty theater. It reads typed organ-state records from `state/agents.cc`, projects clustered thought state through each role's personality vectors, updates `state/agent-heartbeats.cc`, and emits an auditable `epiphany.void_routine.v0` receipt without importing VoidBot or granting speech/project authority. `epiphany-character-loop` also carries the same cognition lane/bridge/appraisal contract for role-local actor turns; reactions may pace, color, draft, or display behavior, but state mutation remains on reviewed `selfPatch` or project-state surfaces.
|
||||
- Native runtime spine slice: `epiphany-core::EpiphanyRuntimeIdentity`, `EpiphanyRuntimeSession`, `EpiphanyRuntimeJob`, `EpiphanyRuntimeJobResult`, and `EpiphanyRuntimeEvent` plus the native `epiphany-runtime-spine` binary establish a CultCache-backed spine, native job/result lifecycle, status projection, and framed CultNet hello output so the old Codex app-server runtime can be starved down to a temporary evacuation bridge instead of remaining the throne.
|
||||
- Native repo personality scout/birth-distiller packet slice: `epiphany-repo-personality` emits typed terrain reports, repo personality profiles, and role personality projections for the embodied sub-agent lanes from deterministic repo inventory and git-history scoring, then renders a birth-only Repo Personality Distiller specialist packet and prompt for review-gated initial personality quirk petitions; `epiphany-repo-personality-smoke` proves scout/project/agent-packet/status over tiny local repos.
|
||||
- Native repo trajectory scout/birth-distiller packet slice: `epiphany-repo-personality` now also emits typed `repo_trajectory_report` documents from early-history, recent-history, doctrine/content excerpts, and deterministic theme scoring, then renders a birth-only Repo Trajectory Distiller packet so newborn swarms can inherit historical direction, self-image, implicit goals, and anti-goals without confusing those with active objectives.
|
||||
|
|
@ -292,8 +292,8 @@ landed_baseline:
|
|||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-mvp-coordinator-smoke` before modifying the fixed-lane MVP coordinator endpoint or runner.
|
||||
- Use `cargo test --manifest-path .\epiphany-core\Cargo.toml --lib runtime_spine -- --nocapture` and `cargo build --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-runtime-spine` before modifying native runtime-spine state or CultNet hello emission.
|
||||
- Use focused app-server/core Rust checks before modifying explicit role launch/read-back/acceptance behavior.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- smoke --store .\state\agents.msgpack` before modifying organ self-memory records or `selfPatch` persistence policy.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- smoke --agent-store .\state\agents.msgpack` before modifying heartbeat initiative timing, idle rumination, or role slot selection.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-agent-memory-store -- smoke --store .\state\agents.cc` before modifying organ self-memory records or `selfPatch` persistence policy.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-heartbeat-store -- smoke --agent-store .\state\agents.cc` before modifying heartbeat initiative timing, idle rumination, or role slot selection.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-repo-personality-smoke` before modifying repo trajectory/personality terrain scoring, birth packet shape, startup-init routing, source excerpt selection, or role-specific initialization memory contracts.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-persona-discord -- smoke` before modifying Persona's #aquarium posting/draft guardrails.
|
||||
- Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-void-memory -- smoke` and `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-void-memory -- status` before modifying Void memory bridge behavior.
|
||||
|
|
@ -494,7 +494,7 @@ current_status:
|
|||
both the Persona/coordinator/sleep cycle and the coordinator-to-model-runtime
|
||||
transport seam, so model failures are attributed to provider/runtime
|
||||
transport instead of generic missing checkpoint state.
|
||||
Live plan/run/MVP modes use the workspace `state/runtime-spine.msgpack`,
|
||||
Live plan/run/MVP modes use the workspace `state/runtime-spine.cc`,
|
||||
because CodexThread job launch writes typed worker requests there; the
|
||||
`.epiphany-dogfood/` runtime store shape is artifact evidence only unless
|
||||
CodexThread learns an explicit runtime-store override.
|
||||
|
|
@ -519,7 +519,7 @@ current_status:
|
|||
legacy status artifact, operator snapshot, and completion receipt in that
|
||||
order.
|
||||
The first native status cut is landed: `epiphany-mvp-status` has an
|
||||
explicit `--source native` mode that reads `state/thread-state.msgpack`
|
||||
explicit `--source native` mode that reads `state/thread-state.cc`
|
||||
when present and derives scene, pressure, jobs, roles, planning, reorient,
|
||||
CRRC, and coordinator status through `epiphany-core` instead of Codex
|
||||
JSON-RPC. `tools/epiphany_local_run.ps1 -Mode status` now builds only
|
||||
|
|
|
|||
|
|
@ -129,13 +129,13 @@ $heartbeatExe = Join-Path $TargetDir "debug\epiphany-heartbeat-store.exe"
|
|||
$faceExe = Join-Path $TargetDir "debug\epiphany-persona-discord.exe"
|
||||
$characterLoopExe = Join-Path $TargetDir "debug\epiphany-character-loop.exe"
|
||||
$modelProvider = "openai-codex"
|
||||
$operatorRunStore = Join-Path $Root ".epiphany-run\cultmesh\operator-runs.ccmp"
|
||||
$operatorSnapshotStore = Join-Path $Root ".epiphany-run\cultmesh\operator-snapshots.ccmp"
|
||||
$localVerseStore = Join-Path $Root ".epiphany-run\cultmesh\local-verse.ccmp"
|
||||
$operatorRunStore = Join-Path $Root ".epiphany-run\cultmesh\operator-runs.cc"
|
||||
$operatorSnapshotStore = Join-Path $Root ".epiphany-run\cultmesh\operator-snapshots.cc"
|
||||
$localVerseStore = Join-Path $Root ".epiphany-run\cultmesh\local-verse.cc"
|
||||
$operatorSnapshotId = "$runId-status"
|
||||
$agentStore = Join-Path $Root "state\agents.msgpack"
|
||||
$heartbeatStore = Join-Path $Root "state\agent-heartbeats.msgpack"
|
||||
$runtimeStore = Join-Path $Workspace "state\runtime-spine.msgpack"
|
||||
$agentStore = Join-Path $Root "state\agents.cc"
|
||||
$heartbeatStore = Join-Path $Root "state\agent-heartbeats.cc"
|
||||
$runtimeStore = Join-Path $Workspace "state\runtime-spine.cc"
|
||||
$liveRuntimeMode = @("run", "mvp") -contains $Mode
|
||||
|
||||
if (-not $SkipBuild) {
|
||||
|
|
@ -260,7 +260,7 @@ if ($Mode -eq "status") {
|
|||
$statusArgs = @(
|
||||
"--source", "native",
|
||||
"--cwd", $Workspace,
|
||||
"--thread-state-store", (Join-Path $Root "state\thread-state.msgpack"),
|
||||
"--thread-state-store", (Join-Path $Root "state\thread-state.cc"),
|
||||
"--json",
|
||||
"--result", $statusJson
|
||||
)
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ while ((Get-Date) -lt $target) {
|
|||
$cycleArtifactDir = Join-Path $artifactDir ("cycle-{0:D3}" -f $cycles)
|
||||
New-Item -ItemType Directory -Force -Path $cycleArtifactDir | Out-Null
|
||||
|
||||
& cargo run --manifest-path ".\epiphany-core\Cargo.toml" --bin epiphany-heartbeat-store -- routine --store ".\state\agent-heartbeats.msgpack" --artifact-dir $cycleArtifactDir --agent-store ".\state\agents.msgpack" --source "epiphany/perfect-machine-rumination" *> (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
|
||||
|
|
|
|||
2
vendor/cultcache-rs
vendored
2
vendor/cultcache-rs
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit e6fcdc1dcf46e148925fea25b3eaa9b2ec36650b
|
||||
Subproject commit e4063b69e8473db5ff69440bb942c16589f80d51
|
||||
2
vendor/cultmesh-rs/src/lib.rs
vendored
2
vendor/cultmesh-rs/src/lib.rs
vendored
|
|
@ -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(),
|
||||
};
|
||||
|
|
|
|||
2
vendor/cultnet-rs
vendored
2
vendor/cultnet-rs
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit ab86857a687917f6383595a721ade0e1a7e247df
|
||||
Subproject commit 77580f8eee1def465eb8d74c3c86c9c7dcd75d2d
|
||||
Reference in a new issue