Clarify CultCache inspection boundary

This commit is contained in:
Meta Vens 2026-05-06 05:00:57 +01:00
commit bfb1b62979
4 changed files with 17 additions and 11 deletions

View file

@ -41,7 +41,7 @@ Do not trust this file for the exact live HEAD. Always check git.
- The prompt doctrine pass is landed. Shared Epiphany prompts now carry distilled memory/evidence discipline. Rendered state intro/doctrine text lives in `epiphany-core/src/prompts/`, and lane/control prompt text lives in `vendor/codex/codex-rs/app-server/src/prompts/epiphany_specialists.toml`: modeling is the Body, implementation is the Hands and GUI-launched main coding lane, verification is the Soul, reorientation is Life, coordinator remains the read-only Self, and CRRC owns the pre-compaction intervention template.
- 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; `tools/epiphany_gui_action.py` prepends the same memory to GUI-launched implementation prompts. 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 landed. Each lane has a Ghostlight-shaped dossier under `state/agents`, and specialists may return optional `selfPatch` requests beside their normal role result. `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 `tools/epiphany_agent_memory.py`; project truth still belongs only in `EpiphanyThreadState`.
- The heartbeat initiative pass is landed as a bounded tool seam. `state/agent-heartbeats.json` tracks Self, Face, Imagination, Eyes, Body, Hands, Soul, and Life as Ghostlight-style initiative participants with speed, next-ready time, reaction bias, interrupt threshold, load, status, and constraints. `state/agent-heartbeats.msgpack` is now the first typed CultCache-backed MessagePack store for that same state, through `epiphany-core::EpiphanyHeartbeatStateEntry` and the `epiphany-heartbeat-store` bridge binary. `tools/epiphany_agent_heartbeat.py` still operates on the JSON projection for compatibility, reports the CultCache store status, lets the harness set a target heartbeat rate, emits Ghostlight-shaped initiative receipts, pulls pending coordinator work through reaction windows, and makes idle winners ruminate into bounded self-memory instead of inventing project work. This is a callable scheduler seam, not yet an always-on daemon.
- The heartbeat initiative pass is landed as a bounded tool seam. `state/agent-heartbeats.json` tracks Self, Face, Imagination, Eyes, Body, Hands, Soul, and Life as Ghostlight-style initiative participants with speed, next-ready time, reaction bias, interrupt threshold, load, status, and constraints. `state/agent-heartbeats.msgpack` is now the first typed CultCache-backed MessagePack store for that same state, through `epiphany-core::EpiphanyHeartbeatStateEntry` and the `epiphany-heartbeat-store` bridge binary. `tools/epiphany_agent_heartbeat.py` still operates on JSON for compatibility, reports the CultCache store status, lets the harness set a target heartbeat rate, emits Ghostlight-shaped initiative receipts, pulls pending coordinator work through reaction windows, and makes idle winners ruminate into bounded self-memory instead of inventing project work. JSON is a Python-tool shim, not the desired inspection layer. 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.
- The Face public-surface pass is landed as a bounded lane. `state/agents/face.agent-state.json` gives Face a Ghostlight-shaped dossier; `epiphany_specialists.toml` gives it a VoidBot-heartbeat-derived prompt stripped of moderation authority; `state/face-discord.json` and `tools/epiphany_face_discord.py` enforce that Face may interact only through #aquarium. Missing channel id or token writes candidate chat artifacts instead of posting elsewhere.
- The heartbeat/Face operator API pass is landed. `tools/epiphany_agent_heartbeat.py status` returns machine-readable initiative state plus CultCache store presence, `tools/epiphany_face_discord.py bubble` writes Discord-independent `epiphany.face_bubble.v0` artifacts, `tools/epiphany_mvp_status.py` includes `heartbeat` and `face` blocks, and `tools/epiphany_gui_action.py` exposes `heartbeatStatus`, `runHeartbeat`, and `faceBubble`. `runHeartbeat` advances one slot and emits a Face bubble so Aquarium can show chat even before Discord posting is configured.
- 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.

View file

@ -7,7 +7,7 @@ cosplaying as a Discord moderator. The useful organs are:
- cooldown that starts after a heartbeat turn completes, not when it launches
- nap windows for memory consolidation, pruning, dream residue, and incubation
- canonical MessagePack state through a CultCache-style typed document store
- editable JSON working projections that strip or preserve large vector payloads
- CultCache-native inspection/debug tooling rather than long-lived JSON shadow state
deliberately
- code-owned schemas instead of schema drift hiding in loose files
- semantic memory vectors in Qdrant with source hashes and compact dimensions
@ -28,7 +28,7 @@ coordinator pressure / user objective / swarm messages
-> optional Qdrant memory recall / resonance
-> bounded result, selfPatch, statePatch, dream, or callback
-> completion receipt starts cooldown
-> canonical MessagePack write + JSON working projection
-> canonical MessagePack write + typed inspection/debug views
```
## Scheduler Contract
@ -73,7 +73,9 @@ Minimum Rust surface:
external lock expectation.
- `CultCache`: register types, load stores, validate payloads through typed
serde structs, get/get_required/get_all/put/update/delete/snapshot.
- JSON working projection helpers for operator inspection and manual review.
- Typed inspection/debug views should come from CultLib/CultCache tooling so
all wire-compatible runtimes share the same schema and display assumptions.
Repo-local JSON projections are temporary compatibility shims only.
The schema should live in annotated Rust structs using serde plus generated JSON
Schema where useful. MessagePack is canonical. JSON is the window, not the
@ -100,7 +102,7 @@ pattern to agent memory:
salience, confidence, updated time, source refs
- canonical MessagePack state stores vector metadata and optionally compact
inline vectors; Qdrant stores the retrieval vector
- JSON working views may strip vector values while preserving metadata
- CultCache inspection views may strip vector values while preserving metadata
Memory resonance is not proof. It is "these things rhyme" evidence for
rumination, Face surfacing, and sleep consolidation.
@ -110,17 +112,19 @@ rumination, Face surfacing, and sleep consolidation.
1. **Contract extraction**
- Add Rust CultCache-compatible module in `epiphany-core`.
- Add fixtures proving MessagePack round-trip, typed serde/schema validation,
and JSON working projection.
and CultCache inspection compatibility.
2. **Heartbeat state migration**
- Move `state/agent-heartbeats.json` into a typed MessagePack document with a
JSON working projection.
- Move `state/agent-heartbeats.json` into a typed MessagePack document, then
retire JSON once the heartbeat tool reads and writes the typed store
directly.
- Add `sleep_cycle`, `memory_resonance`, and `incubation` fields.
- Keep the current CLI contract stable while the backing store changes.
3. **Role memory migration**
- Store each Ghostlight-shaped role dossier as `epiphany.role_agent_state`.
- Keep per-role JSON projections for human inspection and git review.
- Use CultLib/CultCache inspection tools for human/debug review instead of
preserving per-role JSON as a parallel source of truth.
- Attach semantic vector metadata to episodic, semantic, relationship, goal,
value, musing, and dream entries.

View file

@ -83,3 +83,4 @@
{"ts": "2026-05-06T00:25:00+00:00", "type": "architecture", "status": "ok", "note": "VoidBot's new routine should become the reference Epiphany agent substrate: work/rumination/sleep heartbeats, completion-gated cooldown, typed MessagePack persistence through a Rust CultCache-compatible contract, JSON working projections, Qdrant-backed memory vectors, resonance/incubation/dream organs, and Aquarium-visible internals. Captured the migration plan in notes/voidbot-routine-adoption-plan.md."}
{"ts": "2026-05-06T03:05:00+00:00", "type": "implementation", "status": "ok", "note": "Created the dedicated GameCult/cultcache-rs repo and wired it into EpiphanyAgent as vendor/cultcache-rs. The Rust API follows CultCache ergonomics: domain structs implement CultCacheDocument, consumers register/get/put typed domain values directly, entries are keyed by type::key, backing stores are persistence adapters, and SingleFileMessagePackBackingStore provides the initial canonical MessagePack store."}
{"ts": "2026-05-06T03:46:28+00:00", "type": "implementation", "status": "ok", "note": "Integrated CultCache into the first live Epiphany state surface: heartbeat initiative state now has epiphany-core::EpiphanyHeartbeatStateEntry, an epiphany-heartbeat-store migrate/project/status bridge, committed state/agent-heartbeats.msgpack, and heartbeat status reflects the backing store while JSON remains the reviewable projection."}
{"ts": "2026-05-06T04:00:43+00:00", "type": "architecture", "status": "ok", "note": "Clarified CultCache integration boundary: Epiphany should treat JSON heartbeat state as a temporary Python-tool compatibility shim. General CultCache inspection, polyglot schema sync, domain-type loading, and debug display tooling belong in CultLib/CultCache rather than becoming Epiphany-specific JSON shadow state."}

View file

@ -127,8 +127,9 @@ accepted_design:
- Specialist prompts are role-distilled instead of generic and their live text is config-backed in app-server: modeling/checkpoint is the Body of 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 Life across compaction and source drift; coordinator is the read-only Self that routes attention without implementing, verifying, promoting, or accepting; Face 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 also states that self-improvement in its own role language: Imagination selects futures, Body clarifies anatomy, Eyes sees earlier, Hands touches source more precisely, Soul becomes harder to fool, Life loses less continuity, Self routes repair, and Face becomes clearer at turning inner weather into useful social presence.
- Specialist self-memory now has a bounded Ghostlight-shaped persistence surface under `state/agents`: Imagination, Body, Eyes, Hands, Soul, Life, Self, and Face each have an individual role dossier for identity, personality, semantic/episodic/relationship memory, goals, and values. These files are lane memory only; project truth remains in authoritative `EpiphanyThreadState`.
- `state/agent-heartbeats.json`, `state/agent-heartbeats.msgpack`, `epiphany-core::EpiphanyHeartbeatStateEntry`, and `tools/epiphany_agent_heartbeat.py` are the first Ghostlight-derived heartbeat initiative seam. The harness sets a target heartbeat rate; participants carry initiative speed, next-ready time, reaction bias, interrupt threshold, current load, status, and constraints; pending coordinator work can pull its owning lane through a reaction window; otherwise the earliest ready active lane wins the slot. If the winner has no routeable work, it ruminates on role quality and may apply a bounded selfPatch through the normal coordinator-reviewed memory rules. Face can win `surfaceAgentThoughts` or `discordAquariumChat` work slots. JSON remains the human-readable projection while the typed CultCache MessagePack store is the canonical Rust persistence seam.
- VoidBot's current routine is the reference for the next Epiphany heartbeat/state substrate: work, rumination, and sleep turns; completion-gated cooldown; JSON working projections; Qdrant-backed memory vectors; resonance/incubation/dream state; and Aquarium-visible internals. The first MessagePack canonical state slice is now the heartbeat store through CultCache-compatible typed Rust state. See `notes/voidbot-routine-adoption-plan.md`.
- `state/agent-heartbeats.json`, `state/agent-heartbeats.msgpack`, `epiphany-core::EpiphanyHeartbeatStateEntry`, and `tools/epiphany_agent_heartbeat.py` are the first Ghostlight-derived heartbeat initiative seam. The harness sets a target heartbeat rate; participants carry initiative speed, next-ready time, reaction bias, interrupt threshold, current load, status, and constraints; pending coordinator work can pull its owning lane through a reaction window; otherwise the earliest ready active lane wins the slot. If the winner has no routeable work, it ruminates on role quality and may apply a bounded selfPatch through the normal coordinator-reviewed memory rules. Face can win `surfaceAgentThoughts` or `discordAquariumChat` work slots. The typed CultCache MessagePack store is the durable Rust persistence seam; JSON remains only a temporary Python-tool compatibility shim, not the desired inspection surface.
- 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 the reference for the next Epiphany heartbeat/state substrate: work, rumination, and sleep turns; completion-gated cooldown; typed CultCache state; Qdrant-backed memory vectors; resonance/incubation/dream state; and Aquarium-visible internals. The first MessagePack canonical state slice is now the heartbeat store through CultCache-compatible typed Rust state. See `notes/voidbot-routine-adoption-plan.md`.
- The Rust CultCache-compatible contract now lives in dedicated upstream `https://github.com/GameCult/cultcache-rs` and is vendored as `vendor/cultcache-rs`. Epiphany should consume it as the canonical typed MessagePack persistence seam instead of growing an embedded local copy.
- `state/face-discord.json` and `tools/epiphany_face_discord.py` are the first Face Discord boundary. Face may interact only through #aquarium; missing or mismatched channel configuration produces candidate chat artifacts instead of posting elsewhere.
- `tools/epiphany_agent_heartbeat.py status`, the `heartbeat` block in `tools/epiphany_mvp_status.py`, and GUI actions `heartbeatStatus` / `runHeartbeat` are the first operator API surface for heartbeat initiative state and outputs. `runHeartbeat` advances one slot and emits a Discord-independent Face bubble artifact. Status now reflects the backing CultCache store so Aquarium can see whether the typed heartbeat memory is present.