From ed15f83a67814fcd1438b7a0110455f65a6efe88 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 9 Aug 2026 15:08:51 +0100 Subject: [PATCH] Bound resident lifecycle retention --- epiphany-core/src/bin/epiphany-swarm.rs | 18 +- epiphany-core/src/resident_self.rs | 294 +++++++++++++++++++++- notes/epiphany-current-algorithmic-map.md | 12 +- notes/fresh-workspace-handoff.md | 16 ++ state/map.yaml | 6 +- vendor/cultcache-rs | 2 +- 6 files changed, 338 insertions(+), 10 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-swarm.rs b/epiphany-core/src/bin/epiphany-swarm.rs index 149f0700..5a84d272 100644 --- a/epiphany-core/src/bin/epiphany-swarm.rs +++ b/epiphany-core/src/bin/epiphany-swarm.rs @@ -14,8 +14,8 @@ use epiphany_core::{ prepare_resident_self_launch, publish_resident_provider_readiness, resident_prepared_launch_thread_id, resident_self_child_claim, resident_self_local_provider_status, terminate_process_instance, - validate_persona_feedback_store_separation, validate_resident_self_store_separation, - verify_resident_self_grant_fulfillment, + retain_resident_self_lifecycles, validate_persona_feedback_store_separation, + validate_resident_self_store_separation, verify_resident_self_grant_fulfillment, }; use serde_json::json; use std::collections::BTreeMap; @@ -76,6 +76,11 @@ fn main() -> Result<()> { match args.command { CommandKind::Once => { let outcome = cycle(&args, &mut state, &mut ports, false)?; + retain_resident_self_lifecycles( + &args.state_store, + args.retained_closed_lifecycles, + Utc::now().timestamp_millis().max(0) as u64, + )?; publish_self_readiness(&args)?; println!( "{}", @@ -87,6 +92,11 @@ fn main() -> Result<()> { loop { let shutting_down = shutdown_requested.load(Ordering::SeqCst); let outcome = cycle(&args, &mut state, &mut ports, shutting_down)?; + retain_resident_self_lifecycles( + &args.state_store, + args.retained_closed_lifecycles, + Utc::now().timestamp_millis().max(0) as u64, + )?; publish_self_readiness(&args)?; println!( "{}", @@ -412,6 +422,7 @@ struct Args { state_store: PathBuf, heartbeat_store: PathBuf, provider_freshness_seconds: u64, + retained_closed_lifecycles: usize, persona_feedback_source_store: PathBuf, persona_feedback_store: PathBuf, bifrost_feedback_trust_anchor: PathBuf, @@ -513,6 +524,9 @@ impl Args { state_store: path("--state-store")?, heartbeat_store: path("--heartbeat-store")?, provider_freshness_seconds: u64v("--provider-freshness-seconds", 180)?, + retained_closed_lifecycles: u64v("--retained-closed-lifecycles", 256)? + .try_into() + .context("--retained-closed-lifecycles exceeds platform size")?, persona_feedback_source_store: path("--persona-feedback-source-store")?, persona_feedback_store: path("--persona-feedback-store")?, bifrost_feedback_trust_anchor: path("--bifrost-feedback-trust-anchor")?, diff --git a/epiphany-core/src/resident_self.rs b/epiphany-core/src/resident_self.rs index 9cafb3e0..c45bc6e5 100644 --- a/epiphany-core/src/resident_self.rs +++ b/epiphany-core/src/resident_self.rs @@ -15,6 +15,9 @@ pub const RESIDENT_SELF_PRESSURE_SCHEMA_VERSION: &str = "epiphany.resident_self. pub const RESIDENT_SELF_GRANT_SCHEMA_VERSION: &str = "epiphany.resident_self.heartbeat_grant.v0"; pub const RESIDENT_SELF_ACK_SCHEMA_VERSION: &str = "epiphany.resident_self.terminal_ack.v0"; pub const RESIDENT_SELF_CHILD_CLAIM_SCHEMA_VERSION: &str = "epiphany.resident_self.child_claim.v0"; +pub const RESIDENT_SELF_RETENTION_HEAD_SCHEMA_VERSION: &str = + "epiphany.resident_self.retention_head.v0"; +pub const RESIDENT_SELF_RETENTION_HEAD_KEY: &str = "resident-self-retention"; #[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] #[cultcache( @@ -167,6 +170,28 @@ pub struct ResidentSelfChildClaim { pub private_state_exposed: bool, } +#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] +#[cultcache( + type = "epiphany.resident_self.retention_head.v0", + schema = "ResidentSelfRetentionHead" +)] +pub struct ResidentSelfRetentionHead { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub revision: u64, + #[cultcache(key = 2)] + pub retired_lifecycle_count: u64, + #[cultcache(key = 3)] + pub retired_envelope_count: u64, + #[cultcache(key = 4)] + pub retired_chain_digest: String, + #[cultcache(key = 5)] + pub retained_at_millis: u64, + #[cultcache(key = 6, default)] + pub private_state_exposed: bool, +} + #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub enum ResidentSelfWake { @@ -833,6 +858,7 @@ fn state_cache(path: &Path) -> Result { cache.register_entry_type::()?; cache.register_entry_type::()?; cache.register_entry_type::()?; + cache.register_entry_type::()?; let mut identities = HashSet::new(); for envelope in SingleFileMessagePackBackingStore::new(path).pull_all()? { let owned = envelope.r#type == ResidentSelfState::TYPE @@ -840,7 +866,8 @@ fn state_cache(path: &Path) -> Result { || envelope.r#type == ResidentSelfPressure::TYPE || envelope.r#type == ResidentSelfHeartbeatGrant::TYPE || envelope.r#type == ResidentSelfTerminalAck::TYPE - || envelope.r#type == ResidentSelfChildClaim::TYPE; + || envelope.r#type == ResidentSelfChildClaim::TYPE + || envelope.r#type == ResidentSelfRetentionHead::TYPE; if !owned { continue; } @@ -870,6 +897,9 @@ fn state_cache(path: &Path) -> Result { ResidentSelfChildClaim::TYPE => { cache.load_envelope::(envelope)?; } + ResidentSelfRetentionHead::TYPE => { + cache.load_envelope::(envelope)?; + } _ => unreachable!("owned resident Self type was matched above"), }; } @@ -1606,6 +1636,159 @@ pub fn heartbeat_consume_resident_self_ack( Ok(()) } +pub fn retain_resident_self_lifecycles( + path: &Path, + retain_closed: usize, + now_millis: u64, +) -> Result> { + let cache = state_cache(path)?; + let state = cache + .get::(RESIDENT_SELF_STATE_KEY)? + .unwrap_or_default(); + let pressures = cache + .get_all::()? + .into_iter() + .map(|pressure| (pressure.pressure_id.clone(), pressure)) + .collect::>(); + let grants = cache + .get_all::()? + .into_iter() + .map(|grant| (grant.grant_id.clone(), grant)) + .collect::>(); + let claims = cache.get_all::()?; + let mut closed = cache + .get_all::()? + .into_iter() + .filter_map(|ack| { + let grant = grants.get(&ack.grant_id)?; + let pressure = pressures.get(&grant.pressure_id)?; + let inactive = state.active_turn.as_ref().map(|lease| &lease.grant_id) + != Some(&grant.grant_id) + && state + .prepared_launch + .as_ref() + .map(|prepared| &prepared.grant.grant_id) + != Some(&grant.grant_id); + (ack.consumed_by_heartbeat_at_millis.is_some() + && grant.consumed_at_millis.is_some() + && pressure.status == "consumed" + && pressure.consumed_by_grant_id.as_deref() == Some(grant.grant_id.as_str()) + && inactive) + .then_some(( + ack.completed_at_millis, + ack.ack_id.clone(), + grant.grant_id.clone(), + )) + }) + .collect::>(); + closed.sort(); + let retire_count = closed.len().saturating_sub(retain_closed); + if retire_count == 0 { + return Ok(None); + } + + let snapshot = cache.snapshot_envelopes(); + let prior_head = cache.get::(RESIDENT_SELF_RETENTION_HEAD_KEY)?; + if let Some(head) = &prior_head { + if head.schema_version != RESIDENT_SELF_RETENTION_HEAD_SCHEMA_VERSION + || head.private_state_exposed + || !head.retired_chain_digest.starts_with("sha256:") + { + return Err(anyhow!("resident Self retention head is invalid")); + } + } + let mut expected = Vec::new(); + let mut retired_lifecycles = 0_u64; + for (_, ack_id, grant_id) in closed.into_iter().take(retire_count) { + let grant = grants + .get(&grant_id) + .ok_or_else(|| anyhow!("closed resident lifecycle lost its grant"))?; + let pressure = pressures + .get(&grant.pressure_id) + .ok_or_else(|| anyhow!("closed resident lifecycle lost its pressure"))?; + for (entry_type, key) in [ + (ResidentSelfPressure::TYPE, pressure.pressure_id.as_str()), + (ResidentSelfHeartbeatGrant::TYPE, grant_id.as_str()), + (ResidentSelfTerminalAck::TYPE, ack_id.as_str()), + ] { + expected.push( + snapshot + .iter() + .find(|entry| entry.r#type == entry_type && entry.key == key) + .cloned() + .ok_or_else(|| anyhow!("closed resident lifecycle lost an envelope"))?, + ); + } + expected.extend( + claims + .iter() + .filter(|claim| claim.grant_id == grant_id) + .map(|claim| { + snapshot + .iter() + .find(|entry| { + entry.r#type == ResidentSelfChildClaim::TYPE + && entry.key == claim.claim_id + }) + .cloned() + .ok_or_else(|| anyhow!("closed resident lifecycle lost its child claim")) + }) + .collect::>>()?, + ); + retired_lifecycles += 1; + } + if let Some(envelope) = snapshot.iter().find(|entry| { + entry.r#type == ResidentSelfRetentionHead::TYPE + && entry.key == RESIDENT_SELF_RETENTION_HEAD_KEY + }) { + expected.push(envelope.clone()); + } + expected.sort_by(|left, right| { + left.r#type + .cmp(&right.r#type) + .then(left.key.cmp(&right.key)) + }); + let deletions = expected + .iter() + .filter(|entry| entry.r#type != ResidentSelfRetentionHead::TYPE) + .cloned() + .collect::>(); + let mut digest_inputs = vec![ + prior_head + .as_ref() + .map(|head| head.retired_chain_digest.clone()) + .unwrap_or_else(|| "resident-self-retention-root".into()) + .into_bytes(), + ]; + for entry in &deletions { + digest_inputs.push(entry.r#type.as_bytes().to_vec()); + digest_inputs.push(entry.key.as_bytes().to_vec()); + digest_inputs.push(entry.payload.clone()); + } + let head = ResidentSelfRetentionHead { + schema_version: RESIDENT_SELF_RETENTION_HEAD_SCHEMA_VERSION.into(), + revision: prior_head.as_ref().map_or(1, |head| head.revision + 1), + retired_lifecycle_count: prior_head.as_ref().map_or(retired_lifecycles, |head| { + head.retired_lifecycle_count + retired_lifecycles + }), + retired_envelope_count: prior_head.as_ref().map_or(deletions.len() as u64, |head| { + head.retired_envelope_count + deletions.len() as u64 + }), + retired_chain_digest: digest_parts(digest_inputs), + retained_at_millis: now_millis, + private_state_exposed: false, + }; + let (replacement, _) = cache.prepare_entry(RESIDENT_SELF_RETENTION_HEAD_KEY, &head)?; + if !SingleFileMessagePackBackingStore::new(path).replace_and_delete_if_snapshot_unchanged( + &snapshot, + vec![replacement], + &deletions, + )? { + return Err(anyhow!("resident Self lost lifecycle-retention CAS")); + } + Ok(Some(head)) +} + pub fn load_resident_self_state(path: &Path) -> Result { Ok(state_cache(path)? .get::(RESIDENT_SELF_STATE_KEY)? @@ -1617,6 +1800,115 @@ mod tests { use super::*; use std::collections::BTreeMap; + fn insert_closed_lifecycle(path: &Path, suffix: &str, completed_at_millis: u64) -> Result<()> { + let cache = state_cache(path)?; + let pressure_id = format!("pressure-{suffix}"); + let grant_id = format!("grant-{suffix}"); + let pressure = ResidentSelfPressure { + schema_version: RESIDENT_SELF_PRESSURE_SCHEMA_VERSION.into(), + pressure_id: pressure_id.clone(), + kind: "operator-objective".into(), + provenance_ref: format!("test://{suffix}"), + objective: format!("objective {suffix}"), + created_at_millis: completed_at_millis.saturating_sub(3), + status: "consumed".into(), + consumed_by_grant_id: Some(grant_id.clone()), + private_state_exposed: false, + }; + let grant = ResidentSelfHeartbeatGrant { + schema_version: RESIDENT_SELF_GRANT_SCHEMA_VERSION.into(), + grant_id: grant_id.clone(), + pressure_id, + pressure_kind: "operator-objective".into(), + provenance_ref: format!("test://{suffix}"), + objective: format!("objective {suffix}"), + heartbeat_schedule_id: "schedule".into(), + heartbeat_action_id: format!("action-{suffix}"), + issued_at_millis: completed_at_millis.saturating_sub(2), + consumed_at_millis: Some(completed_at_millis.saturating_sub(1)), + private_state_exposed: false, + }; + let ack = ResidentSelfTerminalAck { + schema_version: RESIDENT_SELF_ACK_SCHEMA_VERSION.into(), + ack_id: format!("ack-{suffix}"), + grant_id, + heartbeat_schedule_id: "schedule".into(), + heartbeat_action_id: format!("action-{suffix}"), + launch_digest: format!("sha256:{suffix}"), + coordinator_receipt_id: format!("receipt-{suffix}"), + terminal_status: "completed".into(), + completed_at_millis, + consumed_by_heartbeat_at_millis: Some(completed_at_millis + 1), + private_state_exposed: false, + }; + let mut entries = Vec::new(); + entries.push(cache.prepare_entry(&pressure.pressure_id, &pressure)?.0); + entries.push(cache.prepare_entry(&grant.grant_id, &grant)?.0); + entries.push(cache.prepare_entry(&ack.ack_id, &ack)?.0); + assert!(SingleFileMessagePackBackingStore::new(path).compare_and_swap_batch(&[], entries)?); + Ok(()) + } + + #[test] + fn retention_bounds_closed_lifecycles_and_cannot_resurrect_work() -> Result<()> { + let temp = tempfile::tempdir()?; + let store = temp.path().join("resident-self.cc"); + insert_closed_lifecycle(&store, "old", 10)?; + insert_closed_lifecycle(&store, "new", 20)?; + + let head = retain_resident_self_lifecycles(&store, 1, 30)? + .ok_or_else(|| anyhow!("retention did not compact the oldest lifecycle"))?; + assert_eq!(head.retired_lifecycle_count, 1); + assert_eq!(head.retired_envelope_count, 3); + assert!(head.retired_chain_digest.starts_with("sha256:")); + assert!(!pending_resident_self_pressure(&store)?); + assert!(pending_resident_self_grant(&store)?.is_none()); + assert!(pending_resident_self_acks(&store)?.is_empty()); + assert_eq!(resident_self_pressures(&store)?.len(), 1); + assert!(retain_resident_self_lifecycles(&store, 1, 31)?.is_none()); + assert_eq!( + load_resident_self_state(&store)?, + ResidentSelfState::default() + ); + Ok(()) + } + + #[test] + fn retention_refuses_live_or_requeued_lifecycle_authority() -> Result<()> { + let temp = tempfile::tempdir()?; + let store = temp.path().join("resident-self.cc"); + insert_closed_lifecycle(&store, "closed", 10)?; + insert_closed_lifecycle(&store, "requeued", 20)?; + let cache = state_cache(&store)?; + let mut pressure = cache + .get::("pressure-requeued")? + .ok_or_else(|| anyhow!("test pressure missing"))?; + let expected = cache + .snapshot_envelopes() + .into_iter() + .find(|entry| { + entry.r#type == ResidentSelfPressure::TYPE && entry.key == pressure.pressure_id + }) + .ok_or_else(|| anyhow!("test pressure envelope missing"))?; + pressure.status = "pending".into(); + pressure.consumed_by_grant_id = None; + let replacement = cache.prepare_entry(&pressure.pressure_id, &pressure)?.0; + assert!( + SingleFileMessagePackBackingStore::new(&store) + .compare_and_swap_entry(&expected, replacement)? + ); + + let head = retain_resident_self_lifecycles(&store, 0, 30)? + .ok_or_else(|| anyhow!("closed lifecycle was not retained"))?; + assert_eq!(head.retired_lifecycle_count, 1); + assert!(pending_resident_self_pressure(&store)?); + assert_eq!( + resident_self_pressures(&store)?[0].pressure_id, + "pressure-requeued" + ); + Ok(()) + } + #[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] #[cultcache(type = "test.resident.provider_readiness", schema = "ForeignReadiness")] struct ForeignReadiness { diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index ec90fd35..159b832a 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -2129,6 +2129,12 @@ work. `gamecult-ops` drive is unavailable in this workspace, so this branch remains deliberately uncut rather than guessed. -The next implementation slice is resident lifecycle retention. It must use -CultCache's exact-envelope atomic deletion surface, publish typed non-authority -evidence, and prove negatively that retired history cannot re-enter scheduling. +Resident lifecycle retention now follows this map. Resident Self's production +serve/once owner applies a configurable closed-lifecycle bound (default 256). +CultCache commit `fecc17c` adds a complete-snapshot-fenced single-file +replace-and-delete transaction, so exact pressure/grant/ack/claim deletion and +replacement of the one digest/count retention head cannot split. The head is +not read by scheduling. Twenty resident Self tests and six swarm tests pass, +including refusal of live/requeued authority and negative proof that retained +history cannot create pending work. Exact packaged copied-state proof remains +the acceptance boundary. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 4632c964..329959ad 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1038,3 +1038,19 @@ must wait for the infrastructure runbook rather than being guessed. Next: implement the resident lifecycle retention organ and its negative tests, then audit coordinator references, packaged Heartbeat retention, supervisor log ownership, and the measured idle/active endurance plateau. + +Resident lifecycle retention is now implemented in source. Resident Self's +serve/once owner invokes a configurable `--retained-closed-lifecycles` bound +(default 256). Only Heartbeat-consumed terminal lifecycles whose pressure still +binds the consumed grant and which have no prepared/active lease are eligible. +The exact pressure/grant/ack/claim envelopes are deleted in the same +snapshot-fenced CultCache write that replaces the single retention head. The +head carries only cumulative counts and a chained digest; scheduling readers do +not consume it. Requeued brake/shutdown/failure pressure remains live. + +CultCache commit `fecc17c` on +`codex/resident-retention-compaction` adds the missing single-file atomic +replace-and-delete primitive and its stale-snapshot refusal proof. Twenty +resident Self tests and six swarm binary tests pass, including negative proof +that retention cannot create pending pressure/grants/acks or resurrect state. +Package and copied-state proof remain before this slice is accepted. diff --git a/state/map.yaml b/state/map.yaml index c0656457..1b0789c5 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -38,7 +38,7 @@ current_status: summary: Epiphany is a supervised engineering alpha on Starfire, not deployment-ready. Exact b8138a6b active-child SIGTERM and restart are proven. Exact 9f369528 makes build_cache_root own Cargo home and proves 10.17s warm packaging with Cargo at 1.38s. Exact c930f505 release sha256-cd684079eec277bbb434f147c4f6c679553780230822f9d30f0810ec0988100a moves Unix resident role locks beside mounted stores. Live copied-state proof refused a second resident owner across containers with byte-identical state, allowed Heartbeat tick and bounded serve under its distinct lock, and stopped resident Self with exit zero/final braked. Retention, long-duration plateau, log ownership, and stable Starfire firewall ownership remain open. Yggdrasil is the small public crossing body, never the release forge. latest_phase: Commit 76afdaf0 moved release construction, filesystem verification, and witness inspection out of monolithic epiphany-core into epiphany-release-construction; core retains only CultMesh publication, load, and authentication. The bootstrap dependency graph excludes epiphany-core, all 19 construction tests pass, and the full core test harness compiles. Exact Linux bootstrap fell from 7m57s to 30.24s cold and 4.40s warm. Exact source 76afdaf0 then produced warning-free 24-binary release sha256-30caab9ef1ea89f9a885d87832b1e312a35288ec3f895bd5b0e83f7f7a6a1aec with witness sha256-89c2ad604254faec3e1e01f753b5dff38a402f43d009074ba4b47b1ec46fdecf. Independent inspection accepted the 12m16s cold build and the identical 10.16s warm replay with Cargo at 0.82s. The packaged full publisher accepted the narrow constructor's witness and changed c005 local-verse.cc from SHA-256 b160c610988753278afbad7f5bad436193144a92e9fd506982099ad58d213909 to 83ed430f5bf0c33996d7c4ee7bf0fa6c9f5f80bc8db94621395ea560852cae81 without body activation. operational_state: - local_worktree: continuity_retention_authority_mapped + local_worktree: resident_lifecycle_retention_source_proven operator_wireguard: restored yggdrasil: canonical_small_public_crossing_body starfire: temporary_epiphany_cognition_body @@ -69,7 +69,7 @@ current_status: 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: Resident Self lifecycle rows and coordinator run receipts are unbounded and require typed non-authority accumulators plus exact reference-aware deletion. Supervisor stdout/stderr are truncated only at launch and unbounded during a long-lived process; the fatal log is append-only. 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: Implement resident lifecycle retention from the source-grounded authority map using exact-envelope atomic deletion and typed non-authority evidence; prove negatively that retained history cannot create pending work. Then source-ground coordinator receipt references, settle supervisor log ownership with the infrastructure runbook, run a packaged Heartbeat retention proof, and measure idle/active endurance. + next_action: Package and inspect the resident lifecycle retention body, then exercise it on copied state and prove the bounded retention head cannot create pending work or resurrect a coordinator turn. After that source-ground coordinator receipt references, settle supervisor log ownership with the infrastructure runbook, run a packaged Heartbeat retention proof, and measure idle/active endurance. active_subgoals: - Prove Persona, Self, Eyes, Modeling, Imagination, Hands, Soul, Mind, Continuity, and nervous-system behavior individually. @@ -86,7 +86,7 @@ organ_readiness: hands: proven for bounded consequences; native patch, command, commit, push, and typed receipts bind reviewed path ceilings to exact changed-path subsets. soul: proven for the current bounded route-chain consequence; exact d3bfbda0 launched Verification through typed plan-decision provenance, result f23fe2b6 was accepted at revision 57, and Self then derived Modeling before any repeated Hands authority. mind: proven for launch-owned resident frontier adjudication; two historical attempts failed closed, exact bd96305e derived immutable identity from authenticated launch, authorized retry 2d2a3e8b completed, and Self atomically committed terminal adopt decision e7d7f3c7. Broader memory retention and long-duration behavior remain open. - continuity: partial; authenticated 55660d78 terminalized the copied v28 dead worker once and refused duplicate restart, while sealed v28 remained unchanged. Exact 100d8854 closes only all-terminal sessions, emits one deterministic event, and refuses post-close jobs. Exact 42bc665a proves bounded retention and restart sequence recovery. A digest-pinned Linux runtime-spine at b5140288 repeated closure invariants on Yggdrasil. Authenticated c005 proves typed resident state survives hard exit, executable-body replacement, runtime-topology correction, and restart while preserving awaitFrontierProposal. Exact b8138a6b proves active-child and idle SIGTERM closure with exit zero and final braked state. Exact c930f505 proves cross-container resident ownership refusal without state mutation while Heartbeat retains its distinct typed lock. Resident lifecycle/coordinator receipt/log retention and the long-duration plateau remain open. + continuity: partial; authenticated 55660d78 terminalized the copied v28 dead worker once and refused duplicate restart, while sealed v28 remained unchanged. Exact 100d8854 closes only all-terminal sessions, emits one deterministic event, and refuses post-close jobs. Exact 42bc665a proves bounded retention and restart sequence recovery. A digest-pinned Linux runtime-spine at b5140288 repeated closure invariants on Yggdrasil. Authenticated c005 proves typed resident state survives hard exit, executable-body replacement, runtime-topology correction, and restart while preserving awaitFrontierProposal. Exact b8138a6b proves active-child and idle SIGTERM closure with exit zero and final braked state. Exact c930f505 proves cross-container resident ownership refusal without state mutation while Heartbeat retains its distinct typed lock. Resident lifecycle retention now has one production Self-owned route, an exact-snapshot atomic delete-and-replace primitive, a bounded digest/count head with no scheduling cargo, and negative tests refusing live or requeued authority; packaged proof remains open. Coordinator receipt/log retention and the long-duration plateau remain open. nervous_system: partial; detached scheduling, runtime jobs, typed feedback, ordinary Windows coverage-store identity, and operator projection work. Exact c0055772 proves Linux heartbeat acknowledgement/regrant, Self single-consumption launch, authenticated plan coordinator completion, and a persistent resident body. It also proves detached model workers cannot survive a one-shot container PID 1 exit. The accepted Linux Eyes-to-Modeling circuit proves detached role workers, native read-only tool loops, typed admission, and causal next-organ routing at a measured 109887488-byte peak. Modeling job commit spent 160183ms in two cold Repository Body scans. A source cut now reuses one private index across both equality scans; 25 focused observer tests pass and a live-worktree mechanism benchmark reduced the pair from 3832ms to 1537ms. Packaged coordinator timing remains open. Authenticated d910158f isolates Self policy behind one root-graph optional coordinator feature; warm policy invalidation is 6.02s. Root Linux packaging is 12m33s cold and 9.08s warm with persistent caches. Long-duration pressure and resource plateau remain open. Yggdrasil is not a release forge at its current memory budget. forbidden_actions: diff --git a/vendor/cultcache-rs b/vendor/cultcache-rs index 7676a4c2..fecc17c9 160000 --- a/vendor/cultcache-rs +++ b/vendor/cultcache-rs @@ -1 +1 @@ -Subproject commit 7676a4c2a125b89e14a317d53c97028ea0c020c0 +Subproject commit fecc17c93dafb942e54c797286e92218f0ceae1d