continuity: own runtime session closure
This commit is contained in:
parent
f257e07686
commit
230f71f48a
7 changed files with 262 additions and 5 deletions
|
|
@ -1,5 +1,16 @@
|
|||
# Epiphany Current Algorithmic Map
|
||||
|
||||
## Runtime job and session closure ownership
|
||||
|
||||
- Owner: the worker runtime terminalizes its own outer role job and inner model job. Continuity owns runtime-session completion after every job in that session is terminal.
|
||||
- Inputs: worker success, ordinary runtime error, timeout, and the session-local job set. Coordinator status is an observer of these typed documents, not a writer.
|
||||
- Outputs: exactly one terminal job result per job, a `Completed` session, and one deterministic `session.completed` runtime event sourced from Continuity.
|
||||
- Derived state: `*Running`, open-job count, and active-session count are projections. Adapter-status refreshes may change unrelated store bytes on restart and are not job authority.
|
||||
- Forbidden writers: coordinator restart/status code cannot synthesize worker results or pretend a session closed. A repair loop cannot hide a dead worker. New jobs cannot enter a completed session.
|
||||
- Shared paths: bounded and unbounded worker execution use the same result-sealing primitive; explicit session closure uses the same terminal-job predicate for coordinator, resident, and model-adapter sessions.
|
||||
- Cut line: sessions no longer remain permanently active merely because creation was implemented before completion. Closure refuses any queued, running, or review-waiting session-local job; exact closure replay is idempotent.
|
||||
- Verification layer: a byte-identical disposable copy of sealed v28 reproduced the dead Imagination job. Authenticated `55660d78` terminalized it as failed, restart could not create a second result, and the new Continuity primitive closed all four sessions from four active to zero while preserving sealed v28 unchanged.
|
||||
|
||||
## Proposal frontier routeability invariant
|
||||
|
||||
Proposal Modeling admission and Self planning selection now share one boundary:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,34 @@
|
|||
# Fresh workspace handoff
|
||||
|
||||
## Continuity closure pass — 2026-08-08
|
||||
|
||||
Sealed v28 remains immutable at
|
||||
`F:\Projects\.epiphany-runtime\shakedown\live-20260807-v28\runtime.cc`,
|
||||
2,378,654 bytes, SHA-256
|
||||
`df9d707f1a87dcf557ad638c7baf8136d9db6f72b35d57abe96759088331f864`.
|
||||
A byte-identical disposable copy under
|
||||
`.epiphany-run/continuity-v28-replay-20260808/` reproduced dead Imagination job
|
||||
`b34d21de-6788-4935-8910-75275c257444`. Authenticated release `55660d78`
|
||||
terminalized that outer job as failed with result
|
||||
`result-worker-b34d21de-6788-4935-8910-75275c257444`; the copied runtime then
|
||||
reported nine jobs, nine results, and zero open jobs. A second worker start was
|
||||
refused because the job was already terminal. Adapter-status refresh changed
|
||||
the store hash during that refusal, so job/result identity—not whole-store
|
||||
byte equality—is the restart invariant.
|
||||
|
||||
The replay then exposed a separate architectural hole: all four v28 sessions
|
||||
were still active because the runtime spine defined `Completed` but supplied no
|
||||
completion owner. The current source adds Continuity-owned session closure,
|
||||
`list-sessions`, and `close-session`. Closure refuses open jobs and archived
|
||||
sessions, emits deterministic `session.completed`, is idempotent for an already
|
||||
completed session, and prevents later job creation. The focused core test
|
||||
passes. The disposable v28 copy now has zero active sessions and four closure
|
||||
events; its final SHA-256 is
|
||||
`06179384829bda33dfb5df78dc0923a545598ddf73e33c674abe96934f2713c5`.
|
||||
Package and publish the source cut next, replay with the exact package, then
|
||||
begin bounded retention. The Discord credential and stable Windows firewall
|
||||
rule remain separate open fronts.
|
||||
|
||||
Epiphany remains a supervised engineering alpha. Starfire is the cognition and
|
||||
release forge; Yggdrasil is the small live crossing host and is not a build
|
||||
machine at its current memory budget.
|
||||
|
|
|
|||
Reference in a new issue