carlos / platform Public

docs: managed fleets 2b-1 build ledger and pre-flight rulings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev fd2c09c4743c9446a2ebbbba6ed1e26e162d153c parent f2b1abc
1 file changed, +52 −0
  • docs/superpowers/notes/managed-fleets-2b1-ledger.md +52 −0
diff --git a/docs/superpowers/notes/managed-fleets-2b1-ledger.md b/docs/superpowers/notes/managed-fleets-2b1-ledger.md
new file mode 100644
index 000000000..155ae0836
--- /dev/null
+++ b/docs/superpowers/notes/managed-fleets-2b1-ledger.md
@@ -0,0 +1,52 @@
+# SDD ledger — plan: docs/superpowers/plans/2026-11-08-managed-fleets-2b1-console-aws.md
+
+Managed fleets 2b-1 build ledger: tasks, commits, review results, rulings and deferred minors.
+Branch managed-fleets-2b1, base main 9622c65a, plan tip f2b1abce. Controller session: Opus (build-2b1 handoff from
+8423ef5). Implementers: Opus subagents. Reviews: Astra (codex gpt-6-astra, high) every task; Fable second reviewer on
+Tasks 3-6 and the whole branch. Later rulings supersede earlier ones on the same point.
+
+Ruling: SDD workspace (briefs, reports, review packages) lives in /home/paulca/.cache/managed-fleets-2b-notes/sdd —
+the plan's notes dir already holds recon/decisions; the worktree stays clean — cost if wrong: none.
+
+## Pre-flight scan
+
+| Rows | Produces / consumes | Finding |
+|---|---|---|
+| T1 ↔ T2 | both edit managedstore/history/enrol/worker; T1 adds errManagedEnrolRetryable (503, Retry-After 5); T2 needs-operator enrolment refusal is 503/5 | Consistent; T2 reuses T1's sentinel (P1 below) |
+| T1 ↔ T2 | T1 holds lockFleet over registry snapshot + deferred allocation; T2 "lock only to reload/validate/commit" | Tension, ruled P2 |
+| T2 ↔ T3 | T2 defines compute.ErrLaunchConflict; T3 maps IdempotentParameterMismatch to it | Consistent |
+| T2 ↔ T4 | T2 changes RotateFleetCredentials(ctx, fleet, keep, delivered) + ErrDeliveredKeyStillLive; T4 implements against IAM | Consistent |
+| T3 ↔ T4 | T3 creates clients.go/export_test.go; T4 extends both | Consistent |
+| T3 ↔ T5 | EC2 ops Run/Describe(Instances,Images)/Terminate/GetConsoleOutput + launch-time CreateTags vs T5 grants | Consistent |
+| T4 ↔ T5 | T4 IAM op list + S3 op list + fleet-data actions vs T5 host grants/boundary | Consistent (T5 adds scoped DeleteUser per decision 6, no runtime method) |
+| T4 ↔ T6 | T6 relies on T4 fleet credential not reaching the deployment bucket | Consistent |
+| T2/T3/T4 ↔ T7 | T7 consumes export_test.go With constructors from external test pkg in same dir; extends managedrecovery (T2), managedbudget | Consistent |
+| T1 self | tests in Step 1 match Step 2 -run; files list covers registry + console | OK |
+| T2 self | Step 2 -run selects TestFakeClientToken / TestFleetCredentials but Step 1 lists no new fake tests | Ruled P3 |
+| T3 self | TestManagedCoreImports exists in internal/compute/imports_test.go | OK |
+| T4 self | existing TestFleetCredentialsDoubleLostRotation (fleetstore) vs new TestAWSFleetCredentialsDoubleLostRotation | OK, distinct names |
+| T5 self | Go TestManagedFleetRenderedPolicyIsolation cannot render HCL; tofu test does the exact rendered diff | Ruled P4 |
+| T6 self | OK | OK |
+| T7 self | census consolidated here | Ruled P5 |
+| Process | plan says Astra implements / Opus reviews / risky-only per-task review; Paul 2026-11-08 said Opus implements, Astra + Fable review, every task reviewed | Ruled P6 |
+
+Ruling: P1 T2 enrolment refusal for needs-operator reuses T1's errManagedEnrolRetryable mapping (503, Retry-After: 5,
+no-store) — one retryable contract for the 2b-2 client — cost if wrong: a second sentinel later.
+Ruling: P2 T1's lockFleet over the bounded registry snapshot + allocation stands; T2's release rule covers
+compute-provider and readiness-observation I/O (its title) and SQL transactions, not the 30 s registry read — T1 Step 4
+names lockFleet explicitly and the registry read is bounded — cost if wrong: one fleet's member ops wait ≤30 s.
+Ruling: P3 T2 updates/extends TestFakeClientToken (changed spec → ErrLaunchConflict, not ErrLaunchRejected) and adds
+TestFleetCredentials* fake-guard cases so its -run selection is non-empty and meaningful — cost if wrong: none.
+Ruling: P4 T5's Go test does structural assertions over the checked-in fixtures; the HCL tftest does the exact
+rendered-vs-fixture diff locally (CI does not run tofu tests) — cost if wrong: fixture drift only caught locally.
+Ruling: P5 implementers run `make census-card` on census-touching tasks and list the units in their report; Task 7
+writes the single consolidated census-propose; intermediate tips may fail census in CI, only the tip must be green —
+cost if wrong: red intermediate CI runs.
+Ruling: P6 follow Paul's 2026-11-08 execution method over the plan text (Opus implements; Astra reviews every task;
+Fable second reviewer on Tasks 3-6 and the branch) — Paul's later instruction — cost if wrong: extra review spend.
+Ruling: P7 severities: P1 = Critical, P2 = Important (fixed in a fix dispatch with a scoped re-review that does not
+count as a new round), P3 = minor (deferred here). Stop at the first round with no P1; ≤3 rounds; two rounds in one
+fault family → Paul — merges the plan's stopping rule with SDD's re-review discipline — cost if wrong: one extra
+cheap re-review per task.
+
+## Tasks