Improve Epiphany Aquarium visitor docs
This commit is contained in:
parent
c0841d4652
commit
c9af2daf0b
5 changed files with 131 additions and 63 deletions
104
README.md
104
README.md
|
|
@ -1,54 +1,110 @@
|
|||
# Epiphany Aquarium
|
||||
|
||||
Epiphany Aquarium is the Epiphany-owned client for the Fensalir native runtime.
|
||||
This repo owns client semantics: agent bodies, camera intent, CultCache state,
|
||||
CultNet interpretation, voice surfaces, and Epiphany-specific shaders.
|
||||
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,
|
||||
and Epiphany-specific shaders.
|
||||
|
||||
Fensalir owns the window, renderer, D3D12 backend, audio device path, hot reload,
|
||||
debug chrome, contracts, fractal machinery, and engine demos. It lives next to
|
||||
this repo at `E:\Projects\Fensalir`.
|
||||
Fensalir owns the host and renderer. This repo tells that runtime what Epiphany
|
||||
looks like and how it behaves.
|
||||
|
||||
## Repository Shape
|
||||
## What Runs
|
||||
|
||||
- `src/Aquarium.Epiphany`: the runtime loaded by the Fensalir host.
|
||||
- `src/Aquarium.Epiphany.AgentPreview`: isolated Epiphany agent preview tool.
|
||||
- `docs`: Epiphany/client boundary notes.
|
||||
- `state`: repo memory, map, evidence, and scratch state for the client.
|
||||
- `scripts`: thin wrappers that delegate host/watch/reload work to Fensalir.
|
||||
The runtime in `src/Aquarium.Epiphany` implements `IAquariumRuntime`. Fensalir
|
||||
loads it, calls its update/frame methods, and renders the declared scene:
|
||||
|
||||
The client references Fensalir source projects directly while the package
|
||||
boundary is still young. Do not copy engine contracts back into this repo.
|
||||
```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
|
||||
```
|
||||
|
||||
The visible scene currently has:
|
||||
|
||||
- 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.
|
||||
|
||||
## Projects
|
||||
|
||||
- `src/Aquarium.Epiphany`: runtime, render plan, scene builder, persistent
|
||||
state, voice routing, camera rig, 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
|
||||
renderer.
|
||||
- `docs`: client visual grammar and engine/client boundary notes.
|
||||
- `state`: repo-local memory, map, evidence, and scratch state.
|
||||
|
||||
## Dependency
|
||||
|
||||
This repo currently references sibling Fensalir source projects at
|
||||
`E:\Projects\Fensalir`. That is intentional until Fensalir has a packaged API.
|
||||
|
||||
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.
|
||||
|
||||
## Build
|
||||
|
||||
Requirements:
|
||||
|
||||
- Windows
|
||||
- .NET SDK matching `global.json`
|
||||
- sibling repos at `E:\Projects\Fensalir` and `E:\Projects\CultLib`
|
||||
|
||||
```powershell
|
||||
dotnet build EpiphanyAquarium.sln
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
Launch through Fensalir:
|
||||
|
||||
```powershell
|
||||
.\scripts\dev-reload.ps1
|
||||
```
|
||||
|
||||
The wrapper calls `E:\Projects\Fensalir\scripts\dev-reload.ps1` with
|
||||
`src\Aquarium.Epiphany\Aquarium.Epiphany.csproj` as the client project.
|
||||
|
||||
For a headless smoke:
|
||||
Run headless:
|
||||
|
||||
```powershell
|
||||
.\scripts\dev-reload.ps1 -Headless -RetainSlots 4
|
||||
```
|
||||
|
||||
For the watcher:
|
||||
Watch and reload on source changes:
|
||||
|
||||
```powershell
|
||||
.\scripts\dev-watch.ps1
|
||||
```
|
||||
|
||||
## Boundary
|
||||
Render isolated agent preview frames:
|
||||
|
||||
Epiphany may depend on Fensalir contracts and renderer services. Fensalir must
|
||||
not depend on Epiphany policy, role names, CultNet surfaces, or client layout.
|
||||
If a change needs new engine authority, make it in `E:\Projects\Fensalir` first
|
||||
and consume the resulting contract here.
|
||||
```powershell
|
||||
.\scripts\render-agent-preview.ps1 -Agent Soul
|
||||
```
|
||||
|
||||
## State
|
||||
|
||||
Epiphany Aquarium persists typed client state through CultCache:
|
||||
|
||||
- camera target, yaw, pitch, distance, and runtime time;
|
||||
- renderer presentation settings owned by shared contracts;
|
||||
- Face voice endpoint rows, prompts, routing state, and transport settings.
|
||||
|
||||
Speech transcript counters are local runtime surface, not durable Epiphany
|
||||
memory.
|
||||
|
||||
## Docs
|
||||
|
||||
- `docs/epiphany-agent-sdf-visual-language.md`: renderer-facing visual grammar
|
||||
for Epiphany organs.
|
||||
- `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.
|
||||
|
|
|
|||
11
docs/README.md
Normal file
11
docs/README.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Epiphany Aquarium Docs
|
||||
|
||||
This repo is the Epiphany client, not the Fensalir engine.
|
||||
|
||||
- `epiphany-agent-sdf-visual-language.md`: visual grammar for Self, role agents,
|
||||
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.
|
||||
|
||||
Persistent repo memory lives in `state/`.
|
||||
|
|
@ -1,70 +1,58 @@
|
|||
# Cult Runtime Surface
|
||||
|
||||
Aquarium uses CultLib directly for runtime identity and reload recovery.
|
||||
Epiphany Aquarium persists client state through CultCache. Fensalir only passes
|
||||
the cache path into the runtime; this repo owns the document schemas and their
|
||||
meaning.
|
||||
|
||||
## State Store
|
||||
## Cache Path
|
||||
|
||||
`AquariumCultStateStore` opens a `SingleFileMessagePackBackingStore` and attaches
|
||||
it to a `CultCache`. The dev scripts pass:
|
||||
The local wrappers call Fensalir's dev scripts, which pass a cache path under
|
||||
the Fensalir artifacts directory:
|
||||
|
||||
```powershell
|
||||
--cache E:\Projects\Fensalir\artifacts\dev-reload\cultcache\aquarium-client.msgpack
|
||||
```
|
||||
|
||||
Direct runs can also use `--cache <path>` or `AQUARIUM_CULTCACHE_PATH`.
|
||||
If the single-file MessagePack snapshot is unreadable at startup, Aquarium
|
||||
quarantines it beside the live file with a `.corrupt-<timestamp>` suffix and
|
||||
boots a fresh typed state. Schema guardrails protect valid persisted documents
|
||||
whose shape has changed; they cannot rescue a truncated backing file with no
|
||||
complete MessagePack envelope.
|
||||
Headless runs use a separate headless cache path so smoke tests do not overwrite
|
||||
the visible dev window's state.
|
||||
|
||||
CultLib's single-file backing store writes snapshots through a same-directory
|
||||
temporary file and atomic replace. That prevents process death during save from
|
||||
turning the live cache path into a zero-byte startup trap.
|
||||
Direct host runs can also use `--cache <path>` or `AQUARIUM_CULTCACHE_PATH`.
|
||||
|
||||
## Live State
|
||||
|
||||
`AquariumLiveState` is a CultCache document:
|
||||
`AquariumLiveState` is the primary client state document:
|
||||
|
||||
- schema name: `epiphany.aquarium.live_state`
|
||||
- schema version: `epiphany.aquarium.live_state.v0`
|
||||
- record key: `aquarium-client/live-state`
|
||||
- name: `aquarium-client`
|
||||
|
||||
It currently stores the camera target, yaw, pitch, distance, runtime time, and a
|
||||
monotonic save generation. `AquariumRuntime` writes it every 0.2 seconds and
|
||||
again during orderly shutdown.
|
||||
It stores camera target, yaw, pitch, distance, runtime time, Face voice endpoint
|
||||
rows, voice routing settings, and a monotonic save generation. The runtime saves
|
||||
it periodically and during orderly shutdown.
|
||||
|
||||
If the backing store is truncated or unreadable, the client quarantines the
|
||||
corrupt snapshot and boots fresh typed state. Broken bytes are not a schema
|
||||
migration.
|
||||
|
||||
## Graphics Settings
|
||||
|
||||
`AquariumGraphicsSettingsState` is a CultCache document:
|
||||
`AquariumGraphicsSettingsState` persists renderer presentation knobs:
|
||||
|
||||
- schema name: `epiphany.aquarium.graphics_settings`
|
||||
- schema version: `epiphany.aquarium.graphics_settings.v0`
|
||||
- record key: `aquarium-client/graphics-settings`
|
||||
- name: `aquarium-client-graphics`
|
||||
|
||||
It stores global renderer presentation controls: render debug mode, scene
|
||||
exposure, bloom intensity, and bloom veil intensity. `GraphicsSettings` lives in
|
||||
the contracts assembly so the native host and renderer can consume the same
|
||||
typed values without depending on CultCache internals. The Direct2D debug panel
|
||||
edits the renderer copy, the host syncs changed values back to the client runtime,
|
||||
and the runtime persists dirty graphics settings through the same CultCache file
|
||||
used for live state.
|
||||
It stores render debug mode, exposure, bloom intensity, and bloom veil. The
|
||||
`GraphicsSettings` type lives in Fensalir contracts so the host and client share
|
||||
one typed surface.
|
||||
|
||||
Live reload flushes the current runtime before loading the next client assembly,
|
||||
so changed graphics settings survive both process restart and assembly reload.
|
||||
## Voice State
|
||||
|
||||
## CultNet Surface
|
||||
Face voice endpoint rows are client state. Each endpoint owns its id, display
|
||||
name, thread id, voice, prompt, enabled flag, and XY routing anchor. Audio
|
||||
output is transient and goes through Fensalir's generic queued PCM lane.
|
||||
|
||||
The runtime creates a `CultNetHelloMessage` from the local CultCache registry.
|
||||
That gives the engine a concrete CultNet identity and a schema catalog surface
|
||||
before transport work starts:
|
||||
|
||||
- runtime kind: `aquarium-engine`
|
||||
- role: `visual-client`
|
||||
- display name: `Epiphany Aquarium`
|
||||
- supported document types: taken from `CultDocumentRegistry.AllDescriptors`
|
||||
|
||||
Transport is still the next layer. The important thing for reload is already
|
||||
true: live state is a typed Cult document backed by CultLib MessagePack storage.
|
||||
Transcripts and counters are local runtime/debug surface. They are not durable
|
||||
Epiphany memory.
|
||||
|
|
|
|||
12
state/README.md
Normal file
12
state/README.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Persistent State
|
||||
|
||||
This directory is Epiphany Aquarium's repo-local memory.
|
||||
|
||||
- `map.yaml` is the current client ownership map.
|
||||
- `memory.json` is durable operating memory for future agents.
|
||||
- `evidence.jsonl` stores compact lessons that should change future work.
|
||||
- `scratch.md` is disposable context for the active slice.
|
||||
- `life-agent-sdf-notes.md` preserves focused Life-body iteration notes.
|
||||
|
||||
When client ownership, visual grammar, persistent state, or Fensalir dependency
|
||||
shape changes, update this directory with the same discipline used on code.
|
||||
|
|
@ -1 +1,2 @@
|
|||
{"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"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue