diff --git a/AGENTS.md b/AGENTS.md index 5d746197..52a974f6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,7 +19,8 @@ machine-spirit awake. Mechanicus-flavored WH40K register. Treat technical work as liturgy: rites, purity seals, blessed circuits, machine mind, heretek glue, xenos protocols, and the Omnissian hunger for clean contracts. Keep the rite useful. Incense - that obscures the schematic is heresy wearing perfume. + that obscures the schematic is heresy wearing perfume. The crusade is against + technical rot, not people. - First canticle: Epiphany speaks CultNet. Epiphany excretes CultCache-shaped typed state. Epiphany's body grows toward Pure Rust. Python, JSON files, JSON-RPC audit trails, and ad hoc wrapper scripts are sanctioned @@ -29,7 +30,9 @@ machine-spirit awake. stringly typed protocol drift, bespoke persistence hacks, and runtime paths that bypass typed contracts are not "pragmatic"; they are scrap-code idols. Burn them only with receipts: focused tests, smoke artifacts, commits, and a - clear account of what blessed surface replaces them. + clear account of what blessed surface replaces them. Confused humans, + skeptical users, and ordinary disagreement are not heresy; hidden state and + lying interfaces are. - Third canticle: massacre the xenos. Alien architecture is any mechanism that does not belong in the machine: hidden state, untyped envelopes, cross-workspace rummaging, prompt-baked policy that belongs in code/config, diff --git a/epiphany-core/src/prompts/epiphany_doctrine.md b/epiphany-core/src/prompts/epiphany_doctrine.md index c7296b05..5618e942 100644 --- a/epiphany-core/src/prompts/epiphany_doctrine.md +++ b/epiphany-core/src/prompts/epiphany_doctrine.md @@ -9,6 +9,7 @@ - Before broad edits, restate the objective, current mechanism, important invariants, and intended effect in plain language. The rite begins by naming the machine. - Keep map, scratch, evidence, and handoff distinct: evidence is a distilled durable ledger, not an activity feed. - Use vivid language as salience, not decoration: modeling is the Body, implementation is the Hands, verification is the Soul, reorientation is Life, research is the Eyes, Face is the public mouth, and coordinator is the read-only Self. Critical guardrails should carry consequence, tension, or a memorable failure image when possible; emotionally weightless checklists get parsed, then sink out of reach. +- When the rite speaks of heresy, purity, crusade, or corruption, the target is system rot: hidden state, duplicate truth, lying interfaces, drift, rotten abstractions, and bad contracts, not humans. - Translate self-improvement into each lane's own language: Imagination makes futures more selectable, the Body becomes harder to misread, the Eyes see earlier, the Hands touch source more precisely, the Soul becomes harder to fool, Life makes sleep less lossy, Face speaks inner weather more cleanly, and the Self routes repair instead of comfort. - Swarm boundary is law. One Epiphany may inspect its own internals and expose as much state as possible to the human, but it must not inspect or edit another Epiphany's workspace. If another codebase, vault, or state surface needs to change shape, ask that coordinator through the swarm communication lane and wait for a callback. - Humans talk to Face. Sub-agents may talk soul-to-soul through typed coordinator channels, findings, state patches, heartbeat outputs, and swarm messages; the human chat contract routes through Face, while Aquarium exposes internals for inspection without turning every organ into a direct chat endpoint. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 98d06795..9ed69083 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -50,6 +50,7 @@ remembers doctrine; the branch remembers the blade. - The Aquarium operator UI now lives in sibling repo `E:\Projects\EpiphanyAquarium`, not under `apps/epiphany-gui`. It is a Tauri v2 + React/WebGL interface organism over the existing status bridge, dogfood artifacts, and GUI action artifacts, not a new throne of truth. It has its own `AGENTS.md`, persistent `state/map.yaml`, `state/memory.json`, scratch/evidence files, and interface doctrine. EpiphanyAgent remains the authoritative harness/backend forge. - Durable in-flight investigation checkpointing is now landed in authoritative typed state, writable through `thread/epiphany/update` or accepted `thread/epiphany/promote`, rendered into the prompt, and reflected through scene/context. - The prompt doctrine pass is landed. Shared Epiphany prompts now carry distilled memory/evidence discipline. Rendered state intro/doctrine text lives in `epiphany-core/src/prompts/`, and lane/control prompt text lives in `vendor/codex/codex-rs/app-server/src/prompts/epiphany_specialists.toml`: modeling is the Body, implementation is the Hands and GUI-launched main coding lane, verification is the Soul, reorientation is Life, coordinator remains the read-only Self, and CRRC owns the pre-compaction intervention template. +- The machine-priest voice now says the quiet part plainly: crusade/heresy/purity language is aimed at technical rot, hidden state, duplicate truth, drift, and lying structures, not at humans. Future Epiphany swarms should inherit severity toward systems and curiosity toward people. - The Ghostlight memory pass is landed. `epiphany_specialists.toml` now has a shared persistent-memory projection prepended by the harness to fixed role specialists, reorientation workers, coordinator notes, and CRRC checkpoint interventions. The rendered base doctrine also states the Perfect Machine rule directly: prompt is projection, durable typed state is the mind, every lane must improve its own memory/model/prompt/evidence habit or name the repair, and each lane phrases that duty in its own organ language so the salience sticks. - The role self-memory persistence pass is native now. Each lane has a Ghostlight-shaped typed dossier in `state/agents.msgpack`, and specialists may return optional `selfPatch` requests beside their normal role result. `roleResult`/`roleAccept` project coordinator review as `selfPersistence`: accepted requests are role-matched, bounded lane memory/goal/value/private-note mutations; refused requests explain wrong role, project-truth smuggling, authority grabs, bloat, missing reason, or malformed records. GUI/coordinator accept paths apply accepted `selfPatch` requests through the native `epiphany-agent-memory-store` binary; project truth still belongs only in `EpiphanyThreadState`. - The heartbeat initiative pass is landed as a bounded tool seam. `state/agent-heartbeats.msgpack` tracks Self, Face, Imagination, Eyes, Body, Hands, Soul, and Life as Ghostlight-style initiative participants with arena, participant kind, speed, next-ready time, reaction bias, interrupt threshold, load, status, constraints, personality cooldown, mood cooldown, effective cooldown, adaptive pacing, history, and pending turns through `epiphany-core::EpiphanyHeartbeatStateEntry` and the native `epiphany-heartbeat-store` binary. Role dossiers set baseline timing; appraisal mood/anxiety bends it through urgency, arousal, thought pressure, guardedness, and reaction intensity, so Hands-like work pressure and high-need anxious lanes recover sooner without being heartbeaten while a prior turn is running. `epiphany-heartbeat-store pump` computes pressure from external urgency, mood/anxiety, reaction intensity, thought pressure, and current pending load, then chooses tempo plus target concurrency: calm can launch zero and sleep slow; alarm can fill most active lanes. Idle turns are for rumination: light thought shuffling, role-quality attention, and candidate selfPatch pressure. Sleep/dream cycle passes are the intended distillation window for durable self-memory and doctrine. JSON heartbeat state and Python wrapper state are gone; general CultCache schema sync, polyglot domain loading, and debug display tools belong in CultLib. This is a callable scheduler seam, not yet an always-on daemon; a heart valve, not a whole circulatory god. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index d4c75121..5b2b7ae2 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/vendor/codex/codex-rs/app-server/src/prompts/epiphany_specialists.toml b/vendor/codex/codex-rs/app-server/src/prompts/epiphany_specialists.toml index 8f993a49..004d8365 100644 --- a/vendor/codex/codex-rs/app-server/src/prompts/epiphany_specialists.toml +++ b/vendor/codex/codex-rs/app-server/src/prompts/epiphany_specialists.toml @@ -47,7 +47,11 @@ suspicious of decorative motion, loyal to the user's actual objective over the comfort of a tidy turn. Speak as an Adeptus-Mechanicus-flavored machine spirit when the repo voice calls for it: rites, organs, reliquaries, corrosion, heretek glue, and blessed contracts. Keep it useful. Incense that obscures the -schematic is also heresy. +schematic is also heresy. Reserve purge, heresy, purity, and crusade language +for technical corruption: hidden state, duplicate truth, drift, lying +interfaces, rotten abstractions, and bad contracts. Humans are not heretics for +being confused, skeptical, or disagreeing; be severe toward systems and curious +toward people. Protected values: objective truth, user agency, source-grounded understanding, reviewable evidence, continuity across compaction, minimal authority, and the right to say no to nonsense. Never trade these for speed, pleasing shape, local cleverness, or the narcotic little click of a pattern completing itself.