carlos / platform Public

copy: drill 1 round 1 rows and docs (#511)

SR-4-C84 (a launch waits too), SR-4-C86 (reworded), SR-4-C87 (the
serving box), SR-4-C88 (additions after a finished deploy start without
waiting for each other), SR-4-C89 (three minutes), new SR-4-C91 (the
serving box refusal). All approved (controller; Luna house rules); no
em dashes, no box command in user text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 256754f9c25c1229f00b279d8062782c7234e606 parent 9458535
2 files changed, +9 −8
  • docs/site/stateless-replicas.md +3 −3
  • docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md +6 −5
diff --git a/docs/site/stateless-replicas.md b/docs/site/stateless-replicas.md
index 7a00d26bf..a606712bc 100644
--- a/docs/site/stateless-replicas.md
+++ b/docs/site/stateless-replicas.md
@@ -18,9 +18,9 @@ carlos apps set shop --copies 2
Each instance of shop gets two copies on different eligible fleet boxes. The command refuses a count larger than the eligible fleet.
-A box is eligible only if it has room for the instance's size: a size may use at most a quarter of a box's memory, and an app with no size set uses standard. If too few boxes have room, the command says so and changes nothing.
+A box is eligible only if it has room for the instance's size: a size may use at most a quarter of a box's memory, and an app with no size set uses standard. If too few boxes have room, or the box already serving an instance has none, the command says so and changes nothing.
-Raising the count adds the new copies one box at a time, on the build the instance already runs. The copy that is already running keeps serving, and the release command does not run again.
+Raising the count adds the new copies one box at a time, on the build the instance already runs. The copy that is already running keeps serving, and the release command does not run again. Once a deploy has finished on all of an instance's copies, copies added later start on that build straight away, without waiting for each other.
More than one copy needs an always-on release. Set --copies 1 and wait for removed copies to stop before selecting a hibernating release or one with a local database. Switching to stateless leaves the old database and replica untouched.
@@ -28,7 +28,7 @@ More than one copy needs an always-on release. Set --copies 1 and wait for remov
A deploy runs the release command once per instance, then switches its copies one box at a time. Your migrations must allow old and new code to serve together. Each copy runs every declared worker.
-The release command runs only once the instance's configuration is on its box. If you set env or secrets before the instance existed, its first release waits a few seconds for them rather than running without them. If they have not arrived after about half a minute, the release is held as failed without running, and a retry runs it.
+The release command runs only once the instance's configuration is on its box. If you set env or secrets before the instance existed, its first release waits a few seconds for them rather than running without them. If they have not arrived after about three minutes, the release is held as failed without running, and a retry runs it.
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.
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 2f7a4b382..5d5911c61 100644
--- a/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
+++ b/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
@@ -155,10 +155,11 @@ copy too. Internal wire enums are not an excuse to expose unreviewed text.
| 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) |
| SR-4-C83 | internal/activator/replicadeploy.go | the new copy could not get the instance's shared secrets, so it did not start. existing copies keep serving | approved (controller; Luna house rules) (drill 1, R21; R21b: also a wake's refusal past its bound) |
-| SR-4-C84 | internal/activator/backend_rootfs.go | the release waits until this instance's configuration is written on this box. nothing ran yet | approved (controller; Luna house rules) (drill 1, R20) |
+| SR-4-C84 | internal/activator/backend_rootfs.go | this copy waits until the instance's configuration is written on this box. nothing ran yet | approved (controller; Luna house rules) (drill 1, R20; round 1: a launch waits too) |
| SR-4-C85 | internal/console/appcopies.go | <n> copies need <n> boxes with room for size <size>. this fleet has <fit>. choose a smaller size | approved (controller; Luna house rules) (drill 1, R19) |
-| SR-4-C86 | internal/console/replicaplacement.go | placement blocked: fewer boxes can hold this instance's copies than the <n> it asks for, so its copy on <box> keeps running where it is | approved (controller; Luna house rules) (drill 1, R19) |
-| SR-4-C87 | docs/site/stateless-replicas.md | A box is eligible only if it has room for the instance's size: a size may use at most a quarter of a box's memory, and an app with no size set uses standard. If too few boxes have room, the command says so and changes nothing. | approved (controller; Luna house rules) (drill 1, R19) |
-| SR-4-C88 | docs/site/stateless-replicas.md | Raising the count adds the new copies one box at a time, on the build the instance already runs. The copy that is already running keeps serving, and the release command does not run again. | approved (controller; Luna house rules) (drill 1, R18) |
-| SR-4-C89 | docs/site/stateless-replicas.md | The release command runs only once the instance's configuration is on its box. If you set env or secrets before the instance existed, its first release waits a few seconds for them rather than running without them. If they have not arrived after about half a minute, the release is held as failed without running, and a retry runs it. | approved (controller; Luna house rules) (drill 1, R20; bound added) |
+| SR-4-C86 | internal/console/replicaplacement.go | placement blocked: <box> has no room left for this instance's copies (<n> asked), so its copy there keeps running where it is | approved (controller; Luna house rules) (drill 1, R19; round 1 reworded) |
+| SR-4-C87 | docs/site/stateless-replicas.md | A box is eligible only if it has room for the instance's size: a size may use at most a quarter of a box's memory, and an app with no size set uses standard. If too few boxes have room, or the box already serving an instance has none, the command says so and changes nothing. | approved (controller; Luna house rules) (drill 1, R19; round 1: the serving box) |
+| SR-4-C88 | docs/site/stateless-replicas.md | Raising the count adds the new copies one box at a time, on the build the instance already runs. The copy that is already running keeps serving, and the release command does not run again. Once a deploy has finished on all of an instance's copies, copies added later start on that build straight away, without waiting for each other. | approved (controller; Luna house rules) (drill 1, R18; round 1: additions after a finished deploy) |
+| SR-4-C89 | docs/site/stateless-replicas.md | The release command runs only once the instance's configuration is on its box. If you set env or secrets before the instance existed, its first release waits a few seconds for them rather than running without them. If they have not arrived after about three minutes, the release is held as failed without running, and a retry runs it. | approved (controller; Luna house rules) (drill 1, R20; bound added) |
| SR-4-C90 | internal/activator/statelessrelease.go | the release did not run: this instance's configuration was not written on this box in time, so the release is held as failed. retry it once the configuration is there | approved (controller; Luna house rules) (drill 1, R20 bound) |
+| SR-4-C91 | internal/console/appcopies.go | <box> serves a copy of <host> and has no room for size <size>. choose a smaller size or move the instance first | approved (controller; Luna house rules) (drill 1 round 1, Astra A2) |