carlos / platform Public

docs: fleet sizes in the CLI and docs (#892 S2)

apps set and instances set list the fleet sizes in help and in the bad-size
errors, and print the console's warnings after the committed lines. The three
docs pages and the instances set usage name the sizes; the approved-copy
records and CLI golden follow.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e169cfe9db26839628e74a290c48e62fec5df71a parent 3113805
10 files changed, +68 −20
  • approved_stateless_scale_copy_test.go +1 −1
  • apps_policy.go +17 −4
  • apps_policy_test.go +33 −0
  • docs/site/cli.md +2 −0
  • docs/site/one-instance-per-customer.md +1 −1
  • docs/site/stateless-replicas.md +1 −1
  • docs/superpowers/plans/2026-10-07-instance-settings-5-copy.json +1 −1
  • docs/superpowers/plans/2026-10-21-instance-policy-copy.json +7 −7
  • internal/updatewords/words_surfaces.go +1 −1
  • testdata/clireg-golden.jsonl +4 −4

Intent

Human

<task-notification> <task-id>aa246ac98e0815e5f</task-id> <tool-use-id>toolu_01QcToSYcQyVzBnPKrj1wKn1</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/29a43d67-87d2-4557-8e9d-9b70d303a90b/tasks/aa246ac98e0815e5f.output</output-file> <status>completed</status> <summary>Agent "Implement S2 Task 4" 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 (fix round 2) Commits: `de787661` (Task 4), `8090db11` (fix round 1), `31138056` (fix round 2). Not pushed. Fix R2-1: I added a test hook, `Manager.afterDone`, that is empty in production and runs as the last step of `scheduler.done`, after the event is sent. The test now waits for each attempt to finish through that hook instead of on the journal line. The exact counts are unchanged (1 warning after three refusals, 2 after it clears and comes back), so a duplicate warning still fails the test, and removing the deduplication still makes it fail. Production behaviour is unchanged. Tests: `TestFleetNoRoom` passes with `-race -count=20`, and the whole rollout package passes. Census: the card changed because `scheduler.done` gained the hook (its read sites are unchanged at 7). I re-proposed with the same 12 claims, adding one sentence about the hook to the `scheduler.done` claim. Decision classes: reads 0, new 2, other 0; seal now `8728f8fc`. Census tests pass. Concerns: the `scheduler.done` change needs another census look, since round 2 approved the version without the hook. Report: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s2-fleet-sizes/task-4-report.md (a "Fix round 2" section is added at the end)</result> <usage><subagent_tokens>237145</subagent_tokens><tool_uses>9</tool_uses><duration_ms>290677</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>brwte2wke</task-id> <tool-use-id>toolu_01DrdcMwLsMLjXnnXzMZPo56</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/29a43d67-87d2-4557-8e9d-9b70d303a90b/tasks/brwte2wke.output</output-file> <status>completed</status> <summary>Background command "WS=/home/paulca/amadan.net/carlos/platform/.claude/worktrees/stateless-scale-1/.superpowers/sdd/2026-11-22-892-s2-fleet-sizes; $WS/astra.sh $WS/astra-task4-r3-brief.md $WS/task-4-rereview-2-astra.md &gt; $WS/astra-task4-r3.log 2&gt;&amp;1" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 5.13 g CO₂e (640,828 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-scale-2-fleet-sizes, 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_scale_copy_test.go b/approved_stateless_scale_copy_test.go
index 74cca3cfc..ae4f11206 100644
--- a/approved_stateless_scale_copy_test.go
+++ b/approved_stateless_scale_copy_test.go
@@ -10,7 +10,7 @@ import (
// The #892 copy deck (stateless replicas at production scale).
const statelessScaleCopyDeck = "docs/superpowers/plans/2026-11-11-stateless-replicas-scale-copy.md"
-var statelessScaleBuiltCopy = []string{"PS-1-C01"}
+var statelessScaleBuiltCopy = []string{"PS-1-C01", "PS-2-C06", "PS-2-C07", "PS-2-C08", "PS-2-C10", "PS-2-C11", "PS-2-C12"}
func statelessScaleCopyRows(t *testing.T) []copyRow {
t.Helper()
diff --git a/apps_policy.go b/apps_policy.go
index b39815bd9..313631734 100644
--- a/apps_policy.go
+++ b/apps_policy.go
@@ -34,13 +34,13 @@ import (
// Copy (approved by delegation, Luna pass 2026-10-26; deck copy-instance-policy-plan1.md).
const (
appsSetFlagEgress = `private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; "" clears it. system operators only`
- appsSetFlagSize = "the size the app's instances run at: small, standard, large or xlarge. default uses the build's size. system operators only"
- instancesSetFlagSize = "this instance's size: small, standard, large or xlarge. default follows the app's size. system operators only"
+ appsSetFlagSize = "the size the app's instances run at: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default uses the build's size. system operators only"
+ instancesSetFlagSize = "this instance's size: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default follows the app's size. system operators only"
appsSetPolicyUsage = `Only system operators may pass --egress-allow or --size. A change reaches
the app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box.`
appsSetBadEgress = "apps set: --egress-allow: %v"
- appsSetBadSize = "apps set: --size is small, standard, large, xlarge or default, not %q"
- instancesSetBadSize = "instances set: --size is small, standard, large, xlarge or default, not %q"
+ appsSetBadSize = "apps set: --size is small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or default, not %q"
+ instancesSetBadSize = "instances set: --size is small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or default, not %q"
appsPolicyOldConsole = "not found: either %s is not an app in this account, you are not a system operator, or this console predates app policies (deploy a console built from current main)"
appsPolicyChanged = "the policy changed while this ran. run it again"
appsSetEgressDone = "egress allow for %s set to %s"
@@ -93,6 +93,9 @@ type apiAppPolicy struct {
// Committed is each checked box's memory figures after a size change
// (#329); absent when nothing changed a size, or from an older console.
Committed []sizeCommittedBox `json:"committed,omitempty"`
+ // Warnings is the console's own text for a size change that may not fit
+ // (PS-2-C03); printed as it comes, PUT only.
+ Warnings []string `json:"warnings,omitempty"`
}
// sizeCommittedBox is one box in the reply's committed list (the console's
@@ -121,6 +124,14 @@ func printSizeCommitted(w io.Writer, boxes []sizeCommittedBox) {
}
}
+// printPolicyWarnings prints each warning the console composed, one per line,
+// as it is.
+func printPolicyWarnings(w io.Writer, warnings []string) {
+ for _, s := range warnings {
+ fmt.Fprintln(w, s)
+ }
+}
+
// apiPolicyBody is the part of the policy object (apppolicy.Policy) the CLI
// shows.
type apiPolicyBody struct {
@@ -284,6 +295,7 @@ func appsSetPolicyRun(ctx context.Context, sess *apiSession, acct apiAcct, app s
fmt.Fprintf(stdout, appsSetSizeDone+"\n", app, got.Policy.DefaultSize)
}
printSizeCommitted(stdout, got.Committed)
+ printPolicyWarnings(stdout, got.Warnings)
fmt.Fprintln(stdout, sizeTakesEffectLine)
}
return nil
@@ -303,6 +315,7 @@ func instancesSetSizeRun(ctx context.Context, sess *apiSession, acct apiAcct, ap
fmt.Fprintf(stdout, instancesSetSizeDefault+"\n", host)
}
printSizeCommitted(stdout, got.Committed)
+ printPolicyWarnings(stdout, got.Warnings)
fmt.Fprintln(stdout, sizeTakesEffectLine)
return nil
}
diff --git a/apps_policy_test.go b/apps_policy_test.go
index 190a68d16..8eefa7b21 100644
--- a/apps_policy_test.go
+++ b/apps_policy_test.go
@@ -497,3 +497,36 @@ func TestSizeChangePrintsCommitted(t *testing.T) {
t.Fatalf("instances set: stdout = %q, want %q", out.String(), want)
}
}
+
+// A reply's warnings print as the console wrote them, one per line, after
+// the committed lines, from both verbs; a reply with none prints none.
+func TestSizeChangePrintsWarnings(t *testing.T) {
+ out := captureStdout(t)
+ const warn = "annie: sizes add up to more than the box can give"
+ line := "annie: 2304 MiB committed to awake instances, of 3884 MiB. 1200 MiB free\n"
+ body := `"committed":[{"box":"annie","committed_mib":2304,"total_mib":3884,"free_mib":1200}],"warnings":["` + warn + `"]`
+
+ c := &policyConsole{getBody: `{"policy":{"v":1},"etag":""}`,
+ putBody: `{"policy":{"v":1,"default_size":"8g"},"etag":"e1",` + body + `}`}
+ change, err := policyChangeFor(t, "--size", "8g")
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err := appsSetRun(context.Background(), c.session(t), apiAcct{Seg: "bab"}, "shop", nil, nil, change, nil); err != nil {
+ t.Fatal(err)
+ }
+ if want := fmt.Sprintf(appsSetSizeDone+"\n", "shop", "8g") + line + warn + "\n" + sizeTakesEffectLine + "\n"; out.String() != want {
+ t.Fatalf("apps set: stdout = %q, want %q", out.String(), want)
+ }
+
+ out.Reset()
+ c = &policyConsole{getBody: `{"policy":{"v":1},"etag":"e1"}`,
+ putBody: `{"policy":{"v":1,"sizes":{"shop-a.example.com":{"size":"8g","created_at":"2026-10-21T00:00:00Z"}}},"etag":"e2",` + body + `}`}
+ size := "8g"
+ if err := instancesSetRun(context.Background(), c.session(t), apiAcct{Seg: "bab"}, "shop", "shop-a.example.com", nil, nil, &size); err != nil {
+ t.Fatal(err)
+ }
+ if want := fmt.Sprintf(instancesSetSizeDone+"\n", "shop-a.example.com", "8g") + line + warn + "\n" + sizeTakesEffectLine + "\n"; out.String() != want {
+ t.Fatalf("instances set: stdout = %q, want %q", out.String(), want)
+ }
+}
diff --git a/docs/site/cli.md b/docs/site/cli.md
index 3923a88ca..ea1a7d4a4 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -265,6 +265,8 @@ A change that adds an address is checked against the deployment's boxes. An addr
The sizes are `small` (256 MiB of memory), `standard` (512 MiB), `large` (1 GiB) and `xlarge` (2 GiB), with CPU and IO to match. `carlos apps set --size` sets the app's size, and `--size default` goes back to the build's size. `carlos instances set --size` gives one instance a size of its own, and `--size default` makes it follow the app's size again. A size above `standard` is refused when it is more than a quarter of the memory on the smallest box the app can run on, or when one of those boxes reports no memory total.
+On your own fleet, an app can also use 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, measured in GiB. These sizes are refused if the app can run anywhere else. An instance at one of them leaves its box at least 1 GiB or one eighth of the box's memory, whichever is larger, so a 32 GiB box can use 24g at most. Every box the app can run on must report its memory and run a release that supports these sizes. The console must also run that release. Sizes are limits, not reservations. The console warns when the sizes on one box add up to more than it can give. A deploy starts the new build beside the old one. The box needs free memory for the new build's full size. If it does not, the deploy does not start the new build and the old build keeps serving.
+
After a size change, the command prints each box's memory committed to awake instances, out of its total. CPU and IO change at once. A larger size's memory applies when an instance next starts or is deployed. A smaller size applies only when the instance starts cold. Restart it to apply the new memory now. `carlos status --layout` shows the size each instance runs at.
The console records a change, and the app's boxes apply it. A box that follows the deployment's change index does so within seconds; any other box within about 33 minutes. `carlos apps show` prints the egress allow, the app's size, and every instance with a size of its own. A `!` before an address means one of the deployment's boxes now holds it.
diff --git a/docs/site/one-instance-per-customer.md b/docs/site/one-instance-per-customer.md
index 5ea6b7c35..ba0fc109e 100644
--- a/docs/site/one-instance-per-customer.md
+++ b/docs/site/one-instance-per-customer.md
@@ -118,7 +118,7 @@ The copy is read-only, and the live instance is untouched.
## When one customer gets busy
-An operator can give that one instance a bigger size: `small` (256 MiB), `standard` (512 MiB), `large` (1 GiB) or `xlarge` (2 GiB). See [carlos apps](/docs/cli#carlos-apps).
+An operator can give that one instance a bigger size: `small` (256 MiB), `standard` (512 MiB), `large` (1 GiB) or `xlarge` (2 GiB), and on the operator's own fleet one of `4g`, `6g`, `8g`, `12g`, `16g`, `24g`, `32g`, `48g`, `96g` or `192g`. See [carlos apps](/docs/cli#carlos-apps).
To give customers machines of your own, place the app on your own fleet when you create it (`--place fleet/<name>`).
diff --git a/docs/site/stateless-replicas.md b/docs/site/stateless-replicas.md
index 7f7ee463a..6e1ec8535 100644
--- a/docs/site/stateless-replicas.md
+++ b/docs/site/stateless-replicas.md
@@ -18,7 +18,7 @@ carlos apps set shop --copies 2
Each instance of shop gets two copies on different eligible fleet boxes. The command refuses a count larger than the eligible fleet.
-A box is eligible only if it has room for the instance's size: a size may use at most a quarter of a box's memory, and an app with no size set uses standard. If too few boxes have room, or the box already serving an instance has none, the command says so and changes nothing.
+A box is eligible only if it has room for the instance's size. Up to xlarge, a size may use at most a quarter of a box's memory. The fleet sizes 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g and 192g may use all but 1 GiB or one eighth of the box's memory, whichever is larger. An app with no size set uses standard. If too few boxes have room, or the box already serving an instance has none, the command says so and changes nothing.
Raising the count adds the new copies one box at a time, on the build the instance already runs. The copy that is already running keeps serving, and the release command does not run again. Once a deploy has finished on all of an instance's copies, copies added later start on that build straight away, without waiting for each other.
diff --git a/docs/superpowers/plans/2026-10-07-instance-settings-5-copy.json b/docs/superpowers/plans/2026-10-07-instance-settings-5-copy.json
index b9d912f61..328bf4962 100644
--- a/docs/superpowers/plans/2026-10-07-instance-settings-5-copy.json
+++ b/docs/superpowers/plans/2026-10-07-instance-settings-5-copy.json
@@ -130,7 +130,7 @@
{
"id": "settings.cli.set-usage",
"file": "internal/updatewords/words_surfaces.go",
- "text": "usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|default] (an empty value clears an update setting)"
+ "text": "usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|4g|6g|8g|12g|16g|24g|32g|48g|96g|192g|default] (an empty value clears an update setting)"
},
{
"id": "settings.cli.update-done",
diff --git a/docs/superpowers/plans/2026-10-21-instance-policy-copy.json b/docs/superpowers/plans/2026-10-21-instance-policy-copy.json
index e07e57792..0ac8de500 100644
--- a/docs/superpowers/plans/2026-10-21-instance-policy-copy.json
+++ b/docs/superpowers/plans/2026-10-21-instance-policy-copy.json
@@ -23,8 +23,8 @@
{"id": "IP1-18", "file": "internal/console/policylease.go", "text": "this console is not set up to write app policies (no writer lease). deploy a console built from current main"},
{"id": "IP1-19", "file": "internal/console/policylease.go", "text": "this console stopped being the policy writer during the change, so it may not have been published. read the policy again before you retry"},
{"id": "IP1-20", "file": "internal/console/apipolicy.go", "text": "nothing to set: send egress_allow, default_size or size"},
- {"id": "IP1-21", "file": "internal/console/apipolicy.go", "text": "default_size must be small, standard, large or xlarge, or empty for the build's size"},
- {"id": "IP1-22", "file": "internal/console/apipolicy.go", "text": "size must be small, standard, large, xlarge or default"},
+ {"id": "IP1-21", "file": "internal/console/apipolicy.go", "text": "default_size must be small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or empty for the build's size"},
+ {"id": "IP1-22", "file": "internal/console/apipolicy.go", "text": "size must be small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or default"},
{"id": "IP1-23", "file": "internal/console/apipolicy.go", "text": "no instance %s in this app"},
{"id": "IP1-24", "file": "internal/console/apipolicy.go", "text": "send If-Match with the policy's etag, or If-None-Match: * when there is none"},
{"id": "IP1-25", "file": "internal/console/apipolicy.go", "text": "the policy changed since it was read. read it again and retry"},
@@ -51,8 +51,8 @@
{"id": "IP1-58", "file": "internal/console/appsettings.go", "text": "An earlier app named %s in %s had an instance policy set by an operator, so this app cannot be moved there. Ask an operator to move it."},
{"id": "IP1-59", "file": "internal/console/appsettings.go", "text": "Could not check the instance policies, so nothing was moved. Try again."},
{"id": "IP1-31", "file": "apps_policy.go", "text": "apps set: --egress-allow: %v"},
- {"id": "IP1-32", "file": "apps_policy.go", "text": "apps set: --size is small, standard, large, xlarge or default, not %q"},
- {"id": "IP1-33", "file": "apps_policy.go", "text": "instances set: --size is small, standard, large, xlarge or default, not %q"},
+ {"id": "IP1-32", "file": "apps_policy.go", "text": "apps set: --size is small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or default, not %q"},
+ {"id": "IP1-33", "file": "apps_policy.go", "text": "instances set: --size is small, standard, large, xlarge, one of 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g, or default, not %q"},
{"id": "IP1-34", "file": "apps_policy.go", "text": "not found: either %s is not an app in this account, you are not a system operator, or this console predates app policies (deploy a console built from current main)"},
{"id": "IP1-35", "file": "apps_policy.go", "text": "the policy changed while this ran. run it again"},
{"id": "IP1-36", "file": "apps_policy.go", "text": "egress allow for %s set to %s"},
@@ -66,8 +66,8 @@
{"id": "IP3-11", "file": "apps_policy.go", "text": "the new memory size applies at the next start. a larger size also applies at the next deploy; a smaller size waits for a cold start. CPU and IO apply now"},
{"id": "IP1-44", "file": "apps_policy.go", "text": "apps show works through a console, and this shell is in direct bucket mode (CARLOS_DEPLOYMENT_BUCKET or CARLOS_DEPLOYMENT_DIR is set). log in instead: carlos auth login --console <url>"},
{"id": "IP1-50", "file": "apps_policy.go", "text": "private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; \"\" clears it. system operators only"},
- {"id": "IP1-51", "file": "apps_policy.go", "text": "the size the app's instances run at: small, standard, large or xlarge. default uses the build's size. system operators only"},
- {"id": "IP1-52", "file": "apps_policy.go", "text": "this instance's size: small, standard, large or xlarge. default follows the app's size. system operators only"},
+ {"id": "IP1-51", "file": "apps_policy.go", "text": "the size the app's instances run at: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default uses the build's size. system operators only"},
+ {"id": "IP1-52", "file": "apps_policy.go", "text": "this instance's size: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default follows the app's size. system operators only"},
{"id": "IP1-53", "file": "apps_policy.go", "text": "Only system operators may pass --egress-allow or --size. A change reaches\nthe app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box."},
{"id": "IP1-54", "file": "apps_policy.go", "text": "usage: carlos apps show <app> [--account <sqid|name>] [--account-id <sqid>] [--console <origin>]"},
{"id": "IP1-60", "file": "apps_policy.go", "text": "egress allow %s"},
@@ -80,7 +80,7 @@
{"id": "IP1-55", "file": "apps.go", "text": " show <app> the app's egress allow and sizes. system operators only\n"},
{"id": "IP1-56", "file": "apps.go", "text": "usage: carlos apps <create|place|build-probe|set|show|delete|restore|ttl|keep|list> [flags] <app>"},
{"id": "IP1-57", "file": "apps_swap.go", "text": "apps set: nothing to set. pass --copies, --swap, --swap-concurrency, --egress-allow, --size or --interactive", "superseded_by": "SR-2-C17", "note": "Replaced verbatim by SR-2-C17 in the stateless replicas copy deck for Plan 2 slice 1a."},
- {"id": "GAP-1", "file": "internal/updatewords/words_surfaces.go", "text": "usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|default] (an empty value clears an update setting)"},
+ {"id": "GAP-1", "file": "internal/updatewords/words_surfaces.go", "text": "usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|4g|6g|8g|12g|16g|24g|32g|48g|96g|192g|default] (an empty value clears an update setting)"},
{"id": "GAP-2", "file": "apps_swap.go", "text": "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>]\n", "superseded_by": "SR-2-C13", "note": "Replaced verbatim by SR-2-C13 in the stateless replicas copy deck for Plan 2 slice 1a."},
{"id": "GAP-3", "file": "apps_swap.go", "text": "app whose swap or instance policy to set"},
{"id": "IP3-04", "file": "status_instances.go", "text": "BOX REGION HOST LAYOUT INSTANCE-SANDBOX SIZE EGRESS REASON"},
diff --git a/internal/updatewords/words_surfaces.go b/internal/updatewords/words_surfaces.go
index 6317ef17c..407dfa6ef 100644
--- a/internal/updatewords/words_surfaces.go
+++ b/internal/updatewords/words_surfaces.go
@@ -28,7 +28,7 @@ func init() {
Context: "Two entries added to the list of verbs printed by carlos instances with no verb, after retry."},
Draft{ID: "settings.cli.instances-usage-para", Text: "set changes how one instance takes new builds: --updates auto or manual,\n--channel (the app's pipeline rules apply), --major to stay on one major\nversion of stable, and --pin to run exactly one build. An empty value clears\na setting, so the app's default applies again. update asks the instance's\nbox to install the newest build it considers ready, even with manual\nupdates; --fast-track skips the safety delay and needs an account owner.",
Context: "Paragraph added to the carlos instances usage text, after the paragraph about retry."},
- Draft{ID: "settings.cli.set-usage", Text: "usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|default] (an empty value clears an update setting)",
+ Draft{ID: "settings.cli.set-usage", Text: "usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|4g|6g|8g|12g|16g|24g|32g|48g|96g|192g|default] (an empty value clears an update setting)",
Context: "Usage line for carlos instances set."},
Draft{ID: "settings.cli.set-done", Text: "%s: updates %s, channel %s, major %s, pin %s",
Context: "Printed after a change. Host, then each setting as it now stands (none where unset)."},
diff --git a/testdata/clireg-golden.jsonl b/testdata/clireg-golden.jsonl
index 1cc1f793f..8fefd6e7e 100644
--- a/testdata/clireg-golden.jsonl
+++ b/testdata/clireg-golden.jsonl
@@ -68,8 +68,8 @@
{"case":"apps region | -h","argv":["apps","region","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps region --app <name> [--set <region>] [--account <sqid|name>] [--account-id <sqid>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app whose region to show or change\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --set <string> the region where this app's new instances start. existing instances stay where they are. only account owners and deployment operators can change it\n"}
{"case":"apps restore | --zz-unknown-flag","argv":["apps","restore","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps restore [flags]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --console <string> console origin to restore through (signed-in mode only; default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
{"case":"apps restore | -h","argv":["apps","restore","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps restore [flags]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one; ops in direct mode)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account; this is the flag an ambiguity error tells you to use\n --console <string> console origin to restore through (signed-in mode only; default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"apps set | --zz-unknown-flag","argv":["apps","set","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: 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>]\n\n --swap overlap|hold how a running instance takes a new build. overlap\n starts the new build beside the old one and switches\n once it answers its health check, so no request\n waits. hold stops the old one first, and requests\n wait until the new one is up. Use hold when two\n builds cannot share the database.\n --swap-concurrency <n> how many instances of the app may swap at once on\n one box, after the first has stayed up for ten\n seconds. 1 or more; it starts at 1.\n\nAny member of the app may change these. They reach the app's boxes with its\nconfig, within seconds.\n\n --interactive on|off whether members may open a terminal session on the app's instances, with carlos run -it or carlos console. it is off until an owner turns it on. a session can read and change everything the instance can\n\n carlos apps set <app> [--instance-control <settings>] [--default-updates auto|manual] [--default-channel <channel>] [--default-major <n>]\n\n --instance-control <settings> the settings an instance may change itself:\n any of updates, channel, major and pin,\n comma-separated. Empty keeps them all for\n the app.\n --default-updates auto|manual what instances do when they have not\n chosen. Empty restores auto.\n --default-channel <channel> the channel new instances follow.\n --default-major <n> hold instances on stable at this major\n version. Empty clears it.\n\nOnly system operators may pass --egress-allow or --size. A change reaches\nthe app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose swap or instance policy to set\n --console <string> console to act through (default: the only logged-in one)\n --copies <int> number of copies for each instance on different boxes in the app's fleet (default 1)\n --default-channel <string> the channel new instances follow\n --default-major <string> hold instances on stable at this major version; empty clears\n --default-updates <string> auto or manual: what instances do when they have not chosen; empty restores auto\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --egress-allow <string> private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; \"\" clears it. system operators only\n --instance-control <string> settings an instance may change itself: any of updates, channel, major, pin, comma-separated; empty keeps them all for the app\n --interactive <string> on or off: whether members may open terminal sessions on the app's instances\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n --size <string> the size the app's instances run at: small, standard, large or xlarge. default uses the build's size. system operators only\n --swap <string> overlap or hold: how a running instance takes a new build\n --swap-concurrency <int> how many instances of the app may swap at once on one box (1 or more)\n"}
-{"case":"apps set | -h","argv":["apps","set","-h"],"exit":0,"stdout":"","stderr":"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>]\n\n --swap overlap|hold how a running instance takes a new build. overlap\n starts the new build beside the old one and switches\n once it answers its health check, so no request\n waits. hold stops the old one first, and requests\n wait until the new one is up. Use hold when two\n builds cannot share the database.\n --swap-concurrency <n> how many instances of the app may swap at once on\n one box, after the first has stayed up for ten\n seconds. 1 or more; it starts at 1.\n\nAny member of the app may change these. They reach the app's boxes with its\nconfig, within seconds.\n\n --interactive on|off whether members may open a terminal session on the app's instances, with carlos run -it or carlos console. it is off until an owner turns it on. a session can read and change everything the instance can\n\n carlos apps set <app> [--instance-control <settings>] [--default-updates auto|manual] [--default-channel <channel>] [--default-major <n>]\n\n --instance-control <settings> the settings an instance may change itself:\n any of updates, channel, major and pin,\n comma-separated. Empty keeps them all for\n the app.\n --default-updates auto|manual what instances do when they have not\n chosen. Empty restores auto.\n --default-channel <channel> the channel new instances follow.\n --default-major <n> hold instances on stable at this major\n version. Empty clears it.\n\nOnly system operators may pass --egress-allow or --size. A change reaches\nthe app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose swap or instance policy to set\n --console <string> console to act through (default: the only logged-in one)\n --copies <int> number of copies for each instance on different boxes in the app's fleet (default 1)\n --default-channel <string> the channel new instances follow\n --default-major <string> hold instances on stable at this major version; empty clears\n --default-updates <string> auto or manual: what instances do when they have not chosen; empty restores auto\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --egress-allow <string> private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; \"\" clears it. system operators only\n --instance-control <string> settings an instance may change itself: any of updates, channel, major, pin, comma-separated; empty keeps them all for the app\n --interactive <string> on or off: whether members may open terminal sessions on the app's instances\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n --size <string> the size the app's instances run at: small, standard, large or xlarge. default uses the build's size. system operators only\n --swap <string> overlap or hold: how a running instance takes a new build\n --swap-concurrency <int> how many instances of the app may swap at once on one box (1 or more)\n"}
+{"case":"apps set | --zz-unknown-flag","argv":["apps","set","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: 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>]\n\n --swap overlap|hold how a running instance takes a new build. overlap\n starts the new build beside the old one and switches\n once it answers its health check, so no request\n waits. hold stops the old one first, and requests\n wait until the new one is up. Use hold when two\n builds cannot share the database.\n --swap-concurrency <n> how many instances of the app may swap at once on\n one box, after the first has stayed up for ten\n seconds. 1 or more; it starts at 1.\n\nAny member of the app may change these. They reach the app's boxes with its\nconfig, within seconds.\n\n --interactive on|off whether members may open a terminal session on the app's instances, with carlos run -it or carlos console. it is off until an owner turns it on. a session can read and change everything the instance can\n\n carlos apps set <app> [--instance-control <settings>] [--default-updates auto|manual] [--default-channel <channel>] [--default-major <n>]\n\n --instance-control <settings> the settings an instance may change itself:\n any of updates, channel, major and pin,\n comma-separated. Empty keeps them all for\n the app.\n --default-updates auto|manual what instances do when they have not\n chosen. Empty restores auto.\n --default-channel <channel> the channel new instances follow.\n --default-major <n> hold instances on stable at this major\n version. Empty clears it.\n\nOnly system operators may pass --egress-allow or --size. A change reaches\nthe app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose swap or instance policy to set\n --console <string> console to act through (default: the only logged-in one)\n --copies <int> number of copies for each instance on different boxes in the app's fleet (default 1)\n --default-channel <string> the channel new instances follow\n --default-major <string> hold instances on stable at this major version; empty clears\n --default-updates <string> auto or manual: what instances do when they have not chosen; empty restores auto\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --egress-allow <string> private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; \"\" clears it. system operators only\n --instance-control <string> settings an instance may change itself: any of updates, channel, major, pin, comma-separated; empty keeps them all for the app\n --interactive <string> on or off: whether members may open terminal sessions on the app's instances\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n --size <string> the size the app's instances run at: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default uses the build's size. system operators only\n --swap <string> overlap or hold: how a running instance takes a new build\n --swap-concurrency <int> how many instances of the app may swap at once on one box (1 or more)\n"}
+{"case":"apps set | -h","argv":["apps","set","-h"],"exit":0,"stdout":"","stderr":"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>]\n\n --swap overlap|hold how a running instance takes a new build. overlap\n starts the new build beside the old one and switches\n once it answers its health check, so no request\n waits. hold stops the old one first, and requests\n wait until the new one is up. Use hold when two\n builds cannot share the database.\n --swap-concurrency <n> how many instances of the app may swap at once on\n one box, after the first has stayed up for ten\n seconds. 1 or more; it starts at 1.\n\nAny member of the app may change these. They reach the app's boxes with its\nconfig, within seconds.\n\n --interactive on|off whether members may open a terminal session on the app's instances, with carlos run -it or carlos console. it is off until an owner turns it on. a session can read and change everything the instance can\n\n carlos apps set <app> [--instance-control <settings>] [--default-updates auto|manual] [--default-channel <channel>] [--default-major <n>]\n\n --instance-control <settings> the settings an instance may change itself:\n any of updates, channel, major and pin,\n comma-separated. Empty keeps them all for\n the app.\n --default-updates auto|manual what instances do when they have not\n chosen. Empty restores auto.\n --default-channel <channel> the channel new instances follow.\n --default-major <n> hold instances on stable at this major\n version. Empty clears it.\n\nOnly system operators may pass --egress-allow or --size. A change reaches\nthe app's boxes within seconds on a box following the deployment's change index, or within about 33 minutes on another box.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose swap or instance policy to set\n --console <string> console to act through (default: the only logged-in one)\n --copies <int> number of copies for each instance on different boxes in the app's fleet (default 1)\n --default-channel <string> the channel new instances follow\n --default-major <string> hold instances on stable at this major version; empty clears\n --default-updates <string> auto or manual: what instances do when they have not chosen; empty restores auto\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --egress-allow <string> private addresses every instance of the app may reach, comma-separated, never a port. pass the whole list; \"\" clears it. system operators only\n --instance-control <string> settings an instance may change itself: any of updates, channel, major, pin, comma-separated; empty keeps them all for the app\n --interactive <string> on or off: whether members may open terminal sessions on the app's instances\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n --size <string> the size the app's instances run at: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default uses the build's size. system operators only\n --swap <string> overlap or hold: how a running instance takes a new build\n --swap-concurrency <int> how many instances of the app may swap at once on one box (1 or more)\n"}
{"case":"apps show | --zz-unknown-flag","argv":["apps","show","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos apps show <app> [--account <sqid|name>] [--account-id <sqid>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n"}
{"case":"apps show | -h","argv":["apps","show","-h"],"exit":0,"stdout":"","stderr":"usage: carlos apps show <app> [--account <sqid|name>] [--account-id <sqid>] [--console <origin>]\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n"}
{"case":"apps source delete | extra","argv":["apps","source","delete"],"exit":1,"stdout":"","stderr":"carlos apps source pull --app <app> [--account <name-or-sqid> | --account-id <sqid>] --console <origin> [--output <path>]\n"}
@@ -465,8 +465,8 @@
{"case":"instances list | -h","argv":["instances","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances create --app <a> --host <h> [--region <r>] [--channel <c>]\n [--kind instance|service|static] [--environment <e>] [--scope <s>]\n [--addr <a:p,...>] [--health-path <p>] [--health-status <n>]\n carlos instances list --app <a> [--match <substr>] [--health <slug>]\n carlos instances delete --app <a> --host <h>\n carlos instances set-upstreams --app <a> --host <h> [--addrs <a:p,...>]\n [--health-path <p>] [--health-status <n>]\n carlos instances set-channel --app <a> --host <h> --channel <c>\n carlos instances set-environment --app <a> --host <h> --environment <e> [--scope <s>]\n carlos instances set-assets --app <a> <host> on|off\n carlos instances set-pages --app <a> <host> on|off\n carlos instances retry --app <a> <host>\n carlos instances label --app <a> <host> [--box <b>] [--dry-run]\n carlos instances set --app <a> <host> [--updates auto|manual]\n [--channel <c>] [--major <n>] [--pin <build>]\n carlos instances update --app <a> <host> [--fast-track]\n\nSigned-in only (carlos auth login): instance records are console-authorized\nwrites — the console checks the host against the app's manifest and the\nbox's reconcile pass materializes the route.\n\ncreate stamps a channel on the record, and prints the one it chose. Named\nwith --channel it is yours; omitted, it is the app's own enable channel, else\nthe channel this app's other instances already follow, else its pipeline\nentry — where \"carlos deploy\" lands, so a brand-new app's first instance is\ndeployable without a passkey. Instances that follow SEVERAL channels are\nrefused rather than guessed at: pass --channel.\n\nset-channel moves ONE route onto a different release channel. The channel\nlives in the instance record, which the box converges the route from every\npass — so this is the verb that changes it, not \"carlos route --channel\",\nwhich edits a row the next reconcile overwrites. A move that the app's\npipeline gates is proposed and finished in the console, like a promote.\n\nretry clears the failure hold on one instance: the build that failed on its\nbox is tried again there, as a canary. \"carlos promote --retry <version>\n<channel>\" does the same on every box.\n\nlabel ties an instance on a fleet to the box serving it now. without --box, or with --dry-run, it only shows what it found and changes nothing\n\nset changes how one instance takes new builds: --updates auto or manual,\n--channel (the app's pipeline rules apply), --major to stay on one major\nversion of stable, and --pin to run exactly one build. An empty value clears\na setting, so the app's default applies again. update asks the instance's\nbox to install the newest build it considers ready, even with manual\nupdates; --fast-track skips the safety delay and needs an account owner.\n\n--environment binds a route to one of the app's named config bundles\n(\"carlos env environments\" lists them; \"carlos env --environment <e>\" writes\nthem). Omitted, a route serves the app's default bundle — which matters most\nwhen a route stands ALONGSIDE a live one: config is per-app, so a second\ninstance inherits values naming the first one's host, and anything the app\nkeys off a single origin (the Origin header it checks, magic-link URLs, a\nWebAuthn RP ID, the cookie Secure flag) fails closed on the new host while\nGETs look healthy. set-environment rebinds an existing route the same way,\nand for the same reason set-channel exists rather than \"carlos route\n--environment\": the reconciler reverts the box-side edit within seconds.\nRestart the instance afterwards to pick the new values up.\n\nset-upstreams-only flags:\n\n --addrs <a:p,...> comma-separated TCP upstream set, host:port each,\n replacing the record's whole upstream set;\n omitted leaves the existing set alone, an\n explicit --addrs \"\" clears it to empty (refused\n with a 400 for a kind:instance record — emptying\n an addr-backed instance route reverts it to a\n socket-backed shape, and the DerivesPaths rail\n refuses that transition in place; delete and\n re-create instead)\n --health-path <p> states the WHOLE probe block, replacing whatever\n was there — NOT a per-field update: a field\n neither flag names reverts to the platform's own\n default, even if a prior probe had set it\n --health-status <n> probe's expected response status; --health-path\n and --health-status may be given together or\n alone — either one, given at all, replaces the\n whole probe (omitting both leaves the existing\n probe untouched)\n\nOperators placing routes by hand on a box use carlos add, not this.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app whose instance records to list\n --console <string> console to list through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --health <string> only this state: running, serving, setting-up, asleep, no-readings, not-responding, failed\n --match <string> only hosts containing this substring\n"}
{"case":"instances retry | --zz-unknown-flag","argv":["instances","retry","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances create --app <a> --host <h> [--region <r>] [--channel <c>]\n [--kind instance|service|static] [--environment <e>] [--scope <s>]\n [--addr <a:p,...>] [--health-path <p>] [--health-status <n>]\n carlos instances list --app <a> [--match <substr>] [--health <slug>]\n carlos instances delete --app <a> --host <h>\n carlos instances set-upstreams --app <a> --host <h> [--addrs <a:p,...>]\n [--health-path <p>] [--health-status <n>]\n carlos instances set-channel --app <a> --host <h> --channel <c>\n carlos instances set-environment --app <a> --host <h> --environment <e> [--scope <s>]\n carlos instances set-assets --app <a> <host> on|off\n carlos instances set-pages --app <a> <host> on|off\n carlos instances retry --app <a> <host>\n carlos instances label --app <a> <host> [--box <b>] [--dry-run]\n carlos instances set --app <a> <host> [--updates auto|manual]\n [--channel <c>] [--major <n>] [--pin <build>]\n carlos instances update --app <a> <host> [--fast-track]\n\nSigned-in only (carlos auth login): instance records are console-authorized\nwrites — the console checks the host against the app's manifest and the\nbox's reconcile pass materializes the route.\n\ncreate stamps a channel on the record, and prints the one it chose. Named\nwith --channel it is yours; omitted, it is the app's own enable channel, else\nthe channel this app's other instances already follow, else its pipeline\nentry — where \"carlos deploy\" lands, so a brand-new app's first instance is\ndeployable without a passkey. Instances that follow SEVERAL channels are\nrefused rather than guessed at: pass --channel.\n\nset-channel moves ONE route onto a different release channel. The channel\nlives in the instance record, which the box converges the route from every\npass — so this is the verb that changes it, not \"carlos route --channel\",\nwhich edits a row the next reconcile overwrites. A move that the app's\npipeline gates is proposed and finished in the console, like a promote.\n\nretry clears the failure hold on one instance: the build that failed on its\nbox is tried again there, as a canary. \"carlos promote --retry <version>\n<channel>\" does the same on every box.\n\nlabel ties an instance on a fleet to the box serving it now. without --box, or with --dry-run, it only shows what it found and changes nothing\n\nset changes how one instance takes new builds: --updates auto or manual,\n--channel (the app's pipeline rules apply), --major to stay on one major\nversion of stable, and --pin to run exactly one build. An empty value clears\na setting, so the app's default applies again. update asks the instance's\nbox to install the newest build it considers ready, even with manual\nupdates; --fast-track skips the safety delay and needs an account owner.\n\n--environment binds a route to one of the app's named config bundles\n(\"carlos env environments\" lists them; \"carlos env --environment <e>\" writes\nthem). Omitted, a route serves the app's default bundle — which matters most\nwhen a route stands ALONGSIDE a live one: config is per-app, so a second\ninstance inherits values naming the first one's host, and anything the app\nkeys off a single origin (the Origin header it checks, magic-link URLs, a\nWebAuthn RP ID, the cookie Secure flag) fails closed on the new host while\nGETs look healthy. set-environment rebinds an existing route the same way,\nand for the same reason set-channel exists rather than \"carlos route\n--environment\": the reconciler reverts the box-side edit within seconds.\nRestart the instance afterwards to pick the new values up.\n\nset-upstreams-only flags:\n\n --addrs <a:p,...> comma-separated TCP upstream set, host:port each,\n replacing the record's whole upstream set;\n omitted leaves the existing set alone, an\n explicit --addrs \"\" clears it to empty (refused\n with a 400 for a kind:instance record — emptying\n an addr-backed instance route reverts it to a\n socket-backed shape, and the DerivesPaths rail\n refuses that transition in place; delete and\n re-create instead)\n --health-path <p> states the WHOLE probe block, replacing whatever\n was there — NOT a per-field update: a field\n neither flag names reverts to the platform's own\n default, even if a prior probe had set it\n --health-status <n> probe's expected response status; --health-path\n and --health-status may be given together or\n alone — either one, given at all, replaces the\n whole probe (omitting both leaves the existing\n probe untouched)\n\nOperators placing routes by hand on a box use carlos add, not this.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app the instance belongs to\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n"}
{"case":"instances retry | -h","argv":["instances","retry","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances create --app <a> --host <h> [--region <r>] [--channel <c>]\n [--kind instance|service|static] [--environment <e>] [--scope <s>]\n [--addr <a:p,...>] [--health-path <p>] [--health-status <n>]\n carlos instances list --app <a> [--match <substr>] [--health <slug>]\n carlos instances delete --app <a> --host <h>\n carlos instances set-upstreams --app <a> --host <h> [--addrs <a:p,...>]\n [--health-path <p>] [--health-status <n>]\n carlos instances set-channel --app <a> --host <h> --channel <c>\n carlos instances set-environment --app <a> --host <h> --environment <e> [--scope <s>]\n carlos instances set-assets --app <a> <host> on|off\n carlos instances set-pages --app <a> <host> on|off\n carlos instances retry --app <a> <host>\n carlos instances label --app <a> <host> [--box <b>] [--dry-run]\n carlos instances set --app <a> <host> [--updates auto|manual]\n [--channel <c>] [--major <n>] [--pin <build>]\n carlos instances update --app <a> <host> [--fast-track]\n\nSigned-in only (carlos auth login): instance records are console-authorized\nwrites — the console checks the host against the app's manifest and the\nbox's reconcile pass materializes the route.\n\ncreate stamps a channel on the record, and prints the one it chose. Named\nwith --channel it is yours; omitted, it is the app's own enable channel, else\nthe channel this app's other instances already follow, else its pipeline\nentry — where \"carlos deploy\" lands, so a brand-new app's first instance is\ndeployable without a passkey. Instances that follow SEVERAL channels are\nrefused rather than guessed at: pass --channel.\n\nset-channel moves ONE route onto a different release channel. The channel\nlives in the instance record, which the box converges the route from every\npass — so this is the verb that changes it, not \"carlos route --channel\",\nwhich edits a row the next reconcile overwrites. A move that the app's\npipeline gates is proposed and finished in the console, like a promote.\n\nretry clears the failure hold on one instance: the build that failed on its\nbox is tried again there, as a canary. \"carlos promote --retry <version>\n<channel>\" does the same on every box.\n\nlabel ties an instance on a fleet to the box serving it now. without --box, or with --dry-run, it only shows what it found and changes nothing\n\nset changes how one instance takes new builds: --updates auto or manual,\n--channel (the app's pipeline rules apply), --major to stay on one major\nversion of stable, and --pin to run exactly one build. An empty value clears\na setting, so the app's default applies again. update asks the instance's\nbox to install the newest build it considers ready, even with manual\nupdates; --fast-track skips the safety delay and needs an account owner.\n\n--environment binds a route to one of the app's named config bundles\n(\"carlos env environments\" lists them; \"carlos env --environment <e>\" writes\nthem). Omitted, a route serves the app's default bundle — which matters most\nwhen a route stands ALONGSIDE a live one: config is per-app, so a second\ninstance inherits values naming the first one's host, and anything the app\nkeys off a single origin (the Origin header it checks, magic-link URLs, a\nWebAuthn RP ID, the cookie Secure flag) fails closed on the new host while\nGETs look healthy. set-environment rebinds an existing route the same way,\nand for the same reason set-channel exists rather than \"carlos route\n--environment\": the reconciler reverts the box-side edit within seconds.\nRestart the instance afterwards to pick the new values up.\n\nset-upstreams-only flags:\n\n --addrs <a:p,...> comma-separated TCP upstream set, host:port each,\n replacing the record's whole upstream set;\n omitted leaves the existing set alone, an\n explicit --addrs \"\" clears it to empty (refused\n with a 400 for a kind:instance record — emptying\n an addr-backed instance route reverts it to a\n socket-backed shape, and the DerivesPaths rail\n refuses that transition in place; delete and\n re-create instead)\n --health-path <p> states the WHOLE probe block, replacing whatever\n was there — NOT a per-field update: a field\n neither flag names reverts to the platform's own\n default, even if a prior probe had set it\n --health-status <n> probe's expected response status; --health-path\n and --health-status may be given together or\n alone — either one, given at all, replaces the\n whole probe (omitting both leaves the existing\n probe untouched)\n\nOperators placing routes by hand on a box use carlos add, not this.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app the instance belongs to\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n"}
-{"case":"instances set | --zz-unknown-flag","argv":["instances","set","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|default] (an empty value clears an update setting)\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> the channel to follow (the app's pipeline rules apply)\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --major <string> stay on this major version of stable; empty clears\n --pin <string> run exactly this build; empty clears\n --size <string> this instance's size: small, standard, large or xlarge. default follows the app's size. system operators only\n --updates <string> auto or manual; empty restores the app's default\n"}
-{"case":"instances set | -h","argv":["instances","set","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|default] (an empty value clears an update setting)\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> the channel to follow (the app's pipeline rules apply)\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --major <string> stay on this major version of stable; empty clears\n --pin <string> run exactly this build; empty clears\n --size <string> this instance's size: small, standard, large or xlarge. default follows the app's size. system operators only\n --updates <string> auto or manual; empty restores the app's default\n"}
+{"case":"instances set | --zz-unknown-flag","argv":["instances","set","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|4g|6g|8g|12g|16g|24g|32g|48g|96g|192g|default] (an empty value clears an update setting)\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> the channel to follow (the app's pipeline rules apply)\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --major <string> stay on this major version of stable; empty clears\n --pin <string> run exactly this build; empty clears\n --size <string> this instance's size: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default follows the app's size. system operators only\n --updates <string> auto or manual; empty restores the app's default\n"}
+{"case":"instances set | -h","argv":["instances","set","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances set <host> [--app <a>] [--updates auto|manual] [--channel <c>] [--major <n>] [--pin <build>] [--size small|standard|large|xlarge|4g|6g|8g|12g|16g|24g|32g|48g|96g|192g|default] (an empty value clears an update setting)\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY; supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> the channel to follow (the app's pipeline rules apply)\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --major <string> stay on this major version of stable; empty clears\n --pin <string> run exactly this build; empty clears\n --size <string> this instance's size: small, standard, large or xlarge, or 4g, 6g, 8g, 12g, 16g, 24g, 32g, 48g, 96g or 192g on your own fleet. default follows the app's size. system operators only\n --updates <string> auto or manual; empty restores the app's default\n"}
{"case":"instances set-assets | --zz-unknown-flag","argv":["instances","set-assets","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances set-assets --app <a> [--account <a>] [--account-id <id>] [--console <origin>] <host> on|off\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY, supersedes --account\n --app, -a <string> app the instance belongs to\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n"}
{"case":"instances set-assets | -h","argv":["instances","set-assets","-h"],"exit":0,"stdout":"","stderr":"usage: carlos instances set-assets --app <a> [--account <a>] [--account-id <id>] [--console <origin>] <host> on|off\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY, supersedes --account\n --app, -a <string> app the instance belongs to\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-prompt Skip the optional change description prompt.\n"}
{"case":"instances set-channel | --zz-unknown-flag","argv":["instances","set-channel","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos instances create --app <a> --host <h> [--region <r>] [--channel <c>]\n [--kind instance|service|static] [--environment <e>] [--scope <s>]\n [--addr <a:p,...>] [--health-path <p>] [--health-status <n>]\n carlos instances list --app <a> [--match <substr>] [--health <slug>]\n carlos instances delete --app <a> --host <h>\n carlos instances set-upstreams --app <a> --host <h> [--addrs <a:p,...>]\n [--health-path <p>] [--health-status <n>]\n carlos instances set-channel --app <a> --host <h> --channel <c>\n carlos instances set-environment --app <a> --host <h> --environment <e> [--scope <s>]\n carlos instances set-assets --app <a> <host> on|off\n carlos instances set-pages --app <a> <host> on|off\n carlos instances retry --app <a> <host>\n carlos instances label --app <a> <host> [--box <b>] [--dry-run]\n carlos instances set --app <a> <host> [--updates auto|manual]\n [--channel <c>] [--major <n>] [--pin <build>]\n carlos instances update --app <a> <host> [--fast-track]\n\nSigned-in only (carlos auth login): instance records are console-authorized\nwrites — the console checks the host against the app's manifest and the\nbox's reconcile pass materializes the route.\n\ncreate stamps a channel on the record, and prints the one it chose. Named\nwith --channel it is yours; omitted, it is the app's own enable channel, else\nthe channel this app's other instances already follow, else its pipeline\nentry — where \"carlos deploy\" lands, so a brand-new app's first instance is\ndeployable without a passkey. Instances that follow SEVERAL channels are\nrefused rather than guessed at: pass --channel.\n\nset-channel moves ONE route onto a different release channel. The channel\nlives in the instance record, which the box converges the route from every\npass — so this is the verb that changes it, not \"carlos route --channel\",\nwhich edits a row the next reconcile overwrites. A move that the app's\npipeline gates is proposed and finished in the console, like a promote.\n\nretry clears the failure hold on one instance: the build that failed on its\nbox is tried again there, as a canary. \"carlos promote --retry <version>\n<channel>\" does the same on every box.\n\nlabel ties an instance on a fleet to the box serving it now. without --box, or with --dry-run, it only shows what it found and changes nothing\n\nset changes how one instance takes new builds: --updates auto or manual,\n--channel (the app's pipeline rules apply), --major to stay on one major\nversion of stable, and --pin to run exactly one build. An empty value clears\na setting, so the app's default applies again. update asks the instance's\nbox to install the newest build it considers ready, even with manual\nupdates; --fast-track skips the safety delay and needs an account owner.\n\n--environment binds a route to one of the app's named config bundles\n(\"carlos env environments\" lists them; \"carlos env --environment <e>\" writes\nthem). Omitted, a route serves the app's default bundle — which matters most\nwhen a route stands ALONGSIDE a live one: config is per-app, so a second\ninstance inherits values naming the first one's host, and anything the app\nkeys off a single origin (the Origin header it checks, magic-link URLs, a\nWebAuthn RP ID, the cookie Secure flag) fails closed on the new host while\nGETs look healthy. set-environment rebinds an existing route the same way,\nand for the same reason set-channel exists rather than \"carlos route\n--environment\": the reconciler reverts the box-side edit within seconds.\nRestart the instance afterwards to pick the new values up.\n\nset-upstreams-only flags:\n\n --addrs <a:p,...> comma-separated TCP upstream set, host:port each,\n replacing the record's whole upstream set;\n omitted leaves the existing set alone, an\n explicit --addrs \"\" clears it to empty (refused\n with a 400 for a kind:instance record — emptying\n an addr-backed instance route reverts it to a\n socket-backed shape, and the DerivesPaths rail\n refuses that transition in place; delete and\n re-create instead)\n --health-path <p> states the WHOLE probe block, replacing whatever\n was there — NOT a per-field update: a field\n neither flag names reverts to the platform's own\n default, even if a prior probe had set it\n --health-status <n> probe's expected response status; --health-path\n and --health-status may be given together or\n alone — either one, given at all, replaces the\n whole probe (omitting both leaves the existing\n probe untouched)\n\nOperators placing routes by hand on a box use carlos add, not this.\nflags:\n --account <string> account (sqid or name) the app belongs to (default: your only account, or the configured/chosen one)\n --account-id <string> account sqid, matched as a sqid ONLY — supersedes --account\n --app, -a <string> app the instance belongs to\n --channel, -c <string> release channel the route should follow\n --console <string> console to act through (default: the only logged-in one)\n --destination, -d <name> use the named block from .carlos/config's destinations (default: CARLOS_DESTINATION, else the file's default or only one)\n --host <string> instance host whose channel to change\n"}