Commit graph

423 commits

Author SHA1 Message Date
Meta Vens
8d0786dcaf Watchdog map: topology lock probes C29-C40
Only the daemon writes topology.cc; Odin and Idunn read it lock-free; the
root backup's shared lock survives a private 0600 lock. A chmod does not
revoke an existing holder, so the shared primitive renames a fresh 0600
lock over a non-private one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 23:30:44 +02:00
Meta Vens
bca3d85394 Watchdog target: no tick waits on a lock someone else can hold
Operator ruled the topology-lock stall into this campaign (target r3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 23:09:34 +02:00
Meta Vens
b69a8e81ba Secrets map: Heimdall secrets merged at ca2366c after Soul pass 7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:49:57 +02:00
Meta Vens
ddc031a363 Merge B5 test pins: no firewall withdrawal over an incumbent, exact expiry filter, backoff growth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:37:51 +02:00
Meta Vens
f1b45666c6 Route map: B5 merged (fcb8ba1) and installed on Yggdrasil
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:36:02 +02:00
Meta Vens
1cfbeff083 B5 pins: firewall kept for a live incumbent, whole-id request match, backoff growth
Tests only, from Soul's last B5 check:
- F2: a rollback or withdrawal back to an incumbent route deletes no
  firewall rule (S-R2 survived).
- F3: expiry requests whose ids are a strict prefix of the transaction's
  command id, or extend it, leave it untouched (S-ME1, S-ME2 survived).
- F4: the second and third failures wait two and four polls, as back_off
  writes them (S-MJ1, S-MJ2 and a clamp survived).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:30:18 +02:00
Meta Vens
fcb8ba1c29 Merge B5: every post-fencing phase ends; reload skip confined to supervision
Phase deadlines are resolved before every post-fence step; `idunn expire` requests an
expiry through the same resolver; lease adoption is recorded from Odin's Ready; an abort
withdraws any issued lease (Prepared or Granted); install/rollback/withdrawal inside a
transaction always write and reload; a first-deploy withdrawal closes the firewall rule
before reloading. The operator-required arm for an adopted-lease deploy stays until the
Q3-ii snapshot cuts (Q-S5: B5 first).

Soul passes 1-3. Merged tree verified on Yggdrasil: 360 passed, 2 ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 22:28:52 +02:00
Meta Vens
7793b5bb89 Merge: retire the legacy bifrost-persona-feedback deploy route
The route ran the gamecult-ops compose lane, which would start a container beside the native
unit. Operator: "delete the Bifrost lane". Grant, dispatch and the Bifrost-authority check that
served only it are removed; bash -n and visudo -cf pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 21:50:03 +02:00
Meta Vens
889e23629c Retire the legacy bifrost-persona-feedback deploy route
The operator ruled "delete the Bifrost lane". This route was that lane's live
trigger: /srv/odin/deploy-manifests/bifrost-persona-feedback runs
`docker compose up persona-feedback`, and the provider actually running on
Yggdrasil is the native bifrost-persona-feedback.service. Firing the route
would start a container next to it.

Following deploy/legacy's own order, the grant goes first, then the dispatch:
- sudoers: drop `deploy bifrost-persona-feedback *`.
- idunn-yggdrasil: drop the target's policy case and its dispatch token, plus
  the Bifrost release-authority check that only it used (requires_bifrost_authority
  and the `idunn validate-release-authority` call). A deploy request that claims
  a Bifrost authority is still refused. The manifest environment keeps
  IDUNN_REQUIRES_BIFROST_AUTHORITY=false, because the installed Epiphany manifest
  checks for it.
- README: record the retirement and the counts. Also record that on 2026-09-30
  the installed actuator matched this file, but the sudoers grant was not
  installed: the idunn user cannot sudo.

Rebinding persona-feedback to a current Idunn binding is a separate follow-up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 21:40:21 +02:00
Meta Vens
85964d0f00 Secrets map: Heimdall batch 6 and Soul pass 6 (hold; invalid index, collation takeover, predicate normaliser)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 20:35:30 +02:00
Meta Vens
f85e74377f B5 batch 3: firewall first on a withdrawal to nothing; four test pins
`restore` with no prior membership now withdraws the stable endpoint's
firewall allow before it writes the fragment and reloads. A failing `ufw
delete` retries without touching nginx, which bounds the withdrawal reload
loop at zero until the Q3-ii cut gives the abort a deadline. A crash between
the two steps is safe: a rule already gone reads as withdrawn, and the retry
removes the fragment and reloads.

Pins from Soul pass 2:
- MB2: a redeploy over an existing incumbent route installs, rolls back and
  withdraws with a reload each (`changes_route` as `is_none()` survived).
- ME2/ME3: the resolver's command filter is tested with an id of equal
  length and the same leading bytes.
- MJ2: the backoff test asserts the wait `back_off` writes, one poll after
  the failure.
- Soul's F2 probe returns as a test: a withdrawal whose `ufw delete` keeps
  failing reloads nginx not at all over 20 retries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 20:08:58 +02:00
Meta Vens
1f7c8e8f42 Route map: B5 Soul pass 2 (merge and install after batch 3 pins); P1 reload-owed window recorded
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 20:07:49 +02:00
Meta Vens
aef0da34af B5: the Odin adoption test steps through sequence admission
AwaitingReady admits a new Odin sequence in one step and records Ready from
it in the next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:51:17 +02:00
Meta Vens
dcd0aa3f2b Secrets map: Heimdall batch 5 status and Soul pass 5 (hold; batch 6 in Hands)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:50:45 +02:00
Meta Vens
8b9e8dfe11 Route map: Q-S5 ruled (a), B5 first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:42:51 +02:00
Meta Vens
224f006983 Route map: Q-S1..Q-S4 ruled (a); Q-S5 open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:42:42 +02:00
Meta Vens
64da79402a Deterministic backoff test (B5 Soul J)
`a_failing_step_is_retried_after_a_backoff_not_every_tick` raced the
wall-clock wait against ten ticks and lost on a loaded host (9 of 15
mutant runs). The test now owns the wait: held open, ten ticks retry
nothing; once due, the next tick retries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:35:48 +02:00
Meta Vens
c04f24f518 B5: pin lease adoption from Odin's Ready word (B5 Soul F)
A stateful candidate Odin reports on is warming until it holds the lease;
the world's fixture now says so, and a post-fence warming word lets the
grant happen. Odin's Ready carrying the granted lease records the adoption,
sourced `OdinTopology` and naming the presence Odin observed. Kills Soul's
M6 (the source labelled `Direct`) and M7 (no adoption from Odin).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:35:48 +02:00
Meta Vens
e0b31eee76 B5: pin the resolver's command filter (B5 Soul E)
With two live transactions, an expiry request for one leaves the other
running. Soul's mutant "any request expires every live transaction"
survived the suite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:34:48 +02:00
Meta Vens
47067cce08 B5: an abort withdraws a lease issued as Prepared (B5 Soul A)
The physical grant lands before `Granted` is durable. A continuity that
died in that window and passed its deadline was aborted from `Prepared`,
its abort withdrew only a `Granted` lease, and the lease left on disk made
every later fencing of the target refuse "unexpected process write lease".
The abort now withdraws any issued lease; revoking an absent one is a no-op.

Test: a granted lease on disk behind a `Prepared` record, deadline passed:
the abort removes it and the next fencing's revoke succeeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:34:30 +02:00
Meta Vens
4ee70f90ba Route driver: transaction paths always write and reload (B5 Soul B)
`6ff7d5a` skipped the write and reload in `install` and `restore` when the
fragment on disk already equalled what they would write. On a transaction
path that hides a crash between a write and its reload: an abort that
retries after the crash reloads nothing and then stops the candidate, so
nginx keeps proxying to a dead port, and a fenced install skips every retry
(and a first deploy's `ufw allow`) until its deadline. The skip on equal
bytes goes back to supervision only.

What stays: a transaction whose candidate membership is the preflight's
baseline (a continuity over its admitted route) has no route change to make
or undo, so its install, rollback and withdrawal run nothing. No write of
its own can have been cut short. `RoutePreflightReceipt::changes_route`
names it.

`restore_admitted_membership` now puts back the bytes it replaced when its
reload fails, instead of deleting the fragment, so the disk still shows
what nginx serves.

Tests: a crash between a write and its reload is reloaded on retry (install
past the fence and withdrawal, driver level; the abort, engine level); a
transaction that does not change the route runs nothing. Soul's F2 probe
test is gone with the rule it pinned: a withdrawal whose `ufw delete` keeps
failing reloads on every retry again, until the Q3-ii cut gives the abort a
deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:33:57 +02:00
Meta Vens
6854b0f825 Route map: B5 Soul pass 1 (merge after batch 2: lease wedge, reload-skip crash gap)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:29:56 +02:00
Meta Vens
5f232a6120 Route map: Q3-ii cut map (snapshot before Ready, roll forward after); Q-S1..S5 open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 18:16:06 +02:00
Meta Vens
3fad441917 Route map: Q3-ii ruled: snapshot/restore before Ready, roll forward after
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:56:54 +02:00
Meta Vens
e00ff5ec40 Route map: Q3-i ruled (issued lease counts as possibly written); Q3-ii open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:54:06 +02:00
Meta Vens
448f554af5 Watchdog map: Bifrost suite probes C21-C28
Only cultcache-ts was renamed in CultLib; Bifrost's tests and three tools
still use the bare name. Production Persona delivery is unaffected: its
release bundles CultLib f67f5122.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 17:15:38 +02:00
Meta Vens
c06ff2b84c B5: the expire test asks beside another target's live deployment
A terminal record leaves the live set, so it could not tell the verb's own
command filter from a looser one; another target's deployment in flight can.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:56:02 +02:00
Meta Vens
6394100a93 B5: pin the idunn expire verb as the CLI parses and runs it
Kills three cargo-mutants survivors: the --requested-by arm, run's
dispatch, and expire's own-live-transaction filter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:51:06 +02:00
Meta Vens
436d6445fc Watchdog map: cut probes C1-C20; incidents live in their own incidents.cc
Imagination's cut-mapping probes and rationale. Self collapses the model
page's record and projection rows: control.cc refuses foreign types, so
incidents.cc is both the record and what Bifrost reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:12:18 +02:00
Meta Vens
487f4f14b8 Watchdog target: a closure notice follows an opening notice
Operator ruled closure-notice = opening-and-closure (target r2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:58:14 +02:00
Meta Vens
153af6ac40 Watchdog reporting map: body facts, model page, crossing rationale
Imagination step 0b for campaign idunn-watchdog. Forks are admitted in the
mind as questions delivery-crossing, paging-conditions, closure-notice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:57:34 +02:00
Meta Vens
4830af8eb1 B5: a continuity over its admitted route reloads nothing while its proof fails
The live shape of Soul's F1: a continuity reuses the admitted Expected, so
its install and rollback find the admitted fragment already on disk and run
no host program, before or after its Routing deadline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:50:55 +02:00
Meta Vens
495112565b Watchdog reporting target: Idunn decides incidents, Bifrost delivers
First typed Eureka campaign (idunn-watchdog). The typed target and rulings
live in Eureka's mind; this doc holds the rationale and design truths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:48:18 +02:00
Meta Vens
0c80a444f6 B5: literal control snapshots in tests carry the expiry requests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:46:21 +02:00
Meta Vens
3f4d7561d9 B5: every post-fencing phase ends
A deadline resolver runs before a live post-fence transaction's step. Once
the phase deadline F0 stamps on entry has passed, or an operator has asked
for it with `idunn expire`, the phase is resolved as Q3 rules:

- A candidate never issued a write lease (every stateless target, and a
  stateful one still in Fencing or early Leasing) aborts to the incumbent
  through the existing post-fencing path.
- A continuity always aborts: its candidate is the admitted release, and
  supervision restarts it under the continuity backoff. A granted lease
  with no adoption evidence names the failure `lease-not-adopted`.
- A deployment whose candidate was issued a lease is reported and left to
  the operator. That is the open fork: what holds the incumbent after an
  adopted-lease deployment, and whether a warming candidate's silence is
  evidence of non-adoption, are not ruled.

Resume paths cannot extend a deadline: only `enter_phase` writes it. A
record lifted from before deadlines existed is timed once, from the first
time the resolver sees it.

Lease adoption is recorded with Ready (the candidate's presence, or Odin's
Ready correlation, held exactly the granted lease), and the terminal
record names `RestartAdmitted` for a continuity whose candidate adopted it.

F16: Commit goes on from the topology it admitted instead of returning, so
Odin re-stamping every tick no longer sends it round forever.

`idunn expire <command-id>` writes an `idunn.expiry_request.v1` record and
nothing else; the resolver reads it as a passed deadline, and a spent
request is deleted. A new control-store document type: an Idunn from before
this commit refuses a store holding one.

Tests commit Soul's F1 and F2 probes: a continuity whose route proof keeps
failing ends at its Routing deadline, and a withdrawal whose `ufw delete`
keeps failing reloads once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:40:05 +02:00
Meta Vens
fa830c5f6f Route map: B2 + 3d installed on Yggdrasil (a96ad9d)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:33:26 +02:00
Meta Vens
6ff7d5a9c7 Route driver: a fragment already correct is neither written nor reloaded
`install` and `restore` skip the write, the firewall step and the reload
when the fragment on disk already equals what they would write. `restore`
still withdraws the endpoint when the prior membership is none, so a
withdrawal whose `ufw delete` failed repeats only that step.

That skip is sound only while bytes on disk are what nginx last loaded, so
every write whose reload fails is now undone: `restore` puts the previous
fragment back, and `install` puts the baseline back in both the rollback
and the fenced case (it used to retain the candidate for retry, which the
retry would now take for live). An install that never loaded needs no
reload to roll back.

Tests: a retry with an already-correct fragment performs zero reloads (install
and a withdrawal with a failing `ufw delete`); a failed reload puts the
fragment back so the retry reloads. Two engine tests that counted a reload
for withdrawing a never-installed route now count the endpoint withdrawal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:32:38 +02:00
Meta Vens
a96ad9d4e6 Merge B2-3d: the route actuation ceiling counts only Forward
Operator ruling 3d A. Survival actuations are recorded, never counted or
refused. Soul: verify.sh clean at 057bdd5 (341); own mutants killed. Known,
not new: Survival retries inside one transaction reload nginx unbounded
(~120/h per target) until B5, which is the next Idunn cut. Operator
approved installing B2 ahead of B5 (2026-09-30).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 15:11:18 +02:00
Meta Vens
5939abd87e Route map: B2-3d Soul result; the Survival-bound premise is false
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 14:09:24 +02:00
Meta Vens
057bdd5c6c B2-3d: status shows a survival-only record on a generation that no longer routes
cargo-mutants on the 3d diff missed `|| -> &&` in render_supervision: no
test held meters with only survival entries under an unrouted generation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 12:39:32 +02:00
Meta Vens
e9c718e073 B2-3d: the route actuation ceiling counts only Forward
Ruling 3d A (2026-09-30): the 12/h per-target route actuation ceiling
counts only Forward actuations (deploys). Survival actuations (continuity
restarts, rollbacks, withdrawals, admitted-route repairs) are recorded for
visibility in a separate TargetSupervision.route_survivals log (key 6,
newest 12 kept) and are never counted against the ceiling or refused by it.
A target whose continuity spent its six restarts can therefore always be
rescued by a deploy.

Each Survival path keeps its own bound: a continuity's actuations the
restart log and its doubling wait, an admitted-route repair the challenge
backoff, a deployment's rollback or withdrawal the Forward change it
undoes. A candidate whose route proof keeps failing now reloads at most
twice the ceiling per window (12 installs, each with its rollback) instead
of 12.

status prints the survival record beside the ceiling line.

TargetSupervision stays at v1 with the added slot: no installed Idunn has
written the record (B2 is merged, not installed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 12:21:58 +02:00
Meta Vens
08d346dfae Map the cut that moves binding secrets out of every printable surface
Operator: "do map the cut that'll ensure it doesn't happen again". Q3 A is
ruled (rotate before prod); Q1 A and Q2 A are Self defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 12:21:48 +02:00
Meta Vens
ecf163ae1c Route map: record 3d A (the actuation ceiling counts only Forward)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 12:15:57 +02:00
Meta Vens
46d9c2f9dc Merge B2: one per-target route ledger, a typed gate, generation v4
TargetSupervision holds a sliding actuation log and the continuity restart
log (Q-B2-1 a); Forward can be refused (fails at once with the reopen
time, Q-B2-2), Survival is never refused and counted when it can be;
continuity restarts are Survival; a full disk neither spins supervision
nor reports unlanded writes as progress. Generation v4 with a typed lift
from v3 (irreversible; back up control.cc and history.cc before install).
Four Soul passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 07:36:34 +02:00
Meta Vens
ed07241f34 B2 final: drop the merged history-ceiling test that counts in its own closure
continuity_gives_up_on_a_release_that_will_not_start came from main with the
old rule (three failed restarts per generation, counted from history). The
branch owns the ceiling in TargetSupervision meters now (six per window), and
the test exercised no production code: it filtered transactions in a local
closure and compared to the constant, which the meters changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 06:33:56 +02:00
Meta Vens
8b9ed0e8d9 B2 final: pass the pass's snapshot to the lost-race test that predates it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 06:28:40 +02:00
Meta Vens
eceb742ea3 B2 final: an in-memory challenge wait ends with the write that outlives it
The wait spacing a challenge whose record failed to land was removed only
when a challenge record for that target landed. It now carries the stamp of
the target's stored records (generation, meters, transactions) as they were
when the record failed, and the supervision pass drops it as soon as the
stamp differs: any write for the target landing, or the target retired or
withdrawn, returns the schedule to the stored value. A wait can no longer
hold a drift repair after the disk recovers.

Soul's probes become tests named for the rules: one reload per wait for a
re-drifting fragment, a proved wait of one observation age, a failed wait
that follows the stored doubling, a lost race leaving no wait, the wait
ending on a landed write, the wait ending with its target. The reloads()
helper is gated to unix (its use of the route stubs broke the Windows
--lib --tests check). Comments on the wait field and the failed-challenge
record now say what the code does.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 06:26:04 +02:00
Meta Vens
c127b53211 B2 final: verify the Windows lib and tests, gate the unix-only reloads helper
reloads() reads unix-only route stubs and has broken
`cargo check --target x86_64-pc-windows-gnu --lib --tests` since 8212b9d.
Gate it, and add that check to scripts/verify.sh so unix-only test code
cannot leak out of its cfg unnoticed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 06:25:57 +02:00
Meta Vens
cccfe8e174 x
# Conflicts:
#	src/control_plane.rs
2026-09-30 06:23:11 +02:00
Meta Vens
d83b1a9c95 B2 fix batch: give the stale-route test a wait that starvation cannot outrun
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-09-30 05:04:18 +02:00