carlos / platform Public

reviews: Astra slice 1 plan round 2 (NOT READY, stopping rule 2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 33648c3ab8d1d55a9235d48e1399259c6d35cc12 parent 8a8d621
1 file changed, +82 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-SELF-SERVE-SLICE-1-R2.md +82 −0

CI passed — run details

Intent

Human

<task-notification> <task-id>a5a8684b1f0a9b866</task-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/a5a8684b1f0a9b866.output</output-file> <status>completed</status> <summary>Agent "Implement #339 stage refusals" is waiting on its own background work</summary> <note>This agent stopped with background work of its own still running. It may resume on its own when that work completes or reports, and the same task-id notifies again if it does; the result below may be interim.</note> <result>Waiting for the batch-done notification.</result> <usage><subagent_tokens>289032</subagent_tokens><tool_uses>113</tool_uses><duration_ms>1573485</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bdu8uahzh</task-id> <tool-use-id>toolu_01JuaPaddzPffuhyWtBjn6fY</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/bdu8uahzh.output</output-file> <status>completed</status> <summary>Background command "Run Astra round 2 on slice 1 plan" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 18.1 g CO₂e (2,372,690 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-R2.md b/docs/superpowers/reviews/CODEX-FINDINGS-SELF-SERVE-SLICE-1-R2.md
new file mode 100644
index 000000000..b5c44ebca
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-SELF-SERVE-SLICE-1-R2.md
@@ -0,0 +1,82 @@
+| Round-1 finding | Disposition |
+|---|---|
+| P1 #1 — move-ID binding | **Resolved.** I1 runs before evidence reads; transitions use `Job.ID` (plan:392, 411). |
+| P1 #2 — pending abort and stage-round identity | **Partly resolved.** Abort intent persists; staging can still lose synchronization with the record. Carried forward below. |
+| P1 #3 — lost serial notification | **Resolved** for the specified transition-recovery cases: settlement requires a successful bump (plan:394–411). |
+| P1 #4 — re-attachment after flip | **Resolved.** Existing-job recognition precedes new-move region checks (plan:260–268). |
+| P1 #5 — five contradictory tests | **Resolved** for those five cases. Task 6 introduces a separate test-driver defect below. |
+| P2 #6 — nonexistent landing-fault option | **Resolved.** Task 6 uses the existing archive-tamper mechanism (plan:675–680). |
+| P2 #7 — copy approval and ordering | **Resolved.** Task 0 precedes product copy. |
+| P2 #8 — census before final edits | **Resolved.** Task 7 generates the final proposal and requires regeneration after further changes (plan:707). |
+| P2 #9 — scratch ownership and location | **Partly resolved.** Unique ownership is fixed; the explicit `/tmp` fallback still violates the supplied machine instructions. |
+
+Reviewed [the plan](/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) at `5a8163fe2cd0c191b9192e7d4a269357c1c47924`. All code citations below refer to `origin/main` at `4c6416787a42ce5da5964588de721817d25fc15d`, read with `git show`. No edits, subagents, or tests.
+
+1. **P1 — A hand restage leaves the job waiting for a request that can never match.**
+ **Invariant/fault family:** I2/I4 — recovery must reconcile intended and completed transitions for this move. Carries forward round-1 P1 #2.
+
+ **Evidence:** plan:399 updates `StageAsked` only while settling a `restage` intent; plan:417 requires `Stage.Request == StageAsked == Move.StagedAt`. The hand-door reconciliation at plan:429 handles state advances only. Existing `/stage` changes `StagedAt` without changing state (`internal/console/apiinstancemove_offline.go:676–685`; `internal/provision/offline_move.go:258–274`).
+
+ **Failure:** with no job intent pending, an operator runs `stage`. The record and eventual report name the new request, but `Job.StageAsked` retains the old one. No decision-table branch adopts it or requests another round: the job waits until it aborts a healthy move. Concurrent adoption requests can produce the same mismatch because restaging precedes the unique job insert (plan:266).
+
+ **Fix:** reconcile staging-request identity from the bound record even without a pending intent, preserving accurate round counts. Test a hand restage between ticks and concurrent adoption with the second restage landing after the first job insert.
+
+2. **P1 — Following a hand flip can reject a valid landing and abort it.**
+ **Invariant/fault family:** recovery and evidence identity — observing a transition later must not invalidate its completed evidence.
+
+ **Evidence:** plan:430 sets `FlippedAt` to when the job first observes a hand flip, then rejects reports older than that observation. Landing writes its report before advancing the record (`internal/host/movesoffline_land.go:82–100`). Target landing reports are excluded from the 15-second refresh; ordinary passes run every five to six minutes (`internal/host/movesoffline.go:453–468`).
+
+ **Failure:** an operator flips while the console worker is paused. Landing completes before the worker resumes. Its valid report necessarily predates the newly assigned `FlippedAt`. The hand-follow path requests no new serial notification, so the three-minute check deadline can expire before another target pass refreshes the report.
+
+ **Fix:** use causal evidence bound to the move rather than the later observation time, or explicitly request and await renewed verification. Extend `TestOfflineJobFollowsHandDoors` so landing finishes **before** the job observes the hand flip.
+
+3. **P1 — The prescribed two-box driver cannot satisfy its assertions.**
+ **Invariant/fault family:** a witness must exercise production scheduling with valid clocks and wait for the effects it asserts.
+
+ **Evidence:** plan:660–669 prescribes `w.loops()` followed by `l.round()` and stops at `job.state == opened`. However, `loops()` leaves `boxAt` zero, and `round()` advances only `tickAt`; report-clock setup and reassertion are separate operations (`internal/host/movesoffline_e2e_test.go:1124–1178`). Box passes use `boxAt` through `setBoxClock` (:430–441). Zero report timestamps fail `offlineFresh` (`internal/console/apiinstancemove_offline.go:283–285`).
+
+ **Failure:** the exact driver produces invalid freshness evidence and stalls. Even after correcting its clock, it exits immediately after the console writes open and closes the job, before the next box pass consumes that serial. The target can still be held when the test asserts it is ready.
+
+ **Fix:** initialize and maintain the box clock, schedule `reassert` explicitly, and drain serial-driven box work after job completion before checking target/source state. Verify that suppressing the job’s recovered serial notification makes the witness fail.
+
+4. **P2 — Console downtime can replace the required final staging round with old evidence.**
+ **Invariant/fault family:** start must follow a recent completed pre-copy round.
+
+ **Evidence:** plan:393 compensates `DeadlineAt`, but plan:417 uses uncompensated elapsed time since `CreatedAt` to permit start. The runbook requires another stage immediately before start (`docs/superpowers/plans/2026-10-21-offline-move-runbook.md:239`).
+
+ **Failure:** round one completes, then the console is down for 45 minutes while the instance keeps accepting writes. On resumption, the old matching report plus “30 min since CreatedAt” permits immediate start—even with `Rounds == 1`. The accumulated delta must now copy during the outage.
+
+ **Fix:** require a completed final round after a substantial interruption and account for downtime consistently in the catch-up budget. Test this restart from staging.
+
+5. **P2 — `run` has no terminal handling for `done`.**
+ **Invariant/fault family:** every terminal job outcome must terminate the watcher.
+
+ **Evidence:** plan:392 explicitly closes a job as `done` when a person finished its move. The CLI’s exhaustive-looking terminal behavior at plan:580–585 handles `opened`, `aborted`, `stopped`, and overdue `returning`, but omits `done`. Existing `follow` has no independent terminal-state handling (`move.go:1375–1387`).
+
+ **Failure:** an operator opens and finishes while the worker is down. Recovery closes the job as `done`, but the specified watcher has no successful exit for that outcome.
+
+ **Fix:** handle `done` through the matching move outcome, using the existing `ended` behavior, and add a watcher test for operator completion during downtime.
+
+6. **P2 — The scratch fallback remains outside the permitted location.**
+ **Invariant/fault family:** scratch must be session-owned and disk-backed.
+
+ **Evidence:** plan:39 explicitly permits `mktemp -d /tmp/g.XXXXXX`. The supplied machine instructions prohibit scratch directly under `/tmp`.
+
+ **Failure:** the short-socket-path fallback still uses the shared RAM-backed filesystem.
+
+ **Fix:** use a short unique directory under an approved disk-backed location, such as `/var/tmp`, and remove that exact directory.
+
+7. **P2 — The scheduled reviews exceed the stated remaining budget.**
+ **Invariant/fault family:** review rounds follow the change across plan, tasks, and branch.
+
+ **Evidence:** plan:37 allows only rounds 2 and 3 after round 1, yet Tasks 3, 4, and 7 each prescribe another review (plan:326, 561, 711). Task 7’s history also omits this plan round 2.
+
+ **Failure:** following the task sequence exceeds three rounds without the required decision from Paul.
+
+ **Fix:** carry this round into every subsequent brief and consolidate the remaining required checks into the available budget, or explicitly gate additional rounds on Paul’s approval.
+
+No P3 findings. The operator role, linked refusal policy, move-ID binding, and post-open mutation boundary match the existing interfaces. Two-console safety remains conditional on the explicitly retained single-console assumption.
+
+The recovery family has now produced findings in two consecutive rounds, so stopping rule 2 applies. The choices are to refuse ambiguous recovery cases before acting, cut automatic recovery for those cases, or enforce the recovery invariant centrally with a guard test or randomized simulation. I recommend the third option; another incremental fix cycle should not start without that decision.
+
+NOT READY
\ No newline at end of file