spec: round 1 review brief for #1139
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+84
−0
docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-seeded-create.md+84 −0
CI cancelled — superseded by a newer push — run details
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-seeded-create.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-seeded-create.md| new file mode 100644 |
| index 000000000..23995a145 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-seeded-create.md |
| @@ -0,0 +1,84 @@ |
| +# Review brief: seeded instances on a customer fleet (#1139), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `fleet-seeded-create`, commit 4939b9014135660f86008617386d49c65588b3e2. |
| +Under review: `docs/superpowers/specs/2026-11-20-fleet-seeded-create-design.md`. |
| +Authorities: `docs/superpowers/specs/2026-10-08-seeded-instances-design.md`, |
| +`docs/superpowers/specs/2026-10-29-fleet-public-routes-design.md`, |
| +`docs/superpowers/specs/2026-11-14-fleet-record-labels-design.md`, and |
| +`docs/superpowers/specs/2026-10-29-fleet-secrets-key-design.md`, all on main. |
| +Do not review against unmerged branches; if this work needs one, say so as a |
| +P1 and stop. |
| + |
| +You are an independent reviewer. Read the document, then the code it |
| +names, and check every claim against that code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul's rulings, §2 of the document under review (recorded there, 2026-11-20): |
| + a fresh `create --seed-file` rather than import on fleets; the snapshot in |
| + the deployment bucket under `apps/<sqid>/<app>/seeds/` until placement; |
| + flat layout allowed on a customer fleet; fleet-box seed transitions through |
| + a new console door; `--from` on fleets out of scope. Report only mechanisms |
| + that fail to honour them. |
| + |
| +## What to check |
| + |
| +1. **The store door read.** Does `aclRead` (`internal/edge/storedoor.go`) |
| + really let a fleet box stream `apps/<sqid>/<app>/seeds/<host>/<id>/snapshot.db` |
| + for its own account, and only its own? Any per-object limits on size or |
| + time (`fleetapi.Open`, the 60s write deadline) that break a multi-MB |
| + snapshot? |
| +2. **Ownership and the new door (§3.5).** Is "the calling box owns the |
| + record" checkable from what `replicaFleetRecord` already resolves? Can a |
| + box of the same fleet that does not own the record, or a box of another |
| + fleet in the same account, mark a seed `placed` and get the snapshot |
| + deleted before the owner placed it? |
| +3. **The box path (§3.5).** Does the plain placement path (§3.4 of the |
| + seeds spec: `seededRestore`, `placeSeed`, `fetchSeed`, the marker and |
| + purge rules, `SeedPlaced`) run on a fleet box at all, given the fleet |
| + box's `Classify`/layout checks and `ownsRecord`? What else on a fleet box |
| + would mint an empty database for a `ready` seed before placement (the |
| + failure the seeds floor exists to stop)? |
| +4. **Readiness and the floor (§3.4).** What a fleet box actually reports |
| + today (edges file, heartbeat), whether the console can read it, and |
| + whether the floor can be armed on a fleet box at all. Is the proposed |
| + check enough to stop an old fleet binary minting a seeded record empty? |
| +5. **Flat layout (ruling 3).** Beyond multi-tenancy, does anything in the |
| + seed placement path depend on the nested layout (paths, `instancefs`, |
| + ownership, the marker) such that placing on a flat box is broken rather |
| + than merely less isolated? |
| +6. **Sweep and finish (§3.3).** Do the existing sweep and finish rules |
| + still hold with the snapshot under the new key, including the |
| + no-record-older-than-an-hour case and the per-seed `ID` scoping? |
| +7. **Anything the document omits** that the authorities require of a new |
| + seed path (parity table rows, `docs/site/cli.md`, census scope, the |
| + one-box rule for fleets with several active boxes). |
| + |
| +## 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. (The |
| + census, and review of any newly changed security, root, termination |
| + or production-storage behaviour, still check the fix; see AGENTS.md, |
| + "Stopping rules".) |
| +- **P3**: clarity or polish. Goes on a follow-up list; never a reason for |
| + another round. |
| + |
| +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 section or task, the problem, |
| +the evidence (file:line, verified), the failure scenario, a concrete |
| +fix and the invariant or trust boundary it breaks (that is its fault |
| +family). End with exactly one verdict: |
| + |
| +- **READY**: no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another |
| + round. |
| +- **NOT READY**: one or more P1s, listed. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of |
| +your own. Do not run the full test suites. |