reviews: Astra #413 round 1 (NOT READY)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/reviews/CODEX-FINDINGS-OFFLINE-MOVE-POOL-TARGET-413-R1.md+47 −0
CI failed — run details
Intent
<task-notification> <task-id>bykw5zver</task-id> <tool-use-id>toolu_012cwYDpqM6YsHLCjsS7bdHo</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/bykw5zver.output</output-file> <status>completed</status> <summary>Background command "Run Astra review of #413" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 19.3 g CO₂e (2,502,480 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on offline-move-pool-target-413, 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-OFFLINE-MOVE-POOL-TARGET-413-R1.md b/docs/superpowers/reviews/CODEX-FINDINGS-OFFLINE-MOVE-POOL-TARGET-413-R1.md| new file mode 100644 |
| index 000000000..e43485a41 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-FINDINGS-OFFLINE-MOVE-POOL-TARGET-413-R1.md |
| @@ -0,0 +1,47 @@ |
| +**NOT READY — round 1 of 3.** Reviewed `4c641678..4ecf608d9a20b130327a8dc3c61d2b5e8792f16c`. Current HEAD adds only the review brief. |
| + |
| +1. **P1 — Older record writers erase the target pin during a mixed-version rollout.** |
| + |
| + The new [`MoveState.TargetBox`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/offline-move-pool-target-413/internal/provision/provision.go:1342) is absent from the base commit’s struct. Older writers decode into that struct and marshal the entire record again through [`updateRecordSeeding`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/offline-move-pool-target-413/internal/provision/provision.go:1175), silently removing `target_box`. |
| + |
| + **Scenario:** a new console starts a pinned move while the sealer still runs the previous release. Its [`OfflineSealedBy` write](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/offline-move-pool-target-413/internal/host/movesoffline_seal.go:951) removes the pin. An older target likewise removes it when recording landed. The console then [falls back to every target report](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/offline-move-pool-target-413/internal/console/apiinstancemove_offline.go:222); an old named-pool box’s extra report reproduces the original open hang while the instance is offline. An older console performing a transition has the same preservation problem. |
| + |
| + **Fix:** gate pinned starts on a capability proving participating writers preserve the field, with an explicit console rollout/rollback constraint. Add compatibility coverage using the previous record representation through both seal and landing writes. The new same-version JSON round-trip test cannot detect this. |
| + |
| + **Invariant / fault family:** the selected target must survive every record rewrite throughout the move. |
| + |
| +2. **P2 — The CLI still treats an unpinned target’s failed report as authoritative.** |
| + |
| + [`offlineViewOf`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/offline-move-pool-target-413/internal/console/apiinstancemove_offline.go:1427) returns all reports, although its items and failed flag now exclude other targets. The CLI’s [`failedReport` and `failure`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/offline-move-pool-target-413/move.go:1208) still scan all target reports independently. |
| + |
| + **Scenario:** use the failed pool-box report already constructed by `TestOfflineWaitsOnlyForThePinnedTarget`. The API returns `Failed=false`, successful landing items and `Next=open`; the CLI nevertheless prints abort advice and returns exit 4. [`runFlip`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/offline-move-pool-target-413/move.go:1713) checks that failure before accepting `Next=open`. The runbook script consequently aborts an otherwise successful landing. |
| + |
| + **Fix:** filter irrelevant target reports from the operational API view, or expose the pin and apply it consistently in CLI failure and served checks. Cover the existing fixture through CLI polling and status. Server-side filtering also protects older CLIs. |
| + |
| + **Invariant / fault family:** every operator-facing decision must use the same target evidence. |
| + |
| +3. **P3 — Follow-up: target eligibility still ignores `CARLOS_INBOUND=none`.** |
| + |
| + This is a **pre-existing admission gap**, retained by the new pin. [`offlineCanHold`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/offline-move-pool-target-413/internal/console/apiinstancemove_offline.go:359) checks hibernation and shared-pool membership, but [`mintHeld`](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/offline-move-pool-target-413/internal/provision/reconcile.go:2775) refuses a no-inbound box. |
| + |
| + **Scenario:** the only advertised target hibernates and serves the shared pool but declares no inbound work. Start accepts and pins it; landing waits indefinitely for a row reconcile refuses to create. |
| + |
| + **Fix:** follow up with a target-specific admission check using published inbound eligibility; preserve conservative source-holder checks. |
| + |
| + **Invariant / fault family:** an admitted target must be able to acquire the required row. |
| + |
| +**Census verdicts — source review** |
| + |
| +| Changed unit or envelope | Verdict | Evidence | |
| +|---|---|---| |
| +| `internal/host/movespass.go:armOffline` | **APPROVED** | Lines 367–421: the added pool configuration uses the existing parser; existing registry and release hooks remain unchanged. No new root read or path authority. | |
| +| `internal/host` envelope | **APPROVED** | `offlineRound`, `offlineTargetHere`, `armOffline`, and `moveCfg`: target dispatch gains restrictive pool and identity checks. Existing landing, hold, and release validations remain intact. | |
| +| `internal/provision` envelope | **APPROVED** | `OfflineTargeted` rejects empty targets and invalid resulting states; `TargetBox` adds data without introducing filesystem access or weakening root validation. The P1 above concerns preservation across versions. | |
| + |
| +These census approvals do not resolve the functional findings. |
| + |
| +The remaining checks support the intended behavior: staged start selects the currently eligible box and rechecks staging coordinates; loss of the pinned target before open permits abort without its acknowledgement. After-open recovery remains outside the merged design’s scope. MV-O194 matches the implemented zero-candidate refusal, but its copy row remains **pending**. |
| + |
| +The added E2E models the dev pool-box hang through real reconcile and move passes. It does not exercise older writers or the CLI, explaining the two missed cases. |
| + |
| +`git diff --check` passed. Targeted tests could not start because the sandbox refused Go’s work-directory creation; `GOCACHE` was unset. Network restrictions prevented reading discussion #413 or recording census verdicts on #280. No files were changed. |
| \ No newline at end of file |