carlos / platform Public

docs: Luna copy brief for stateless replicas (#511)

Paul's 10-25 delegation: platform CLI, UI and docs copy gets a Luna pass;
Paul sees only the flags.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7407740f864ed0653d4474180b9db8fd62a5b272 parent 61eadf4
1 file changed, +59 −0
  • docs/superpowers/notes/LUNA-COPY-BRIEF-stateless-replicas-4.md +59 −0

CI cancelled — superseded by a newer push — run details

Intent

Human

<task-notification> <task-id>a1759874a712527fe</task-id> <tool-use-id>toolu_01KNCHezfK4WCmJceE8VoDbs</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:** `61eadf4f fix: close the create fallback and pin drill evidence (#511 T5 round 2)`, local, not pushed. I also deleted a stray `stateless-replicas-drill` binary that a `go build` had left in the worktree; it was never committed. - **Tests:** all the rerun suites pass: the new tests, the broad console set, drill, grouproll, region HA, docsite, census and the three cross-compiles. All 5 deliberate code breaks were caught (items 1, 2, 4 and 5). The first version of the item 1 test didn't catch its break, because its record defaults to hibernating, so I added a direct always-on case. The root-read census is unchanged, so no re-proposal was needed. The record-write census digest for the drill's live-view check (`drill.untilView`) is updated. - **Fixes:** 1. A create that can't read the copies config now gets a 503 with Retry-After. The two create checks the round 1 refusal made unreachable are removed, and two misleading test names are fixed. 2. Websocket evidence counts only a drop after the stop, on the stopped box, followed by a reconnect to the survivor within a minute. Every upgrade must name a drill box, and redials back off. 3. Cancelling the drill no longer waits on stdin. 4. Ordering follows the ruled invariant; Astra's counterexample fails and the sequential case passes. 5. The build check reads only the `BOX STATE VERSION` table rows. 6. Every carlos command puts its flags before the fleet name. 7. The docs now say an operator rolling a box back to its previous build after a finished update is not prevented. - **Concerns:** - The stop-reconnect rule assumes the edge closes the client's websocket when its box dies, and that the fixture names its box in the upgrade answer. If either is wrong, the drill fails rather than passes. - A create into an app whose copies config can't be read now gets a 503 whatever its copy count. That is a behaviour change at the create door, though narrower than the old fail-open. - **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 2 section at the end).</result> <usage><subagent_tokens>595005</subagent_tokens><tool_uses>31</tool_uses><duration_ms>1300008</duration_ms></usage> </task-notification>

Human

OK. Anything for me?

Attributed to this commit: 39.1 g CO₂e (5,032,233 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/docs/superpowers/notes/LUNA-COPY-BRIEF-stateless-replicas-4.md b/docs/superpowers/notes/LUNA-COPY-BRIEF-stateless-replicas-4.md
new file mode 100644
index 000000000..ada16a9f2
--- /dev/null
+++ b/docs/superpowers/notes/LUNA-COPY-BRIEF-stateless-replicas-4.md
@@ -0,0 +1,59 @@
+# Copy pass: stateless replicas (#511), rows pending review
+
+You are the copy-review gate itself for this set. Paul delegated copy review
+of platform CLI, UI and docs copy to you on 2026-10-25, so your verdicts are
+the review. Do NOT run the copy-review skill and do NOT start any server. You
+are writing a review report into a scratch file.
+
+CARLOS is a hosting platform. Stateless replicas let an app that keeps no
+data on the box (its database and Redis live elsewhere) run as several
+copies, one per box of a customer's own fleet. A deploy runs the app's
+release command once, then switches the copies box by box. If a box dies,
+the other copies keep serving.
+
+The readers are app owners and their developers. They read these strings in
+`carlos` CLI output, in the console's app page, in refusals from a command
+they just ran, and in the docs page. They are technical but not platform
+operators.
+
+## What to review
+
+1. `docs/superpowers/plans/2026-11-01-stateless-replicas-copy.md`: every
+ row whose status is pending or provisional (SR-1 to SR-4). Rows already
+ approved stay as they are unless they contradict a fact.
+2. `docs/site/stateless-replicas.md`: the whole page.
+
+You may read the code a row names to check a fact (the branch is
+`stateless-replicas-4`). Change nothing on disk.
+
+## House rules (Paul's)
+
+- Plain, direct voice. Say what happened, then what to do. No marketing
+ tone, no exclamation marks, no "simply", no throat-clearing.
+- No em or en dashes used as dashes. Use a full stop and a new sentence.
+- Human text only. Leave error fragments, log keys, JSON keys and flag names
+ alone.
+- No tenant or customer names. Examples use neutral names (shop,
+ example.com, box-a).
+- Keep every placeholder (`%s`, `%d`, `%v`, `{{...}}`) in the same order. If
+ you must reorder one, say so in "why".
+- CLI refusals are lower case, like the rest of the CLI's errors, and end
+ without a full stop where the existing rows do.
+- Never tell the user to run a command on a box. Point to a `carlos` command
+ or the console.
+- Undefined jargon is not fine. "Copy", "box", "fleet", "release command"
+ and "deploy" are the product's words; "permit", "ACK", "term",
+ "coordinator", "lifetime" and "incarnation" are internal and must not
+ reach the user.
+
+## What to return
+
+Write `/home/paulca/.cache/tmp/claude-1001/sr4-copy/luna-review.md` with:
+
+1. A table `key | new | why`, with only the rows you change. Rows you leave
+ alone are approved as they are. For the docs page, use the key
+ `docs:<heading or first words of the paragraph>`.
+2. A `## Flags` section with only what needs a person: a fact in the copy
+ that conflicts with the code, a placeholder you can't make work, or a
+ string that needs splitting or a product decision. Keep it short. Write
+ "none" if there are none.