Port Face membranes and Mind state gateway

This commit is contained in:
Meta Vens 2026-05-24 12:39:08 +01:00
commit 232d33a7f7
15 changed files with 1658 additions and 13 deletions

View file

@ -1371,6 +1371,33 @@ voice/WebRTC, stream overlays, native CLIs, or other CultNet clients; the
project schedules modeling, research, verification, rumination, and proposed
actions without requiring the human to hand over a complete architecture brief.
The important Face lesson is now sharper than "better public speech." Face is
special because it needs to think narratively: a Projector turns typed state,
repo-body activity, social pressure, and pending mentions into lived context
before Face thinks; Face writes natural prose only; an Interpreter translates
that natural thought into durable memory, draft, public SAY, route, or silence.
Epiphany has the first native slice of that membrane in `epiphany-core`:
`face_turn.rs` defines Projector/Face/Interpreter prompt contracts, heartbeat
state carries typed pending mentions, and pending Face mentions select a
`face_turn` without letting Face side effects execute themselves.
Mind is the larger version of the same boundary. The state is the Mind:
sub-agent outputs are thoughts, not authority. Role/reorient findings and their
`statePatch` / `selfPatch` / evidence / observation / receipt / scratch /
checkpoint effects must route through Mind review before they become durable
state. The first native `mind_gateway.rs` slice reviews role and reorientation
acceptance effects, and `epiphany-codex-bridge::mutation` now requires that
review before building state updates.
`notes/mind-cultnet-contracts.md` is the new contract map for making Mind the
persistent state guardian over CultNet/CultMesh. The code surface now names
`epiphany.mind.thought`, `epiphany.mind.state_effect_proposal`,
`epiphany.mind.gateway_review`, `epiphany.mind.state_commit_receipt`,
`epiphany.mind.state_rejection_receipt`, and
`epiphany.mind.verse_adoption_receipt`; runtime-spine advertises those
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.
## Not Yet
- automatic watcher-driven semantic invalidation

View file

@ -0,0 +1,59 @@
# Mind CultNet Contracts
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.
## Authority Map
- Owner: Mind owns the decision to mutate persistent Epiphany state.
- Inputs: typed worker results, Face Interpreter intents, current state context,
runtime/job provenance, Verse ingress receipts, operator-approved intents, and
relevant verification evidence.
- Outputs: Mind gateway reviews, state commit receipts, state rejection
receipts, and Verse adoption receipts.
- Derived state: role findings, reorient findings, Face side-effect intents,
public dreams, local-area findings, `statePatch`, `selfPatch`, evidence,
scratch, checkpoints, objectives, and graph edits are proposal-only until Mind
accepts them.
- Forbidden writers: role acceptance, reorient acceptance, Face Interpreter,
public Verse ingress, local-area Verse ingress, raw worker result ingestion,
runtime job completion, and compatibility JSON-RPC routes must not directly
decide durable state mutation.
- Shared path: every durable state effect goes through a Mind state-effect
proposal and receives a Mind review plus commit or rejection receipt.
- Deletion line: old contract language that said "coordinator accepts memory
mutations" is demoted. Coordinator may schedule, route, and carry intent, but
Mind owns persistent-state admission.
## Verse Boundary
CultMesh simplifies the boundary by making Verse placement part of the contract:
- `epiphany-internal`: private thoughts, state-effect proposals, Mind reviews,
commit receipts, rejection receipts, runtime facts, heartbeat state, role
dossiers, and other private organ state.
- `gamecult-local`: trusted GameCult operator-safe sharing, non-secret status,
reviewable findings, and receipts. It does not carry raw worker thought,
private memory, or direct state mutation authority.
- `epiphany-global`: public thought weather: dreams, questions, hypotheses,
Face posts, and adoption receipts. Nothing from this Verse mutates local
memory, planning, doctrine, governance, or project truth without a reviewed
local adoption receipt.
## Contract Families
- `epiphany.mind.thought`: sub-agent output submitted as thought, not durable
state authority.
- `epiphany.mind.state_effect_proposal`: proposed durable mutation. Mind
accepts, refuses, or holds it.
- `epiphany.mind.gateway_review`: durable receipt explaining the Mind route.
- `epiphany.mind.state_commit_receipt`: proof that Mind admitted an effect into
persistent state.
- `epiphany.mind.state_rejection_receipt`: proof that Mind refused or held an
effect without mutating state.
- `epiphany.mind.verse_adoption_receipt`: local adoption receipt for public or
foreign Verse material.
The current native surfaces are in `epiphany-core::mind_gateway` and the
Verse-scoped policy documents are in `epiphany-core::cultmesh_integration`.