Commit graph

360 commits

Author SHA1 Message Date
Meta Vens
19cd3a445a Projection test: a failed writer must end the reader loop
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 04:18:13 +02:00
Meta Vens
40a6682e11 Projection: create the staged file with its final mode, drop the post-rename chmod
CultCache stages a temp file and renames it over the store; the temp file is
created under Idunn's UMask=027, so the visible projection was 0640 until
publish_projection_mode chmodded it after the rename and the directory fsync.
A reader running as another user (Odin) failed with EACCES in that window.

The store write now runs on a helper thread that unshares CLONE_FS and sets
umask 022, so the staged file and the .lock are created 0644 and never visible
in another mode; other threads keep 027. publish_projection_mode is deleted.
CultCache has no mode parameter, so this lives in Idunn. The ACL note in
migration.md now says the ACL is no longer required.

Test: a reader polls the directory across 300 publishes and records the mode of
every store and lock inode it sees; all must be 0644.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 03:15:48 +02:00
Meta Vens
012853529c Idunn map: storm (b) under Survival-always-counted; B2 Soul rulings
Continuity restarts are Survival; Survival counting is best-effort when
the ledger cannot record it, Forward stays fail-closed (2026-09-30).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 02:54:02 +02:00
Meta Vens
bb0d23c780 Merge W1, T1, T2: Windows actuator check in verify.sh, one cleanup rule, strict chunk sizes
Soul found W1 unenforced, T1 respelled in the validator and two T2 rows
unpinned; all fixed with mutation-killed tests (1afe046).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 02:03:15 +02:00
Meta Vens
1afe0466a4 verify.sh runs the Windows check before the tests
The probe at d32395a hung inside a library test and never reached the
Windows check. The check is fast and independent of the tests, so it
goes first and cannot be masked by a hang.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:58:19 +02:00
Meta Vens
bdcd23768b Abort cleanup test rows carry only the activation
The workload rows were refused by the fixture on grounds outside the
rule, so they were dropped instead of asserted. The workload operand of
the owed rule stays pinned by the method-level test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:41:58 +02:00
Meta Vens
e7ee053427 Drop the workload-only rows from the abort cleanup test
A transaction holding a workload and no activation is refused by the
fixture before the cleanup rule is reached, so those rows could not
speak for the rule. The method-level owed test keeps the workload-only
case.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:36:31 +02:00
Meta Vens
88ce30905f Judge the post-fencing abort test only on terminal shapes
The Pending post-fencing rows sat in a Fencing-phase transaction that is
refused for unrelated reasons, so the row could not say what it claimed.
Post-fencing rows now cover the recorded values a terminal abort carries.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:31:03 +02:00
Meta Vens
916caed9dd Merge guide text: Muninn no longer carries daemon health flags
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 00:27:40 +02:00
Meta Vens
61842a3952 Pin the chunk-size line against vertical tab and carriage return
Rows for a vertical tab before an extension, a carriage return before an
extension, and a size line ending in one or two carriage returns, so a
wider trim than SP and HTAB, or a stripped trailing carriage return,
cannot be taken.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:17:27 +02:00
Meta Vens
36467153b5 An abort's recorded candidate cleanup is judged by candidate_cleanup_owed
The pre-fencing validator respelled the owed rule inline. Both abort
validators now compare against candidate_cleanup_owed, so the post-fencing
abort, which had no check on its recorded candidate cleanup, is held to
the same rule. One test drives both aborts through every activation and
workload row.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:17:23 +02:00
Meta Vens
9f17a733dc guide: Muninn no longer carries daemon health flags
The retired --idunn-rudp-health family is rejected by the binary; Raven is
liveness by runtime presence, Starfire and Nightwing by witness scripts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:16:30 +02:00
Meta Vens
525856e9cd scripts/verify.sh is the one verification command
The Windows check on idunn-host lived only in README prose, so nothing
ran it and d32395a broke the Windows build unnoticed. verify.sh runs the
library tests and the x86_64-pc-windows-gnu check of idunn-host, and the
README names it as the verification command.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:15:32 +02:00
Meta Vens
3cedfef50a Map: fold in the Odin-lifecycle authority audit and the 2026-09-30 rulings
Records Q-O1 (Idunn proves; supersedes Q1 (b)), Q-O2, Q-O4, Q-O5 and the struck
Q-B4 held clause; Q-O3 open. Adds the audit site table and target authority
map (section 5), cuts X1, A1, B4prime, A2, A3, O-R, L-R, marks R1 superseded by
A1, records Odin's temporary fatal rule and the Soul open items, and updates the
Cut status block.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 00:14:51 +02:00
Meta Vens
97fb2b8871 Map: B2 rework plan, D1/T1/T2/W1/R1 cuts, and the 2026-09-30 rulings
Splice the B2 rework map (owner map, per-file cut, verification, live
relevance, subtraction estimate) under B2; add cuts D1, T1, T2, W1 and R1;
record Q-B2-1 (a), Q-B2-2 (fail at once), Q-R1 (a) and Q-B4 (routed by
Idunn's route proof, unrouted by admission plus workload; the Odin non-Ready
veto clause held open). B4 is blocked on the Odin-lifecycle authority audit.
B2, D1, R1 ready for Hands; W1, T1, T2 in progress on hands/idunn-w1-t1-t2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-29 23:44:25 +02:00
Meta Vens
bf5347c370 The chunk-size line admits whitespace only before an extension
RFC 9112 7.1 allows whitespace before a chunk extension and nowhere
else. The reader trimmed both ends of the size, so " 3" and "3 " were
taken. It now splits at the first ';', trims trailing SP and HTAB only
when an extension follows, and leaves parse_digits as the digit
authority. Rows use an honest body so only the size line differs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-29 23:40:11 +02:00
Meta Vens
5f8417589d Candidate cleanup owed is one method both abort intents share
The two-flag helper let either call site swap or fold an argument
unnoticed. DeploymentTransaction::candidate_cleanup_owed reads the
transaction itself, and a four-row table drives the method and both
intents.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-29 23:38:26 +02:00
Meta Vens
94c7691cb6 Map: the C2 acceptance hour passed; Odin 5c37860 deployed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 22:56:10 +02:00
Meta Vens
7480ee9d1c Map: StreamPixels ship completed through Idunn
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:55:34 +02:00
Meta Vens
583b2a7796 Merge the promisor-style bulk blob fetch
GitHub will not answer a bare blob id through plain fetch --stdin in a
blob:none clone; Git's own lazy fetch shape does. Proven against
GameCult/CultLib on Yggdrasil for partial and full clones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:15:56 +02:00
Meta Vens
08d94ee61b Fetch blobs in bulk the way Git's lazy fetch does for a promisor remote
In a blob:none partial clone, fetching bare blob ids with --stdin made Git's
post-fetch connectivity check treat the id as a revision and fail with
"bad revision" / "did not send all necessary objects" against GitHub, which
broke a live deploy fetching a vendor gitlink's blob. Add
fetch.negotiationAlgorithm=noop, --recurse-submodules=no and
--filter=blob:none, the arguments Git's own lazy fetch uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:13:22 +02:00
Meta Vens
f9cebb33d0 Pin the partial-clone bulk fetch arguments in the spy test
A file:// origin delivers an explicitly wanted blob with or without the
promisor-style flags, so the real-shape fixture cannot fail on the bug that
GitHub triggers. The spy test already records the bulk fetch line; assert
it carries fetch.negotiationAlgorithm=noop, --recurse-submodules=no and
--filter=blob:none. Fails on the current arguments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:12:06 +02:00
Meta Vens
7f776ec3a6 Pin bulk_fetch_objects against a real blob:none partial clone
Every existing source-driver fixture uses an origin without
uploadpack.allowFilter, so --filter=blob:none is ignored, the clone is
full, and bulk_fetch_objects never has a missing blob to fetch. This
fixture advertises the filter, so the checkout really lacks the blob, and
checks delivery with GIT_NO_LAZY_FETCH=1 so only the bulk fetch can supply
it. It fails on the current fetch arguments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:06:03 +02:00
Meta Vens
28662cb807 Map: ship log for the B3 install, the Raven actuator and the bulk fetch bug
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:05:35 +02:00
Meta Vens
d3db58227a Define the frozen-source symlink limit on Windows so idunn-host builds
The constant was unix-only since 9475dfa while its uses are not, so the
Windows idunn-host has not compiled since S1. Found installing B3: Raven's
actuator (built 2026-09-11) cannot decode the new plan types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:57:45 +02:00
Meta Vens
d32395ac99 Merge B3: route-proof readiness, held records, strict challenge reader
ReadinessClass::of is the one class authority; recipes declare readiness.
Held records are never aborted by Idunn; cancel accepts a held pre-fence
Deploy. Silent means no byte; any byte then a stop is Refused. Soul: merge
with follow-ups, safe to install on Yggdrasil.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:34:00 +02:00
Meta Vens
ae3788909a Map: B3 follow-ups and the dead-hold report ruling
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 20:15:08 +02:00
Meta Vens
5c49646b81 B3 follow-up: find the cancelled redeploy by id, not by history order
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 19:39:55 +02:00
Meta Vens
d34f5dc3f9 wip: show the completion in the cancel test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 19:38:28 +02:00
Meta Vens
8432d45bbe B3 follow-up: bound the chunked trailer loop, refuse signed numbers and spaced header names
Trailers draw on the header budget instead of an unbounded loop. Content-Length
and chunk sizes are digits only (RFC 9112), and a header name with whitespace
is refused. Pins found by cargo-mutants: partial trailer, exact bounds on all
three framings, one byte then stop, unterminated chunk from a peer that keeps
going. ChallengeFailure::Silent documents what it actually is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 19:36:54 +02:00
Meta Vens
137e120ce9 B3 follow-up: cancel accepts a held pre-fence Deploy; test yield by direct supervision
Operator ruling 2026-09-30 (F4): an operator may cancel a held Deploy that has
not fenced. Nothing was fenced, so the incumbent is untouched; the pre-fencing
abort releases the target. Idunn itself still never aborts a held record: the
held_disagreement guard on the yield path is unchanged and pinned.

The P1b test now calls supervise_one_admitted_generation directly with the
redeploy in Warming over a dead held incumbent, with a positive control (the
same redeploy over a dead non-held incumbent yields).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 19:36:54 +02:00
Meta Vens
bf2c645a60 Map: B3 fix batch Soul pass 3 and the held pre-fence cancel ruling
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 19:35:16 +02:00
Meta Vens
e8b44878b7 B3 fix: the over-bound header test must be over the bound
The previous commit's over-bound case used floor(bound / line) lines, which
can still fit under the bound once the status and Content-Length lines are
counted; the answer was accepted and the test failed. It now sends one whole
line more.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 18:23:11 +02:00
Meta Vens
4b3b86d863 B3 fix: pin the header bound at its edge and the chunked trailer loop
Two more mutants survived: the header-size bound was only tested far from its
edge, so doubling each line's cost went unseen; and the chunked trailer loop
was only exercised with a trailer present, so inverting it went unseen. The
bound is now tested one line inside and at its edge, and a chunked answer with
no trailer is read from a peer that keeps the socket open.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 18:19:07 +02:00
Meta Vens
d5669af352 B3 fix: pin what cargo-mutants found unpinned in the framed route reader
The header-size bound was tested only against answers that also stopped
short, so it never had to hold on its own; the interrupted-read retry was
exercised by no reader that could be interrupted. The header test now sends an
honest, whole answer whose headers alone exceed the bound, and a scripted
reader pins the retry and the silent/refused split at the Answer boundary.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 17:49:56 +02:00
Meta Vens
3803725bf2 Record the Odin timeout diagnosis and the Idunn-first ship order
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 17:21:25 +02:00
Meta Vens
2f22dcac96 B3 fix: read a route answer by its framing, and judge a stopped peer one way
The HTTP challenge read to end of stream, so a peer that answered in full and
kept the socket open (or answered 404 and kept it open) read as silence. It
now reads by Content-Length or chunked framing, refuses any non-2xx status,
and refuses bytes that are not a CultNet frame.

One rule for both transports: a peer that sent no byte is silent; a peer that
sent some bytes and stopped is refused. A truncated TCP frame used to read as
silence; that pinned test now expects a refusal.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 17:13:37 +02:00
Meta Vens
477927509a B3 fix: a held generation mints no continuity, and nothing yields to a held record
A held, undeclared generation that died reached the continuity mint, which
copied the undeclared Expected, was held at once, and owned the target for
good: cancel refuses continuity, so the declaring redeploy could never freeze.
Supervision now reports a dead held generation once and leaves it down and
its target free. With no continuity minted over it, a declaring redeploy in
Warming no longer yields to one either.

The yield path also aborted a pre-fence Deploy blocker without reading its
hold, which is Idunn aborting a held record. It now leaves a held blocker
alone.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 17:13:36 +02:00
Meta Vens
7dc3a4bb8c Record the live store decode, B3 pass 2, and the ship sequence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 17:00:39 +02:00
Meta Vens
86ee21dac5 B3 fix: pin what cargo-mutants found unpinned, delete what it found redundant
First cargo-mutants --in-diff pass over a61540b..aa1889b left 16 misses.

Deleted:
- the candidate challenge's own route-id check: rendering the Expected next
  holds the same binding, so it could never decide anything.
- odin_can_observe in advance_warming: is_odin && !(!is_odin || observed) is
  is_odin && !observed; two of the misses were operators in that detour.

Moved: which transactions are held for their evidence is now
DeploymentTransaction::held_disagreement, so "finished or aborting work is
never held" is a value with a test, not a local in resume_candidate.

Pinned: the admitted-generation topology refresh (taken once, then not
again), WarmingEvidence shape checks per source, the PresenceDisagrees text,
the plan's readiness declaration needing the shared-infrastructure kind, TCP
framed challenges (exact answer, bound, empty, non-CultNet, silence), RUDP
silence, and ChallengeFailure's text and source.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 15:24:45 +02:00
Meta Vens
aa1889b288 B3 fix: kill the three surviving mutants
Boot re-proof by tag: the held-generation test used receipts that still
re-proved cleanly (boot reads the current Odin authority, not the stored
one), so re-proving them passed. The receipts are now authentic but not
Ready, so only skipping them lets the store boot.

Config error as silence: the candidate path renders Expected first, which
parses the same endpoints, so the challenge's own parse is reached only from
the stable path. A new test drives that parse directly.

First-Odin gate by name: the stub can now answer a first-Odin Warming
challenge, and a stateful provider not named odin is accepted while a
stateful target named odin that provides nothing is refused.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 14:41:25 +02:00
Meta Vens
8d1dc9a87e Record the B3 fix batch and the hold / rollout rulings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 14:09:04 +02:00
Meta Vens
771138a164 Record B2 Soul rejection and the rollback / first-deploy rulings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 13:41:17 +02:00
Meta Vens
e11b457458 B3 fix: pin the route-proof rules, and delete guards another owner already holds
Tests for each rule the Soul pass found unpinned, each written to fail
under its own mutation:
- a stateful route-proof target through the Engine, Fencing to commit: the
  lease is prepared and granted, Ready is refused without the exact lease
  and recorded with it, boot re-authenticates the store at every stage and
  Odin is never read;
- Warming challenges once and then advances on every tick;
- a stateful candidate may not answer its Warming challenge active;
- a presence holds the write lease exactly when it is not warming, and is
  minted after its challenge;
- direct Warming evidence is bound to the bytes and digest it authenticated;
- candidate-vouched evidence is refused on a target Odin reports on;
- a pre-B3 transaction and a pre-B3 generation over a route-proof target are
  held and reported once, not stepped every tick, and not re-derived;
- a stored record with no declared readiness is held;
- Odin is the class OdinSelf, not the name "odin";
- admission refuses an undeclared recipe with a typed error, before the
  source is frozen; a recipe that declares its proof is planned;
- the driver's challenge failures: silence waits, every bad answer and every
  local configuration error is an error;
- the capacity shortfall is read as a typed PresenceDisagrees.

Deleted because another owner already holds them, so no test can reach them:
the Routing and commit "route-proof Ready evidence" ensures (validation
refuses a missing receipt, the hold refuses the other party's), the write
lease comparison's warming arm (the authenticator refuses a warming presence
that claims a lease), and the direct-Warming refresh check (rehydration
authenticates the recorded answer as Odin's first).

Engine.source is a SourcePort, the seam the admission test needs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 13:32:42 +02:00
Meta Vens
6ea824b5a9 B3 fix: readiness class comes from the recipe alone
ReadinessClass::of is the only class authority. A target whose recipe
declares neither a route nor an Odin dependency, and does not provide the
rendezvous, has declared no way to prove readiness: of() returns a typed
UndeclaredReadiness naming the target, and admission refuses it after plan
compile, before anything is frozen or installed. The OdinCorrelated fallback
for an unrouted target is gone.

The evidence tag no longer decides the path. Boot re-authentication and
admitted-topology refresh choose by class; a stored transaction or admitted
generation whose evidence was vouched for by the other party than its
Expected requires is a typed ReadinessDisagreement, reported once and held,
not a step that errors every tick. Nothing re-derives around it.

"Is this Odin" is the class OdinSelf, not the name "odin": validation,
warming, the Odin authority lookup and the direct-warming checks read the
class. canonical_sha256 on WarmingEvidence and the token's unread evidence
field are deleted.

A bad answer to a direct challenge is an error. The driver splits its
failures into ChallengeFailure::Silent (refused, dropped, hung up, timed
out) and ::Refused (a malformed, foreign, oversized or non-raw answer, or a
local configuration error); only Silent waits. The capacity/disagreement
shortfall is returned as a typed PresenceDisagrees, not flattened to prose.

Odin-driven fixture worlds declare the Odin dependency in Expected and the
correlation they sign names its provider.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 13:12:46 +02:00
Meta Vens
6501cafda3 Record B3 Soul verdict and the recipe-declares-readiness ruling
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 12:46:32 +02:00
Meta Vens
5ca7760fdd WIP B3: pin route admission past the gate 2026-09-29 11:06:25 +02:00
Meta Vens
4dcdd3608c WIP B3: route admission test 2026-09-29 11:03:47 +02:00
Meta Vens
54507060a5 WIP B3: pin the state rules, the lease refresh and boot re-authentication 2026-09-29 11:02:06 +02:00
Meta Vens
b9864b5041 WIP B3: Odin-providing target is driven through the engine 2026-09-29 11:00:47 +02:00