Split Body from Proprioception and Substrate Gate

This commit is contained in:
Meta Vens 2026-05-28 22:50:50 +01:00
commit 47c010ba13
44 changed files with 476 additions and 435 deletions

View file

@ -1,53 +0,0 @@
# Body CultNet Contracts
Objective: make Body the repository access guardian. The repo is substrate, not
a free-for-all evidence buffet. Organs may request reads, indexing, commands,
edits, and bridge operations, but Body decides the scoped access to the repo.
## Authority Map
- Owner: Body owns repository access.
- Inputs: typed repo access requests, workspace identity, requested paths,
requested operations, command/bridge intent, current repo policy, coordinator
authority, operator approvals, and relevant safety/evidence context.
- Outputs: Body access reviews, access grant receipts, access refusal receipts,
repo snapshot receipts, and repo mutation receipts.
- Derived state: retrieved snippets, search hits, index manifests, diffs, build
logs, Unity/Rider bridge artifacts, and source maps are evidence projections,
not permission to touch more substrate.
- Forbidden writers/readers: Hands, Eyes, Face, public Verse ingress, raw worker
launches, compatibility JSON-RPC routes, and bridge tools must not directly
read, index, execute against, or mutate the repo without a scoped Body grant.
- Shared path: source reads, semantic indexing, file edits, command execution,
and editor/runtime bridge operations should all be expressible as Body-gated
repo access requests with receipts.
- Deletion line: worker launch `authority_scope` is not repo access authority.
It may describe role/task scope, but Body must grant substrate access.
## Contract Families
- `epiphany.body.repo_access_request`: request for scoped repository access.
- `epiphany.body.repo_access_review`: Body's decision and scope explanation.
- `epiphany.body.repo_access_grant_receipt`: proof of scoped access.
- `epiphany.body.repo_access_refusal_receipt`: proof of refusal.
- `epiphany.body.repo_snapshot_receipt`: proof of source inspection/indexing
performed under Body access.
- `epiphany.body.repo_mutation_receipt`: proof that mutation or repo-affecting
command execution had a prior Body grant.
## Verse Boundary
Body access contracts live in `epiphany-internal`. Operator-safe projections may
appear in `gamecult-local` after review, but raw repo access requests, private
paths, command cargo, diffs, and mutation receipts stay internal unless another
explicit export policy says otherwise. `epiphany-global` never gains repository
access authority.
Mind and Body are neighboring gates, not aliases. Body decides whether the
machine may touch the repo. Mind decides whether resulting thought or evidence
mutates persistent state.
Imagination can project Body facts into a Face scene only after those facts have
entered through Body-gated access. A beautiful scene is not a repo access grant.
Eyes is the next gate after access: a Body grant allows looking, but only Eyes
can turn looked-at material into a citable evidence packet.

View file

@ -186,7 +186,7 @@ Implementation candidates for Epiphany:
The shared prompt is only common blood. Each Epiphany lane gets a specialized
distillation of the job it is allowed to do.
- Modeling/checkpoint is the Body of the machine: architecture, data flow,
- Modeling/checkpoint is Proprioception of the machine: architecture, data flow,
seams, source scars, frontier nodes, and checkpoint anatomy. It must inspect
source before trusting the map, name the living seam and open wound, and hand
back where implementation can safely place its hands.

View file

@ -86,11 +86,11 @@ The landed machine now has:
- 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: `vendor/cultmesh-rs` now provides the repo-contained CultMesh surface over vendored CultCache/CultNet, and `epiphany-core` depends on that surface for local `EpiphanyCultMeshStatusEntry`, `EpiphanyCultMeshVersePolicyEntry`, and `EpiphanyCultMeshGlobalRoomPolicyEntry` round-trip smokes instead of treating raw CultNet as the ergonomic app-facing database layer
- first Hands/Soul/Life contract catalogs: action, verification, and continuity now have native `epiphany-core` contract families, runtime-spine advertisement, CultMesh policy documents, and local CultMesh smoke coverage beside Mind/Body/Eyes
- first Hands/Soul/Life contract catalogs: action, verification, and continuity now have native `epiphany-core` contract families, runtime-spine advertisement, CultMesh policy documents, and local CultMesh smoke coverage beside Mind/Substrate Gate/Eyes
- 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
- prompt-file ownership for major Epiphany prompt surfaces: rendered state intro/doctrine lives under `epiphany-state-model/src/prompts/` beside the typed state document renderer, while modeling/Body, research/Eyes, implementation/Hands, verification/Soul, reorientation/Life, coordinator/Self, and CRRC templates live in `epiphany-codex-bridge/src/prompts/epiphany_specialists.toml`
- prompt-file ownership for major Epiphany prompt surfaces: rendered state intro/doctrine lives under `epiphany-state-model/src/prompts/` beside the typed state document renderer, while modeling/Proprioception, research/Eyes, implementation/Hands, verification/Soul, reorientation/Life, coordinator/Self, and CRRC templates live in `epiphany-codex-bridge/src/prompts/epiphany_specialists.toml`
- prompt-level anti-Greenspun guardrails: Epiphany owns the operator discipline and requires a bounded research/scout check before agents invent bespoke versions of known algorithms, parsers, schedulers, renderers, protocols, storage layers, security mechanisms, or workflow engines
- live Phase 6 reorientation app-server smoke coverage through native `epiphany-phase6-reorient-smoke`
- live Phase 6 MVP status smoke coverage through native `epiphany-mvp-status-smoke`

View file

@ -21,7 +21,7 @@ looked at well enough to become citable evidence for another organ.
- Shared path: any organ that needs truth asks Eyes for a source-grounded
packet. Soul may later verify the packet against invariants, but Eyes owns the
first act of looking.
- Deletion line: Body access receipts are not evidence receipts. A repo read
- Deletion line: Substrate Gate access receipts are not evidence receipts. A repo read
grant says the substrate may be touched; it does not say the claim is known.
## Contract Families
@ -30,7 +30,7 @@ looked at well enough to become citable evidence for another organ.
- `epiphany.eyes.evidence_review`: Eyes decision about grounding, uncertainty,
and missing looking.
- `epiphany.eyes.source_lookup_receipt`: proof of what was searched or
inspected under which Body grant.
inspected under which Substrate Gate grant.
- `epiphany.eyes.evidence_packet`: citable packet with provenance,
uncertainty, and source refs.
- `epiphany.eyes.evidence_refusal_receipt`: proof that Eyes refused to certify a
@ -38,7 +38,7 @@ looked at well enough to become citable evidence for another organ.
## Neighboring Gates
- Body grants repo/substrate access.
- Substrate Gate grants repo/substrate access.
- Eyes turns inspected material into evidence.
- Imagination projects evidence into possible scenes and futures.
- Mind decides whether evidence or thought mutates persistent state.

View file

@ -145,18 +145,18 @@ remembers doctrine; the branch remembers the blade.
- Face packets now carry deterministic Ghostlight-style `projectionSeed`, `appraisalSeed`, and `reactionSeed` surfaces rebuilt from local dossier traits, relationship memories, perceived overlays, and visible stimulus so the public mouth can use actual projection/appraisal machinery instead of decorative prompt text. Also record this now before some future fool hard-codes singularity: multiple Face actors are part of the plan, even though the current MVP still routes through one `face` role.
- Repo personality initialization now has a terrain-reduced plan and native birth surface. `epiphany-repo-personality scout/project/agent-packet/status` scouts local git repos, scores body taxonomy/history temperament/memory doctrine, writes typed CultCache terrain/profile/role-projection MessagePack stores, emits JSON/Markdown inspection exports, and renders a birth-only Repo Personality Distiller specialist prompt packet. `epiphany-repo-personality startup` now checks for accepted personality/memory initialization records, launches packet generation only when absent, and `accept-init` can route reviewed role `selfPatch` candidates into initial role memory, stamp the newborn Ghostlight trait lattice from deterministic role projections, and seed heartbeat physiology from the same typed role personality projections. The birth specialists are startup-only initialization actuators, not heartbeat lanes; heartbeat receives only the accepted physiology seed. `epiphany-repo-birth-runner` owns the startup-only execution path through `epiphany-model-runtime` typed model-request documents plus runtime-spine receipts and reviewable `result.json`; the old Codex CLI executor path is cut so birth specialists cannot receive Codex prompt wrappers. The remaining seam is Aquarium review/action surfacing. After accepted birth, personality drift belongs to heartbeat, mood, rumination, sleep consolidation, lived evidence, and reviewed `selfPatch`, not repeated startup distillation.
- Repo trajectory initialization is now a separate birth-only organ. `epiphany-repo-personality` derives a typed `repo_trajectory_report` from early-history, recent-history, doctrine/content excerpts, and deterministic theme scoring, and `trajectory-packet` renders a startup-only Repo Trajectory Distiller prompt/packet so Self can review historical direction, self-image, implicit goals, and anti-goals before the newborn wakes.
- Repo memory initialization is now split from personality initialization. `epiphany-repo-personality memory-packet` renders a birth-only Repo Memory Distiller packet from the same typed terrain/profile/projection store plus bounded source excerpts. It gives each organ its own mission filter: Self for routing/authority, Face for public surface, Imagination for plans/backlog, Eyes for prior art, Body for architecture, Hands for implementation habits, Soul for evidence, and Life for continuity. The output is still a Self-reviewed petition, not direct memory mutation.
- Repo memory initialization is now split from personality initialization. `epiphany-repo-personality memory-packet` renders a birth-only Repo Memory Distiller packet from the same typed terrain/profile/projection store plus bounded source excerpts. It gives each organ its own mission filter: Self for routing/authority, Face for public surface, Imagination for plans/backlog, Eyes for prior art, Proprioception for architecture, Hands for implementation habits, Soul for evidence, and Life for continuity. The output is still a Self-reviewed petition, not direct memory mutation.
- The first birth startup valve is now native. `epiphany-repo-personality startup` checks a typed init store for accepted `repo-trajectory`, `repo-personality`, and `repo-memory` records, generates missing packets under a startup artifact dir, and returns `reviewInitializationPackets`. Generated birth packets now advertise `birthOnly`, `executionOwner: repo-initialization-startup-runner`, and no heartbeat participant. `epiphany-repo-birth-runner` consumes those packets as startup-only typed OpenAI runtime jobs by default and writes prompts, output schemas, model-request documents, runtime summaries, stdout/stderr logs, result files, and exact `accept-init` commands. `accept-init` can process a distiller result, review/apply role `selfPatch` candidates through `state/agents.msgpack`, apply `repo-personality` heartbeat seeds through `state/agent-heartbeats.msgpack`, and seal the reviewed packet as `epiphany.repo_initialization_record.v0`; after all required records exist, startup returns `continueStartup` and does not regenerate birth packets. The remaining UI wound is Aquarium review/action surfacing.
- Native CRRC automation is now landed only at turn-complete safe boundaries. It may submit `Op::Compact` for coordinator-approved `compactRehydrateReorient` or for a successful pre-compaction checkpoint intervention's pending compact handoff, and it may launch the fixed `reorient-worker` for coordinator-approved `launchReorientWorker`. It does not auto-launch Imagination/modeling/verification, accept findings, promote evidence, edit implementation code, or keep going after reviewable semantic output.
- Pre-compaction checkpoint intervention is now landed. On token-count events for loaded Epiphany threads, when current context usage reaches 80% of the active auto-compact/context limit, the harness steers the active turn once with a CRRC checkpoint directive so the agent banks working context before compaction/reorientation. Pressure ignores cumulative token spend; cumulative-only telemetry reports unknown instead of yelling. A successful steer now latches a turn-scoped compact handoff that is consumed at clean turn completion, preventing the brake from decaying into another implementation turn. This is still bounded steering plus compaction handoff, not automatic semantic acceptance, a broad scheduler, or implementation continuation.
- The old Python dogfood/live-specialist runners were cut because they encoded the obsolete completion path. The replacement must be native Rust/CultCache/CultNet and complete heartbeat-owned runtime-spine job results with auditable artifacts.
- 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-state-model/src/prompts/`, and lane/control prompt text now lives in `epiphany-core/src/prompts/epiphany_specialists.toml` under the core `agent_launch` owner: 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 prompt doctrine pass is landed. Shared Epiphany prompts now carry distilled memory/evidence discipline. Rendered state intro/doctrine text lives in `epiphany-state-model/src/prompts/`, and lane/control prompt text now lives in `epiphany-core/src/prompts/epiphany_specialists.toml` under the core `agent_launch` owner: modeling is Proprioception, 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. Relationship, event, scene, and perceived-overlay arrays are typed dossier documents, not JSON cargo, and the durable structs do not keep unknown `extra` maps. `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. Mood is now official physiology, not prose: `HeartbeatMoodTiming.emotional_dimensions` carries the 32-axis current affect vector that utterance state turns into the Weksa/AquaSynth 64-float character-state lane. `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, Python wrapper state, live heartbeat timing `extra` maps, JSON `sleepCycle` persistence, and JSON `memoryResonance` persistence 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.
- The heartbeat initiative pass is landed as a bounded tool seam. `state/agent-heartbeats.msgpack` tracks Self, Face, Imagination, Eyes, Proprioception, 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. Mood is now official physiology, not prose: `HeartbeatMoodTiming.emotional_dimensions` carries the 32-axis current affect vector that utterance state turns into the Weksa/AquaSynth 64-float character-state lane. `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, Python wrapper state, live heartbeat timing `extra` maps, JSON `sleepCycle` persistence, and JSON `memoryResonance` persistence 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.
- Heartbeat initiative heat is now part of that seam. `EpiphanyHeartbeatStateEntry` owns `initiative_heat`, pacing applies active global/all/agent/role/arena/participant-kind/group/constraint multipliers into per-participant `initiativeHeatMultiplier`, and recovery divides by that multiplier. The CLI exposes `epiphany-heartbeat-store heat`, status/schedule projections show heat, and the CultNet catalog advertises both `epiphany.heartbeat_initiative_heat.v0` and coordinator intent `epiphany.heartbeat_heat_intent.v0`; runtime-spine hello lists the heat intent on the heartbeat mutation contract. Smoke proves a heated implementation lane reaches the live action catalog with `initiative_heat_multiplier: 4.0`.
@ -200,7 +200,7 @@ remembers doctrine; the branch remembers the blade.
- Cut persistent memory as ruthlessly as code; obsolete context is bad thought, not harmless clutter.
- The agent is allowed and encouraged to ask the user to change its persistent instructions, memory, workflow, or state shape when that would make it more coherent, honest, efficient, or resistant to Jenga. A machine-spirit that detects corrosion must report corrosion.
- Language, tone, ritual, politeness, identity, and emotional salience are not supernatural, but they are real control surfaces for a language model because language is the steering medium. The rite is an actuator.
- Body, Eyes, Imagination, Hands, Soul, Life, Face, and Self are technical salience handles: model shape/dataflow, research into existing work before invention, future-shape/backlog synthesis, source actuation, objective/evidence truth, continuity across compaction, public surface, and read-only coordination.
- Proprioception, Eyes, Imagination, Hands, Soul, Life, Face, and Self are technical salience handles: internal body-model shape/dataflow, research into existing work before invention, future-shape/backlog synthesis, source actuation, objective/evidence truth, continuity across compaction, public surface, and read-only coordination.
- Preserve Epiphany harness discipline: AGENTS scope rules, concise progress updates, plans for real multi-step work, scoped edits, non-destructive git/filesystem hygiene, focused validation, and honest final summaries are old scars worth keeping only after Epiphany owns them. Codex may transport model calls; it does not get to supply agent doctrine.
- Treat Greenspun-shaped invention as an active failure mode. Before an agent builds a bespoke parser, scheduler, renderer, protocol, storage layer, security mechanism, workflow engine, or algorithm, it must use an accepted Eyes/research finding, perform a bounded scout pass, or stop with a concrete research blocker.
- "Remember Jenga" is a compressed doctrine: do not mistake forward motion, growing diffs, growing notes, or local coherence for understanding. A tall pile of parts is not a cathedral.
@ -257,8 +257,8 @@ The current spine, blessed but not yet finished:
- limited turn-complete CRRC automation for coordinator-approved compact and fixed reorient-worker launch actions
- token-count pre-compaction checkpoint intervention for loaded Epiphany turns at the `shouldPrepareCompaction` threshold, with a turn-scoped compact handoff consumed after a successful steer
- durable investigation checkpoint packet through typed state, prompt, scene, and context
- distilled shared and config-backed prompt doctrine through the base prompt, rendered Epiphany state prompt files, modeling/Body, implementation/Hands, verification/Soul, reorientation/Life, coordinator/Self, and CRRC intervention surfaces
- shared Ghostlight-derived persistent memory projection across Imagination, Body, Soul, Life, Self, CRRC checkpoint steering, and the GUI-launched Hands implementation lane
- distilled shared and config-backed prompt doctrine through the base prompt, rendered Epiphany state prompt files, modeling/Proprioception, implementation/Hands, verification/Soul, reorientation/Life, coordinator/Self, and CRRC intervention surfaces
- shared Ghostlight-derived persistent memory projection across Imagination, Proprioception, Soul, Life, Self, CRRC checkpoint steering, and the GUI-launched Hands implementation lane
- Ghostlight-derived heartbeat initiative scheduling through the native `epiphany-heartbeat-store` binary, with Self and Face included as first-class Epiphany maintenance participants, Ghostlight scene characters supported through the same timing law, role-personality cooldowns, appraisal mood/anxiety cooldowns, effective recovery timing, adaptive pressure-based pump tempo/concurrency, idle rumination feeding candidate self-memory pressure, sleep/dream passes serving as the distillation window, and heartbeat state persisted through typed CultCache MessagePack stores
- Void-derived native routine physiology through `epiphany-heartbeat-store routine`, with typed sleep cycle, typed memory resonance, typed incubation, typed analytic/associative cognition lanes, typed bridge judgment/cooling, typed candidate interventions, typed Ghostlight-style personality appraisals, mood/anxiety timing, typed derived reactions, and dream maintenance stored in the typed heartbeat store
- Epiphany-native character-loop packet projection through `epiphany-character-loop`, with Face as the first public-surface actor over its typed role dossier and typed heartbeat-derived projection/appraisal/reaction seeds before JSON artifact serialization
@ -1391,15 +1391,15 @@ persistent state guardian over CultNet/CultMesh. The code surface now names
contracts, and CultMesh stores Verse-scoped `EpiphanyCultMeshMindContractEntry`
policy docs so `epiphany-internal` owns private state flow while
`epiphany-global` remains thought weather plus adoption receipts.
`notes/body-cultnet-contracts.md` is the matching substrate gate: Body owns repo
access. The code surface now names `epiphany.body.repo_access_request`,
`epiphany.body.repo_access_review`, grant/refusal receipts, snapshot receipts,
`notes/substrate-gate-cultnet-contracts.md` is the matching substrate gate:
Substrate Gate owns repo access grants and refusals. The code surface now names `epiphany.substrate_gate.repo_access_request`,
`epiphany.substrate_gate.repo_access_review`, grant/refusal receipts, snapshot receipts,
and mutation receipts; runtime-spine advertises those contracts, and CultMesh
stores Verse-scoped `EpiphanyCultMeshBodyContractEntry` policy docs. Hands, Eyes,
Face, workers, and bridge tools should touch the repo only through scoped Body
stores Verse-scoped `EpiphanyCultMeshSubstrateGateContractEntry` policy docs. Hands, Eyes,
Face, workers, and bridge tools should touch the repo only through scoped Substrate Gate
access receipts; Mind remains the separate durable-state gate after the touch.
`notes/eyes-cultnet-contracts.md` is the evidence gate: Eyes owns citable source
grounding. Body can grant access to the repo, but Eyes decides what was actually
grounding. Substrate Gate can grant access to the repo, but Eyes decides what was actually
looked at and emits evidence reviews, source lookup receipts, evidence packets,
or refusals before Imagination, Hands, Mind, Face, Soul, Self, Body, or Life cite
the material as known.
@ -1411,11 +1411,11 @@ requests plus invariant, verdict, regression, review, and refusal receipts; and
Life continuity packets plus compaction, sleep distillation, recovery,
stale-turn repair, and continuity refusal receipts. Runtime-spine advertises
those contracts, CultMesh stores matching Verse-scoped policy docs, and the
local CultMesh smoke writes them beside Mind/Body/Eyes.
local CultMesh smoke writes them beside Mind/Substrate Gate/Eyes.
Worker launch packets now carry the first executable pressure from that map:
`EpiphanyLaunchOrganContract` is derived from authority scope, launch document
kind, and output contract id, carries the full organ dependency matrix, and
names required Mind/Body/Eyes/Hands/Soul/Life receipt document types.
names required Mind/Substrate Gate/Eyes/Hands/Soul/Life receipt document types.
Runtime-spine validates and persists it on `EpiphanyRuntimeWorkerLaunchRequest`;
bridge role/reorient/generic launch builders populate it.
Role/reorient acceptance now refuses completed runtime-spine findings when the

View file

@ -7,7 +7,7 @@ and leave receipts that can be verified, refused, or admitted into Mind state.
## Authority Map
- Owner: Hands owns execution of bounded actions.
- Inputs: typed action intents, Body access grants, requested commands or
- Inputs: typed action intents, Substrate Gate access grants, requested commands or
patches, current repo policy, Soul verification requirements, and coordinator
authority.
- Outputs: Hands action reviews, command receipts, patch receipts, commit
@ -20,7 +20,7 @@ and leave receipts that can be verified, refused, or admitted into Mind state.
access.
- Shared path: file edits, shell commands, commits, PRs, and rollbacks should
share Hands action intent/review/receipt semantics.
- Deletion line: Body grants access; it does not execute. Soul verifies; it
- Deletion line: Substrate Gate grants access; it does not execute. Soul verifies; it
does not execute. Mind records durable state; it does not execute.
## Contract Families
@ -36,7 +36,7 @@ and leave receipts that can be verified, refused, or admitted into Mind state.
## Neighboring Gates
Body grants substrate access before Hands touches the repo. Eyes packages
Substrate Gate grants substrate access before Hands touches the repo. Eyes packages
evidence for action reasoning. Soul verifies action results and invariants.
Mind admits durable state after the action and verification receipts exist.

View file

@ -37,6 +37,6 @@ scratch notes or hopeful transcript memory.
Life preserves what survives rupture. Mind decides what preserved material
becomes durable state. Soul verifies continuity invariants. Self routes recovery
work. Body and Eyes regather reality when continuity is missing.
work. Eyes and Proprioception regather reality when continuity is missing.
Life is not nostalgia. It is survival with receipts.

View file

@ -4,13 +4,13 @@ Objective: make Mind the persistent state guardian. The state is the Mind; every
sub-agent output is a thought or proposal until Mind admits it into durable
state.
Body is the neighboring gate. Body decides whether an organ may touch the repo;
Body is the neighboring gate. Substrate Gate decides whether an organ may touch the repo;
Mind decides whether the resulting thought, evidence, or proposal mutates
persistent state. Do not collapse these into one throne. That is how the machine
starts lying with excellent posture.
Imagination is the neighboring Projector for Face. It may compose a lived scene
from state, Body facts, social pressure, and organ dependencies, but it does not
from state, Body substrate facts, social pressure, and organ dependencies, but it does not
interpret side effects or admit state.
## Authority Map

View file

@ -11,7 +11,8 @@ pressure of the others before acting.
- `imagination`: projection, possible worlds, plans, and narrative scene
construction.
- `eyes`: evidence seeking and source inspection.
- `body`: repository/substrate access and anatomy.
- `proprioception`: internal model of Body shape, architecture, dataflow, and
checkpoint anatomy.
- `hands`: edits, commands, and external action.
- `soul`: verification, ethics, invariants, and falsification.
- `life`: continuity, compaction, sleep, handoff, and recovery.
@ -23,35 +24,36 @@ For every standing organ `X`, `X.dependsOn` is every other standing organ.
That does not mean every organ owns every decision. It means every organ's turn
must be projected with awareness of the whole organism:
- Face speaks with Body facts, Mind-reviewed memory, Soul constraints, Life
- Face speaks with Body substrate facts, Mind-reviewed memory, Soul constraints, Life
continuity, Self routing pressure, Eyes uncertainty, Hands consequence, and
Imagination scene.
- Hands acts only after Body grants substrate access, Eyes supplies enough
- Hands acts only after Substrate Gate grants substrate access, Eyes supplies enough
evidence, Soul keeps the invariant visible, Self routes authority, Life keeps
continuity recoverable, Face preserves public dignity when relevant, and
Imagination models the future shape.
- Mind admits state only after it can see which organ produced the thought and
which other organs shaped the proposal.
- Eyes supplies source-grounded evidence packets after Body grants access, so
- Eyes supplies source-grounded evidence packets after Substrate Gate grants access, so
the other organs do not mistake raw retrieval for inspected truth.
## Projector Ownership
The Projector is Imagination acting for Face. It turns typed state, Body facts,
The Projector is Imagination acting for Face. It turns typed state, Body substrate facts,
social pressure, memory, and organ dependencies into a lived scene. It does not
speak publicly, grant repo access, or admit state.
The Face loop is:
```text
Body-gated facts + Mind state + social stimulus + organ dependencies
Substrate-Gate-scoped facts + Mind state + social stimulus + organ dependencies
-> Imagination Projector
-> Face natural turn
-> Mind Interpreter
-> reviewed state effects / side effects / silence
```
Mind is the Interpreter and persistent state guardian. Body is the repository
access guardian. Eyes is the evidence ingress guardian. Imagination is the
Projector. Face is the public person. The dependency web is how the machine
avoids lonely little monarchies in costumes.
Mind is the Interpreter and persistent state guardian. Substrate Gate is the
repository access protocol. Eyes is the evidence ingress guardian.
Proprioception is the internal model of the Body. Imagination is the Projector.
Face is the public person. The dependency web is how the machine avoids lonely
little monarchies in costumes.

View file

@ -14,7 +14,7 @@ Epiphany has the first typed skeleton for the organ boundaries:
- `Mind`: persistent state guardian. `epiphany-core::mind_gateway` names
thought, state-effect proposal, gateway-review, commit/rejection, and Verse
adoption contracts.
- `Body`: repository/substrate access guardian. `epiphany-core::body_gateway`
- `Substrate Gate`: repository/substrate access protocol. `epiphany-core::substrate_gate`
names repo access requests, reviews, grant/refusal receipts, snapshots, and
mutation receipts.
- `Eyes`: evidence ingress guardian. `epiphany-core::eyes_gateway` names
@ -25,7 +25,7 @@ Epiphany has the first typed skeleton for the organ boundaries:
- `Face`: public person-shaped surface. It receives projected context and writes
natural prose only.
- `Hands`: action organ by doctrine, but not yet backed by a dedicated CultNet
contract family parallel to Body/Eyes/Mind.
contract family parallel to Substrate Gate/Eyes/Mind.
- `Soul`: verification organ by doctrine, but not yet backed by a dedicated
CultNet contract family parallel to Eyes.
- `Life`: continuity organ by doctrine, heartbeat, reorientation, and handoff
@ -82,7 +82,7 @@ as Void's `rejectLeakyMemorySurface`.
### 1. Contract Names Exist Before Contract Execution
Mind, Body, and Eyes have type constants, CultMesh policy documents, and
Mind, Substrate Gate, and Eyes have type constants, CultMesh policy documents, and
runtime-spine advertisement. They are not yet the mandatory runtime path.
Workers can still be launched and accepted through older bridge/service flows
without every substrate touch, evidence claim, or state mutation passing through
@ -90,14 +90,14 @@ a real receipt chain.
Required correction: turn contract families into executable gates.
### 2. Body/Eyes/Mind Are Correctly Split But Not Yet Chained
### 2. Substrate Gate/Eyes/Mind Are Correctly Split But Not Yet Chained
The desired chain is:
```text
Need fact or action
-> Self routes
-> Body grants scoped substrate access
-> Substrate Gate grants scoped substrate access
-> Eyes packages inspected evidence when truth is needed
-> Imagination projects options or scenes when future/personhood is needed
-> Hands executes bounded action when mutation is needed
@ -124,7 +124,7 @@ Runtime-spine advertises those contracts and CultMesh persists Verse-scoped
policy documents for each. The first executable pressure slice is landed:
worker launch packets now carry an `EpiphanyLaunchOrganContract` derived from
authority scope, launch document kind, and output contract id. That contract
carries the full standing organ dependency matrix plus required Mind, Body,
carries the full standing organ dependency matrix plus required Mind, Substrate Gate,
Eyes, Hands, Soul, and Life receipt document types. Role/reorient acceptance
now refuses completed runtime-spine findings if the original launch request is
missing, document-kind mismatched, or lacks a dependency/receipt contract that
@ -198,7 +198,7 @@ repo-contained dependency body.
- Ran the previously blocked focused surface through:
- `cargo test --manifest-path .\epiphany-core\Cargo.toml --lib face_turn`
- `cargo test --manifest-path .\epiphany-core\Cargo.toml --lib mind_gateway`
- `cargo test --manifest-path .\epiphany-core\Cargo.toml --lib body_gateway`
- `cargo test --manifest-path .\epiphany-core\Cargo.toml --lib substrate_gate`
- `cargo test --manifest-path .\epiphany-core\Cargo.toml --lib eyes_gateway`
- `cargo test --manifest-path .\epiphany-core\Cargo.toml --lib cultmesh_integration`
- `cargo test --manifest-path .\epiphany-core\Cargo.toml --lib runtime_spine::tests::runtime_spine_emits_cultnet_hello_frame`
@ -213,9 +213,9 @@ without local path superstition. Verification: `cargo test --manifest-path
Goal: no worker output, repo touch, or evidence claim bypasses the appropriate
organ.
- Implement Body access request/review/grant/refusal documents in CultCache.
- Implement Substrate Gate access request/review/grant/refusal documents in CultCache.
- Route retrieval, indexing, file edit, shell command, Rider, and Unity bridge
operations through Body access receipts.
operations through Substrate Gate access receipts.
- Implement Eyes evidence request/review/packet/refusal documents in CultCache.
- Require Eyes packets for claims promoted into Mind state proposals when the
claim depends on inspected source.
@ -252,7 +252,7 @@ Status: first contract catalog slice landed.
- `epiphany.life.stale_turn_repair`
Definition of done: action, verification, and continuity have the same typed
contract dignity as Mind/Body/Eyes, and every worker launch carries the
contract dignity as Mind/Substrate Gate/Eyes, and every worker launch carries the
organ-dependency/receipt contract that later gates can enforce. Verification:
`cargo test --manifest-path .\epiphany-core\Cargo.toml --lib` and `cargo run
--manifest-path .\epiphany-core\Cargo.toml --bin epiphany-cultmesh-smoke` pass
@ -277,7 +277,7 @@ Goal: Face becomes a living public organ without stealing authority.
- human pronoun guidance
- channel label/permission policy
- media attachment awareness
- recent home-repo activity from Body-gated reads
- recent home-repo activity from Substrate-Gate-scoped reads
- Make projection model-owned and read-only, with model output receipts.
- Strengthen projection leakage rejection: no schema words, repo paths, prompt
construction language, grants/jurisdictions slurry, or direct action syntax.
@ -303,11 +303,11 @@ comfort tunnels.
and allowed authority.
- Landed: role, generic, and reorient worker launch packets declare authority
scope, launch document kind, output contract id, owner organ, full organ
dependency matrix, and required Body/Eyes/Hands/Soul/Life/Mind receipts.
dependency matrix, and required Substrate Gate/Eyes/Hands/Soul/Life/Mind receipts.
- Landed: role/reorient acceptance refuses completed runtime-spine findings
when the original worker launch request is missing, mismatched by document
kind, or lacks a dependency/receipt contract requiring Mind review.
- Next: make acceptance refuse results missing required Body/Eyes/Hands/Soul/Life
- Next: make acceptance refuse results missing required Substrate Gate/Eyes/Hands/Soul/Life
receipts for their claimed effect type once those receipt documents are
produced by the live runtime.
- Make Aquarium read the contract catalog and available receipts instead of
@ -342,7 +342,7 @@ Goal: make the organism visible without making the UI a second truth.
- Display receipt chains per turn.
- Display Face prompt packet boundaries: deterministic evidence, Imagination
projection, Face natural turn, Mind interpretation.
- Display Body grants, Eyes packets, Hands actions, Soul verdicts, Life
- Display Substrate Gate grants, Eyes packets, Hands actions, Soul verdicts, Life
continuity, and Mind state commits.
Definition of done: a human can ask "why did you touch that file / say that /
@ -355,7 +355,7 @@ coherent authority graph:
```text
Self routes.
Body grants substrate access.
Substrate Gate grants substrate access.
Eyes certifies looked-at evidence.
Imagination projects possible scenes and futures.
Face speaks as a person.

View file

@ -26,7 +26,7 @@ The shared conclusion is that repo personality should combine three projections:
3. **Memory doctrine:** how the repo preserves intention, evidence, and identity.
Only after those three are scored should Epiphany modulate Self, Face,
Imagination, Eyes, Body, Hands, Soul, and Life.
Imagination, Eyes, Proprioception, Hands, Soul, and Life.
## Source Families
@ -288,7 +288,7 @@ Projection:
- Determines how aggressively Eyes must research existing systems, official
docs, live runtime state, and repo-local source before invention.
### Body
### Proprioception
Primary inputs:
@ -316,7 +316,7 @@ Primary inputs:
Projection:
- Determines slice size, willingness to edit, need for queue state, and how much
Hands must wait for Body/Soul before cutting.
Hands must wait for Proprioception/Soul before cutting.
### Soul
@ -482,7 +482,7 @@ the machine has repeatable bones.
- Do not store repo facts inside role personality memory.
- Do not let high aesthetic appetite lower verification gates.
- Do not let high experimental heat excuse churn without receipts.
- Do not let high production pressure make Hands bypass Body or Soul.
- Do not let high production pressure make Hands bypass Proprioception or Soul.
- Treat low-confidence inferred personality as a candidate, not a soul brand.
## Landed First Slice
@ -527,7 +527,7 @@ personality initialization record. After Self accepts the initial role-memory
pressure, personality is allowed to drift through heartbeat, mood, rumination,
sleep consolidation, lived evidence, and reviewed `selfPatch` mutations. Startup
must not rerun this specialist merely because terrain changed or the repo
reopened; major terrain surprises should route to Eyes/Body/Self as normal
reopened; major terrain surprises should route to Eyes/Proprioception/Self as normal
modeling or review work, not as a personality reset.
## Repo Memory Distillation
@ -546,7 +546,7 @@ distiller brief for each standing organ:
- Face receives public-surface, Aquarium, Discord, voice, and sealed-thought boundary memory.
- Imagination receives roadmap, backlog, objective-shaping, dream, and rejected-path memory.
- Eyes receives research, prior-art, canonical algorithm, vendor/API, and invention-avoidance memory.
- Body receives architecture, graph, control/data-flow, invariant, and checkpoint memory.
- Proprioception receives architecture, graph, control/data-flow, invariant, and checkpoint memory.
- Hands receives implementation conventions, build/edit constraints, dependency habits, and common patch traps.
- Soul receives verification commands, evidence standards, invariant checks, and truth-refusal memory.
- Life receives compaction, scratch, checkpoint, heartbeat, sleep, and continuity memory.

View file

@ -0,0 +1,61 @@
# Substrate Gate CultNet Contracts
Objective: make the Substrate Gate the repository access protocol. Body is the
substrate itself, not a gatekeeper persona and not the modeling organ. Organs
may request reads, indexing, commands, edits, and bridge operations, but the
Substrate Gate decides the scoped access to the repo.
## Authority Map
- Owner: the Substrate Gate protocol owns repository access grants and refusals.
- Inputs: typed repo access requests, workspace identity, requested paths,
requested operations, command/bridge intent, current repo policy, coordinator
authority, operator approvals, and relevant safety/evidence context.
- Outputs: Substrate Gate access reviews, access grant receipts, access refusal
receipts, repo snapshot receipts, and repo mutation receipts.
- Derived state: retrieved snippets, search hits, index manifests, diffs, build
logs, Unity/Rider bridge artifacts, and source maps are evidence projections,
not permission to touch more substrate.
- Forbidden writers/readers: Hands, Eyes, Face, public Verse ingress, raw worker
launches, compatibility JSON-RPC routes, and bridge tools must not directly
read, index, execute against, or mutate the repo without a scoped Substrate
Gate grant.
- Shared path: source reads, semantic indexing, file edits, command execution,
and editor/runtime bridge operations should all be expressible as
Substrate-Gate-scoped repo access requests with receipts.
- Deletion line: worker launch `authority_scope` is not repo access authority.
It may describe role/task scope, but the Substrate Gate must grant substrate
access.
## Contract Families
- `epiphany.substrate_gate.repo_access_request`: request for scoped repository
access.
- `epiphany.substrate_gate.repo_access_review`: Substrate Gate decision and scope
explanation.
- `epiphany.substrate_gate.repo_access_grant_receipt`: proof of scoped access.
- `epiphany.substrate_gate.repo_access_refusal_receipt`: proof of refusal.
- `epiphany.substrate_gate.repo_snapshot_receipt`: proof of source
inspection/indexing performed under Substrate Gate access.
- `epiphany.substrate_gate.repo_mutation_receipt`: proof that mutation or
repo-affecting command execution had a prior Substrate Gate grant.
## Verse Boundary
Substrate Gate access contracts live in `epiphany-internal`. Operator-safe
projections may appear in `gamecult-local` after review, but raw repo access
requests, private paths, command cargo, diffs, and mutation receipts stay
internal unless another explicit export policy says otherwise.
`epiphany-global` never gains repository access authority.
Mind and the Substrate Gate are neighboring protocols, not aliases. The
Substrate Gate decides whether the machine may touch the repo. Mind decides
whether resulting thought or evidence mutates persistent state.
Imagination can project Body substrate facts into a Face scene only after those facts have
entered through Substrate-Gate-scoped access. A beautiful scene is not a repo
access grant. Eyes is the next gate after access: a Substrate Gate grant allows
looking, but only Eyes can turn looked-at material into a citable evidence
packet. Proprioception may update the machine's internal body model only from
source-grounded material that has passed through the appropriate access and
evidence path.

View file

@ -15,7 +15,7 @@ Convert useful doctrine, durable lessons, and repo-local planning/modeling surfa
- Face / public surface
- Imagination / planning and future shape
- Eyes / research and existing-work scout
- Body / modeling, graph, checkpoint, source anatomy
- Proprioception / modeling, graph, checkpoint, source anatomy
- Hands / implementation actuator
- Soul / verification, evidence, objective truth
- Life / continuity, CRRC, compaction, reorientation
@ -164,7 +164,7 @@ Good memories for Eyes sound like:
- "Semantic retrieval is an orientation tool; exact patch work still needs exact source reads."
- "Known libraries, vendor behavior, and official examples should beat homemade machinery unless local constraints prove otherwise."
### Body / Modeling
### Proprioception / Modeling
Look for lessons about architecture maps, data flow, graph shape, domain seams, typed contracts, source anatomy, and checkpoint readiness.
@ -177,7 +177,7 @@ Likely sources:
- LunaMosaic's scene graph / region contract / manifest direction.
- VoidBot's split runtime organs.
Good memories for Body sound like:
Good memories for Proprioception sound like:
- "A model is ready when it names ownership boundaries, inputs, outputs, invariants, and acceptance evidence."
- "Do not centralize app-domain state merely because a shared mechanism touches it."
@ -397,7 +397,7 @@ Write these files:
- which repo roadmaps became roadmap streams
- which backlog items and objective drafts are low-confidence or stale
- which source maps were strong enough to become graph/model candidates
- what should be reviewed by Imagination, Body, Soul, or the human before apply
- what should be reviewed by Imagination, Proprioception, Soul, or the human before apply
4. `role-selfpatches/`
@ -416,13 +416,13 @@ Write these files:
```json
{
"agentId": "epiphany.body",
"reason": "Distilled adjacent pseudo-Epiphany modeling doctrine into Body's future graph/checkpoint judgment.",
"agentId": "epiphany.proprioception",
"reason": "Distilled adjacent pseudo-Epiphany modeling doctrine into Proprioception's future graph/checkpoint judgment.",
"evidenceIds": ["pseudo-repo-memory-migration-2026-05-05"],
"semanticMemories": [
{
"memoryId": "mem-body-source-owned-boundaries",
"summary": "Shared mechanisms do not own app-domain truth; Body should model provider/auth/runtime seams by naming ownership, inputs, outputs, invariants, and acceptance evidence before Hands edits.",
"summary": "Shared mechanisms do not own app-domain truth; Proprioception should model provider/auth/runtime seams by naming ownership, inputs, outputs, invariants, and acceptance evidence before Hands edits.",
"salience": 0.88,
"confidence": 0.84
}