carlos / platform Public

copy: approve stateless replicas Plan 1 rows by delegated Luna pass

Luna (gpt-5.6-luna) reviewed all 75 rows of the stateless replicas
deck under the house rules. The twelve SR-1 rows are applied and
marked approved by delegation; four were reworded. SR-2..4 rows wait
for their plans; the raw pass and its seven flags are kept in
docs/superpowers/notes/stateless-replicas-copy-luna.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev b7bfbefbe7d1cc22f8d93f357b7dbbb8e3a2c3c9 parent 52db259
2 files changed, +103 −12
  • docs/superpowers/notes/stateless-replicas-copy-luna.md +91 −0
  • docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md +12 −12

Intent

Attributed to this commit: 32.2 g CO₂e (2,697,834 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-1-runtime, 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/docs/superpowers/notes/stateless-replicas-copy-luna.md b/docs/superpowers/notes/stateless-replicas-copy-luna.md
new file mode 100644
index 000000000..5dda7904c
--- /dev/null
+++ b/docs/superpowers/notes/stateless-replicas-copy-luna.md
@@ -0,0 +1,91 @@
+# Stateless replicas copy deck: Luna pass 2026-11-01
+
+Raw output of the delegated copy pass (codex exec -m gpt-5.6-luna, house rules brief). SR-1 rows applied to the deck; SR-2..4 rows are applied when their plan starts, flags go to Paul.
+
+| id | new text | why |
+|---|---|---|
+| SR-1-C01 | this release keeps no local database. CARLOS_DB, SQLite, restore and Litestream are off | Removes the ambiguous pairing of SQLite with restore. Matches the spec. |
+| SR-1-C02 | --stateless is available for binary and rootfs releases only | Unchanged. Matches the spec. |
+| SR-1-C03 | this version was already shipped with a different storage declaration. ship a new version | Unchanged. Clear lower-case error. |
+| SR-1-C04 | this instance changed before the operation finished. the app keeps serving | Replaces undefined coordinator jargon. |
+| SR-1-C05 | the release command's result is unknown, so the deploy stopped and the previous build keeps serving. deploy again to retry the command | Replaces coordinator jargon with the observed event. |
+| SR-1-C06 | the new copy is waiting for the instance's shared secrets. existing copies keep serving | Unchanged. Clear and matches the spec's shared-secret flow. |
+| SR-1-C07 | could not verify this build's storage declaration, so it was not started | Unchanged. Clear lower-case error. |
+| SR-1-C08 | this box needs platform <floor> or later to run a stateless release. update the box and try again | Unchanged. Keeps the placeholder and matches the release-floor rule. |
+| SR-1-C09 | the console did not confirm the stateless declaration, so the ship could not be verified | Unchanged. Clear lower-case error. |
+| SR-1-C10 | Ship with --stateless when your app keeps its data outside its box. The release gets no local database, CARLOS_DB or Litestream. You provide and operate its database and other data services. | Uses the ship action named by the spec and keeps the operator's responsibility clear. |
+| SR-1-C11 | 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. | Unchanged. Matches the release-floor rule and default behavior. |
+| SR-1-C12 | this instance changed before the coordination update finished. try again | Replaces undefined coordinator jargon. |
+| SR-2-C01 | number of copies for each instance on different boxes in the app's fleet (default 1) | Removes the awkward phrase “of each instance” while keeping the field meaning. |
+| SR-2-C02 | copies must be a whole number of at least 1 | Unchanged. Clear validation error. |
+| SR-2-C03 | <n> copies need <n> eligible boxes. this fleet has <available> | Unchanged. Keeps all placeholders and states the action needed implicitly. |
+| SR-2-C04 | more than one copy requires a stateless, always-on release. set --copies 1 before selecting this release | Unchanged. Matches the stateless and hibernation rules. |
+| SR-2-C05 | copies above 1 need every fleet box and the console on <floor> or later. update them and try again | Unchanged. Keeps the release-floor placeholder. |
+| SR-2-C06 | could not check every instance, release and fleet box, so the copy count was left unchanged. try again | Unchanged. Clear lower-case error. |
+| SR-2-C07 | more than one copy is available for platform-managed instances on an owned fleet only | Unchanged. Matches the first-version scope. |
+| SR-2-C08 | <app>: <n> copies requested for each instance | Unchanged. Keeps the CLI output and placeholders. |
+| SR-2-C09 | the console did not confirm <n> copies, so the change could not be verified | Unchanged. Clear lower-case error. |
+| SR-2-C10 | detaching <box> leaves <running> of <desired> copies available. the requested count stays <desired> | Unchanged. Matches the short-running behavior in the spec. |
+| SR-2-C11 | copies are still stopping on other boxes. wait for that to finish before selecting a release with a local database | Unchanged. Clear and matches the stateful-release guard. |
+| SR-2-C12 | this instance has an import or move in progress. finish it before changing the copy count | unchanged |
+| SR-2-C13 | unchanged | CLI usage text. Unchanged, not human copy. |
+| SR-2-C14 | 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. | Unchanged. Neutral example and matches the placement rule. |
+| SR-2-C15 | 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. | Unchanged. Matches the spec's spare-box behavior. |
+| SR-2-C16 | more than one copy requires overlap deploys. select an overlap-compatible release and app policy first | unchanged |
+| SR-2-C17 | apps set: nothing to set. pass --copies, --swap, --swap-concurrency, --egress-allow, --size or --interactive | Lowercases the instruction after the diagnostic prefix and keeps every flag. |
+| SR-3-C01 | no healthy copy is available. try again shortly | Unchanged. Clear lower-case error. |
+| SR-3-C02 | the connection to this copy ended before it answered. this request was not repeated | unchanged |
+| SR-3-C03 | this copy did not pass its health check | Unchanged. Clear lower-case status. |
+| SR-3-C04 | this box's tunnel is disconnected | Unchanged. Clear lower-case status. |
+| SR-3-C05 | waiting for this copy to pass its health check | Unchanged. Clear lower-case status. |
+| SR-3-C06 | this health answer belongs to an earlier instance or assignment | Unchanged. Clear lower-case status. |
+| SR-3-C07 | live replica health is unavailable on this system | unchanged |
+| SR-3-C08 | live copy health is unavailable | Unchanged. Clear lower-case status. |
+| SR-4-C01 | <running> of <desired> copies running | Unchanged. Keeps both count placeholders. |
+| SR-4-C02 | Box | Changes the all-caps table label to sentence case. |
+| SR-4-C03 | Build | Changes the all-caps table label to sentence case. |
+| SR-4-C04 | State | Changes the all-caps table label to sentence case. |
+| SR-4-C05 | Health | Changes the all-caps table label to sentence case. |
+| SR-4-C06 | Starting | Uses sentence case for the status label. |
+| SR-4-C07 | Running | Uses sentence case for the status label. |
+| SR-4-C08 | Down | Uses sentence case for the status label. |
+| SR-4-C09 | Failed | Uses sentence case for the status label. |
+| SR-4-C10 | Unknown | Uses sentence case for the status label. |
+| SR-4-C11 | Missing | Uses sentence case for the status label. |
+| SR-4-C12 | run on this healthy assigned copy's box. otherwise choose a healthy copy | Unchanged. Clear instruction with no extra jargon. |
+| SR-4-C13 | <box> is not a healthy assigned copy of this instance | Unchanged. Clear lower-case error. |
+| SR-4-C14 | no healthy copy is available for this command. try again after a copy is running | Unchanged. Clear lower-case error. |
+| SR-4-C15 | the release command failed, so no copy switched to the new build | Unchanged. Matches the failed-release behavior. |
+| SR-4-C16 | this copy's switch has not been confirmed. other copies keep serving and the deploy is stopped | Unchanged. Clear lower-case error. |
+| SR-4-C17 | switching <box> to <build> | Unchanged. Keeps both placeholders. |
+| SR-4-C18 | release complete. copies are switching one box at a time | Replaces the semicolon with two short sentences. |
+| SR-4-C19 | <size> leaves too little memory for the box on <box>. choose a smaller size | unchanged |
+| SR-4-C20 | this fleet size needs a complete memory report and a supported platform release on every possible destination. update the boxes and try again | unchanged |
+| SR-4-C21 | <size> is available on owned fleet boxes only | Unchanged. Matches the first-version scope. |
+| SR-4-C22 | this box has too little free memory for an overlap swap. the current copy keeps serving | Unchanged. Clear lower-case error. |
+| SR-4-C23 | 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 | Unchanged. Keeps the floor placeholder and action. |
+| SR-4-C24 | Copies survive the loss of a fleet box. Traffic still enters through one hub, so this version does not survive losing that hub. | Unchanged. Accurate limitation and normal docs capitalization. |
+| SR-4-C25 | 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. | Unchanged. Matches the deploy and worker rules. |
+| SR-4-C26 | 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. | Replaces undefined coordinator jargon with the event the reader can understand. |
+| SR-4-C27 | 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. | Unchanged. Matches the retry and streaming limits. |
+| SR-4-C28 | 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. | Unchanged. Neutral and matches the command behavior. |
+| SR-4-C29 | 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. | unchanged |
+| SR-4-C30 | 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. | Unchanged. Matches the hibernation and state transition rules. |
+| SR-4-C31 | another deploy is still finishing a copy's switch. wait for it to finish before deploying again | Unchanged. Clear lower-case error. |
+| SR-4-C32 | unchanged | Drill diagnostic. Unchanged, not human copy. |
+| SR-4-C33 | the dev drill failed: <reason>. restore the stopped box and finish cleanup before closing this session | Replaces “did not pass” with a direct failure message and keeps the placeholder. |
+| SR-4-C34 | Stateless replicas | Unchanged. Documentation title. |
+| SR-4-C35 | Release pending | Uses sentence case for the status label. |
+| SR-4-C36 | Release running | Uses sentence case for the status label. |
+| SR-4-C37 | Deploy complete | Uses sentence case for the status label. |
+| SR-4-C38 | Release result unknown | Uses sentence case for the status label. |
+
+## Flags
+
+- SR-2-C12: The spec does not describe import or move states. Confirm that this guard and its wording belong in this feature.
+- SR-2-C16: The spec describes overlap swaps and migration compatibility, but does not define an app policy or the term “overlap-compatible release.” Confirm the product rule and preferred user-facing terms.
+- SR-3-C02: The spec allows safe reads to retry on another copy, while this text says the request was not repeated. Confirm that this error is limited to non-retryable requests or revise the behavior and message together.
+- SR-3-C06: The spec requires stale health answers to be rejected in effect, but does not define “earlier instance or assignment.” Confirm that this is the intended diagnostic and define the terms if users can see it.
+- SR-4-C19: The spec says the size limits are left to the builder. Confirm the memory rule and keep this row only if it is decided elsewhere.
+- SR-4-C20: The spec requires supported releases and complete memory information for destinations, but does not define this exact fleet-size check. Confirm the rule and wording.
+- SR-4-C29: The spec lists the size tiers as a builder decision and does not approve the 1 GiB or one-eighth headroom rule. Confirm both before approval.
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 47ae497a9..2b3e1ea40 100644
--- a/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
+++ b/docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md
@@ -17,18 +17,18 @@ copy too. Internal wire enums are not an excuse to expose unreviewed text.
| id | file | text | status |
|---|---|---|---|
-| SR-1-C01 | ship_stateless.go | this release keeps no local database. CARLOS_DB, SQLite restore and Litestream are off | pending |
-| SR-1-C02 | internal/release/stateless.go | --stateless is available for binary and rootfs releases only | pending |
-| SR-1-C03 | internal/release/stateless.go | this version was already shipped with a different storage declaration. ship a new version | pending |
-| SR-1-C04 | internal/console/replicacoordinator.go | the instance's coordinator changed before this operation finished. the app keeps serving | pending |
-| SR-1-C05 | internal/activator/coordinator.go | the release command's result is unknown, so the deploy stopped and the previous build keeps serving. deploy again to retry the command | pending |
-| SR-1-C06 | internal/activator/stateless.go | the new copy is waiting for the instance's shared secrets. existing copies keep serving | pending |
-| SR-1-C07 | internal/activator/stateless.go | could not verify this build's storage declaration, so it was not started | pending |
-| SR-1-C08 | internal/console/rootfs.go | this box needs platform <floor> or later to run a stateless release. update the box and try again | pending |
-| SR-1-C09 | ship_stateless.go | the console did not confirm the stateless declaration, so the ship could not be verified | pending |
-| SR-1-C10 | docs/site/cli.md | Add --stateless when your app keeps its data outside its box. The release gets no local database, CARLOS_DB or Litestream. You provide and operate its database and other data services. | pending |
-| 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. | pending |
-| SR-1-C12 | internal/console/replicacoordinator.go | this instance changed while coordination was being updated. try again | pending |
+| SR-1-C01 | ship_stateless.go | this release keeps no local database. CARLOS_DB, SQLite, restore and Litestream are off | approved by delegation (Luna pass, 2026-11-01); was: this release keeps no local database. CARLOS_DB, SQLite restore and Litestream are off |
+| SR-1-C02 | internal/release/stateless.go | --stateless is available for binary and rootfs releases only | approved by delegation (Luna pass, 2026-11-01) |
+| SR-1-C03 | internal/release/stateless.go | this version was already shipped with a different storage declaration. ship a new version | approved by delegation (Luna pass, 2026-11-01) |
+| SR-1-C04 | internal/console/replicacoordinator.go | this instance changed before the operation finished. the app keeps serving | approved by delegation (Luna pass, 2026-11-01); was: the instance's coordinator changed before this operation finished. the app keeps serving |
+| SR-1-C05 | internal/activator/coordinator.go | the release command's result is unknown, so the deploy stopped and the previous build keeps serving. deploy again to retry the command | approved by delegation (Luna pass, 2026-11-01) |
+| SR-1-C06 | internal/activator/stateless.go | the new copy is waiting for the instance's shared secrets. existing copies keep serving | approved by delegation (Luna pass, 2026-11-01) |
+| SR-1-C07 | internal/activator/stateless.go | could not verify this build's storage declaration, so it was not started | approved by delegation (Luna pass, 2026-11-01) |
+| SR-1-C08 | internal/console/rootfs.go | this box needs platform <floor> or later to run a stateless release. update the box and try again | approved by delegation (Luna pass, 2026-11-01) |
+| SR-1-C09 | ship_stateless.go | the console did not confirm the stateless declaration, so the ship could not be verified | approved by delegation (Luna pass, 2026-11-01) |
+| SR-1-C10 | docs/site/cli.md | Ship with --stateless when your app keeps its data outside its box. The release gets no local database, CARLOS_DB or Litestream. You provide and operate its database and other data services. | approved by delegation (Luna pass, 2026-11-01); was: Add --stateless when your app keeps its data outside its box. The release gets no local database, CARLOS_DB or Litestream. You provide and operate its database and other data services. |
+| 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 |
## Plan 2: count and placement