From 0cba9bffa5cf305c785873c6c8d2c187077c8877 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 7 May 2026 03:54:25 +0100 Subject: [PATCH] Clarify birth specialists stay outside heartbeat --- .../src/bin/epiphany-repo-personality.rs | 10 +++++++++- notes/fresh-workspace-handoff.md | 6 +++--- .../repo-personality-projection-layer-plan.md | 4 +++- state/ledgers.msgpack | Bin 57575 -> 57941 bytes state/map.yaml | 6 +++--- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-repo-personality.rs b/epiphany-core/src/bin/epiphany-repo-personality.rs index 7120de63..7a9b6597 100644 --- a/epiphany-core/src/bin/epiphany-repo-personality.rs +++ b/epiphany-core/src/bin/epiphany-repo-personality.rs @@ -692,6 +692,10 @@ fn run_startup(args: StartupArgs) -> Result { required_actions.push("reviewRepoPersonalityInitialization"); generated_packets.push(json!({ "kind": "repo-personality", + "birthOnly": true, + "executionOwner": "repo-initialization-startup-runner", + "heartbeatParticipant": Value::Null, + "contract": "Startup-only specialist packet. Do not register as a heartbeat lane; accept-init may seed heartbeat physiology only after Self review.", "packetPath": result["packetPath"], "promptPath": result["promptPath"], "summaryPath": result["summaryPath"], @@ -706,6 +710,10 @@ fn run_startup(args: StartupArgs) -> Result { required_actions.push("reviewRepoMemoryInitialization"); generated_packets.push(json!({ "kind": "repo-memory", + "birthOnly": true, + "executionOwner": "repo-initialization-startup-runner", + "heartbeatParticipant": Value::Null, + "contract": "Startup-only specialist packet. Do not register as a heartbeat lane; accept-init may apply reviewed role selfPatch requests only after Self review.", "packetPath": result["packetPath"], "promptPath": result["promptPath"], "summaryPath": result["summaryPath"], @@ -740,7 +748,7 @@ fn run_startup(args: StartupArgs) -> Result { "nextSafeMove": if action == "continueStartup" { "Startup birth records are accepted; leave later personality and memory movement to heartbeat, mood, evidence, sleep, and reviewed selfPatch." } else { - "Self reviews generated birth packets, runs the relevant distiller lanes, applies accepted selfPatch candidates through agent memory review, then records accept-init for each completed birth rite." + "Self reviews generated birth packets, runs the startup-only distiller specialists outside the heartbeat lane system, applies accepted selfPatch candidates and heartbeat seeds through accept-init, then records each completed birth rite." } }); write_json( diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 0b96aa8e..c464b4e7 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 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 plus seed heartbeat physiology from typed role personality projections. The remaining seams are actual specialist execution 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 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 plus seed heartbeat physiology from typed role personality projections. The birth specialists are startup-only initialization actuators, not heartbeat lanes; heartbeat receives only the accepted physiology seed. The remaining seams are actual startup-only specialist execution 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` 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 both records exist, startup returns `continueStartup` and does not regenerate birth packets. This is the switchboard plus first memory/physiology application path, not the full ritual: actual specialist execution 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`. Generated birth packets now advertise `birthOnly`, `executionOwner: repo-initialization-startup-runner`, and no heartbeat participant. `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 both records exist, startup returns `continueStartup` and does not regenerate birth packets. This is the switchboard plus first memory/physiology application path, not the full ritual: actual startup-only specialist execution 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 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 a startup-only specialist execution path 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 8d124ff3..b3c6a33e 100644 --- a/notes/repo-personality-projection-layer-plan.md +++ b/notes/repo-personality-projection-layer-plan.md @@ -572,6 +572,8 @@ The first startup valve is now wired: `repo-personality` and `repo-memory` records. 2. missing birth records generate the matching personality and/or memory packet under the startup artifact directory and return `reviewInitializationPackets`. + Those generated packets are explicitly startup-only. They are executed by a + repo-initialization runner, not registered as heartbeat lanes. 3. `accept-init` records Self-reviewed packet acceptance in `epiphany.repo_initialization_record.v0`. 4. when given a reviewed distiller result plus `--agent-store`, `accept-init` @@ -590,7 +592,7 @@ hand. A relief, frankly. Remaining startup-routing gaps after the first valve: -1. actual LLM specialist execution for the generated packets +1. actual startup-only LLM specialist execution for the generated packets 2. Aquarium review/action surfaces for generated birth packets and accepted initialization records diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index a7bf280378da23b6e18ffe21c519bf0e16302ca1..a061379a49304a3d4466f296f2b05c86f4d4fdae 100644 GIT binary patch delta 354 zcmZuty-EW?5a!H7Xd_HW>xJV;6e3o>fT)#Llf5xFci#KNeP6r0Re8*_d^634X|{Ek z<)h(XlnrJ($Gww$pS*)H2Q5K78ODl51uzhZV$j;B&Q>k3Wu1d(sO&7D(HhkS*#PSl zN{ZAmp+be0qz?x_+6h?-IQx3*o_jQ>6s@hB0u~JgWg!SLKmBW-{sxEIMm4x;oKms} zw8b)NFGjLqk5<9fRkgi@qN^cpNMO+&jUm6QRDdsAVOP0H3qtcfkVqYGZ5ZQCk*13> L{fmcxK6dmCP{D(M delta 45 zcmcb5g!%bF<_U^S57uu~p2o=7w|N(%_