Make CultCache snapshots crash atomic

This commit is contained in:
Meta Vens 2026-08-10 10:39:54 +01:00
commit 0e8cd91af1
4 changed files with 33 additions and 8 deletions

View file

@ -1,5 +1,30 @@
# Fresh workspace handoff
## Starfire reboot exposed non-atomic CultCache publication — 2026-08-10
Live c005 and the copied e97 Continuity harness independently lost only
`resident-self.cc` during the same host restart. The files were replaced 0.563
seconds apart at `09:15:18Z`/`09:15:19Z`, each became a nonempty file consisting
entirely of zero bytes, Windows booted at `09:16:52.500Z`, and Docker later
reported c005 exited 255. Every sibling c005 `.cc` store remained nonzero. The
exact corrupt c005 bytes, hashes, container state, and host-event correlation
are preserved under
`.epiphany-run/interventions/c005-zero-store-20260810T091926Z/`. Do not restart
c005 and do not describe this as a clean shutdown.
The source owner was CultCache's single-file publisher: it deleted the committed
destination before renaming a staged snapshot. Upstream CultCache `e8a9f2d`
now flushes a unique staging file, atomically replaces the sibling destination,
and performs the Unix parent-directory durability barrier; Windows uses
write-through replacement. Forty ordinary tests pass, with two explicit
operator crash probes ignored. Linux overlayfs and the exact writable Starfire
`F:` bind both pass replacement, failure-preservation, and directory-sync
checks. Thirty randomized writer SIGKILL/reopen passes on the bind and ten on a
Docker named volume always decoded one complete typed snapshot. The remaining
gate is to advance Epiphany to this dependency, package once, recover into a new
resident incarnation from surviving typed authority, and prove clean
restart/non-resurrection. The zero file is evidence, not a migration input.
## Cross-container resident ownership accepted — 2026-08-09
Exact `c930f505` release

Binary file not shown.

View file

@ -36,19 +36,19 @@ invariants:
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, exact 16c4b19f coordinator receipt and Heartbeat artifact retention, exact cce2b8ac narrow model-generation retention, exact eea15e82 model-turn JSON ingress, exact b1e8c89a semantic unattempted-generation retention, exact 6bc3ec3f semantic physical-epoch retirement, and exact 44230a05 Persona conversation retention are proven. Gamecult-ops 059821f owns Yggdrasil stream retention and exact 6ee08a4 owns stable Starfire Persona-permit firewall ingress. Exact 16c4b19f genuine idle and exact a987d2f7 active cognition completed 900-pulse bounded plateaus. Runtime-owned typed fulfillment is accepted live under exact 6dd9b132. Yggdrasil is the small public crossing body, never the release forge.
latest_phase: Receipt-free coordinator death recovery is source-verified and ready to commit. Resident Self preserves the exact child claim/lease and independently refuses live or indeterminate process identity; the only exposed combined primitive lets runtime Continuity atomically close the matching Active session with a dedicated recovery receipt/event. Pre-open death instead proves the exact runtime family absent before canonical requeue. Cognitive thread identity is no longer misused as run identity: each launch digest derives a unique resident session and each grant owns a distinct artifact directory. Exact typed fulfillment can close once through death recovery; a typed launch without terminal fulfillment remains fail-closed awaiting orphan-worker Continuity rather than duplicating work. Normal receipts are fully lease-authenticated and mutually exclusive with recovery. Serial verification passed 653 library tests with one intentional ignore, all 17 coordinator-binary tests, and all 8 swarm tests; package and copied-live proof remain open.
latest_phase: Exact e97ee1fa receipt-free coordinator death recovery is committed, pushed, packaged, and warm-reproduced, but its copied-live kill proof exposed a lower storage wound. During the 2026-08-10 Starfire reboot, live c005 and the copied harness independently replaced resident-self.cc with all-zero files 0.563 seconds apart; c005 exited 255 and every sibling store remained nonzero. The corrupt c005 bytes and host/container receipts are immutable under .epiphany-run/interventions/c005-zero-store-20260810T091926Z. CultCache e8a9f2d cuts the delete-before-rename gap, flushes staged bytes, atomically replaces the destination, and syncs the Unix parent directory. Forty ordinary tests pass; exact Linux overlayfs and Starfire bind probes pass; thirty randomized bind SIGKILL/reopen passes and ten named-volume passes always decoded one complete typed snapshot. Epiphany dependency advance, exact packaging, and a new resident incarnation remain open; c005 must not restart.
operational_state:
local_worktree: coordinator_death_recovery_source_verified_pending_commit
local_worktree: cultcache_crash_atomic_dependency_pending_root_commit
operator_wireguard: restored
starfire_persona_permit_firewall: persistent_exact_gamecult_ops_6ee08a4
yggdrasil: canonical_small_public_crossing_body
starfire: temporary_epiphany_cognition_body
starfire_runtime_identity: epiphany-starfire
starfire_swarm_brake: released
starfire_release: exact_76afdaf0_sha256_30caab9e_published_9b8df0b4_body_active_on_resident_c005
starfire_release: exact_e97ee1fa_sha256_264a29d4_packaged_but_no_active_resident_after_c005_corruption
starfire_repository_body: bound_and_observed
starfire_verse_topology: bound_to_current_repository_body
starfire_native_status: supervised_shakedown_active
starfire_native_status: supervised_shakedown_storage_recovery
bifrost: exact_cb3239aa_f67f5122_native_runtime_active_on_yggdrasil
bifrost_persona_feedback: ready_on_yggdrasil
bifrost_feedback_binding: gamecult_aquarium_to_epiphany_starfire
@ -68,9 +68,9 @@ current_status:
starfire_linux_role_cognition: eyes_and_modeling_tools_results_and_acceptance_proven_zero_consequence
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, runtime-owned typed fulfillment, narrow model-generation retention, published model-turn JSON ingress, semantic logical/physical retention, Persona conversation retention, stable Starfire firewall ownership, completed model-adapter session archival, and normal coordinator lifecycle opening/error closure/legacy repair/archival are accepted live. Receipt-free hard-death recovery is source-implemented but remains uncommitted, unpackaged, and unproven on copied exact pre-open/opened process kills. A typed worker launch without valid terminal fulfillment deliberately remains active awaiting an owner for exact orphan-worker death and supersession; it is not retryable yet. Historical migrated semantic attempts without recorded physical namespace remain durable and non-retirable. 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 completed Discord consequence remains blocked by the absent Yggdrasil credential.
next_action: Commit and push the source-verified Continuity cut, package it once with the persistent Starfire cache, then prove copied exact pre-open and post-open/pre-attempt deaths, canonical requeue under a new session/artifact incarnation, post-fulfillment recovery, archival/non-resurrection, and bounded replay. Then map orphan-worker death/supersession for typed launched attempts. Preserve active c005. Yggdrasil never builds.
resident_physiology: c005_exited_255_and_sealed_as_corruption_evidence
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, narrow model-generation retention, published model-turn JSON ingress, semantic logical/physical retention, Persona conversation retention, stable Starfire firewall ownership, completed model-adapter session archival, and normal coordinator lifecycle opening/error closure/legacy repair/archival are accepted live. Receipt-free hard-death recovery is source- and package-accepted but its live kill matrix remains unproven because the first copied run exposed non-atomic storage publication. A typed worker launch without valid terminal fulfillment deliberately remains active awaiting an owner for exact orphan-worker death and supersession; it is not retryable yet. Historical migrated semantic attempts without recorded physical namespace remain durable and non-retirable. Repository Body observation still performs two authenticated full-tree Git index/manifest passes. Execute-mode workers require a persistent process body. Mutable Starfire bind storage is not accepted as resident authority until the packaged CultCache repair and recovery replay pass. One completed Discord consequence remains blocked by the absent Yggdrasil credential.
next_action: Advance Epiphany to CultCache e8a9f2d, commit and push the exact dependency, package once with the persistent Starfire cache, and recover a new resident incarnation from surviving typed runtime/heartbeat/Mind/Body authority without importing the zero file. Prove no pending or terminal authority resurrects, one exact lifecycle completes, SIGTERM/restart remains clean, and copied receipt-free pre-open/opened deaths preserve a parseable store. Then map orphan-worker death/supersession. Yggdrasil never builds.
active_subgoals:
- Prove Persona, Self, Eyes, Modeling, Imagination, Hands, Soul, Mind, Continuity, and nervous-system behavior individually.

2
vendor/cultcache-rs vendored

@ -1 +1 @@
Subproject commit e1fc4c05a04e3fa31965892a3febc30097d19d82
Subproject commit e8a9f2d016f596c2172b658c2ddf769185dfba22