agents: window plan, Jason runs the PM-idle check, no --checkout flag

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 20:46:46 -05:00
co-authored by Claude Opus 5.5
parent 0c56cc2d49
commit c0c1e8646e
@@ -27,15 +27,15 @@ Two rules hold for the whole window (Filbert, row 122 round 2, comment 28542):
| # | Who | Step |
|---|-----|------|
| 0 | Mos | Before the window: `scripts/stack-copy.sh copy NEW` from the canonical checkout and note the full id. Save the current bus and Console unit files and `status` output, as TOOLS.md step 1 says. |
| 1 | Mos | PM-idle check. `mosaic agents --business mosaic-stack` must show the pm with state `idle`, nothing `working` or `waiting`. If not idle, wait or reschedule. Nobody talks to the PM until step 9 passes. |
| 1 | Jason, then Mos | PM-idle check. Jason, in his own shell (the human guard refuses it from an agent run): `mosaic agents --business mosaic-stack`. The pm must not be `working`. `waiting` is acceptable, because open decisions are stored and survive the restart: Jason notes their ids here for step 9. If the pm is `working`, wait or reschedule. Mos: `mosaic launches list` shows the pm run still running. Nobody talks to the PM until step 9 passes. |
| 2 | Mos | Stop the Console, then the bus: `systemctl --user stop mosaic-webui.service` then `systemctl --user stop [email protected]`. |
| 3 | Jason | Backup: `cp -p ~/.config/mosaic-dev/businesses/mosaic-stack.json ~/.config/mosaic-dev/businesses/mosaic-stack.json.pre-119-122`. `-p` keeps mode 600. |
| 4 | Jason | Apply the row 119 entry by hand, per agents/rocko/work/queue-122/r2/MIGRATION.md step 1: instances `chief` (chief-of-staff) and `assistant` (holder mos), and `launch.by` `"chief"`. Keep the old launch.max until step 5. Names are Jason's call. |
| 5 | Jason | Run the print-only conversion from the NEW copy, per MIGRATION.md step 2: `cd ~/.local/share/mosaic-stack/copies/NEW`, then the `scripts/mosaic limits migrate --file ... --models /mnt/storage/src/mosaic-stack/agents/rocko/work/queue-122/r2/migration-map.json --roles-dir roles > CONVERTED` command there, with CONVERTED a new path. Review it and install it by hand (MIGRATION.md step 3). A refusal leaves both inputs unchanged: stop and go to rollback. |
| 6 | Mos | Install the bus unit on NEW: `scripts/bus-service.sh install --copy NEW --pm --claude /home/jwoltje/.local/bin/claude`. |
| 7 | Mos | Install the Console on NEW with its current flags: `scripts/webui-service.sh install --copy NEW --checkout /mnt/storage/src/mosaic-stack --port 7332 --public-host mosaic.woltje.com --auth-header X-authentik-username --allow-user jason.woltje --send`. Then `scripts/stack-copy.sh wrapper NEW`. |
| 6 | Mos | Install the bus unit on NEW: `/mnt/storage/src/mosaic-stack/scripts/bus-service.sh install --copy NEW --pm --claude /home/jwoltje/.local/bin/claude`. |
| 7 | Mos | Install the Console on NEW with its current flags, run from the canonical checkout: `/mnt/storage/src/mosaic-stack/scripts/webui-service.sh install --copy NEW --port 7332 --public-host mosaic.woltje.com --auth-header X-authentik-username --allow-user jason.woltje --send`. There is no `--checkout` flag; with --copy the script adds `--checkout` for the checkout it runs from. Then `/mnt/storage/src/mosaic-stack/scripts/stack-copy.sh wrapper NEW`. |
| 8 | Mos | Start the bus: `systemctl --user start [email protected]`. This is the first chief session, see below. Start the Console only after step 9 passes. |
| 9 | Mos | Checks 1 to 3 below. Pass: start the Console, read `stack-copy.sh check`, both status commands and `/healthz`. Fail: rollback. |
| 9 | Mos, Jason | Mos runs checks 1 to 3 below. Jason confirms with `mosaic agents --business mosaic-stack` that any decision ids noted at step 1 are still open. Pass: start the Console, read `stack-copy.sh check`, both status commands and `/healthz`. Fail: rollback. |
## The first chief session