Delete aggregate role-memory authority

This commit is contained in:
Meta Vens 2026-08-23 04:02:50 +02:00
commit 39dd9fdba9
58 changed files with 294 additions and 6727 deletions

View file

@ -10,7 +10,6 @@ contract docs.
- `epiphany-anatomy.md`: current organ/sub-agent/substrate/protocol split.
- `fresh-workspace-handoff.md`: compact re-entry orientation and current live state.
- `epiphany-current-algorithmic-map.md`: broad source-grounded machine map.
- `codex-starvation-and-cultnet-liberation-plan.md`: active foundation campaign.
- `codex-auth-spine-inventory.md`: retained Codex auth/model transport keeper list.
- `epiphany-fork-implementation-plan.md`: current campaign plan.
- `epiphany-safety-architecture.md`: capability, autonomy, and governance boundaries.
@ -27,15 +26,13 @@ contract docs.
## Active Design References
- `epiphany-memory-graph-unified-plan.md`
- `epiphany-cultmesh-dreaming-roadmap.md`
- `perfect-machine-audit-roadmap.md`
- `voidbot-routine-adoption-plan.md`
## Archive
- `archive/README.md`: quarantined historical ledgers, closed migrations,
optional bridge plans, superseded cache splits, and one-off sandbox prompts.
superseded memory/dreaming/routine campaigns, optional bridge plans, cache
splits, and one-off sandbox prompts.
Cleanup rule: if a current invariant is found only in the archive, distill it
into a canonical doc or active design reference first. Do not patch the same

View file

@ -1,6 +1,6 @@
# Continuity CultNet Contracts
Objective: make Continuity the named protocol surface for compaction, sleep,
Objective: make Continuity the named protocol surface for compaction,
recovery, handoff, and stale-turn repair. These flows need their own receipts
instead of hiding in scratch notes or hopeful transcript memory.
@ -8,17 +8,17 @@ instead of hiding in scratch notes or hopeful transcript memory.
- Owner: the Continuity protocol owns continuity across rupture.
- Inputs: continuity packets, context pressure, compaction checkpoints,
heartbeat/sleep pressure, stale active turns, recovery context, handoff
stale active turns, recovery context, handoff
surfaces, and Mind state context.
- Outputs: compaction checkpoints, sleep distillation receipts, recovery
- Outputs: compaction checkpoints, recovery
receipts, stale-turn repair receipts, and continuity refusal receipts.
- Derived state: handoff summaries, scratch preservation, sleep residue, and
- Derived state: handoff summaries, scratch preservation, and
recovery notes are continuity receipts. They are not durable Mind state until
Mind admits them.
- Forbidden writers: raw workers, Persona, Hands, Eyes, Soul, Self, compatibility
routes, and background loops must not silently rewrite continuity state or
pretend stale work completed cleanly.
- Shared path: compaction prep, sleep distillation, handoff, wake/reorient, and
- Shared path: compaction prep, handoff, wake/reorient, and
stale-turn repair should share Continuity packet/review semantics.
- Deletion line: transcript survival is not continuity. Rehydration is not adoption.
"It was probably fine" is not a recovery receipt.
@ -27,7 +27,6 @@ instead of hiding in scratch notes or hopeful transcript memory.
- `epiphany.continuity.packet`: request or packet for continuity handling.
- `epiphany.continuity.compaction_checkpoint`: proof of pre-rupture preservation.
- `epiphany.continuity.sleep_distillation`: proof of sleep/rumination distillation.
- `epiphany.continuity.recovery_receipt`: proof of wake/recovery state.
- `epiphany.continuity.stale_turn_repair`: proof of abandoned-turn repair.
- `epiphany.continuity.refusal_receipt`: proof that Continuity refused to trust

View file

@ -20,10 +20,10 @@ Only thinking lanes get embodiment titles.
actuators.
- `Soul`: verification, invariants, ethics, falsification, and promise-keeping.
Each embodied sub-agent may have lean work-organ state in `state/agents.msgpack`,
may be represented as a heartbeat participant, and may request reviewed
`selfPatch` changes to its own lane memory. Persona may additionally project or
adopt portable `Persona` state because public personhood is part of its job.
Embodied lanes reason from sealed typed Mind projections and return closed
family-specific decisions. Heartbeat participants are scheduling projections,
not personality or memory owners. Persona memory and social effects are keyed
Mind documents admitted by the Persona invariant owner.
## Not Sub-Agents
@ -33,8 +33,9 @@ embodiment titles, role-memory diaries, or Persona state.
- `Body`: the substrate Epiphany acts through and senses: repository, tools,
runtime, prompts, logs, state files, permissions, interfaces, hosted systems,
and physical/editor/runtime bridges.
- `Mind`: persistent state and durable steering context: memory, maps, goals,
doctrine, evidence, state patches, accepted receipts, and state admission.
- `Mind`: keyed persistent state and durable steering context: objectives,
evidence, Modeling documents, Persona state, consequences, audits, decisions,
reasoning contexts, and exact commit receipts.
- `Continuity`: protocol machinery for compaction, sleep, recovery,
stale-turn repair, reorientation receipts, handoff preservation, and
"what survived rupture?" accounting.
@ -47,8 +48,7 @@ embodiment titles, role-memory diaries, or Persona state.
- Mind admits durable state; it is not a chatty lane.
- Mind may invoke a bounded, stateless admission-review procedure when a typed
proposal requires model judgment. That procedure serves Mind; it is not an
embodied sub-agent, has no heartbeat or lane memory, cannot `roleAccept` or
`selfPatch`, and its immutable judgment has no consequence until Mind replays
embodied sub-agent, has no heartbeat or lane memory, and its immutable judgment has no consequence until Mind replays
the causal chain and admits it.
- Continuity preserves/rebuilds context across rupture; it is protocol
machinery, not an embodied identity.
@ -56,7 +56,8 @@ embodiment titles, role-memory diaries, or Persona state.
files, verify truth, or admit state.
- Reorientation is a bounded Continuity worker/procedure launched from CRRC,
not an embodied sub-agent.
- `roleAccept` and `selfPatch` are for embodied sub-agents only.
- Embodied sub-agents emit closed family decisions. No generic role acceptance
or self-patch mutation mouth exists.
- Continuity state changes should appear as typed continuity packets, recovery
receipts, compaction checkpoints, stale-turn repairs, or refusals.

View file

@ -153,7 +153,7 @@ Exit evidence:
- Finish Idunn-owned service installation/audit aftercare without moving
elevation authority into Self or wrappers.
- Prove cooldown-after-completion, no overlapping lane heartbeat, idle sleep,
rumination, and recovery across restart.
explicit-pressure-only wakeup, and recovery across restart.
- Ensure scheduler and liveness receipts remain separate from project state.
Exit evidence:

View file

@ -1,68 +1,44 @@
# 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.
Mind is the sole durable decision-bearing store. Its authority is the keyed
CultCache document set and the exact commit receipts that admit changes, not a
generic network mutation gateway.
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.
## Authority map
Imagination is the neighboring Projector for Persona. It may compose a lived scene
from state, Body substrate facts, social pressure, and organ dependencies, but it does not
interpret side effects or admit state.
- Owner: concrete family invariant owners construct `MindMutation` plans;
CultCache batch CAS commits them atomically.
- Inputs: a sealed decision context, exact strong-read envelopes, and complete
family-specific inserts or replacements.
- Outputs: keyed Mind document versions and one
`EpiphanyMindCommitReceipt` written in the same transaction.
- Derived state: `EpiphanyMindView`, RepoModel views, current-work projections,
CultMesh publications, and Eve surfaces are deterministic read-only views.
- Forbidden writers: models, role lanes, events, timestamps, provider results,
generic patches, and CultMesh consumers cannot mutate Mind directly.
- Shared path: every model-authored durable decision enters through its concrete
family admission owner. Deterministic operator and routing actions retain
their own typed provenance and do not impersonate model reasoning.
- Deletion line: no persisted thread aggregate, global revision, generic Mind
gateway review, state-effect proposal, `statePatch`, or `selfPatch` path may
own behavior.
## Authority Map
## Published contracts
- Owner: Mind owns the decision to mutate persistent Epiphany state.
- Inputs: typed worker results, Persona 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, Persona 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, Persona 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.
CultMesh may publish sealed reasoning bases, exact decision contexts, structured
terminal decisions or failures, and exact Mind commit receipts for inspection.
Those projections are read-only. Network visibility cannot create a mutation
mouth or reconstruct authority from a digest-only summary.
## Verse Boundary
## Merge law
CultMesh simplifies the boundary by making Verse placement part of the contract:
- disjoint document identities merge;
- byte-identical replay returns the original receipt;
- divergent writes to one identity conflict;
- changed strong reads refuse the whole mutation;
- observational-only changes do not block an otherwise disjoint commit;
- model output is never silently rebased onto newer strong state.
- `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,
Persona 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`.
The audit question is always recoverable without a transcript: what exact typed
projection and governed observations did the agent reason from when it made
this decision?

View file

@ -2,12 +2,11 @@
## Authority
One workstation-local `epiphany-memory-semantic-projector` process owns semantic
projection execution for both canonical partitions in one Epiphany swarm:
One `epiphany-memory-semantic-projector` process owns derived semantic indexing
for the Modeling projection of one Epiphany runtime:
- Mind input: `state/agents.msgpack`
- Modeling input: the configured runtime-spine CultCache store
- Derived index: physically separated Mind and Modeling Qdrant collections
- Modeling input: the configured runtime Mind CultCache store
- Derived index: the Modeling Qdrant collection
- Derived sight: provider-authored CultMesh health and heartbeat events
Canonical CultCache admission owns projection obligations. Idunn owns process
@ -16,10 +15,9 @@ claim-bound Qdrant mutation and terminal evidence. Query admission alone proves
semantic readiness. Qdrant, Ollama, health, heartbeat, Eve, and swarm overview
are not state authority.
The process must remain beside the canonical stores. Yggdrasil may host Ollama
embedding work over WireGuard, but moving only the projector to Yggdrasil would
split local store authority. Do not install a second projector on Yggdrasil or
one process per partition.
The process must remain beside its canonical runtime store. Yggdrasil may host
Ollama embedding work over WireGuard. Do not install a second projector for the
same runtime store.
## Package one source generation
@ -58,11 +56,11 @@ timeouts retain their typed configuration defaults unless deliberately changed.
## Preflight
1. Confirm both canonical stores exist and describe the same immutable swarm.
1. Confirm the runtime Mind store exists and carries the admitted runtime/swarm identity.
2. Confirm Qdrant is reachable from the workstation and its collection metadata
matches the configured embedding dimensions.
3. Confirm Ollama is reachable and the configured embedding model is loaded.
4. Confirm no projector process already owns the canonical store pair. The
4. Confirm no projector process already owns the canonical runtime store. The
binary also enforces this with a host OS singleton. On Windows this is a
`Global\\` named mutex shared by service and interactive sessions; failure to
create or open it fails closed before a provider incarnation exists.
@ -72,7 +70,7 @@ timeouts retain their typed configuration defaults unless deliberately changed.
Current observation on 2026-07-15: the workstation's retired
`voidbot-qdrant` container is intentionally stopped after the VoidBot cutover.
The authoritative Yggdrasil Qdrant is physically shared and contains the
Epiphany Mind and Modeling collections. The ops tunnel exposes its loopback
Epiphany Modeling collection. The ops tunnel exposes its loopback
REST/gRPC ports locally as `16333`/`16334`; do not restart the retired node.
## Publish the typed service policy
@ -87,7 +85,6 @@ $supervisor = Join-Path $releaseRoot 'epiphany-daemon-supervisor.exe'
--runtime-id epiphany-local `
--release-id $releaseId `
--release-witness-sha256 $releaseDigest `
--agent-store .\state\agents.msgpack `
--runtime-store .\state\runtime-spine.msgpack `
--qdrant-url http://127.0.0.1:16333 `
--ollama-base-url http://10.77.0.1:11435 `
@ -97,8 +94,8 @@ $supervisor = Join-Path $releaseRoot 'epiphany-daemon-supervisor.exe'
This command writes the fixed
`epiphany-memory-semantic-projector-service` managed-service policy with
`restartMode=always`. Its generated child command contains both canonical
stores. The projector executable is resolved from the authenticated
`restartMode=always`. Its generated child command contains the canonical
runtime store. The projector executable is resolved from the authenticated
`semantic-projector` role in the pinned release witness. Caller-supplied executable paths,
service IDs, restart modes, arbitrary child arguments, and finite iteration
limits do not own this service shape. The generic managed-service writer
@ -117,7 +114,7 @@ The projector resolves that exact receipt from the local Verse and rechecks its
binding to the current reserved policy before constructing its service body or
publishing a pulse or heartbeat. A launch receipt proves process creation; it
does not claim semantic readiness. The first heartbeat comes later, after the
projector holds the OS singleton and validates both canonical inputs.
projector holds the OS singleton and validates the canonical Modeling input.
## Install the pinned after-login reconciler
@ -154,10 +151,9 @@ projector resumes its own recovered claim on the next pulse.
- Read the fixed managed-service policy and latest lifecycle receipt.
- Read the projector heartbeat for its current provider incarnation.
- Read both named semantic-health projections.
- Run a Mind and Modeling semantic query and confirm the query gate reports
semantic ranking only when each newest exact obligation/success chain is
authenticated.
- Read the Modeling semantic-health projection.
- Run a Modeling semantic query and confirm the query gate reports semantic
ranking only when the newest exact obligation/success chain is authenticated.
- Stop the process once, let Idunn restart it, and verify a newer provider
heartbeat names the startup lifecycle receipt. Do not use command exit zero as
readiness.
@ -219,14 +215,12 @@ BM25, which is a failed deployment proof rather than semantic readiness:
$env:EPIPHANY_QDRANT_URL='http://127.0.0.1:16333'
$env:EPIPHANY_OLLAMA_BASE_URL='http://10.77.0.1:11435'
$semantic=Join-Path $releaseRoot 'epiphany-memory-semantic.exe'
& $semantic context --agent-store .\state\agents.msgpack --partition mind `
--text 'current Epiphany doctrine and memory' --query-id reboot-proof-mind --budget 8
& $semantic context --runtime-store .\state\runtime-spine.msgpack --partition modeling `
& $semantic context --runtime-store .\state\runtime-spine.msgpack `
--text 'current repository architecture and deployment frontier' `
--query-id reboot-proof-modeling --budget 8
```
Both results must report `semantic projection ranked ... canonical ...
The result must report `semantic projection ranked ... canonical ...
candidates` and must not report `semantic projection unavailable` or BM25
fallback. That query admission is the readiness proof. A Running task, open TCP
port, Qdrant collection listing, provider heartbeat, or health projection is