From 28662cb807c3dd7cb2af5b66b64a3e3c95c6617f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 21:05:35 +0200 Subject: [PATCH 001/256] Map: ship log for the B3 install, the Raven actuator and the bulk fetch bug Co-Authored-By: Claude Opus 5.5 --- docs/route-continuity-cut.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/route-continuity-cut.md b/docs/route-continuity-cut.md index 241115c..49696b1 100644 --- a/docs/route-continuity-cut.md +++ b/docs/route-continuity-cut.md @@ -83,6 +83,22 @@ Nothing is fenced, so the incumbent is untouched. - `cargo mutants --in-diff`: 24 caught, 0 missed. - A narrow Soul pass gates the install. +**Ship log, 2026-09-29 (host clock).** +- B3 merged at `d32395a` and installed on Yggdrasil at 18:36 UTC, with sha `854aa351`. It migrated 5 control + records. The store backup is `/root/idunn-store-backup-20260929T183604Z-pre-route-b3`. +- Nginx reloads fell from 82 per 10 minutes to 0. Odin continuity timeouts fell from 92 in 6 hours to 0. +- **Raven's actuator (built 2026-09-11) could not decode the new plan types.** A rebuild then found that the + Windows `idunn-host` has not compiled since S1: `FROZEN_SOURCE_SYMLINK_TARGET_LIMIT` was defined for unix + only. That is fixed at `d3db582`. + - The new actuator (sha `f36bf1fc`) is swapped in on Raven. The old one is kept as + `idunn-host.exe.prev-20260929T190006Z`. + - Follow-up: nothing builds the Windows actuator in verification. +- raven-muninn was admitted at 19:02 by Odin correlation, replacing the held generation. +- **The streampixels-service deploy failed before fencing.** The S1 `bulk_fetch_objects` asks for bare blob + ids with `git fetch --stdin`. In a `blob:none` clone, the connectivity check then fails with "bad revision + ". The fix, with a test, is in Hands on `fix/bulk-blob-fetch`: a promisor-style fetch with + `--filter=blob:none` and `fetch.negotiationAlgorithm=noop`. + **Ruling, 2026-09-30 (operator): the dead-hold report is stored on the generation.** - Add an optional `last_error` to `AdmittedGeneration` (new key 21), and make `status` render admitted generations. From 7480ee9d1c7288a27ed63859ee7d62bb9dab28d1 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 21:55:34 +0200 Subject: [PATCH 002/256] Map: StreamPixels ship completed through Idunn Co-Authored-By: Claude Opus 5.5 --- docs/route-continuity-cut.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/route-continuity-cut.md b/docs/route-continuity-cut.md index 49696b1..caff977 100644 --- a/docs/route-continuity-cut.md +++ b/docs/route-continuity-cut.md @@ -99,6 +99,33 @@ Nothing is fenced, so the incumbent is untouched. ". The fix, with a test, is in Hands on `fix/bulk-blob-fetch`: a promisor-style fetch with `--filter=blob:none` and `fetch.negotiationAlgorithm=noop`. +**Ship completed, 2026-09-29 (host clock).** +- **Bulk-fetch fix.** Merged at `583b2a7` and installed at 19:17. The Idunn sha is `01bde676`. +- **The first streampixels-service redeploy failed after fencing.** The incumbent was restored, and every restart + was refused by Odin with "runtime presence publisher sequence was reordered". Cause: Odin compared publisher + sequences across incarnations, and the TS publisher counts from 1 per process. + - The operator ruled: fix Odin's rule. + - Odin `db041ec` compares sequences only while the stored presence still authenticates under the current + activation. Soul said deploy, with follow-ups; Odin was deployed at 19:4x. +- **Admissions.** + - streampixels-service was admitted at 19:50 on s3-c2. + - The web binding dropped `STREAMPIXELS_ODIN_CULTMESH_RUDP`, and gamecult-ops `37b5ed9` does the same. + - streampixels-web was admitted with Odin-free readiness. +- **Public cutover at 19:54.** The vhost upstreams moved to `:8833` (web) and `:8832` (service). The backup is + `/root/streampixels.gamecult.org.conf.bak-20260929-195415-pre-idunn-upstreams`. + - `https://streampixels.gamecult.org/api/catalog` returns 200 (120,893 B), after being 502 since migration 013. + - The overlay SSE stream answers `text/event-stream`, and the ops checker passes. +- **Legacy units.** `streampixels-web.service` is disabled and stopped. `streampixels-service.service` is + disabled, and was already stopped. +- **Follow-ups.** + - The C2 acceptance hour: sample the nginx reload counter at T0 and T0+60, with no rejected challenges. + - Nothing builds the Windows `idunn-host` in verification. + - Odin presence: pin the stored-at re-authentication time (Soul's M3 survived), and consider checking activation + identity directly rather than any failure to authenticate. + - The dead-hold report field (ruled). + - B2 rework on B3. + - Odin's CultLib pin bump, after the stray-packet merge. + **Ruling, 2026-09-30 (operator): the dead-hold report is stored on the generation.** - Add an optional `last_error` to `AdmittedGeneration` (new key 21), and make `status` render admitted generations. From 94c7691cb610aea8b43f00bedae1ea7178fa5599 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 22:56:10 +0200 Subject: [PATCH 003/256] Map: the C2 acceptance hour passed; Odin 5c37860 deployed Co-Authored-By: Claude Opus 5.5 --- docs/route-continuity-cut.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/route-continuity-cut.md b/docs/route-continuity-cut.md index caff977..f8c8306 100644 --- a/docs/route-continuity-cut.md +++ b/docs/route-continuity-cut.md @@ -126,6 +126,16 @@ Nothing is fenced, so the incumbent is untouched. - B2 rework on B3. - Odin's CultLib pin bump, after the stray-packet merge. +**C2 acceptance hour passed, 2026-09-29 19:55-20:55 UTC (21:55-22:55 CEST).** +- 1 nginx reload, which was Odin's own route promotion during its `5c37860` deploy. +- 0 rejected StreamPixels challenges, 0 Odin continuity timeouts, and Idunn `NRestarts=0`. +- One running unit each for service, web and Odin. Public `/` and `/api/catalog` return 200. +- Also deployed in the window: Odin `5c37860`, carrying CultLib `3bf1c0c` (RUDP stray-packet hardening in every + runtime), Sleipnir removed, and presence ordering decided by activation identity. +- Still open for Odin: it exits when its 64-slot RUDP session table fills, because its own heartbeat publish + fails. Publishers that never Disconnect hold slots for 30 s. The fix is in Hands. +- The second run, with Odin broken on purpose, remains the operator's to schedule. + **Ruling, 2026-09-30 (operator): the dead-hold report is stored on the generation.** - Add an optional `last_error` to `AdmittedGeneration` (new key 21), and make `status` render admitted generations. From 5f8417589d22f84a306d0329444a41d01884eb4f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 23:38:26 +0200 Subject: [PATCH 004/256] Candidate cleanup owed is one method both abort intents share The two-flag helper let either call site swap or fold an argument unnoticed. DeploymentTransaction::candidate_cleanup_owed reads the transaction itself, and a four-row table drives the method and both intents. Co-Authored-By: Claude Sonnet 5.5 --- src/control_plane.rs | 77 ++++++++++++++++++++++++++------------------ 1 file changed, 45 insertions(+), 32 deletions(-) diff --git a/src/control_plane.rs b/src/control_plane.rs index 7943698..c068360 100644 --- a/src/control_plane.rs +++ b/src/control_plane.rs @@ -1370,6 +1370,17 @@ impl DeploymentTransaction { } } + /// Whether an abort owes the candidate's durable cleanup: it does once an + /// activation was issued or a workload was observed, either of which leaves + /// something behind. + fn candidate_cleanup_owed(&self) -> CleanupEvidence { + if self.activation.is_some() || self.workload.is_some() { + CleanupEvidence::Pending + } else { + CleanupEvidence::Skipped + } + } + fn rejected(command: &DeploymentCommand, error: anyhow::Error, now: u64) -> Result { let mut transaction = Self::new(command, command.selector.clone(), 0, None, now)?; let detail = truncate(&format!("{error:#}"), 2048); @@ -7991,10 +8002,7 @@ fn incumbent_was_stopped_during_fencing(fencing: &FencingEvidence) -> bool { fn pre_fencing_abort_intent(transaction: &DeploymentTransaction, error: &str) -> PreFencingAbort { PreFencingAbort { error: truncate(error, 2048), - candidate_cleanup: candidate_cleanup_requirement( - transaction.activation.is_some(), - transaction.workload.is_some(), - ), + candidate_cleanup: transaction.candidate_cleanup_owed(), topology_reconciliation: transaction.abort_topology_reconciliation(), source_cleanup: if transaction.command_kind == CommandKind::Deploy { CleanupEvidence::Pending @@ -8025,10 +8033,7 @@ fn post_fencing_abort_intent( } else { CleanupEvidence::Skipped }, - candidate_cleanup: candidate_cleanup_requirement( - transaction.activation.is_some(), - transaction.workload.is_some(), - ), + candidate_cleanup: transaction.candidate_cleanup_owed(), topology_reconciliation: transaction.abort_topology_reconciliation(), source_cleanup: if transaction.command_kind == CommandKind::Deploy { CleanupEvidence::Pending @@ -8038,17 +8043,6 @@ fn post_fencing_abort_intent( } } -fn candidate_cleanup_requirement( - has_prepared_activation: bool, - has_workload_observation: bool, -) -> CleanupEvidence { - if has_prepared_activation || has_workload_observation { - CleanupEvidence::Pending - } else { - CleanupEvidence::Skipped - } -} - fn sequence_requires_admission( latest: Option<&TopologyEvidence>, maximum_admitted_sequence: u64, @@ -9803,19 +9797,38 @@ mod tests { } #[test] - fn activation_without_workload_still_requires_durable_candidate_cleanup() { - assert_eq!( - candidate_cleanup_requirement(true, false), - CleanupEvidence::Pending - ); - assert_eq!( - candidate_cleanup_requirement(true, true), - CleanupEvidence::Pending - ); - assert_eq!( - candidate_cleanup_requirement(false, false), - CleanupEvidence::Skipped - ); + fn candidate_cleanup_is_owed_when_an_activation_or_a_workload_exists() -> Result<()> { + // (activation issued, workload observed, expected cleanup) + let rows = [ + (false, false, CleanupEvidence::Skipped), + (true, false, CleanupEvidence::Pending), + (false, true, CleanupEvidence::Pending), + (true, true, CleanupEvidence::Pending), + ]; + for (has_activation, has_workload, expected) in rows { + let world = ContinuityProjection::after_candidate_observed()?; + let mut transaction = world.continuity_transaction()?; + if !has_activation { + transaction.activation = None; + } + transaction.workload = has_workload.then(|| workload(1000, 1, 2)); + assert_eq!( + transaction.candidate_cleanup_owed(), + expected, + "activation {has_activation}, workload {has_workload}" + ); + assert_eq!( + pre_fencing_abort_intent(&transaction, "x").candidate_cleanup, + expected, + "pre-fencing intent, activation {has_activation}, workload {has_workload}" + ); + assert_eq!( + post_fencing_abort_intent(&transaction, "x").candidate_cleanup, + expected, + "post-fencing intent, activation {has_activation}, workload {has_workload}" + ); + } + Ok(()) } #[test] From bf5347c3704d2f7bb5626c5c284a4d97ba0eeb2b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 23:40:11 +0200 Subject: [PATCH 005/256] The chunk-size line admits whitespace only before an extension RFC 9112 7.1 allows whitespace before a chunk extension and nowhere else. The reader trimmed both ends of the size, so " 3" and "3 " were taken. It now splits at the first ';', trims trailing SP and HTAB only when an extension follows, and leaves parse_digits as the digit authority. Rows use an honest body so only the size line differs. Co-Authored-By: Claude Sonnet 5.5 --- src/drivers.rs | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/src/drivers.rs b/src/drivers.rs index 6af3559..dd9f6c0 100644 --- a/src/drivers.rs +++ b/src/drivers.rs @@ -5813,10 +5813,16 @@ fn request_http_snapshot(target: SocketAddr, payload: &[u8]) -> Result, let mut response = Vec::new(); loop { let size = answer.read_line(ROUTE_HTTP_CHUNK_LINE_BYTES, body)?; + // RFC 9112 7.1: `chunk-size [ chunk-ext ] CRLF`, where an + // extension may follow whitespace. Nothing else is trimmed. let size = std::str::from_utf8(&size) .ok() - .and_then(|size| size.split(';').next()) - .and_then(|size| parse_digits(size.trim_matches([' ', '\t']), 16)) + .and_then(|line| match line.split_once(';') { + Some((digits, _extension)) => { + parse_digits(digits.trim_end_matches([' ', '\t']), 16) + } + None => parse_digits(line, 16), + }) .context("stable CultNet HTTP chunk size is invalid") .map_err(refused)?; if size == 0 { @@ -8786,9 +8792,15 @@ mod tests { /// An honest chunked answer with `after_body` in place of its end. fn chunked_honest_then(id: &str, after_body: &[u8]) -> Vec { + chunked_honest_sized(id, "", "", after_body) + } + + /// An honest chunked answer whose chunk-size line is the hex length between + /// `before` and `after`. + fn chunked_honest_sized(id: &str, before: &str, after: &str, after_body: &[u8]) -> Vec { let body = honest_body(id); let mut reply = CHUNKED_HEAD.to_vec(); - reply.extend_from_slice(format!("{:x}\r\n", body.len()).as_bytes()); + reply.extend_from_slice(format!("{before}{:x}{after}\r\n", body.len()).as_bytes()); reply.extend_from_slice(&body); reply.extend_from_slice(b"\r\n"); reply.extend_from_slice(after_body); @@ -8803,6 +8815,30 @@ mod tests { challenge(scripted_peer(|id| chunked_honest_then(id, b"0\r\nT: 1\r\nU: 2\r\n\r\n")), |_| {}) .expect("an honest chunked answer with trailers"); + // RFC 9112 7.1: whitespace may precede a chunk extension and nothing + // else. The answer is otherwise honest, so only the size line differs. + for (before, after) in [("", ";x"), ("", " ;x"), ("", "\t;x"), ("", ";x=1;y")] { + challenge( + scripted_peer(move |id| chunked_honest_sized(id, before, after, b"0\r\n\r\n")), + |_| {}, + ) + .unwrap_or_else(|error| panic!("size line {before:?}+size+{after:?}: {error:?}")); + } + for (why, before, after) in [ + ("whitespace before the chunk size", " ", ""), + ("a tab before the chunk size", "\t", ""), + ("whitespace after the chunk size and no extension", "", " "), + ("whitespace before the size, ahead of an extension", " ", ";x"), + ] { + assert_refused( + challenge( + scripted_peer(move |id| chunked_honest_sized(id, before, after, b"0\r\n\r\n")), + |_| {}, + ), + why, + ); + } + // A trailer that begins and then the peer stops. assert_refused( challenge(scripted_peer(|id| chunked_honest_then(id, b"0\r\nT: 1\r\n")), |_| {}), From 97fb2b88719077d279d1b55618672441e677dcf1 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 23:44:25 +0200 Subject: [PATCH 006/256] Map: B2 rework plan, D1/T1/T2/W1/R1 cuts, and the 2026-09-30 rulings Splice the B2 rework map (owner map, per-file cut, verification, live relevance, subtraction estimate) under B2; add cuts D1, T1, T2, W1 and R1; record Q-B2-1 (a), Q-B2-2 (fail at once), Q-R1 (a) and Q-B4 (routed by Idunn's route proof, unrouted by admission plus workload; the Odin non-Ready veto clause held open). B4 is blocked on the Odin-lifecycle authority audit. B2, D1, R1 ready for Hands; W1, T1, T2 in progress on hands/idunn-w1-t1-t2. Co-Authored-By: Claude Sonnet 5.5 --- docs/route-continuity-cut.md | 745 ++++++++++++++++++++++++++++++++++- 1 file changed, 729 insertions(+), 16 deletions(-) diff --git a/docs/route-continuity-cut.md b/docs/route-continuity-cut.md index f8c8306..bba4d5f 100644 --- a/docs/route-continuity-cut.md +++ b/docs/route-continuity-cut.md @@ -193,7 +193,7 @@ it for merge. - B2 also does not compile on top of B3, and after a one-line fix two tests fail, because the fixture target is now route-proof. -The rework runs after B3 merges and is rebased onto it. +The rework is a fresh branch from `583b2a7`, not a rebase of `1786ddf`. Its map is under B2 in section 4. **Rulings, 2026-09-30.** - **The ceiling never refuses a rollback.** Restoring the admitted or incumbent route is survival, not @@ -203,6 +203,27 @@ The rework runs after B3 merges and is rebased onto it. admitted generation, so a target with no admitted generation is charged too. That schema change is folded into the store-version bump that F1 needs: a v4 generation, with a typed lift from v3. +**Rulings, 2026-09-30 (operator, on the B2 rework map).** +- **Q-B2-1 (a):** the continuity restart log moves into `TargetSupervision`; the restart ceiling reads the + target's own log; the carry compensator is deleted. +- **Q-B2-2: fail at once.** A deploy refused by the route/actuation ceiling before the fence fails immediately, + with the reopen time in the error. +- **Q-R1 (a):** the route declaration is the challenge declaration. Every routed target answers the + stable-route challenge regardless of readiness class. R1 checks it before the fence; H1 gives Heimdall a + responder. Operator note: the question's first framing was confusing; the cause is that Heimdall has no + responder, not its class. +- **Q-B4: Idunn's own proof.** Routed providers by current route proof and not degraded; unrouted providers by + admission plus a live workload observation. One clause is **held open**: "a current Odin non-Ready word + still excludes a provider" is not ruled, pending the Odin-lifecycle authority audit (a separate Imagination + pass). Operator: "the last few rulings on Odin are making my authority sense tingle, it feels like Odin is + doing lifecycle work when that's very much Idunn's wheelhouse." B4 is blocked on that audit. + +**Cut status, 2026-09-30.** +- **Ready for Hands:** B2 (rework map in section 4); D1 (after B2); R1 (after B2). +- **In progress** on `hands/idunn-w1-t1-t2`: W1, T1, T2. +- **Blocked:** B4, on the Odin-lifecycle authority audit; H1 (Heimdall repo), on CultLib C1. + + Heads read for this map: | Repo | Ref | Notes | @@ -571,6 +592,97 @@ it. This is a CultLib foundation merge, so the operator should rule on it. Depends on it: C1 and the StreamPixels gitlink in C2. +**Q-B2-1. Does the continuity restart log move into `TargetSupervision` too?** + +**RULED (a) by the operator, 2026-09-30.** + +Options: +- (a) Move it. `ContinuityBackoff`'s own doc (`:907-908`) already says it "belongs to the target, not the + generation". On the generation it survives only through the copy in `from_transaction` (`:2074-2076`). + Moving it deletes that carry and key 20. The mint CAS pins the target record instead of racing the + generation, which is the F3 shape. One record holds both of a target's meters. +- (b) Keep it on the generation, reshaped to the sliding log in place. The route meter still needs + `TargetSupervision` for first deploys, so the meters split across two records and the carry stays. + +Outcome: the continuity restart log lives in `TargetSupervision`; the restart ceiling reads the target's own +log; the carry compensator in `from_transaction` is deleted. + +Depends on it: B2 (see the B2 rework map in section 4). + +**Q-B2-2. When the route ceiling refuses a first or forward deploy before the fence, does `idunn up` fail or +wait?** + +**RULED: fail at once, by the operator, 2026-09-30.** + +Options: +- (a) Fail. The deploy is aborted pre-fence with "route actuation ceiling reached for ; reopens at +