carlos / platform Public

moves: offline status says Ready to open only when open is next

Astra branch review round 1, finding 8 (P2). A landed move's first line
is OR35 ("Ready to open") only when the console names open as next. A
landing a box failed now leads with "Copy failed" (new OR75), and one
the console is still checking with "Checking the copy" (new OR74), both
pending in strings-fix.json. TestMoveOfflineStatusFailed expects the
new headline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 9ed898ad0e02a1b7b582b6f7d53872ea337529a6 parent 34a15d4
6 files changed, +50 −6
  • approved_moves_copy_test.go +1 −1
  • docs/drafts/offline-move-run/copy-review/strings-fix.json +16 −0
  • docs/superpowers/plans/2026-10-06-moves-phase1-copy.md +2 −0
  • move.go +14 −3
  • move_offline_run_test.go +16 −1
  • move_test.go +1 −1
diff --git a/approved_moves_copy_test.go b/approved_moves_copy_test.go
index 98a4efc86..3ea293157 100644
--- a/approved_moves_copy_test.go
+++ b/approved_moves_copy_test.go
@@ -129,7 +129,7 @@ var movesCopyIDs = []string{
"OR60", "OR61", "OR62", "OR63", "OR65", "OR66",
// The fixes for Astra's branch review, round 1 (deck
// strings-fix.json beside strings.json; pending).
- "OR70", "OR71", "OR72", "OR73",
+ "OR70", "OR71", "OR72", "OR73", "OR74", "OR75",
}
// 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-fix.json b/docs/drafts/offline-move-run/copy-review/strings-fix.json
index e9f27bad3..4539673df 100644
--- a/docs/drafts/offline-move-run/copy-review/strings-fix.json
+++ b/docs/drafts/offline-move-run/copy-review/strings-fix.json
@@ -30,5 +30,21 @@
"text": "The last staging round failed: %s. %s keeps serving and nothing went offline.",
"context": "carlos move offline run, on the 'abort' step line, when a staging round reports a failure: run abandons the stage by itself (abort, then finish; exit 3). %s the stager box's own reason, %s the host. MV-O185's opening words without its advice to stage again, with OR23's ending. Replaces OR22 here: the instance never left, so nothing moves back. Astra branch review round 1, finding 7.",
"status": "pending"
+ },
+ {
+ "id": "OR74",
+ "section": "status",
+ "label": "State: landed, still being checked",
+ "text": "Checking the copy",
+ "context": "First line of carlos move offline status for a landed move whose open the console has not cleared yet (no 'next', nothing failed): the target is still reporting, or a check is stale. OR35 ('Ready to open') is now only for a landed move whose next step is open. Astra branch review round 1, finding 8.",
+ "status": "pending"
+ },
+ {
+ "id": "OR75",
+ "section": "status",
+ "label": "State: landed, a box failed",
+ "text": "Copy failed",
+ "context": "First line of carlos move offline status for a landed move a box reports failed (the landing's checks did not pass). The failure sentence and the abort command follow under the block. Astra branch review round 1, finding 8.",
+ "status": "pending"
}
]
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 b418e5d97..7e677cdae 100644
--- a/docs/superpowers/plans/2026-10-06-moves-phase1-copy.md
+++ b/docs/superpowers/plans/2026-10-06-moves-phase1-copy.md
@@ -822,3 +822,5 @@ Sentences the fixes for Astra's whole-branch review of `offline-move-run` (round
| OR71 | move_offline_run.go | No status from the console for <duration>. run keeps asking. To see where the move is, run: | pending |
| OR72 | move_offline_run.go | The move could not finish a step: <reason>. | pending |
| OR73 | move_offline_run.go | The last staging round failed: <reason>. <host> keeps serving and nothing went offline. | pending |
+| OR74 | move.go | Checking the copy | pending |
+| OR75 | move.go | Copy failed | pending |
diff --git a/move.go b/move.go
index 3fd001708..7e373f53c 100644
--- a/move.go
+++ b/move.go
@@ -1698,8 +1698,8 @@ func (w *offlineRun) runStatus(ctx context.Context) int {
}
// sayStateName is status's first line: the state, in a word or two
-// (OR30 to OR38). A state this CLI does not know is shown as the console
-// named it.
+// (OR30 to OR38; landed is OR35, OR74 or OR75 by what it is ready for). A
+// state this CLI does not know is shown as the console named it.
func (w *offlineRun) sayStateName(v offlineView) {
switch v.State {
case provision.OfflineStaging:
@@ -1713,7 +1713,18 @@ func (w *offlineRun) sayStateName(v offlineView) {
case provision.OfflineLanding:
moveSay(w.m.out, fmt.Sprintf("Starting in %s", v.toPlace()))
case provision.OfflineLanded:
- moveSay(w.m.out, "Ready to open")
+ // Ready only when the console says open is next (finding 8 of
+ // the branch review): a landing a box failed, or one the console
+ // is still checking, is not.
+ _, _, failed := v.failure()
+ switch {
+ case v.Next == "open":
+ moveSay(w.m.out, "Ready to open")
+ case failed:
+ moveSay(w.m.out, "Copy failed")
+ default:
+ moveSay(w.m.out, "Checking the copy")
+ }
case provision.OfflineOpen:
moveSay(w.m.out, "Open")
case provision.OfflineFinishing:
diff --git a/move_offline_run_test.go b/move_offline_run_test.go
index 24daa8b7c..45bab9389 100644
--- a/move_offline_run_test.go
+++ b/move_offline_run_test.go
@@ -766,7 +766,7 @@ func TestMoveOfflineStatusLeadsWithTheState(t *testing.T) {
// Each state's first line (OR30 to OR38).
for state, name := range map[string]string{
"offline-staging": "Staging", "offline-stopping": "Stopping", "offline-sealing": "Copying", "offline-sealed": "Copied",
- "offline-landing": "Starting in uk", "offline-landed": "Ready to open", "offline-open": "Open",
+ "offline-landing": "Starting in uk", "offline-open": "Open",
"offline-finishing": "Finishing", "offline-reverting": "Moving back",
} {
c = &fakeOfflineConsole{gets: []frame{offView(state, nil)}}
@@ -774,6 +774,21 @@ func TestMoveOfflineStatusLeadsWithTheState(t *testing.T) {
t.Errorf("%s: first line of:\n%s", state, out)
}
}
+ // Landed leads with what it is ready for (finding 8 of the branch
+ // review): "Ready to open" only when next is open; while the console
+ // still checks the landing, "Checking the copy" (OR74); a landing a
+ // box failed, "Copy failed" (OR75).
+ for name, extra := range map[string]frame{
+ "Ready to open": {"next": "open", "can_abort": true},
+ "Checking the copy": {"waiting": "the target has not reported the landing yet", "can_abort": true},
+ "Copy failed": {"failed": true, "can_abort": true, "reports": []frame{{"box": "uk-box", "role": "target", "phase": "failed", "fresh": true,
+ "items": frame{"db": frame{"ok": false, "reason": "the database does not match the seal"}}}}},
+ } {
+ c = &fakeOfflineConsole{gets: []frame{offView("offline-landed", extra)}}
+ if _, out := runOfflineStatusAt(t, c, now); !strings.HasPrefix(out, name+"\n") {
+ t.Errorf("landed, %s: first line of:\n%s", name, out)
+ }
+ }
}
// TestMoveOfflineRunBindsTheMoveItsStageMade: the run is bound to the move
diff --git a/move_test.go b/move_test.go
index 0f3394026..29a8f96f0 100644
--- a/move_test.go
+++ b/move_test.go
@@ -1823,7 +1823,7 @@ func TestMoveOfflineStatusFailed(t *testing.T) {
{"failed seal, sealer report", "offline-sealing", frame{"failed": true, "reports": []frame{sealerFailed}},
"The move could not finish a step: special file in the archive. Run carlos move offline status --host acme.shop.example.com for each item.", "Copying"},
{"failed landing, target report", "offline-landed", frame{"failed": true, "reports": []frame{targetFailed}},
- "uk could not take acme.shop.example.com: failed. Run carlos move offline abort --host acme.shop.example.com to move it back.", "Ready to open"},
+ "uk could not take acme.shop.example.com: failed. Run carlos move offline abort --host acme.shop.example.com to move it back.", "Copy failed"},
{"failed target before the flip", "offline-stopping", frame{"failed": true, "reports": []frame{targetFailed}},
"uk could not take acme.shop.example.com: failed. Run carlos move offline abort --host acme.shop.example.com to move it back.", "Stopping"},
} {