Isolate Self policy from stable core builds

This commit is contained in:
Meta Vens 2026-08-08 17:14:00 +01:00
commit d910158fd0
14 changed files with 3775 additions and 303 deletions

View file

@ -1580,6 +1580,19 @@ crate split. The viable design must keep one Cargo dependency graph while
moving volatile coordinator policy and the coordinator/status binary consumers
out of the stable core compilation unit.
The local replacement implements that single-graph boundary. Stable coordinator
DTOs live in `surfaces/coordinator_contract.rs` and remain available to core
state/projection organs. Routing functions live in the separately compiled
`epiphany-self-policy` leaf and are not re-exported through core. Core disables
autobin discovery and explicitly declares all 74 retained non-coordinator
binaries. The root release graph exposes `epiphany-mvp-coordinator` only behind
optional feature `coordinator-runtime`; that feature alone enables the policy
dependency. The packager first builds ordinary bins without the feature, then
builds only coordinator with it under the same root lock and target directory.
Target-cache identity depends on target and toolchain, not lockfile bytes;
Cargo fingerprints changed dependencies, while `--locked` and the release
witness retain build and publication authority.
Launch latency is a separate whole-store-read wound. The live runtime store was
about 40 MiB, and post-Soul Modeling launch took roughly 50-90 seconds before
the detached model process appeared. `launch_role` currently reads coordinator

View file

@ -67,11 +67,22 @@ builds. Focused tests passed, but the real benchmark falsified the design:
- logs are `.epiphany-run/package-0f0b006d-owner-groups-attempt2.*`;
- pushed commit `a1a43892` reverts the implementation.
Do not resurrect separate owner lock universes. The next design must retain one
shared Cargo dependency graph while moving volatile Self policy and its
coordinator/status consumers out of the stable core compilation unit. A policy
crate re-exported through `epiphany-core` would preserve the invalidation edge
and is not a split.
Do not resurrect separate owner lock universes. The local replacement retains
the one root Cargo graph and moves routing policy into `epiphany-self-policy`.
Stable coordinator contract types remain in
`epiphany-core/src/surfaces/coordinator_contract.rs`; core no longer compiles or
re-exports policy functions. Core explicitly retains all 74 non-coordinator
binaries. The root coordinator target alone enables optional feature
`coordinator-runtime`, which pulls the policy crate; ordinary release binaries
do not see it. Packaging builds ordinary bins under the root lock, then builds
only the feature-gated coordinator in the same target cache. Cache identity is
target/toolchain-stable across lock edits; Cargo owns staleness while the frozen
lock and release witness remain authority.
Proof so far: exact coordinator check passes, all 23 policy tests pass, all 17
packaged-release tests pass, core library check passes, and manifest inspection
proves 74 declared/expected retained core binaries with coordinator/status
absent. Commit, exact package, and localized release-relink timing remain.
## Current performance evidence
@ -83,7 +94,7 @@ and is not a split.
## Open readiness work
- design and benchmark the single-Cargo-graph coordinator-policy crate split;
- commit, package, and benchmark the single-graph coordinator-policy split;
- launch and adjudicate the committed Mind plan review;
- prove native Persona cognition and external speech consequence;
- prove Continuity crash, restart, session closure, and bounded retention;