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 <noreply@anthropic.com>
95 KiB
Route continuity and admission: cut map
Status: cut map, Imagination pass 0b (Opus), 2026-09-29. Nothing has landed.
Ends are owned by route-continuity-target.md.
2026-09-29, Self (Eureka session "Codebase audit"; the campaign was handed
over from the StreamPixels deployment session with the operator's
confirmation). The operator ruled all six questions in section 3, one at a
time: Q1 (b), Q2 (b), Q3 (b), Q4 (b), Q5 (a), and Q6 (a) with a Soul gate on
the weekend branch before the merge. Next: S1 in Hands, and the Q6 Soul gate
on CultLib codex/fix-node24-ajv-esm. Behaviour cuts re-take their
file:line anchors in their own briefs. The operator has asked for no live
mitigation on Yggdrasil yet.
B3 status, 2026-09-30 (Self). Hands pushed B3 to idunn/route-b3 at 5ca7760; it is based on
B1's merge a61540b, not stacked on B2. The Opus Soul pass found:
- Full suite green: 252 passed, 2 ignored.
cargo-mutants --in-diff: 31 caught, 4 missed.- Soul's probe P1 drove a stateful route-proof target through the Engine, so the stateful path works; it was only untested.
Verdict: safe to merge for the StreamPixels web ship. The fix batch, in Hands, covers these findings:
- the evidence tag is a second class authority, and a pre-B3 transaction wedges Routing;
- the driver's rejections of a bad answer become gate waits instead of errors;
- the shortfall is prose;
OdinSelfis decorative, and "is Odin" is still decided by name in five places;- Warming is never driven past one step;
- seven unpinned checks.
Before idunn up, one read-only decode of a copy of the live control.cc checks for non-terminal
transactions of routed targets with no Odin declaration (operator approved, 2026-09-30).
B3 fix batch, 2026-09-30. Pushed 6ea824b and e11b457; 275 tests pass.
ReadinessClass::ofis the only class authority. The evidence tag is demoted toVoucher.ChallengeFailure::{Silent, Refused}separates silence from a refused answer.PresenceDisagreesmakes the capacity shortfall a typed value.- The recipes are on
route/b3-declare: Heimdalld5acc94, Muninn2260853. - Still open, for a fresh Hands: three survivors (boot re-proof by tag, config error as silence, first-Odin
check by name) and
cargo mutants --in-diff.
Live store, read-only decode of a copy, 2026-09-30 14:56 (operator-approved).
control.ccholds 5 envelopes, alladmitted_generation.v2(pre-F0), and no transactions.history.ccholds 957 transaction v3 envelopes and 641 command v2 envelopes.- Admitted generations, all on Odin receipts:
- ghostlight: routed, declares Odin, stateful.
- odin: routed rudp, provides the rendezvous.
- raven-muninn: unrouted, no declaration, stateless. B3 class
Undeclared, so held. - streampixels-service: routed, declares Odin, stateful.
- streampixels-web: routed, declares Odin, needs
streampixels.service.api.
- Heimdall is not admitted. It drops out of the ship window. Its declaring recipe still merges. Its first deploy will hit Soul pass 2's F2: a routed, Odin-correlated target must pass the stable-route proof, and Heimdall answers no challenge. Record that for its own deploy.
B3 pass 2 (Soul, 86ee21d): safe for the web ship. One same-window blocker:
- F1: supervision mints a held continuity over a dead held generation, and that continuity owns the target, so the declaring redeploy can never freeze. The fix is in Hands.
- F5, bad answers read as Silent over HTTP keep-alive and TCP, is in the same batch.
B3 fix batch (86ee21d..e8b4487), Soul pass 3, 2026-09-30: merge with follow-ups. Nothing here hurts a
live host on install. 294 passed, 2 ignored. cargo mutants --in-diff: 53 caught, 0 missed.
- F1 holds. There is one continuity mint site, and the hold check comes before it. A declaring redeploy replaces a dead held incumbent end to end.
- F5 holds. Zero bytes is Silent. Any byte then a stall or stop is Refused. Non-2xx responses and non-chunked Transfer-Encoding are Refused.
- Follow-ups, in Hands on the same branch:
- the P1b test never reaches the yield branch (mutant M7 survives);
- the chunked trailer loop is unbounded;
+Nlengths and whitespace before the colon are accepted;- exact 1 MiB and one-byte-then-stop are unpinned;
- the
Silentdoc is stale; - the dead-hold report goes to stderr only and never clears.
Ruling, 2026-09-30 (operator): cancel accepts a held pre-fence Deploy. Idunn still never aborts a held
record on its own. An operator can discard a held Deploy that has not reached the fence with idunn cancel.
Nothing is fenced, so the incumbent is untouched.
B3 follow-ups landed on idunn/route-b3 at 5c49646, 2026-09-30.
- Cancel accepts a held pre-fence Deploy. It shares
pre_fencing_abort_intentwith the scheduler. - The P1b test is now in direct-supervision form, with a positive control.
- The reader is strict: trailers share the 32 KiB header budget; digits only; header names without whitespace.
- The
Silentdoc is corrected. - Tests: 301 pass.
a_failing_step_is_retried_after_a_backoff_not_every_tickis flaky under a full parallel run, on the base too. 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
d32395aand installed on Yggdrasil at 18:36 UTC, with sha854aa351. 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-hosthas not compiled since S1:FROZEN_SOURCE_SYMLINK_TARGET_LIMITwas defined for unix only. That is fixed atd3db582.- The new actuator (sha
f36bf1fc) is swapped in on Raven. The old one is kept asidunn-host.exe.prev-20260929T190006Z. - Follow-up: nothing builds the Windows actuator in verification.
- The new actuator (sha
- 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_objectsasks for bare blob ids withgit fetch --stdin. In ablob:noneclone, the connectivity check then fails with "bad revision ". The fix, with a test, is in Hands onfix/bulk-blob-fetch: a promisor-style fetch with--filter=blob:noneandfetch.negotiationAlgorithm=noop.
Ship completed, 2026-09-29 (host clock).
- Bulk-fetch fix. Merged at
583b2a7and installed at 19:17. The Idunn sha is01bde676. - 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
db041eccompares 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-ops37b5ed9does 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/catalogreturns 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.serviceis disabled and stopped.streampixels-service.serviceis 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-hostin 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.
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
5c37860deploy. - 0 rejected StreamPixels challenges, 0 Odin continuity timeouts, and Idunn
NRestarts=0. - One running unit each for service, web and Odin. Public
/and/api/catalogreturn 200. - Also deployed in the window: Odin
5c37860, carrying CultLib3bf1c0c(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_errortoAdmittedGeneration(new key 21), and makestatusrender admitted generations. - It is cleared when the generation is replaced or its hold is released.
- The
generation:<target>readiness report gets the same home. - It is queued after the ship, with the B2 rework.
Odin diagnosis (Eyes, read-only, 2026-09-30).
- The 109 Odin route timeouts are self-inflicted. Live Idunn (
8ae00a1, pre-S1) reloads nginx insiderestore_admitted_membershipbefore every Odin challenge. The reload moves the reuseport UDP flow, so the challenge misses. All 109 have a reload 3.05-3.12 s before them. - 2,977 reloads in 6 h. 479 shutting-down nginx workers, because the stream has no
proxy_timeout. - The route timeouts do not block Ready correlation.
- Odin has crashed twice right after a reload. A stray RUDP packet with a foreign connection id escapes
cultnet-rsrudp.rs:1217(require_connection) and ends the process. Each crash costs about 75 s without a lease. The CultLib fix is in Hands onhands/rudp-stray-packets. Odin takes it at its next pin bump, after the ship.
Operator ruling: Idunn first. Install the new Idunn (B3 carries S1), then watch for about 15 minutes that reloads stop and Odin stays up. Only then redeploy raven-muninn and StreamPixels.
Ship sequence:
- B3 fix, then narrow Soul, then merge B3.
- Merge StreamPixels
route/s3-c2and the Muninn and Heimdallroute/b3-declarerecipes. - Build the Idunn release on its deploy path.
- Back up
control.ccandhistory.cc. F0's lift is irreversible. - Install Idunn.
idunn upraven-muninn with the declaring recipe.idunn upstreampixels (service, then web).
Rulings, 2026-09-30:
- A stored record whose evidence disagrees with its declared class is held and reported, never aborted by Idunn. B5's deadlines or the operator resolve it.
- Heimdall and raven-muninn are redeployed with their declaring recipes in the same window as Idunn B3 and the StreamPixels ship.
Ruling, 2026-09-30: the recipe declares readiness; Idunn infers nothing. This settles the fork
Hands raised against a literal Q1(b). An unrouted target whose recipe declares neither a route nor an
Odin dependency is refused at admission with a typed error. It does not fall back to Odin correlation
because it has no route. raven-muninn and Heimdall both publish to Odin, so their recipes declare it.
The rejected alternative let Odin's availability gate Muninn's crash recovery through an undeclared,
inferred dependency.
B2 status, 2026-09-30 (Self). Hands pushed idunn/route-b2 at 1786ddf. The Opus Soul pass rejected
it for merge.
- F1 (critical):
ContinuityBackoff.deferral_reasonwas added without a schema bump. B2 fails the canonical re-encode of every three-field v3 generation that F0, B1 or B3 wrote, so Idunn cannot read its own store. - F2: the ceiling refuses a rollback, which leaves an unproven candidate on the stable route.
- F3: a failed challenge writes, and continuity's CAS then loses against a stale envelope.
- F4: neither window rolls; both are anchored at the first charge.
- F5: a clock stepped backwards stalls everything for the length of the step.
- F6:
record_proved_challengeis unpinned. - F7: the mount preflight is not gated.
- 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 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 deployment. It is always allowed and always counted. Only installs and other forward changes can be refused. A rollback that keeps failing is spaced by backoff, never refused.
- First routed deployments are metered now. The actuation window lives on the target, not on the 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 |
|---|---|---|
F:\Projects\Idunn |
main = d719485 (code 8ae00a1, trusted baseline 9ede4cd) |
idunn/cut1-fix5 is 14 ahead / 25 behind main |
F:\Projects\StreamPixels |
main = a665bce |
vendor/CultLib gitlink = 542ddd3 |
GameCult/CultLib |
origin/main = 268e0ef; origin/codex/fix-node24-ajv-esm = 542ddd3 |
the Idunn TS runtime package exists only on that branch (see F-C1) |
F:\Projects\Odin |
379b826 |
read only, for lease pickup |
| Yggdrasil | /usr/local/bin/idunn sha256 5f257f2c…, idunn-yggdrasil.service active |
read-only probes, 2026-09-29 |
"Read" means the claim comes from source at those heads. "Probe" means a read-only command on Yggdrasil on 2026-09-29. Nothing was written to the host.
1. Body facts
1.1 Admitted route supervision actuates on observation age
-
F1. The scheduler tick (
run_scheduler_tick,control_plane.rs:3075) runsresume_one_transaction, thensupervise_one_admitted_generation(:3293), then freezes commands. The loop sleepspoll_millis(default 500 ms,:1473) between ticks. Read. -
F2.
supervise_one_admitted_generationcallssupervise_admitted_route(:3606) first for every admitted target that no transaction owns past Fencing. The call is made for every admitted target on every tick. Read. -
F3.
supervise_admitted_routereturns early only when all three hold: the fragment on disk equals the admitted membership, the route observation is younger thantopology_maximum_age_millis(default 30 000 ms,DEFAULT_TOPOLOGY_MAXIMUM_AGE_MILLIS,:61), and no repair intent exists. Otherwise it CASesroute_repair_started_at_unix_millis = nowinto the admitted generation and returns (:3654-3673). On the next tick it callsrestore_admitted_membershipand thenprove_stable_route_against. It clears the intent only after a successful proof (:3707-3722). Read. -
F4.
restore_admitted_membership(drivers.rs:5455) runs the following on every call, even when the fragment is byte-identical:validate_candidate_in_private_mount, which launches a transientsystemd-run --waitunit runningnginx -t.admit_endpoint, which runsufw allow.reload()(:5254), which runsnginx -tand thensystemctl reload nginx.
The write is skipped when the bytes match (
:5467). The actuation is not. If the reload fails, it deletes the fragment. Read. -
F5. Consequence: a healthy routed target reloads nginx about once every 30.5 s. A target whose proof fails keeps the repair intent and runs restore and reload on every tick, limited only by the 3 s challenge timeout. Nothing records, rate-limits, or backs off these actuations. Read.
-
F6. Probe: 551
Reloaded nginx.servicein the last hour across four route fragments (ghostlight,odin,streampixels-service,streampixels-web). 460 processes namednginx: worker process is shutting down. The Idunn journal for the last 10 min shows route continuity rejections forstreampixels-service(EAGAIN, 6),streampixels-web(EAGAIN, 4; HTTP 503, 1), andodin(RUDP connect timeout, 1). -
F7. Probe:
/etc/nginx/idunn-stream-routes/odin.confis the Idunn-rendered UDP stream proxylisten 10.77.0.1:17871 udp reuseport;→server 127.0.0.1:17973;.renderemits that shape forNginxStreamUdp+rudp(drivers.rs:5210-5217). Odin's own route proof goes through that listener as a RUDP catalog snapshot (request_runtime_presence_at,drivers.rs:5566-5574). Every reload of any target therefore moves Odin's UDP flows. Read + probe. -
F8. An admitted generation is never withdrawn. The only writers of
AdmittedGeneration::TYPEare commit (:4749), route supervision (:3670,:3715), and topology refresh (:3780). After three refused continuity restarts, supervision stops restarting (:3522-3528) but keeps supervising the route of a dead incarnation. Read. -
F9. The continuity restart limit counts refused restarts per generation (
is_refused_restart,:3469-3488). A restart that succeeds admits a new generation and resets the count. A unit that starts, is admitted, and then dies is restarted without bound and without backoff. Read.
1.2 Web route proof today
-
F10. Idunn's challenge is a CultNet
SnapshotRequestsent to the stable endpoint. Forhttpit isPOST /cultnet/snapshotwith MessagePack and an explicitContent-Length. There is a 3 s connect/read/write timeout, andConnectionRefusedis retried for 2 s (29946bb) (drivers.rs:5524-5580,:5628-5720). Read. -
F11.
authenticate_routed_presence(control_plane.rs:5185) verifies the following throughauthenticate_runtime_presence_claimandcorrelate_runtime_presence_claim(CultLib61549aa,runtime_authority_contracts.rs:1163-1230):- the provider signature;
- the activation signature, made with the per-launch key whose public half is in Idunn's activation;
- the Expected, activation, runtime and endpoint binding;
observed_at >= challenged_at;- age at most 30 s;
state == "active";detail == "route-observation:{message_id}";- the exact current write-lease sha.
The Idunn verifier already satisfies invariant 4 over HTTP. It needs no Odin input. Read.
-
F12. The app side couples that proof to Odin.
publishRouteObservation(StreamPixelsvendor/CultLib/packages/cultnet-ts/src/idunn-runtime-authority.ts:286-298) callspublish("active", "route-observation:<id>"). That call signs the presence and then publishes it to Odin over RUDP, waiting up to 5 s for accept and 2 s for ack (publishDocument,:319-356), before it returns the document. It signsactiveregardless of application health. Read. -
F13. The Next handler (
apps/web/app/cultnet/snapshot/route.ts) maps any publisher failure to 503. The app-side RUDP wait (up to 7 s) exceeds Idunn's 3 s read timeout, which produces the EAGAIN (os error 11) in F6. Read + probe. -
F14. The app requires Odin before it can prove anything:
loadIdunnRuntimeAuthorityFromEnvironmentthrows unless Expected carries ashared-infrastructure odin.verse-rendezvousdependency equal toSTREAMPIXELS_ODIN_CULTMESH_RUDP(idunn-runtime-authority.ts:114-118).runIdunnRuntimeblocks startup for up to 30 s on Odin accepting the initial warming publication (deployment/idunn/runtime-presence.mjs,publishInitialWarming).deployment/idunn/web.tomldeclares the Odin dependency and the env var.
Read.
-
F15. The Idunn runtime TS package (
idunn-runtime-authority.tsand its test) does not exist on CultLiborigin/main. It exists only on the unmerged branchcodex/fix-node24-ajv-esm, which is 10 commits ahead oforigin/main(0bedcde..542ddd3). StreamPixels pins that branch commit. Read.
1.3 Which Idunn decisions consume Odin for a non-Odin target
All of these are read:
| Decision | Site | Odin input |
|---|---|---|
| Provider selection at plan compile | advance_sealing :3825 → current_ready_provider_tokens |
admitted providers' Odin ready and latest_odin_observation; ManagedReady carries odin_topology_correlation_sha256 and sequence (deployment_plan.rs:136-145) |
| Provider currency (Deploy only) | Sealing→Starting :3880, Starting :3945, Routing :4527, Committing :4629, :4673 → validate_selected_providers_current |
same receipts; since 9f00e7a, authenticated at their admission time rather than now |
| Warming | advance_warming :4028-4103 |
only Odin correlation, except the FirstOdinDirect exception for target == "odin". For a non-Odin target with no correlation it records a gate wait forever |
| Lease grant (stateful) | fresh_warming_for_lease :4808 |
new Odin sequence plus new signed presence |
| Ready | advance_awaiting_ready :4423 |
Odin correlation is_semantic_ready |
| Route admission | advance_routing :4487 |
admits the latest topology; Ready is refreshed and require_current=true |
| Commit | advance_committing :4599 |
topology admitted twice, once before and once after the final stable-route proof; AdmittedGeneration requires ready, latest_odin_observation, odin_authority and the cursor as non-optional fields (:1322-1331) |
| Admitted refresh | refresh_admitted_topology :3726 |
Odin correlation updates the admitted receipts |
| Graph gate | web recipe's odin.verse-rendezvous dependency |
Odin must be admitted and Ready to compile the plan |
-
F16. Commit livelock (source-read, supported by live history).
advance_committingadmits the topology, proves the stable route, then callsadmit_latest_topology(&ready_current, …)again.- If a new Odin sequence arrived meanwhile, that call persists it, the
envelope changes, and the function returns
Ok(())without committing (:4658-4666). - The web's route proof itself publishes a fresh
activepresence to Odin (F12), and Odin re-stamps its correlation when the presence changes (comment:5473-5478). - Every commit attempt therefore tends to manufacture the evidence that aborts it.
Probe:
up-efb85890…(tx-5fe84313…) is nowComplete/Admittedat Odin cursor 4008. It had beenCommittingfor more than 12 h at cursor about 3680. A commit that eventually wins a race fits this mechanism. No reproducer has been written yet.
1.4 Post-fencing phases and leases
-
F17. When a transaction errors at or after Fencing, it is aborted only if
candidate_is_permanently_stopped. Otherwiserecord_resumable_errorruns (:3107-3131). There are no deadline fields onDeploymentTransaction(:651-731). Read. -
F18.
advance_awaiting_readyreturnsOk(())for as long as no new Ready correlation exists. Only candidate death interrupts it (observe_candidate_before_waiting). Routing and Committing wait the same way. Read. -
F19. Lease pickup windows are owned by the consumer, not by Idunn:
- Odin accepts a lease only if its
warming_presence_sha256names a warming proof Odin issued withinWARMING_PROOF_LIFETIME_MILLIS = 60_000(odin-daemon/src/main.rs:73,acquire_process_write_lease:886-911,try_activate:225-263). - The TS publisher accepts any of its last 64 proofs with no time bound
(
assertLeaseMatches,idunn-runtime-authority.ts:687-706). - Idunn neither knows the window nor observes adoption, other than through a later Odin correlation.
Read.
- Odin accepts a lease only if its
-
F20.
cancel(:1725) is an operator CLI process that writespost_fencing_abortdirectly into a live daemon-owned transaction by CAS (8ae00a1). The only cases it accepts are Deploy, past Fencing,SkippedStateless, no completion. Continuity and stateful transactions have no recovery command. Read.
1.5 Continuity drift between the admitted receipt and the projection
-
F21.
from_continuity(:783) reuses the incumbent's Expected, so the continuity candidate projects under the same key{target}@{expected sha}.publish_observed_activationreplaces any activation under that key "without comparison" (drivers.rs:4927-4955). The admitted generation keeps the old activation until commit. Commit replaces the admitted generation and the transaction in one CAS (:4745-4770), so a successful continuity leaves no drift. Read. -
F22. Drift source. Both abort intents set
topology_reconciliation = SkippedforCommandKind::Continuity(begin_pre_fencing_abort:5822-5828,post_fencing_abort_intent:6224-6230). A failed continuity therefore leaves its own candidate activation projected under the shared key while the admitted receipt names the older activation. Two things then refuse, becauseProjectedIncarnation::readrejects any projected activation that differs from the one passed in (drivers.rs:4293-4300):- supervision's pre-restart demotion (
:3538-3556, logged and ignored); - a later deploy's post-fencing
demote_to_expected_only.
a148802made rollback demote whatever activation is projected, provided it verifies against Idunn's anchor (demote_current_activation_to_expected_only,drivers.rs:4500-4543). The cause is the skipped reconciliation. The coherent cut is for the continuity abort to demote its own exact activation to Expected-only. Read. - supervision's pre-restart demotion (
-
F23.
9f00e7aexists because admitted receipts only advance when Odin emits a new sequence (refresh_admitted_topology). Provider publications to Odin were failing (F7, F12), so a provider's receipts aged past 30 s and dependents could not select it. The drift source is that dependency currency is sourced from Odin receipts at all (see Q2). Read.
1.6 Weekend commits
| Commit | Read | Classification |
|---|---|---|
a148802 recover fenced rollback from current activation |
diff | Revert in Cut B1, together with the F22 fix. Delete demote_current_activation_to_expected_only and its test. Restore the doc paragraph to the exact-activation rule |
9f00e7a replay provider receipts at admission time |
diff | Revert in Cut B4, together with its replacement currency source (Q2). A revert alone re-breaks dependency selection |
ae8ac45 process title as launch evidence |
diff | Keep. command_line_sha256 stays launch-time evidence; Node's process.title rewrite is not identity drift |
29946bb wait for stable route listener |
diff | Keep. After Cut S1 it covers only install-time listener handoff, which is its honest scope |
8ae00a1 cancel live stateless candidates |
diff | Delete in Cut S2 once deadlines exist. It is a second writer into daemon-owned transaction state (F20) |
8651906 dynamic primary group |
diff | Keep. Independent of this campaign |
55e5d55/7a61c77, 4200330/e0f5147 |
log | Self-reverted pairs; net zero |
2. Identity, lifecycle, authority
An empty or "none" cell is a finding. It is marked (gap).
| Kind | Identity | Lifecycle | Authority |
|---|---|---|---|
Admitted generation (idunn.admitted_generation.v2, control.cc) |
key = target; injective per target. generation_id = generation-{tx} |
Created/superseded by the commit CAS (transaction + generation atomic). Revised by route supervision (routing receipt, repair intent) and topology refresh (Odin receipts, cursor). Withdrawn: never (gap, F8). Replayed: read on every tick; validate_durable_authority at boot |
Owner: Engine commit. Three in-process writers (commit, supervise_admitted_route, refresh_admitted_topology), all CAS. Forbidden: CLI, Odin, drivers |
Route observation / receipt (RoutingEvidence::Promoted inside transaction and generation) |
route_id + runtime_instance_id + membership_sha256 + signed_presence_sha256; injective per incarnation |
Created at Routing. Re-created by each successful admitted challenge. Stale at 30 s, which today triggers actuation (F3). What is in force afterwards: the last successful receipt, even while proofs fail | Owner: route supervision (observe only, after S1). Forbidden: reload path, Odin |
Route repair intent (route_repair_started_at_unix_millis, gen key 18) |
per admitted target; a single timestamp | Set when stale or drifted. Cleared on proof. Attempt count, backoff, ceiling: none (gap) | Owner today: supervision. Replaced in F0 by route supervision state (below) |
Route fragment on disk (binding.config_path, /etc/nginx/idunn-stream-routes/<route>.conf) + ufw allow |
path is injective per binding (validate_route_binding_set :2386-2393); first line # Idunn Expected <sha> |
Written by install (Routing), restore_admitted_membership (supervision), and restore (abort, rollback). Removed on failed restore reload or last withdrawal. ufw is re-admitted on every restore (F4) |
Owner should be the route driver, acting only on membership change. Forbidden (after S1/B2): observation freshness, proof failure |
| nginx reload (process actuation) | none; not a record (gap: no durable actuation ledger, so the invariant 2 ceiling cannot survive an Idunn restart) | Unbounded (F5, F6) | Owner: route driver. Rate authority: none (gap). F0 adds it |
Deployment transaction (idunn.deployment_transaction.v3) |
tx-{uuid}; one live per target (blocks_new_target_mutation) |
Phases Sealing…Complete. Aborts pre and post fencing. Archived to history when terminal. Phase deadlines: none (gap, F17-F18). Post-fence error = resumable forever | Owner: Engine. Forbidden writer present: idunn cancel CLI (F20) |
Activation (in transaction/generation + projection idunn.runtime_activation in topology.cc) |
projection key {target}@{expected sha} is not injective across continuity: every restart of one Expected shares it (F21) |
Published after workload observation. Replaced without comparison. Demoted on death or abort. Continuity abort leaves its own activation projected (gap, F22) | Owner: transaction for its own activation; generation for the admitted one. Forbidden: rollback adopting an activation it did not issue for this transaction (a148802) |
Write lease (file record_path + .lock) + projection |
exact record binding Expected, activation, warming sha, epoch | Prepared → Granted → (adopted by process) → revoked at fence or abort. Adoption is not observed by Idunn and has no pickup deadline (gap, F19) | Owner: Idunn lease driver. Pickup-window contract: owned by consumers (Odin 60 s, TS 64 proofs). No Idunn-side owner (gap) |
Runtime presence doc (gamecult.runtime_presence_health.v2) |
target + runtime_instance_id + publisher_sequence; the challenge nonce rides in detail |
Minted by the app per challenge and per heartbeat. Idunn persists only signed_presence_sha256 (route receipt) or the full bytes (FirstOdinDirect). Odin persists its own copy |
Owner: the service (provider key + Idunn-issued activation key). Forbidden: Idunn manufacturing it; publication to Odin being a precondition of the route answer (F12) |
Odin correlation topology (/var/lib/gamecult/odin/idunn-runtime-topology.cc) |
{target}@{expected sha}, publisher sequence per signer |
Written by Odin whenever facts change. Idunn persists admitted sequences into the transaction/generation and advances a per-target cursor | Owner: Odin (discovery). Consumer authority today: warming, Ready, dependency currency for every non-Odin target (§1.3). After this campaign: observation for route-proof targets, never admission |
| Continuity restart history | derived by counting failed continuity transactions per generation (live + history) | Resets on each new generation (F9). Per-target ceiling and backoff: none (gap) | Owner: supervision |
| New in F0: readiness evidence | enum on transaction and generation: OdinCorrelated(TopologyEvidence) or RouteProof(RuntimePresenceEvidence); the class is derived from Expected (Q1) |
Replaces the mandatory ready, latest_odin_observation, odin_authority and cursor for route-proof targets |
Owner: Engine. Forbidden: a route-proof target's admission reading Odin |
| New in F0: route supervision state | per admitted routed target: last_challenge_at, consecutive_failures, next_challenge_at, and a rolling actuations window (count + window start) |
Revised only by supervision. Carried across continuity commits. Replaces route_repair_started_at |
Owner: supervision. Forbidden: any reload path that does not consult it |
| New in F0: phase deadline | per transaction: phase_entered_at + deadline_at, from binding-owned durations frozen into the compiled plan (Idunn defaults) |
Set on every phase transition. Expiry is resolved by the deadline resolver (B5) | Owner: Engine transition primitive. Forbidden: resume paths extending it |
| New in F0: lease adoption evidence | the candidate's signed presence carrying write_lease_sha256 == granted sha, obtained directly or through Odin |
Recorded once in Leasing/AwaitingReady. Its absence at the deadline means the lease was not adopted | Owner: Engine |
| New in F0: stateful terminal record | completion variant naming the recovery (RestartAdmitted, RestoreIncumbent, OperatorRequired{reason}) |
Terminal, archived like other completions | Owner: deadline resolver |
| New in F0: continuity backoff | per target: attempts in window, next_restart_at |
Carried across generations. Replaces per-generation counting for the ceiling | Owner: supervision |
| HTTP route proof | no new kind. It reuses the presence v2 contract and RouteObservation (F11). RuntimePresenceEvidence gains a route-proof use beside FirstOdinDirect |
— | — |
3. Operator questions
Q1. Readiness authority for a CultMesh-aware service such as
streampixels-service.
RULED (b) by the operator, 2026-09-29.
Options:
- (a) Every non-Odin target proves Warming and Ready directly through Idunn's challenge. Odin only observes.
- (b) A target's class follows its own declaration. A target that declares a
shared-infrastructure odin.verse-rendezvousdependency is Odin-correlated, as today. A target that declares none is route-proof. - (c) A new explicit binding field chooses the class.
Recommendation: (b). It reads the ruling literally: GC infra that advertises into the Verse is correlated by Odin, and a web app that declares no Odin dependency cannot be gated on one. It needs no new field. A repository choosing route proof gains no privilege, because both classes are signed by the same Idunn-issued launch key.
Depends on it: the F0 enum shape, the B3 scope, whether the service recipe changes (under b it does not), and whether the F16 livelock matters for Odin-correlated targets (B5 covers that).
Q2. Where a dependent's provider currency comes from (the 9f00e7a
replacement).
RULED (b) by the operator, 2026-09-29.
Options:
- (a) The provider's Odin receipts, authenticated now. This is a strict revert,
but the web then depends on Odin transitively through
streampixels-service, which breaks invariant 3. - (b) Idunn's own current route observation of the admitted provider: a successful challenge within max age, with capabilities taken from the signed presence in that proof. Unrouted providers fall back to their Q1 class evidence.
- (c) Always the provider's own class evidence.
Recommendation: (b). Idunn already challenges every routed target, and under invariant 1 that challenge becomes the steady-state heartbeat. It is current, it is signed by the provider's launch key, and it needs no Odin.
Depends on it: B4, the ManagedReady shape (the Odin sha and sequence become
a class-tagged evidence digest), and plan compatibility with existing admitted
dependents.
Q3. How a stateful post-fencing deadline resolves once the candidate may have written.
RULED (b) by the operator, 2026-09-29.
Options:
- (a) Always a terminal
OperatorRequiredrecord. - (b) Split on lease adoption (F0 evidence):
- Not adopted: revoke, stop, and resolve like stateless. A deploy restores the incumbent through the fence. A continuity counts one refused restart.
- Adopted: a deploy gets a terminal
OperatorRequired{adopted-lease}record. A continuity gets a terminal record and the admitted release restarts under the continuity backoff, because it is the same release and state contract.
- (c) Automatic incumbent restore whenever the state cut is declared reversible.
Recommendation: (b). Adoption is signed evidence that the candidate may have written. (c) trusts a declaration over evidence.
Depends on it: B5, the recovery variants of the terminal record, and the
replacement for idunn cancel.
Q4. The operator's recovery verb after 8ae00a1 is deleted.
RULED (b) by the operator, 2026-09-29.
Options:
- (a) Delete it outright and let deadlines resolve everything.
- (b) Replace it with
idunn expire <command>. The command writes a typed expiry request that the daemon consumes, so the phase resolves through the same deadline resolver. The CLI never writes transaction fields.
Recommendation: (b). It keeps a human escape for long deadlines and removes the second writer.
Depends on it: S2 scope and the CLI surface.
Q5. Whether a sustained route-proof failure on an admitted target restarts its unit.
RULED (a) by the operator, 2026-09-29.
Options:
- (a) No. The route is marked degraded, dependents stop selecting it (Q2b), and challenges back off. Restart happens only on workload death, as today.
- (b) Yes, after N consecutive failures, under the continuity backoff.
Recommendation: (a) for this campaign. A process that answers 503 while alive is a health-policy question, and making it restart authority mixes observation back into actuation.
Depends on it: B2.
Q6. Landing the CultLib Idunn TS runtime on main (F15).
RULED (a), with one Soul pass on the ten weekend commits before the merge by the operator, 2026-09-29.
Options:
- (a) Merge
codex/fix-node24-ajv-esminto CultLibmainas-is, then cut C1 onmain. - (b) Cut C1 on the branch and merge once.
- (c) Rewrite the package on
main.
Recommendation: (a). It makes the shared substrate honest before changing 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 infrom_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
TargetSupervisionfor 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
- (b) Wait. A gate wait until
reopens_at. The transaction owns the target for up to an hour, and nothing ends that wait before B5's deadlines.
Outcome: a deploy refused by the route/actuation ceiling before the fence fails immediately, with the reopen time in the error.
Depends on it: B2.
Q-R1. Does a routed target answer the stable-route challenge whatever its readiness class?
RULED (a) by the operator, 2026-09-30. The question's first framing was confusing. The cause is that Heimdall has no responder, not its readiness class.
Mechanism (read at 583b2a7): readiness class decides Warming, Ready and whether Routing reads Odin. It never
decides whether the stable route is challenged. Routing installs and then requires prove_stable_route for
every target with expected.route (:6147-6190), Commit proves it again (:6272-6290), and supervision
challenges every routed admitted generation (:5171-5270). Heimdall's recipe (d5acc94) declares
odin.verse-rendezvous (Odin-correlated) and is routed, but never answers a route challenge. Heimdall is
stateful, so a failed proof leaves the candidate route installed for fail-closed retry (:6171-6175), which
past the fence is resumable forever (F17) until B5. Its first idunn up would hold the target with its lease
granted, and the failure would surface at the most expensive point.
Options:
- (a) Yes. The route declaration is the challenge declaration. That is today's rule, made legible and checked
before the fence (cut R1). Heimdall gains a responder in owning-repo cut H1, the same shape as
StreamPixels C2: bump
vendor/CultLibto at least C1 (30ee8b9), answerPOST /cultnet/snapshotthrough the signer'sanswerRouteObservation, and makereportHealthits single health owner. Idunn gains no schema change, and every routed provider keeps a signed route proof, which Q2(b)/B4 currency needs. - (b) No, the class decides. An Odin-correlated routed target is admitted by membership only. That needs a new
RoutingEvidencevariant (a transaction and generation schema bump), class branches at Routing, Commit and supervision, and loses the proof that the admitted process answers through the stable listener. It also applies to streampixels-service, whose provider currency would then come from Odin, which is the C2 run 2 failure made permanent and contradicts Q2(b).
Outcome: every routed target answers the stable-route challenge regardless of readiness class. R1 checks it before the fence. H1 (Heimdall repo, needs CultLib C1) gives Heimdall a responder.
Depends on it: R1, H1, and Heimdall's first deploy.
Q-B4. For an admitted, running provider, what makes it current enough to satisfy a dependent's deploy?
RULED in part by the operator, 2026-09-30: Idunn's own proof. One clause is held open.
Options:
- (a) A live readiness proof from the provider's readiness authority. Odin-correlated providers need a current Ready correlation from Odin, so with Odin down or confused no dependent deploy is possible and C2 run 2 fails by design.
- (b) Idunn's own current observation, whatever the class.
- (c) Admission plus workload alive, for every provider, with no current readiness evidence.
Ruled, from (b):
- A routed provider is current by Idunn's route proof, and not degraded (B2's Q5(a) state). This is Q2(b) as ruled, confirmed to override class.
- An unrouted provider is current by its admission plus a live workload observation of the admitted incarnation.
- Capabilities come from the signed presence in the route proof (routed) or the admitted Ready receipt (unrouted).
Held open, NOT ruled: the recommendation's clause that "a current Odin non-Ready word still excludes a provider" (a stale one would not). The 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." That clause stays open pending the Odin-lifecycle authority audit, a separate Imagination pass. Until it is ruled, B4 carries no Odin-veto rule either way.
Depends on it: B4, which is now blocked on the Odin-lifecycle authority audit, not on Q-B4.
4. Draft cut list
Order is deletions first, then one foundation, then behaviour cuts, then the owning-repo cuts. Each cut is one Hands brief and one Soul pass.
Subtraction
S1 — Observation stops actuating (Idunn).
- Delete the stale-observation → repair-intent →
restore_admitted_membershippath fromsupervise_admitted_route. - Supervision becomes challenge-only: an exact fragment plus a stale
observation yields exactly one
prove_stable_route_against, with no write, nonginx -t, no private-mountsystemd-run, no ufw and no reload. restore_admitted_membershipruns only when the fragment on disk differs from the admitted membership. It stops re-admitting ufw when the fragment is unchanged.- The
route_repair_started_atfield stays readable but its decision power is deleted. F0 retires it. - Negative checks:
- A failed proof with an exact fragment performs zero actuations.
- A byte-identical fragment never reloads.
- Drifted bytes reload once.
- It touches
supervise_admitted_routeandNginxRouteDriver. It does not touch the source-freeze and digest regions thatcut1-fix5rewrites. The merge hazard is limited to thedrivers.rstest module and imports.
S2 — Delete the CLI post-fencing cancel (Idunn), after B5. Remove
cancel_is_safe_for_live_stateless and the live-transaction branch of
cancel (8ae00a1). Pre-freeze command cancellation stays. The Q4 expiry
request replaces the rest.
S3 — The web drops Odin (StreamPixels), after C1. Remove the
odin.verse-rendezvous dependency and STREAMPIXELS_ODIN_CULTMESH_RUDP from
deployment/idunn/web.toml. Remove the web branch's Odin publisher,
publishInitialWarming, and the heartbeat publication from
runtime-presence.mjs. The service keeps its own under Q1(b).
Foundation
F0 — Typed readiness, deadlines, and actuation state (Idunn schema: one migration).
- Bump
idunn.admitted_generationto v3 andidunn.deployment_transactionto v4, carrying:- the readiness-evidence enum;
- route supervision state, replacing
route_repair_started_at; - continuity backoff;
- phase deadlines;
- lease adoption evidence;
- terminal recovery variants.
- The readiness class is derived from Expected (Q1).
- Migrate every existing v2 generation as
OdinCorrelatedwith its current receipts, so behaviour does not change at this cut. - Deadline durations become optional binding fields with Idunn defaults, and are frozen into the compiled plan.
- No decision reads the new fields yet, apart from S1's retirement of the old one.
- Tests: migration round-trip over a copy of the live store's shape. A v2 record must decode to the same decisions.
Behaviour
B1 — A continuity abort cleans its own projection, and a148802 is
reverted (Idunn).
- The pre- and post-fencing abort intents set
topology_reconciliation = Pendingfor Continuity. - The resolution demotes the shared key to Expected-only with the transaction's own activation (exact), and never withdraws the Expected.
- Delete
demote_current_activation_to_expected_only. Rollback demotes the admitted generation's exact activation. - Negative check: a failed continuity followed by a deploy that fences and aborts resolves with the exact admitted activation, and no path adopts an activation the transaction did not issue.
- F0 is not required. This cut could land before F0 if Self wants the drift closed first.
B1 status, 2026-09-29 (Self). Landed on idunn/route-b1 (87fa57d revert of a148802,
4427769, 4a9fe87); 177 tests pass. Soul (Opus): do not close. The rule held (one
rule, one resolution, exact activation, the Expected never withdrawn, foreign activations
refused, the revert exact). The transition failed:
- High, CONFIRMED: a continuity abort persisted under the old rule (
Skippedalthough an activation was issued) fails the new validation (control_plane.rs:1031-1044).ControlSnapshot::readfails the whole store on one record, so a resident record stops Idunn from booting, for every target. - Medium, CONFIRMED: supervision's pre-restart demotion failure is only logged
(
:3557-3576). A continuity failing betweenprepare_activationandpublish_observed_activationthen wedges its abort on "substituted" every tick. Drift left by a pre-B1 failed continuity wedges a later deploy abort the same way. - Low:
docs/deployment-authority.mdsays the projection "never drifts".
Self's ruling for the B1 fix batch, which runs on top of F0 because F0 owns the legacy lift:
(superseded below)The legacy-transaction lift maps a pre-B1 continuity abort that issued an activation toPending. The new single resolution then demotes its own activation, which also cleans the residue that record left behind.- Supervision owns the Expected-only precondition. It does not mint a continuity while its pre-restart demotion fails; the failure is recorded, not merely logged.
- A one-time boot reconciliation demotes a projected activation only when its issuing transaction is a failed transaction in history (exact identity). It never adopts.
- Engine-layer tests for both abort paths, using Soul's EngineFixture probe shape (candidate cleanup already Complete, so no systemctl runs). cargo-mutants found 6 Engine-path mutants missed.
- Correct the doc's "never drifts".
Before any deploy, check the live host for resident continuity abort records. That is a read
of
control.cc, and the operator's to authorise.
B1 fix batch 1, Soul pass, 2026-09-29: do not close. Self's corrected ruling replaces item 1 above.
Hands implemented item 1 by reopening terminal pre-B1 records at Starting. Soul confirmed the
cost:
- If the target also holds a live transaction, or a second resident pre-B1 abort, the reopened
record fails
ControlSnapshot::readand Idunn does not boot. - The migration has already written the record as v4, so the old binary cannot roll back.
- The reopen is a second owner for residue that boot reconciliation already cleans. The defect was in Self's ruling: it set a state on a record without saying what happens to terminal records.
Corrected ruling:
- Nothing is reopened.
- A terminal pre-B1 abort keeps its phase. Validation accepts its shape under a typed legacy marker that only the lift sets.
- Boot reconciliation is the single owner of legacy residue.
- In-flight pre-B1 aborts may lift to
Pendingonly if they cannot collide with another live transaction.
Also fixed in batch 2:
- A failed pre-fence abort goes to
record_resumable_error, never tobegin_post_fencing_abort. Before this, one wedged abort failed every scheduler tick for every target. - Errors are isolated per transaction, including
archive_terminal_transaction. serve's boot wiring is pinned by a test.
Moved to B2: the continuity restart ceiling reads only the target's restart log in
TargetSupervision, never history.cc. Otherwise an unreadable history file stops crash recovery for every
target. Deferral and backoff show in idunn status.
B2 — Bounded, backed-off route and unit repair (Idunn). READY FOR HANDS; rework map below.
Widened 2026-09-29 by Self, from Soul's S1 pass. S1 closed the healthy-target storm, and Soul found two storm paths S1 does not claim. Both are B2's:
- A failing reload deletes the fragment (
restore_admitted_membership,drivers.rs:5472-5478). The next tick reads the file as missing, treats that as drift, and restores again: onesystemd-run, ufw,nginx -tand reload every 500 ms, unbounded. This was probed over 4 ticks. A broken global nginx config does the same through the private-mount unit. NginxRouteDriver::install(drivers.rs:5402) runs ufw,nginx -tand reload unconditionally. The Routing phase re-runs it on every resume, and a post-fence proof failure resumes forever (F17), so a candidate failing its proof reloads every tick. A stateless candidate reloads twice (install, then rollback). The post-fence abort'swithdraw_candidate_membershipthen callsrestore, which does the same.
So B2's actuation ceiling covers install, restore and restore_admitted_membership,
not only supervision. B2 also adds the seam Soul specified: the route actuator program paths
and preflight_root on RuntimeOptions, defaulting to today's paths and used at every
NginxRouteDriver::new site, plus a routed Stored<AdmittedGeneration> fixture beside
EngineFixture. Deleting supervise_admitted_route's body currently survives every test
(cargo-mutants), and B2's reload-count timeline test needs the same seam. A failed proof
marks the route degraded (Q5 a). Today nothing is written and the next tick re-challenges
with no backoff.
Rework map, 2026-09-30 (Imagination pass, Opus). Every file:line in this block is against Idunn
583b2a7 (the code under main 94c7691, installed on Yggdrasil). The salvage source is
origin/idunn/route-b2 (97f1ad2, +1243/-200; merged with B1 at 1786ddf). The rework is a fresh
branch from 583b2a7, not a rebase of 1786ddf. Rulings Q-B2-1 (a) and Q-B2-2 (fail at once) are in
section 3.
B2 rework, A. What B3 superseded, and what survives from 97f1ad2
Delete; do not port. B3 or this rework owns each of these now:
routed_generation,hanging_up_listener,RoutedFixture,routed_transaction,store_seeded, theseeded_recordsplit,route_proof_evidence()hand evidence, andDeadWorkload.- B3's
RoutedWorld(control_plane.rs:14255-14660) already builds a real route-proof admission, with aRuntimeStubat both endpoints and ahang_upswitch (:14068). SwitchWorkload::kill(:11932-11945) is the dead workload.- These are why B2 "does not compile on B3, and two tests fail because the fixture target is route-proof".
- B3's
Engine::update_admitted_generation, the re-read-then-CAS helper. It existed because B2 charged the ceiling to the generation, so every other writer had to re-read to avoid losing the charge. The meter moves off the generation (section B), so writers CAS on the envelope they read. Tests use the existingedit_incumbent(:12065).ActuationWindow::charge: a fixed window anchored at the first charge. That is Soul's F4.- The first-deploy exemption in
charge_route_actuation(let Some(current) = admitted_for else return Ok(())). The 2026-09-30 ruling removes it. ContinuityBackoff.deferral_reasonadded as a v3 field. That is Soul's F1. The reason moves to the new record (section B).
Port, reshaped as sections B-E say:
- In
drivers.rs:RouteActuatorsand itsDefault;NginxRouteDriver::with_actuators, withnewdelegating to it;- the gate trait threaded through every mutating method;
- the
Unmeteredtest gate; a_refusing_gate_stops_every_route_actuation_before_it_starts, split in two (section E).
- In
control_plane.rs:RuntimeOptions.route_actuators;Engine::route_driver, used at every construction site;EngineRouteGate;- the
RouteStubsfixture andEngineFixture::routed; RouteSupervisionState::{is_waiting, record_failed_challenge, record_proved_challenge};- the
supervise_admitted_routerestructure, where a failed repair or proof records state; render_supervisionplus the status loop;- the continuity ceiling replacing the history count;
- the restart counted in the minting CAS;
- the tests
continuity_restarts_are_backed_off_and_bounded_per_target,status_renders_…,a_deployment_yields_to_a_restart_only_while_the_target_has_restarts_left, and the storm tests, rebuilt onRoutedWorld.
- Constants, kept from B2 because Soul did not dispute them:
CONTINUITY_RESTART_ATTEMPTS = 6perCONTINUITY_RESTART_WINDOW_MILLIS = 3_600_000;CONTINUITY_RESTART_BACKOFF_MILLIS = 5_000, doubling;ROUTE_ACTUATION_CEILING = 12perROUTE_ACTUATION_WINDOW_MILLIS = 3_600_000;ROUTE_CHALLENGE_BACKOFF_CAP_MILLIS = 600_000.
B2 rework, B. Owner map (ownership changes)
Route actuation rate.
- Owner:
Engine::charge_route_actuation(target, RouteActuation), over a new per-target record,TargetSupervision.route_actuations. - Inputs: the target's record from a fresh control snapshot (absent means empty),
now, and the kind:ForwardorSurvival. - Output:
Ok(()), or the typedRouteActuationRefused { target, used, reopens_at }.- Only
Forwardcan be refused. Survivalis always recorded and always admitted (ruling: never refuse a rollback).
- Only
- Demoted:
RouteSupervisionState.actuationsis dead, deleted in v4.RouteSupervisionState::for_new_incarnation(:885-893) is dead. A new incarnation's route state isdefault().
- Forbidden writers:
- the driver, which only asks;
AdmittedGeneration::from_transaction, which no longer carries a meter;- the commit CAS.
- Shared paths:
- Every
NginxRouteDriveris built byEngine::route_driver. The seven::newsites are:5211,:5701,:6151,:6280,:6985,:7323and:7652. - Every mutating driver method takes
&dyn RouteActuationGate, so none can be called without the meter. The compiler enforces it.
- Every
Continuity restart pacing (Q-B2-1 ruled (a)).
- Owner: the mint in
supervise_one_admitted_generation, overTargetSupervision.continuity_restartsandcontinuity_deferred_until. - Forbidden writers and inputs:
history.cc: thehistory_for_decisioncall at:5003goes;- the generation id: the count is no longer per generation;
from_transaction's backoff carry at:2074-2076.
- Demoted:
AdmittedGeneration.continuity_backoff(key 20) is dead, deleted in v4.
Route challenge pacing stays per incarnation, on the generation.
- Owner:
supervise_admitted_route, overRouteSupervisionStatewithoutactuations. route_repair_started_at_unix_millis(key 18) is dead, deleted in v4.- Its last readers are the validate block at
:2139-2145and the unrouted guard at:5173-5176. - Its last writer is the clear at
:5263.
- Its last readers are the validate block at
One generation write per supervision iteration (structural fix for F3). Any write to a
target's generation or to its TargetSupervision ends that target's iteration:
progressed = true; continue.
refresh_admitted_topologyalready follows this rule (:4827-4835).- The route challenge is the violator. Today a failure propagates as
Errafter B2's state write, and the restart path then CASes a stale envelope.
New persistent type, TargetSupervision (idunn.target_supervision, schema v1, in
control.cc, keyed by target).
- Owner: the meter primitives above.
- Live consumers:
- the route gate (every install, preflight, rollback, withdraw and repair);
- the continuity mint;
status.
- Invariant: a target's meters outlive every generation and exist before the first one.
- Why no existing owner can serve:
- The generation does not exist for a first deploy (the ruling).
- The transaction dies with each attempt.
- Brakes are operator-signed and are not Idunn's to write.
- What it replaces: two carry compensators,
for_new_incarnationand the backoff copy infrom_transaction, plus a history scan.
B2 rework, C. Per file
The branch is fresh from 583b2a7.
Deletes first.
control_plane.rs:
:63:CONTINUITY_RESTART_ATTEMPTS: usize = 3. It is replaced by the constants in section A.:876-893:ActuationWindowandfor_new_incarnation.:906-926:ContinuityBackoff. Q-B2-1 (a) moves it intoTargetSupervision.:1986-1988: key 18.:1992-1993: key 20.:2043-2047and:2074-2076: the carries.:2139-2145: the key-18 validation.:4974-5020: the history-countedis_refused_restartand thehistory_for_decisionread.:5062-5071: the deferral check on the generation.:5173-5176: the key-18 guard. Keep theSkippedUnroutedhalf.:5263: the key-18 clear.
Tests:
:9755-9801,continuity_gives_up_on_a_release_that_will_not_start. It tests a copy of the production closure, so it proves nothing.:10564,:11528-11542: the F0 assertions onActuationWindowandattempts. Rewrite them againstTargetSupervision::validate.:14622-14645,RoutedWorld::promote_by_hand, and its 9 callers (:14651,:14691,:14722,:14767,:14927,:14949,:15041,:15299,:15433). They becomerouted.step(): the stub actuators let Routing run for real, so route-proof Routing gets tested for the first time.
Schema: generation v4, one bump.
ADMITTED_GENERATION_SCHEMA(:55) becomes"idunn.admitted_generation.v4". The macro at:1939changes to match.:56: addADMITTED_GENERATION_SCHEMA_V3.- The v4 layout:
- keys 0-17 are unchanged;
- 18 is a gap;
- 19 is
Option<RouteSupervisionState>withoutactuations; - 20 is a gap;
- 21 is
last_error: Option<String>, the dead-hold ruling's field. It is written by D1, and B2 carries the slot so D1 needs no second bump.
- The cultcache derive encodes slots positionally, so a gap is a nil and any added slot changes
the array. That is why F1's unbumped field broke the canonical re-encode (
decode_record,:2811-2821), and why every change here rides one bump. LegacyAdmittedGenerationV3: move today'sAdmittedGeneration(:1936-1995),RouteSupervisionStateandActuationWindow, andContinuityBackoffverbatim underLegacy*names besideLegacyAdmittedGeneration(:2967-3049).- Its
into_current()drops key 18,actuations,window_started_at,attemptsandnext_restart_at. - It refuses a v3 record whose
actuations.count != 0orattempts != 0. - Why that is lossless (read): no released binary ever wrote those fields. On
583b2a7the only non-test writes are the carry at:890, which carries a default, and the ≤30 s deferralnext_restart_atat:5154. B2 was never installed. - So the lift creates no
TargetSupervision. Every target starts with an absent record, and the refusal makes any future contradiction loud instead of silently dropped.
- Its
- The v2 lift (
:3016-3048) targets v4 directly: the same body without the retired fields. Keep it; section H explains why this is not a question. read_generation_record(:3102-3121): add a v3 arm.- The migration filter at
:3147-3148addsADMITTED_GENERATION_SCHEMA_V3.
New record, TargetSupervision, beside AdmittedGeneration:
struct TargetSupervision { // idunn.target_supervision / .v1, key = target
#[cultcache(key = 0)] schema_version: String,
#[cultcache(key = 1)] target: String,
/// Newest ≤ ROUTE_ACTUATION_CEILING actuation times, ascending.
#[cultcache(key = 2)] route_actuations: Vec<u64>,
/// Newest ≤ CONTINUITY_RESTART_ATTEMPTS restart times, ascending. (Q-B2-1 (a))
#[cultcache(key = 3)] continuity_restarts: Vec<u64>,
#[cultcache(key = 4)] continuity_deferred_until: Option<u64>,
#[cultcache(key = 5)] continuity_deferral_reason: Option<String>,
}
The record threads through several places:
ControlSnapshot(:2564-2568) gainstargets: Vec<Stored<TargetSupervision>>.- The
readmatch at:2580-2610gains its arm. Without it, the match's "foreign document" bail at:2609refuses the store. validate_relationschecks unique targets.target_supervision_envelopegoes besideadmitted_envelope(:3198).
Meters. A sliding log, not a window (fixes F4):
charge(log, now, window, limit, kind):- Clamp any entry greater than
nowtonow(fixes F5; see below). - Count the entries within
window. - For
Forward, if the count is at leastlimit, refuse withreopens_at = log[len - limit] + window. - Otherwise push
nowand keep only the newestlimitentries.
- Clamp any entry greater than
- Keeping the newest
limitentries is exact for "at mostlimitForward in anywindow", even after Survival pushes past the limit. - The restart log uses the same primitive. The next restart is due at
last + BACKOFF << (n - 1), wherenis the number of entries in the window.
Clock steps. Fixes F5, and collapses one helper.
is_waiting(now, not_before)(:3351-3353) becomesis_waiting(now, not_before, longest_wait) = now < not_before && not_before - now <= longest_wait.- A due time further ahead than any wait this owner can set means the clock stepped back, so the attempt is due.
- Callers:
- resume backoff at
:4537, withRESUME_BACKOFF_CEILING_MILLIS; - the route challenge, with
ROUTE_CHALLENGE_BACKOFF_CAP_MILLIS.max(max_age); - the restart wait, with
BACKOFF << (ATTEMPTS - 1); - the deferral, with
CONTINUITY_DEFERRAL_MILLIS.
- resume backoff at
- The log clamp bounds a backwards step to one window, never the length of the step.
drivers.rs.
- Port
RouteActuatorsfrom97f1ad2at:5049-5068. - The trait becomes
RouteActuationGate::admit(&self, kind: RouteActuation) -> Result<()>, withpub enum RouteActuation { Forward, Survival }. - Gate the methods:
| Method | Kind |
|---|---|
preflight (:5293), before validate_candidate_in_private_mount at :5315 |
Forward (F7) |
install (:5338), before the write at :5360 |
Forward |
restore (:5268) and fail_after_rollback (:5279) |
Survival |
withdraw_candidate_membership (:5409) |
Survival |
rollback (:5555) |
Survival |
restore_admitted_membership (:5420), after the exact-bytes return at :5430 |
Survival |
install's own rollback, throughfail_after_rollback, therefore charges a Survival even when it follows a Forward.
control_plane.rs Engine.
RuntimeOptions(:2160,:2202): addroute_actuators.- Add
route_driverandroute_gateas in97f1ad2. charge_route_actuation:- reads a fresh snapshot;
- CASes the target's record, with
current: Nonewhen absent (the first deploy); - is typed as described above.
- A refused Forward is an error of its phase.
- Warming's preflight (
:5690-5711) comes before the fence, so the refusal becomes a pre-fence abort (:4587-4593) whose error namesreopens_at(Q-B2-2 ruled: fail at once). - Routing's install comes after the fence, so it stays resumable. The resume backoff spaces it, and no actuation runs.
- Until B5 lands, a post-fence candidate whose install keeps being refused waits for the window. That wait is bounded by the window, and it runs no programs.
- Warming's preflight (
supervise_one_admitted_generation (:4787-5145), in order:
- Hold (
:4960-4973, unchanged). - Blocker yield (
:5025-5043):refused_restarts < ATTEMPTSbecomes!restarts_exhausted(now). - Exhausted:
eprintlnonce through aReportOncekeyedcontinuity:<target>, then continue. - Waiting or deferred: continue.
- Demotion (
:5072-5098). On failure, writecontinuity_deferred_untiland the reason toTargetSupervision, thenprogressed = true; continue. - Lifecycle brake (
:5105, unchanged). - Mint. The CAS at
:5114-5142gains theTargetSupervisionexpected envelope,Nonewhen absent, and its next value withnowcharged to the restart log and the deferral cleared.
A brake-parked target spends no attempt.
supervise_admitted_route (:5171-5270).
- At the top: if
route_supervision.is_waiting(now, cap), returnOk(false). - Port B2's challenge closure: the Survival-gated restore, prove, and re-observe.
- On
Err:- write
record_failed_challengeto the generation, CAS oncurrent.envelope; - print once through a
ReportOncekeyedroute:<target>; - return
Ok(true). This is the F3 fix.
- write
- On
Ok: write the receipt andrecord_proved_challenge, returnOk(true). - If the Survival repair itself charged
TargetSupervision, that is a second record, not the generation, so the generation CAS still holds. The iteration ends either way.
status (:3668-3756).
- After the command loop, print one block per target: the union of admitted generations and
TargetSupervisionrecords. - Port
render_supervision, reading the restart and route logs from the target record:route actuations N/12 in window, reopens-at …;continuity restarts N/6 … next-restart-at … deferred: <reason>.
- A metered target with no generation prints its meters alone. That is the first-deploy case.
B2 rework, D. B2 verification
Each ruling or finding is pinned by a test that fails under its own mutation. All tests are
Engine-level on RoutedWorld with RouteStubs, #[cfg(unix)], except where marked unit.
| Ruling / finding | Test | Mutation it must kill |
|---|---|---|
| Ruling: never refuse a rollback | a_full_ledger_still_restores_the_admitted_and_incumbent_route. The ledger holds 12 entries inside the window. (i) A post-fence abort's withdraw runs systemctl reload once and pushes an entry. (ii) Supervision repairs a drifted admitted fragment the same way. (iii) A Routing proof failure's rollback does too. |
Survival treated like Forward (refused), which drops the reload; Survival not recorded, which drops the entry |
| Ruling: always counted | the same test, asserting the ledger's newest entry is now after each Survival |
skipping the push for Survival |
| Ruling: first deploys metered | a_first_routed_deploy_is_metered_and_refused_at_the_ceiling. RoutedWorld seeds with no incumbent (:14352). (i) run_to_routing then one step creates TargetSupervision with 1 entry. (ii) A world whose record is pre-filled to 12: install fails with RouteActuationRefused, and the stub log has no ufw, nginx or systemctl. |
the B2 early return "no admitted generation means unmetered" |
| F7 | a_refused_preflight_starts_no_private_mount_unit, a full ledger: the Warming preflight runs no systemd-run and the transaction pre-fence aborts with the reopen time |
preflight's gate call deleted |
| F4 rolling | unit, the_actuation_log_slides: 12 charges at t, t+1…t+11. At t+window only one slot reopens (the 13th charge succeeds, the 14th is refused until t+1+window). |
fixed window anchored at the first charge |
| F5 | unit, a_clock_stepped_back_stalls_nothing_past_one_window: log entries and due times at T, with now = T − 1 day. The Forward reopen is ≤ now + window; the route challenge, restart and resume waits read as due. |
the clamp removed; the longest_wait guard removed |
| F3 | a_failed_challenge_and_a_dead_unit_in_one_tick_do_not_lose_a_cas. A drifted fragment, a hang_up stub and a killed SwitchWorkload. Tick 1 returns Ok and records the failure; tick 2 mints the restart. |
a route failure returns Err, or falls through without continue: the mint CAS loses and the tick errors |
| F6 | a_proved_challenge_clears_the_degradation: hang_up on, one tick (degraded, failures 1); hang_up off, wait made due, one tick (failures 0, next None, degraded None) |
record_proved_challenge call deleted |
| F1 | a_v3_generation_lifts_to_v4_once_and_reencodes_canonically, over new golden fixtures generation-v3-odin.hex and generation-v3-route-proof.hex, cut with the 583b2a7 encoder (add them to the fixture README). The migration counts 1, then 0. After it, decode_record accepts the bytes, and the decisions are equal apart from the retired fields. A v3 fixture edited to attempts = 2 is refused. |
the v3 schema dropped from the migration filter; the refusal removed |
| Restart ceiling reads no history | rename unreadable_history_stops_continuity… (:13516) as B2 did: a corrupt history still restarts, and the target's own log exhausts it |
re-adding history_for_decision |
| Backoff and window | port continuity_restarts_are_backed_off_and_bounded_per_target on SwitchWorkload |
halving the wait; resetting the log on a new generation |
| Storm (a) | port a_failing_reload_that_deletes_the_fragment_backs_the_route_off: 200 ticks give one reload |
the is_waiting gate deleted |
| Storm (b) | port a_candidate_whose_route_proof_fails_reloads_at_most_the_ceiling: Forward installs are capped at 12 |
the install gate deleted |
| Driver gates | split B2's refusing-gate test in two: Forward refused runs no program; Survival under a gate that "refuses" Forward still runs | a gate call moved after the write |
- Run
cargo mutants --in-diffon the cut. The target is 0 missed in the meters, the migration and the supervision edits. a_failing_step_is_retried_after_a_backoff_not_every_tickis flaky under a full parallel run on the base too. Soul should not charge it to this cut.- The live timeline probe, read-only, before and after install:
journalctl -u nginx --since -1h | grep -c 'Reloaded nginx'stays at the C2 baseline of about 0 per hour while steady;idunn statusshows every routed target withroute actuations 0/12and a healthy route.
B2 rework, E. Live-deploy relevance (read from migration code, not from the store)
What is live now (ship log plus code).
control.ccgenerations are v3: F0's lift (:3131-3181) ran at the B3 install and migrated 5 records.- Transactions are v4.
history.ccholds v3 and v4 transactions and is never migrated (:3388-3391).- B2 changes no transaction schema.
What the B2 install does.
- At boot, the migration rewrites every v3 generation as v4, each by CAS against its exact envelope. That is the same machinery F0 used.
- It writes no
TargetSupervision: the lift is lossless for the reasons in section C. - The first route actuation after install, a deploy or a repair, creates each target's record.
It is irreversible.
- The pre-B2 binary refuses a v4 generation (
:3120). - It also refuses a
TargetSupervisionenvelope:ControlSnapshot::readbails "foreign document" at:2609. - Binary rollback therefore means restoring the backup.
- Ship steps: back up
control.ccandhistory.cc, install, then check thatidunn statusrenders every target.
A lift refusal fails boot for every target. It cannot happen from any released binary. If it does, the backup plus the pre-B2 binary is the recovery, and the error names the record.
Raven.
idunn-hostdecodes plans, not generations, so B2 needs no actuator rebuild.- W1 is still the check that the actuator builds at the sha that ships.
B2 rework, F. Subtraction estimate (B2)
Production code in control_plane.rs and drivers.rs:
- Removed:
- about 45 lines of history ceiling;
- about 40 lines of
ActuationWindow, carry and backoff; - about 20 lines of key-18 and key-20 plumbing.
- Added:
- about 90 lines for
TargetSupervision, its snapshot arm and its validation; - about 60 lines for the meter primitive and the clock guard;
- about 60 lines for the v3 legacy layout, mostly moved rather than written;
- about 60 lines for the gate plumbing and
RouteActuators; - about 50 lines for status.
- about 90 lines for
- Net production: about +250.
Tests:
- Removed: about 46 lines of the tautology test and about 24 lines of
promote_by_hand. - Net tests: about +350. The 9 hand promotions become real Routing steps.
Compared with 97f1ad2, which was +1243/-200, about 600 of B2's lines are not ported.
Structural delta:
- One record type added.
- Two carry compensators and one history dependency deleted.
- Two generation keys retired.
- No targets, crates or dependencies.
- The build and test matrix is unchanged, apart from W1's check.
Not asked, decided. The v2 generation lift stays, retargeted to v4. Its only consumer is a
restore of /root/idunn-store-backup-…-pre-route-b3, and deleting it would force rewriting
about 10 tests built on FIXTURE_GENERATION for a saving of about 80 lines. Retire the v2 and v3
generation layouts together in one later cut, once the operator retires the pre-B3 and pre-B2
backups.
D1 — The dead-hold report lives on the generation (Idunn; operator ruling, 2026-09-30). READY FOR HANDS, after B2 (B2 carries key 21 and render_supervision).
Owner: Engine::report_generation_hold(current, detail). It is the only writer of
AdmittedGeneration.last_error.
- It writes only when the text differs.
- It prints once through the existing
ReportOncemap (:3865), keyed by target. - It ends the iteration, per the rule in section B.
Writers today, by site.
note_fault("holds admitted generation", "generation:<t>")at:4793-4799hands a generation key torecord_last_error(:4472-4495). That function looks it up among transactions, finds nothing, and so the report is stderr only. It also never clears.- The dead-hold note at
:4965-4969behaves the same way. - Both go. They are replaced by
report_generation_hold, with the readiness disagreement, or with "is not running; declare readiness in its recipe and redeploy" when dead.
Clearing (the ruling: replaced, or hold released).
- Replacement clears by construction.
from_transactionsetsNone, so it needs no code. - Release: at the hold check,
readiness().is_ok() && last_error.is_some()writesNone, callsclear_fault, and continues.- This covers an Idunn upgrade that reclassifies a generation.
last_errorhas no other writer: the continuity deferral reason lives inTargetSupervision, and route failures live inRouteSupervisionState.
Status. render_supervision prints held: <last_error>.
Tests.
- Extend
a_held_generation_that_dies_mints_no_continuity_and_leaves_its_target_free(:13842). It currently reads the in-memoryfault_reportsat:13858-13859; it must readlast_errorfrom the stored generation instead: first the held text, then, afterSwitchWorkload::kill, the dead text. - Add
a_released_hold_clears_its_report: seedlast_erroron a generation whose readiness is OK; one tick clears it, and a second tick writes nothing, with the envelope unchanged. - Mutations it must kill:
- dropping the clear;
- writing on every tick;
- routing back to
record_last_error.
Size. About +40 production lines and about +60 test lines. It deletes the two
generation:-keyed note_fault calls.
Live. No schema change. On install, the first tick writes last_error on any held generation
(none per the 2026-09-30 decode, now that raven-muninn is admitted).
T1 — Pin the candidate-cleanup rule by removing its free arguments (Idunn; Soul follow-up on B3). IN PROGRESS on hands/idunn-w1-t1-t2.
The defect.
pre_fencing_abort_intent(:7991-8005) andpost_fencing_abort_intent(:8007-8039) each callcandidate_cleanup_requirement(activation.is_some(), workload.is_some())(:8041-8050).- The unit test (
:9806-9820) never covers(false, true), and no test drives either intent with exactly one of the two set. - So swapping or constant-folding either argument at either call site survives.
The cut.
- Delete the helper.
- Add
DeploymentTransaction::candidate_cleanup_owed(&self) -> CleanupEvidence, used by both intents. - Rewrite the unit test as a four-row table over the method.
- Add one test that both intents take the method's answer for
(Some, None)and(None, Some).
Mutations it must kill:
||becoming&&;- either operand becoming
false; - either intent hardcoding
Skipped.
Size. About −10 production lines and about +8 test lines. Not live-relevant.
T2 — The chunk-size line is exactly RFC 9112 (Idunn; Soul follow-up on B3). IN PROGRESS on hands/idunn-w1-t1-t2.
Probe (Yggdrasil, throwaway commit ce98e9b on 583b2a7): the HTTP reader accepts " 3",
"3 ", "3 ;x" and "3" alike. The cause is size.trim_matches([' ', '\t']) in
drivers.rs:5816-5821.
What RFC 9112 7.1 allows. chunk-size [ chunk-ext ] CRLF, where
chunk-ext = *( BWS ";" … ). So whitespace is allowed only before a ;, and never before the
digits.
The cut.
- Split at the first
;. - Trim trailing SP and HTAB only when an extension follows.
- Never trim leading whitespace.
parse_digits(:5846-5851) stays the digit authority.
Tests. Add rows to an_http_answer_that_frames_its_body_wrongly_is_refused (:8611):
" 3" and "3 " are refused. Add to
a_chunked_answer_must_end_its_trailers_and_terminate_each_chunk (:8799) that "3 ;x" and
"3\t;x" are taken.
Mutations it must kill:
- trim both ends, which lets
" 3"pass; - no trim, which refuses
"3 ;x".
Size. About +4 production lines and about +8 test lines. It is live-relevant only as
stricter parsing of StreamPixels and Odin answers. Node's http emits bare hex, so there is no
expected behaviour change.
Note. Neither T1's nor T2's text is recorded in the map at 94c7691. Both were taken from
the brief, and the defects were confirmed from code and the probe.
W1 — Every verification checks the Windows actuator compiles (Idunn map and the eureka stopgap image). IN PROGRESS on hands/idunn-w1-t1-t2.
Probe (Yggdrasil, rust image):
rustup target add x86_64-pc-windows-gnu; cargo check --locked --target x86_64-pc-windows-gnu --bin idunn-host.- At
d32395a(B3 merge, before the fix) it fails with fourE0425errors, "cannot find valueFROZEN_SOURCE_SYMLINK_TARGET_LIMIT" (drivers.rs:1461-1477). That is exactly the Raven break. - At
583b2a7it passes in 26 s. No mingw linker is needed, becausecheckdoes not link, and no dependency compiles C for the target.
The cut. No Idunn code changes.
~/.claude/skills/eureka/tools/stopgap/rust.DockerfilegainsRUN rustup target add x86_64-pc-windows-gnu, so no job downloadsrust-std. Rename the file over itself; the image is re-tagged by the file's hash.- The map's "Build and verification path" makes the check a required step for every Idunn
cut, beside
cargo test.- It must not use
-D warnings: the Windows target currently emits 9 warnings (unused cfg-split code).
- It must not use
- When the Idunn verify recipe exists (verify campaign), the same step moves into it, and
this stopgap line dies with
ygg-verify.sh. - The release build stays a documented step, not a verification.
gamecult-ops/runbooks/idunn-host-raven.md:23already names Starfire forcargo build --release --bin idunn-host. Add: "at the exact Idunn sha being installed on Yggdrasil; record the exe sha256 in the ship log".- That is Windows-only work. It fits the load budget: one job, no burners.
Honesty limit.
- W1 catches compile rot, the class that broke Raven.
- It does not catch link failures or runtime behaviour on Windows. Q-V5 rules out a Windows verify host.
- It does not catch version skew, where an old actuator cannot decode new plan types. That was the other half of the Raven incident. Only the runbook's "rebuild at the installed sha" step covers it. A version handshake at hub attach would be the structural fix; it is noted and not mapped here.
Size. One Dockerfile line and one map line. It adds no targets.
R1 — A routed target proves it answers the route challenge before its fence (Idunn; Q-R1 ruled (a)). READY FOR HANDS, after B2. Must land before Heimdall's first deploy.
- Owner: Warming's last step, the transition to Fencing (
:5742). - Inputs:
- the candidate endpoint;
ReadinessClass::of(expected);warming:RouteProofDirectandFirstOdinDirectare already a direct answer.
- Rule. If
expected.route.is_some()andwarmingisOdinTopology, thenchallenge_candidate(¤t.value, &["warming", "active"], None)(:7313) must answer beforetransition(Fencing):Silentbecomesrecord_gate_wait, since the candidate may still be binding;RefusedbecomesErr, which resume turns into a pre-fence abort (:4587-4593) with "routed target does not answer the stable-route challenge; a routed recipe must serve CultNet snapshot challenges";- an
Answeredresult is not persisted. It is not readiness, and passing Warming is the record.
- Deletes: none. This is a check moved earlier, not a second authority. The post-fence proofs at Routing and Commit stay the route's admission.
- Size: about +20 production lines, no schema change.
- Tests (Engine, B3
RoutedWorldwithprovides_odin = falseand an Odin-correlated recipe):- The stub's
replyanswers 404: the transaction pre-fence aborts from Warming, no lease is granted, and nothing is fenced. hang_upon: a gate wait, not an abort. Thenhang_upoff: it reaches Fencing.- An honest stub reaches Fencing exactly as today.
- Mutations it must kill: the class guard widened to
RouteProofonly (test 1 then reaches Fencing);Silenttreated asRefused(test 2 aborts).
- The stub's
- Live: nothing changes for ghostlight or streampixels-service, which answer today. Heimdall (not admitted) now fails in Warming instead of wedging post-fence.
B3 — Route-proof readiness (Idunn). For a route-proof target:
- Warming is a direct candidate-endpoint challenge. This generalizes the
FirstOdinDirectpath andrequest_candidate_runtime_presencebeyond Odin. - Ready is a direct candidate challenge returning
active. - Routing and commit use the stable challenge.
- Commit writes
RouteProofreadiness. - No Odin read occurs anywhere on the path, including the graph gate.
- Odin-correlated targets are unchanged.
- Negative check: with Odin stopped, a route-proof target admits, restarts, and keeps its route. An Odin correlation about it has no effect on any of its decisions.
B4 — Provider currency from Idunn's own observation; 9f00e7a reverted
(Idunn). BLOCKED on the Odin-lifecycle authority audit.
- Per Q2(b),
validate_selected_providers_currentand plan compile read the provider's current route observation within max age, and read capabilities from its signed presence. - Unrouted providers use their Q1 class evidence, authenticated now.
- Revert the admission-time authentication.
ManagedReadycarries a class-tagged evidence digest.
B4 status, 2026-09-30: BLOCKED on the Odin-lifecycle authority audit (a separate Imagination pass), not on Q-B4. Q-B4 is ruled in part (section 3): routed providers are current by Idunn's route proof and not degraded; unrouted providers by admission plus a live workload observation. The clause "a current Odin non-Ready word still excludes a provider" is held open. B4 also takes B2's degraded state as input.
C2 run 2 failure mechanism (Eyes, 2026-09-30)
The code was read at 583b2a7. The Idunn journal on Yggdrasil was read read-only; no state store
was read.
Journal evidence.
- 21:15:18: "excluded non-current provider streampixels-service: admitted provider's latest receipt is not Ready at its admission time".
- 20:44 and 21:15: "…streampixels-web: admitted generation of streampixels-web is not Odin-correlated".
- ghostlight and raven-muninn are excluded with the "latest … not Ready" text on every compile since 19:45, with Odin up.
The path.
- Plan compile (
advance_sealing,:5375-5385) builds its provider list only fromcurrent_ready_provider_tokens(:7398-7415), which callsrehydrate_admitted_ready(:7417-7470). rehydrate_admitted_ready:- requires Odin receipts (
odin_receipts(),:7422). A route-proof provider fails here with:2019, so no route-proof target can be a provider today; - requires the admitted
latest_odin_observationto be semantically Ready (:7453-7456).
- requires Odin receipts (
refresh_admitted_topologywrites every fresh authenticated correlation aslatest, Ready or not (:5320-5325). Only a Ready one also movesready.- So one non-Ready word from Odin removes the provider until Odin says Ready again.
- Such a word can come from the provider's presence ageing out in Odin, including through Odin's own faults, for example its 64-slot RUDP session table.
- With Odin stopped, that last word is frozen.
managed_ready_provider_refs(deployment_plan.rs:264-316) takes capabilities from Odin's record.select_dependenciesthen bails "no expected provider satisfies streampixels.service.api http.v1 v1" (deployment_plan.rs:447-455).- The same rehydration gates currency again at Starting, Routing and Committing, through
validate_selected_providers_current(:7472-7534). So a deploy that compiled can still fail later on Odin's word.
This is the unlanded B4. Q2 was ruled (b): "Idunn's own current route observation of the admitted provider … Unrouted providers fall back to their Q1 class evidence".
- streampixels-service is routed, so under B4 its currency is Idunn's route proof. C2 run 2 would admit.
- "Both runs must admit" is therefore blocked on B4, not wrong.
One B4 brief item found here: challenge cadence against max age.
- S1 challenges a healthy route only once its observation is older than
topology_maximum_age_millis(30 s) (:5213-5221). - So a healthy route's observation ranges from 0 to about 30.5 s old.
- A B4 check of "within max age", repeated at compile, Starting, Routing and twice at Commit, would sometimes refuse a healthy provider.
- B4 must define currency as "the route is not degraded, and the last proof is within 2 × max age", or challenge on demand. That is a brief decision, not an operator one.
B5 — Every post-fencing phase ends (Idunn).
- A deadline resolver runs before
advance_transaction. - For stateless targets, expiry aborts to the incumbent through the existing post-fence path.
- For stateful targets, expiry resolves per Q3.
- A granted lease with no adoption evidence at its deadline becomes the named
failure
lease-not-adopted. - Delete resumable-forever:
record_resumable_errorafter Fencing only annotates until the deadline. - Fix the F16 livelock. Commit from the topology admitted after the final proof when it is still Ready, instead of returning. Route-proof targets never enter that path.
- Add the Q4 expiry request.
- Negative checks:
- An AwaitingReady state with no evidence resolves at its deadline.
- An unadopted lease resolves without an operator.
- Commit completes while Odin re-stamps every tick.
Owning-repo cuts
C1 — Local route proof in the CultLib TS runtime (CultLib, after Q6).
- Split
idunn-runtime-authority.tsinto:- authority loading and signing, with no Odin endpoint, no Odin dependency check, and no RUDP;
- an optional Odin presence publisher for CultMesh-aware services.
publishRouteObservationbecomesanswerRouteObservation(request, state). It signs locally and returns the document immediately, with no network. The state comes from the app's current health (warminguntil first healthy) rather than a constantactive.- The lease pickup contract is unchanged.
- Tests are in the package. Verify under the node image on Yggdrasil.
C1 status, 2026-09-29 (Self). Landed on CultLib idunn-ts/route-c1 (795fd10). Soul closed
it on conditions, and a fix batch is in Hands:
- stateful, lease-bound Rust vectors;
- the signer owns health (
reportHealth), starting atwarming; - the signer records every warming it signs, so a route-proof stateful target can take its lease;
- one signer per authority, a frozen authority, and a subpath export without the Odin publisher. Two consequences for later cuts:
- C2 covers the StreamPixels service too.
apps/service/src/app.ts:155answers route challenges throughpublishRouteObservation, which C1 removed, so the gitlink bump breaks the service unless C2 moves it toanswerRouteObservationandreportHealth. - B3 surfaces the typed capacity shortfall on the route path. Today it reads as a
generic "disagrees with current authority" (
control_plane.rs:5190).
S3 + C2 code status, 2026-09-29 (Self). Landed on StreamPixels route/s3-c2 (8e6d891),
after Soul and a fix batch:
vendor/CultLibis at30ee8b9, and the web has no Odin dependency or env.- Both apps answer through the signer, with one health owner,
driveRuntimeHealth. - CI now builds the vendored gitlink, not a sibling
main. - A production-named launcher test runs
runIdunnRuntime. It caught a droppedpublishargument that would have broken the service's write lease. - Checks: 172 tests, typecheck, the web build and the release assembly.
Not merged to StreamPixels
mainuntil B3 lands. Idunn cannot yet admit a web with no Odin dependency, so a deploy ofmainwould fail readiness. Follow-up: the production fixtures are generated by applyingtest-data/idunn-runtime/fixture.patchto CultLib'sidunn_runtime_fixture.rs. The generator should take the target, contract and dependencies as input, so no consumer patches it. Recorded: web/api/healthzis constant{ok:true}, so the route proves "HTTP answers", not store health.
C2 — StreamPixels web binding proves invariant 3 end to end (StreamPixels, after C1, S3, B3).
- Point the gitlink at the C1 commit.
- The Next
/cultnet/snapshothandler answers fromanswerRouteObservation. No publisher is registered and no Odin env is read. - Run the web tests and build in the node image on Yggdrasil.
- Live acceptance:
- Deploy the web through
idunn upwith Odin reachable, then repeat with Odin's UDP route broken on purpose, or with Odin stopped under the lifecycle brake. - Both runs must admit.
- Both must show zero steady-state reloads over one hour.
- Both must show repeated successful signed challenges. Run 2 (Odin stopped) is blocked on B4. The failure on 2026-09-29 21:15 is the unlanded B4, not a C2 defect.
- Deploy the web through
- Public cutover is out of scope and resumes afterwards through the ordinary path.
Build and verification path
- Idunn tests use
ygg-verify.sh F:/Projects/Idunn <rev> rust '<cmd>'. The command must keep its own exit status last. Heavy builds must not run on Starfire. - CultLib TS runs from
packages/cultnet-tsin a node image. - StreamPixels runs pnpm in a node image.
- Live timeline probes (reload counts, worker counts, journal) are read-only commands on Yggdrasil, taken before and after each deploy.
- Each Idunn cut names its focused tests. The whole suite runs once per cut on Yggdrasil, not per edit.
- Every Idunn cut also runs
cargo check --locked --target x86_64-pc-windows-gnu --bin idunn-host(W1), without-D warnings.
Ops follow-ups, out of scope
worker_shutdown_timeout: the probe found none configured.- Retention of dead transient units and activation directories.
- Odin's UDP listener proxied through nginx: every deploy-time reload still moves Odin's flows (F7). Invariant 1 removes the steady-state reloads, not the install-time ones. Whether Odin should bind its stable endpoint directly is a later route-driver question.
- Heimdall's repeated source and runner failures appear in
idunn status, but that work is excluded.