carlos / platform Public

spec: round 2 review brief for #1139

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev a8cdc05a8bd9662f79f68860b3a7f038af7527d3 parent 6c0f6d4
1 file changed, +95 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-seeded-create-R2.md +95 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-seeded-create-R2.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-seeded-create-R2.md
new file mode 100644
index 000000000..82d3f0fbc
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-fleet-seeded-create-R2.md
@@ -0,0 +1,95 @@
+# Review brief: seeded instances on a customer fleet (#1139), round 2 of 3
+
+Repo carlos/platform, branch `fleet-seeded-create`, commit 6c0f6d47dd6c251243f0cbbb5241c79543a6ca46.
+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).
+
+## Round 2
+
+Earlier rounds: `docs/superpowers/specs/CODEX-FINDINGS-fleet-seeded-create-R1.md`
+(round 1, NOT READY: three P1s, three P2s). The author's dispositions are
+in §8 of the document under review.
+
+First give one line per P1 and P2 from round 1: resolved, partly, or not.
+Carry every unresolved or partly resolved finding forward at its current
+severity, then add new findings. The verdict covers everything
+outstanding, earlier rounds included.
+
+## 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.