carlos / platform Public

docs: partial deploys, restart --host, v0.34.x retry note (#511)

The stateless replicas page now says that a deploy can stop partway
(a switch not confirmed, or workers or web failing after a switch),
leaving copies on different builds until a retry, a fixed build or a
rollback; that carlos restart --host refuses an instance with copies;
and, as a release note, that a v0.34.x box cannot retry the same
failed stateless build once its console is v0.35.0 (Fable minors).

New deck rows SR-4-C79 (the console's failed-switch status) to C82,
approved (controller, final wave; Luna-style house rules).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev f7970189316ba06cfec7b7c30a55731efd5b8a06 parent 8e44671
2 files changed, +10 −0
  • docs/site/stateless-replicas.md +6 −0
  • docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md +4 −0
diff --git a/docs/site/stateless-replicas.md b/docs/site/stateless-replicas.md
index 365a3d27d..9df1f8ccc 100644
--- a/docs/site/stateless-replicas.md
+++ b/docs/site/stateless-replicas.md
@@ -26,10 +26,14 @@ A deploy runs the release command once per instance, then switches its copies on
If the box running the release command disappears, its result may be unknown. The deploy stops and the previous build keeps serving. Deploying again runs the command again, so release commands must be safe to repeat. Rails migrations record completed migrations in schema_migrations.
+A deploy can stop partway. If a copy's switch is not confirmed, or the new build's workers or web process fail on a box after it switched, the deploy stops there. Copies that switched run the new build and the others keep the old one, and the instance's deploy status says where it stopped. Copies stay on different builds until you retry the deploy, deploy a fixed build or roll back.
+
Deploy your apps one at a time. While a copy switches, its box runs the old and the new build side by side, and the platform does not yet check that a box has room for several apps switching at once.
An app that runs more than one copy of an instance refuses `carlos restart --app` and `--environment`, because every copy would restart at the same time. Deploy a new build instead: its copies switch one box at a time.
+`carlos restart --host` restarts a route on the console's own box. Copies never run there, so it refuses an instance with more than one copy. Deploy a new build instead.
+
## When a box stops
Copies survive the loss of a fleet box. Traffic still enters through one hub, so this version does not survive losing that hub.
@@ -45,3 +49,5 @@ An instance with more than one copy keeps a separate page cache on each copy's b
## What the platform does not prevent
The console will not move the platform below v0.35.0 while any app has more than one copy. It cannot stop an operator from putting an older platform build on a box by hand. It also cannot stop a rollback to the previous build after an update finishes. A downgraded box keeps serving, but its copies may switch builds out of order or start again on an older build until the box is updated.
+
+Release note for v0.35.0: once the console is on v0.35.0, a box still on v0.34.x cannot retry a stateless release whose release command failed or whose result is unknown, even with one copy. Ship a new build, or retry after the box is on v0.35.0.
diff --git a/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md b/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
index 2206b2256..9eaa62200 100644
--- a/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
+++ b/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
@@ -150,3 +150,7 @@ copy too. Internal wire enums are not an excuse to expose unreviewed text.
| SR-4-C76 | docs/site/stateless-replicas.md | What the platform does not prevent | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
| SR-4-C77 | internal/console/replicafloor.go | this app has no instances yet. create one and deploy it once, then set copies | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
| SR-4-C78 | internal/console/replicafloor.go | this app runs more than one copy of each instance, so a new instance cannot be added now. set copies to 1, create the instance and deploy it once, then raise copies again | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C79 | internal/console/replicadeploy.go | the new build stopped working on <box> after its switch, so the deploy stopped. other copies keep serving | approved (controller, final wave; Luna-style house rules) |
+| SR-4-C80 | docs/site/stateless-replicas.md | A deploy can stop partway. If a copy's switch is not confirmed, or the new build's workers or web process fail on a box after it switched, the deploy stops there. Copies that switched run the new build and the others keep the old one, and the instance's deploy status says where it stopped. Copies stay on different builds until you retry the deploy, deploy a fixed build or roll back. | approved (controller, final wave; Luna-style house rules) |
+| SR-4-C81 | docs/site/stateless-replicas.md | `carlos restart --host` restarts a route on the console's own box. Copies never run there, so it refuses an instance with more than one copy. Deploy a new build instead. | approved (controller, final wave; Luna-style house rules) |
+| SR-4-C82 | docs/site/stateless-replicas.md | Release note for v0.35.0: once the console is on v0.35.0, a box still on v0.34.x cannot retry a stateless release whose release command failed or whose result is unknown, even with one copy. Ship a new build, or retry after the box is on v0.35.0. | approved (controller, final wave; Luna-style house rules) |