| 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) | |