docs: 2b-2 ledger through Task 5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+68
−0
docs/superpowers/notes/managed-fleets-2b2-ledger.md+68 −0
CI failed — run details
diff --git a/docs/superpowers/notes/managed-fleets-2b2-ledger.md b/docs/superpowers/notes/managed-fleets-2b2-ledger.md| index 0c6a1f0c9..11dd009ed 100644 |
| --- a/docs/superpowers/notes/managed-fleets-2b2-ledger.md |
| +++ b/docs/superpowers/notes/managed-fleets-2b2-ledger.md |
| @@ -217,3 +217,71 @@ Rebase: managed-fleets-2b2-t4 rebased onto 2ab60ac0 (one census-test conflict re |
| joint census for Tasks 2-4 proposed (seal 2a3c4f73, 51 claims, units the census does not see pruned) and committed |
| b454d88a; provision census + Task 3/4 targeted host/managedboot/console selections green on the rebased tip; |
| managed-fleets-2b2 fast-forwarded to b454d88a (Task 4 = 5eb12e44, d93dc701, b06b6fd1). |
| +Task 3: R2 P2s fixed 5e519120 + census 4ff43b37 (owed control restart via root-owned /run marker until a |
| +post-reload try-restart succeeds; one managed/BYO decision at RunAgent before group preflight, managed + any group |
| +signal → refused path, BYO unchanged; named recovery witnessed through passOption; TestGroupNameClassCensus re-pinned |
| +for the joining early returns; census seal 4793f5c2). 4/4 mutations caught. Open note: CARLOS_BOX_REFERENCE hidden on |
| +managed boxes only from the entry's group-reference wait (other readers believed BYO-only; branch review to audit). |
| +TestRootInventoryRefusesContradictoryTarget also fails locally on ad28b503 ("lifecycle provider unavailable"), same |
| +pre-existing family. Task 3: complete (e9eb6519, 2f64ba10, 82bade12, 2ab60ac0, 5e519120, 4ff43b37). |
| +Root-runner run at 4ff43b37 started (host: TestManagedRootAdmissionForgery, TestManagedControlCommitStrict, |
| +TestManagedUnitTrustRoot; managedboot: TestManagedCloudInitRootOwnership). |
| +Root-runner at 4ff43b37: host run 20261109T132510-5456b5 PASS — `--- PASS: TestManagedRootAdmissionForgery (0.10s)`, |
| +`--- PASS: TestManagedControlCommitStrict (1.52s)`, `--- PASS: TestManagedUnitTrustRoot (0.28s)` (full log copied to |
| +sdd2b2/rootrunner/host-4ff43b37-full.log); instance terminated. managedboot run 20261109T132832-4548e0 FAIL — |
| +TestManagedCloudInitRootOwnership: script exit 1, bootstrap_failed, empty stderr; instance terminated; no leftovers. |
| +Diagnosis dispatched to the Task 1 implementer (harness vs real script defect), ≤4 runner runs. |
| +Task 5: implemented 07700395 on managed-fleets-2b2-t5 (cut ad28b503; DONE_WITH_CONCERNS; 10/10 mutations caught; |
| +C4 witness TestManagedProbeSiblingHeartbeat; claims task-5-claims.tsv; record-write layer gains |
| +managedProber.challenge + serveDemoTraffic re-pin; 8 COPY readiness reasons managedprobe.go:43-50). Deviations: |
| +exported SignFleetProbe + hub constants; channel taken from the signed body; hub checks the echo before relaying; |
| +storage judged only on an authenticated reply; budget via the worker's per-box gate + enrolled/publishing guard. |
| +Concerns for Task 6: build the checks from the live server in NewServer and skip when TunnelHost is empty. Hunk in |
| +agent.go runAgent (managedProbeOption(join)). Astra R1 + Fable R1 running. |
| +CI at 4ff43b37 FAILED (internal/host): TestFixedAdmissionNoHibernateEntryPoints/RunAgent (entry-structure witness |
| +broken by the RunAgent startup decision) and TestInstallNamedUnitsWaitsForTheConfigSyncLock (fake root refused as |
| +"identity unreadable" on the bubblewrap CI runner; passes on docs-t1). Dispatched to the Task 3 implementer (fix the |
| +class of fake-root gated-publication tests; production rule stays strict). |
| +Root witness fix 1046b870 (Task 1 implementer): root cause a TEST defect — the witness rendered the golden LaunchInput |
| +whose token expiry (2026-11-09 12:30Z) had passed, so the script correctly skipped the fetch (window closed) and exited |
| +silently. Real boxes render a live expiry. Fix: live expiry in the witness, Harness.Explain diagnostics, the script's |
| +silent exits now name themselves on stderr (exit conditions unchanged, golden regenerated), new unprivileged |
| +TestManagedCloudInitFetchWindow. Census re-proposed (seal cc27a0dc; template claim extended — the master |
| +tasks-2-4-claims.tsv must carry that extension at the next proposal). Root-runner run 20261109T133737-20131d: |
| +`--- PASS: TestManagedCloudInitRootOwnership (0.52s)`; no leftover instances. All four root witnesses have now passed |
| +(host three at 4ff43b37; managedboot at 1046b870); re-run all four at the reviewed final tip before merge. |
| +Task 5: Astra R1 NOT READY — P1-1 the probe reports the credentials-file key ID while the SDK may sign with another |
| +credential (AWS_ACCESS_KEY/AWS_SECRET_KEY aliases, profile/web-identity), so storage can pass without proving the |
| +delivered key (reproduced); P2-1 SDK retries exceed the 3-request probe budget (PUT GET GET DELETE reproduced), and the |
| +console budget test lacks a heartbeat-GET counter; P2-2 probe decoders accept duplicate keys, null scalars, empty |
| +storage objects. Census view: approve the listed units except managedProber.challenge/managedProberFor pending P1/P2. |
| +Deviations accepted (exported SignFleetProbe, channel from signed body, router auth before storage). Waiting for Fable. |
| +Task 5: Fable R1 READY (7 P3: cleanup DELETE shares the challenge context; no hub replay memory; dead publishing |
| +allowance; router reasons collapse 503/502/transport; Task 6 must build checks from the live server, no typed nil; |
| +404 precision; comment on credential choice). Fable judged the env checks sufficient; Astra reproduced the |
| +AWS_ACCESS_KEY alias case, so Astra P1-1 stands. |
| +Ruling: the probe signs with a static provider built from the validated credentials file (no SDK default chain) and |
| +makes one attempt per operation — cost if wrong: none (narrower than the default chain). |
| +Task 5: fix round 1 dispatched (Astra P1-1, P2-1, P2-2 + Fable P3-1/2/3/4/6/7). |
| +Task 5: fix round 1 committed a6aac5e6 (lease.NewStaticFilesStore: static provider from parsed /etc/carlos/credentials, |
| +no retries; strict decoders: duplicate keys, nulls, case-variant keys, exact storage members; cleanup DELETE |
| +WithoutCancel 2 s; hub replay seen-set ≤4096/60 s; three router reasons; 404 precision; publishing allowance KEPT — |
| +verifyManagedPublication → refreshManagedPublication probes a publishing box with stale checks). 6/6 mutations caught. |
| +New COPY (managedprobe.go:44-46): "the fleet hub has no tunnel to this box right now"; "the box did not answer the |
| +probe correctly"; "the console could not reach the fleet hub". Astra R2 running. |
| +Task 5: Astra R2 READY — R1 P1-1/P2-1/P2-2 resolved (witnesses re-run by Astra), census view approves |
| +managedProber.challenge, managedProberFor and the lease envelope delta; NewStaticFilesStore has one production caller |
| +and loses no validation. Task 5: complete on managed-fleets-2b2-t5 (07700395, a6aac5e6). |
| +Task 5: minor (deferred): Astra R2 P3-1 the replay seen-set evicts valid entries at 4096 capacity, so a replay is |
| +possible after enough authenticated traffic (no false readiness, no channel bypass); Fable P3-5 (build probe checks |
| +from the live server, no typed nil) carried to Task 6. |
| +Task 3: CI-test fix 7eda50c1 (test-only): root cause — the test seam used the production identity loader for the |
| +host's real "/" (InstallNamedUnits publishes under "/"); on the bubblewrap CI runner /etc shows owner 65534, so the |
| +strict loader correctly reads managed-with-error and refuses publication; the seam now answers BYO for the host's own |
| +"/" (managed-box tests stub the loader with their fake root; production unchanged). Entry-structure witness updated |
| +to decideAgentStartup with the same BYO guarantee. Reproduced and verified under `unshare --user --map-current-user`; |
| +the full host package exceeds 40 min locally (CI runs it); 213 gated-path tests pass in that namespace. |
| +Task 5 rebased onto 7eda50c1 (clean) with joint census for Tasks 2-5 (seal 576c0e4b, tasks-2-5-claims.tsv, runAgent |
| +claims merged, NewStaticFilesStore claim pruned — not a census-seen unit); managed-fleets-2b2 fast-forwarded to |
| +13ca6944 (Task 5 = 908524bf, c6ac7934). Census + targeted edge/host/managedboot/console selections green before the |
| +final rebase; build + provision census re-checked at 13ca6944. |