diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..6b0fc3b4 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vendor/cultcache-rs"] + path = vendor/cultcache-rs + url = https://github.com/GameCult/cultcache-rs.git diff --git a/epiphany-core/Cargo.toml b/epiphany-core/Cargo.toml index 759a6624..f90265f4 100644 --- a/epiphany-core/Cargo.toml +++ b/epiphany-core/Cargo.toml @@ -15,6 +15,7 @@ bm25 = "2.3.2" chrono = "0.4.44" codex-file-search = { path = "../vendor/codex/codex-rs/file-search" } codex-protocol = { path = "../vendor/codex/codex-rs/protocol" } +cultcache-rs = { path = "../vendor/cultcache-rs" } ignore = "0.4.23" reqwest = { version = "0.12", features = ["blocking", "json"] } serde = { version = "1", features = ["derive"] } diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index b630bbd1..662597fa 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -5,6 +5,12 @@ mod proposal; mod retrieval; mod rollout; +pub use cultcache_rs::CacheBackingStore; +pub use cultcache_rs::CultCache; +pub use cultcache_rs::CultCacheDocument; +pub use cultcache_rs::CultCacheEnvelope; +pub use cultcache_rs::PushAllOptions; +pub use cultcache_rs::SingleFileMessagePackBackingStore; pub use distillation::EpiphanyDistillInput; pub use distillation::EpiphanyDistillProposal; pub use distillation::distill_observation; diff --git a/state/evidence.jsonl b/state/evidence.jsonl index d4754f82..2e74624a 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -81,3 +81,4 @@ {"ts": "2026-05-05T15:10:00+00:00", "type": "architecture", "status": "ok", "note": "Persisted swarm-boundary doctrine into root prompt surfaces: Epiphany instances may expose their own internals richly, but cannot inspect/edit other workspaces; cross-agent blockers travel coordinator-to-coordinator through visible swarm messages; humans converse through Face while sub-agents communicate through typed coordinator lanes. API contracts must mirror those user-story contracts."} {"ts": "2026-05-06T00:08:00+00:00", "type": "implementation", "status": "ok", "note": "Heartbeat pacing now supports deferred turn completion: `tick --defer-completion` leaves a lane in-flight and `complete --role ...` starts cooldown only after the heartbeat turn finishes. Idle/no-work heartbeats use a sleep multiplier so the swarm continues slow rumination and memory distillation without waking every lane at work tempo."} {"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."} diff --git a/state/map.yaml b/state/map.yaml index ad892714..9e7fe45d 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -129,6 +129,7 @@ accepted_design: - 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` 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. - VoidBot's current routine is the reference for the next Epiphany heartbeat/state substrate: work, rumination, and sleep turns; completion-gated cooldown; MessagePack canonical state through a CultCache-compatible typed store; JSON working projections; Qdrant-backed memory vectors; resonance/incubation/dream state; and Aquarium-visible internals. 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. - `tools/epiphany_face_discord.py bubble`, the `face` block in `tools/epiphany_mvp_status.py`, and GUI action `faceBubble` are the first Aquarium bubble surface. Face can open a local chat bubble artifact even when Discord channel id/token configuration is absent. diff --git a/vendor/cultcache-rs b/vendor/cultcache-rs new file mode 160000 index 00000000..088a26dc --- /dev/null +++ b/vendor/cultcache-rs @@ -0,0 +1 @@ +Subproject commit 088a26dced45053f36c8532e2525746305bf71d6