carlos / platform Public

spec #658: Astra review brief, round 3

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

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-restore-658-R3.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-restore-658-R3.md
new file mode 100644
index 000000000..6f3b71fcc
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-instance-restore-658-R3.md
@@ -0,0 +1,58 @@
+# Review brief: spec "Restore a deleted instance with its own data (#658)", round 3 of 3
+
+Repo carlos/platform, branch `design-instance-restore-658`, commit a4279dec34226358cc71d1d16e4fc76cfa003629.
+Under review: `docs/superpowers/specs/2026-11-07-instance-restore-658-design.md` (rev 4).
+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 (including 2026-11-08: provenance is recorded at create from this release on; anything without it is refused, so instances created before the release are never restorable): 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 origin flag (§4 stage 2 item 3). Is "lifetimes on, `markHost` read `active`, `MarkHostUsed` reported fresh" at the original create sufficient provenance that no other account, app or app lifetime's data exists under the hostname on any target a restored record could read? Check every path that can create an allocation row, set or copy the new columns, publish a record for a host, or write a mark, and the claim that an active mode implies activation's inventory marks were all written first.
+2. The lineage rule: lowest non-void incarnation carries `restore_origin`, every other non-void row carries `restore_of`, all name A, P and L, one has the slot's incarnation. Can any sequence pass it while a write under the host came from someone else? Can any sequence wrongly refuse the plain case (create after the release, delete, restore, delete, restore)?
+3. Ownership (stage 1: mark and slot name A and P) before eligibility: does any detailed refusal reach a non-owner, and is the stage 1 condition itself sound given that the mark names the first creator?
+4. Whether the guard simulation as specified would catch round 1 and round 2's P1 scenarios.
+5. Anything in rev 4's new text that would not compile or not work against the code on main.
+
+## Round 3
+
+Earlier rounds: round 1 `docs/superpowers/specs/CODEX-FINDINGS-instance-restore-658-R1.md`, round 2 `docs/superpowers/specs/CODEX-FINDINGS-instance-restore-658-R2.md` (both NOT READY). Round 2 triggered stopping rule 2 in the provenance family; Paul chose the cut now in §4 (record provenance at create, refuse what lacks it). The spec's §10 and §10b give the author's dispositions.
+
+First give one line per P1 and P2 from round 2: 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. This is the last round: a NOT READY also says whether the P1s share one cause, and whether refusing the case up front or cutting the feature would remove them.
+
+## 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-R3.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.