docs: 2b-2 ledger through Task 6 and the Task 7 card
Task 6 reviews and rulings, Task 7 read-only preflight results (O1 IAM policy size blocker for Paul), apt lock follow-up.
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 11dd009ed..66ec5603c 100644 |
| --- a/docs/superpowers/notes/managed-fleets-2b2-ledger.md |
| +++ b/docs/superpowers/notes/managed-fleets-2b2-ledger.md |
| @@ -285,3 +285,71 @@ Task 5 rebased onto 7eda50c1 (clean) with joint census for Tasks 2-5 (seal 576c0 |
| 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. |
| +Controller handover 2026-11-09: previous controller (paseo b2c14ce) stopped on a usage limit mid Task 6 and mid Task 7 |
| +preflight. Worktree clean at ef10f2f3, no Task 6 code, no task-6-report; Task 7 left only a scratch infra copy in |
| +~/.cache/managed-fleets-2b2-preflight/pinfra. New controller re-dispatches Task 6 (fresh Opus implementer, same brief) |
| +and Task 7 part 1 (read-only, same brief) in parallel. |
| +Task 7 part 1 (read-only) done: card ~/.cache/managed-fleets-2b-notes/sdd2b2/managed-fleets-2b2-drill-card.md, |
| +evidence task-7-preflight.md. AMI ami-020434b3e0470d552 (debian-13-arm64-20261103-2651), single ext4 root, cloud-init |
| +25.1.4 with cloud-init-network.service, ca-certificates/python3 present, needrestart absent, unattended-upgrades present, |
| +EBS default key AWS-managed (no KMS statement needed). tofu plan (-lock=false, target module.host_ie, ref v0.34.34): |
| +1 add, 1 change, 0 destroy. Open items O1-O7 on the card. |
| +O1 BLOCKER for Paul (infra): carlos-dev-host inline policy would reach 10,689 chars > IAM 10,240 limit (hand-made |
| +carlos-dev-host-route53-demo + root files not seen by the module check); only single fit is dropping the root's |
| +deny-release-key-reads (duplicate of the module's carlos-dev-host-release-key-deny), 58 chars spare. Not decided here. |
| +Ruling: T1-Q1 premise corrected — image apt sources are HTTPS (cdn-aws.deb.debian.org) and work with 443 open, so a |
| +drill box may take Debian security updates; acceptable for the drill, recorded on the card — cost if wrong: an |
| +upgrade mid-drill changes a package under test, visible in console output. |
| +Ruling: boot script apt-get gets a DPkg::Lock::Timeout so an apt-daily/unattended-upgrades lock cannot end the box at |
| +bootstrap_failed; fixed as a small follow-up after Task 6 lands (not concurrent with the Task 6 implementer) — cost if |
| +wrong: one extra small commit. |
| +Task 6: committed 40582b27 (feat: wire managed fleet providers behind an opt-in switch). Astra R1 NOT READY (P1-1 |
| +missing keep key masked by delivered-key-still-live → tells operator to delete the remaining working key; P2-1 cleanup |
| +discovers and terminates without the one diagnostic read; P2-2 opt-in config validation incomplete: URL-shaped |
| +tunnel host, reserved bucket prefixes, 512-byte user path; P2-3 one-box test stops at root admission; P3-1 failed |
| +diagnostic read shown as "no boot progress"; P3-2 race timeout recorded as not a failure). Fable R1 READY AFTER FIXES |
| +(P2-1 narrowed 2b-1 guard skips main.go before the KeyValueExpr check; P2-2 deactivated keep key → opaque timeout; |
| +P2-3 cli.md claims key deletion surfaces needs-operator but only a rotation lists keys; P3-1 = Astra P2-3; P3-2 opt-in |
| +checks raw env not parsed cfg; P3-3 enrolment-incomplete boxes skip the read and read errors go unlogged; P3-4 note). |
| +Ruling: Astra P2-3 / Fable P3-1 — the plan text mandates TestManaged2B2OneBox through stable install, edge queue, |
| +agent relay and Reconcile placing/starting the native shop record; the test is extended with fakes, and only a step |
| +that provably needs real root is cited to an existing root-runner witness by name — cost if wrong: a longer test. |
| +Ruling: Fable P2-2 — a deactivated keep key gets a named needs-operator reason in the same family as C2 (no automatic |
| +reactivation or replacement; 2c) — cost if wrong: one more COPY reason. |
| +Ruling: Fable P2-3 — docs describe what the console actually detects (or the console gains the check); implementer |
| +picks the smaller truthful change and reports it — cost if wrong: one doc sentence in copy review. |
| +Task 6: fix round 1 dispatched (Astra P1-1, P2-1, P2-2, P2-3, P3-1, P3-2; Fable P2-1, P2-2, P2-3, P3-2, P3-3). |
| +Task 6: fix round 1 committed 88bae25f (keep key missing/deactivated precede older-delivered check, new reason |
| +fleet_access_key_inactive; cleanup-discovered and enrolment-incomplete boxes get the one console read before |
| +termination intent; failed read gets its own COPY; opted-in config validated before constructors from parsed cfg; |
| +one-box + key-failure witnesses moved to internal/host/managed2b2_onebox_linux_test.go through real boot, stable, |
| +edge queue, prober, root admission and Reconcile; 2b-1 guard closes NewFake in main.go; cli.md reworded: keep-key loss |
| +noticed at next key issue). Implementer concerns: prompt keep-key detection would cost one IAM list per add (not |
| +added); host test swaps http.DefaultTransport; shop record via provision.CreateRecord; GOOS=darwin vet fails on |
| +pre-existing haingress_alias_test.go:134. Astra R2 running. |
| +Task 6: fix round 1 re-review (Astra R2) READY AFTER FIXES — all addressed except Astra P2-3 (composition stops at |
| +admission predicates; a post-admission Acquire fails ha_pool_ineligible because the fixture omits ServedPools); no new |
| +P1/P2; census approves the root `.` envelope delta; P3 fixture emits the CARLOS_SECRETS_PUBKEY unset warning. |
| +Ruling: no third Astra round (Paul's stop-at-first-no-P1 rule); P2-3 + the fixture warning go to one fix dispatch, |
| +checked by the controller (test present, asserts start-after-admission, passes) and by the whole-branch review — |
| +cost if wrong: a weak start witness reaches the final review instead of a task review. |
| +Task 6: fix round 2 dispatched (Astra P2-3 workload start + P3 fixture warning). |
| +Task 6: fix round 2 committed 17c0f48d (test-only: one-box start invariant — joining box's start attempt refused with |
| +ErrTenantAdmission and no bucket request, before boot-ready and before root commit; after admission the same route |
| +takes and releases the instance lease through the production lease client; SecretsPub set, warning gone; mutation |
| +removing the admission gate caught). Controller check: `go test ./internal/host -run TestManaged2B2 -count=1` ok. |
| +Ruling: the witness stops at ExecBackend.Acquire (the only lease-taking site, admission gate first) rather than the |
| +process exec; exec needs a deployed build, litestream restore and systemd delegation; systemd's pre-admission refusal |
| +is covered by root-runner TestManagedUnitTrustRoot — cost if wrong: an exec-path regression after Acquire is caught |
| +only by the dev drill. |
| +Task 6: complete (40582b27, 88bae25f, 17c0f48d; Astra R1 NOT READY → R2 READY AFTER FIXES, no third round; Fable R1 |
| +READY AFTER FIXES, all addressed). |
| +Task 6: minor (deferred): Fable P3-4 diagnostic codes lost if the CAS after the out-of-lock read fails; prompt keep-key |
| +detection would cost one IAM list per add (docs say next key issue); fake S3 in the one-box test does not enforce |
| +conditional writes; GOOS=darwin vet fails on pre-existing internal/host/haingress_alias_test.go:134. |
| +Apt-lock follow-up (Task 7 ruling): 3115ba7b + 6ee1791b — both apt-get calls carry -o DPkg::Lock::Timeout=120; |
| +update retries up to 12 times, 10 s apart (lists lock not covered by the dpkg option), then exits with apt's status as |
| +before; golden + TestManagedUserDataAptWaitsForDpkgLock. 3115ba7b's census regeneration replaced 39 reviewed bases |
| +with generic text; corrected in 6ee1791b from the master claims file (overlay diff vs 17c0f48d = template rows, |
| +managedboot coverage pin, seal 70892628…; census-card clean). Not reviewed separately; whole-branch review covers it. |
| +Next: push, CI, whole-branch review (Astra + Fable). |