review: Astra/Fable brief for fleet record labels M2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m2.md+107 −0
CI failed — run details
Intent
<task-notification> <task-id>a2bee0384e8178390</task-id> <tool-use-id>toolu_01PXGJcycwE775DWnHVbwkds</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ac77363b-5830-422c-9f38-d7f2540dd398/tasks/a2bee0384e8178390.output</output-file> <status>completed</status> <summary>Agent "Implement Task 8 m2: census" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>- **Status:** Done. Both censuses are up to date for M2. The record-write census rejected 6 sites; adding the new writer's key made it 7, and all 7 now have entries. - **Commit:** f7f992b8 `census: fleet record labels m2` on fleet-record-labels-m2. Not pushed. - **Tests:** the census run (`TestPlan14RootReadCensus|TestPlan9B8|TestCensusScopeIsTheRootBinary`) passes, and all 15 `TestFirstLabel*` pass. - **Card:** docs/superpowers/notes/census-proposal-fleet-record-labels-m2.md. It re-pins only the four package envelopes (`.`, activator, provision, release); the seal is unchanged at 5603979d. - **Concerns:** - The brief expected changed digests for `handleAPIInstanceCreate`, `relabelFleet` and `drainBox`, and the `planFirstLabelling` removal. The census flags none of them at this tip, so I added no entries for them. - census-propose refuses a claim for an envelope, so the four envelope claims are not on the card. They are in task-8-m2-report.md and need to go into Astra's review brief. - Astra's #280 verdict is still owed. - Report: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-record-labels/.superpowers/sdd/2026-11-14-fleet-record-labels/task-8-m2-report.md</result> <usage><subagent_tokens>120208</subagent_tokens><tool_uses>40</tool_uses><duration_ms>310601</duration_ms></usage> </task-notification>
Attributed to this commit: 30.8 g CO₂e (3,696,286 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on fleet-record-labels-m2, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m2.md b/docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m2.md| new file mode 100644 |
| index 000000000..e4a10fdcc |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/ASTRA-BRIEF-fleet-record-labels-m2.md |
| @@ -0,0 +1,107 @@ |
| +# Review brief: fleet record labels, merge M2 (release B), whole-branch, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `fleet-record-labels-m2`. Tip: the commit that adds this brief. |
| +Under review: the diff `5b9f77a9..HEAD`. 5b9f77a9 is main, which already holds M1 (release A). |
| +Authorities, merged on main: |
| +- the spec `docs/superpowers/specs/2026-11-14-fleet-record-labels-design.md` (rev 3, with the R2 shutdown note); |
| +- the plan `docs/superpowers/plans/2026-11-14-fleet-record-labels.md`; |
| +- `docs/fleet-runbook.md`. |
| + |
| +M2 is these plan tasks: |
| +- T4: `provision.SetRecordFirstFleetBox` and the owner-only door `POST /api/cli/apps/{account}/{app}/instances/{host}/label`; |
| +- T5: `carlos instances label`; |
| +- T6 Part A (D1): process creates on multi-box fleets are labelled or refused with 503; |
| +- T7: the copy (Luna-reviewed under Paul's delegation; the docs/site/cli.md section is with Paul) and the docs; |
| +- T8 m2: the census. |
| + |
| +Release B is the switch-on. The release manager (8a3d302) owns it. `FleetRecordLabelFloor = v0.35.4` is release A, confirmed by 8a3d302. |
| + |
| +You are an independent reviewer. Read the diff, then the code it names, and check every claim against that code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +These are release manager rulings on #1008: |
| +- option B, owner-authorized; |
| +- v1 labels only to the serving box; |
| +- R1-R4 are binding; |
| +- no more spec rounds; |
| +- the R2 shutdown cut. |
| + |
| +Controller rulings are copied below. Report only mechanisms that fail to honour them. |
| + |
| +## What to check |
| + |
| +1. **Security gate (the door).** |
| + - Only the account owner can label; every other principal is refused as spec §5 says. This covers non-owner members, non-members, service roles, fleet box tokens, another account's record and another fleet's box. |
| + - No record outside the owner's account and fleet can be written. |
| + - Host-claim consoles answer C33. |
| + - Evidence: the binding counts only for this fleet and host, written after CreatedAt. The hub row must agree with it. Missing or disagreeing evidence is refused. |
| +2. **Writer safety (`SetRecordFirstFleetBox`).** |
| + - Every refusal is re-checked inside the CAS mutation on every retry. |
| + - It writes `FleetBox`, `FleetBoxAt` (RFC 3339 nanoseconds UTC) and `FleetBoxMoved = true`. |
| + - Write order: mark, write, serial bump. `applied` is true only after the commit. |
| + - Concurrent labels: one is applied and the others are refused. |
| +3. **R4.** Every active box of the fleet and the console must be at `FleetRecordLabelFloor`, with `v.Complete` required. Check the door and D1 creates. |
| +4. **D1.** |
| + - Every refusal (C39 503 Retry-After 30, C42) happens before any record, environment or claim write. |
| + - The manifest is verified through `AuthorizedManifest`. |
| + - Unit-backed records are refused. |
| + - One-box fleets, static and Addr records, seeds, imports, demos and host-claim consoles are unchanged. |
| + - The rootfs 409 path stays (controller ruling). |
| +5. **Interaction with M1 on main.** |
| + - A labelled record gets Moved = true. Check that the R1 fence, the R2 start rule and R3 moves behave correctly for a record the door labelled, both on the serving box and on a non-serving box that still carries an unlabelled row. |
| + - Check the door's `movableVerified` use. Stateless records require StatelessRuntimeFloor. |
| +6. **CLI.** |
| + - Dry run by default. |
| + - C17 only when applied. |
| + - Unknown outcomes (502/504/timeout/disconnect after send) give C38 and a non-zero exit. |
| + - Flags parse on either side of the host. |
| + - darwin and windows builds compile. |
| +7. **Copy.** The approved strings (marker `approved copy (Cnn)`) match strings.json byte for byte, and `TestFleetRecordLabelsApprovedCopyApplied` enforces them. Judge mechanics only, not wording. |
| +8. **Tests.** Witnesses are deterministic and assert real behaviour. No test was weakened. |
| +9. **Triage the ledger items below.** For each, say whether it must be fixed before this merge (P1/P2) or can follow as a P3. |
| + |
| +## Census (Astra only) |
| + |
| +Give the census verdict for `docs/superpowers/notes/census-proposal-fleet-record-labels-m2.md`. It re-pins four envelopes and has no unit changes. Also give the verdict for the record-write census entries in `internal/provision/fleet_record_labels_census_test.go` and plan9_b8_census_test.go. Approve or reject each one against the diff. |
| + |
| +The author's envelope claims (the tool refuses envelope claims on the card): |
| +- `.`: cli.go adds the "label" leaf to instancesCommand. instances_cli.go adds `carlos instances label`: flag parsing, one HTTPS POST to the console's label door through the existing apiSession, and rendering of the JSON answer. It reads no file, registry, unit or bucket, and execs nothing. No new root read. |
| +- `internal/activator`: copy only. Two log strings change in activator.go (C44 comment, C45 text) and one comment in startrule.go (C43). No logic changed. No new root read. |
| +- `internal/provision`: fleetbox.go adds four refusal errors and SetRecordFirstFleetBox, which refuses or sets the record's three label fields through the existing updateRecord. Only the console door calls it; nothing in the root binary does. provision.go changes a comment only. No new root read. |
| +- `internal/release`: one constant, `FleetRecordLabelFloor = "v0.35.4"`, plus its comment. No new root read. |
| + |
| +`make census-propose NAME=fleet-record-labels-m2` wrote these files: |
| + |
| +- `internal/provision/testdata/plan14-root-reads-fleet-record-labels-m2.tsv`: four `@coverage` lines. |
| +- One new chain line in `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
| +- The card, `docs/superpowers/notes/census-proposal-fleet-record-labels-m2.md`. |
| + |
| +## Ledger items (rulings, deferred findings, roll notes) |
| + |
| +- M2 Ruling: FleetRecordLabelFloor = "v0.35.4" provisionally (release A rides v0.35.3 or v0.35.4); a higher floor only refuses more — confirm the actual release A tag with 8a3d302 before the M2 merge — cost if wrong: labels refused on boxes that already carry R1-R3 until they update. |
| +- T4 implementer DONE_WITH_CONCERNS 1b913161. Ruling: keep parity row instances-label in T4; TestParityCLIPaths red until T5 adds the verb (no merge in between) — cost: a red branch CI between T4 and T5 pushes. |
| +- Task 4: minor (deferred): an untyped writer error answers 502 + C38 ("did not answer in time"), wording wrong for an immediate store failure; T7 copy deck needs a wording covering any unconfirmed outcome. |
| +- Task 4: minor (deferred): the fresh registry-row read comes after the complete view and evidence reads (spec §5 lists it first); both under lockFleet, not weakening. |
| +- Task 4: minor (deferred): one `labelled` code covers C20 and C34. |
| +- T5 implementer dispatched (opus, ab2cf8140995c083d). Ruling: CLI prints C20 when the answer shows the record was already labelled at read, else C34; 502/timeout/connection loss after send all print C38. |
| +- T5 NEEDS_CONTEXT b39eecf5: C24/C29 need data the answer lacks. Ruling: additive answer fields — coordinator_box (coordinated) and floor_box + floor_release + floor (floor refusal; floor_box may be "console") — set by the door, used by the CLI; same implementer, door tests added — why: wire shapes additive, copy stays as approved drafts; cost if wrong: two more JSON fields. |
| +- Task 5: minor (deferred): a string flag whose value is the literal "--" is mistaken for the terminator (instances_cli.go:1586). |
| +- T6A Ruling: rootfs no-destination keeps the existing rootfs admission refusal (409, rootfsChosenBoxRefusal, approved copy) — D1's purpose (never create unlabelled, refuse before writes) already holds on that path; D1's 503 + C39 covers the paths that used to create unlabelled — cost if wrong: two statuses for "no box" on multi-box fleets (rootfs 409, binary 503). |
| +- T6A Ruling: labelActive left unchanged (per-create check instead) — relaxing the shared gate would weaken the host-claim requirement; Astra concurs. |
| +- Task 6A: minor (deferred): readChannelHead collapses pointer/manifest read failures into a nil head, so that path skips verification (pre-existing; refusals still apply via movable without a manifest). |
| +- Task 6A: note for the roll: multi-box process creates refuse (503 C39) until every active box and the console are at v0.35.4; releases promoted before promotion records existed get C39 on multi-box fleets until re-promoted; +2 reads per multi-box create. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks merge. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: clarity or polish. Goes on a follow-up list. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). Do not raise a P2 to P1 to keep the review open. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3. Each gives the task, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the fault family. Then the census verdicts (Astra). End with exactly one verdict: READY, READY AFTER FIXES (no P1; listed P2s fixed without another round), or NOT READY (P1s listed). |
| + |
| +Do not edit files. Do not spawn reviewers or subagents. Do not run full test suites; a focused `-run` is fine for a specific doubt. |