Enforce Continuity recovery for reorientation
This commit is contained in:
parent
5e97e3464e
commit
3d36944fdd
8 changed files with 234 additions and 39 deletions
|
|
@ -34,7 +34,7 @@ remembers doctrine; the branch remembers the blade.
|
|||
- Do not copy exact branch or HEAD from this note. Run `git status --short --branch` and `git log --oneline -5`.
|
||||
- Canonical anatomy now lives in `notes/epiphany-anatomy.md`. Embodied sub-agents are Self, Face, Imagination, Eyes, Proprioception, Hands, and Soul. Body, Mind, Continuity, and Substrate Gate are substrate/state/protocol surfaces, not sub-agent identities. State is split by layer: `work_organ` for resident Epiphany sub-agents, `persona` for portable public/person-shaped state shared by Epiphany Face, VoidBot repo Faces, and Ghostlight characters, and heartbeat/swarm state for scheduling and coordination physiology. Persona state now carries provenance, required public presentation, `date-time` timestamps, typed `candidateActions`, strict anchored thoughts with non-authoritative extensions, custom enum companion labels, and typed affect records for bonds/status reads/doctrine stances.
|
||||
- The repo now has a one-command local operator path: `.\tools\epiphany_local_run.ps1`. Default mode is `smoke`; it builds the retained Codex app-server compatibility edge, builds native Epiphany operator binaries, runs the coordinator smoke, and writes launcher artifacts under `.epiphany-run/` plus coordinator artifacts under `.epiphany-dogfood/`. `-Mode status` is now Epiphany-native: it builds only Epiphany operator binaries, reads `state/thread-state.msgpack` when present, derives status through `epiphany-core`, and does not start or require `codex-app-server`. Use `-Mode plan` or `-Mode run -MaxSteps 4` for the raw bridge-equipped coordinator entrypoints; use `-Mode mvp -FaceInput "<operator request>" -MaxSteps 4` for the local product cycle that projects Face's character turn, writes a Face/Aquarium bubble, bootstraps a minimal local checkpoint for fresh threads, runs the coordinator with auto-tools, then runs heartbeat sleep/dream maintenance. Live plan/run/mvp modes use the workspace `state/runtime-spine.msgpack`, because CodexThread launch writes worker requests there; the run bundle remains artifact evidence, not runtime lifecycle authority. Add `-ThreadId <id>` and `-Workspace <path>` to inspect or continue an existing thread. `status`, `plan`, and `smoke` do not spend model calls; `run` and `mvp` build and use `epiphany-openai-runtime`. Coordinator workers now launch detached and are polled through runtime-spine instead of blocking the coordinator. MVP runs are non-ephemeral by default so `-ThreadId <id>` can resume and poll later. `-MaxRuntimeSeconds <n>` is passed into worker runtime; timeout writes a failed worker receipt and exits. Failed modeling now blocks downstream verification until the failed result is reviewed.
|
||||
- Current Mom-ready status: the normal MVP pass reaches Face -> coordinator -> detached runtime -> heartbeat sleep, and modeling workers now complete through the ChatGPT subscription transport. The first failure was a stack of violated observability/runtime invariants: worker prompts prepended the whole shared persistent-memory rite, Responses frame liveness was invisible until completion, and the runtime tried to persist hundreds of text deltas before completing the worker job. Role/reorient workers now get a compact Epiphany worker boundary instead of full persistent memory; runtime-spine records sampled raw Responses frame kinds with small previews; contiguous reasoning/text deltas compact before durable storage; and live proofs completed `2fe38dcd-d99e-4c73-9a58-afcc81f851c7`, `241e3851-e3ea-4877-a63b-0d2bbd96a7e2`, and `85149a26-6975-403f-ac93-092b717c5825` instead of timing out. The second failure was stale lifecycle authority: completed runtime jobs remained as unresolved `runtime_links`, replacement launches treated historical active links as current, and one bad validation path opened an orphan job before rejecting the state patch. Latest-link-wins is now the runtime-link invariant, terminal links project completed jobs, stale active history cannot veto replacement, launch validation happens before opening runtime jobs, and completed-but-unreviewable modeling findings stop for review instead of relaunching the same lane. The Eyes/source-gather fork is now landed: Research is a fixed Eyes lane with launch/result/accept/status/coordinator/protocol support, and `regather-needed` modeling findings route to `LaunchResearch` instead of relaunching blind Proprioception. Research statePatch admission is Eyes-shaped only: observations, evidence, scratch, and optional investigationCheckpoint; no graph, planning, objective, or checkpoint authority. Mind admission now leaves typed runtime-spine proof: role/reorient acceptance persists `epiphany.mind.gateway_review` before state admission and `epiphany.mind.state_commit_receipt` after admission with the resulting durable revision. Launch contracts now split the broad receipt catalogue from effect-specific proof profiles for state admission, evidence promotion, repo action, verification, and continuity recovery. Research evidence promotion enforces Substrate Gate read/snapshot grant, Eyes evidence packet, and Mind review before state admission; Verification acceptance enforces Soul verdict and Mind review. The next concrete rebuild layer is Continuity recovery proof for reorient acceptance or Hands action proof once action lanes become live.
|
||||
- Current Mom-ready status: the normal MVP pass reaches Face -> coordinator -> detached runtime -> heartbeat sleep, and modeling workers now complete through the ChatGPT subscription transport. The first failure was a stack of violated observability/runtime invariants: worker prompts prepended the whole shared persistent-memory rite, Responses frame liveness was invisible until completion, and the runtime tried to persist hundreds of text deltas before completing the worker job. Role/reorient workers now get a compact Epiphany worker boundary instead of full persistent memory; runtime-spine records sampled raw Responses frame kinds with small previews; contiguous reasoning/text deltas compact before durable storage; and live proofs completed `2fe38dcd-d99e-4c73-9a58-afcc81f851c7`, `241e3851-e3ea-4877-a63b-0d2bbd96a7e2`, and `85149a26-6975-403f-ac93-092b717c5825` instead of timing out. The second failure was stale lifecycle authority: completed runtime jobs remained as unresolved `runtime_links`, replacement launches treated historical active links as current, and one bad validation path opened an orphan job before rejecting the state patch. Latest-link-wins is now the runtime-link invariant, terminal links project completed jobs, stale active history cannot veto replacement, launch validation happens before opening runtime jobs, and completed-but-unreviewable modeling findings stop for review instead of relaunching the same lane. The Eyes/source-gather fork is now landed: Research is a fixed Eyes lane with launch/result/accept/status/coordinator/protocol support, and `regather-needed` modeling findings route to `LaunchResearch` instead of relaunching blind Proprioception. Research statePatch admission is Eyes-shaped only: observations, evidence, scratch, and optional investigationCheckpoint; no graph, planning, objective, or checkpoint authority. Mind admission now leaves typed runtime-spine proof: role/reorient acceptance persists `epiphany.mind.gateway_review` before state admission and `epiphany.mind.state_commit_receipt` after admission with the resulting durable revision. Launch contracts now split the broad receipt catalogue from effect-specific proof profiles for state admission, evidence promotion, repo action, verification, and continuity recovery. Research evidence promotion enforces Substrate Gate read/snapshot grant, Eyes evidence packet, and Mind review before state admission; Verification acceptance enforces Soul verdict and Mind review; Reorient acceptance enforces Continuity recovery receipt and Mind review. The next concrete rebuild layer is Hands action proof once action lanes become live, or collapsing Mind review/state mutation/commit into one state-admission primitive.
|
||||
- Local operator runs now write typed CultMesh intent/receipt documents to `.epiphany-run/cultmesh/operator-runs.ccmp` through `epiphany-operator-run`. The wrapper writes intent before acting and a completion receipt after success; this is the local consent/trace rail, not a hidden scheduler queue.
|
||||
- Status-mode local runs now also write a native CultMesh operator snapshot to `.epiphany-run/cultmesh/operator-snapshots.ccmp` through `epiphany-operator-snapshot`. That snapshot distills the operator-safe MVP status artifact into typed fields such as thread id, state status, coordinator action, CRRC action, reorient action, available actions, and artifact refs; it does not preserve the raw JSON status blob as internal state.
|
||||
- `epiphany-mvp-status --source native` is the current provider-neutral status boundary. It projects scene, pressure, jobs, roles, planning, reorient, CRRC, coordinator status, and runtime-linked worker lifecycle from native core surfaces. It reads runtime-spine job/result receipts for linked jobs so failed workers show as failed in role results, jobs, roles, and coordinator source signals, while successful semantic findings still require typed role/reorient worker result documents. Keep future pluggable model-provider work behind launch/result/runtime documents; do not let provider choice leak into status, prompt authority, scheduler policy, or durable `EpiphanyThreadState`.
|
||||
|
|
@ -1434,8 +1434,11 @@ Eyes-shaped statePatch. Research evidence promotion therefore has a live
|
|||
Substrate Gate -> Eyes -> Mind proof chain. Verification acceptance now emits a
|
||||
typed `epiphany.soul.verdict_receipt`, persists/rereads it through
|
||||
runtime-spine, and enforces Soul verdict proof before Mind admits
|
||||
verification-shaped state. Other non-Mind profile gaps remain deferred because
|
||||
those producers are not live yet.
|
||||
verification-shaped state. Reorient acceptance now emits a typed
|
||||
`epiphany.continuity.recovery_receipt`, persists/rereads it through
|
||||
runtime-spine, and enforces Continuity recovery proof before Mind admits
|
||||
recovery-shaped state. Hands profile gaps remain deferred because action-lane
|
||||
receipt producers are not live yet.
|
||||
Mind review is now a persisted receipt chain for acceptance rather than an
|
||||
in-memory blessing: the bridge writes `epiphany.mind.gateway_review` before
|
||||
role/reorient state admission and `epiphany.mind.state_commit_receipt` after
|
||||
|
|
@ -1448,9 +1451,9 @@ compares Epiphany's named organ contracts against Void's current Face prompting
|
|||
shape and maps the route from contract catalog to executable organism. Main
|
||||
finding: the boundaries are directionally right, launch packets now carry organ
|
||||
receipt expectations and effect-specific proof profiles, and acceptance now has
|
||||
persisted Mind review/commit proof plus a profile evaluator, but most non-Mind
|
||||
gates still need receipt producers before their profile gaps can become hard
|
||||
blocks. The
|
||||
persisted Mind review/commit proof plus enforced Substrate Gate, Eyes, Soul,
|
||||
and Continuity receipt chains where those producers are live. Hands still needs
|
||||
receipt producers before its profile gaps can become hard blocks. The
|
||||
first dependency-body repair is landed: the missing
|
||||
`E:\Projects\CultLib\crates\*` paths were replaced with repo-contained vendored
|
||||
CultCache/CultNet/CultMesh crates, and the `epiphany-core` library tests pass
|
||||
|
|
|
|||
|
|
@ -144,10 +144,13 @@ Substrate Gate read/snapshot access grant, and Research acceptance enforces that
|
|||
grant before admitting evidence-shaped state. Verification acceptance emits a
|
||||
typed `epiphany.soul.verdict_receipt`, persists/rereads it through
|
||||
runtime-spine, and enforces Soul verdict proof before Mind admits
|
||||
verification-shaped state. Remaining weakness: Hands and Continuity receipts are
|
||||
still mostly launch-carried expectations, not enforced proof chains before
|
||||
state/action promotion, and the current Mind state mutation plus post-commit
|
||||
receipt is not a single transaction yet.
|
||||
verification-shaped state. Reorient acceptance emits a typed
|
||||
`epiphany.continuity.recovery_receipt`, persists/rereads it through
|
||||
runtime-spine, and enforces Continuity recovery proof before Mind admits
|
||||
recovery-shaped state. Remaining weakness: Hands receipts are still mostly
|
||||
launch-carried expectations, not enforced proof chains before action promotion,
|
||||
and the current Mind state mutation plus post-commit receipt is not a single
|
||||
transaction yet.
|
||||
|
||||
### 4. Self Still Shares A Throne With Compatibility Plumbing
|
||||
|
||||
|
|
@ -344,8 +347,10 @@ comfort tunnels.
|
|||
Substrate Gate -> Eyes -> Mind.
|
||||
- Landed: Verification acceptance produces and enforces typed Soul verdict
|
||||
receipts before Mind admission.
|
||||
- Next: add Continuity recovery receipts for reorient acceptance or Hands action
|
||||
receipts when action lanes become live.
|
||||
- Landed: Reorient acceptance produces and enforces typed Continuity recovery
|
||||
receipts before Mind admission.
|
||||
- Next: add Hands action receipts when action lanes become live, or collapse
|
||||
Mind review/state mutation/commit into one storage-owner admission primitive.
|
||||
- Make Aquarium read the contract catalog and available receipts instead of
|
||||
hard-coding the route zoo.
|
||||
- Starve `codex_message_processor` down to Codex auth/model transport and
|
||||
|
|
|
|||
Reference in a new issue