reviews: Astra slice 1 plan round 1 (NOT READY)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/reviews/CODEX-FINDINGS-SELF-SERVE-SLICE-1-R1.md+66 −0
CI cancelled — superseded by a newer push — run details
Intent
<task-notification> <task-id>bqfxekulm</task-id> <tool-use-id>toolu_01USaPznrsMrYwLZZAJV8usM</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/bqfxekulm.output</output-file> <status>completed</status> <summary>Background command "Run Astra review of slice 1 plan" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 14.2 g CO₂e (1,857,467 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on plan-tito-nesting-moves, 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/CODEX-FINDINGS-SELF-SERVE-SLICE-1-R1.md b/docs/superpowers/reviews/CODEX-FINDINGS-SELF-SERVE-SLICE-1-R1.md| new file mode 100644 |
| index 000000000..c2f08cb01 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-FINDINGS-SELF-SERVE-SLICE-1-R1.md |
| @@ -0,0 +1,66 @@ |
| +Reviewed the plan at `f6287be066dcdd268ec69d17f04e1986def0c861` against `origin/main` at `4c6416787a42ce5da5964588de721817d25fc15d`. No edits, subagents, or tests. |
| + |
| +Below, **plan** means [2026-11-13-self-serve-moves-slice-1-one-command.md](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/plan-tito-nesting-moves/docs/superpowers/plans/2026-11-13-self-serve-moves-slice-1-one-command.md). |
| + |
| +1. **P1 — Task 4 does not bind a live record to the job’s move ID.** |
| + **Evidence:** plan:340–357 checks IDs only when there is *no* move; plan:448 constructs the door from the current record. `internal/console/apiinstancemove_offline.go:950` constructs the start mutation using that record’s move ID. |
| + **Failure:** while the console is down, an operator finishes move A and stages move B. A’s still-running job resumes against B and can start, open, or abort it. The deployment lock legitimately belongs to B and does not prevent this. |
| + **Fix:** before reading evidence or deciding any mutation, require the record’s offline move ID to equal `Job.ID`. Otherwise settle A without touching B. Test replacement while A’s row remains live. |
| + **Invariant:** a job’s authority belongs to one move, not every move of its host. |
| + |
| +2. **P1 — Task 4 does not preserve a pending abort across a failed write.** |
| + **Evidence:** plan:356 saves `returning`/`abort` before `OfflineAbort`; plan:357–358 then reconciles the row back to the record’s state and decides again. |
| + **Failure:** the job records an abort in `offline-landed`, but the record write fails. On restart, the record remains landed. If evidence now passes, the table permits `open`, abandoning the durable abort decision. |
| + **Fix:** explicitly retain and retry pending abort intent for the same move until the record confirms reverting or an operator has already opened it. Add crash-before-write and lost-reply cases. The same protocol needs a durable staging-request identity: incrementing `Rounds` before a failed restage must not let the previous report count as another completed round (`internal/provision/offline_move.go:258–274`). |
| + **Invariant:** recovery must distinguish an intended transition from a completed transition. |
| + |
| +3. **P1 — Lost-reply recovery omits the serial notification.** |
| + **Evidence:** plan:76, 358 and 432–434; `internal/console/apiinstancemove_offline.go:790–799` returns on a write error before bumping the serial. `internal/host/movesoffline.go:453–468` explains that ordinary passes run every five to six minutes and that the refresh loop does not perform sealing or landing. |
| + **Failure:** a staged-start write commits but its reply is lost. The next tick sees stopping and waits, without announcing the transition. Boxes can remain unaware until after the five-minute stop deadline, causing an unnecessary abort. A crash between commit and serial bump has the same problem. |
| + **Fix:** recover the notification after confirming an uncertain transition, without repeating the transition. Exercise this through the existing serial-driven `e2eLoops`; unconditional `tickAll()` calls conceal the missing notification. |
| + **Invariant:** recovery must restore transition delivery as well as record state. |
| + |
| +4. **P1 — Task 3’s re-attach path becomes unreachable after flip.** |
| + **Evidence:** plan:222 runs region checks before the re-attach branch at plan:227. `internal/console/apiinstancemove_offline.go:541–544` refuses the current region; `internal/provision/offline_move.go:344` makes the destination the current region at flip. |
| + **Failure:** repeating `run --to uk` during landing, landed, open, or finishing returns “already in uk” instead of re-attaching. |
| + **Fix:** after authentication and request parsing, recognize a matching live job and destination before running new-move admission checks. Test re-attachment in every state, including rejection of a different requested destination. |
| + **Invariant:** retrying an accepted request must retain its identity throughout execution. |
| + |
| +5. **P1 — Several prescribed tests contradict the interfaces they must preserve.** |
| + These fail without any implementation defect: |
| + |
| + | Evidence | Contradiction and fix | Invariant | |
| + |---|---|---| |
| + | plan:82–84; `internal/console/apiinstancemove_offline_test.go:567` | The entire refusal table includes the deployment-lock refusal. Class and region helpers cannot produce it; lock acquisition happens later. Split helper tests from admission tests. | Refactor tests preserve existing check boundaries. | |
| + | plan:235–237; `internal/console/authcli.go:504–510` | No token receives **401**, not the operator gate’s 404. Preserve that authentication response. | Authentication precedes operator authorization. | |
| + | plan:359, 418–419 | Advancing ten minutes without ticks triggers downtime compensation, so the specified timeout test cannot abort as asserted. Advance through regular ticks for timeout coverage; test downtime separately. Initialize `TickAt` explicitly at admission. | Deadlines count the intended elapsed time. | |
| + | plan:432–434; `internal/provision/offline_move.go:296–307` | Sealing does not advance `MoveSeq`. Assert committed writes, or `RecordSeq` with sequencing enabled. | The witness measures the transition actually performed. | |
| + | plan:360, 402–410; `internal/console/apiinstancemove_offline_test.go:383–388` | The existing `landed` helper leaves `RowPresent` false, which the new gate rejects. Add job-specific report helpers with `RowPresent` and a consistent test clock. | Successful fixtures satisfy the production gate. | |
| + |
| +6. **P2 — Task 6 names a nonexistent landing-fault option.** |
| + **Evidence:** plan:573–578; `internal/host/movesoffline_land_test.go:82–96` has no fault field in `landOpts`. The existing rollback witness tampers with the sealed archive at `internal/host/movesoffline_e2e_test.go:1452–1460`. |
| + **Failure:** following the proposed setup does not induce the failure needed to prove automatic abort. |
| + **Fix:** specify that archive tamper between seal completion and landing, retaining the source-data and lease assertions. `e2eWorld` does provide real console and two-box workers; the injection instructions need correcting. |
| + **Invariant:** the abort witness must provoke a real production-path failure. |
| + |
| +7. **P2 — Copy approval is assigned to the wrong reviewer and placed after implementation.** |
| + **Evidence:** plan:24, 525 and 555. The [copy-review skill](/home/paulca/.agents/skills/copy-review/SKILL.md) requires user review before copy enters product files; a Luna pass does not grant approval. The repository also requires a UX pass before copy review. |
| + **Failure:** the plan marks model-edited strings approved without Paul reviewing them. |
| + **Fix:** put the CLI UX pass and human copy review before implementing the new strings; use Luna only for drafting. |
| + **Invariant:** approved copy records actual user approval. |
| + |
| +8. **P2 — The census proposal precedes later changes to its pinned source.** |
| + **Evidence:** plan:534 proposes the overlay; plan:555 subsequently applies copy edits to `move.go`. Task 7 contains no regeneration step. |
| + **Failure:** any such edit invalidates the proposed source fingerprint and leaves the final review carrying a stale card. |
| + **Fix:** generate the final proposal after all source edits, and regenerate it after any subsequent in-scope fix before obtaining the verdict. |
| + **Invariant:** census approval covers the exact source being merged. |
| + |
| +9. **P2 — The scratch instructions violate the shared-machine rules.** |
| + **Evidence:** plan:28 prescribes shared `/tmp/g`, followed by `rm -r /tmp/g`; subsequent test commands reuse it. |
| + **Failure:** concurrent sessions share scratch, and cleanup can delete another session’s files. |
| + **Fix:** use a uniquely created directory under the disk-backed `$TMPDIR` or task cache, and remove only that directory. |
| + **Invariant:** each session owns its scratch and cleanup scope. |
| + |
| +The proposed operator role and linked-policy registration match existing doors. Existing `OfflineAbort` rejects open/finishing even after a stale read (`internal/provision/offline_move.go:412–428`). Two-console safety remains conditional on the spec’s single-console-per-deployment assumption: the serve lock protects one database path, not separate databases targeting the same deployment (`cmd/console/servelock_unix.go:16–34`). |
| + |
| +NOT READY |
| \ No newline at end of file |