Astra findings r1 on the dev claim trial undo (NOT READY), unedited
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+54
−0
docs/superpowers/notes/reviews/ASTRA-FINDINGS-dev-claim-trial-undo-r1.md+54 −0
CI passed — run details
diff --git a/docs/superpowers/notes/reviews/ASTRA-FINDINGS-dev-claim-trial-undo-r1.md b/docs/superpowers/notes/reviews/ASTRA-FINDINGS-dev-claim-trial-undo-r1.md| new file mode 100644 |
| index 000000000..2abc00f0e |
| --- /dev/null |
| +++ b/docs/superpowers/notes/reviews/ASTRA-FINDINGS-dev-claim-trial-undo-r1.md |
| @@ -0,0 +1,54 @@ |
| +**NOT READY** |
| + |
| +Reviewed the note and code at `1b20eb2e`. No files changed, tests run, or AWS/box commands executed. |
| + |
| +1. **P1 — Step 7 can revive wakecheck’s stale database.** |
| + The residue table omits leo’s retained wakecheck database. The trial runbook explicitly records that removing its route left that database behind (lines 1037–1043). Claims-off wakes accept an existing local database without restoring newer remote data: [backend_exec.go:784](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/activator/backend_exec.go:784), especially lines 795–796. The single-box assumption behind this is explicit in [activator.go:2302](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/activator/activator.go:2302). Removing `CARLOS_POOLS` makes leo eligible again; waking both boxes can therefore serve and replicate divergent histories. |
| + |
| + **Fix:** Inventory the retained database and associated local state. Before restoring leo’s eligibility, establish an authoritative copy and a procedure that prevents stale or alternating writers. “This was the state before the trial” does not make it safe. Do not use HTTP 200 alone as the data check. |
| + |
| +2. **P1 — Step 8 can update or roll back flagship.** |
| + Its commands omit `--console`; step 7 also lacks complete, explicitly scoped commands. Credential selection follows environment/configuration defaults: [auth.go:252](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/auth.go:252). Both update and rollback use that selection: [system.go:285](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/system.go:285), lines 566–585. The original trial runbook, line 1044, specifically warns that this machine’s default is flagship. |
| + |
| + **Fix:** Explicitly select dev for every console command, including verification and rollback. Pin the account/app where relevant, and inspect the console shipping script’s destination before using it. |
| + |
| +3. **P2 — Restoring normal pools prevents offline moves into Ireland.** |
| + With leo and sophie both serving the shared pool in the home placement, Ireland has two eligible targets. The offline door requires exactly one and returns 409 otherwise: [apiinstancemove_offline.go:366](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/console/apiinstancemove_offline.go:366), lines 385–389. Moves *out* can also refuse when multiple source boxes retain local data, at lines 1031–1041. |
| + |
| + **Fix:** Resolve the topology requirement before step 7. Either provide a supported arrangement with one eligible target per destination region, or implement and review multi-target support. Removing claim residue alone cannot deliver the stated combination of normal pools and working moves in both directions. This restriction also applies to any similarly configured flagship region. |
| + |
| +4. **P2 — Step 7’s rollback does not undo the routes it creates.** |
| + Restoring `CARLOS_POOLS=cohort1` excludes newly minted shared-pool routes from both convergence and retirement. The removal gate explicitly requires the route to remain in scope: [reconcile.go:1793](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/provision/reconcile.go:1793); pool matching is at lines 2771–2775. This recreates the orphan-route problem the original trial already encountered. |
| + |
| + **Fix:** Record leo’s routes before the pool change. Define how newly admitted instances are safely stopped and their leo routes retired before restoring the old pool configuration, preserving shared records and authoritative data. |
| + |
| +5. **P2 — Steps 2 and 3 contain checks that cannot pass on the intended state.** |
| + The plain update and recovery units themselves contain conditional `guard-exec` branches: [carlos-system-update.service:47](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/host/units/carlos-system-update.service:47) and [carlos-system-recover.service:41](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/host/units/carlos-system-recover.service:41). Requiring their entire `ExecStart` to contain no `guard-exec` stops a correct disarm. |
| + |
| + Step 2 also demands wakecheck on leo before removing its pool restriction; the runbook records that route’s removal. Applying the same check to sophie demands claimtrial there despite its `cohort1` placement. Pool exclusion is enforced by [reconcile.go:443](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/provision/reconcile.go:443). |
| + |
| + **Fix:** Compare effective units with the expected plain units, verify the guard drop-ins are absent and conditional guard selectors are inactive, and specify different serving checks for each box. |
| + |
| +6. **P2 — Step 5’s lock does not prevent a delayed floor refresh from rearming it.** |
| + `syncLocalFloor` reads the remote floor **before** acquiring `floor.lock`: [movesfloor.go:219](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/host/movesfloor.go:219), lines 224–252. A refresh that fetched the old floor before step 4 can acquire the lock after step 5 and recreate both files. Subsequent remote absence preserves those files, at lines 229–230. |
| + |
| + **Fix:** Quiesce existing floor writers before removing the local copies, then restart them against the confirmed-absent remote floor. Specify the same writer exclusion and locking for rollback. The hourly post-check detects rearming but does not prevent it. |
| + |
| +7. **P2 — Step 1 removes a required environment file before systemd reloads.** |
| + The installed claim drop-in uses a mandatory `EnvironmentFile`, without `-`: [activation_install_linux.go:318](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/host/activation_install_linux.go:318). If the shell fails after moving the environment file but before `daemon-reload`, a console restart still uses the loaded configuration and fails. |
| + |
| + **Fix:** Install the home-region setting, remove the two drop-ins, reload and restart successfully, then archive the now-unused environment file. On rollback, restore the environment file before restoring its referencing drop-in. Check for an existing `home-region.conf` and preserve it instead of overwriting and later deleting it. |
| + |
| +8. **P2 — Step 9’s `rmdir` leaves an unlisted installer lock behind.** |
| + Installing fence credentials creates `.claims-activation.lock` in that directory and closes it without unlinking it: [activation_install_linux.go:95](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/host/activation_install_linux.go:95), lines 191–196. Its name is defined in [claimcensus.go:19](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/host/claimcensus.go:19). Deleting only the two credential files therefore leaves step 9 failing after the irreversible key deletion. |
| + |
| + **Fix:** Inventory the lock, establish that no installer holds it, and remove that exact file before `rmdir`. Record other installer locks as inert leftovers where they exist. |
| + |
| +9. **P2 — Step 8 does not prove the requested update, recovery and move behaviour.** |
| + Re-promoting the current version takes the no-op return before activation checks and installation: [systemapply.go:435](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/host/systemapply.go:435). That cannot produce the promised activation-floor evidence on every box. Only canary rollback is exercised; offline status does not exercise target selection, sealing or landing. |
| + |
| + **Fix:** Pin distinct, known-good releases and verify actual forward/backward transitions on both channels. Record current and `.prev` identities on all three boxes and include a controlled recovery/reboot witness. After resolving findings 1 and 3, verify an offline move in both directions using disposable data with a content check. |
| + |
| +The core legacy-state interpretation is supported: absent guard state bypasses `installFloorHook` ([guardtransaction.go:515](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/host/guardtransaction.go:515)); both remote floor keys absent bypass reservation ([hostactivation.go:33](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/console/hostactivation.go:33)); no console ID disables reports ([hostreports.go:68](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/console/hostreports.go:68)). Retained census state remains authoritative with claims off, so proving its absence is essential ([production.go:54](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/rootparticipation/production.go:54)). No new guard-disarm command is inherently required. |
| + |
| +Preserving `CONSOLE_HOME_REGION=ie` is correct. Removing the roster after stopping reports and deleting both floor keys is also correct. The fence reader uses installed credentials and STS, not KMS ([writer.go:37](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-live-moves-ha/internal/hostfence/writer.go:37)); the recorded **2026-10-26T20:26:18Z** key deletion is therefore not a runtime deadline for this undo. Its actual AWS state was not checked. |
| \ No newline at end of file |