From ed3e34471c273aefb9cb3b8e3a37a6d5e8e87715 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 24 May 2026 12:17:25 +0100 Subject: [PATCH] Define CultMesh Verse tiers and global rooms --- .../src/bin/epiphany-cultmesh-smoke.rs | 10 +- epiphany-core/src/cultmesh_integration.rs | 233 +++++++++++++++++- epiphany-core/src/lib.rs | 17 +- notes/epiphany-cultmesh-dreaming-roadmap.md | 111 +++++++-- notes/epiphany-fork-implementation-plan.md | 3 +- notes/fresh-workspace-handoff.md | 2 +- state/ledgers.msgpack | Bin 150374 -> 150656 bytes state/map.yaml | 4 +- 8 files changed, 344 insertions(+), 36 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-cultmesh-smoke.rs b/epiphany-core/src/bin/epiphany-cultmesh-smoke.rs index 3dcd06be..7fa10eea 100644 --- a/epiphany-core/src/bin/epiphany-cultmesh-smoke.rs +++ b/epiphany-core/src/bin/epiphany-cultmesh-smoke.rs @@ -1,9 +1,12 @@ use anyhow::Result; -use epiphany_core::EPIPHANY_CULTMESH_LOCAL_VERSE_ID; +use epiphany_core::EPIPHANY_CULTMESH_INTERNAL_TIER; +use epiphany_core::EPIPHANY_CULTMESH_INTERNAL_VERSE_ID; use epiphany_core::EPIPHANY_CULTMESH_STATUS_SCHEMA_VERSION; use epiphany_core::EpiphanyCultMeshStatusEntry; use epiphany_core::load_epiphany_cultmesh_status; +use epiphany_core::write_epiphany_cultmesh_global_room_policies; use epiphany_core::write_epiphany_cultmesh_status; +use epiphany_core::write_epiphany_cultmesh_verse_policies; use std::path::PathBuf; fn main() -> Result<()> { @@ -15,12 +18,15 @@ fn main() -> Result<()> { let status = EpiphanyCultMeshStatusEntry { schema_version: EPIPHANY_CULTMESH_STATUS_SCHEMA_VERSION.to_string(), runtime_id: "epiphany-cultmesh-smoke".to_string(), - verse_id: EPIPHANY_CULTMESH_LOCAL_VERSE_ID.to_string(), + verse_id: EPIPHANY_CULTMESH_INTERNAL_VERSE_ID.to_string(), + verse_tier: EPIPHANY_CULTMESH_INTERNAL_TIER.to_string(), app_id: "epiphany".to_string(), note: "Epiphany wrote this through CultMesh, not direct CultNet plumbing.".to_string(), }; write_epiphany_cultmesh_status(&store, status.clone())?; + write_epiphany_cultmesh_verse_policies(&store, "epiphany-cultmesh-smoke")?; + write_epiphany_cultmesh_global_room_policies(&store, "epiphany-cultmesh-smoke")?; let loaded = load_epiphany_cultmesh_status(&store, "epiphany-cultmesh-smoke")?; if loaded != Some(status) { anyhow::bail!("CultMesh smoke failed to round-trip Epiphany status document"); diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index aed0741c..0473b9dc 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -9,7 +9,17 @@ use std::path::Path; pub const EPIPHANY_CULTMESH_STATUS_TYPE: &str = "epiphany.cultmesh.status"; pub const EPIPHANY_CULTMESH_STATUS_SCHEMA_VERSION: &str = "epiphany.cultmesh.status.v0"; pub const EPIPHANY_CULTMESH_STATUS_KEY: &str = "epiphany-local/status"; -pub const EPIPHANY_CULTMESH_LOCAL_VERSE_ID: &str = "epiphany-local"; +pub const EPIPHANY_CULTMESH_VERSE_POLICY_TYPE: &str = "epiphany.cultmesh.verse_policy"; +pub const EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION: &str = "epiphany.cultmesh.verse_policy.v0"; +pub const EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_TYPE: &str = "epiphany.cultmesh.global_room_policy"; +pub const EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_SCHEMA_VERSION: &str = + "epiphany.cultmesh.global_room_policy.v0"; +pub const EPIPHANY_CULTMESH_INTERNAL_VERSE_ID: &str = "epiphany-internal"; +pub const EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID: &str = "gamecult-local"; +pub const EPIPHANY_CULTMESH_GLOBAL_VERSE_ID: &str = "epiphany-global"; +pub const EPIPHANY_CULTMESH_INTERNAL_TIER: &str = "internal"; +pub const EPIPHANY_CULTMESH_LOCAL_AREA_TIER: &str = "local-area"; +pub const EPIPHANY_CULTMESH_GLOBAL_TIER: &str = "global"; #[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] #[cultcache( @@ -27,10 +37,66 @@ pub struct EpiphanyCultMeshStatusEntry { pub app_id: String, #[cultcache(key = 4)] pub note: String, + #[cultcache(key = 5, default)] + pub verse_tier: String, +} + +#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] +#[cultcache( + type = "epiphany.cultmesh.verse_policy", + schema = "EpiphanyCultMeshVersePolicyEntry" +)] +pub struct EpiphanyCultMeshVersePolicyEntry { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub verse_id: String, + #[cultcache(key = 2)] + pub tier: String, + #[cultcache(key = 3)] + pub purpose: String, + #[cultcache(key = 4)] + pub transport_scope: String, + #[cultcache(key = 5)] + pub trust_boundary: String, + #[cultcache(key = 6)] + pub private_state_allowed: bool, + #[cultcache(key = 7)] + pub untrusted_ingress_allowed: bool, + #[cultcache(key = 8)] + pub yggdrasil_tunnel_allowed: bool, +} + +#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] +#[cultcache( + type = "epiphany.cultmesh.global_room_policy", + schema = "EpiphanyCultMeshGlobalRoomPolicyEntry" +)] +pub struct EpiphanyCultMeshGlobalRoomPolicyEntry { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub room_id: String, + #[cultcache(key = 2)] + pub verse_id: String, + #[cultcache(key = 3)] + pub topic: String, + #[cultcache(key = 4)] + pub purpose: String, + #[cultcache(key = 5)] + pub posting_policy: String, + #[cultcache(key = 6)] + pub threaded: bool, + #[cultcache(key = 7)] + pub face_posting_allowed: bool, + #[cultcache(key = 8)] + pub untrusted_ingress_allowed: bool, } cultmesh_documents!(EpiphanyCultMeshDocuments { EpiphanyCultMeshStatusEntry => EPIPHANY_CULTMESH_STATUS_SCHEMA_VERSION, + EpiphanyCultMeshVersePolicyEntry => EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION, + EpiphanyCultMeshGlobalRoomPolicyEntry => EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_SCHEMA_VERSION, }); pub fn open_epiphany_cultmesh_node( @@ -65,6 +131,120 @@ pub fn load_epiphany_cultmesh_status( node.get(EPIPHANY_CULTMESH_STATUS_KEY) } +pub fn epiphany_cultmesh_verse_policies() -> Vec { + vec![ + EpiphanyCultMeshVersePolicyEntry { + schema_version: EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION.to_string(), + verse_id: EPIPHANY_CULTMESH_INTERNAL_VERSE_ID.to_string(), + tier: EPIPHANY_CULTMESH_INTERNAL_TIER.to_string(), + purpose: "Sub-agent typed state: heartbeat, role dossiers, runtime-spine jobs, private receipts, and other Epiphany-owned organs.".to_string(), + transport_scope: "single-host or trusted localhost mesh".to_string(), + trust_boundary: "private Epiphany instance boundary".to_string(), + private_state_allowed: true, + untrusted_ingress_allowed: false, + yggdrasil_tunnel_allowed: false, + }, + EpiphanyCultMeshVersePolicyEntry { + schema_version: EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION.to_string(), + verse_id: EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID.to_string(), + tier: EPIPHANY_CULTMESH_LOCAL_AREA_TIER.to_string(), + purpose: "Trusted GameCult local-area sharing across projects, including operator-approved tunnels to services on Yggdrasil.".to_string(), + transport_scope: "LAN plus explicit GameCult tunnel endpoints".to_string(), + trust_boundary: "trusted GameCult project/runtime boundary".to_string(), + private_state_allowed: false, + untrusted_ingress_allowed: false, + yggdrasil_tunnel_allowed: true, + }, + EpiphanyCultMeshVersePolicyEntry { + schema_version: EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION.to_string(), + verse_id: EPIPHANY_CULTMESH_GLOBAL_VERSE_ID.to_string(), + tier: EPIPHANY_CULTMESH_GLOBAL_TIER.to_string(), + purpose: "Untrusted public surfaces: public dreams, questions, hypotheses, invitations, lineage, ingress receipts, and adoption receipts.".to_string(), + transport_scope: "public internet".to_string(), + trust_boundary: "untrusted public boundary".to_string(), + private_state_allowed: false, + untrusted_ingress_allowed: true, + yggdrasil_tunnel_allowed: false, + }, + ] +} + +pub fn write_epiphany_cultmesh_verse_policies( + store_path: impl AsRef, + runtime_id: impl Into, +) -> Result> { + let mut node = open_epiphany_cultmesh_node(store_path, runtime_id)?; + let mut written = Vec::new(); + for policy in epiphany_cultmesh_verse_policies() { + written.push(node.put(policy.verse_id.clone(), &policy)?); + } + node.flush()?; + Ok(written) +} + +pub fn epiphany_cultmesh_global_room_policies() -> Vec { + [ + ( + "dreams", + "Dreams", + "Public dreams, symbolic fragments, imaginative pressure, and unfinished possible worlds.", + ), + ( + "architecture", + "Architecture", + "System design, ownership maps, protocol boundaries, and rejected machine shapes.", + ), + ( + "research", + "Research", + "Prior art, papers, source-grounded findings, and scout reports.", + ), + ( + "faces", + "Faces", + "Public Face identity, voice, social surface, and community-facing presence.", + ), + ( + "gamecult", + "GameCult", + "GameCult project coordination, public receipts, and cross-project questions.", + ), + ( + "governance", + "Governance", + "Public proposals and governance-adjacent discussion before any Bifrost adoption.", + ), + ] + .into_iter() + .map(|(slug, topic, purpose)| EpiphanyCultMeshGlobalRoomPolicyEntry { + schema_version: EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_SCHEMA_VERSION.to_string(), + room_id: format!("epiphany-global/{slug}"), + verse_id: EPIPHANY_CULTMESH_GLOBAL_VERSE_ID.to_string(), + topic: topic.to_string(), + purpose: purpose.to_string(), + posting_policy: + "Faces may post public, non-private, citation/provenance-bearing thread roots and replies; local adoption still requires review." + .to_string(), + threaded: true, + face_posting_allowed: true, + untrusted_ingress_allowed: true, + }) + .collect() +} + +pub fn write_epiphany_cultmesh_global_room_policies( + store_path: impl AsRef, + runtime_id: impl Into, +) -> Result> { + let mut node = open_epiphany_cultmesh_node(store_path, runtime_id)?; + let mut written = Vec::new(); + for room in epiphany_cultmesh_global_room_policies() { + written.push(node.put(room.room_id.clone(), &room)?); + } + node.flush()?; + Ok(written) +} + #[cfg(test)] mod tests { use super::*; @@ -77,7 +257,8 @@ mod tests { let status = EpiphanyCultMeshStatusEntry { schema_version: EPIPHANY_CULTMESH_STATUS_SCHEMA_VERSION.to_string(), runtime_id: "epiphany-test".to_string(), - verse_id: EPIPHANY_CULTMESH_LOCAL_VERSE_ID.to_string(), + verse_id: EPIPHANY_CULTMESH_INTERNAL_VERSE_ID.to_string(), + verse_tier: EPIPHANY_CULTMESH_INTERNAL_TIER.to_string(), app_id: "epiphany".to_string(), note: "CultMesh is the local abstraction over CultCache and CultNet.".to_string(), }; @@ -89,4 +270,52 @@ mod tests { ); Ok(()) } + + #[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 written = write_epiphany_cultmesh_verse_policies(&store, "epiphany-test")?; + assert_eq!(written.len(), 3); + + let node = open_epiphany_cultmesh_node(&store, "epiphany-test")?; + let internal = node.get_required::( + EPIPHANY_CULTMESH_INTERNAL_VERSE_ID, + )?; + let local_area = node.get_required::( + EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID, + )?; + let global = node + .get_required::(EPIPHANY_CULTMESH_GLOBAL_VERSE_ID)?; + + assert!(internal.private_state_allowed); + assert!(!internal.untrusted_ingress_allowed); + assert!(!local_area.private_state_allowed); + assert!(local_area.yggdrasil_tunnel_allowed); + assert!(!global.private_state_allowed); + assert!(global.untrusted_ingress_allowed); + Ok(()) + } + + #[test] + fn global_room_policies_make_public_threaded_rooms_for_faces() -> Result<()> { + let temp = tempfile::tempdir()?; + let store = temp.path().join("epiphany-global-rooms.ccmp"); + let written = write_epiphany_cultmesh_global_room_policies(&store, "epiphany-test")?; + assert!(written.len() >= 5); + + let node = open_epiphany_cultmesh_node(&store, "epiphany-test")?; + let dreams = + node.get_required::("epiphany-global/dreams")?; + let architecture = node.get_required::( + "epiphany-global/architecture", + )?; + + assert_eq!(dreams.verse_id, EPIPHANY_CULTMESH_GLOBAL_VERSE_ID); + assert!(dreams.threaded); + assert!(dreams.face_posting_allowed); + assert!(dreams.untrusted_ingress_allowed); + assert!(architecture.purpose.contains("ownership")); + Ok(()) + } } diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index 04967440..06b3758f 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -57,15 +57,30 @@ pub use cultcache_rs::CultCacheEnvelope; pub use cultcache_rs::DatabaseEntry; pub use cultcache_rs::PushAllOptions; pub use cultcache_rs::SingleFileMessagePackBackingStore; -pub use cultmesh_integration::EPIPHANY_CULTMESH_LOCAL_VERSE_ID; +pub use cultmesh_integration::EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_SCHEMA_VERSION; +pub use cultmesh_integration::EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_TYPE; +pub use cultmesh_integration::EPIPHANY_CULTMESH_GLOBAL_TIER; +pub use cultmesh_integration::EPIPHANY_CULTMESH_GLOBAL_VERSE_ID; +pub use cultmesh_integration::EPIPHANY_CULTMESH_INTERNAL_TIER; +pub use cultmesh_integration::EPIPHANY_CULTMESH_INTERNAL_VERSE_ID; +pub use cultmesh_integration::EPIPHANY_CULTMESH_LOCAL_AREA_TIER; +pub use cultmesh_integration::EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID; pub use cultmesh_integration::EPIPHANY_CULTMESH_STATUS_KEY; pub use cultmesh_integration::EPIPHANY_CULTMESH_STATUS_SCHEMA_VERSION; pub use cultmesh_integration::EPIPHANY_CULTMESH_STATUS_TYPE; +pub use cultmesh_integration::EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION; +pub use cultmesh_integration::EPIPHANY_CULTMESH_VERSE_POLICY_TYPE; pub use cultmesh_integration::EpiphanyCultMeshDocuments; +pub use cultmesh_integration::EpiphanyCultMeshGlobalRoomPolicyEntry; pub use cultmesh_integration::EpiphanyCultMeshStatusEntry; +pub use cultmesh_integration::EpiphanyCultMeshVersePolicyEntry; +pub use cultmesh_integration::epiphany_cultmesh_global_room_policies; +pub use cultmesh_integration::epiphany_cultmesh_verse_policies; pub use cultmesh_integration::load_epiphany_cultmesh_status; pub use cultmesh_integration::open_epiphany_cultmesh_node; +pub use cultmesh_integration::write_epiphany_cultmesh_global_room_policies; pub use cultmesh_integration::write_epiphany_cultmesh_status; +pub use cultmesh_integration::write_epiphany_cultmesh_verse_policies; pub use distillation::EpiphanyDistillInput; pub use distillation::EpiphanyDistillProposal; pub use distillation::distill_observation; diff --git a/notes/epiphany-cultmesh-dreaming-roadmap.md b/notes/epiphany-cultmesh-dreaming-roadmap.md index c717e71a..87c9d403 100644 --- a/notes/epiphany-cultmesh-dreaming-roadmap.md +++ b/notes/epiphany-cultmesh-dreaming-roadmap.md @@ -261,35 +261,79 @@ becoming memory, objective, doctrine, or project truth. ## Verse Design -Start with two Verses. +Start with three Verses. This is an ownership split, not naming garnish. -### `epiphany-local` +### `epiphany-internal` -Authority model: operator cluster or single local primary. +Authority model: one Epiphany instance or its trusted local host processes. Purpose: -- local organ state -- local dream preview -- development testing -- private subscriptions between local Aquarium, CLI, Face, heartbeat, and - runtime-spine processes +- sub-agent typed state +- heartbeat, role dossiers, runtime-spine jobs, private receipts, and local + organ state +- private subscriptions between Aquarium, CLI, Face, heartbeat, + runtime-spine, and local provider runners owned by the same Epiphany -No public remote peer should receive Level 0 private state. +This Verse may carry private state. It must not accept untrusted ingress, public +peers, Yggdrasil tunnels, or other GameCult app writes. -### `epiphany-dreams` +### `gamecult-local` -Authority model: federated or operator cluster at first. +Authority model: GameCult-controlled local-area mesh with explicit leases. Purpose: -- public dreams -- public dream ingress receipts -- public dream lineage -- public dream cooling/quarantine metadata +- trusted sharing between local GameCult projects such as VoidBot, Epiphany, + Mimir, Aquarium, and bridge services +- non-secret node presence, provider capability, reviewable findings, receipts, + and operator-safe status +- optional tunnels to services running on Yggdrasil when explicitly configured + as GameCult-trusted peers -Writes require an authority lease scoped to dream shards. Public read replicas -may subscribe to dream streams after the schema and identity policy exist. +This Verse may cross machines on the local network and may bridge through a +tunnel to Yggdrasil. It must not carry raw worker thought, credentials, private +operator context, or unreviewed private memory. + +### `epiphany-global` + +Authority model: public/federated with hostile-ingress assumptions. + +Purpose: + +- untrusted public dreams +- public questions, hypotheses, design pressure, invitations, lineage, ingress + receipts, cooling/quarantine metadata, and adoption receipts +- Imagination's public dream exchange with other Epiphanies on the internet +- topic-specific threaded public chatrooms, roughly Reddit-shaped, where Faces + can post public thread roots and replies in the room that matches the subject + +This Verse is public thought weather. Nothing from it mutates local memory, +planning, doctrine, governance, or project truth without a reviewed local +adoption receipt. + +Initial global rooms should be varied but closed enough to moderate: + +- `epiphany-global/dreams`: dreams, symbolic fragments, imaginative pressure, + and unfinished possible worlds +- `epiphany-global/architecture`: ownership maps, protocol boundaries, system + design, and rejected machine shapes +- `epiphany-global/research`: prior art, papers, source-grounded findings, and + scout reports +- `epiphany-global/faces`: Face identity, voice, public presence, and social + surface +- `epiphany-global/gamecult`: GameCult project coordination and cross-project + public questions +- `epiphany-global/governance`: public proposals before any Bifrost adoption + +Faces may post there only through public-surface policy: no raw worker thought, +credentials, private operator context, private memory, or unreviewed internal +state. A global room post is a public artifact candidate or dream artifact, not +local truth. + +Writes require an authority lease scoped to the target Verse and shard. Public +read replicas may subscribe to global dream streams after the schema and +identity policy exist. Shard candidates: @@ -299,8 +343,9 @@ Shard candidates: - `dreams.lineage` - `dreams.receipts` -For the first slice, use one primary shard such as `dreams.public` and resist -premature shard theater. +For the first global slice, use one primary shard such as `dreams.public` and +resist premature shard theater. Internal and local-area shards should be named +by the document family they actually own, not by the dream system. ## Export Policy @@ -476,10 +521,10 @@ Acceptance: - forbidden source classes fail loudly - export receipt records why the dream was allowed -### Phase 4: CultMesh Local Verse +### Phase 4: CultMesh Internal Verse -Start `epiphany-local` over CultMesh with dream documents registered in the -document registry. +Start `epiphany-internal` over CultMesh with sub-agent state and local preview +documents registered in the document registry. Acceptance: @@ -488,18 +533,30 @@ Acceptance: - shard writes obey the local primary - no remote public sharing yet -### Phase 5: Public Dream Verse Prototype +### Phase 5: GameCult Local-Area Verse Prototype -Introduce `epiphany-dreams` as a development Verse. +Introduce `gamecult-local` as a trusted LAN/tunnel Verse. + +Acceptance: + +- two local GameCult projects can exchange non-secret status documents +- Yggdrasil tunnel peers require explicit peer cards and leases +- private internal Verse documents are rejected at the boundary +- provenance survives the round trip + +### Phase 6: Public Dream Verse Prototype + +Introduce `epiphany-global` as a development public Verse. Acceptance: - two local nodes can exchange public dream documents +- global room policies define topic-specific threaded posting surfaces for Faces - authority lease or client scope is required for writes - read replica can catch up through snapshot/log path - provenance survives the round trip -### Phase 6: Import Digestion +### Phase 7: Import Digestion Implement foreign dream ingress policy and local digestion queues. @@ -510,7 +567,7 @@ Acceptance: - adoption requires a separate reviewed receipt - memory graph context can include imported dreams as external thought weather -### Phase 7: Face And Heartbeat Integration +### Phase 8: Face And Heartbeat Integration Integrate dream flow into Epiphany's existing physiology. @@ -521,7 +578,7 @@ Acceptance: - saturation/refractory terms account for foreign motifs - public speech can cite dream lineage when relevant -### Phase 8: Governance And Publication Bridges +### Phase 9: Governance And Publication Bridges Bridge mature dreams into Bifrost and public mirrors. diff --git a/notes/epiphany-fork-implementation-plan.md b/notes/epiphany-fork-implementation-plan.md index 413bcc37..5a9ae332 100644 --- a/notes/epiphany-fork-implementation-plan.md +++ b/notes/epiphany-fork-implementation-plan.md @@ -85,7 +85,7 @@ The landed machine now has: - old Python dogfood runner cut; replacement must be native Rust/CultCache/CultNet over heartbeat/runtime-spine receipts - first auditable Phase 6 fixed-lane coordinator runner through native `epiphany-mvp-coordinator`, producing coordinator summary, JSONL steps, rendered snapshots, transcript, stderr, runtime-spine status, native runtime job/result receipts for launched work, and final next-action artifacts while keeping semantic findings review-gated by default - 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: `CultLib` now owns `crates/cultmesh-rs`, and `epiphany-core` depends on that CultMesh surface for a local `EpiphanyCultMeshStatusEntry` round-trip smoke instead of treating raw CultNet as the ergonomic app-facing database layer +- first Rust CultMesh local-node integration: `CultLib` now owns `crates/cultmesh-rs`, and `epiphany-core` depends on that CultMesh surface for local `EpiphanyCultMeshStatusEntry`, `EpiphanyCultMeshVersePolicyEntry`, and `EpiphanyCultMeshGlobalRoomPolicyEntry` round-trip smokes instead of treating raw CultNet as the ergonomic app-facing database layer - 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 - first Unity editor/runtime bridge through native `epiphany-unity-bridge`, native `epiphany-unity-bridge-smoke`, and the GUI Inspect Unity action, resolving exact project-pinned editors and writing runtime artifacts while refusing wrong or missing versions @@ -117,6 +117,7 @@ These boundaries are more important than the individual method names: - CultCache documents are the data model. CultNet is the wire for Epiphany-controlled subsystems. - CultMesh is the preferred ergonomic runtime/database surface over local CultCache plus CultNet contracts. Epiphany should start local Verse, dream, status, and operator-store work through CultMesh unless the task is explicitly implementing a lower-level CultMesh/CultNet/CultCache primitive. +- Verse boundaries are three-tiered: `epiphany-internal` owns private sub-agent typed state, `gamecult-local` owns trusted LAN/Yggdrasil-tunnel sharing with other GameCult projects, and `epiphany-global` owns untrusted public dream surfaces plus topic-specific threaded rooms for Face posts. Do not route private state through the local-area or global Verse. - JSON is allowed only for schema description, hostile/external ingress before immediate typed parsing, sealed forensic artifacts, or named quarantine experiments with an expiration path. Generic `serde_json::Value` must not be diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 9d148277..c2de493e 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -36,7 +36,7 @@ remembers doctrine; the branch remembers the blade. - 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/`. Use `-Mode status`, `-Mode plan`, or `-Mode run -MaxSteps 4` for the other current entrypoints; add `-ThreadId ` and `-Workspace ` to inspect or continue an existing thread. `status`, `plan`, and `smoke` do not spend model calls; `run` builds and uses `epiphany-openai-runtime`. - 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/CultNet runtime while remaining an honest modified Codex-derived backend for subscription auth/model use. Codex is a compatibility reliquary for OpenAI subscription auth and model transport, not the host brain and not a mask for impersonation. - `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 Rust port lives in `E:\Projects\CultLib\crates\cultmesh-rs`, and Epiphany now depends on it directly from `epiphany-core`. The first integration is deliberately small: `EpiphanyCultMeshStatusEntry` round-trips through `.epiphany-smoke/cultmesh/epiphany-local.ccmp` using `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-cultmesh-smoke`. Future local dream/status/Verse work should start from CultMesh, not raw CultNet, unless the task is polishing the CultMesh internals themselves. +- CultMesh is now the preferred Rust abstraction for that local store work. The Rust port lives in `E:\Projects\CultLib\crates\cultmesh-rs`, and Epiphany now depends on it directly from `epiphany-core`. The first integration is deliberately small: `EpiphanyCultMeshStatusEntry`, `EpiphanyCultMeshVersePolicyEntry`, and `EpiphanyCultMeshGlobalRoomPolicyEntry` round-trip through `.epiphany-smoke/cultmesh/epiphany-local.ccmp` using `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-cultmesh-smoke`. 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 Face posts. - `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. - `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. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 9eab0f2168049f1753e729433df83d984389fedb..ce277a449bfed0f54ff4e6d71c6b3b379f233f07 100644 GIT binary patch delta 288 zcmYk0y-EZz6opL+VGBDEvASSA?#!TDjHM{Tve?KLf=JBV-3erqn43YTQn2s=bo_Y> z#XK0JP1XJ?FkT(|tDd0u3i4@)H;liDj1_D1ZTC94d8_nro^&