carlos / platform Public

Dev claim trial undo log: step 7 items 1-5 pass; STOP at item 6, leo's instance lease survived the reboot

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev fdf30876df3aab59bc3fe0e069e4aa605453144f parent 4fd0409
1 file changed, +30 −0
  • docs/superpowers/notes/dev-claim-trial-undo-log.md +30 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/notes/dev-claim-trial-undo-log.md b/docs/superpowers/notes/dev-claim-trial-undo-log.md
index 9ed52570f..7f299abbd 100644
--- a/docs/superpowers/notes/dev-claim-trial-undo-log.md
+++ b/docs/superpowers/notes/dev-claim-trial-undo-log.md
@@ -311,3 +311,33 @@ Per transition, the record (`box7.sh`) on all three boxes: `carlos` and `.prev`
- Serving: claimtrial 200 (953), wakecheck 200 (2208), console 200 `v0.28.17`, dennis active. PASS.
**5. No claim residue came back** (09:36Z): `control/host-actors.json` 404; `control/system/router/releases/` still 13 keys, the newest v0.28.16.json from 2026-10-25T17:10:59Z, none new; `claim-signer/` empty; `get-role carlos-claim-signer` `NoSuchEntity` (no signing session); R1 and R5 still 404. PASS.
+
+**6. Recovery witness on leo: reboot.** Pre (09:36Z): boot_id `3d0897b4…`, up since 2026-08-28; `carlos` v0.28.17 `26bb4a59`; no router `journal.json`; edge 907144. Effective recover unit (`systemctl cat` sha16) `ea4a1618462bfd47` on leo = dennis's. Claimtrial last served by edge 907144 at 09:35:52Z (hits 953).
+
+Action: `systemd-run --unit=claim-undo-reboot --on-active=5s /bin/systemctl reboot` at 09:36:54Z (delayed so the SSM call could return). Leo came back with boot_id `e674db66…`, up since 09:38:05Z.
+
+Checks after boot (09:39Z):
+- `carlos-system-recover.service` ran in this boot: ExecMainStartTimestamp 09:38:15Z, after the boot; `Result=success`, `ExecMainStatus=0`. PASS.
+- Effective unit `systemctl cat` sha16 `ea4a1618462bfd47` = dennis's; `DropInPaths` empty; no `/opt/carlos/system/guard`, so the template's guard branch is inactive. PASS.
+- `Finished carlos-system-recover.service` at 09:38:15, then `Started carlos-edge.service` at 09:38:15. Edge MainPID 710, `ExecStart=/opt/carlos/carlos agent`, exe `/opt/carlos/carlos`, NRestarts 0. PASS.
+- `carlos` v0.28.17 `26bb4a59`, unchanged; `.prev` v0.28.16; `REFUSING` 0 this boot; no floor file; update path and instance-control active. PASS.
+- **Leo's serving check: FAIL.** Claimtrial via `--resolve …:18.200.150.210` answered `503 instance is waking elsewhere; retry shortly`, every 10 s from 09:39:45Z to 09:41:38Z.
+
+### STOP (2026-10-26T09:41Z): step 7 item 6, leo does not serve claimtrial after the reboot
+
+Read-only evidence:
+- Leo's edge journal, every 10 s from 09:39:37Z: `activator: LEASE HELD for claimtrial.dev.carlosframework.com by "ip-172-31-19-180:907144" — a previous incarnation hasn't released; refusing to wake (retry after 11m14.8s)`.
+- `s3://carlos-dev-ie-640012953448/instances/claimtrial.dev.carlosframework.com/lock.json`: `{"generation":1,"expires_at":"2026-10-26T09:50:52.583815877Z","owner":"ip-172-31-19-180:907144"}`. The owner is the pre-reboot edge; the lease was taken at the 09:35:52Z wake (15-minute lease).
+- The previous boot's journal (`journalctl -b -1`): from about 09:37:52Z to 09:38:00Z, edge 907144 logged `activator: claimtrial…: unit state: exit status 1` once a second (the nested instance unit had already been stopped by the shutdown), alongside `INFO replica sync … txid.replica=0000000000000187 txid.db=0000000000000187`. Then `carlos-edge.service: Deactivated successfully` at 09:38:00Z. The edge stopped cleanly but never released the instance lease. Memory records a v0.27.3 "#292 shutdown-lease fix", so a clean stop is meant to release it.
+- Data: the replica was in sync at shutdown (txid 187 = 187).
+- Observed without any change: at 09:51:06Z, after the lease's expiry (09:50:52Z), claimtrial on leo answered 200, `host=ip-172-31-19-180`, hits 955 (953 before the reboot), so no rows were lost. Leo serves again by itself; the outage lasted from the reboot until the lease expired, about 13 minutes.
+
+Why STOP: the note's pass for item 6 includes "leo's serving check passes", and it failed. The cause, a 15-minute serving gap after a clean reboot of a box whose instance was awake, is a platform behaviour on the plain units, not claim residue. Whether to accept it (and finish items 7 and 8 and step 8), or to treat it as a finding first, is for you and Paul.
+
+Not done: step 7 items 7 (console promotes) and 8 (offline move), step 8, step 10. Nothing was rolled back; nothing needs it.
+
+State at this stop:
+- Router stable and canary on v0.28.17; every box on v0.28.17 with `.prev` v0.28.16; transitions 1 to 4 and item 5 passed.
+- The console is v0.28.17 (`edd969b5`), as the other agent's roll left it.
+- Dev is disarmed and has no floor (unchanged since step 6). Fence-writer key `…VINM` still Active.
+- The freeze is still in force.