From 7f4e1dc410e165d38c7e6c8c9b8d3a9693579180 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 14 Jul 2026 23:32:13 +0100 Subject: [PATCH] Build inert claim repair request foundation --- epiphany-core/src/lib.rs | 1 + epiphany-core/src/repo_model_gateway.rs | 56 +++++ epiphany-core/src/runtime_spine.rs | 310 +++++++++++++++++++++++- notes/fresh-workspace-handoff.md | 11 + state/ledgers.msgpack | Bin 490134 -> 490447 bytes state/map.yaml | 13 +- 6 files changed, 383 insertions(+), 8 deletions(-) diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index 6ffc718e..d7a57300 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -781,6 +781,7 @@ pub use runtime_spine::commit_repo_frontier_modeling_request; pub use runtime_spine::commit_repo_frontier_verification_request_for_chain; pub use runtime_spine::commit_repo_model_admission; pub use runtime_spine::commit_repo_model_claim_challenge; +pub use runtime_spine::commit_repo_model_claim_repair_request; pub use runtime_spine::complete_runtime_job; pub use runtime_spine::create_runtime_job; pub use runtime_spine::create_runtime_session; diff --git a/epiphany-core/src/repo_model_gateway.rs b/epiphany-core/src/repo_model_gateway.rs index 20f99295..9177dbe8 100644 --- a/epiphany-core/src/repo_model_gateway.rs +++ b/epiphany-core/src/repo_model_gateway.rs @@ -49,6 +49,10 @@ pub const REPO_FRONTIER_PROPOSAL_MODELING_LAUNCH_BINDING_CONTRACT: &str = pub const REPO_MODEL_CLAIM_CHALLENGE_SCHEMA_VERSION: &str = "epiphany.eyes.repo_model_claim_challenge.v0"; pub const REPO_MODEL_CLAIM_CHALLENGE_CONTRACT: &str = "epiphany.repo_model_claim_challenge.v0"; +pub const REPO_MODEL_CLAIM_REPAIR_REQUEST_SCHEMA_VERSION: &str = + "epiphany.modeling.repo_model_claim_repair_request.v0"; +pub const REPO_MODEL_CLAIM_REPAIR_REQUEST_CONTRACT: &str = + "epiphany.repo_model_claim_repair_request.v0"; #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "snake_case")] @@ -102,6 +106,58 @@ pub struct RepoModelClaimChallenge { pub contract: String, } +#[derive(Debug, Clone, PartialEq, Eq, DatabaseEntry)] +#[cultcache( + type = "epiphany.modeling.repo_model_claim_repair_request", + schema = "RepoModelClaimRepairRequest" +)] +pub struct RepoModelClaimRepairRequest { + #[cultcache(key = 0)] + pub schema_version: String, + #[cultcache(key = 1)] + pub request_id: String, + #[cultcache(key = 2)] + pub challenge_id: String, + #[cultcache(key = 3)] + pub challenge_sha256: String, + #[cultcache(key = 4)] + pub eyes_evidence_packet_id: String, + #[cultcache(key = 5)] + pub eyes_evidence_packet_sha256: String, + #[cultcache(key = 6)] + pub source_result_id: String, + #[cultcache(key = 7)] + pub source_job_id: String, + #[cultcache(key = 8)] + pub original_admission_receipt_id: String, + #[cultcache(key = 9)] + pub current_admission_receipt_id: String, + #[cultcache(key = 10)] + pub model_revision: u64, + #[cultcache(key = 11)] + pub model_hash: String, + #[cultcache(key = 12)] + pub target_claim_id: String, + #[cultcache(key = 13)] + pub target_claim_sha256: String, + #[cultcache(key = 14)] + pub runtime_id: String, + #[cultcache(key = 15)] + pub thread_id: String, + #[cultcache(key = 16)] + pub affected_frontier: Vec, + #[cultcache(key = 17)] + pub requested_at: String, + #[cultcache(key = 18)] + pub contract: String, +} + +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct RepoModelClaimRepairFrontierRef { + pub frontier_item_id: String, + pub frontier_item_sha256: String, +} + #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "snake_case")] pub enum RepoFrontierProposalSourceKind { diff --git a/epiphany-core/src/runtime_spine.rs b/epiphany-core/src/runtime_spine.rs index 5f51c163..ddfd7c48 100644 --- a/epiphany-core/src/runtime_spine.rs +++ b/epiphany-core/src/runtime_spine.rs @@ -55,6 +55,7 @@ use crate::repo_model_gateway::{ REPO_MODEL_ADMISSION_RECEIPT_SCHEMA_VERSION, REPO_MODEL_ADMISSION_RECEIPT_TYPE, REPO_MODEL_ADMISSION_REVIEW_SCHEMA_VERSION, REPO_MODEL_ADMISSION_REVIEW_TYPE, REPO_MODEL_CLAIM_CHALLENGE_CONTRACT, REPO_MODEL_CLAIM_CHALLENGE_SCHEMA_VERSION, + REPO_MODEL_CLAIM_REPAIR_REQUEST_CONTRACT, REPO_MODEL_CLAIM_REPAIR_REQUEST_SCHEMA_VERSION, REPO_MODEL_MIGRATION_CONTRACT, REPO_MODEL_MIGRATION_RECEIPT_SCHEMA_VERSION, REPO_MODEL_MIGRATION_RECEIPT_TYPE, RepoFrontierHandsAuthority, RepoFrontierModelingRequest, RepoFrontierNextOrgan, RepoFrontierPlanAdoption, RepoFrontierPlanCandidate, @@ -62,7 +63,7 @@ use crate::repo_model_gateway::{ RepoFrontierProposalModelingLaunchBinding, RepoFrontierProposalModelingRequest, RepoFrontierRoute, RepoFrontierVerdictDisposition, RepoFrontierWorkProposal, RepoModelAdmissionReceipt, RepoModelAdmissionReview, RepoModelClaimChallenge, - RepoModelMigrationReceipt, + RepoModelClaimRepairRequest, RepoModelMigrationReceipt, }; use crate::soul_gateway::SoulVerdictReceipt; use crate::soul_gateway::*; @@ -769,6 +770,7 @@ pub fn runtime_spine_cache(store_path: impl AsRef) -> Result { cache.register_entry_type::()?; cache.register_entry_type::()?; cache.register_entry_type::()?; + cache.register_entry_type::()?; cache.register_entry_type::()?; cache.register_entry_type::()?; cache.register_entry_type::()?; @@ -2579,8 +2581,17 @@ fn current_repo_model_claim_challenges( ) -> Result> { let mut current = Vec::new(); for challenge in cache.get_all::()? { - if challenge.model_revision == model.model_revision && challenge.model_hash == model_hash { - validate_repo_model_claim_challenge_chain(cache, model, model_hash, &challenge)?; + let Some(claim) = model + .nodes + .iter() + .find(|node| node.id == challenge.target_claim_id) + else { + continue; + }; + if format!("{:x}", Sha256::digest(rmp_serde::to_vec_named(claim)?)) + == challenge.target_claim_sha256 + { + validate_repo_model_claim_challenge_chain(cache, model, model_hash, &challenge, false)?; current.push(challenge); } } @@ -2592,6 +2603,7 @@ fn validate_repo_model_claim_challenge_chain( model: &crate::EpiphanyMemoryGraphSnapshot, model_hash: &str, challenge: &RepoModelClaimChallenge, + require_current_model: bool, ) -> Result<()> { if challenge.schema_version != REPO_MODEL_CLAIM_CHALLENGE_SCHEMA_VERSION || challenge.contract != REPO_MODEL_CLAIM_CHALLENGE_CONTRACT @@ -2619,7 +2631,9 @@ fn validate_repo_model_claim_challenge_chain( { return Err(anyhow!("claim challenge substituted Eyes evidence")); } - if challenge.model_revision != model.model_revision || challenge.model_hash != model_hash { + if require_current_model + && (challenge.model_revision != model.model_revision || challenge.model_hash != model_hash) + { return Err(anyhow!("claim challenge model revision is stale")); } let receipts = cache @@ -2628,8 +2642,8 @@ fn validate_repo_model_claim_challenge_chain( .filter(|receipt| { receipt.schema_version == REPO_MODEL_ADMISSION_RECEIPT_SCHEMA_VERSION && receipt.contract == REPO_MODEL_ADMISSION_CONTRACT - && receipt.admitted_revision == model.model_revision - && receipt.admitted_hash == model_hash + && receipt.admitted_revision == challenge.model_revision + && receipt.admitted_hash == challenge.model_hash }) .collect::>(); if receipts.len() != 1 || receipts[0].receipt_id != challenge.admission_receipt_id { @@ -2684,7 +2698,7 @@ pub fn commit_repo_model_claim_challenge( if challenge.model_revision != model.model_revision || challenge.model_hash != model_hash { return Err(anyhow!("claim challenge model revision is stale")); } - validate_repo_model_claim_challenge_chain(&cache, &model, &model_hash, challenge)?; + validate_repo_model_claim_challenge_chain(&cache, &model, &model_hash, challenge, true)?; if let Some(existing) = cache.get::(&challenge.challenge_id)? { return if existing == *challenge { Ok(()) @@ -2733,6 +2747,190 @@ pub fn commit_repo_model_claim_challenge( Ok(()) } +pub fn commit_repo_model_claim_repair_request( + store_path: impl AsRef, + challenge_id: &str, + requested_at: &str, +) -> Result { + validate_non_empty(challenge_id, "claim repair challenge id")?; + chrono::DateTime::parse_from_rfc3339(requested_at) + .map_err(|_| anyhow!("claim repair request timestamp must be RFC3339"))?; + let store_path = store_path.as_ref(); + let mut cache = runtime_spine_cache(store_path)?; + cache.pull_all_backing_stores()?; + let backing = SingleFileMessagePackBackingStore::new(store_path); + let envelopes = backing.pull_all()?; + let model_envelope = envelopes + .iter() + .find(|entry| { + entry.r#type == crate::MEMORY_GRAPH_TYPE && entry.key == crate::MEMORY_GRAPH_KEY + }) + .cloned() + .ok_or_else(|| anyhow!("claim repair request requires canonical model"))?; + let entry: crate::EpiphanyMemoryGraphEntry = rmp_serde::from_slice(&model_envelope.payload)?; + crate::validate_memory_graph_entry(&entry)?; + let model = entry.snapshot()?; + let model_hash = crate::memory_graph_model_hash(&model)?; + let challenge = cache + .get::(challenge_id)? + .ok_or_else(|| anyhow!("claim repair request requires exact challenge"))?; + validate_repo_model_claim_challenge_chain(&cache, &model, &model_hash, &challenge, false)?; + let packet = cache + .get::(&challenge.eyes_evidence_packet_id)? + .ok_or_else(|| anyhow!("claim repair request requires exact Eyes packet"))?; + let original_admission = cache + .get::(&challenge.admission_receipt_id)? + .ok_or_else(|| anyhow!("claim repair request requires original challenge admission"))?; + let identity = cache + .get::(RUNTIME_IDENTITY_KEY)? + .ok_or_else(|| anyhow!("claim repair request requires runtime identity"))?; + let thread = cache + .get::(crate::THREAD_STATE_KEY)? + .ok_or_else(|| anyhow!("claim repair request requires authoritative thread"))?; + let claim = model + .nodes + .iter() + .find(|node| node.id == challenge.target_claim_id) + .ok_or_else(|| anyhow!("claim repair target is no longer present"))?; + if format!("{:x}", Sha256::digest(rmp_serde::to_vec_named(claim)?)) + != challenge.target_claim_sha256 + { + return Err(anyhow!( + "claim repair challenge is already resolved by a changed claim" + )); + } + let receipts = cache + .get_all::()? + .into_iter() + .filter(|receipt| { + receipt.schema_version == REPO_MODEL_ADMISSION_RECEIPT_SCHEMA_VERSION + && receipt.contract == REPO_MODEL_ADMISSION_CONTRACT + && receipt.admitted_revision == model.model_revision + && receipt.admitted_hash == model_hash + }) + .collect::>(); + if receipts.len() != 1 { + return Err(anyhow!( + "claim repair request requires unique current admission receipt" + )); + } + let challenge_sha256 = format!("{:x}", Sha256::digest(rmp_serde::to_vec_named(&challenge)?)); + let request_id = format!("repo-model-claim-repair-{challenge_id}"); + let mut affected_frontier = model + .frontier + .iter() + .filter(|item| item.target_claim_ids.contains(&challenge.target_claim_id)) + .map(|item| { + Ok(crate::RepoModelClaimRepairFrontierRef { + frontier_item_id: item.id.clone(), + frontier_item_sha256: format!( + "{:x}", + Sha256::digest(rmp_serde::to_vec_named(item)?) + ), + }) + }) + .collect::>>()?; + affected_frontier.sort_by(|a, b| a.frontier_item_id.cmp(&b.frontier_item_id)); + let request = RepoModelClaimRepairRequest { + schema_version: REPO_MODEL_CLAIM_REPAIR_REQUEST_SCHEMA_VERSION.into(), + request_id: request_id.clone(), + challenge_id: challenge.challenge_id.clone(), + challenge_sha256, + eyes_evidence_packet_id: packet.packet_id.clone(), + eyes_evidence_packet_sha256: challenge.eyes_evidence_packet_sha256.clone(), + source_result_id: challenge.source_result_id.clone(), + source_job_id: challenge.source_job_id.clone(), + original_admission_receipt_id: original_admission.receipt_id.clone(), + current_admission_receipt_id: receipts[0].receipt_id.clone(), + model_revision: model.model_revision, + model_hash, + target_claim_id: challenge.target_claim_id.clone(), + target_claim_sha256: challenge.target_claim_sha256.clone(), + runtime_id: identity.runtime_id.clone(), + thread_id: thread.thread_id.clone(), + affected_frontier, + requested_at: requested_at.to_string(), + contract: REPO_MODEL_CLAIM_REPAIR_REQUEST_CONTRACT.into(), + }; + if let Some(existing) = cache.get::(&request_id)? { + return if existing == request { + Ok(existing) + } else { + Err(anyhow!("claim repair request identity collision")) + }; + } + let challenge_envelope = envelopes + .iter() + .find(|entry| { + entry.r#type == "epiphany.eyes.repo_model_claim_challenge" + && entry.key == challenge.challenge_id + }) + .cloned() + .ok_or_else(|| anyhow!("claim repair challenge envelope is missing"))?; + let packet_envelope = envelopes + .iter() + .find(|entry| entry.r#type == EYES_EVIDENCE_PACKET_TYPE && entry.key == packet.packet_id) + .cloned() + .ok_or_else(|| anyhow!("claim repair packet envelope is missing"))?; + let original_admission_envelope = envelopes + .iter() + .find(|entry| { + entry.r#type == REPO_MODEL_ADMISSION_RECEIPT_TYPE + && entry.key == original_admission.receipt_id + }) + .cloned() + .ok_or_else(|| anyhow!("claim repair original admission envelope is missing"))?; + let current_admission_envelope = envelopes + .iter() + .find(|entry| { + entry.r#type == REPO_MODEL_ADMISSION_RECEIPT_TYPE && entry.key == receipts[0].receipt_id + }) + .cloned() + .ok_or_else(|| anyhow!("claim repair current admission envelope is missing"))?; + let identity_envelope = envelopes + .iter() + .find(|entry| entry.r#type == RUNTIME_IDENTITY_TYPE && entry.key == RUNTIME_IDENTITY_KEY) + .cloned() + .ok_or_else(|| anyhow!("claim repair identity envelope is missing"))?; + let thread_envelope = envelopes + .iter() + .find(|entry| entry.r#type == THREAD_STATE_TYPE && entry.key == crate::THREAD_STATE_KEY) + .cloned() + .ok_or_else(|| anyhow!("claim repair thread envelope is missing"))?; + let (request_envelope, _) = cache.prepare_entry(&request_id, &request)?; + let mut expected = vec![ + model_envelope.clone(), + challenge_envelope.clone(), + packet_envelope.clone(), + original_admission_envelope.clone(), + identity_envelope.clone(), + thread_envelope.clone(), + ]; + let mut replacement = vec![ + model_envelope, + challenge_envelope, + packet_envelope, + original_admission_envelope, + identity_envelope, + thread_envelope, + ]; + if request.current_admission_receipt_id != request.original_admission_receipt_id { + expected.push(current_admission_envelope.clone()); + replacement.push(current_admission_envelope); + } + replacement.push(request_envelope); + if !backing.compare_and_swap_batch(&expected, replacement)? { + let mut reloaded = runtime_spine_cache(store_path)?; + reloaded.pull_all_backing_stores()?; + return match reloaded.get::(&request_id)? { + Some(existing) if existing == request => Ok(existing), + Some(_) => Err(anyhow!("claim repair request immutable collision")), + None => Err(anyhow!("claim repair request lost exact causal CAS")), + }; + } + Ok(request) +} + pub fn put_repo_frontier_plan_candidate( store_path: impl AsRef, candidate: &RepoFrontierPlanCandidate, @@ -7070,6 +7268,104 @@ mod tests { Ok(()) } + #[test] + fn immediate_claim_repair_request_deduplicates_shared_admission_companion() -> Result<()> { + let root = tempdir()?; + let (store, challenge) = claim_challenge_fixture(root.path(), "repair-immediate", "Hands")?; + commit_repo_model_claim_challenge(&store, &challenge)?; + let request = commit_repo_model_claim_repair_request( + &store, + &challenge.challenge_id, + "2026-07-13T04:02:00Z", + )?; + assert_eq!( + request.original_admission_receipt_id, + request.current_admission_receipt_id + ); + let mut cache = runtime_spine_cache(&store)?; + cache.pull_all_backing_stores()?; + assert_eq!( + cache.get_all::()?, + vec![request] + ); + Ok(()) + } + + #[test] + fn claim_challenge_survives_unrelated_admission_and_emits_inert_exact_request() -> Result<()> { + let root = tempdir()?; + let (store, challenge) = claim_challenge_fixture(root.path(), "repair", "Hands")?; + commit_repo_model_claim_challenge(&store, &challenge)?; + + // An unrelated proposal admission advances the model without changing the + // challenged claim. That must not launder the Eyes pressure away. + let before_unrelated = runtime_current_repo_model(&store)?.unwrap(); + let (unrelated_result, unrelated_review) = repo_model_result_and_review( + &store, + "unrelated-after-challenge", + "unrelated-after-challenge-job", + &before_unrelated, + "unrelated-after-challenge-review", + )?; + put_runtime_role_worker_result(&store, &unrelated_result)?; + commit_repo_model_admission(&store, &unrelated_result.result_id, &unrelated_review)?; + let after_unrelated = runtime_current_repo_model(&store)?.unwrap(); + let after_unrelated_hash = crate::memory_graph_model_hash(&after_unrelated)?; + let challenged_claim_after_unrelated = after_unrelated + .nodes + .iter() + .find(|node| node.id == challenge.target_claim_id) + .unwrap(); + assert_eq!( + format!( + "{:x}", + Sha256::digest(rmp_serde::to_vec_named(challenged_claim_after_unrelated)?) + ), + challenge.target_claim_sha256 + ); + let mut cache = runtime_spine_cache(&store)?; + cache.pull_all_backing_stores()?; + assert_eq!( + current_repo_model_claim_challenges(&cache, &after_unrelated, &after_unrelated_hash)? + .len(), + 1 + ); + + let request = commit_repo_model_claim_repair_request( + &store, + &challenge.challenge_id, + "2026-07-13T04:03:00Z", + )?; + assert_eq!(request.target_claim_id, challenge.target_claim_id); + assert_eq!( + commit_repo_model_claim_repair_request( + &store, + &challenge.challenge_id, + "2026-07-13T04:03:00Z" + )?, + request + ); + assert_eq!( + request.eyes_evidence_packet_id, + challenge.eyes_evidence_packet_id + ); + assert_eq!( + request.original_admission_receipt_id, + challenge.admission_receipt_id + ); + assert_ne!(request.current_admission_receipt_id, ""); + assert_eq!(request.runtime_id, "proposal-runtime-repair"); + assert!( + commit_repo_model_claim_repair_request( + &store, + &challenge.challenge_id, + "2026-07-13T04:04:00Z" + ) + .is_err() + ); + Ok(()) + } + fn admit_route_and_authorize_hands( store: &Path, intent: &HandsActionIntent, diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index cae8f22a..26827cfb 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -49,6 +49,17 @@ Soul review passes. Next build a typed Modeling challenge-repair request and Mind admission path so evidence can reshape the shared map, then let Self and Imagination revise the campaign from that repaired substrate. +The first repair foundation is now inert and exact. A challenge remains live +across unrelated RepoModel revisions while its target claim bytes are unchanged; +an unrelated edit can no longer launder Eyes pressure away. Self can persist one +`RepoModelClaimRepairRequest` binding the challenge and Eyes packet, original +and unique current admissions, current model and claim, runtime/thread, and +affected frontier hashes in one CAS. It deliberately has no repair patch +purpose, result echo, worker launch authority, or Mind admission effect. Core +proof is 306 passed/1 ignored and Soul passes. Next wire coordinator-owned typed +Modeling launch projection/binding and exclusive result correlation before +introducing any repair actuator. + Do not substitute the first linear frontier identity proof for that larger lesson. `Modeling -> Mind -> Self -> Hands -> Soul -> Modeling` proves that one wound can retain causal identity. The awakened anatomy also needs typed backward diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index bb73a9b37f2c2b540e7c236a1f4b2d7303c44bf7..fd56e51294430e6b9d165712e04d67f858c09ff9 100644 GIT binary patch delta 355 zcmX|+ze)o^5XQapPY^9F1PKh-CT?<(2-gL%Q&7*!ZoQo(i+8)1{c}W{6c#>!o|TVa zAy|knVC&O}t#gN1d^4~!^ZUMi`fh*yv|qP_jX@Omqsz~w*6qvNZZHdi=esJrufl*- z_hr%wX_d70UWKh-zV-MK^`c?7chK$cUqn${Gak;|&SL$TD}e%}LgN7EJav#}T;^Sa z1(ya4&OBNNW9^mTPHGjy(G6Nir##D0O%Mu$)_Q|LrIaPjyfT<^N8EEP^obUj5vY`w z&TZ$Pc_kN0SSWaUjgE1VOWSO)yuM&f4mLJgIf;fDPd!KGrUtnn4}s<{@!=@xfYJnR pGSeqKce&P(Gly1-)l9jb6SRdp>(VN)pK%#vHr=uj<`vo$ne1rf1 delta 61 zcmX^AU3S`6*$onm+y;hLre;yc7}zU|H!Cw1GBVC?p32ldm5C9EK{PWEvj8zG5VLKc J%EZoC0RVu$6Au6Y diff --git a/state/map.yaml b/state/map.yaml index 72a06e31..a613474e 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -402,6 +402,17 @@ current_status: forbidden authorities. Verification: core 304 passed/1 ignored, hostile immutable/substitution/no-write proofs, identical planning/Hands gates, and independent Soul PASS. + claim_repair_request_authority: > + A still-live Eyes challenge now persists across unrelated RepoModel + revisions while the exact challenged claim bytes remain unchanged. Self may + mint one inert immutable RepoModelClaimRepairRequest that binds the + challenge and packet hashes, original and unique current Mind admissions, + current model and exact claim, runtime/thread identity, and every affected + frontier item hash in one causal CAS. The request has no patch purpose, + worker authority, result echo, model-write path, or Mind admission effect. + Immediate original=current admission companions are deduplicated; retry and + CAS-loss accept only the identical typed document. Verification: core 306 + passed/1 ignored and independent Soul PASS. latest_cut: > The bridge host seam has been cut down: target-specific Hands prompt scar tissue was purged, bridge manifests carry the retained Codex websocket fork @@ -703,4 +714,4 @@ current_status: - Service lifecycle receipt history is now event-only: `load_epiphany_cultmesh_daemon_service_lifecycle_receipts` filters out the `epiphany-local/daemon-service-lifecycle-receipt/latest` mirror, while `load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt` remains the latest-state reader. Focused unit test `service_lifecycle_receipt_history_excludes_latest_mirror` proves two per-receipt writes return exactly two history records and latest points at the second. Fresh smoke `verse-query-lifecycle-history-filter-smoke` and live overview/triage `local-20260618-145632-497-efac6f0d` / `local-20260618-145632-321-867947af` prove compact swarm sights still expose service lifecycle attention plus the present elevated runbook artifact without daemon pokes or service mutation. Do not use a broad unscoped cargo test filter for this check on Windows; it fans out across bin harnesses and hit a broken pipe during this pass. - `epiphany-verse-query seed-compact` is the compact seed receipt for wrappers and read-only rites. The older `seed` command still prints the full local Verse context for explicit debugging, but compact wrapper modes now avoid full `seed`/final `query` readback after the combined overview proof exposed Windows debug stack overflow from full-context serialization pressure. last_completed_repo_swarm_cut: Huginn live-fire has crossed the first real repo Body from Persona pressure to branch-local Hands commit and Soul/Mind closure, and now has repeatable closure and redacted-public-proof mouths. On `E:\Projects\Huginn` branch `epiphany/huginn/first-awakening`, `tools/epiphany_local_run.ps1 -Mode repo-persona-intake` accepted item `huginn-inspection-readback-livefire`, Weksa/Persona intake remained sealed, and `epiphany-work derive-plan` lowered it to model-authored safe family `repo.status_section` for `README.md` only. `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` advanced four bounded pulses: run-from-plan, adopt-from-plan, execute-from-plan, and close-from-execute. Huginn commit `e9b07c38fceabbdc89ea35c2156326c80c0393a2` updated only `README.md`; closure receipt `.epiphany\work\work-close-huginn-inspection-readback-livefire.json` records status `closed`, Soul verdict `passed`, Mind state commit `repo-work-close-huginn-inspection-readback-livefire-mind-commit`, safe family `repo.status_section`, path scope `README.md`, Bifrost publication gate, and `privateStateExposed=false`. Verification also ran Huginn's TypeScript compiler through concrete Node path: `C:\Program Files\nodejs\node.exe E:\Projects\Huginn\node_modules\typescript\bin\tsc -p tsconfig.json` passed. Native verifier `epiphany-repo-livefire-closure-smoke --workspace E:\Projects\Huginn --item huginn-inspection-readback-livefire --expected-path README.md --expected-family repo.status_section --expected-gate awaiting-publication --expected-blocker bifrost-publication-missing` checks closure receipt, Mind map entry, overview gate/blocker, authority seals, and `git show` changed paths, returning `status=ok`, `soulVerdict=passed`, `publicationGate=Bifrost`, and `privateStateExposed=false`. Wrapper `tools/epiphany_local_run.ps1 -Mode repo-livefire-closure -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exposes the same read-only proof through the local operator mouth; artifact `local-20260621-190156-803-2f85ba15` printed commit, path, gate, blocker, Soul verdict, Mind commit receipt, and `privateStateExposed=False` without push, merge, publication, or target mutation. New wrapper `tools/epiphany_local_run.ps1 -Mode repo-work-public-proof -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exports the redacted proof bundle and repo-local Verse index without publishing; artifact `local-20260621-190645-345-4555b1dc` wrote `.epiphany\public\proof-bundles\repo-work-public-proof-huginn-inspection-readback-livefire.json`, proof id `repo-work-public-proof-huginn-inspection-readback-livefire`, SHA-256 `857545b199f3e37eb06c2e757e5cfc201958e46667bb1f8403fd333a22620f63`, nine artifact rows, zero publication rows, and `privateStateExposed=False`. swarm overview readback `local-20260621-190701-140-b9519ec6` sees the `REPO-WORK-PUBLIC-PROOF` row and action row from Huginn's repo-local Verse with the same SHA-256 while Bifrost publication remains missing. Launcher compact modes are now named compact operator-context modes instead of read-only modes, and `bifrost-public-proof` summaries print item, target public Verse, room, proof SHA-256, review receipts, and credit receipts so publication receipts are auditable without claiming upstream sync. - next_action: Continue the Aetheria-shaped correction ecology from the landed selected-proposal ingress and Eyes claim-challenge pressure. Eyes can now challenge one exact admitted claim without RepoModel write authority, and Self withholds only frontier targeting that challenged claim from planning and Hands. Next create the typed Modeling challenge-repair request/result/admission path so Modeling can revise the exact claim and affected frontier through Mind, after which the old challenge naturally loses current-revision pressure. Then bind the existing Self planning request to a real Imagination worker result and Mind Adopt/Refuse/Hold path before inventing any execution route. Add the production semantic index over typed graph claims so organs retrieve the living migration map instead of rediscovering files. Do not infer identities from prose/evidence intersection, revive epiphany-work, add metadata adapters, store challenge ids inside RepoModel, or let prompt projections become authority. The intentionally absent Other-world action still requires a typed intent and real owner. Keep closure's zero-substring invariant. + next_action: Complete the Aetheria-shaped corrective nerve from the landed inert RepoModelClaimRepairRequest. The request now survives unrelated model revisions and exactly binds challenge, Eyes packet, original/current admissions, model, claim, affected frontier, runtime, and thread without any model-write authority. Next make the coordinator launch transaction the sole writer of a typed Modeling repair projection and immutable launch-document binding; make the Modeling result echo that request exclusively; then add a dedicated narrow patch purpose and Mind full-chain admission that requires the exact challenged claim bytes to change. No ambient Modeling result, ordinary Evolution, prompt prose, evidence intersection, UI state, or unrelated model revision may clear pressure. After that, bind the existing Self planning request to a real Imagination worker result and Mind Adopt/Refuse/Hold path. Add the production semantic index over typed graph claims. Do not revive Proprioception, epiphany-work, metadata adapters, challenge ids inside RepoModel, or generic Modeling work-order routers. Keep closure's zero-substring invariant.