carlos / platform Public

Dev claim trial undo log: step 2 PASS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 424a8facc9f15f64c27cabcf2b95e237812e2515 parent ea7b873
1 file changed, +28 −0
  • docs/superpowers/notes/dev-claim-trial-undo-log.md +28 −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 1c182fe0c..b71406a70 100644
--- a/docs/superpowers/notes/dev-claim-trial-undo-log.md
+++ b/docs/superpowers/notes/dev-claim-trial-undo-log.md
@@ -93,3 +93,31 @@ Start: 2026-10-25T22:38:06Z
Rollback state: aside dir `/root/claim-undo-20261026/step1/` on sophie holds `90-host-floor.conf`, `91-claim-runtime.conf`, `claim-console.env`; `home-region.conf` was created by this step.
End: 2026-10-25T22:45Z. **Step 1: PASS.**
+
+## Step 2 [SSM leo]: disarm leo
+
+Start: 2026-10-25T22:45:16Z
+
+**Pre-check** (22:45:17Z, immediately before): no `journal.json`, no `update-begun.json*`; `completed.json` = activation id = `cd73876401719979bb11e59ae4925ca8`; `/data/.hostexec` empty; update and recover `inactive`, path `active`; edge MainPID 755488 NRestarts 0; `rosterview` rev 53, `activations []`, `holds []`. Also checked: `/opt/carlos/system/router/lock` exists (root 600), and `/opt/carlos/system`, `/root` and `/etc/carlos` are on the same filesystem (dev 66305, `/`), so each `mv -T` is a rename. Apply takes this lock with `flock` (`systemapply_unix.go:41`).
+
+**Action** (one SSM root shell, `set -euo pipefail`; 22:45:27.01Z to 22:45:27.60Z):
+1. `systemctl stop carlos-system-update.path` → inactive; update and recover confirmed `inactive`.
+2. `exec 9</opt/carlos/system/router/lock; flock -n 9` → held (steps 3 to 6).
+3. `install -d -m 0700 /root/claim-undo-20261026/step2/{carlos-edge,carlos-system-update,carlos-system-recover}.service.d`; for each unit, `mv -T /etc/systemd/system/<u>.service.d/90-host-floor.conf /root/claim-undo-20261026/step2/<u>.service.d/90-host-floor.conf` (edge `46d6cdbe…`, update `4ff134c8…`, recover `d988c9d0…`).
+4. `systemctl daemon-reload`.
+5. Unit comparison against dennis's step-0 values (sha256 of `path|argv`, DropInPaths, fragment sha, sorted Requires), `cmp` equal for all three:
+ - `carlos-edge exec_sha=981ed0adde0f9406 dropins=[] frag_sha=7ec2140a87cad8b9 requires=[carlos.slice data-instances.mount run-carlos-instances.mount run-carlos-logs.mount sysinit.target]`, ExecStart `/opt/carlos/carlos agent` (no `carlos-system-recover.service` in Requires);
+ - `carlos-system-update exec_sha=5282ab5548b843e8 dropins=[] frag_sha=cfcaeea6308021ce requires=[sysinit.target system.slice]` (the template's conditional `/bin/sh -c 'if [ -x …/guard/carlos ] && …'`);
+ - `carlos-system-recover exec_sha=3d3243296ffef7b8 dropins=[] frag_sha=f16b260868c4b258 requires=[sysinit.target system.slice]`.
+6. `mv -T /opt/carlos/system/guard /root/claim-undo-20261026/step2/guard`; `mv -T /etc/carlos/host-actor.json /root/claim-undo-20261026/step2/host-actor.json`.
+7. `test ! -x /opt/carlos/system/guard/carlos`, `test ! -e /var/lib/carlos-claims/authority/exec/census.json`, `test ! -e /opt/carlos/system/guard/moves`: all true.
+8. `flock -u 9`; `systemctl start carlos-system-update.path` → active.
+
+**Post-check:**
+- Edge MainPID 755488 (same), NRestarts 0, active.
+- Claimtrial via `--resolve …:18.200.150.210`: 200, `host=ip-172-31-19-180` (hits=934).
+- `status/boxes/leo-climbing.json`: the 22:41:13Z report (before) carried `activation_id`, `enrollment`, `floor_guard_ready: true`. The next report, 22:46:41Z, has none of `enrollment`, `floor_guard_ready`, `activation_id`, `floor_sha256`, `console_processes` (grep count 0).
+
+Rollback state: `/root/claim-undo-20261026/step2/` on leo holds `guard/`, `host-actor.json` and the three `90-host-floor.conf`.
+
+End: 2026-10-25T22:47Z. **Step 2: PASS.**