Reconcile concurrent Mind architecture records

This commit is contained in:
Meta Vens 2026-08-21 20:31:17 +02:00
commit f5edfc9d58
5 changed files with 292 additions and 65 deletions

View file

@ -1,7 +1,8 @@
# Epiphany current algorithmic map
Updated: 2026-08-18
Latest implementation cut: `d3300bba` on `codex/epiphany-shakedown-live`
Updated: 2026-08-21
Latest committed implementation cut: `bb823c54` on `codex/epiphany-shakedown-live`
Current worktree cut: canonical documentation and evidence reconciliation only
This document describes the live machine. Historical cuts, rejected paths, and
proof chronology belong in git, `state/ledgers.msgpack`, and bounded smoke
@ -30,6 +31,8 @@ interface authority.
| `current_work.rs` | keyed Mind view and exact runtime request/job/result/decision families | pure family scheduling and continuation projections | Events, timestamps, role lanes, and thread provenance cannot create or suppress work. |
| coordinator policy/status | current-work projections, Resident pressure, and exact runtime receipts | one prioritized recommendation and read-only operator views | Coordinator presence is derived; no mutable coordinator head exists. |
| runtime worker attempt owner | immutable launch, exact process claim, typed result, job result, archival evidence | one terminal attempt authority | Scheduling, process liveness, and semantic admission remain distinct authorities. |
| OpenAI Responses schema projector | full native typed output schema | one provider-legal strict generation schema | Provider formatting preserves useful supported constraints but never replaces native decoding or Mind admission. |
| model-pass terminal owner | sealed reasoning basis/context and typed failure class | exact transport closure plus `EpiphanyModelPassFailure` and terminal session/event in one batch CAS | The caller cannot nominate a job/session; the context-derived binding closes role, reorient, and Persona failures without granting generic transport results decision authority. |
| Substrate Gate | exact worker/job authority and requested operation | scoped grant or refusal | Access permission does not admit Mind state. |
| Eyes | explicit external-evidence obligation plus governed source receipts | typed evidence packet and Mind observations | Eyes gathers outside evidence; it does not gate Modeling over the Body. |
| Modeling | Body basis, keyed RepoModel view, verified consequences, and explicit proposals | typed graph/frontier mutations | Modeling processes the Body directly and owns no external-source permission. |
@ -38,6 +41,14 @@ interface authority.
| Persona | unread typed social/relationship state plus exact Persona projection | typed effects, speech intent, and consequence receipts | Persona work cannot block unrelated Hands or Modeling documents. |
| CultMesh/Eve | typed provider-owned documents and deterministic views | private/local/public projections | Visibility and rendering never create authority. |
External lifecycle boundary: Idunn remains available when Epiphany is missing,
failed, or braked. Epiphany's swarm brake is an input only to an Idunn
transaction that changes Epiphany's deployed body; it cannot gate Idunn startup,
self-bootstrap, observation, same-release recovery, or another target's
lifecycle. The persisted Epiphany brake survives that recovery and continues to
block cognition/consequence ingress. Treating the target brake as a deployer
prerequisite reverses the owner and creates an unrecoverable cycle.
## Canonical Mind
The runtime Mind `.cc` is the sole decision-bearing store. Other `.cc` files
@ -113,6 +124,36 @@ planning patch is gone. Exact `1c9aafd8` seals one decision context before model
frontier-Planning failure terminalization and binds both the typed faculty
failure and generic job result to it. Shared runtime validators own the
store-backed model/tool refusal matrix used by both execution and sealing.
Exact `553f79d9` gives every role and Persona pass one shared Responses dialect
compiler. The provider sees a closed, generation-useful subset; native typed
decoding still sees the full schema and alone decides whether a terminal
decision can enter Mind. Provider success therefore cannot launder malformed
semantic output.
Exact `a8f3c1f0` makes the authenticated runtime Body route own initial
RepoModel binding. Bootstrap derives the keyed model identity from the admitted
Body observation instead of confusing Git source identity with Body-store
identity, and `initialize_keyed_repo_model` independently refuses a seed whose
runtime, swarm, workspace, or Body-binding digest disagrees with the live
route. The refusal is whole-store byte-identical. Later Modeling decisions
remain bound to their exact observation version and are never rebased.
Exact `bb823c54` adds one shared failure terminal owner after a native
provider refusal exposed split Persona closure. The failure cites the sealed
basis/context and exact model request; runtime derives the exact transport
binding from that context and atomically closes a still-live transport job plus
the exact model session. Role, reorient, and Persona failures use that same
owner; a generic transport result remains physiological and carries no decision
context. Persona re-entry first consults the typed failure, so failure cannot
resurrect inference. Successful Persona turns close only after their effect
document and terminal receipt exist. Runtime execution opening and context
sealing both derive provider requests internally from native requests; the
caller-authored provider-request entrance is deleted. A native negative replay
proves transcript-free audit plus byte-identical runtime/heartbeat restart.
Reorientation's family admission additionally requires the exact canonical
model-pass failure; a generic failed worker result plus context cannot mint a
Continuity failure decision. Exact failure replay includes the terminal time,
and audit/lookup revalidate the failure against its runtime model binding.
## Concurrent Mind mutation
@ -135,6 +176,14 @@ Collection members therefore remain separate CultCache identities. Shared
vectors and mutable global heads are forbidden because they manufacture false
conflict between Persona, Hands, Modeling, and Verification.
The semantic projector applies the same doctrine to derived cache work. Before
acquisition, completion, retention, or retirement, it reconstructs the complete
current Modeling basis from the opening snapshot and requires the supplied
content-addressed obligation to match. Acquisition is full-snapshot CAS, so a
concurrent keyed insert is fenced even though none of the older source
envelopes changed. Semantic cache generations and times remain diagnostic
cargo; they do not establish direction or currentness.
## State-driven work
Coordinator priority is a pure projection:
@ -205,6 +254,16 @@ Semantic vector projection is derived cache work. Readiness is based on exact
projection obligations and receipts; semantic cache state never admits Mind or
routes an agent pass.
For Modeling, each projector pulse assembles the complete current keyed
RepoModel view, authenticates every exact document version through the Mind
commit receipt that owns it, and derives a content-addressed projection work
item from that basis. The work item is not written inside a Mind mutation:
doing so would recreate a singleton conflict domain across disjoint graph
commits. An older bootstrap or concurrent work item remains harmless cache
history and cannot suppress the newly assembled basis. Modeling retention uses
exact basis identity, not the graph-shaped projector DTO's synthetic revision;
that DTO is compatibility-shaped cache cargo only.
## External and social facts
- Repository Body bytes enter through typed observations and exact digests.
@ -231,14 +290,16 @@ same durable records before and after archival.
## Verification and open gates
Accepted through `f8412b69`:
Accepted at the `bb823c54` source boundary:
- every Epiphany core target compiles;
- core library `493/493`;
- OpenAI runtime library `24/24`;
- core library `496/496`;
- OpenAI runtime library `25/25`;
- model-runtime binary `10/10`;
- OpenAI-runtime binary `10/10`.
- Persona service `1/1`.
- tool runtime `14/14`, with the explicitly live immutable-GitHub test ignored.
- release construction `21/21`.
- all core targets compile; generic role-patch source guards pass.
- authenticated Persona re-entry refuses naked typed input, performs no
external observation or model call, and preserves the exact three-stage
@ -260,9 +321,12 @@ Open before Model Atlas Gate 1 resumes:
2. only then restart Model Atlas Gate 1 from a new
external root.
Historical c011 and partial Gate roots remain read-only. Yggdrasil remains a
public crossing body, not a build host. Operational topology registration and
autonomous scheduling remain forbidden until the capstone passes.
Historical c011 and partial Gate roots remain read-only. The pre-upgrade
Yggdrasil capacity/topology is obsolete; the upgraded host is the intended
swarm body, with deployment preparation owned by a separate task. This source
pass neither mutates that host nor treats its deployment state as capstone
evidence. Operational topology registration and autonomous scheduling remain
forbidden until their owning gates pass.
## Primary source anchors

View file

@ -58,29 +58,35 @@ earned OpenAI-compatible authentication or model-transport capability.
## Active Campaign
### 0. Unify Canonical State Transactions
### 0. Federate Decision-Auditable Mind
Status: complete. `coordinator_state_transaction.rs` is the sole production
writer of `THREAD_STATE_KEY`; ordinary updates, launches, and Mind acceptance
share it, raw storage writers are deleted, and negative source guards prevent a
second owner.
Status: source-complete; exact-package capstone open. The persisted thread head,
global revision transaction, aggregate RepoModel, generic Mind gateway, and
dual readers are deleted. Concrete invariant owners submit exact-envelope
`MindMutation` plans; CultCache batch CAS merges disjoint identities and refuses
same-identity or changed-strong-read conflicts without partial writes.
- Define one transaction owner for canonical state revision changes.
- Make ordinary update, launch, and Mind-witness acceptance call that owner.
- Preserve operation-specific atomic companions: launch runtime envelopes and
acceptance Mind witnesses must commit in the same cache transaction.
- Replace misleading `runtime_spine_store` state writes with an explicit
unified store contract or genuinely separate stores with a typed transaction
coordinator; do not rely on path aliasing by convention.
- Demote raw `thread_state_store` writers to crate-private substrate helpers.
- Preserve the sealed reasoning basis, exact final native/provider request,
governed tool observations, structured terminal decision/failure, and Mind
commit receipt.
- Keep family requests and admission owners concrete; share only pure identity,
continuation, binding-validation, and CAS invariants.
- Derive work from unresolved typed obligations. Events, lanes, timestamps,
thread provenance, and aggregate view digests remain projections only.
- Assemble RepoModel and semantic work from complete keyed document sets.
Fence namespace phantoms at the operation snapshot; do not invent a global
head to make set membership convenient.
Exit evidence:
- one named primitive owns `THREAD_STATE_KEY` writes;
- negative source tests reject direct canonical-state writes elsewhere;
- ordinary update, launch, and acceptance transaction tests pass against the
chosen explicit store contract;
- `EpiphanyCoordinatorService` path names match real ownership.
- concurrent Persona, Hands, Modeling, and Verification writes to disjoint
identities all commit;
- same-key conflict, changed strong reads, and exact replay follow the declared
merge law;
- every model-backed success or failure can be audited to its exact sealed
projection without transcript retention;
- source guards reject persisted thread state, aggregate RepoModel authority,
caller-authored provider storage, and generic Mind mutation mouths.
### 1. Repair Modeling
@ -224,6 +230,29 @@ records, and Mind commit receipts. Worker attempt archival retains the typed
result family instead of reducing it to IDs and a digest. Runtime schema v2
refuses the superseded writable archive shape; there is no reader or migrator.
Exact `553f79d9` closes the provider-schema ownership wound exposed by the
packaged capstone. One shared Responses dialect compiler now serves role and
Persona passes: it removes provider-illegal conditional structure, preserves
supported standard-model constraints, compiles UUID formats into enforced
patterns, and leaves the full native schema as the only admission contract.
The failed package roots remain immutable evidence; no role-specific output
exception was added.
Exact `a8f3c1f0` closes the next packaged falsification at the RepoModel seed
owner. Repository bootstrap had passed immutable Git source identity where the
keyed model contract required the authenticated runtime Body binding. The
bootstrap now derives that value from the admitted Body observation, while the
RepoModel initializer independently validates the complete route before any
envelope is written. A hostile seed refuses byte-identically; no migration or
fallback identity exists.
Exact `bb823c54` closes the two wounds found by that native replay. One
shared model-pass terminal owner atomically binds a typed failure to its sealed
decision context and closes the exact Persona session. Modeling semantic work
is derived from the complete exact keyed RepoModel document-version set plus
the Mind commit receipts that own those versions; it is content-addressed cache
physiology outside Mind mutation CAS, not a singleton projection head.
Cut in this order:
1. **Landed at `79346523`:** replace the aggregate-shaped role reasoning input with one sealed typed
@ -336,8 +365,48 @@ Cut in this order:
post-Research boundaries. Build the exact clean-source package and run the
fresh-store capstone. Only then restart Model Atlas Gate 1 from a new
external root.
21. **Provider schema ownership landed at `553f79d9`:** one shared Responses
dialect compiler serves role and Persona passes. Unsupported conditional
fragments and `uniqueItems` leave provider cargo; supported standard-model
constraints remain; literal-only variants receive explicit types; UUID
formats lower to lexical patterns. Full native decoding remains the only
terminal-decision admission boundary. Three failed packaged roots are
retained as falsification evidence rather than hidden by a family prompt
patch.
22. **RepoModel seed ownership landed at `a8f3c1f0`:** the authenticated
runtime Body route, not Git source identity or caller convention, owns the
keyed model's Body binding. Bootstrap derives it from the admitted
observation and initialization reauthenticates it before writing. The exact
`553f79d9` package proved concurrent Persona plus terminal Modeling cognition,
then correctly exposed the bad seed during admission. Rebuild and replay the
capstone from exact `a8f3c1f0`; do not transplant the prior decision.
23. **Terminality, provider-authorship, and semantic-work cut landed at `bb823c54`:**
a provider or contract failure seals one `EpiphanyModelPassFailure`; its
sealed context, not caller arguments, identifies and atomically closes the
exact model transport job/session. Role, reorient, and Persona failures share
this owner, while generic transport results carry no decision authority.
Provider requests are derived internally from native requests at execution
opening, event recording, and context sealing; the public caller-authored
provider store is deleted. Reorientation failure admission requires the
same canonical model-pass failure rather than a generic failed worker result
plus context. Restart cannot silently infer again. Modeling
semantic projection work is regenerated from exact keyed document versions
and their owning Mind commit receipts. Disjoint Mind commits never replace
a shared semantic head. Each semantic operation reconstructs the complete
current keyed basis from its opening snapshot and uses a full-snapshot fence
where namespace phantoms matter; stale work is identified by exact basis
identity rather than aggregate revision or timestamp order. Focused
concurrency/retention suites and core `496/496` pass. The complete native
workspace/all-target suite also passes; the only ignored test is the
explicitly live immutable-GitHub proof.
24. **Build/run retention is bounded:** the current package path is native on
F: with one shared Cargo target/cache and one exact run root. Any future
containerized run must use exact run labels and remove disposable
containers, copied-source volumes, and writable roots at terminal
settlement. Accepted proof stores remain only when this plan or the handoff
names the invariant they preserve.
Do not preserve the aggregate for compatibility, manufacture a bootstrap
thread, release autonomous scheduling, register topology in `gamecult-ops`,
touch Yggdrasil, reuse historical/partial Gate roots, or treat semantic
readiness as coordinator acceptance.
race the separate Yggdrasil deployment task, reuse historical/partial Gate
roots, or treat semantic readiness as coordinator acceptance.

View file

@ -1,15 +1,16 @@
# Fresh workspace handoff
Updated: 2026-08-18
Updated: 2026-08-21
Branch: `codex/epiphany-shakedown-live`
Latest implementation cut: `d3300bba`
Latest committed implementation cut: `bb823c54`
Current worktree: canonical documentation and evidence reconciliation only
## Orientation
The five-day shakedown and Model Atlas operational Gate 1 are paused. Do not
touch historical c011/proof volumes, reuse partial Gate roots, release
autonomous scheduling, register operational topology in `gamecult-ops`, build
on Yggdrasil, or call the organism deployment-ready.
autonomous scheduling, register operational topology in `gamecult-ops`, race
the separate Yggdrasil deployment task, or call the organism deployment-ready.
Epiphany is a supervised engineering alpha. Historical live proofs remain
valid evidence, but current source has advanced beyond the last packaged c011
@ -90,6 +91,50 @@ The global thread-state authority is gone.
Worker archival now retains the complete typed role/generic result family;
the digest-only archive shape is deleted. Runtime schema v2 refuses the
prior writable archive epoch.
- `553f79d9` makes the OpenAI Responses schema projector one explicit dialect
compiler shared by every model pass. It types literal-only schemas, removes
parent-relative and unsupported conditional validation from provider cargo,
preserves supported type-specific constraints, and lowers decision-bearing
UUID formats to exact lexical patterns. The full native schema remains the
Mind-admission contract; no provider projection can weaken native decoding.
This cut was forced by three preserved packaged falsifications: untyped
literal/parent refinements, rejected `uniqueItems`, and an invalid UUID after
over-stripping provider guidance. No role-specific prompt/schema exception
survives.
- `a8f3c1f0` repairs the Body identity seam exposed only after the first fully
typed packaged Modeling decision. Bootstrap had supplied Git source identity
to the keyed RepoModel's Body-binding field. Bootstrap now uses the admitted
`RepositoryBodyObservationBasis`, and RepoModel initialization independently
refuses any seed that disagrees with the authenticated runtime Body route
before writing a single envelope. The negative test proves the entire store
remains byte-identical.
- Exact `bb823c54` closes the model-pass failure seam exposed by the native
capstone. `EpiphanyModelPassFailure` is one shared typed terminal record over
the sealed basis/context for role, reorient, and Persona cognition. The
terminal owner derives the exact transport session/job from that context,
atomically closes a still-live transport job plus the exact model session,
and prevents generic transport failure from impersonating decision authority.
Restart reuses the terminal record instead of inferring again. Persona success
closes the session only after the effect document and terminal receipt are
durable.
- Reorientation failure admission now requires that same exact
`EpiphanyModelPassFailure`. A generic failed worker result plus a plausible
context can no longer manufacture a Continuity decision.
- Provider request authorship is also cut at the owner. Runtime execution and
decision sealing both derive the provider request internally from the exact
native request. Public model-turn ingress accepts only native requests;
caller-authored provider requests refuse before opening model authority, and
no public provider-request storage function survives.
- Exact `bb823c54` also closes the bootstrap-only semantic work seam.
Modeling projection work is derived on each pulse from the complete exact
keyed RepoModel document-version set and the Mind commit receipts that own
those versions. The cache work item is content-addressed and stays outside
Mind mutation CAS, so unrelated graph commits remain concurrent. Older work
cannot suppress a newly assembled basis. Each projector operation validates
the complete current keyed namespace from its opening snapshot, and
acquisition uses full-snapshot CAS so a concurrent disjoint insert cannot
hide as a phantom. Modeling retention uses exact basis identity rather than
synthetic aggregate generation or timestamp order.
There is no compatibility aggregate, dual reader, bootstrap thread, or
migrator. Thread identifiers may survive only as immutable pass-creation
@ -97,12 +142,17 @@ provenance; they do not own identity, currentness, or conflict.
Verification at this boundary:
- `cargo test --workspace --all-targets --locked -- --test-threads=1` passes natively;
- every Epiphany core target compiles;
- core library `493/493`;
- OpenAI runtime library `24/24`;
- core library `496/496`;
- OpenAI runtime library `25/25`;
- OpenAI Codex spine `12/12`;
- model-runtime binary `10/10`;
- OpenAI-runtime binary `10/10`;
- Persona service `1/1`.
- tool runtime `14/14`, with only the explicitly live immutable-GitHub test
ignored;
- release construction `21/21`.
## Canonical machine now
@ -146,8 +196,9 @@ Transcripts, SSE frames, reasoning deltas, and intermediate prose are optional
and non-authoritative. A retained decision must remain auditable after deleting
them.
Model opening already requires the sealed basis for worker passes and derives
the provider request from the native request. Structured role/reorient results,
Model opening requires the sealed basis for worker passes and derives the
provider request internally from the native request; callers cannot supply a
second provider-shaped truth. Structured role/reorient results,
the three Persona stages, and retained worker/session/Persona authority already
bind and preserve exact decision contexts. Concrete Body, Proposal,
frontier-verdict Modeling, Research, Verification, Planning/PlanMind, and
@ -176,23 +227,57 @@ old-epoch refusal, deterministic current-work re-entry, and Persona replay
without input reformulation or inference. This is source acceptance, not yet a
package/live claim.
An exact clean `d26a99d5` Linux baseline package completed successfully with 27
binaries and release witness
`sha256-55346d97207d5a847317e654256f91378f5d5ee7cac62093539c70413f9d57a3`.
That proves the isolated package machinery and warmed cache, not the final
capstone: the exact final package must be rebuilt from `f8412b69` or its
document-only successor.
Exact clean packages at `55fb4cf8`, `edd664db`, and `1e01c339` preserved the
three provider-boundary falsifications above. Exact clean `553f79d9` then
packaged 27 Linux binaries as release
`sha256-e6c19d2b231a73023772f1162b15dac63bd4c7957a7a1cea82a86c8d75f35ac9`
with witness
`sha256-fbee2857c558bde47f4b422b59fe675362fd1955388b084b3d44a188f8a6c82a`.
Its fresh capstone completed concurrent three-stage Persona cognition and a
terminal Body-Modeling decision after five governed source-tool rounds. Review
then refused before Mind mutation because the seeded RepoModel carried Git
source identity instead of the authenticated Body binding. That failed root is
preserved and is not replay input.
Exact clean `a8f3c1f0` now packages natively on Windows as 27 binaries, release
`sha256-19d40048f46355486e66c2abc766abb277122c552cb121a9161e6e95a471be46`,
witness
`sha256-ee8bf0574b5e7d489adc47f6dca491fe5224c8b3e61b3d2fd8c2e67c36d5f903`,
with `privateStateExposed=false`. Its fresh store projected `launchModeling`
directly from the Body obligation and launched Persona plus Modeling
concurrently. Both provider calls then failed because this task token cannot
reach `chatgpt.com`; no positive decision was fabricated.
That failure found a real architecture gap. Modeling already sealed a typed,
transcript-free failure context, but Persona left its session active. The
Exact `bb823c54` repairs the shared owner. A native negative replay produced
basis `reasoning-basis-sha256:d31179fe...`, context
`decision-context-sha256:a89ba921...`, and model-pass failure `dd058f3f...`;
the Persona session is `Completed`, `transcriptRequired=false`, and restart
left runtime SHA-256 `C7723AD7...` plus heartbeat SHA-256 `2996AAA8...`
byte-identical. Its 2.09 MB temporary replay root is
`.epiphany-run/native-model-failure-20260818-a`; evidence is distilled and the
temporary root owns no continuing proof.
Docker shakedown hygiene remains an operator invariant, but this migration and
its package are native-only. Future containerized runs must use one shared warm
cache set, exact run labels, bounded exported evidence, and terminal cleanup.
A stopped build container or cloned source volume owns no durable proof.
## Immediate next action
1. Build one exact clean-source package from `f8412b69` or its document-only
successor without adding a shipped proof-only binary.
1. Commit, push, and package the fully native-accepted source from F: using the
shared native Cargo target and one exact run root.
2. Run the fresh-store Decision-Auditable Concurrent Mind capstone against that
package: concurrent Persona/repository work, Body -> Modeling -> Mind,
explicit Eyes evidence where required, Hands -> Verification -> Mind,
transcript-independent decision inspection, and process restart/re-entry
with identical obligations and no resurrection.
3. Only then resume Model Atlas Gate 1 from a new external root.
3. Before that capstone, expose a bounded packaged decision-context listing for
operator audit and establish a fresh canonical Persona mouth receipt anchor.
Do not transplant the old proof anchor or ship a generic test harness.
4. Only then resume Model Atlas Gate 1 from a new external root. Yggdrasil
deployment preparation remains owned by the separate deployment task.
## Operational state that matters
@ -200,14 +285,19 @@ document-only successor.
`255` on 2026-08-11. Their named volumes are quiescent historical evidence.
- Historical accepted live release: source `465af24d`, c011 package SHA-256
`089e0005`; it is not the current source body.
- Starfire remains the cognition/build host. Yggdrasil remains the small public
crossing body and never builds.
- The old Yggdrasil capacity measurement is obsolete. The upgraded host is the
intended swarm body; its current deployment truth belongs to the separate
deployment task. This source pass builds natively on F: and makes no claim
about Yggdrasil readiness.
- Bifrost public crossing remains active on Yggdrasil. A completed public
Persona consequence is still unproven because the Yggdrasil Discord
credential is absent.
- Model Atlas code and isolated proofs remain accepted. Signed Gate 1 sight,
brake freeze, autonomous cascade, partition exercise, and endurance remain
open.
- GitHub's August 2026 service incidents were external provider downtime. They
do not count as Epiphany source-identity or grant failures; successful lookup
and denial-before-network remain separately required evidence.
## Git/worktree caution