carlos / platform Public

spec #658: Astra review brief, round 2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev aa5f30048bda6bcb807a2bbc37ade5330f04e706 parent b3da0bf
1 file changed, +58 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-restore-658-R2.md +58 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-restore-658-R2.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-restore-658-R2.md
new file mode 100644
index 000000000..cfbff87d4
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-restore-658-R2.md
@@ -0,0 +1,58 @@
+# Review brief: spec "Restore a deleted instance with its own data (#658)", round 2 of 3
+
+Repo carlos/platform, branch `design-instance-restore-658`, commit b3da0bf982b36bba20034d26a03b6c5dc75afdf1.
+Under review: `docs/superpowers/specs/2026-11-07-instance-restore-658-design.md` (rev 3).
+Authorities: `docs/superpowers/specs/2026-10-26-nearest-region-without-claims-design.md` (the hostname history), `docs/superpowers/specs/2026-10-21-self-serve-offline-moves-design.md`, and the code 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, recorded in the spec and on amadan discussion #658: restore, not reuse, and the never-reuse rule stays unchanged for every create without `restore`; instances deleted before restore ships are refused (R8), with no fallback scan; restore goes through the existing create door with `restore: true`. Report only mechanisms that fail to honour them.
+- Out of scope by the spec's non-goals (each refused up front): restoring outside the console's own region; sidecars, HA, rootfs, pool, fleet, addr-backed, replica, demo, seeded and imported instances; hostnames first marked before the current activation; claims on; a stop/start state; restoring the old record's configuration.
+- The author's call in §6: restore promises what waking the same instance from hibernation promises, no more. A stale sibling-box warm file that would also affect a hibernated instance is a wake-path issue, not a restore finding; raise it only if restore makes it reachable where hibernation does not.
+- The leftover-staging bug is filed as discussion #661; do not re-raise it except where restore's own check (§3 item 3) fails to cover it.
+
+## What to check
+
+1. The provenance argument in §4 item 2: is "mark `Source` create, names A and P, `At` later than `@mode.At`" sound? Check every writer of the mark and of `@mode` (including fleet enrollment, first-box records, group-member coverage, `invalidateHosts`, offline activation and invalidation), clock sources, and whether any create can write a mark after activation for a hostname that already had data on a target the history examined or skipped.
+2. §4 item 3 and §5: can every allocation be bound to the current app lifetime and still have an earlier owner's data under the host? Can `restorable` be set on a row whose tombstone did not replace exactly the stored body, including recovery after a lost N1 response and the `record_seq` rule?
+3. §3: ownership evaluated before region and staging, and again at the mark step under the lock. Can any refusal before the first evaluation, or any timing difference, tell another owner something? Does the whole-prefix staging list match the promotion boundary exactly?
+4. §6: does restore make any copy readable that a wake of the same hibernated instance could not read?
+5. Anything in rev 3's new text that would not compile or not work against the code as it is on main.
+
+## Round 2
+
+Earlier rounds: round 1, `docs/superpowers/specs/CODEX-FINDINGS-instance-restore-658-R1.md` (NOT READY: P1 1-3, P2 4-7). The spec's §10 gives the author's disposition of each.
+
+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. Name the fault family of each finding; a finding in the same family as a round 1 P1 says so.
+
+## 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.
+
+Write your findings to `docs/superpowers/specs/CODEX-FINDINGS-instance-restore-658-R2.md` in this worktree and nothing else.
+
+Do not edit any other file. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites.