Accept live model generation retention

This commit is contained in:
Meta Vens 2026-08-10 02:27:04 +01:00
commit 4ac19a23ee
4 changed files with 65 additions and 5 deletions

View file

@ -2464,6 +2464,29 @@ That import belonged exclusively to `cfg(test)` and has been moved there; the
production check and all four tool-runtime binary tests pass. Exact repackaging
of the follow-up commit is required before live archive evidence.
Follow-up `cce2b8ac` is accepted. Its exact warning-free package contains 24
binaries under release
`sha256-1f29f33c495e8ba79ce8e23c1ac923c4ffcd5d86c97632a17d44566669de481e`
and witness
`sha256-25e48f9c79c51cd9853e826e2f9dfdb3b2570006fd37138fd36ac1555bc075e7`.
On copied live state, two genuine terminal model generations supplied a
newest-at-one test. Packaged Self retired the older exact 29-envelope family
into tombstone digest
`sha256:fc3658898d383333edff411f64999af7890cdeaf8fdce737589bc5667f65db33`,
preserved the newer generation, left zero pending tools, refused old-session
identity reuse, and replayed without moving the runtime file hash. All 1,427
pre-existing envelopes survived and no pre-existing authority envelope changed.
Narrow model-generation retention is accepted; semantic and conversation-wide
families remain separate owners.
The live fixture exposed an adjacent boundary fault. The `model-turn` CLI reads
JSON, and the published `epiphany.model_request.v0` schema is object-shaped,
but direct deserialization into the DatabaseEntry type expects its positional
CultCache array. JSON ingress must use an explicit schema-shaped boundary DTO
that rejects unknown/malformed fields and converts into the typed persisted
request. CultCache serialization remains the persistence owner; JSON does not
get to reshape it.
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

View file

@ -1552,3 +1552,40 @@ The import was used only by binary tests and now lives inside `cfg(test)`.
Production `cargo check` and all four tool-runtime binary tests pass without
warnings. Commit/push this follow-up and package that new exact source; do not
accept or publish the warning-bearing c137 package as shakedown evidence.
## Packaged model-generation retention accepted — 2026-08-10
Follow-up `cce2b8ac` is pushed. Its warm Starfire package took 20.70s, emitted
zero warnings, contained 24 binaries, and authenticated as release
`sha256-1f29f33c495e8ba79ce8e23c1ac923c4ffcd5d86c97632a17d44566669de481e`
with witness
`sha256-25e48f9c79c51cd9853e826e2f9dfdb3b2570006fd37138fd36ac1555bc075e7`.
Package and inspect receipts are under `.epiphany-run/linux-package-cce2b8ac`.
Copied live proof is under `.epiphany-run/model-session-retention-cce2b8ac`.
Two exact packaged direct-OpenAI calls created unique model sessions, jobs,
bindings, native/provider terminal streams and receipts; both returned `awake`,
passed, and were closed by the packaged runtime spine. With no active or
prepared resident lease and the copied brake engaged, packaged Self ran once
with `--retained-completed-model-sessions 1`. The older session became one
`epiphany.runtime.archived_session.v0` tombstone covering 29 exact envelopes
with chained digest
`sha256:fc3658898d383333edff411f64999af7890cdeaf8fdce737589bc5667f65db33`.
The newer session/request survived; pending tool count stayed zero; recreation
of the old session exited 1 with `was retired by archive`; and exact Self replay
left runtime SHA-256
`15e25ba3c21bed45fe48cb30034959de87b3f0cb973d7c80e4a7808dc91affb5`
unchanged.
A proof-local read-only CultCache comparator found all 1,427 envelopes from the
copied pre-run store still present. Only the model/OpenAI adapter status rows
changed, as owned consequences of the two genuine calls; zero pre-existing
authority envelopes changed. Active c005 was never mounted or disturbed.
The proof also exposed the next contract wound. `epiphany-model-runtime
model-turn` claims JSON request ingestion and the published schema describes an
object, but `serde_json::from_str::<EpiphanyModelRequest>` inherits the
DatabaseEntry positional-array representation. Two object-shaped requests
failed before store mutation; only the native CultCache array shape passed.
Repair this xenos JSON boundary with an explicit schema-shaped ingress type and
typed conversion. Do not change CultCache persistence to accommodate JSON.

Binary file not shown.

View file

@ -35,10 +35,10 @@ invariants:
- Evidence and git retain history; this map retains only state that changes future decisions.
current_status:
summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. Exact b8138a6b active-child SIGTERM and restart, exact 9f369528 deterministic warm packaging, exact c930f505 cross-container ownership, exact ed15f83a resident lifecycle retention, and exact 16c4b19f coordinator receipt and Heartbeat artifact retention are proven. Gamecult-ops 059821f makes journald the sole Yggdrasil supervisor/projector stream-retention owner. Exact 16c4b19f genuine idle and exact a987d2f7 active cognition both completed 900-pulse bounded plateaus with clean direct-PID exits. Runtime-owned typed fulfillment is accepted live under exact 6dd9b132. Runtime spine now owns source-proven model/tool execution membership and a narrow completed-model-session tombstone; exact packaging and copied-state archive proof remain open. Stable Starfire firewall ownership also remains open. Yggdrasil is the small public crossing body, never the release forge.
latest_phase: Commit c137e16b implements the narrow runtime archive owner and is pushed. Its exact 24-binary package completed, but release inspection rejected it because the tool runtime carried one test-only receipt-key import into production, emitting one unused-import warning. The import now lives under cfg(test); production check and all four tool-runtime binary tests pass. Commit/push this warning fix and package the new exact source before any copied-state archive proof.
summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. Exact b8138a6b active-child SIGTERM and restart, exact 9f369528 deterministic warm packaging, exact c930f505 cross-container ownership, exact ed15f83a resident lifecycle retention, exact 16c4b19f coordinator receipt and Heartbeat artifact retention, and exact cce2b8ac narrow model-generation retention are proven. Gamecult-ops 059821f makes journald the sole Yggdrasil supervisor/projector stream-retention owner. Exact 16c4b19f genuine idle and exact a987d2f7 active cognition completed 900-pulse bounded plateaus. Runtime-owned typed fulfillment is accepted live under exact 6dd9b132. Stable Starfire firewall ownership and broader semantic/conversation retention remain open. Yggdrasil is the small public crossing body, never the release forge.
latest_phase: Exact cce2b8ac packaged warning-free in 20.70s warm with 24 binaries, release sha256-1f29f33c495e8ba79ce8e23c1ac923c4ffcd5d86c97632a17d44566669de481e, and witness sha256-25e48f9c79c51cd9853e826e2f9dfdb3b2570006fd37138fd36ac1555bc075e7. On copied live state, two genuine direct-OpenAI model generations completed and closed. Packaged Self with retention window one replaced the older generation's exact 29-envelope family with one ID tombstone digest sha256:fc3658898d383333edff411f64999af7890cdeaf8fdce737589bc5667f65db33, preserved the newer generation, left pending tools zero, refused archived session recreation, and replayed with an identical runtime SHA-256. All 1,427 pre-existing envelopes survived; only two producer-status rows changed from the model calls and no pre-existing authority row changed. The proof exposed that model-turn JSON object ingress contradicts its published schema because DatabaseEntry serde expects a positional CultCache array.
operational_state:
local_worktree: archived_model_session_pushed_package_rejected_one_warning_followup_uncommitted
local_worktree: archived_model_session_packaged_live_proven_schema_boundary_fault_open
operator_wireguard: restored
yggdrasil: canonical_small_public_crossing_body
starfire: temporary_epiphany_cognition_body
@ -68,8 +68,8 @@ current_status:
starfire_linux_modeling_peak: 109887488_bytes_resident_body_plus_modeling_circuit
yggdrasil_epiphany_service_contract: repaired_in_gamecult_ops_812b427_not_installed
resident_physiology: authenticated_9b8df0b4_c005_bound_to_eyes_tools_nervous_system_with_217dd_and_bd96305e_helpers_running
unresolved_authority: Coordinator receipt, Heartbeat pulse-artifact, deployed supervisor/projector log retention, genuine-idle and active resource plateaus, exact-grant terminality, restart-persistent cooldown refusal, schedule/action issuance cardinality, and runtime-owned typed fulfillment are accepted. Narrow model-generation retention is source-proven but not yet packaged or exercised against copied live state; semantic and conversation-wide runtime histories remain outside its authority. Repository Body observation still performs two authenticated full-tree Git index/manifest passes. Execute-mode workers require a persistent process body. Keyed storage has not earned live migration. One Discord consequence remains blocked by the absent Yggdrasil credential.
next_action: Commit and push the tool-runtime warning fix, refresh the Linux source volume to that exact commit, and run one warm package with Starfire's persistent cache. Require 24 binaries, exact source/witness authentication, and zero warnings. Then exercise bounded retention only on copied state and prove tombstone non-resurrection, newest preservation, unrelated/outer/semantic byte identity, ID-reuse refusal, and stable replay. Preserve active c005. Yggdrasil never builds.
unresolved_authority: Coordinator receipt, Heartbeat pulse-artifact, deployed supervisor/projector log retention, genuine-idle and active resource plateaus, exact-grant terminality, restart-persistent cooldown refusal, schedule/action issuance cardinality, runtime-owned typed fulfillment, and narrow model-generation retention are accepted. Semantic and conversation-wide runtime histories remain separate/unbounded. The model-turn CLI's JSON object contract is false against its published schema and currently accepts only the CultCache positional array. Repository Body observation still performs two authenticated full-tree Git index/manifest passes. Execute-mode workers require a persistent process body. Keyed storage has not earned live migration. One Discord consequence remains blocked by the absent Yggdrasil credential.
next_action: Repair model-turn JSON ingress at the xenos boundary without changing CultCache persistence: parse the published object-shaped epiphany.model_request.v0 contract into the typed request, retain explicit rejection of malformed/unknown fields, and test object acceptance plus positional-array refusal or deliberate quarantined compatibility. Then package and live-smoke the exact boundary before continuing semantic retention/endurance. Preserve active c005. Yggdrasil never builds.
active_subgoals:
- Prove Persona, Self, Eyes, Modeling, Imagination, Hands, Soul, Mind, Continuity, and nervous-system behavior individually.