diff --git a/epiphany-core/src/bin/epiphany-repo-personality-smoke.rs b/epiphany-core/src/bin/epiphany-repo-personality-smoke.rs index 797ab3de..af4b4996 100644 --- a/epiphany-core/src/bin/epiphany-repo-personality-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-personality-smoke.rs @@ -218,6 +218,37 @@ fn run_smoke() -> Result { accepted_personality["record"]["kind"] == "repo-personality", "accept-init should record personality birth", )?; + let agent_store = artifacts.join("startup-agents.msgpack"); + fs::copy(root.join("state").join("agents.msgpack"), &agent_store) + .context("failed to copy role memory store for startup smoke")?; + let memory_result_path = artifacts.join("startup-memory-result.json"); + fs::write( + &memory_result_path, + serde_json::to_vec_pretty(&json!({ + "verdict": "ready-for-review", + "summary": "Smoke newborn memory distillation.", + "confidence": 0.9, + "roleMemoryPatches": [{ + "roleId": "modeling", + "roleName": "Body", + "verdict": "ready-for-review", + "selfPatch": { + "agentId": "epiphany.body", + "reason": "Birth memory should teach Body that repo initialization memory is reviewed and typed.", + "semanticMemories": [{ + "memoryId": "mem-body-startup-birth-memory-smoke", + "summary": "Repo memory birth packets can produce role-specific selfPatch candidates that are applied only after Self review.", + "salience": 0.72, + "confidence": 0.88 + }] + }, + "sourceRefs": ["AGENTS.md"], + "whyThisBelongsInMemory": "Body needs the startup memory route to stay source-grounded.", + "stalenessRisk": "smoke fixture", + "doNotStore": [] + }] + }))?, + )?; let accepted_memory = run_personality( &root, &[ @@ -232,12 +263,22 @@ fn run_smoke() -> Result { "smoke-self", "--summary", "Smoke accepted repo memory birth packet after review.", + "--result", + memory_result_path.to_str().unwrap_or_default(), + "--agent-store", + agent_store.to_str().unwrap_or_default(), + "--apply-self-patches", + "true", ], )?; require( accepted_memory["record"]["kind"] == "repo-memory", "accept-init should record memory birth", )?; + require( + accepted_memory["selfPersistence"]["applied"] == 1, + "accept-init should apply reviewed memory selfPatch candidates", + )?; let startup_after_accept = run_personality( &root, &[ @@ -297,8 +338,10 @@ fn run_smoke() -> Result { "memoryPromptPath": memory_prompt_path, "memorySummaryPath": memory_summary_path, "initStore": init_store, + "agentStore": agent_store, "startupPersonalityPacket": startup_personality_packet, "startupMemoryPacket": startup_memory_packet, + "startupMemoryResult": memory_result_path, "startupAfterAcceptAction": startup_after_accept["action"], "repoCount": scout["repoCount"], "roleProjections": status["roleProjections"], diff --git a/epiphany-core/src/bin/epiphany-repo-personality.rs b/epiphany-core/src/bin/epiphany-repo-personality.rs index 87207b18..f0ae7d58 100644 --- a/epiphany-core/src/bin/epiphany-repo-personality.rs +++ b/epiphany-core/src/bin/epiphany-repo-personality.rs @@ -5,6 +5,8 @@ use chrono::Utc; use cultcache_rs::CultCache; use cultcache_rs::DatabaseEntry; use cultcache_rs::SingleFileMessagePackBackingStore; +use epiphany_core::apply_agent_self_patch; +use epiphany_core::review_agent_self_patch; use ignore::WalkBuilder; use serde::Deserialize; use serde::Serialize; @@ -275,6 +277,9 @@ struct AcceptInitArgs { kind: String, accepted_by: String, summary: Option, + result: Option, + agent_store: Option, + apply_self_patches: bool, } #[derive(Clone, Debug)] @@ -389,6 +394,9 @@ fn parse_accept_init_args(args: impl Iterator) -> Result { init_store = Some(PathBuf::from(value)); @@ -410,6 +418,18 @@ fn parse_accept_init_args(args: impl Iterator) -> Result { + result = Some(PathBuf::from(value)); + Ok(()) + } + "--agent-store" => { + agent_store = Some(PathBuf::from(value)); + Ok(()) + } + "--apply-self-patches" => { + apply_self_patches = parse_bool_arg("--apply-self-patches", &value)?; + Ok(()) + } other => Err(anyhow!("unexpected accept-init argument {other}")), })?; Ok(AcceptInitArgs { @@ -418,6 +438,9 @@ fn parse_accept_init_args(args: impl Iterator) -> Result Result { + match value { + "true" | "yes" | "1" => Ok(true), + "false" | "no" | "0" => Ok(false), + other => Err(anyhow!("{name} must be true or false, got {other:?}")), + } +} + fn run_scout(args: ScoutArgs) -> Result { fs::create_dir_all(&args.artifact_dir) .with_context(|| format!("failed to create {}", args.artifact_dir.display()))?; @@ -728,6 +759,29 @@ fn run_accept_init(args: AcceptInitArgs) -> Result { .and_then(Value::as_str) .ok_or_else(|| anyhow!("packet has no schemaVersion"))?; validate_initialization_kind(&args.kind, packet_schema)?; + let self_persistence = if let Some(result_path) = &args.result { + let raw = fs::read_to_string(result_path) + .with_context(|| format!("failed to read {}", result_path.display()))?; + let result: Value = serde_json::from_str(&raw) + .with_context(|| format!("failed to decode {}", result_path.display()))?; + process_initialization_result_patches( + &args.kind, + &result, + args.agent_store.as_deref(), + args.apply_self_patches, + )? + } else { + json!({ + "resultPath": Value::Null, + "agentStore": args.agent_store, + "applySelfPatches": args.apply_self_patches, + "patches": [], + "accepted": 0, + "rejected": 0, + "applied": 0, + "status": "not-provided" + }) + }; let record = RepoInitializationRecord { schema_version: INITIALIZATION_RECORD_SCHEMA_VERSION.to_string(), record_id: initialization_record_id(repo_id, &args.kind), @@ -752,6 +806,10 @@ fn run_accept_init(args: AcceptInitArgs) -> Result { "schemaVersion": INITIALIZATION_RECORD_SCHEMA_VERSION, "mode": "accept-init", "initStore": args.init_store, + "resultPath": args.result, + "agentStore": args.agent_store, + "applySelfPatches": args.apply_self_patches, + "selfPersistence": self_persistence, "record": initialization_record_summary(&record), })) } @@ -1039,6 +1097,154 @@ fn validate_initialization_kind(kind: &str, packet_schema: &str) -> Result<()> { } } +fn process_initialization_result_patches( + kind: &str, + result: &Value, + agent_store: Option<&Path>, + apply_self_patches: bool, +) -> Result { + let patches = extract_initialization_self_patches(kind, result)?; + if patches.is_empty() { + return Ok(json!({ + "status": "no-patches", + "applySelfPatches": apply_self_patches, + "patches": [], + "accepted": 0, + "rejected": 0, + "applied": 0, + })); + } + let store = agent_store.ok_or_else(|| { + anyhow!("--agent-store is required when --result contains selfPatch candidates") + })?; + let mut reviews = Vec::new(); + let mut accepted = 0usize; + let mut rejected = 0usize; + let mut applied = 0usize; + for patch in patches { + let review = if apply_self_patches { + apply_agent_self_patch(&patch.role_id, &patch.self_patch, store)? + } else { + review_agent_self_patch(&patch.role_id, &patch.self_patch, store) + }; + if review.status == "accepted" { + accepted += 1; + } else { + rejected += 1; + } + if review.applied == Some(true) { + applied += 1; + } + reviews.push(json!({ + "roleId": patch.role_id, + "source": patch.source, + "review": review, + })); + } + Ok(json!({ + "status": if rejected == 0 { "accepted" } else { "review-blocked" }, + "agentStore": store, + "applySelfPatches": apply_self_patches, + "patches": reviews, + "accepted": accepted, + "rejected": rejected, + "applied": applied, + })) +} + +struct InitializationSelfPatch { + role_id: String, + source: String, + self_patch: Value, +} + +fn extract_initialization_self_patches( + kind: &str, + result: &Value, +) -> Result> { + match kind { + "repo-personality" => extract_personality_self_patches(result), + "repo-memory" => extract_memory_self_patches(result), + other => Err(anyhow!("unknown initialization kind {other:?}")), + } +} + +fn extract_personality_self_patches(result: &Value) -> Result> { + let Some(items) = result.get("selfPatchCandidates").and_then(Value::as_array) else { + return Ok(Vec::new()); + }; + let mut patches = Vec::new(); + for (index, item) in items.iter().enumerate() { + let self_patch = item.get("selfPatch").unwrap_or(item).clone(); + let role_id = item + .get("roleId") + .and_then(Value::as_str) + .map(str::to_string) + .or_else(|| { + self_patch + .get("agentId") + .and_then(Value::as_str) + .and_then(role_id_for_agent_id) + .map(str::to_string) + }) + .ok_or_else(|| { + anyhow!("selfPatchCandidates[{index}] needs roleId or known selfPatch.agentId") + })?; + patches.push(InitializationSelfPatch { + role_id, + source: format!("selfPatchCandidates[{index}]"), + self_patch, + }); + } + Ok(patches) +} + +fn extract_memory_self_patches(result: &Value) -> Result> { + let Some(items) = result.get("roleMemoryPatches").and_then(Value::as_array) else { + return Ok(Vec::new()); + }; + let mut patches = Vec::new(); + for (index, item) in items.iter().enumerate() { + let Some(self_patch) = item.get("selfPatch").cloned() else { + continue; + }; + let role_id = item + .get("roleId") + .and_then(Value::as_str) + .map(str::to_string) + .or_else(|| { + self_patch + .get("agentId") + .and_then(Value::as_str) + .and_then(role_id_for_agent_id) + .map(str::to_string) + }) + .ok_or_else(|| { + anyhow!("roleMemoryPatches[{index}] needs roleId or known selfPatch.agentId") + })?; + patches.push(InitializationSelfPatch { + role_id, + source: format!("roleMemoryPatches[{index}].selfPatch"), + self_patch, + }); + } + Ok(patches) +} + +fn role_id_for_agent_id(agent_id: &str) -> Option<&'static str> { + match agent_id { + "epiphany.self" => Some("coordinator"), + "epiphany.face" => Some("face"), + "epiphany.imagination" => Some("imagination"), + "epiphany.eyes" => Some("research"), + "epiphany.body" => Some("modeling"), + "epiphany.hands" => Some("implementation"), + "epiphany.soul" => Some("verification"), + "epiphany.life" => Some("reorientation"), + _ => None, + } +} + fn initialization_record_summary(record: &RepoInitializationRecord) -> Value { json!({ "recordId": record.record_id, diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 1e0ddd50..1a75b93a 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -36,9 +36,9 @@ remembers doctrine; the branch remembers the blade. - 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. - CultNet APIs are advertised as compatible schemas plus mutation contracts. Hello frames now expose readable document types, allowed operations, mutation authority, typed intent document types, and typed receipt document types; Aquarium should use those contracts to submit state changes and watch receipts rather than growing a little bespoke verb zoo. -- Repo personality initialization now has a terrain-reduced plan and first native organ 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-smoke` creates tiny repos and proves one terrain report, one personality profile, all eight role projections, and the rendered distiller packet can round-trip through typed stores/artifacts. The next seam is startup routing that checks for an accepted personality initialization record, launches the distiller only if absent, and lets Self review bounded `selfPatch` candidates into initial role memory and heartbeat seeds. After that, personality drift belongs to heartbeat, mood, rumination, sleep consolidation, lived evidence, and reviewed `selfPatch`, not repeated startup distillation. +- 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 through the normal native agent-memory path. The remaining seam is actual specialist execution, heartbeat seed mutation, and Aquarium review surfaces. After that, personality drift belongs to heartbeat, mood, rumination, sleep consolidation, lived evidence, and reviewed `selfPatch`, not repeated startup distillation. - 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, Face for public surface, Imagination for plans/backlog, Eyes for prior art, Body for architecture, Hands for implementation habits, Soul for evidence, and Life 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-personality` and `repo-memory` records, generates missing packets under a startup artifact dir, and returns `reviewInitializationPackets`. `accept-init` seals a reviewed packet as `epiphany.repo_initialization_record.v0`; after both records exist, startup returns `continueStartup` and does not regenerate birth packets. This is the switchboard, not the full ritual: actual specialist execution, accepted `selfPatch` application, heartbeat seed mutation, and Aquarium review UI are still next. +- The first birth startup valve is now native. `epiphany-repo-personality startup` checks a typed init store for accepted `repo-personality` and `repo-memory` records, generates missing packets under a startup artifact dir, and returns `reviewInitializationPackets`. `accept-init` can process a distiller result, review/apply role `selfPatch` candidates through `state/agents.msgpack`, and seal the reviewed packet as `epiphany.repo_initialization_record.v0`; after both records exist, startup returns `continueStartup` and does not regenerate birth packets. This is the switchboard plus first memory-application path, not the full ritual: actual specialist execution, heartbeat seed mutation, and Aquarium review UI are still next. - 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. @@ -70,7 +70,7 @@ remembers doctrine; the branch remembers the blade. - The planning loop is now runtime-backed and operator-visible. Typed captures, backlog items, roadmap streams, Objective Drafts, and GitHub issue source refs live in `EpiphanyThreadState`, validate through revision-gated `thread/epiphany/update`, render into prompts when present, project read-only through `thread/epiphany/planning`, render in the GUI Planning panel, can be synthesized by the fixed Imagination/planning lane, and can be explicitly adopted through the artifacted `adoptObjectiveDraft` GUI action. Chat is deliberation, not an objective pipe; ideas and GitHub Issues remain planning state until explicit human adoption. - The bridge/dashboard slice is now landed far enough to test locally. Native `epiphany-rider-bridge` inspects Rider installation, solution, VCS, changed files, and captures file/selection/symbol context into `.epiphany-gui/rider` artifacts; Aquarium has Inspect Rider and renders Rider audit artifacts in Environment; Aquarium also embeds the adjacent EpiphanyGraph viewer over typed `graphs.architecture`, `graphs.dataflow`, and `graphs.links`. - A first Rider plugin scaffold lives under `integrations/rider`: tool window, Refresh status, and Send Context to Epiphany action. It shells through native `epiphany-rider-bridge` and does not own state. `gradle` is not installed on this machine, so the scaffold is not build-verified yet. -- Next real product move: complete the birth route by running generated startup packets through specialist execution, applying accepted `selfPatch` candidates into role dossiers, mutating heartbeat seeds from accepted personality pressure, and surfacing the review flow in Aquarium. Continue Aquarium UI work in `E:\Projects\EpiphanyAquarium` after that; surface native heartbeat `sleepCycle`, `memoryResonance`, `incubation`, `thoughtLanes`, `bridge`, `candidateInterventions`, `appraisals`, and `reactions`; keep EpiphanyAgent focused on backend contracts, typed state, coordinator policy, bridge tools, heartbeat scheduling, Face guardrails, and the ongoing purification from Python/JSON scaffolding into Rust/CultCache/CultNet organs. Then build-verify/package the Rider plugin scaffold when Gradle/wrapper support is available, install the Aetheria-pinned Unity `6000.1.10f1` editor, and run the next Aetheria dogfood pass through Aquarium/Rider/Unity bridge artifacts. GitHub Issues import is deferred until the backlog source is fresh enough to deserve Imagination's attention. +- Next real product move: complete the birth route by running generated startup packets through specialist execution, mutating heartbeat seeds from accepted personality pressure, and surfacing the review flow in Aquarium. Continue Aquarium UI work in `E:\Projects\EpiphanyAquarium` after that; surface native heartbeat `sleepCycle`, `memoryResonance`, `incubation`, `thoughtLanes`, `bridge`, `candidateInterventions`, `appraisals`, and `reactions`; keep EpiphanyAgent focused on backend contracts, typed state, coordinator policy, bridge tools, heartbeat scheduling, Face guardrails, and the ongoing purification from Python/JSON scaffolding into Rust/CultCache/CultNet organs. Then build-verify/package the Rider plugin scaffold when Gradle/wrapper support is available, install the Aetheria-pinned Unity `6000.1.10f1` editor, and run the next Aetheria dogfood pass through Aquarium/Rider/Unity bridge artifacts. GitHub Issues import is deferred until the backlog source is fresh enough to deserve Imagination's attention. - The repo is an Epiphany fork of Codex, not a Codex preset. - `vendor/codex` is tracked directly, not a submodule. - `epiphany-core` owns the heavy Epiphany organs where practical. diff --git a/notes/repo-personality-projection-layer-plan.md b/notes/repo-personality-projection-layer-plan.md index 94de839e..811f23fe 100644 --- a/notes/repo-personality-projection-layer-plan.md +++ b/notes/repo-personality-projection-layer-plan.md @@ -497,7 +497,7 @@ It provides: - `agent-packet --store --artifact-dir [--repo-id ]` - `memory-packet --store --artifact-dir [--repo-id ]` - `startup --repo --baseline --artifact-dir --init-store ` -- `accept-init --init-store --packet --kind [--accepted-by ] [--summary ]` +- `accept-init --init-store --packet --kind [--accepted-by ] [--summary ] [--result ] [--agent-store ] [--apply-self-patches ]` - `status --store ` The first implementation is intentionally deterministic. It inventories git @@ -574,19 +574,21 @@ The first startup valve is now wired: under the startup artifact directory and return `reviewInitializationPackets`. 3. `accept-init` records Self-reviewed packet acceptance in `epiphany.repo_initialization_record.v0`. -4. a later `startup` for the same repo sees both accepted records and returns +4. when given a reviewed distiller result plus `--agent-store`, `accept-init` + routes role-local `selfPatch` candidates through the native agent-memory + review/apply path instead of mutating memory through a side channel. +5. a later `startup` for the same repo sees both accepted records and returns `continueStartup` without regenerating packets. That gets Epiphany from “I feel like this repo is anxious and glittery” to a -repeatable profile that can initialize a swarm without needing the operator to -personally diagnose every little machine soul by hand. A relief, frankly. +repeatable profile that can initialize a swarm and seed reviewed role memory +without needing the operator to personally diagnose every little machine soul by +hand. A relief, frankly. Remaining startup-routing gaps after the first valve: 1. actual LLM specialist execution for the generated packets -2. first application of accepted `selfPatch` candidates into - `state/agents.msgpack` -3. heartbeat seed mutation from accepted personality pressure -4. Aquarium review/action surfaces for generated birth packets and accepted +2. heartbeat seed mutation from accepted personality pressure +3. Aquarium review/action surfaces for generated birth packets and accepted initialization records Clarification: "drift detection" here does not mean rerunning the distiller to diff --git a/state/agents/README.md b/state/agents/README.md index f9cbef0a..f5af83fa 100644 --- a/state/agents/README.md +++ b/state/agents/README.md @@ -36,6 +36,10 @@ contracts, verification, runtime, and source. The native `epiphany-repo-personality memory-packet` command renders the role-specific memory distiller packet. It is a petition to Self, not a direct mutation, and it must not reset a living lane's learned memory after startup. +When Self reviews a generated distiller result, run +`epiphany-repo-personality accept-init --result ... --agent-store ... --apply-self-patches true` +to apply accepted birth-memory petitions through the same coordinator-reviewed +`selfPatch` machinery used by living lanes. Face's Discord boundary is still a small TOML configuration seam: it may interact only through #aquarium. If the channel id is not configured, Face must diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 3e9269ea..4aa893eb 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index f8dcaaf6..7d63b064 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -119,7 +119,7 @@ accepted_design: - Repo personality initialization is now specified as a map-reduce projection, not a hand-written vibe pass: read-only scouts score body taxonomy, history temperament, and memory doctrine across nearby repos, reduce them into normalized variance criteria, and emit reviewable `repoTerrainReport`, `repoPersonalityProfile`, and `rolePersonalityProjection` candidates before touching agent memory. - 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`. The next seam is startup routing that checks the accepted initialization record, launches the distiller only if absent, and then leaves later drift alone. - 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 one mission-specific brief for Self, Face, Imagination, Eyes, Body, Hands, Soul, and Life. It petitions Self with role-specific Ghostlight-shaped memory candidates; it does not mutate memory, set objectives, copy raw dumps, or reset living memory after startup. - - The first repo birth startup valve is native: `epiphany-repo-personality startup` checks a typed CultCache init store for accepted `repo-personality` and `repo-memory` records, generates missing birth packets for Self review, and stops with `reviewInitializationPackets`; `accept-init` records reviewed packet acceptance as `epiphany.repo_initialization_record.v0`, after which startup returns `continueStartup` without rerunning the birth rites. Actual specialist execution, selfPatch application, heartbeat seed mutation, and Aquarium review UI are still the next routing gaps. + - The first repo birth startup valve is native: `epiphany-repo-personality startup` checks a typed CultCache init store for accepted `repo-personality` and `repo-memory` records, generates missing birth packets for Self review, and stops with `reviewInitializationPackets`; `accept-init` can review/apply role `selfPatch` candidates from a distiller result through `state/agents.msgpack`, records reviewed packet acceptance as `epiphany.repo_initialization_record.v0`, and later startup returns `continueStartup` without rerunning the birth rites. Actual LLM specialist execution, heartbeat seed mutation, and Aquarium review UI are still the next routing gaps. - 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, Face 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. @@ -210,7 +210,7 @@ landed_baseline: - 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 all eight role personality projections 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 memory scout/birth-distiller packet slice: `epiphany-repo-personality memory-packet` renders a separate Repo Memory Distiller prompt/packet with bounded source excerpts and role-specific distiller briefs, so a newborn swarm can be prefilled with mission-relevant doctrine, maps, research, implementation habits, verification practice, and continuity rules without confusing memory with personality. - - Native repo birth startup valve slice: `epiphany-repo-personality startup` and `accept-init` make personality/memory birth packet generation one-shot and review-gated through typed initialization records; smoke proves first startup emits packets and post-accept startup continues without regeneration. + - Native repo birth startup valve slice: `epiphany-repo-personality startup` and `accept-init` make personality/memory birth packet generation one-shot and review-gated through typed initialization records; `accept-init` now processes distiller result `selfPatch` candidates through the native agent-memory review/apply path, and smoke proves first startup emits packets, reviewed memory output mutates a copied role memory store, and post-accept startup continues without regeneration. guardrails: - Use focused Rust app-server mapper/handler tests plus matching native `epiphany-core` smoke binaries before modifying update, distill, propose, promote, read-projection, or notification behavior. The old Python smoke shims have been cut. - Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-phase6-scene-smoke` before modifying scene projection behavior.