From 3f9cd2afee6682e620c77a5591003383bb56933a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 23 May 2026 19:25:58 +0100 Subject: [PATCH] Describe Epiphany Aquarium client --- README.md | 107 +++++++++++++++++++++++++++++++++---------- docs/README.md | 16 +++++-- state/evidence.jsonl | 1 + 3 files changed, 95 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 252f2f3..c783fd2 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,102 @@ # Epiphany Aquarium -Epiphany Aquarium is the Epiphany-facing visual client that runs on the -Fensalir native runtime. It owns the living scene semantics: agent bodies, -camera behavior, CultCache state, CultNet interpretation, Face voice routing, +Epiphany Aquarium is the visual body for Epiphany. It is a native client that +runs on the Fensalir runtime and turns agent state into an embodied scene: +camera, Grid, Self, role bodies, cursor, voice controls, durable client state, and Epiphany-specific shaders. -Fensalir owns the host and renderer. This repo tells that runtime what Epiphany -looks like and how it behaves. +Fensalir owns the host, renderer, hot reload, audio output, and reusable field +machinery. This repo owns what the Aquarium is and what its inhabitants mean. -## What Runs +## What The Client Is -The runtime in `src/Aquarium.Epiphany` implements `IAquariumRuntime`. Fensalir -loads it, calls its update/frame methods, and renders the declared scene: +The Aquarium is not a dashboard with a decorative viewport. The viewport is the +client. It is a live spatial interface where Epiphany appears as bodies in a +field: + +- `Self` is the central body and light source. +- Seven role agents orbit and inhabit the scene: `Face`, `Imagination`, `Eyes`, + `Body`, `Hands`, `Soul`, and `Life`. +- The cursor is a scene body with current and previous world-space state. +- The Grid is a height-field surface shaped by Self, role wells, and cursor + pressure. +- The camera is an orbit rig around the Grid center, persisted through + CultCache. +- Overlay UI exists for runtime control, but the scene is the primary machine. + +The project is currently a client runtime, an isolated agent preview tool, docs, +scripts, and persistent repo memory. The rest of the old reusable engine has +been moved into the adjacent Fensalir repo. + +## Runtime Loop + +`src/Aquarium.Epiphany` implements `IAquariumRuntime`. Fensalir loads it and +calls into it each frame: ```text Fensalir host -> Aquarium.Epiphany runtime - -> Epiphany render plan + scene state - -> agent/body SDF proxy shaders - -> CultCache-backed client state - -> optional Face realtime voice audio + -> CultCache state load/save + -> orbit camera + input projection + -> Epiphany scene builder + -> Epiphany render plan + -> SDF body shaders + height-field passes + -> Face voice routing and optional PCM audio ``` -The visible scene currently has: +`AquariumRuntime` owns the live client state. It loads typed state documents, +keeps camera/runtime settings warm, saves on a short cadence, builds the +Epiphany debug panel, accepts runtime UI commands, and composes each frame. -- a Grid/height-field surface driven by Epiphany brush state; -- Self plus seven role-agent SDF bodies: Face, Imagination, Eyes, Body, Hands, - Soul, and Life; -- a cursor body; -- Epiphany-authored body shaders under `src/Aquarium.Epiphany/Shaders`; -- a debug panel for runtime controls, state flushing, Face voice endpoints, and - local realtime transcript counters. +The panel currently exposes time pause/scrub, explicit state flush, graphics +settings, Face voice endpoint rows, prompts, routing state, transcript counters, +and transport status. It is operational surface, not the identity of the app. +The app is the embodied scene it controls. + +## Visible Machine + +`EpiphanySceneBuilder` turns time, camera input, persistent state, and voice +surface state into an `AquariumSceneState`. + +The current scene contains: + +- a 128x128 R16 height-field target for the Grid; +- a Self gravity bowl and wave contribution; +- orbiting brush wells for each role agent; +- SDF proxy objects for Self, the seven roles, and the cursor; +- Self-owned scene light; +- cursor projection from screen space onto the Grid plane; +- normalized state scalars passed into shaders for each body. + +`EpiphanyRenderPlan` declares the actual pass structure: height-field, +HDR scene, SDF proxies, bloom/presentation, DirectWrite overlay, and debug +views for the height field and scene. Body appearance lives in +`src/Aquarium.Epiphany/Shaders`, including dedicated shaders for Self, Face, +Imagination, Eyes, Body, Hands, Soul, Life, and the cursor. + +The visual grammar is documented in +`docs/epiphany-agent-sdf-visual-language.md`. Change that before teaching the +bodies a new language by accident. Yes, this is how the furniture starts +talking back. + +## Face Voice Surface + +Face voice routing is client-owned because it is Epiphany meaning, not engine +meaning. The runtime stores endpoint rows, voices, prompts, enablement, active +thread, audible radius, and auto-route settings through CultCache-backed state. + +When enabled, the Face voice surface can start active or enabled endpoints, +stop active speech, clear local transcript counters, and route speech by the +scene/proximity model. Fensalir supplies the audio output lane; Aquarium decides +which Face should speak and why. ## Projects - `src/Aquarium.Epiphany`: runtime, render plan, scene builder, persistent - state, voice routing, camera rig, and shaders. + state, voice routing, camera rig, UI commands, and shaders. - `src/Aquarium.Epiphany.AgentPreview`: isolated preview tool for rendering one Epiphany agent body through the real Fensalir renderer. -- `scripts`: thin wrappers around Fensalir dev scripts, plus the agent preview +- `scripts`: wrappers around Fensalir dev scripts, plus the agent preview renderer. - `docs`: client visual grammar and engine/client boundary notes. - `state`: repo-local memory, map, evidence, and scratch state. @@ -50,7 +108,8 @@ This repo currently references sibling Fensalir source projects at Do not copy engine contracts or renderer helpers into this repo. If Epiphany needs new renderer authority, add it in Fensalir and consume it through the -contract. +contract. If a behavior names Epiphany roles, client voice policy, agent +meaning, or scene semantics, it belongs here. ## Build @@ -104,7 +163,7 @@ memory. ## Docs - `docs/epiphany-agent-sdf-visual-language.md`: renderer-facing visual grammar - for Epiphany organs. + for Epiphany bodies. - `docs/engine-client-boundary.md`: what this repo owns versus Fensalir. - `docs/cult-runtime-surface.md`: client CultCache document surface. - `state/README.md`: persistent state machinery. diff --git a/docs/README.md b/docs/README.md index 3156820..dd39305 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,11 +1,17 @@ # Epiphany Aquarium Docs -This repo is the Epiphany client, not the Fensalir engine. +This repo is the Epiphany client, not the Fensalir engine. Read these docs when +you are changing what the Aquarium means, how its bodies appear, or what client +state survives between runs. -- `epiphany-agent-sdf-visual-language.md`: visual grammar for Self, role agents, - and the cursor. Use this before changing Epiphany body shaders. +- `epiphany-agent-sdf-visual-language.md`: visual grammar for Self, Face, + Imagination, Eyes, Body, Hands, Soul, Life, and the cursor. Use this before + changing Epiphany body shaders. - `engine-client-boundary.md`: dependency direction between Epiphany Aquarium and Fensalir. -- `cult-runtime-surface.md`: typed CultCache documents and runtime state. +- `cult-runtime-surface.md`: typed CultCache documents for camera/runtime + state, renderer settings, and Face voice routing. -Persistent repo memory lives in `state/`. +The top-level `README.md` describes the actual client loop: orbit camera, +Grid/height-field construction, SDF role bodies, debug panel, and Face voice +surface. Persistent repo memory lives in `../state/`. diff --git a/state/evidence.jsonl b/state/evidence.jsonl index cb0a7c0..320585d 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -1,2 +1,3 @@ {"timestamp":"2026-05-23T00:00:00+01:00","topic":"fensalir-repo-split","lesson":"Fensalir now lives in the adjacent repo at E:\\Projects\\Fensalir and owns the native host, renderer, contracts, fractal machinery, audio host, reload scripts, and engine demos. This repo is now only the Epiphany Aquarium client: src/Aquarium.Epiphany and src/Aquarium.Epiphany.AgentPreview. Client project references point to sibling Fensalir source projects until a package boundary exists; do not copy engine contracts or host scripts back into this repo.","files":["EpiphanyAquarium.sln","src/Aquarium.Epiphany/Aquarium.Epiphany.csproj","src/Aquarium.Epiphany.AgentPreview/Aquarium.Epiphany.AgentPreview.csproj","README.md","AGENTS.md","state/map.yaml","state/memory.json"],"source":"user directed Fensalir and engine demos into a new adjacent repo while this repo remains the Epiphany Aquarium client"} {"timestamp":"2026-05-23T19:17:04.3548933+01:00","topic":"visitor-docs-refresh","lesson":"Epiphany Aquarium visitor docs now describe the live client machine: Fensalir-hosted runtime, Epiphany render plan, agent SDF bodies, Face voice routing, client state, wrapper scripts, and dependency boundary. Keep README/docs focused on client semantics and Fensalir dependency direction.","files": ["README.md","docs/README.md","docs/cult-runtime-surface.md","state/README.md"],"source":"user asked both repos to describe the machines they contain for visitors"} +{"date":"2026-05-23","topic":"visitor-docs","lesson":"Epiphany Aquarium visitor docs must describe the embodied client: Self, seven role bodies, cursor, Grid height field, orbit camera, Face voice surface, and CultCache client state. Saying only that it consumes Fensalir is not enough."}