Archive completed model generations
This commit is contained in:
parent
04169bb1c0
commit
c137e16ba5
8 changed files with 1262 additions and 115 deletions
|
|
@ -2438,6 +2438,26 @@ semantic/Mind/consequence families remain untouched. The tombstone must retain
|
|||
the exact session, job/result, model-request, and tool-intent identities as an
|
||||
ID-reuse barrier plus counts and a digest of bulky retired envelopes.
|
||||
|
||||
That narrow owner now exists in source as
|
||||
`EpiphanyArchivedRuntimeSession` and `archive_completed_model_session`.
|
||||
Runtime spine admits only the closed model-generation shape above, verifies the
|
||||
native/provider terminal streams and receipts plus every bound tool receipt,
|
||||
and refuses outer worker/coordinator membership. One full-snapshot-fenced
|
||||
replacement writes the exact-ID tombstone and deletes only its enumerated inner
|
||||
execution envelopes. Tombstone IDs block later session, job, model-request, or
|
||||
tool-intent aliasing; the tombstone itself is never enumerated as runnable
|
||||
authority. Stale-snapshot, missing-tool-receipt, byte-identity, idempotence, and
|
||||
ID-reuse negatives pass.
|
||||
|
||||
`retain_completed_model_sessions` selects only completed generations whose
|
||||
jobs are all model-adapter jobs with explicit model bindings, orders them by
|
||||
session closure time, and keeps at least the newest even when configured zero.
|
||||
Resident Self invokes it beside coordinator-receipt retention only after the
|
||||
shared no-active/no-prepared authority gate. The default retained window is
|
||||
256. A two-generation test proves the older generation becomes a tombstone and
|
||||
the newest remains live. Exact package and copied-state proof remain required;
|
||||
conversation-wide sessions and semantic history remain separate owners.
|
||||
|
||||
The coordinator receipt accumulator is implemented in source. Runtime owns the
|
||||
typed head, cumulative status counts, chained digest, and full-snapshot-fenced
|
||||
replacement/deletion. Resident Self supplies the cross-store preservation set
|
||||
|
|
|
|||
|
|
@ -1512,3 +1512,29 @@ Six OpenAI CLI and 15 library tests pass, including terminal receipt/session
|
|||
assertions. The next cut is the narrow archived model-session tombstone; it
|
||||
must retain exact IDs and delete only inner execution envelopes, never outer
|
||||
worker or semantic authority.
|
||||
|
||||
## Narrow model-generation archive — source-proven 2026-08-10
|
||||
|
||||
Runtime spine now owns `EpiphanyArchivedRuntimeSession`. Archive admission is
|
||||
deliberately narrow: the session is Completed; every member job is an
|
||||
`openai-model-adapter` job with exactly one model-execution binding and terminal
|
||||
job result; native and OpenAI requests, streams, and receipts agree and are
|
||||
terminal; and every bound tool intent has one authenticated terminal receipt.
|
||||
Outer worker launches/results, coordinator receipts, semantic/Mind/consequence
|
||||
documents, unknown rows, and unrelated runtime envelopes are not members.
|
||||
|
||||
One full-snapshot-fenced replacement writes a tombstone containing the exact
|
||||
session/job/result/request/intent IDs, terminal counts, retired-family counts,
|
||||
and chained envelope digest while deleting only that inner execution family.
|
||||
Those retained IDs are the permanent reuse barrier. A stale snapshot refuses;
|
||||
an unreceipted tool refuses; exact replay is idempotent; and unrelated envelopes
|
||||
remain byte-identical. Resident Self calls the bounded owner only while neither
|
||||
active nor prepared launch authority exists. The configurable default window
|
||||
is 256 and at least the newest completed model generation always survives.
|
||||
|
||||
The exact archive test and two-generation retention-window test pass, as do all
|
||||
eight `epiphany-swarm` tests and `cargo check`. The schema and CultNet catalog
|
||||
parse. This cut is not yet committed, packaged, or exercised on copied live
|
||||
state. Next commit/push it, package only that exact commit with Starfire's
|
||||
persistent Linux cache, then prove tombstone non-resurrection and byte identity
|
||||
on copied state. Active c005 remains untouchable. Yggdrasil never builds.
|
||||
|
|
|
|||
Reference in a new issue