carlos / platform Public

copy: apply the Luna review of stateless replicas strings (#511)

Apply the approved wording from the Luna pass to the copy deck, Go
strings, the overview template and the docs page. The copies table
prints sentence-case labels while the wire states stay lower case. The
channel floor refusal now takes the release before the channel.
SR-2-C16 and SR-4-C44 drop the overlap jargon. SR-4-C19, C20 and C29 are
marked deferred; SR-3-C06 stays as a diagnostic.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 484d4fe2867d9802b2fb07a3059a36f4a81ea677 parent d848a60
18 files changed, +153 −127
  • approved_stateless_replicas_copy_test.go +2 −1
  • docs/site/nav.json +1 −1
  • docs/site/stateless-replicas.md +4 −4
  • docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md +89 −89
  • instances_copies.go +30 −5
  • instances_copies_test.go +7 −7
  • internal/activator/replicadeploy.go +1 −1
  • internal/activator/stateless.go +1 −1
  • internal/activator/statelessrelease.go +2 −2
  • internal/console/appcopies.go +1 −1
  • internal/console/replicadeploy.go +2 −2
  • internal/console/replicafloor.go +4 −4
  • internal/console/replicafloor_test.go +2 −2
  • internal/console/replicaview.go +2 −2
  • internal/console/replicaview_test.go +2 −2
  • internal/console/templates/app_overview.html +1 −1
  • internal/replicas/types.go +1 −1
  • scripts/stateless-replicas-drill/main.go +1 −1

Intent

Human

<task-notification> <task-id>bihn27pi5</task-id> <tool-use-id>toolu_01EaPiJhuGWRSwUMtkxPQSBn</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/72128d15-58b8-452f-9f7e-8e864e8854d2/tasks/bihn27pi5.output</output-file> <status>completed</status> <summary>Background command "Run Luna copy pass" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>a1759874a712527fe</task-id> <tool-use-id>toolu_015rWoJ4jGcvMiNc3Z5FMabM</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/72128d15-58b8-452f-9f7e-8e864e8854d2/tasks/a1759874a712527fe.output</output-file> <status>completed</status> <summary>Agent "Implement Plan 4 Task 5 (trimmed)" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>- **Status:** DONE_WITH_CONCERNS - **Commit:** `d848a609 fix: drill counts stop drops from the prompt, reads last fleet table`, local, not pushed. Only the drill script changed. - **Tests:** drill tests, the census test and the three cross-compiles pass; the census is clean, vet and gofmt are clean. Both deliberate code breaks (one per item) were caught. I did not rerun the console, grouproll or region HA suites, since this round touches nothing they build; they were green at 61eadf4f. - **W1:** a websocket drop on the stopped box now counts from the moment the operator is prompted to stop it, not from their confirmation. Survivor reads, heartbeats and the observation window still measure from the confirmation. The reviewer's sequence (prompt T5, drop T10, reconnect T12, Enter T15) passes; a drop before the prompt fails. - **W2:** `carlos fleets show` has no JSON flag, so the build check reads the last complete BOX STATE VERSION table. Tested with two snapshots that disagree: the second decides. A trailing header with no rows does not replace the last table. - **Concerns:** - A drop between the prompt and the actual stop that has another cause would now count as the stop's disruption; this follows the ruling. - The live drill and its fixture have still never run. - **Report:** /home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-replicas-4/.superpowers/sdd/2026-11-01-stateless-replicas-4-deploy-and-drill/task-5-report.md (fix round 3 section at the end).</result> <usage><subagent_tokens>605050</subagent_tokens><tool_uses>7</tool_uses><duration_ms>135796</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>b0w0o8ncl</task-id> <tool-use-id>toolu_015zeZciPFZZTxLGFfeuTJp4</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/72128d15-58b8-452f-9f7e-8e864e8854d2/tasks/b0w0o8ncl.output</output-file> <status>completed</status> <summary>Background command "Astra final re-review of T5" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 23.0 g CO₂e (2,913,331 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-4, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/approved_stateless_replicas_copy_test.go b/approved_stateless_replicas_copy_test.go
index a07285607..37ba671cd 100644
--- a/approved_stateless_replicas_copy_test.go
+++ b/approved_stateless_replicas_copy_test.go
@@ -25,7 +25,8 @@ func statelessReplicaCopyRows(t *testing.T) []copyRow {
status := strings.TrimSpace(cells[len(cells)-2])
if strings.HasPrefix(status, "approved") {
cells[len(cells)-2] = " approved "
- } else if strings.HasPrefix(status, "pending (") {
+ } else if strings.HasPrefix(status, "pending (") || strings.HasPrefix(status, "deferred (") || strings.HasPrefix(status, "diagnostic, not user copy") {
+ // Deferred and diagnostic rows are not built here.
cells[len(cells)-2] = " pending "
}
lines[i] = strings.Join(cells, "|")
diff --git a/docs/site/nav.json b/docs/site/nav.json
index c1d33967e..ef4c9eea3 100644
--- a/docs/site/nav.json
+++ b/docs/site/nav.json
@@ -26,7 +26,7 @@
{
"slug": "stateless-replicas",
"label": "Stateless replicas",
- "blurb": "Run more than one copy of each instance across your fleet, and what happens when a box stops."
+ "blurb": "Run more than one copy of each instance across your fleet. Learn what happens when a box stops."
},
{
"slug": "pdfs",
diff --git a/docs/site/stateless-replicas.md b/docs/site/stateless-replicas.md
index 57e26bc01..365a3d27d 100644
--- a/docs/site/stateless-replicas.md
+++ b/docs/site/stateless-replicas.md
@@ -1,6 +1,6 @@
# Stateless replicas
-A stateless app can run more than one copy of each instance, each on a different box of your fleet. If one box stops, the other copies keep serving.
+A stateless app can run more than one copy of each instance on different boxes in your fleet. If one box stops, the other copies keep serving.
## Before you set copies
@@ -8,7 +8,7 @@ Ship with --stateless when your app keeps its data outside its box. The release
More than one copy needs every box of the fleet and the console on platform v0.35.0 or later. While a box's platform update is still finishing, its previous platform build must be v0.35.0 or later too, because a failed update puts that build back. Every platform release channel must also be on v0.35.0 or later.
-An app needs at least one instance, and each instance needs one successful deploy of its stateless release, before the app can have more than one copy. Deploy once, then set copies. An app with more than one copy takes no new instances: set copies to 1, create the instance and deploy it once, then raise copies again.
+An app needs at least one instance. Each instance needs one successful deploy of its stateless release before the app can have more than one copy. Deploy once, then set copies. An app with more than one copy cannot add an instance: set copies to 1, create the instance and deploy it once, then raise copies again.
## Setting the count
@@ -38,10 +38,10 @@ Reads can retry on another copy before a response starts. A response already str
## Seeing your copies
-For an instance with more than one copy, `carlos instances list` prints a second table with one row per copy: its box, build, state, health and workers. The app's overview page counts the copies running out of the copies wanted. The [CLI reference](/docs/cli#carlos-instances) has the details.
+For an instance with more than one copy, `carlos instances list` prints a second table with one row per copy: its box, build, state, health and workers. The app's overview page counts running copies against the requested total. The [CLI reference](/docs/cli#carlos-instances) has the details.
An instance with more than one copy keeps a separate page cache on each copy's box. A purge clears only the cache of the copy that sent it, so another copy can serve its own saved page until it expires or that copy purges it too.
## 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 putting an older platform build back on a box, either by installing one by hand or by rolling the box back to its previous build after an update has finished. A box downgraded either way keeps serving, but its copies may switch builds out of turn, or start again on an older build, until the box is updated again.
+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.
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 9a48a58d7..7810d8758 100644
--- a/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
+++ b/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
@@ -30,7 +30,7 @@ copy too. Internal wire enums are not an excuse to expose unreviewed text.
| SR-1-C11 | docs/site/cli.md | A stateless release can run more than one copy on a fleet after every fleet box and the console support replicas. Apps keep one copy until you set --copies. | approved by delegation (Luna pass, 2026-11-01) |
| SR-1-C12 | internal/console/replicacoordinator.go | this instance changed before the coordination update finished. try again | approved by delegation (Luna pass, 2026-11-01); was: this instance changed while coordination was being updated. try again |
| SR-1-C13 | docs/site/cli.md | 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. | approved by delegation (Luna pass, 2026-11-01); Luna's text for SR-4-C26, reused here because Plan 1 documents repeat-safe release commands |
-| SR-1-C14 | internal/replicas/types.go | console unreachable | approved provisionally (controller ruling P25; for Paul's copy review) |
+| SR-1-C14 | internal/replicas/types.go | console could not be reached | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
## Plan 2: count and placement
@@ -47,11 +47,11 @@ copy too. Internal wire enums are not an excuse to expose unreviewed text.
| SR-2-C09 | apps_copies.go | the console did not confirm <n> copies, so the change could not be verified | approved by delegation (Luna pass, 2026-11-01) |
| SR-2-C10 | internal/console/replicaplacement.go | detaching <box> leaves <running> of <desired> copies available. the requested count stays <desired> | approved by delegation (Luna pass, 2026-11-01) |
| SR-2-C11 | internal/console/appcopies.go | copies are still stopping on other boxes. wait for that to finish before selecting a release with a local database | approved by delegation (Luna pass, 2026-11-01) |
-| SR-2-C12 | internal/console/appcopies.go | this instance has an import or move in progress. finish it before changing the copy count | approved provisionally (Plan 2 controller ruling P3; Luna flag open for Paul) |
+| SR-2-C12 | internal/console/appcopies.go | this instance has an import or move in progress. finish it before changing the copy count | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
| SR-2-C13 | apps_swap.go (a fragment: the first line of appsSetUsage) | usage: carlos apps set <app> [--copies <n>] [--swap overlap\|hold] [--swap-concurrency <n>] [--interactive on\|off] [--account <sqid\|name>] [--account-id <sqid>] [--console <origin>] [--egress-allow <ip,...>] [--size <size>] | approved by delegation (Luna pass, 2026-11-01) |
| SR-2-C14 | docs/site/cli.md | Set the count with 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. | approved by delegation (Luna pass, 2026-11-01) |
| SR-2-C15 | docs/site/cli.md | If a box is lost or detached, the requested count stays the same. The platform uses a distinct spare when one is available, otherwise the app runs short until a suitable box returns. | approved by delegation (Luna pass, 2026-11-01) |
-| SR-2-C16 | internal/console/appcopies.go | more than one copy requires overlap deploys. select an overlap-compatible release and app policy first | approved provisionally (Plan 2 controller ruling P3; Luna flag open for Paul) |
+| SR-2-C16 | internal/console/appcopies.go | more than one copy needs a release and app policy that let each copy switch builds while its old build keeps serving. change them first | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
| SR-2-C17 | apps_swap.go | apps set: nothing to set. pass --copies, --swap, --swap-concurrency, --egress-allow, --size or --interactive | approved by delegation (Luna pass, 2026-11-01); was: apps set: nothing to set. Pass --copies, --swap, --swap-concurrency, --egress-allow, --size or --interactive |
@@ -59,94 +59,94 @@ copy too. Internal wire enums are not an excuse to expose unreviewed text.
| id | file | text | status |
|---|---|---|---|
-| SR-3-C01 | internal/edge/replicaproxy.go | no healthy copy is available. try again shortly | pending |
-| SR-3-C02 | internal/edge/replicaproxy.go | the connection to this copy ended before it answered. this request was not repeated | pending |
-| SR-3-C03 | internal/edge/replicaprober.go | this copy did not pass its health check | pending |
-| SR-3-C04 | internal/edge/replicaprober.go | this box's tunnel is disconnected | pending |
-| SR-3-C05 | internal/edge/replicaprober.go | waiting for this copy to pass its health check | pending |
-| SR-3-C06 | internal/edge/replicaprober.go | this health answer belongs to an earlier instance or assignment | pending |
-| SR-3-C07 | internal/host/replicahealth_other.go | live replica health is unavailable on this system | pending |
-| SR-3-C08 | internal/console/replicaview.go | live copy health is unavailable | pending |
+| SR-3-C01 | internal/edge/replicaproxy.go | no healthy copy is available. try again shortly | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-3-C02 | internal/edge/replicaproxy.go | the connection to this copy ended before it answered. this request was not repeated | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-3-C03 | internal/edge/replicaprober.go | this copy did not pass its health check | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-3-C04 | internal/edge/replicaprober.go | this box's tunnel is disconnected | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-3-C05 | internal/edge/replicaprober.go | waiting for this copy to pass its health check | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-3-C06 | internal/edge/replicaprober.go | this health answer belongs to an earlier instance or assignment | diagnostic, not user copy (controller ruling) |
+| SR-3-C07 | internal/host/replicahealth_other.go | live replica health is unavailable on this system | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-3-C08 | internal/console/replicaview.go | live copy health is unavailable | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
## Plan 4: deployment and copy views
| id | file | text | status |
|---|---|---|---|
-| SR-4-C01 | internal/console/templates/app_overview.html | <running> of <desired> copies running | pending |
-| SR-4-C02 | instances_copies.go | BOX | pending |
-| SR-4-C03 | instances_copies.go | BUILD | pending |
-| SR-4-C04 | instances_copies.go | STATE | pending |
-| SR-4-C05 | instances_copies.go | HEALTH | pending |
-| SR-4-C06 | instances_copies.go | starting | pending |
-| SR-4-C07 | instances_copies.go | running | pending |
-| SR-4-C08 | instances_copies.go | down | pending |
-| SR-4-C09 | instances_copies.go | failed | pending |
-| SR-4-C10 | instances_copies.go | unknown | pending |
-| SR-4-C11 | instances_copies.go | missing | pending |
-| SR-4-C12 | run.go | run on this healthy assigned copy's box; otherwise choose a healthy copy | pending |
-| SR-4-C13 | internal/console/replicaview.go | <box> is not a healthy assigned copy of this instance | pending |
-| SR-4-C14 | internal/console/replicaview.go | no healthy copy is available for this command. try again after a copy is running | pending |
-| SR-4-C15 | internal/console/replicadeploy.go | the release command failed, so no copy switched to the new build | pending |
-| SR-4-C16 | internal/console/replicadeploy.go | this copy's switch has not been confirmed. other copies keep serving and the deploy is stopped | pending |
-| SR-4-C17 | internal/console/replicadeploy.go | switching <box> to <build> | pending |
-| SR-4-C18 | internal/console/replicadeploy.go | release complete; copies are switching one box at a time | pending |
-| SR-4-C19 | internal/console/replicasize.go | <size> leaves too little memory for the box on <box>. choose a smaller size | pending |
-| SR-4-C20 | internal/console/replicasize.go | this fleet size needs a complete memory report and a supported platform release on every possible destination. update the boxes and try again | pending |
-| SR-4-C21 | internal/console/replicasize.go | <size> is available on owned fleet boxes only | pending |
-| SR-4-C22 | internal/activator/replicadeploy.go | this box has too little free memory for an overlap swap. the current copy keeps serving | pending |
-| SR-4-C23 | internal/console/replicafloor.go | copies above 1 are in use, so the platform cannot move below <floor>. reduce the copy count and wait for other copies to stop first | pending (built by Plan 4 Task 5 as consoleReplicaFloorRefusal, the publication judge's refusal; planned for rootfsfloor.go; awaiting Paul's copy review) |
-| SR-4-C24 | docs/site/stateless-replicas.md | Copies survive the loss of a fleet box. Traffic still enters through one hub, so this version does not survive losing that hub. | pending (built by Plan 4 Task 5 in the docs page; awaiting Paul's copy review) |
-| SR-4-C25 | docs/site/stateless-replicas.md | 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. | pending (built by Plan 4 Task 5 in the docs page; awaiting Paul's copy review) |
-| SR-4-C26 | docs/site/stateless-replicas.md | If the coordinator disappears during the release command, 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. | pending (not built: Plan 4 Task 5 reuses the approved SR-1-C13 text in docs/site/stateless-replicas.md, as this row planned) |
-| SR-4-C27 | docs/site/stateless-replicas.md | Reads can retry on another copy before a response starts. A response already streaming when its box dies is cut. Websockets disconnect and their clients reconnect to a healthy copy. | pending (built by Plan 4 Task 5 in the docs page; awaiting Paul's copy review) |
-| SR-4-C28 | docs/site/stateless-replicas.md | carlos instances list prints one row per copy with its box, build, state, health and workers. carlos run and carlos console choose a healthy copy; add --box <label> to choose one. An accepted command is not repeated on another box after a lost connection. | pending (not built: --box is deferred (R17); the page uses SR-4-C67 instead) |
-| SR-4-C29 | docs/site/stateless-replicas.md | Fleet sizes add 6g, 12g, 24g, 48g, 96g and 192g, measured in GiB. Each copy leaves at least 1 GiB or one eighth of its box's memory for the box, whichever is larger. An overlap also needs room for the new generation. | pending (not built: Task 4 (fleet sizes) is deferred (R17); the page says to deploy apps one at a time instead, SR-4-C66) |
-| SR-4-C30 | docs/site/stateless-replicas.md | 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. | pending (built by Plan 4 Task 5 in the docs page; awaiting Paul's copy review) |
-| SR-4-C31 | internal/provision/replicadeploy.go | another deploy is still finishing a copy's switch. wait for it to finish before deploying again | pending |
-| SR-4-C32 | scripts/stateless-replicas-drill/main.go | spread: <a_percent>% on <box_a>, <b_percent>% on <box_b>; failed reads before headers: <failures>; cut streams: <cuts>; websocket reconnect: <seconds>s | pending (built by Plan 4 Task 5 as drillSummary; awaiting Paul's copy review) |
-| SR-4-C33 | scripts/stateless-replicas-drill/main.go | the dev drill did not pass: <reason>. restore the stopped box and complete cleanup before closing this session | pending (built by Plan 4 Task 5 as drillFailed; awaiting Paul's copy review) |
-| SR-4-C34 | docs/site/stateless-replicas.md | Stateless replicas | pending (built by Plan 4 Task 5 in the docs page (also the nav label in docs/site/nav.json); awaiting Paul's copy review) |
-| SR-4-C35 | internal/console/replicadeploy.go | release pending | pending |
-| SR-4-C36 | internal/console/replicadeploy.go | release running | pending |
-| SR-4-C37 | internal/console/replicadeploy.go | deploy complete | pending |
-| SR-4-C38 | internal/console/replicadeploy.go | release result unknown | pending |
-| SR-4-C39 | internal/console/replicadeploy.go | release complete; no copy was running, so the first copy is starting on its own | pending (added by Plan 4 Task 1 for a bootstrap order; awaiting Paul's copy review) |
-| SR-4-C40 | cli.go | this app runs stateless replicas, so retry it through the console: carlos instances retry <host>, or carlos promote --retry while logged in to the console | pending (added by Plan 4 Task 1 fix round 1 for the direct-bucket retry refusal; awaiting Paul's copy review) |
-| SR-4-C41 | internal/provision/replicadeploy.go | an instance record could not be read, so nothing was retried. try again | pending (added by Plan 4 Task 1 fix round 2 for retries that fail closed on unreadable records; awaiting Paul's copy review) |
-| SR-4-C42 | internal/provision/replicadeploy.go | the instances changed since this retry was requested, so nothing was retried. run the retry again | pending (added by Plan 4 Task 1 fix round 3 for a refused replay of a retry request; awaiting Paul's copy review) |
-| SR-4-C43 | internal/activator/replicadeploy.go | this copy keeps its current build until its turn to switch | pending (added by Plan 4 Task 2 for a copy refused a build its deploy has not yet permitted on its box; awaiting Paul's copy review) |
-| SR-4-C44 | internal/activator/replicadeploy.go | copies above 1 switch builds with an overlap swap, so this release's hold swap was refused. the current build keeps serving | pending (added by Plan 4 Task 2 for a hold demand or hold policy on a replicated instance; awaiting Paul's copy review) |
-| SR-4-C45 | internal/rollout/replicas.go | this copy waits for a release to pass before it starts | pending (added by Plan 4 Task 2 for a copy's wake when its record names no build that passed a release; awaiting Paul's copy review) |
-| SR-4-C46 | internal/console/replicadeploy.go | the new build's workers failed on <box>, so the deploy stopped. other copies keep serving | pending (added by Plan 4 Task 2 fix round 2 for a switch whose workers failed, which halts the deploy; awaiting Paul's copy review) |
-| SR-4-C47 | internal/console/replicaview.go | this app runs more than one copy of an instance, so a restart would cycle every copy at the same time. deploy a new build instead: its copies switch one box at a time | pending (added by Plan 4 Task 3 for the F2 restart refusal at copies above 1; awaiting Paul's copy review) |
-| SR-4-C48 | internal/console/replicaview.go | This app runs more than one copy of an instance, so a restart would cycle every copy at the same time. Deploy a new build instead: its copies switch one box at a time. | pending (added by Plan 4 Task 3: SR-4-C47 as the app page's restart flash; awaiting Paul's copy review) |
-| SR-4-C49 | instances_copies.go | healthy | pending (added by Plan 4 Task 3 for the copies table's HEALTH cell; awaiting Paul's copy review) |
-| SR-4-C50 | instances_copies.go | unhealthy | pending (added by Plan 4 Task 3 for the copies table's HEALTH cell; awaiting Paul's copy review) |
-| SR-4-C51 | docs/site/cli.md | For an instance with more than one copy, `carlos instances list` prints a second table with one row per copy: its box, build, state, health and workers. These come from the router's live check of each copy, not from the boxes' five-minute reports. A copy with no live reading shows as unknown, and a copy that no box holds yet shows as missing. The app's overview page counts the copies running out of the copies wanted. | pending (added by Plan 4 Task 3; the view-only part of SR-4-C28, whose --box sentence is deferred with --box; awaiting Paul's copy review) |
-| SR-4-C52 | docs/site/cli.md | An instance with more than one copy keeps a separate page cache on each copy's box. A purge clears only the cache of the copy that sent it, so another copy can serve its own saved page until it expires or that copy purges it too. | pending (added by Plan 4 Task 3 per ruling D6; awaiting Paul's copy review) |
-| SR-4-C53 | docs/site/cli.md | 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. | pending (added by Plan 4 Task 3 for the F2 restart refusal; awaiting Paul's copy review) |
-| SR-4-C54 | internal/console/templates/app_overview.html | <unknown> of <desired> copies unknown; <running> known running | pending (added by Plan 4 Task 3 fix round 1: the overview count when any copy has no live reading, so an unread copy is never counted as stopped; awaiting Paul's copy review) |
-| SR-4-C55 | internal/activator/statelessrelease.go | the deploy record did not accept this release step, so nothing started | pending (added by Plan 4 Task 3F for F11: a release step the record's writer refused, whose record holds no attempt this box adopts; fix round 1 replaced the first draft, which named a cause that was not always known; awaiting Paul's copy review) |
-| SR-4-C56 | internal/activator/statelessrelease.go | this box is no longer coordinating this deploy, so nothing started | pending (added by Plan 4 Task 3F fix round 1: a release step this box did not send because it no longer held the coordinator term, or was shutting down; awaiting Paul's copy review) |
-| SR-4-C57 | internal/activator/statelessrelease.go | the deploy record did not confirm this release step, so nothing started. the next start tries again | pending (added by Plan 4 Task 3F fix round 1: a release step whose answer was lost or did not match, which used to read as an unknown command result; fix round 2 also uses it for a close of a stale releasing observation whose outcome is not established; awaiting Paul's copy review) |
-| SR-4-C58 | internal/activator/stateless.go | the instance's route row no longer matches the one this start was prepared against, so nothing started | pending (added by Plan 4 Task 3F fix round 1: a stateless start whose route row changed after its preparation, which used to read as "maintenance fence active"; fix round 2 narrowed it from "settings changed" to what is known; awaiting Paul's copy review) |
-| SR-4-C59 | internal/activator/statelessrelease.go | the release command did not start, and its attempt is closed. deploy again to retry it | pending (added by Plan 4 Task 3F fix round 3: an attempt this box moved to releasing and knows it never started, closed as unknown on the record; it used to read as an unknown result; awaiting Paul's copy review) |
-| SR-4-C60 | internal/activator/statelessrelease.go | this box could not save its release step, so nothing started | pending (added by Plan 4 Task 3F fix round 3: the box's own evidence of a release step could not be saved, so the step was not taken; awaiting Paul's copy review) |
-| SR-4-C61 | internal/console/replicafloor.go | every instance needs one successful deploy of a stateless release before it can run more than one copy. deploy once, then set copies | pending (added by Plan 4 Task 5: the copies door's refusal for a record with no last good build (R13), copiesNoBaseline; awaiting Paul's copy review) |
-| SR-4-C62 | internal/console/replicafloor.go | this deployment's <channel> channel is on <release>, below <floor>. copies above 1 wait until every channel is on <floor> or later. try again after the deployment's next update | pending (added by Plan 4 Task 5: the copies door's refusal while a published system pointer is below the floor (R4), copiesChannelBelow; modelled on FPR-C06; awaiting Paul's copy review) |
-| SR-4-C63 | docs/site/stateless-replicas.md | A stateless app can run more than one copy of each instance, each on a different box of your fleet. If one box stops, the other copies keep serving. | pending (added by Plan 4 Task 5: the page's opening; awaiting Paul's copy review) |
-| SR-4-C64 | docs/site/stateless-replicas.md | More than one copy needs every box of the fleet and the console on platform v0.35.0 or later. While a box's platform update is still finishing, its previous platform build must be v0.35.0 or later too, because a failed update puts that build back. Every platform release channel must also be on v0.35.0 or later. | pending (added by Plan 4 Task 5: the floor, with R16's previous-build rule as amended, only while an update is finishing, and R4's published channels; fix round 1 reworded it; awaiting Paul's copy review) |
-| SR-4-C65 | docs/site/stateless-replicas.md | An app needs at least one instance, and each instance needs one successful deploy of its stateless release, before the app can have more than one copy. Deploy once, then set copies. An app with more than one copy takes no new instances: set copies to 1, create the instance and deploy it once, then raise copies again. | pending (added by Plan 4 Task 5: R13 for the docs page; fix round 1 added the empty-app and create refusals; awaiting Paul's copy review) |
-| SR-4-C66 | docs/site/stateless-replicas.md | 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. | pending (added by Plan 4 Task 5: R17: deploy apps one at a time; awaiting Paul's copy review) |
-| SR-4-C67 | docs/site/stateless-replicas.md | For an instance with more than one copy, `carlos instances list` prints a second table with one row per copy: its box, build, state, health and workers. The app's overview page counts the copies running out of the copies wanted. The [CLI reference](/docs/cli#carlos-instances) has the details. | pending (added by Plan 4 Task 5: SR-4-C51's first and last sentences with a link to the CLI reference; the page also reuses SR-4-C52 and SR-4-C53 verbatim; awaiting Paul's copy review) |
-| SR-4-C68 | docs/site/stateless-replicas.md | The console will not move the platform below v0.35.0 while any app has more than one copy. It cannot stop an operator putting an older platform build back on a box, either by installing one by hand or by rolling the box back to its previous build after an update has finished. A box downgraded either way keeps serving, but its copies may switch builds out of turn, or start again on an older build, until the box is updated again. | pending (added by Plan 4 Task 5: R16: a manual root downgrade is not prevented; fix round 2 added an operator rollback to the previous build over a finished update, such as the group roll's rollback; awaiting Paul's copy review) |
-| SR-4-C69 | docs/site/cli.md | [Stateless replicas](/docs/stateless-replicas) covers what an app needs before it runs more than one copy, how deploys switch copies, and what happens when a box stops. | pending (added by Plan 4 Task 5: the CLI reference's cross-link under carlos apps set --copies; awaiting Paul's copy review) |
-| SR-4-C70 | docs/site/nav.json | Run more than one copy of each instance across your fleet, and what happens when a box stops. | pending (added by Plan 4 Task 5: the page's blurb in the Guides section; awaiting Paul's copy review) |
-| SR-4-C71 | docs/site/stateless-replicas.md | Before you set copies | pending (added by Plan 4 Task 5: heading; awaiting Paul's copy review) |
-| SR-4-C72 | docs/site/stateless-replicas.md | Setting the count | pending (added by Plan 4 Task 5: heading; awaiting Paul's copy review) |
-| SR-4-C73 | docs/site/stateless-replicas.md | Deploys | pending (added by Plan 4 Task 5: heading; awaiting Paul's copy review) |
-| SR-4-C74 | docs/site/stateless-replicas.md | When a box stops | pending (added by Plan 4 Task 5: heading; awaiting Paul's copy review) |
-| SR-4-C75 | docs/site/stateless-replicas.md | Seeing your copies | pending (added by Plan 4 Task 5: heading; awaiting Paul's copy review) |
-| SR-4-C76 | docs/site/stateless-replicas.md | What the platform does not prevent | pending (added by Plan 4 Task 5: heading; awaiting Paul's copy review) |
-| SR-4-C77 | internal/console/replicafloor.go | this app has no instances yet. create one and deploy it once, then set copies | pending (added by Plan 4 Task 5 fix round 1: the copies door's refusal for an app with no live instance, R13 closed up front, copiesNoInstances; awaiting Paul's copy review) |
-| 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 | pending (added by Plan 4 Task 5 fix round 1: the create door's refusal at copies above 1, R13 closed up front, copiesCreateAtCopies; awaiting Paul's copy review) |
+| SR-4-C01 | internal/console/templates/app_overview.html | <running> of <desired> copies running | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C02 | instances_copies.go | Box | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C03 | instances_copies.go | Build | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C04 | instances_copies.go | State | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C05 | instances_copies.go | Health | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C06 | instances_copies.go | Starting | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C07 | instances_copies.go | Running | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C08 | instances_copies.go | Down | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C09 | instances_copies.go | Failed | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C10 | instances_copies.go | Unknown | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C11 | instances_copies.go | Missing | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C12 | run.go | run on this healthy assigned copy's box; otherwise choose a healthy copy | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C13 | internal/console/replicaview.go | <box> is not a healthy assigned copy of this instance | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C14 | internal/console/replicaview.go | no healthy copy is available for this command. try again after a copy is running | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C15 | internal/console/replicadeploy.go | the release command failed, so no copy switched to the new build | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C16 | internal/console/replicadeploy.go | this copy's switch has not been confirmed. other copies keep serving and the deploy is stopped | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C17 | internal/console/replicadeploy.go | switching <box> to <build> | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C18 | internal/console/replicadeploy.go | release complete. copies are switching one box at a time | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C19 | internal/console/replicasize.go | <size> leaves too little memory for the box on <box>. choose a smaller size | deferred (Task 4, #892), not shipped |
+| SR-4-C20 | internal/console/replicasize.go | this fleet size needs a complete memory report and a supported platform release on every possible destination. update the boxes and try again | deferred (Task 4, #892), not shipped |
+| SR-4-C21 | internal/console/replicasize.go | <size> is available on owned fleet boxes only | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C22 | internal/activator/replicadeploy.go | this box has too little free memory for an overlap swap. the current copy keeps serving | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C23 | internal/console/replicafloor.go | copies above 1 are in use, so the platform cannot move below <floor>. reduce the copy count and wait for other copies to stop first | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C24 | docs/site/stateless-replicas.md | Copies survive the loss of a fleet box. Traffic still enters through one hub, so this version does not survive losing that hub. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C25 | docs/site/stateless-replicas.md | 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. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C26 | docs/site/stateless-replicas.md | If the coordinator disappears during the release command, 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. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C27 | docs/site/stateless-replicas.md | Reads can retry on another copy before a response starts. A response already streaming when its box dies is cut. Websockets disconnect and their clients reconnect to a healthy copy. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C28 | docs/site/stateless-replicas.md | carlos instances list prints one row per copy with its box, build, state, health and workers. carlos run and carlos console choose a healthy copy; add --box <label> to choose one. An accepted command is not repeated on another box after a lost connection. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C29 | docs/site/stateless-replicas.md | Fleet sizes add 6g, 12g, 24g, 48g, 96g and 192g, measured in GiB. Each copy leaves at least 1 GiB or one eighth of its box's memory for the box, whichever is larger. An overlap also needs room for the new generation. | deferred (Task 4, #892), not shipped |
+| SR-4-C30 | docs/site/stateless-replicas.md | 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. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C31 | internal/provision/replicadeploy.go | another deploy is still finishing a copy's switch. wait for it to finish before deploying again | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C32 | scripts/stateless-replicas-drill/main.go | spread: <a_percent>% on <box_a>, <b_percent>% on <box_b>; failed reads before headers: <failures>; cut streams: <cuts>; websocket reconnect: <seconds>s | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C33 | scripts/stateless-replicas-drill/main.go | the dev drill failed: <reason>. restore the stopped box and finish cleanup before closing this session | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C34 | docs/site/stateless-replicas.md | Stateless replicas | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C35 | internal/console/replicadeploy.go | release pending | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C36 | internal/console/replicadeploy.go | release running | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C37 | internal/console/replicadeploy.go | deploy complete | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C38 | internal/console/replicadeploy.go | release result unknown | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C39 | internal/console/replicadeploy.go | release complete. no copy was running, so the first copy is starting on its own | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C40 | cli.go | this app runs stateless replicas, so retry it through the console: carlos instances retry <host>, or carlos promote --retry while logged in to the console | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C41 | internal/provision/replicadeploy.go | an instance record could not be read, so nothing was retried. try again | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C42 | internal/provision/replicadeploy.go | the instances changed since this retry was requested, so nothing was retried. run the retry again | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C43 | internal/activator/replicadeploy.go | this copy keeps its current build until its turn to switch | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C44 | internal/activator/replicadeploy.go | copies above 1 switch builds one box at a time while the old build keeps serving, so this release's hold was refused. the current build keeps serving | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C45 | internal/rollout/replicas.go | this copy waits for a release to pass before it starts | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C46 | internal/console/replicadeploy.go | the new build's workers failed on <box>, so the deploy stopped. other copies keep serving | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C47 | internal/console/replicaview.go | this app runs more than one copy of an instance, so a restart would stop every copy at the same time. deploy a new build instead: its copies switch one box at a time | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C48 | internal/console/replicaview.go | This app runs more than one copy of an instance, so a restart would stop every copy at the same time. Deploy a new build instead: its copies switch one box at a time. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C49 | instances_copies.go | healthy | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C50 | instances_copies.go | unhealthy | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C51 | docs/site/cli.md | For an instance with more than one copy, `carlos instances list` prints a second table with one row per copy: its box, build, state, health and workers. These come from the router's live check of each copy, not from the boxes' five-minute reports. A copy with no live reading shows as unknown, and a copy that no box holds yet shows as missing. The app's overview page counts the copies running out of the copies wanted. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C52 | docs/site/cli.md | An instance with more than one copy keeps a separate page cache on each copy's box. A purge clears only the cache of the copy that sent it, so another copy can serve its own saved page until it expires or that copy purges it too. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C53 | docs/site/cli.md | 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. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C54 | internal/console/templates/app_overview.html | <unknown> of <desired> copies have unknown status; <running> are known to be running | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C55 | internal/activator/statelessrelease.go | the deploy record did not accept this release step, so nothing started | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C56 | internal/activator/statelessrelease.go | this box is no longer coordinating this deploy, so nothing started | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C57 | internal/activator/statelessrelease.go | the deploy record did not confirm this release step, so nothing started. the next start tries again | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C58 | internal/activator/stateless.go | the instance changed after this start was prepared, so nothing started | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C59 | internal/activator/statelessrelease.go | the release command did not start, and the release attempt is closed. deploy again to retry it | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C60 | internal/activator/statelessrelease.go | this box could not record its release step, so nothing started | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C61 | internal/console/replicafloor.go | every instance needs one successful deploy of a stateless release before it can run more than one copy. deploy once, then set copies | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C62 | internal/console/replicafloor.go | this deployment is on <release> in its <channel> channel, below <floor>. copies above 1 wait until every channel is on <floor> or later. try again after the next deployment update | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C63 | docs/site/stateless-replicas.md | A stateless app can run more than one copy of each instance on different boxes in your fleet. If one box stops, the other copies keep serving. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C64 | docs/site/stateless-replicas.md | More than one copy needs every box of the fleet and the console on platform v0.35.0 or later. While a box's platform update is still finishing, its previous platform build must be v0.35.0 or later too, because a failed update puts that build back. Every platform release channel must also be on v0.35.0 or later. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C65 | docs/site/stateless-replicas.md | An app needs at least one instance. Each instance needs one successful deploy of its stateless release before the app can have more than one copy. Deploy once, then set copies. An app with more than one copy cannot add an instance: 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-C66 | docs/site/stateless-replicas.md | 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. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C67 | docs/site/stateless-replicas.md | For an instance with more than one copy, `carlos instances list` prints a second table with one row per copy: its box, build, state, health and workers. The app's overview page counts running copies against the requested total. The [CLI reference](/docs/cli#carlos-instances) has the details. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C68 | docs/site/stateless-replicas.md | 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. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C69 | docs/site/cli.md | [Stateless replicas](/docs/stateless-replicas) covers what an app needs before it runs more than one copy, how deploys switch copies, and what happens when a box stops. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C70 | docs/site/nav.json | Run more than one copy of each instance across your fleet. Learn what happens when a box stops. | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C71 | docs/site/stateless-replicas.md | Before you set copies | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C72 | docs/site/stateless-replicas.md | Setting the count | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C73 | docs/site/stateless-replicas.md | Deploys | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C74 | docs/site/stateless-replicas.md | When a box stops | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| SR-4-C75 | docs/site/stateless-replicas.md | Seeing your copies | approved (Luna pass 2026-11-11, delegated by Paul 2026-10-25) |
+| 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) |
diff --git a/instances_copies.go b/instances_copies.go
index 516472263..12f345cc2 100644
--- a/instances_copies.go
+++ b/instances_copies.go
@@ -15,10 +15,10 @@ import (
// The copies table's heading and words. Copy: pending Paul's copy review.
const (
- copiesColBox = "BOX" // copy SR-4-C02 (provisional)
- copiesColBuild = "BUILD" // copy SR-4-C03 (provisional)
- copiesColState = "STATE" // copy SR-4-C04 (provisional)
- copiesColHealth = "HEALTH" // copy SR-4-C05 (provisional)
+ copiesColBox = "Box" // copy SR-4-C02 (provisional)
+ copiesColBuild = "Build" // copy SR-4-C03 (provisional)
+ copiesColState = "State" // copy SR-4-C04 (provisional)
+ copiesColHealth = "Health" // copy SR-4-C05 (provisional)
copyRunning = "running" // copy SR-4-C07 (provisional)
copyDown = "down" // copy SR-4-C08 (provisional)
copyFailed = "failed" // copy SR-4-C09 (provisional)
@@ -77,6 +77,31 @@ func copyState(c replicas.Copy) string {
return copyUnknown
}
+// Words shown in the State column. The console's wire states stay lower
+// case above; these are the approved labels (SR-4-C06 to SR-4-C11).
+const (
+ copyLabelRunning = "Running" // copy SR-4-C07
+ copyLabelDown = "Down" // copy SR-4-C08
+ copyLabelFailed = "Failed" // copy SR-4-C09
+ copyLabelUnknown = "Unknown" // copy SR-4-C10
+ copyLabelMissing = "Missing" // copy SR-4-C11
+)
+
+// copyStateLabel is the printed label for a state word.
+func copyStateLabel(state string) string {
+ switch state {
+ case copyRunning:
+ return copyLabelRunning
+ case copyDown:
+ return copyLabelDown
+ case copyFailed:
+ return copyLabelFailed
+ case copyMissing:
+ return copyLabelMissing
+ }
+ return copyLabelUnknown
+}
+
func copyCell(s string) string {
if v := cleanConsoleText(s, copyCellMaxBytes); v != "" {
return v
@@ -99,7 +124,7 @@ func printCopiesTable(out io.Writer, recs []apiInstanceRecord) {
w := newTable(out)
fmt.Fprintln(w, "HOST\t"+copiesColBox+"\t"+copiesColBuild+"\t"+copiesColState+"\t"+copiesColHealth+"\t"+instancesColWorkers)
for _, r := range rows {
- fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s\n", r.Host, r.Box, r.Build, r.State, r.Health, r.Workers)
+ fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s\n", r.Host, r.Box, r.Build, copyStateLabel(r.State), r.Health, r.Workers)
}
w.Flush()
}
diff --git a/instances_copies_test.go b/instances_copies_test.go
index 2832ceebb..8d4fb184f 100644
--- a/instances_copies_test.go
+++ b/instances_copies_test.go
@@ -41,13 +41,13 @@ func TestReplicaCopyListRowsPerBox(t *testing.T) {
if len(lines) != 4 {
t.Fatalf("copies table, want a heading and three rows:\n%s", out)
}
- if got := strings.Fields(lines[0]); strings.Join(got, " ") != "HOST BOX BUILD STATE HEALTH WORKERS" {
+ if got := strings.Fields(lines[0]); strings.Join(got, " ") != "HOST Box Build State Health WORKERS" {
t.Fatalf("heading %q", lines[0])
}
for i, want := range [][]string{
- {"shop.example.com", "b1", "v2", "running", "healthy", "2/2"},
- {"shop.example.com", "b2", "v1", "down", "unhealthy", "0/2"},
- {"shop.example.com", "-", "-", "missing", "-", "-"},
+ {"shop.example.com", "b1", "v2", "Running", "healthy", "2/2"},
+ {"shop.example.com", "b2", "v1", "Down", "unhealthy", "0/2"},
+ {"shop.example.com", "-", "-", "Missing", "-", "-"},
} {
if got := strings.Fields(lines[i+1]); strings.Join(got, " ") != strings.Join(want, " ") {
t.Errorf("row %d = %q, want %q", i+1, got, want)
@@ -72,10 +72,10 @@ func TestReplicaCopyListCleansCells(t *testing.T) {
if len(lines) != 3 {
t.Fatalf("copies table, want a heading and two rows:\n%s", out)
}
- if got := strings.Join(strings.Fields(lines[1]), " "); got != "shop.example.com - - unknown unknown -" {
+ if got := strings.Join(strings.Fields(lines[1]), " "); got != "shop.example.com - - Unknown unknown -" {
t.Fatalf("unclean row = %q", got)
}
- if got := strings.Join(strings.Fields(lines[2]), " "); got != "shop.example.com b2 v1 unknown unknown -" {
+ if got := strings.Join(strings.Fields(lines[2]), " "); got != "shop.example.com b2 v1 Unknown unknown -" {
t.Fatalf("unknown row = %q", got)
}
}
@@ -89,7 +89,7 @@ func TestReplicaVisibilityLegacyColumnsUnchanged(t *testing.T) {
var buf bytes.Buffer
printInstancesList(&buf, recs)
out := buf.String()
- if strings.Contains(out, "\n\n") || strings.Contains(out, "BOX") {
+ if strings.Contains(out, "\n\n") || strings.Contains(out, "Box") {
t.Fatalf("a one-copy list printed a copies table:\n%s", out)
}
lines := strings.Split(strings.TrimRight(out, "\n"), "\n")
diff --git a/internal/activator/replicadeploy.go b/internal/activator/replicadeploy.go
index c47abffab..12e9bd5d6 100644
--- a/internal/activator/replicadeploy.go
+++ b/internal/activator/replicadeploy.go
@@ -58,7 +58,7 @@ var (
errReplicaTurn error = replicaRefusal{"this copy keeps its current build until its turn to switch"}
// errReplicaHold: copies switch builds only by overlap.
// copy SR-4-C44 (provisional)
- errReplicaHold error = replicaRefusal{"copies above 1 switch builds with an overlap swap, so this release's hold swap was refused. the current build keeps serving"}
+ errReplicaHold error = replicaRefusal{"copies above 1 switch builds one box at a time while the old build keeps serving, so this release's hold was refused. the current build keeps serving"}
)
// replicaPolicy is the newest deploy the swap worker observed for a set
diff --git a/internal/activator/stateless.go b/internal/activator/stateless.go
index ad5839dbf..99782ed22 100644
--- a/internal/activator/stateless.go
+++ b/internal/activator/stateless.go
@@ -57,7 +57,7 @@ type statelessRecordKey struct{}
type statelessRowChanged struct{}
func (statelessRowChanged) Error() string {
- return "the instance's route row no longer matches the one this start was prepared against, so nothing started"
+ return "the instance changed after this start was prepared, so nothing started"
}
func (statelessRowChanged) Is(target error) bool { return target == ErrFenced }
diff --git a/internal/activator/statelessrelease.go b/internal/activator/statelessrelease.go
index 083093313..603240b30 100644
--- a/internal/activator/statelessrelease.go
+++ b/internal/activator/statelessrelease.go
@@ -33,11 +33,11 @@ var (
// errReplicaMarkUnsaved: this box could not save its own evidence of
// the attempt before the step, so it took no step. copy SR-4-C60
// (provisional)
- errReplicaMarkUnsaved = errors.New("this box could not save its release step, so nothing started")
+ errReplicaMarkUnsaved = errors.New("this box could not record its release step, so nothing started")
// errReplicaReleaseNotStarted: an attempt this box moved to releasing,
// whose command it knows it never started, is closed as unknown on the
// record (retry semantics unchanged). copy SR-4-C59 (provisional)
- errReplicaReleaseNotStarted = errors.New("the release command did not start, and its attempt is closed. deploy again to retry it")
+ errReplicaReleaseNotStarted = errors.New("the release command did not start, and the release attempt is closed. deploy again to retry it")
)
// errReplicaReleaseNotStartedHeld is errReplicaReleaseNotStarted adopted
diff --git a/internal/console/appcopies.go b/internal/console/appcopies.go
index 8b9400784..10b1ae624 100644
--- a/internal/console/appcopies.go
+++ b/internal/console/appcopies.go
@@ -25,7 +25,7 @@ const (
copiesUnread = "could not check every instance, release and fleet box, so the copy count was left unchanged. try again"
copiesManaged = "more than one copy is available for platform-managed instances on an owned fleet only"
copiesMoving = "this instance has an import or move in progress. finish it before changing the copy count"
- copiesOverlap = "more than one copy requires overlap deploys. select an overlap-compatible release and app policy first"
+ copiesOverlap = "more than one copy needs a release and app policy that let each copy switch builds while its old build keeps serving. change them first"
)
func atReplicaFloor(build string) bool {
diff --git a/internal/console/replicadeploy.go b/internal/console/replicadeploy.go
index 8a6fa59bf..9f50a835c 100644
--- a/internal/console/replicadeploy.go
+++ b/internal/console/replicadeploy.go
@@ -29,9 +29,9 @@ const (
// copy SR-4-C15 (provisional)
replicaDeployFailed = "the release command failed, so no copy switched to the new build"
// copy SR-4-C18 (provisional)
- replicaDeploySwapping = "release complete; copies are switching one box at a time"
+ replicaDeploySwapping = "release complete. copies are switching one box at a time"
// copy SR-4-C39 (provisional)
- replicaDeployBootstrap = "release complete; no copy was running, so the first copy is starting on its own"
+ replicaDeployBootstrap = "release complete. no copy was running, so the first copy is starting on its own"
// copy SR-4-C17 (provisional)
replicaDeploySwitching = "switching %s to %s"
// copy SR-4-C16 (provisional)
diff --git a/internal/console/replicafloor.go b/internal/console/replicafloor.go
index 9c4ec40cc..1e3a5218a 100644
--- a/internal/console/replicafloor.go
+++ b/internal/console/replicafloor.go
@@ -44,9 +44,9 @@ import (
// consoleReplicaFloorRefusal (SR-4-C23, provisional) takes the floor.
const consoleReplicaFloorRefusal = "copies above 1 are in use, so the platform cannot move below %s. reduce the copy count and wait for other copies to stop first"
-// copiesChannelBelow (SR-4-C62, provisional) takes the channel, its
-// release, the floor and the floor.
-const copiesChannelBelow = "this deployment's %s channel is on %s, below %s. copies above 1 wait until every channel is on %s or later. try again after the deployment's next update"
+// copiesChannelBelow (SR-4-C62) takes the release, its channel, the
+// floor and the floor.
+const copiesChannelBelow = "this deployment is on %s in its %s channel, below %s. copies above 1 wait until every channel is on %s or later. try again after the next deployment update"
// copiesNoBaseline (SR-4-C61, provisional; R13).
const copiesNoBaseline = "every instance needs one successful deploy of a stateless release before it can run more than one copy. deploy once, then set copies"
@@ -229,7 +229,7 @@ func (s *Server) replicaPolicyBarrier(ctx context.Context) *doorRefusal {
}
if !atReplicaFloor(p.Current.Version) {
floor := release.StatelessReplicasFloor
- return &doorRefusal{Status: http.StatusConflict, Msg: fmt.Sprintf(copiesChannelBelow, ch, p.Current.Version, floor, floor)}
+ return &doorRefusal{Status: http.StatusConflict, Msg: fmt.Sprintf(copiesChannelBelow, p.Current.Version, ch, floor, floor)}
}
}
return nil
diff --git a/internal/console/replicafloor_test.go b/internal/console/replicafloor_test.go
index f2830f9ec..6ed3782fe 100644
--- a/internal/console/replicafloor_test.go
+++ b/internal/console/replicafloor_test.go
@@ -130,7 +130,7 @@ func TestReplicaFloorEnablesOnlyCompleteFleet(t *testing.T) {
{"channel-below", func(t *testing.T, fx *consoleFixture) {
rfPublish(t, fx, "stable", release.StatelessReplicasFloor)
rfPublish(t, fx, "canary", replicaBelow)
- }, 409, fmt.Sprintf(copiesChannelBelow, "canary", replicaBelow, release.StatelessReplicasFloor, release.StatelessReplicasFloor)},
+ }, 409, fmt.Sprintf(copiesChannelBelow, replicaBelow, "canary", release.StatelessReplicasFloor, release.StatelessReplicasFloor)},
{"channel-unreadable", func(t *testing.T, fx *consoleFixture) {
rfPublish(t, fx, "stable", release.StatelessReplicasFloor)
key := release.SystemPointerKey("router", "stable")
@@ -359,7 +359,7 @@ func TestReplicaFloorPublicationAndCopiesBothOrders(t *testing.T) {
if !ran {
t.Fatal("copiesBeforeLock never ran")
}
- want := fmt.Sprintf(copiesChannelBelow, "stable", replicaBelow, release.StatelessReplicasFloor, release.StatelessReplicasFloor)
+ want := fmt.Sprintf(copiesChannelBelow, replicaBelow, "stable", release.StatelessReplicasFloor, release.StatelessReplicasFloor)
if code != http.StatusConflict || !strings.Contains(out, want) {
t.Fatalf("copies after the publication = %d %s", code, out)
}
diff --git a/internal/console/replicaview.go b/internal/console/replicaview.go
index 6d927c1f8..c5f02943d 100644
--- a/internal/console/replicaview.go
+++ b/internal/console/replicaview.go
@@ -40,11 +40,11 @@ const (
// one copy of an instance: the restart reaches every box on the same serial
// move, so it would cycle every copy at once. copy SR-4-C47 (provisional,
// pending Paul's copy review)
-const restartCopiesRefusal = "this app runs more than one copy of an instance, so a restart would cycle every copy at the same time. deploy a new build instead: its copies switch one box at a time"
+const restartCopiesRefusal = "this app runs more than one copy of an instance, so a restart would stop every copy at the same time. deploy a new build instead: its copies switch one box at a time"
// restartCopiesRefusalPage is restartCopiesRefusal as the app page's flash
// says it. copy SR-4-C48 (provisional, pending Paul's copy review)
-const restartCopiesRefusalPage = "This app runs more than one copy of an instance, so a restart would cycle every copy at the same time. Deploy a new build instead: its copies switch one box at a time."
+const restartCopiesRefusalPage = "This app runs more than one copy of an instance, so a restart would stop every copy at the same time. Deploy a new build instead: its copies switch one box at a time."
// restartCopies is the restart doors' check (F2). Every box serving the app
// reads an app-wide restart on the same serial move, and a narrowed one by
diff --git a/internal/console/replicaview_test.go b/internal/console/replicaview_test.go
index 421fa0c3e..c822d63f9 100644
--- a/internal/console/replicaview_test.go
+++ b/internal/console/replicaview_test.go
@@ -192,13 +192,13 @@ func TestReplicaVisibilityPrefersLiveHealth(t *testing.T) {
t.Fatalf("health %q with no hub reading, want %q", got.Health, healthUnknown)
}
tile := copiesLine(t, fx, browser)
- if strings.Contains(tile, "copies running") || !strings.Contains(tile, "2 of 2 copies unknown; 0 known running") {
+ if strings.Contains(tile, "copies running") || !strings.Contains(tile, "2 of 2 copies have unknown status; 0 are known to be running") {
t.Fatalf("overview tile with no hub reading, want every copy unknown and no running count:\n%s", tile)
}
// One copy read, one not: the known one is counted, the other unknown.
hubSays(fx, rec, nil, hubCopy(rec, "b1", "running", true, "v2", 2, 2))
- if tile := copiesLine(t, fx, browser); strings.Contains(tile, "copies running") || !strings.Contains(tile, "1 of 2 copies unknown; 1 known running") {
+ if tile := copiesLine(t, fx, browser); strings.Contains(tile, "copies running") || !strings.Contains(tile, "1 of 2 copies have unknown status; 1 are known to be running") {
t.Fatalf("overview tile with one copy unread:\n%s", tile)
}
diff --git a/internal/console/templates/app_overview.html b/internal/console/templates/app_overview.html
index e493f2ed0..e15477505 100644
--- a/internal/console/templates/app_overview.html
+++ b/internal/console/templates/app_overview.html
@@ -37,7 +37,7 @@
copy: SR-4-C01 when every copy has a reading, SR-4-C54 when any
does not, so a copy nobody can vouch for is never counted as
stopped (both provisional). */}}
- {{if .CopiesDesired}}<p class="tile-detail">{{if .CopiesUnknown}}{{.CopiesUnknown}} of {{.CopiesDesired}} copies unknown; {{.CopiesRunning}} known running{{else}}{{.CopiesRunning}} of {{.CopiesDesired}} copies running{{end}}</p>{{end}}
+ {{if .CopiesDesired}}<p class="tile-detail">{{if .CopiesUnknown}}{{.CopiesUnknown}} of {{.CopiesDesired}} copies have unknown status; {{.CopiesRunning}} are known to be running{{else}}{{.CopiesRunning}} of {{.CopiesDesired}} copies running{{end}}</p>{{end}}
</a>
<a class="tile" href="{{$.Nav}}/apps/{{$.AppName}}/instances">
<h2>Resources</h2>
diff --git a/internal/replicas/types.go b/internal/replicas/types.go
index fdd776294..6d8930ca4 100644
--- a/internal/replicas/types.go
+++ b/internal/replicas/types.go
@@ -41,7 +41,7 @@ type CoordinatorHeldError struct{ RetryAt time.Time }
func (e *CoordinatorHeldError) Error() string { return "replicas: coordinator held" }
-var ErrConsoleUnreachable = errors.New("console unreachable")
+var ErrConsoleUnreachable = errors.New("console could not be reached")
var ErrFenced = errors.New("replicas: fenced")
var ErrInvalid = errors.New("replicas: invalid transition")
diff --git a/scripts/stateless-replicas-drill/main.go b/scripts/stateless-replicas-drill/main.go
index d1d8f430a..ec3e4e679 100644
--- a/scripts/stateless-replicas-drill/main.go
+++ b/scripts/stateless-replicas-drill/main.go
@@ -110,7 +110,7 @@ const (
const drillSummary = "spread: %.0f%% on %s, %.0f%% on %s; failed reads before headers: %d; cut streams: %d; websocket reconnect: %.1fs"
// drillFailed (SR-4-C33, provisional) takes the reason.
-const drillFailed = "the dev drill did not pass: %s. restore the stopped box and complete cleanup before closing this session"
+const drillFailed = "the dev drill failed: %s. restore the stopped box and finish cleanup before closing this session"
func main() {
var cfg drillConfig