Define CultMesh Verse tiers and global rooms

This commit is contained in:
Meta Vens 2026-05-24 12:17:25 +01:00
commit ed3e34471c
8 changed files with 344 additions and 36 deletions

View file

@ -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.

View file

@ -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

View file

@ -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 <id>` and `-Workspace <path>` 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.