docs: 2b-1 ledger, Tasks 1-7 built and reviewed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+54
−0
docs/superpowers/notes/managed-fleets-2b1-ledger.md+54 −0
CI failed — run details
diff --git a/docs/superpowers/notes/managed-fleets-2b1-ledger.md b/docs/superpowers/notes/managed-fleets-2b1-ledger.md| index c0f935f5e..1ee9ec7b8 100644 |
| --- a/docs/superpowers/notes/managed-fleets-2b1-ledger.md |
| +++ b/docs/superpowers/notes/managed-fleets-2b1-ledger.md |
| @@ -67,3 +67,57 @@ Task 2: minor (deferred): Fable P3-3 no unlocked-call test for readiness observa |
| Task 2: minor (deferred): Fable P3-4 LastError order swap (readiness_timeout over enrolment_incomplete); reused managed_launch_uncertain code; bounded 10 s rotation retry on the complete branch. |
| Task 2: fix round 1 (2 addressed, 1 open — P1-1 freshness: ReadinessCheckedAt stamped after lock reacquisition, so lock wait ages checks (Astra reproduced 70 s-old checks publishing); commits ae5eed01..cb424b9e). Astra R2 NOT READY. |
| Task 2: STOP RULE — publication freshness is the same fault family in rounds 1 and 2. Fixes paused; options offered to Paul (invariant / cut delayed publication / refuse). Task 3 proceeds meanwhile (disjoint files). |
| +Task 2: Ruling (agent manager for Paul, delegated 2026-11-03): invariant option — stamp ReadinessCheckedAt inside the observation callback when the last check returns; re-read the clock after the ready GET, immediately before the PUT, refuse if > 60 s; one enforcement point; randomized interleaving simulation + mutation checks. Astra R3 is the last; the same family again → stop and escalate. Fix dispatch waits for Task 3's commit (shared worktree/index). |
| +Task 2: fix round 2 dispatched (freshness invariant + randomized sim + mutation checks in a scratch copy). |
| +Task 3: implemented e6484535 (DONE_WITH_CONCERNS: AMI-shape failure → ErrLaunchRejected; tagless launch answer takes request identity; ARM allowlist copied from console; empty UserData rejected; dup tags mismatch in Terminate). awsmanaged not in root scope. Astra R1 + Fable R1 running. |
| +Task 3: Astra R1 NOT READY (P1-1 empty reservation bypasses validation → usable prefix). Fable R1 READY AFTER FIXES (P2-1 GetConsoleOutput without Latest=true). Fix round 1 dispatched with P1-1, P2-1 and Fable P3-5 (in-process IMDS disable, global constraint) + P3-1 (re-run race). |
| +Task 3: minor (deferred): ARM allowlist duplicated from console managedconfig.go (Astra P3-1 / Fable P3-4) — move to internal/compute or parity test. |
| +Task 3: minor (deferred): Fable P3-2 duplicate-tag classification differs (mismatch vs ambiguity); Launch dup branch untested. |
| +Task 3: minor (deferred): Fable P3-3 Terminate want-refusal and ConsoleOutput failure subtests assert only err != nil. |
| +Ruling: Task 3 fix runs concurrently with Task 2's fix in the shared worktree, both with path-scoped commits — disjoint packages (awsmanaged vs console) — cost if wrong: an index.lock retry or a mixed commit to split. |
| +Task 3: fix round 1 (4 addressed, 0 open — P1-1 reservation validation, P2-1 Latest=true, P3-5 in-process IMDS off, P3-1 race rerun; commit 57d7727e). Astra R2 READY. |
| +Task 3: complete (commits 14452287..57d7727e, review clean). Note for Task 5: confirm GetConsoleOutput Latest=true needs no extra IAM action. |
| +Task 4: dispatched (Opus), concurrent with Task 2 fix, path-scoped commits. |
| +Task 2: fix round 2 (invariant) committed 6f78e606: managedPublishFresh single pre-PUT check; stamp inside observation; sim 5000 seeds / 11691 PUTs clean; 4 mutations caught. Incident: the fixer's failed scratch-copy chain reset 4 awsmanaged files to HEAD 57d7727e (~23:10-23:16Z); Task 4 implementer told to re-check. Astra R3 (last) running. |
| +Task 2: Astra R3 READY — P1-1 ADDRESSED (single guard managedPublishFresh, stamp inside callback, sim oracle independent of ReadinessCheckedAt); P2-1/P2-2 hold; C08 preserved; no new breakage. |
| +Task 2: complete (commits 8aa5e20c..6f78e606, review clean after 3 rounds; ledger commits interleaved). |
| +Task 6: dispatched (Opus) out of order, concurrent with Task 4 — disjoint package internal/edge; Task 5 waits for Task 4's op lists. |
| +Task 4: implemented aedea9cf (DONE_WITH_CONCERNS: bucket prefix ≤24 chars for 2048-char inline limit; adapter cannot refuse protected/app-store prefix overlap without config fields; s3:prefix on ListBucketMultipartUploads may be ignored; no delete-marker expiry; aws partition only). Astra R1 + Fable R1 running. |
| +Task 6: implemented 39458f63 (DONE; extra test reads console source text for managedReadyKey parity; sibling status/metrics writes remain open, out of brief scope). Astra R1 + Fable R1 running. |
| +Task 6: Astra R1 READY, Fable R1 READY (no P1/P2). |
| +Task 6: minor (deferred): source-text parity test for managedReadyKey is brittle (Astra P3-1 / Fable P3-1) — share the key builder (e.g. internal/release) with a behavioral parity test. |
| +Task 6: minor (deferred): Fable P3-2 pre-existing: a box can write sibling boxes' status/metrics objects under fleets/<fleet>/ — record for 2b-2. |
| +Task 6: minor (deferred): Fable P3-3 wire test always sends X-HTTP-Method-Override: PUT; make it a variant. |
| +Task 6: complete (commit 39458f63, review clean) |
| +Task 4: Astra R1 NOT READY (P1-1 CreateBucket before identity check can reset ACLs on an existing us-east-1 bucket; P2-1 inactive keep masks a later delivered key's sentinel; P2-2 plan-mandated s3:prefix on ListBucketMultipartUploads unsupported). Fable R1 READY (7 P3). Fix round 1 dispatched. |
| +Ruling: drop s3:ListBucketMultipartUploads from the fleet-data policy (plan said grant it with prefix conditions) — AWS has no s3:prefix key for it and no in-repo consumer lists uploads — cost if wrong: a later multipart-listing consumer needs a grant + policy review. |
| +Ruling: keep s3:DeleteObjectVersion out of the fleet-data policy despite Fable P3-1 naming box-side move abort/install/land consumers — plan requires a named production consumer plus a separate policy review; 2b-1 runs no managed boxes — cost if wrong: moves on managed fleets fail AccessDenied until 2b-2/2c grant it (carry to 2b-2 handoff). |
| +Task 4: minor (deferred): Fable P3-3 adapter could statically refuse app-store prefix overlap; Task 5 module validation covers protected/app-store prefixes and the 24-char cap. |
| +Task 4: minor (deferred): Fable P3-4 changing our own lifecycle rule later makes every existing bucket a permanent drift refusal (no repair for our rule ID). |
| +Task 4: minor (deferred): Fable P3-5 console-composition needs-operator subtest only via fleetstore fake (Task 7 composition). |
| +Task 4: minor (deferred): Fable P3-6 inspectUser maps every GetUser failure incl. AccessDenied to "uncertain". |
| +Task 4: fix round 1 committed b4b0ed33 (inspect-before-create, full delivered scan before keep, ListBucketMultipartUploads removed). Astra R2 running; Task 5 dispatched in parallel. |
| +Task 4: fix round 1 (3 addressed, 0 open; commit b4b0ed33). Astra R2 READY, no new breakage. |
| +Task 4: complete (commits 57d7727e..b4b0ed33 [aedea9cf, b4b0ed33], review clean) |
| +Task 5: implemented d137d106 (DONE_WITH_CONCERNS: two managed regions exceed the role's 10,240-char inline aggregate, precondition refuses; shared boundary lets store users get fleet-bucket reach when both features on; region-mismatch reading; group-mode refusal untested (module group tests don't parse on tofu 1.12.5; CI runs no tofu tests); no snapshot resource for RunInstances; 770 MB provider cache kept in scratch). Astra R1 + Fable R1 running. |
| +Ruling: Task 5 keeps the inline host policy with a plan-time precondition limiting it to one managed region — the 2b-2 drill is single-region and the brief names aws_iam_role_policy — cost if wrong: multi-region managed fleets need a switch to a customer-managed policy later (follow-up). |
| +Task 7: Steps 1-4 + COPY inventory dispatched (Opus) concurrently with Task 5 review; census Step 5 deferred until Task 5 closes. |
| +Task 5: Astra R1 NOT READY (P1-1 wildcard store_bucket_prefix/store_user_path bypass namespace separation; P2-1 no group-mode refusal witness). Fable R1 READY (9 P3). Fix round 1 dispatched with P1-1, P2-1, Fable P3-1 (comment overstates store-user guarantee) and P3-9 (stale boundary description). |
| +Task 5: minor (deferred, 2b-2 drill list): Fable P3-2 snapshot resource at launch unverified offline (Astra: AWS AMI examples omit it); P3-3 EBS default encryption key (Encrypted=true, no KmsKeyId) not covered. |
| +Task 5: minor (deferred): Fable P3-4 host_inline_policies / policy_union hand-maintained for the 10,240 check; P3-8 inline budget tight, real names may be longer than the fixture; check runs at apply on first enable. |
| +Task 5: minor (deferred): Fable P3-6 console/module region divergence → DescribeImages AccessDenied treated as uncertain (quota held) rather than refusal. |
| +Task 5: minor (deferred): Fable P3-7 instance-type syntax in three places; module regex is a superset of Task 3's armFamilies. |
| +Task 7: Steps 1-4 committed e7dc6010 (tests only; DONE_WITH_CONCERNS: Step 4 race on internal/console exceeds go test's 10 min default, passed with -timeout 50m in 861 s; secret-surface test split adapter/console). Astra R1 running. |
| +Task 7: Astra R1 READY AFTER FIXES (P2-1 SDK logger and encoded UserData not captured in the log scan; P2-2 missing ready objects/show silently pass the secret scan; P2-3 COPY inventory omits awsmanaged error variants; P3-1 race command needs an explicit timeout). Fix dispatched for P2-1, P2-2, P3-1. |
| +Ruling: Task 7 P2-3 not fixed — awsmanaged errors are internal fragments/diagnostics that never reach a member; Paul's copy-review-scope rule keeps them out of copy review — cost if wrong: an operator-facing awsmanaged string ships unreviewed (none is surfaced until 2b-2 wiring). |
| +Task 7: fix round 1 (3 addressed; commit ea233b21). Astra scoped re-review READY, no new breakage. Steps 1-4 complete; census Step 5 waits for Task 5. |
| +Task 5: fix round 1 committed 81c84b24 (wildcard-free store prefix/path when managed on; bad_group_mode witness; tests moved to tests/managed_fleets/; boundary comment/description fixed with ignore_changes=[description] on the boundary). Astra R2 running. |
| +Task 5: fix round 1 (4 addressed; commit 81c84b24). Astra R2 READY (13 extra namespace probes pass; ignore_changes causes no replacement). |
| +Task 5: minor (deferred): moving the test to tests/managed_fleets/ drops it from default discovery; use `tofu init -backend=false -test-directory=tests/managed_fleets && tofu test -test-directory=tests/managed_fleets`. |
| +Task 5: minor (deferred): with ignore_changes, a store boundary that later also bounds fleet users keeps object-store wording (output description says it is shared). |
| +Task 5: complete (commits 57d7727e-era base..81c84b24 [d137d106, 81c84b24], review clean) |
| +Task 7: census Step 5 dispatched (resume). |
| +Task 7: census committed 6d650d6a (17 units; overlay census-proposal-managed-fleets-2b1.md; card "Nothing to approve"). Also fixed a red TestPlan9B8RecordWriteCensus: layered inventory managed_fleets_2b1_census_test.go (removes stale verifyManagedPublication Put entry; managedPublishFresh nonrecord; fleetDataPrefixes key-site) — reviewer must confirm. |
| +Task 7: complete (commits 6f78e606-era..6d650d6a [e7dc6010, ea233b21, 6d650d6a], review clean for Steps 1-4; census verdict in branch review) |
| +Copy review: 25 human-facing strings (member 429/409, enrolment 503, tofu descriptions/errors/outputs, managed-only boundary description) served to Paul; operator awsmanaged error fragments excluded per scope rule. |
| +Branch review R1: Astra (code + census verdict) and Fable dispatched on 9622c65a..6d650d6a. |