carlos / platform Public

docs: carlos move offline run on the CLI page, drafts pending (Task 8)

The offline-moves part of docs/site/cli.md documents run (example,
going back, flags, Ctrl-C, resuming, exit codes) and status's new
layout. Every new sentence is a pending row OR50 to OR66 in deck
strings-task8.json and the moves copy record. OR50 replaces MV-O32
("never acts on its own"), withdrawn with OR50's approval. OR66 is the
usage line with run, not applied: move.go keeps MV-O181 until approved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 810daf1dede9a234a93d6bfd975efdb5f00c89e3 parent 14a2f01
5 files changed, +227 −9
  • approved_moves_copy_test.go +5 −1
  • docs/drafts/offline-move-run/copy-review/strings-task8.json +138 −0
  • docs/site/cli.md +57 −3
  • docs/superpowers/plans/2026-10-06-moves-phase1-copy.md +23 −2
  • move_test.go +4 −3
diff --git a/approved_moves_copy_test.go b/approved_moves_copy_test.go
index 8b79669d9..6aa0c7c42 100644
--- a/approved_moves_copy_test.go
+++ b/approved_moves_copy_test.go
@@ -95,7 +95,7 @@ var movesCopyIDs = []string{
// The offline operator move (plans/2026-10-20-offline-operator-move.md).
"MV-O1", "MV-O2", "MV-O3", "MV-O4", "MV-O5", "MV-O6", "MV-O7", "MV-O8", "MV-O9", "MV-O10",
"MV-O20", "MV-O21", "MV-O22", "MV-O23", "MV-O24", "MV-O25", "MV-O26", "MV-O27", "MV-O28", "MV-O29", "MV-O30", "MV-O31",
- "MV-O32", "MV-O33",
+ "MV-O33", // MV-O32 withdrawn: OR50 replaces it (offline move run, Task 8)
"MV-O34", "MV-O35", "MV-O36", "MV-O37", "MV-O38", "MV-O39", "MV-O40", "MV-O41", "MV-O42", "MV-O43",
"MV-O50", "MV-O51", "MV-O52", "MV-O53", "MV-O54", "MV-O55", "MV-O57", "MV-O58", "MV-O59", "MV-O60", "MV-O61", "MV-O62", "MV-O63", "MV-O64", "MV-O65",
"MV-O66", "MV-O67", "MV-O68", "MV-O69", "MV-O70", "MV-O71", "MV-O72", "MV-O73", "MV-O74", "MV-O75", "MV-O76", "MV-O77", "MV-O78", "MV-O79", "MV-O80", "MV-O81",
@@ -123,6 +123,10 @@ var movesCopyIDs = []string{
// carlos move offline status's dashboard (the same plan, Task 6).
"OR30", "OR31", "OR32", "OR33", "OR34", "OR35", "OR36", "OR37", "OR38",
"OR41", "OR42", "OR43", "OR44",
+ // The CLI page and the usage line (the same plan, Task 8; deck
+ // strings-task8.json beside strings.json), pending.
+ "OR50", "OR51", "OR53", "OR54", "OR55", "OR56", "OR57", "OR58", "OR59",
+ "OR60", "OR61", "OR62", "OR63", "OR65", "OR66",
}
// copyRow is one row of the record. The File cell is the file the sentence is
diff --git a/docs/drafts/offline-move-run/copy-review/strings-task8.json b/docs/drafts/offline-move-run/copy-review/strings-task8.json
new file mode 100644
index 000000000..777b109a8
--- /dev/null
+++ b/docs/drafts/offline-move-run/copy-review/strings-task8.json
@@ -0,0 +1,138 @@
+[
+ {
+ "id": "OR50",
+ "section": "CLI page",
+ "label": "What carlos move offline is",
+ "text": "`carlos move offline` moves one instance with planned downtime. It is for operators and works with host claims and Phase 1 moves off. `run` carries a move through every step on its own. Each of the other verbs does one step and says which verb comes next.",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. First paragraph, above the block of commands. Replaces the approved MV-O32, which said the verbs “never act on their own”; that stopped being true with run. Approving OR50 withdraws MV-O32.",
+ "status": "pending"
+ },
+ {
+ "id": "OR51",
+ "section": "CLI page",
+ "label": "What run does",
+ "text": "`run` copies the instance’s data while it still serves, then takes it offline and runs `start`, `seal`, `flip` and `open` in turn. Once the instance answers in the new region, it runs `finish`. It prints one line per step with the time, and an indented line when the console starts waiting on a box:",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. After the block of commands and the approved MV-O33 (offline from start until open). Introduces the example below it.",
+ "status": "pending"
+ },
+ {
+ "id": "OR52",
+ "section": "CLI page",
+ "label": "run example",
+ "text": "$ carlos move offline run --host shop.example.com --to uk\n06:12:03Z stage sent, accepted\nMoving shop.example.com from Dublin (IE) to London (UK). Move mv_7kq2xw5rbt3yfn6hd4jm2pcsea.\n06:12:31Z stage 1204 of 1204 objects (48.2 of 48.2 MB)\n06:12:31Z stage sent, accepted\n06:12:38Z stage 1204 of 1204 objects (48.3 of 48.3 MB)\n06:12:38Z start sent, accepted. Offline from now.\n Waiting for box-1 in Dublin (IE) to confirm it has stopped shop.example.com. shop.example.com is offline.\n06:12:58Z seal sent, accepted\n06:13:40Z flip sent, accepted\n06:13:52Z open sent, accepted\n06:13:55Z check https://shop.example.com/ answered 200\n06:13:56Z finish sent, accepted\n06:14:31Z finish sent, accepted\nMoved. shop.example.com is served from London (UK). It was offline for 74 seconds.",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. A text fence under OR51. Every output line is already approved (M-C1 + OR10, OR11/OR12, OR15, OR16, OR18, MovedLine) or is the console’s own waiting sentence; what is new here is the example itself: the host, the times, two stage rounds, a 74-second window. Matches the order run really prints in (the move line comes after the first stage answers, and finish is sent twice: once to start finishing, once to end the move). Region labels as a current console sends them.",
+ "status": "pending"
+ },
+ {
+ "id": "OR53",
+ "section": "CLI page",
+ "label": "When run moves it back",
+ "text": "Before `open`, if a step fails or takes too long, `run` moves the instance back and exits 3. `--max-offline` sets how long the instance may stay offline before that happens (15 minutes by default). After `open`, `run` never moves it back. If the instance does not answer within 2 minutes of `open`, `run` stops with exit 4 and leaves `finish` to you.",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. After the example. The step budgets (stop 3 min, seal 10 min, landing 5 min, open check 2 min) are not named: they are drafts the dev rehearsal sets.",
+ "status": "pending"
+ },
+ {
+ "id": "OR54",
+ "section": "CLI page",
+ "label": "run's other flags",
+ "text": "`--no-finish` stops once the instance is served from the new region, so you can check it before `finish` cleans up the old one. `--probe-path` is the path `run` checks after `open` (`/` by default). `--log` also writes every line to a file.",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. Echoes the approved flag help OR04, OR06, OR07.",
+ "status": "pending"
+ },
+ {
+ "id": "OR55",
+ "section": "CLI page",
+ "label": "Ctrl-C",
+ "text": "The first Ctrl-C before `open` moves the instance back. A second one stops watching and leaves the move running. After `open`, Ctrl-C only stops watching.",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. Paul’s decision 3 (#1005). What the terminal says is OR28, OR29, OR40.",
+ "status": "pending"
+ },
+ {
+ "id": "OR56",
+ "section": "CLI page",
+ "label": "When run stops partway",
+ "text": "On Linux and macOS a dropped SSH connection does not stop `run`. If `run` stops for any other reason, the move waits where it is, even while the instance is offline. Run `status` first. Then use `run --resume <move-id>` to carry the move on from where it stands, or, before `open`, `abort` and then `finish` to move it back. Without `--resume`, `run` refuses a host that already has a move.",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. run ignores SIGHUP on unix only, hence “On Linux and macOS”. The refusal it names is OR27.",
+ "status": "pending"
+ },
+ {
+ "id": "OR57",
+ "section": "CLI page",
+ "label": "Exit codes, lead-in",
+ "text": "`run` ends with one of these exit codes:",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. Above a two-column table with the page’s existing header (exit code | meaning). OR58 to OR62 are its rows, in this order.",
+ "status": "pending"
+ },
+ {
+ "id": "OR58",
+ "section": "CLI page",
+ "label": "Exit 0",
+ "text": "the move finished, or is open with `--no-finish`",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. Exit table, row `0`.",
+ "status": "pending"
+ },
+ {
+ "id": "OR59",
+ "section": "CLI page",
+ "label": "Exit 3",
+ "text": "the instance was moved back",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. Exit table, row `3`.",
+ "status": "pending"
+ },
+ {
+ "id": "OR60",
+ "section": "CLI page",
+ "label": "Exit 4",
+ "text": "`run` stopped, and you decide what comes next",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. Exit table, row `4`. Its last lines say which command to run (OR24, OR25, OR27).",
+ "status": "pending"
+ },
+ {
+ "id": "OR61",
+ "section": "CLI page",
+ "label": "Exit 5",
+ "text": "the console refused the first stage, and nothing was written",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. Exit table, row `5`.",
+ "status": "pending"
+ },
+ {
+ "id": "OR62",
+ "section": "CLI page",
+ "label": "Exit 1",
+ "text": "the console could not be reached, or the `--log` file could not be written",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. Exit table, row `1`. Close to the carlos move table above it; run also exits 1 when it cannot open its --log file (OR45).",
+ "status": "pending"
+ },
+ {
+ "id": "OR63",
+ "section": "CLI page",
+ "label": "What status shows",
+ "text": "`status` leads with the state, then the move, how long the instance has been offline, how long it has been in this step, and the one command forward and the one back:",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. Introduces the status example. Follows the UX pass in docs/drafts/offline-move-run/README.md.",
+ "status": "pending"
+ },
+ {
+ "id": "OR64",
+ "section": "CLI page",
+ "label": "status example",
+ "text": "$ carlos move offline status --host shop.example.com\nReady to open\n move mv_7kq2xw5rbt3yfn6hd4jm2pcsea, Dublin (IE) to London (UK)\n offline 1 min 2 s, since 06:12:38Z\n this step 4 s\n forward carlos move offline open --host shop.example.com\n back carlos move offline abort --host shop.example.com",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. A text fence under OR63. The words are approved (OR35, OR41, OR42, OR43); new here is the example. A landed move: next is open, so there is no waiting row and no “, when ready”. Item and report lines follow in real output; OR65 says so rather than listing twenty items.",
+ "status": "pending"
+ },
+ {
+ "id": "OR65",
+ "section": "CLI page",
+ "label": "After the status block",
+ "text": "While the console waits on a box, a `waiting` row says what for, and the forward command ends with “when ready”. Under the block, `status` lists each item the move checks and each box’s report.",
+ "context": "docs/site/cli.md, under ### carlos move, the offline-moves part. After the status example.",
+ "status": "pending"
+ },
+ {
+ "id": "OR66",
+ "section": "Help",
+ "label": "Usage line for carlos move offline",
+ "text": "carlos move offline needs run, stage, start, seal, flip, open, finish, abort or status.",
+ "context": "move.go, moveOfflineUsage: said when carlos move offline gets no verb or one it does not have (exit 2). Replaces the approved MV-O181, which lacks run. run is first because it is the usual way. Not applied yet: the code keeps MV-O181 until this is approved.",
+ "status": "pending"
+ }
+]
diff --git a/docs/site/cli.md b/docs/site/cli.md
index 340896c38..52ad866ca 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -3451,9 +3451,13 @@ to confirm.
Operators who are members of the instance's account.
-`carlos move offline` moves one instance with planned downtime, one step at a time. It is for operators, works with host claims and Phase 1 moves off, and never acts on its own: each verb does one step and says which verb comes next.
+`carlos move offline` moves one instance with planned downtime. It is for operators and works with host claims and Phase 1 moves off. `run` carries a move through every step on its own. Each of the other verbs does one step and says which verb comes next.
```sh
+carlos move offline run --host <host> --to <region>
+carlos move offline run --host <host> --resume <move-id>
+carlos move offline status --host <host>
+
carlos move offline stage --host <host> --to <region>
carlos move offline start --host <host> --to <region>
carlos move offline seal --host <host>
@@ -3461,12 +3465,62 @@ carlos move offline flip --host <host>
carlos move offline open --host <host>
carlos move offline finish --host <host>
carlos move offline abort --host <host>
-carlos move offline status --host <host>
-carlos move offline run --host <host> --to <region>
```
The instance is offline from `start` until `open`. Until `open`, `abort` puts it back where it was with nothing lost. After `open`, moving it back is a new move.
+`run` copies the instance’s data while it still serves, then takes it offline and runs `start`, `seal`, `flip` and `open` in turn. Once the instance answers in the new region, it runs `finish`. It prints one line per step with the time, and an indented line when the console starts waiting on a box:
+
+```text
+$ carlos move offline run --host shop.example.com --to uk
+06:12:03Z stage sent, accepted
+Moving shop.example.com from Dublin (IE) to London (UK). Move mv_7kq2xw5rbt3yfn6hd4jm2pcsea.
+06:12:31Z stage 1204 of 1204 objects (48.2 of 48.2 MB)
+06:12:31Z stage sent, accepted
+06:12:38Z stage 1204 of 1204 objects (48.3 of 48.3 MB)
+06:12:38Z start sent, accepted. Offline from now.
+ Waiting for box-1 in Dublin (IE) to confirm it has stopped shop.example.com. shop.example.com is offline.
+06:12:58Z seal sent, accepted
+06:13:40Z flip sent, accepted
+06:13:52Z open sent, accepted
+06:13:55Z check https://shop.example.com/ answered 200
+06:13:56Z finish sent, accepted
+06:14:31Z finish sent, accepted
+Moved. shop.example.com is served from London (UK). It was offline for 74 seconds.
+```
+
+Before `open`, if a step fails or takes too long, `run` moves the instance back and exits 3. `--max-offline` sets how long the instance may stay offline before that happens (15 minutes by default). After `open`, `run` never moves it back. If the instance does not answer within 2 minutes of `open`, `run` stops with exit 4 and leaves `finish` to you.
+
+`--no-finish` stops once the instance is served from the new region, so you can check it before `finish` cleans up the old one. `--probe-path` is the path `run` checks after `open` (`/` by default). `--log` also writes every line to a file.
+
+The first Ctrl-C before `open` moves the instance back. A second one stops watching and leaves the move running. After `open`, Ctrl-C only stops watching.
+
+On Linux and macOS a dropped SSH connection does not stop `run`. If `run` stops for any other reason, the move waits where it is, even while the instance is offline. Run `status` first. Then use `run --resume <move-id>` to carry the move on from where it stands, or, before `open`, `abort` and then `finish` to move it back. Without `--resume`, `run` refuses a host that already has a move.
+
+`run` ends with one of these exit codes:
+
+| exit code | meaning |
+|---|---|
+| `0` | the move finished, or is open with `--no-finish` |
+| `3` | the instance was moved back |
+| `4` | `run` stopped, and you decide what comes next |
+| `5` | the console refused the first stage, and nothing was written |
+| `1` | the console could not be reached, or the `--log` file could not be written |
+
+`status` leads with the state, then the move, how long the instance has been offline, how long it has been in this step, and the one command forward and the one back:
+
+```text
+$ carlos move offline status --host shop.example.com
+Ready to open
+ move mv_7kq2xw5rbt3yfn6hd4jm2pcsea, Dublin (IE) to London (UK)
+ offline 1 min 2 s, since 06:12:38Z
+ this step 4 s
+ forward carlos move offline open --host shop.example.com
+ back carlos move offline abort --host shop.example.com
+```
+
+While the console waits on a box, a `waiting` row says what for, and the forward command ends with “when ready”. Under the block, `status` lists each item the move checks and each box’s report.
+
`stage` is optional and comes before `start`. It copies the instance's data to the region it moves to while the instance keeps serving, and each time it runs it copies only what is new. The more it has copied, the less is left to copy while the instance is offline. Until `start`, `abort` removes the staged copy and the instance is never offline.
`stage` and `start` refuse an offline move when a box in the target region still holds a live link for the instance from an earlier time it ran there, or has more live links than its report can carry. The refusal names the box and says what it found.
diff --git a/docs/superpowers/plans/2026-10-06-moves-phase1-copy.md b/docs/superpowers/plans/2026-10-06-moves-phase1-copy.md
index 38fb6a6a7..e2426f27e 100644
--- a/docs/superpowers/plans/2026-10-06-moves-phase1-copy.md
+++ b/docs/superpowers/plans/2026-10-06-moves-phase1-copy.md
@@ -514,11 +514,10 @@ Plan `docs/superpowers/plans/2026-10-20-offline-operator-move.md`. The rows take
| MV-O30 | internal/console/apiinstancemove_offline.go | <other> is moving offline. move one instance at a time | approved |
| MV-O31 | internal/console/apiinstancemove_offline.go | <box> still runs a process for <host>. wait for it to stop, then flip | approved |
-The docs page (`docs/site/cli.md`, under `### carlos move`) gets two paragraphs and one block of commands. The block is commands, not prose, and is not a row. The docsite gate reads it.
+The docs page (`docs/site/cli.md`, under `### carlos move`) gets two paragraphs and one block of commands. The block is commands, not prose, and is not a row. The docsite gate reads it. MV-O32, the first paragraph, was withdrawn when `run` came: OR50 replaces it (offline move run, Task 8).
| id | file | text | status |
|---|---|---|---|
-| MV-O32 | docs/site/cli.md | `carlos move offline` moves one instance with planned downtime, one step at a time. It is for operators, works with host claims and Phase 1 moves off, and never acts on its own: each verb does one step and says which verb comes next. | approved |
| MV-O33 | docs/site/cli.md | The instance is offline from `start` until `open`. Until `open`, `abort` puts it back where it was with nothing lost. After `open`, moving it back is a new move. | approved |
The offline transitions' refusals (fix round 1, review M4). A refusal that names no value is a whole sentence; the ones that name a value are one format. The no-move, same-region, malformed-start, replica and in-flight refusals reuse the existing rows (MV-N45, MV-N16, MV-N14, MV-N44, MV-N43).
@@ -791,3 +790,25 @@ Approved by Luna on 2026-11-15 under Paul's 2026-10-25 delegation (deck `docs/dr
| OR42 | move.go | <id>, <from> to <to> | approved |
| OR43 | move.go | <duration>, since <time> | approved |
| OR44 | move.go | , when ready | approved |
+
+## Offline move run: the CLI page and the usage line (Task 8)
+
+Drafted for Task 8 of the offline move run plan (deck `docs/drafts/offline-move-run/copy-review/strings-task8.json`), pending approval. OR50 replaces MV-O32, whose “never acts on its own” stopped being true with `run`; MV-O32 is withdrawn with OR50's approval. The page's two examples are deck rows OR52 (`run`) and OR64 (`status`) and have no rows here: they are fenced output whose lines are approved rows already (M-C1, OR10 to OR18, OR35, OR41 to OR43, MovedLine) and the console's own waiting sentence. OR58 to OR62 are the meaning cells of `run`'s exit-code table, for `0`, `3`, `4`, `5` and `1`. OR66 is `moveOfflineUsage` with `run` added. It replaces MV-O181 once approved; until then `move.go` keeps MV-O181, so OR66 is not applied.
+
+| id | file | text | status |
+|---|---|---|---|
+| OR50 | docs/site/cli.md | `carlos move offline` moves one instance with planned downtime. It is for operators and works with host claims and Phase 1 moves off. `run` carries a move through every step on its own. Each of the other verbs does one step and says which verb comes next. | pending |
+| OR51 | docs/site/cli.md | `run` copies the instance’s data while it still serves, then takes it offline and runs `start`, `seal`, `flip` and `open` in turn. Once the instance answers in the new region, it runs `finish`. It prints one line per step with the time, and an indented line when the console starts waiting on a box: | pending |
+| OR53 | docs/site/cli.md | Before `open`, if a step fails or takes too long, `run` moves the instance back and exits 3. `--max-offline` sets how long the instance may stay offline before that happens (15 minutes by default). After `open`, `run` never moves it back. If the instance does not answer within 2 minutes of `open`, `run` stops with exit 4 and leaves `finish` to you. | pending |
+| OR54 | docs/site/cli.md | `--no-finish` stops once the instance is served from the new region, so you can check it before `finish` cleans up the old one. `--probe-path` is the path `run` checks after `open` (`/` by default). `--log` also writes every line to a file. | pending |
+| OR55 | docs/site/cli.md | The first Ctrl-C before `open` moves the instance back. A second one stops watching and leaves the move running. After `open`, Ctrl-C only stops watching. | pending |
+| OR56 | docs/site/cli.md | On Linux and macOS a dropped SSH connection does not stop `run`. If `run` stops for any other reason, the move waits where it is, even while the instance is offline. Run `status` first. Then use `run --resume <move-id>` to carry the move on from where it stands, or, before `open`, `abort` and then `finish` to move it back. Without `--resume`, `run` refuses a host that already has a move. | pending |
+| OR57 | docs/site/cli.md | `run` ends with one of these exit codes: | pending |
+| OR58 | docs/site/cli.md | the move finished, or is open with `--no-finish` | pending |
+| OR59 | docs/site/cli.md | the instance was moved back | pending |
+| OR60 | docs/site/cli.md | `run` stopped, and you decide what comes next | pending |
+| OR61 | docs/site/cli.md | the console refused the first stage, and nothing was written | pending |
+| OR62 | docs/site/cli.md | the console could not be reached, or the `--log` file could not be written | pending |
+| OR63 | docs/site/cli.md | `status` leads with the state, then the move, how long the instance has been offline, how long it has been in this step, and the one command forward and the one back: | pending |
+| OR65 | docs/site/cli.md | While the console waits on a box, a `waiting` row says what for, and the forward command ends with “when ready”. Under the block, `status` lists each item the move checks and each box’s report. | pending |
+| OR66 | move.go | carlos move offline needs run, stage, start, seal, flip, open, finish, abort or status. | pending |
diff --git a/move_test.go b/move_test.go
index 2978bb671..d5d1c453e 100644
--- a/move_test.go
+++ b/move_test.go
@@ -1715,8 +1715,9 @@ func TestMoveOfflineRidesOutARateLimit(t *testing.T) {
}
}
-// The page's paragraph is the copy record's rows MV-O32 and MV-O33, word for
-// word, and its examples parse as the seven offline verbs.
+// The page's paragraphs are the copy record's rows OR50 (which replaced
+// MV-O32 when run came) and MV-O33, word for word, and its examples parse
+// as the offline verbs.
func TestMoveDocsOfflineParagraph(t *testing.T) {
raw, err := os.ReadFile("docs/site/cli.md")
if err != nil {
@@ -1727,7 +1728,7 @@ func TestMoveDocsOfflineParagraph(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- for _, id := range []string{"MV-O32", "MV-O33"} {
+ for _, id := range []string{"OR50", "MV-O33"} {
text := ""
for _, line := range strings.Split(string(rec), "\n") {
if cells := strings.Split(line, "|"); len(cells) >= 5 && strings.TrimSpace(cells[1]) == id {