carlos / platform Public

Mail submission follow-ups: deploy and canary take --mail; the From is platform-managed

Paul approved on 2026-11-17, following platform mail submission (9eec0236).

- carlos deploy and carlos canary [deploy] take --mail submit, with ship's
  semantics through ship's code (validShipMail, apiSession.shipMail,
  checkMailEcho; the console door's rootfs refusal and re-ship 409).
  Canary's usage and docs no longer say promotion is never refused.
- <stem>_MAIL_FROM (mail.MailFromName) and CARLOS_MAIL are
  platform-managed: refused to team config writes, left out of adopt and
  fork; the switch's own From delivery still runs after both.

Copy MSF-C1 to C7 reviewed by Luna under Paul's delegation. Census
approved by Astra (round 1 and scoped check, recorded on #280). Opus
branch review READY. CLI golden re-recorded in the Linux container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from feat/mail-submission-followups into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev a23423b7c8b5f5c4105e7a797feaf4d88061054b parent e5cfd2a
25 files changed, +647 −54
  • .amadan/code-health.tsv +1 −1
  • apimode.go +2 −1
  • approved_mail_submission_followups_copy_test.go +36 −0
  • canary.go +14 −7
  • deploy.go +12 −6
  • deploy_mail_test.go +93 −0
  • deploy_region_e2e_test.go +14 −1
  • docs/site/cli.md +11 −5
  • docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md +87 −0
  • docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups-R2.md +10 −0
  • docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups.md +10 −0
  • docs/superpowers/notes/census-claims-mail-submission-followups.tsv +1 −0
  • docs/superpowers/notes/census-proposal-mail-submission-followups.md +19 −0
  • docs/superpowers/plans/mail-submission-followups-copy.json +53 −0
  • docs/superpowers/reviews/CENSUS-REVIEW-BRIEF-mail-submission-followups.md +55 −0
  • docs/superpowers/reviews/FINDINGS-mail-submission-followups.md +24 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-mail-submission-followups.md +77 −0
  • internal/console/apienv_test.go +9 −4
  • internal/console/apisubmission_test.go +58 −0
  • internal/console/teamdoors_test.go +12 −5
  • internal/console/teamenv.go +21 −7
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-mail-submission-followups.tsv +5 −0
  • ship_mail.go +5 −0
  • testdata/clireg-golden.jsonl +17 −17

CI passed — run details

landed from feat/mail-submission-followups

diff --git a/.amadan/code-health.tsv b/.amadan/code-health.tsv
index 22c4f90bb..b27938c92 100644
--- a/.amadan/code-health.tsv
+++ b/.amadan/code-health.tsv
@@ -2183,7 +2183,7 @@ host-context internal/host validateServingParkRecord context.Background 2
host-context internal/host wireRawSecretPages context.Background 1
host-context internal/host withEffectiveMovesFloorLock context.Background 2
func-lines . TestFleetAppServesThroughTheHub - 408
-func-lines . runDeploy - 331
+func-lines . runDeploy - 329
func-lines . runRoute - 519
func-lines cmd/console serve - 370
func-lines internal/activator (*Service).doWakeOnce - 567
diff --git a/apimode.go b/apimode.go
index 2e3373dc1..e7048ac17 100644
--- a/apimode.go
+++ b/apimode.go
@@ -91,7 +91,8 @@ type apiSession struct {
shipSwap string
shipStateless bool
// shipMail is the release's mail declaration for ship (--mail), set by
- // runShip and carried exactly as shipSwap is. "" sends no mail key.
+ // runShip, runDeploy and runCanaryDeploy and carried exactly as
+ // shipSwap is. "" sends no mail key.
shipMail string
// shipAssets is the release's asset folders for ship (--assets), set by
// runShip, carried exactly as shipSwap is. nil sends no assets key.
diff --git a/approved_mail_submission_followups_copy_test.go b/approved_mail_submission_followups_copy_test.go
new file mode 100644
index 000000000..f226f9fbd
--- /dev/null
+++ b/approved_mail_submission_followups_copy_test.go
@@ -0,0 +1,36 @@
+package main
+
+import (
+ "encoding/json"
+ "os"
+ "testing"
+)
+
+// mailSubmissionFollowupsCopyIDs is the copy inventory of the mail
+// submission follow-ups (carlos deploy and carlos canary take --mail
+// submit): the two usage lines, the docs page's three passages, and the
+// canary promotion sentence in the usage and the docs.
+var mailSubmissionFollowupsCopyIDs = []string{"MSF-C1", "MSF-C2", "MSF-C3", "MSF-C4", "MSF-C5", "MSF-C6", "MSF-C7"}
+
+// Every string of the follow-ups' copy record is in the file it names,
+// byte for byte. A draft record (no approved_by) is checked the same way,
+// so the record and the code cannot drift apart while its review is
+// pending, and the test says it is pending.
+func TestApprovedMailSubmissionFollowupsCopy(t *testing.T) {
+ raw, err := os.ReadFile("docs/superpowers/plans/mail-submission-followups-copy.json")
+ if err != nil {
+ t.Fatal(err)
+ }
+ var rec map[string]any
+ if err := json.Unmarshal(raw, &rec); err != nil {
+ t.Fatal(err)
+ }
+ if rec["approved_by"] == "" {
+ t.Log("mail submission follow-ups copy: DRAFT, awaiting its copy review")
+ rec["approved_by"], rec["approved_on"] = "draft", "draft"
+ if raw, err = json.Marshal(rec); err != nil {
+ t.Fatal(err)
+ }
+ }
+ checkApprovedCopy(t, raw, ".", mailSubmissionFollowupsCopyIDs, nil)
+}
diff --git a/canary.go b/canary.go
index 4f4ba3091..0b02ac494 100644
--- a/canary.go
+++ b/canary.go
@@ -38,7 +38,7 @@ import (
const canaryUsage = `usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]
[--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]
- [--timeout 120s] <files-or-site-dir>
+ [--mail submit] [--timeout 120s] <files-or-site-dir>
carlos canary ls --app <a>
carlos canary rm --app <a> --name <n>
@@ -58,9 +58,10 @@ a WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host
while GETs look healthy. "carlos env --app <a> --environment <e> KEY=V" writes
a bundle; this flag points the canary at it.
-Promotion into a canary is never refused, and a canary costs no rung: a build
-that has been on one still enters the pipeline as a fresh build, so canarying
-and then promoting to edge is the ordinary path, not a bypass.
+Promotion into a canary is allowed from any rung, unless email submission is
+on and the build lacks --mail submit. A canary costs no rung: a build that has
+been on one still enters the pipeline as a fresh build, so canarying and then
+promoting to edge is the ordinary path, not a bypass.
Canaries carry a seven-day lease, refreshed by every re-promote. "canary ls"
shows what is left of it.`
@@ -503,6 +504,7 @@ func runCanaryDeploy(args []string) {
target := fs.String("target", "linux-arm64", "GOOS-GOARCH the binary was built for (binary kind, single file)")
label := fs.String("label", "", "one line for humans — shows up in carlos releases and in the console")
timeout := fs.Duration("timeout", defaultDeployTimeout, "how long to watch the canary URL before failing")
+ mail := fs.String("mail", "", shipMailFlagHelp)
fs.Usage = flagUsage(fs, canaryUsage)
fs.Parse(args)
@@ -516,8 +518,10 @@ func runCanaryDeploy(args []string) {
if *ver == "" {
*ver = gitShortHead()
}
+ // --mail is ship's declaration, refused as ship refuses it, with the
+ // name and before the console is asked anything.
canary, err := canaryNameFrom(strings.TrimSpace(*name), gitBranch())
- if err != nil {
+ if err = errors.Join(err, validShipMail(*mail)); err != nil {
log.Fatal(err)
}
@@ -648,12 +652,15 @@ func runCanaryDeploy(args []string) {
}
// printBanner false: printUsing above already said it once.
+ sess.shipMail = *mail
if _, err = runShipAPI(sess, acct, fs, app2, *ver, *kind, *target, *label, "", nil, false, false); err != nil {
log.Fatalf("canary: ship: %v", err)
}
- // Never refused — on any app, from any rung, pipelined or not. hotfix is
- // false because there is no ladder rule here to bypass.
+ // Never refused by the ladder: on any app, from any rung, pipelined or
+ // not. hotfix is false because there is no ladder rule here to bypass.
+ // The email submission gate (judgeServing) still refuses a build
+ // without --mail submit while the app's submission is on.
if _, err = sess.promote(ctx, acct, app2, *ver, channel, false, false); err != nil {
log.Fatalf("canary: promote %s to %s: %v", *ver, channel, err)
}
diff --git a/deploy.go b/deploy.go
index 31238df62..801f188f7 100644
--- a/deploy.go
+++ b/deploy.go
@@ -125,6 +125,12 @@ func deployAssetsToSave(flagSet bool, paths, saved []string) ([]string, bool) {
return paths, true
}
+// deployUsage is runDeploy's usage line (C11.23).
+const deployUsage = "usage: carlos deploy --app <a> [--version <sha>] [--kind binary|static] [--target linux-arm64] " +
+ "[--account <sqid-or-name>] [--account-id <sqid>] [--console <origin> | -d <destination>] [--capabilities <file.json>] " +
+ "[--channel <ch>] [--host <host>] [--region <code>] [--label <text>] [--notes <text>] [--swap hold] [--mail submit] [--assets <folder>]... [--no-assets] [--temporary] [--ttl 7d] [--timeout 120s] <files-or-site-dir>\n" +
+ "or, in a project with saved defaults (or at a terminal, to create them): carlos deploy [-d <destination>]"
+
// runDeploy is `carlos deploy`. API-mode only (spec §6): direct-bucket
// operators keep ship + promote as separate acts; deploy is the member path
// that ships, promotes to the channel the app's instances already follow,
@@ -157,6 +163,7 @@ func runDeploy(args []string) {
ttlFlag := fs.String("ttl", "", "how long a temporary app lives, 1h to 30d (default 7d); implies --temporary") // C11.22
regionFlag := fs.String("region", "", flagRegionDeploy)
swap := fs.String("swap", "", shipSwapFlagHelp)
+ mail := fs.String("mail", "", shipMailFlagHelp)
var assets assetPathsFlag
fs.Var(&assets, "assets", shipAssetsFlagHelp)
var envValues deployEnvFlag
@@ -168,10 +175,7 @@ func runDeploy(args []string) {
if envErr != nil {
log.Fatalf("deploy: %v", envErr)
}
- usage := "usage: carlos deploy --app <a> [--version <sha>] [--kind binary|static] [--target linux-arm64] " +
- "[--account <sqid-or-name>] [--account-id <sqid>] [--console <origin> | -d <destination>] [--capabilities <file.json>] " +
- "[--channel <ch>] [--host <host>] [--region <code>] [--label <text>] [--notes <text>] [--swap hold] [--assets <folder>]... [--no-assets] [--temporary] [--ttl 7d] [--timeout 120s] <files-or-site-dir>\n" + // C11.23
- "or, in a project with saved defaults (or at a terminal, to create them): carlos deploy [-d <destination>]"
+ usage := deployUsage
temp, ttl, terr := temporaryDeployFlags(*temporary, flagWasSet(fs, "ttl"), *ttlFlag, *hostFlag, flagWasSet(fs, "kind"), *kind, fs.NArg())
if terr != nil {
log.Fatalf("deploy: %v", terr)
@@ -197,7 +201,9 @@ func runDeploy(args []string) {
if err := deployPreflight(".", flagWasSet(fs, "version")); err != nil {
log.Fatal(err)
}
- if err := validSwapFlag(*swap); err != nil {
+ // --swap and --mail are ship's declarations, refused here as ship
+ // refuses them, before the console is asked anything.
+ if err := errors.Join(validSwapFlag(*swap), validShipMail(*mail)); err != nil {
log.Fatal(err)
}
// A bad capability file is still refused before anything ships — but the
@@ -214,7 +220,7 @@ func runDeploy(args []string) {
sess := requireDeployAPISession(*consoleFlag) // API-mode only: member verb
sess.deferSaves = true // deploy makes ONE combined save offer, below
printUsing(stdout, sess) // printed HERE, once: runShipAPI's own banner is suppressed below
- sess.shipSwap = *swap
+ sess.shipSwap, sess.shipMail = *swap, *mail
acct := resolvedAccount(sess, acctRaw, acctIDRaw)
ctx := context.Background()
diff --git a/deploy_mail_test.go b/deploy_mail_test.go
new file mode 100644
index 000000000..f4d13655d
--- /dev/null
+++ b/deploy_mail_test.go
@@ -0,0 +1,93 @@
+package main
+
+import (
+ "context"
+ "fmt"
+ "strings"
+ "testing"
+
+ "github.com/carlosframework/platform/internal/release"
+)
+
+// TestDeployAndCanaryCarryTheMailDeclaration: `carlos deploy --mail submit`
+// and `carlos canary deploy --mail submit` declare the build's mail
+// transport exactly as `carlos ship --mail submit` does, through the same
+// ship (apiSession.shipMail), against a real console: a value but submit
+// is refused in ship's words before anything is written; the manifest
+// carries the declaration; a re-deploy of the version with a different
+// declaration is the console's conflict; and a console that does not echo
+// it stops the deploy before the promote. A rootfs release has no door
+// here: deploy and canary ship binaries and sites only, and the console
+// refuses a rootfs release that declares --mail (PMS-C38).
+//
+// Each subtest has its own console because the ship door allows a token
+// two uploads a minute (cliShipBurst).
+func TestDeployAndCanaryCarryTheMailDeclaration(t *testing.T) {
+ if testing.Short() {
+ t.Skip("runs the carlos binary")
+ }
+ ctx := context.Background()
+ deploy := func(e *regionE2E, version string, extra ...string) []string {
+ args := []string{"deploy", "--app", "titogo", "--console", e.url, "--channel", "canary/e2e",
+ "--version", version, "--timeout", "1s"}
+ return append(append(args, extra...), artifact(t))
+ }
+ canary := func(e *regionE2E, version string, extra ...string) []string {
+ args := []string{"canary", "deploy", "--app", "titogo", "--name", "probe", "--console", e.url,
+ "--version", version, "--timeout", "1s"}
+ return append(append(args, extra...), artifact(t))
+ }
+ mailOf := func(t *testing.T, e *regionE2E, version string) string {
+ t.Helper()
+ m, err := release.GetManifest(ctx, e.store, release.OpsAccount, "titogo", version)
+ if err != nil {
+ t.Fatalf("manifest %s: %v", version, err)
+ }
+ return m.Mail
+ }
+
+ t.Run("deploy", func(t *testing.T) {
+ e := regionE2EConsole(t, "")
+ for _, args := range [][]string{deploy(e, "v0", "--mail", "smtp"), canary(e, "v0", "--mail", "smtp")} {
+ out, err := e.run(t, args...)
+ if err == nil || !strings.Contains(out, fmt.Sprintf(shipBadMail, "smtp")) {
+ t.Fatalf("%s --mail smtp: %v\n%s", args[0], err, out)
+ }
+ }
+ if n := e.writes.Load(); n != 0 || e.releases(t) != 0 {
+ t.Fatalf("a refused --mail wrote %d time(s) and stored %d release(s)", n, e.releases(t))
+ }
+ if out, _ := e.run(t, deploy(e, "v1", "--mail", "submit")...); mailOf(t, e, "v1") != release.MailSubmit {
+ t.Fatalf("deploy --mail submit stored v1 without it:\n%s", out)
+ }
+ out, err := e.run(t, deploy(e, "v1")...)
+ if err == nil || !strings.Contains(out, "version v1 was already shipped with a different mail declaration") {
+ t.Fatalf("re-deploy of v1 with no declaration: %v\n%s", err, out)
+ }
+ })
+
+ t.Run("canary", func(t *testing.T) {
+ e := regionE2EConsole(t, "")
+ if out, _ := e.run(t, canary(e, "v1", "--mail", "submit")...); mailOf(t, e, "v1") != release.MailSubmit {
+ t.Fatalf("canary deploy --mail submit stored v1 without it:\n%s", out)
+ }
+ if out, _ := e.run(t, deploy(e, "v2")...); mailOf(t, e, "v2") != "" {
+ t.Fatalf("deploy with no --mail stored a declaration:\n%s", out)
+ }
+ })
+
+ t.Run("no echo", func(t *testing.T) {
+ e := regionE2EConsole(t, "")
+ e.mode.Store("no-mail-echo")
+ for _, args := range [][]string{deploy(e, "v1", "--mail", "submit"), canary(e, "v2", "--mail", "submit")} {
+ out, err := e.run(t, args...)
+ if err == nil || !strings.Contains(out, shipMailNoEcho) {
+ t.Fatalf("%s against a console that does not echo --mail: %v\n%s", args[0], err, out)
+ }
+ }
+ keys, err := e.store.List(ctx, release.ChannelsPrefix(release.OpsAccount, "titogo"))
+ if err != nil || len(keys) != 0 {
+ t.Fatalf("a ship the console did not confirm was promoted: %v %v", keys, err)
+ }
+ })
+}
diff --git a/deploy_region_e2e_test.go b/deploy_region_e2e_test.go
index 038905a2f..8423eec41 100644
--- a/deploy_region_e2e_test.go
+++ b/deploy_region_e2e_test.go
@@ -26,7 +26,7 @@ type regionE2E struct {
creds string
url string
store release.Store
- mode atomic.Value // "", "fail", "legacy", "region-unknown", "placement-unknown"
+ mode atomic.Value // "", "fail", "legacy", "region-unknown", "placement-unknown", "no-mail-echo"
writes atomic.Int64
// creates counts instance-create requests (POST …/instances), so a
// test can tell a duplicate create from the other writes (Task 22).
@@ -122,6 +122,19 @@ func regionE2EConsole(t *testing.T, appRegion string) *regionE2E {
return
}
}
+ if r.Method == http.MethodPost && strings.HasSuffix(r.URL.Path, "/releases") && e.mode.Load().(string) == "no-mail-echo" {
+ // A console from before --mail: it stores the release and
+ // answers without the declaration.
+ rec := httptest.NewRecorder()
+ srv.ServeHTTP(rec, r)
+ var m map[string]any
+ json.Unmarshal(rec.Body.Bytes(), &m)
+ delete(m, "mail")
+ w.Header().Set("Content-Type", "application/json")
+ w.WriteHeader(rec.Code)
+ json.NewEncoder(w).Encode(m)
+ return
+ }
srv.ServeHTTP(w, r)
}))
t.Cleanup(ts.Close)
diff --git a/docs/site/cli.md b/docs/site/cli.md
index 6dd60f1d6..654fd9ec4 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -384,6 +384,8 @@ having no instances to resolve a channel from.
carlos deploy --app website --kind static --host www.example.com ./dist
```
+`--mail submit` declares that the build can send mail through Carlos's submission socket. It has the same meaning as [carlos ship](/docs/cli#carlos-ship). Once email submission is on for the app, deploy every build with it. A build without it is shipped but not promoted.
+
`--swap hold` ships a release that stops each instance before starting the
new build, for a migration the previous build cannot share the database
with. It applies to that release only; `carlos apps set --swap hold` makes it
@@ -618,10 +620,13 @@ dashes. The name and the app share one hostname label, so together they can be a
region). It is refused for an existing canary in another region, and for an
app that runs on one of your fleets.
-Promotion into a canary is never refused, on any app, from any rung. Nor
-does a canary cost you a rung: canary channels sit outside every pipeline, so
-a build that has been on one still enters the pipeline as a fresh build.
-Canary, then promote to your entry channel, and the ladder is untouched.
+`--mail submit` declares that the build can send mail through Carlos's submission socket. It has the same meaning as [carlos deploy](/docs/cli#carlos-deploy).
+
+Promotion into a canary is allowed from any rung, unless email submission is
+on and the build lacks `--mail submit`. A canary does not cost you a rung:
+canary channels sit outside every pipeline, so a build that has been on one
+still enters the pipeline as a fresh build. You can canary a build, then
+promote it to your entry channel, without changing the ladder.
**If your app carries config, reach for `--environment`.** A canary is a
second instance standing alongside a live one, and config in CARLOS is
@@ -2493,7 +2498,8 @@ sends it, and no instance holds an SMTP credential. Each bundle gets one
variable instead, `<P>_MAIL_FROM` (the prefix with its `_SMTP` cut off, so
`CARLOS_MAIL_FROM` by default), which the app's mail library reads. The
switch refuses until every instance runs a build shipped with
-`--mail submit`, every channel they follow heads one, every box hosting the
+`--mail submit` (`carlos ship`, `carlos deploy` and `carlos canary` all take
+it), every channel they follow heads one, every box hosting the
app has its mailer armed, and the deployment counts sends through SES
events; each refusal says what to do. A route with no instance record can't
send mail once it is on, and its app refuses to start, so check
diff --git a/docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md b/docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md
new file mode 100644
index 000000000..eb16ba4a4
--- /dev/null
+++ b/docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md
@@ -0,0 +1,87 @@
+# Copy pass: mail submission follow-ups, 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. An app can send email through the platform in
+two ways: with an SMTP credential the platform delivers into its
+environment, or, once the app owner switches "email submission" on, by
+posting each message to a socket on its own box, so the app holds no
+credential. A build has to declare that it can do the second: it is
+shipped with `--mail submit`. Until this change only `carlos ship` took the
+flag, but app owners are told to use `carlos deploy` (ship, promote and
+wait until the URL serves the build) and `carlos canary` (the same onto a
+throwaway host for a branch). This change gives both of them `--mail
+submit`, with the same meaning and the same refusals as ship. While email
+submission is on, the console refuses to promote a build that does not
+declare it.
+
+The readers are app owners and their developers. They read these strings in
+`carlos` CLI usage lines and in the docs page. They are technical but not
+platform operators.
+
+## What to review
+
+`docs/superpowers/plans/mail-submission-followups-copy.json`: every entry
+(MSF-C1 to MSF-C5). The `note` says where each one appears. MSF-C1 and
+MSF-C2 are usage lines: only the `[--mail submit]` part is new, and the
+rest of each line must stay as it is. MSF-C3 to MSF-C5 are in
+`docs/site/cli.md` (sections "carlos deploy", "carlos canary" and
+"carlos email"); read the paragraphs around them for tone and facts.
+
+The record's `reused` field lists strings that are already approved and are
+not changing, but now appear in more places. Do not rewrite them. Flag one
+only if it reads wrongly in its new place.
+
+You may read the code to check a fact (the branch is
+`feat/mail-submission-followups`, checked out in this directory; see
+`deploy.go`, `canary.go`, `ship_mail.go`). 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. "Build", "release", "box", "deploy",
+ "promote", "channel" and "email submission" are the product's words.
+
+## What to return
+
+Write `/Users/paulcampbell/.cache/tmp/claude-mailfollowups/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.
+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.
+
+## Round 2 (2026-11-17)
+
+Round 1 approved MSF-C1 to MSF-C5 (your result is
+`docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups.md`);
+leave those alone. A code review then found that the canary usage text and
+the docs both said "Promotion into a canary is never refused", which is no
+longer true: once email submission is on, the console refuses to promote a
+build without `--mail submit` onto any channel, canaries included. Review
+only the two new rows, MSF-C6 (the usage text in `canary.go`, `canaryUsage`)
+and MSF-C7 (`docs/site/cli.md`, section "carlos canary"). Each `note` gives
+the old text. Read the whole paragraph each sits in: your rewrite may cover
+the paragraph's remaining sentences if they need it for flow, and then the
+`new` cell holds the full paragraph. The usage text wraps at about 78
+columns.
+
+Write `/Users/paulcampbell/.cache/tmp/claude-mailfollowups/luna-review-r2.md`
+in the same format as round 1.
diff --git a/docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups-R2.md b/docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups-R2.md
new file mode 100644
index 000000000..1b8db3ab2
--- /dev/null
+++ b/docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups-R2.md
@@ -0,0 +1,10 @@
+# Luna copy review
+
+| key | new | why |
+| --- | --- | --- |
+| MSF-C6 | `Promotion into a canary is allowed from any rung, unless email submission is on and the build lacks --mail submit. A canary costs no rung: a build that has been on one still enters the pipeline as a fresh build, so canarying and then promoting to edge is the ordinary path, not a bypass.` | States the canary rule and its email-submission exception without contradicting the promotion gate. Keeps the existing no-rung-cost explanation and the `--mail submit` flag unchanged. |
+| MSF-C7 | `Promotion into a canary is allowed from any rung, unless email submission is on and the build lacks \`--mail submit\`. A canary does not cost you a rung: canary channels sit outside every pipeline, so a build that has been on one still enters the pipeline as a fresh build. You can canary a build, then promote it to your entry channel, without changing the ladder.` | States the canary rule and its email-submission exception in the same sentence. Keeps the existing no-rung-cost fact, while making the final instruction a complete sentence. |
+
+## Flags
+
+none
diff --git a/docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups.md b/docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups.md
new file mode 100644
index 000000000..7b4f9be73
--- /dev/null
+++ b/docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups.md
@@ -0,0 +1,10 @@
+# Luna copy review
+
+| key | new | why |
+| --- | --- | --- |
+| MSF-C3 | `--mail submit` declares that the build can send mail through Carlos's submission socket. It has the same meaning as [carlos ship](/docs/cli#carlos-ship). Once email submission is on for the app, deploy every build with it. A build without it is shipped but not promoted. | Separates the declaration from the cross-reference, so the sentence does not make `carlos ship` sound like the transport. Keeps the existing behavior and refusal clear. |
+| MSF-C4 | `--mail submit` declares that the build can send mail through Carlos's submission socket. It has the same meaning as [carlos deploy](/docs/cli#carlos-deploy). | Reuses the defined “submission socket” wording and removes the undefined term “mail transport.” |
+
+## Flags
+
+none
diff --git a/docs/superpowers/notes/census-claims-mail-submission-followups.tsv b/docs/superpowers/notes/census-claims-mail-submission-followups.tsv
new file mode 100644
index 000000000..04d63602f
--- /dev/null
+++ b/docs/superpowers/notes/census-claims-mail-submission-followups.tsv
@@ -0,0 +1 @@
+deploy.go:runDeploy takes --mail and refuses a value but submit before the console is asked anything (the git reads for the version and the dirty-tree check run earlier, as before) (validShipMail, joined with the existing --swap check), and sets the session's shipMail, which the existing ship request sends to the console and checks the echo of (checkMailEcho); its usage text moves to the deployUsage const; no read added, read site unchanged (1)
diff --git a/docs/superpowers/notes/census-proposal-mail-submission-followups.md b/docs/superpowers/notes/census-proposal-mail-submission-followups.md
new file mode 100644
index 000000000..22bfc6682
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-mail-submission-followups.md
@@ -0,0 +1,19 @@
+# Census approval: mail-submission-followups
+
+Ruling `census-ruling-mail-submission-followups`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `deploy.go` `runDeploy` | body | unchanged (1) | takes --mail and refuses a value but submit before the console is asked anything (the git reads for the version and the dirty-tree check run earlier, as before) (validShipMail, joined with the existing --swap check), and sets the session's shipMail, which the existing ship request sends to the console and checks the echo of (checkMailEcho); its usage text moves to the deployUsage const; no read added, read site unchanged (1) |
+
+Envelopes re-pinned: `.`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `deploy.go` `runDeploy`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-edge-asset-cache-1;basis=takes --assets and --no-assets, refuses both together and bad folders before anything runs (deployAssets), reads the folders saved in .carlos/config for the session's console through configAssets (the config walk the CLI already makes), and saves a new list there as it saves the other deploy settings; read site unchanged (1), none added;rev3=census-ruling-gated-deploy-watch-164;basis=the static-deploy branch passes its watch targets through passGatedTargets (a console POST for a gate pass per gated host) and passes the gated-host set to watchDeployed; no new local read, read site unchanged (1), none added;rev3=census-ruling-region-labels;basis=builds a host-to-label map (hostPlaces) from the instance list it already read and passes it to the static watch targets and watchDeployed, so the watch lines say where; no read added;rev3=census-ruling-first-deploy-493;basis=Sequences existing console APIs for confirmed-missing app and first instance creation, with repeatable environment values; local artifact preflight before these new writes. Existing config artifact stat read retained.;rev3=census-ruling-account-subdomains;basis=builds its watch targets with watchTargetsFor (host, watchOrigin(host), the instance list's public_host as Display, place, probe) from the instance list it already read, and passes them to watchDeployed; deployingLine prints the public host from that same list; the watch still dials and matches host; no read added, read site unchanged (1); fix round 1: a first static deploy keeps the create answer mintPlatformHost now returns (the whole record, not its host) and carries its public_host into the record it appends, for printing only; mintPlatformHost makes the same two console requests as before
+
+Seal: `16cae3931aadfa57a5293d69becf318645681400777cc08972cf08eb449c2457` → `c9cd3c8fdf31240b83affa0b2798422f3a99e1d0d400dbaf68665c1127996448`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-mail-submission-followups.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/docs/superpowers/plans/mail-submission-followups-copy.json b/docs/superpowers/plans/mail-submission-followups-copy.json
new file mode 100644
index 000000000..75e37a572
--- /dev/null
+++ b/docs/superpowers/plans/mail-submission-followups-copy.json
@@ -0,0 +1,53 @@
+{
+ "approved_by": "Luna copy pass (gpt-5.6-luna), delegated under Paul's standing rule of 2026-10-25 for platform copy. Round 1: MSF-C3 and MSF-C4 applied verbatim as Luna rewrote them, MSF-C1, MSF-C2 and MSF-C5 approved as drafted. Round 2: MSF-C6 and MSF-C7 applied verbatim as Luna rewrote them (line wraps only). No flags in either round",
+ "approved_on": "2026-11-17",
+ "status": "APPROVED by Luna under Paul's delegation (2026-10-25), two rounds.",
+ "change": "Mail submission follow-ups (branch feat/mail-submission-followups, approved by Paul 2026-11-17): carlos deploy and carlos canary take --mail submit; <stem>_MAIL_FROM and CARLOS_MAIL are platform-managed.",
+ "reused": "Unchanged approved strings this change shows in more places, for context only: PMS-C35 (the --mail flag help, now in deploy -h and canary -h), PMS-C36 (the bad-value refusal), PMS-C37 (the no-echo refusal, printed by deploy as 'deploy: ship: <text>' and by canary as 'canary: ship: <text>'), PMS-C39 (the re-ship conflict), and the team config door's refusal 'cannot set or unset a platform-managed key (%s): the platform delivers those into its environments itself' (internal/console/apiconfig.go), which can now name <stem>_MAIL_FROM and CARLOS_MAIL.",
+ "entries": [
+ {
+ "id": "MSF-C1",
+ "file": "deploy.go",
+ "text": "[--swap hold] [--mail submit] [--assets <folder>]...",
+ "note": "deployUsage: carlos deploy's usage line gains [--mail submit]"
+ },
+ {
+ "id": "MSF-C2",
+ "file": "canary.go",
+ "text": "[--mail submit] [--timeout 120s] <files-or-site-dir>",
+ "note": "canaryUsage: carlos canary [deploy]'s usage gains [--mail submit]"
+ },
+ {
+ "id": "MSF-C3",
+ "file": "docs/site/cli.md",
+ "text": "`--mail submit` declares that the build can send mail through Carlos's submission socket. It has the same meaning as [carlos ship](/docs/cli#carlos-ship). Once email submission is on for the app, deploy every build with it. A build without it is shipped but not promoted.",
+ "note": "docs: carlos deploy section, before --swap hold"
+ },
+ {
+ "id": "MSF-C4",
+ "file": "docs/site/cli.md",
+ "text": "`--mail submit` declares that the build can send mail through Carlos's submission socket. It has the same meaning as [carlos deploy](/docs/cli#carlos-deploy).",
+ "note": "docs: carlos canary section, after --region"
+ },
+ {
+ "id": "MSF-C5",
+ "file": "docs/site/cli.md",
+ "text": "`--mail submit` (`carlos ship`, `carlos deploy` and `carlos canary` all take\nit), every channel",
+ "note": "docs: carlos email section, the submission on paragraph's precondition"
+ },
+ {
+ "id": "MSF-C6",
+ "file": "canary.go",
+ "text": "Promotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.",
+ "note": "canaryUsage: the promotion paragraph, qualified for the submission gate (was: 'Promotion into a canary is never refused, and a canary costs no rung: ...'). Opus review P3; Luna round 2 text, wrapped at 78 columns."
+ },
+ {
+ "id": "MSF-C7",
+ "file": "docs/site/cli.md",
+ "text": "Promotion into a canary is allowed from any rung, unless email submission is\non and the build lacks `--mail submit`. A canary does not cost you a rung:\ncanary channels sit outside every pipeline, so a build that has been on one\nstill enters the pipeline as a fresh build. You can canary a build, then\npromote it to your entry channel, without changing the ladder.",
+ "note": "docs: carlos canary section, the promotion paragraph, qualified for the submission gate (was: 'Promotion into a canary is never refused, on any app, from any rung. Nor does a canary cost you a rung: ...'). Opus review P3; Luna round 2 text, wrapped at 78 columns."
+ }
+ ],
+ "brief": "docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md",
+ "result": "docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups.md (round 1) and docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups-R2.md (round 2)"
+}
diff --git a/docs/superpowers/reviews/CENSUS-REVIEW-BRIEF-mail-submission-followups.md b/docs/superpowers/reviews/CENSUS-REVIEW-BRIEF-mail-submission-followups.md
new file mode 100644
index 000000000..394ae6e91
--- /dev/null
+++ b/docs/superpowers/reviews/CENSUS-REVIEW-BRIEF-mail-submission-followups.md
@@ -0,0 +1,55 @@
+# Census review brief: mail submission follow-ups, round 1 of 3
+
+Repo carlos/platform on amadan.net, branch `feat/mail-submission-followups`,
+commit 99c49f86a5e1a11d37ee6b1a31c72e33f293a15f. The checkout is at
+`/Users/paulcampbell/amadan.net/carlos/platform-mail-followups` (read-only
+for you). Under review: the diff `c855db56dbd7aa553c872f2c11cc0845f290dbb6..99c49f86a5e1a11d37ee6b1a31c72e33f293a15f`
+(`git diff c855db56dbd7aa553c872f2c11cc0845f290dbb6 99c49f86a5e1a11d37ee6b1a31c72e33f293a15f`; `origin` is the amadan.net remote).
+Authorities: `AGENTS.md`, section "The census: the reviewer decides", and
+the card `docs/superpowers/notes/census-proposal-mail-submission-followups.md`.
+
+You are the independent census reviewer (a Codex model reviewing a Claude
+author's change). The change, approved by Paul on 2026-11-17:
+`carlos deploy` and `carlos canary deploy` take `--mail submit` (the
+build's mail transport declaration, which only `carlos ship` had), reusing
+ship's validation (`validShipMail`) and request field
+(`apiSession.shipMail`, sent in the existing ship request and checked by
+`checkMailEcho`); and the console treats `<stem>_MAIL_FROM` and
+`CARLOS_MAIL` as platform-managed (`internal/console`, outside the census
+scope).
+
+## What to check
+
+The card names one unit and one envelope:
+
+1. `deploy.go` `runDeploy` (body change; recorded disposition legacy,
+ accepted-legacy; the card quotes its basis). Read the diff of
+ `runDeploy` and the new `deployUsage` const. Give a verdict.
+2. The re-pinned envelope `.` (the root package). Read every changed
+ function in the root package in the diff (deploy.go, canary.go
+ `runCanaryDeploy`, ship_mail.go, apimode.go comment, and the new
+ test files) and what they reach. Give a verdict.
+
+Reject if the change lets root open, run, query or follow anything it did
+not before from a path or input a tenant, an app or a box agent can
+create, write or name; if it weakens a check, refusal, validation,
+argument or environment root relies on; if a disposition is wrong for the
+unit's reads; or if the diff cannot settle any of these. Otherwise
+approve. Cite the lines you read.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+ Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Follow-up list only.
+
+## Output
+
+A verdict for the unit and for the envelope (APPROVE or REJECT, with the
+lines read), then findings ranked P1, P2, P3, each with evidence
+(file:line), failure scenario, fix and the invariant it breaks. End with
+exactly one verdict: **READY**, **READY AFTER FIXES** or **NOT READY**.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.
diff --git a/docs/superpowers/reviews/FINDINGS-mail-submission-followups.md b/docs/superpowers/reviews/FINDINGS-mail-submission-followups.md
new file mode 100644
index 000000000..40210c4f2
--- /dev/null
+++ b/docs/superpowers/reviews/FINDINGS-mail-submission-followups.md
@@ -0,0 +1,24 @@
+# Review findings: mail submission follow-ups
+
+Branch `feat/mail-submission-followups`. The findings are as the coordinator relayed them.
+
+## Census (root-read), Astra (codex/gpt-6-astra, high)
+
+- **Round 1, at 99c49f86a** (diff c855db56d..99c49f86a): READY.
+ - `deploy.go` `runDeploy`: APPROVE. It keeps legacy/accepted-legacy.
+ - Envelope `.`: APPROVE.
+ - No P1 or P2.
+ - P3: the comments in ship_mail.go:24 and canary.go:521, and the claim, overstated the ordering ("before the first read"), because git reads run earlier. Fixed in 2a591b348: they now say "before the console is asked anything".
+- **Scoped check of the fix diff, at df0785194**: CHECK PASSED.
+ - `runDeploy`: APPROVE.
+ - Envelope `.`: APPROVE.
+ - No P1 or P2.
+ - P3: the claim credited the branch-name git read to runDeploy, but that read is canary's. Fixed: the claim now says "the git reads for the version and the dirty-tree check run earlier". The fix changes only the claim text and the card; no code changed.
+
+## Branch review, Opus (round 1, at 99c49f86a): READY
+
+No P1 or P2. Three P3s:
+
+1. Commit the comment rewording. Done.
+2. canary's usage text, the docs and the promote comment said "promotion into a canary is never refused". That contradicts judgeServing once email submission is on. Fixed in 2a591b348 with copy MSF-C6 and MSF-C7, applied verbatim from Luna round 2.
+3. Optional: a zero-arg `--mail` case in deploy_mail_test.go. Not added. `sess.shipMail` is set before the zero-arg branch, so the path does not depend on how the artifact is chosen. This stays on the follow-up list.
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-mail-submission-followups.md b/docs/superpowers/reviews/REVIEW-BRIEF-mail-submission-followups.md
new file mode 100644
index 000000000..d13477f08
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-mail-submission-followups.md
@@ -0,0 +1,77 @@
+# Review brief: branch feat/mail-submission-followups, round 1 of 3
+
+Repo carlos/platform, branch `feat/mail-submission-followups`, commit
+99c49f86a5e1a11d37ee6b1a31c72e33f293a15f. Checkout:
+`/Users/paulcampbell/amadan.net/carlos/platform-mail-followups` (read it
+there with git show / git diff; do not modify it). Under review: the diff
+`c855db56dbd7aa553c872f2c11cc0845f290dbb6..99c49f86a5e1a11d37ee6b1a31c72e33f293a15f`.
+Authorities, merged on main: `docs/superpowers/specs/2026-11-12-platform-mail-submission-design.md`,
+`docs/superpowers/plans/2026-11-13-platform-mail-submission.md`, `AGENTS.md`.
+
+You are an independent reviewer. The change (Paul approved it on
+2026-11-17):
+
+1. `carlos deploy --mail submit` and `carlos canary [deploy] --mail submit`,
+ with ship's semantics: one value, `submit`; the console echo check
+ (`shipMailNoEcho`); a rootfs release refused (the console door refuses
+ rootfs+mail; deploy and canary ship only binary or static); a re-ship of
+ a version with a different declaration refused (the console's 409).
+ Reusing ship's code paths, not duplicating them.
+2. `<stem>_MAIL_FROM` (`mail.MailFromName`) and `CARLOS_MAIL` are
+ platform-managed in `internal/console/teamenv.go`: a team credential's
+ config write refuses them, as it refuses the `<P>_SMTP_*` five; adopt and
+ fork leave them out; the platform's own delivery
+ (`DeliverMailFromIn` via `mintOwnedEnvironment` after adopt and fork)
+ keeps working.
+
+## Fixed: do not re-argue
+
+- Paul's 2026-11-17 approval of both changes and their scope.
+- Platform copy was reviewed by Luna under Paul's delegation
+ (`docs/superpowers/plans/mail-submission-followups-copy.json`).
+- A person's (non-team) config write is not refused for platform-managed
+ keys today; that is existing behaviour, not in scope.
+
+## What to check
+
+1. Deploy and canary: is the flag validated before any read or write; is
+ `sess.shipMail` set on every path that ships (zero-arg deploy with saved
+ defaults, first deploy that creates the app, `--temporary`); is anything
+ about ship's semantics missing or different.
+2. `platformManagedKeys`: is the From name derived exactly as
+ `mail.MailFromName` (and therefore as the delivery writes it); is there
+ any other place that defines the platform-managed set or copies bundles
+ between scopes (adopt, fork, anything else) that would still carry
+ `<stem>_MAIL_FROM` or `CARLOS_MAIL`; can making the From managed break a
+ platform write path (switch on/off, `DeliverMailFromIn`, environment
+ release/reap, the team door's own environment creation while switched).
+3. Tests: do `deploy_mail_test.go`, the console tests changed in
+ `apienv_test.go`, `teamdoors_test.go` and `apisubmission_test.go`
+ actually pin each behaviour (each was red without its change).
+4. Code-health rules in AGENTS.md "Writing Go here": no new `log.Fatal`
+ sites in the root package, no function grown past its record.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+ Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for
+ another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not
+raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the problem, the evidence
+(file:line, verified), the failure scenario, a concrete fix and the
+invariant or trust boundary it breaks. End with exactly one verdict:
+
+- **READY**: no P1 and no P2.
+- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another
+ round.
+- **NOT READY**: one or more P1s, listed.
+
+Do not edit files. Do not spawn reviewers or subagents of your own. Do
+not run the full test suites (targeted `go test -run` is fine).
diff --git a/internal/console/apienv_test.go b/internal/console/apienv_test.go
index 85a1573f6..5c6797970 100644
--- a/internal/console/apienv_test.go
+++ b/internal/console/apienv_test.go
@@ -52,6 +52,8 @@ func TestEnvironmentAdoptAndRelease(t *testing.T) {
"OWN": {Kind: "env", Value: "1"},
"TITO_SMTP_PASS": {Kind: "secret", Envelope: "x"},
"TITO_SMTP_HOST": {Kind: "env", Value: "h"},
+ "TITO_MAIL_FROM": {Kind: "env", Value: "someone@example.com"},
+ "CARLOS_MAIL": {Kind: "env", Value: "submit"},
relayVar: {Kind: "secret", Envelope: "y"},
}, nil); err != nil {
t.Fatal(err)
@@ -86,7 +88,7 @@ func TestEnvironmentAdoptAndRelease(t *testing.T) {
if err := json.Unmarshal([]byte(out), &res); err != nil {
t.Fatal(err)
}
- if res.Scope != "alta" || strings.Join(res.Stripped, ",") != "CARLOS_RELAY,TITO_SMTP_HOST,TITO_SMTP_PASS" {
+ if res.Scope != "alta" || strings.Join(res.Stripped, ",") != "CARLOS_MAIL,CARLOS_RELAY,TITO_MAIL_FROM,TITO_SMTP_HOST,TITO_SMTP_PASS" {
t.Fatalf("adopt answer = %+v", res)
}
m, _, _, err := appconfig.GetEnvironment(ctx, fx.rel, "bab", "titogo", "lagged")
@@ -140,6 +142,7 @@ func TestEnvironmentFork(t *testing.T) {
_, _, envelope := sealedFor(t, "s")
if err := appconfig.SaveEnvironment(ctx, fx.rel, "bab", "titogo", "lagged", map[string]appconfig.Var{
"OWN": {Kind: "env", Value: "1"}, "S": {Kind: "secret", Envelope: envelope}, relayVar: {Kind: "secret", Envelope: "y"},
+ mailTransportVar: {Kind: "env", Value: "submit"},
}, nil); err != nil {
t.Fatal(err)
}
@@ -176,8 +179,10 @@ func TestEnvironmentFork(t *testing.T) {
if err != nil || m.OwnerScope != "alta" || m.Schema != 2 {
t.Fatalf("forked = %+v, %v", m, err)
}
- if _, ok := m.Vars[relayVar]; ok {
- t.Error("fork carried CARLOS_RELAY")
+ for _, k := range []string{relayVar, mailTransportVar} {
+ if _, ok := m.Vars[k]; ok {
+ t.Errorf("fork carried %s", k)
+ }
}
if _, ok := m.Vars["OWNER_CANARY"]; ok {
t.Error("fork carried a default-bundle key")
@@ -190,7 +195,7 @@ func TestEnvironmentFork(t *testing.T) {
}
// The source is untouched, and a team credential now reaches the fork.
src, _, _, _ := appconfig.GetEnvironment(ctx, fx.rel, "bab", "titogo", "lagged")
- if src.OwnerScope != "" || len(src.Vars) != 3 {
+ if src.OwnerScope != "" || len(src.Vars) != 4 {
t.Errorf("source after fork = %+v", src)
}
team := teamToken(t, fx.st, OpsAccountID, "alta-titogo", "titogo", "alta")
diff --git a/internal/console/apisubmission_test.go b/internal/console/apisubmission_test.go
index d6e695c61..4dd19216b 100644
--- a/internal/console/apisubmission_test.go
+++ b/internal/console/apisubmission_test.go
@@ -664,3 +664,61 @@ func TestRotateRefusesASwitchedApp(t *testing.T) {
t.Fatalf("rotate while switched: %d %s, want 409 naming the switch", status, out)
}
}
+
+// Mail submission follow-ups: <stem>_MAIL_FROM and CARLOS_MAIL are
+// platform-managed, so adopt and fork leave a bundle's own copies out, and
+// the platform's delivery still puts the switched app's From into the
+// environment each door makes owned. The copies a person planted (a From
+// that is not the app's, a transport the box decides) never reach a scope.
+func TestSwitchedAdoptAndForkLeaveTheFromToThePlatform(t *testing.T) {
+ w := newSubmissionWorld(t, "code-submission-adopt-from")
+ w.switchOn(t)
+ ctx := context.Background()
+ const from = "noreply@titogo.bab.oncarlos.com"
+ if err := appconfig.SaveEnvironment(ctx, w.fx.rel, "bab", "titogo", "loose", map[string]appconfig.Var{
+ "OWN": {Kind: "env", Value: "1"},
+ "TITO_MAIL_FROM": {Kind: "env", Value: "someone@example.com"},
+ mailTransportVar: {Kind: "env", Value: "submit"},
+ }, nil); err != nil {
+ t.Fatal(err)
+ }
+ // The owned environment the world made: its From is the platform's;
+ // a CARLOS_MAIL written beside it directly is what a fork must drop.
+ if _, err := appconfig.ApplyEnvironment(ctx, w.fx.rel, "bab", "titogo", "team",
+ map[string]appconfig.Var{mailTransportVar: {Kind: "env", Value: "submit"}}, nil); err != nil {
+ t.Fatal(err)
+ }
+ check := func(what, env, out string) {
+ t.Helper()
+ var res struct {
+ Stripped []string `json:"stripped"`
+ }
+ if err := json.Unmarshal([]byte(out), &res); err != nil {
+ t.Fatalf("%s: %v %s", what, err, out)
+ }
+ stripped := strings.Join(res.Stripped, ",")
+ if !strings.Contains(stripped, "TITO_MAIL_FROM") || !strings.Contains(stripped, mailTransportVar) {
+ t.Errorf("%s left out %q, want TITO_MAIL_FROM and %s", what, stripped, mailTransportVar)
+ }
+ vars := w.vars(t, env)
+ if got := vars["TITO_MAIL_FROM"].Value; got != from {
+ t.Errorf("%s: %s holds TITO_MAIL_FROM %q, want the platform's %q", what, env, got, from)
+ }
+ if _, ok := vars[mailTransportVar]; ok {
+ t.Errorf("%s: %s holds %s", what, env, mailTransportVar)
+ }
+ }
+ status, _, out := rawReq(t, http.MethodPost, w.fx.ts.URL+"/api/cli/apps/bab/titogo/environments/loose/adopt", w.owner, `{"scope":"alta"}`)
+ if status != http.StatusOK {
+ t.Fatalf("adopt = %d %s", status, out)
+ }
+ check("adopt", "loose", out)
+ if w.vars(t, "loose")["OWN"].Value != "1" {
+ t.Error("adopt dropped the environment's own key")
+ }
+ status, _, out = rawReq(t, http.MethodPost, w.fx.ts.URL+"/api/cli/apps/bab/titogo/environments/fork", w.owner, `{"from":"team","to":"crew","scope":"alta"}`)
+ if status != http.StatusOK {
+ t.Fatalf("fork = %d %s", status, out)
+ }
+ check("fork", "crew", out)
+}
diff --git a/internal/console/teamdoors_test.go b/internal/console/teamdoors_test.go
index 5a0958687..5a044df84 100644
--- a/internal/console/teamdoors_test.go
+++ b/internal/console/teamdoors_test.go
@@ -737,8 +737,10 @@ func TestTeamFloorBarrier(t *testing.T) {
// TestTeamPlatformManagedKeysRefused is §8.20: a team's PUT /config cannot
// set or unset a key the delivery walks own, computed from the app's mail
-// and store records (the prefixes are the member's), nor the two fixed
-// names.
+// and store records (the prefixes are the member's), nor the three fixed
+// names. The mail record's keys include the submit transport's From
+// (<stem>_MAIL_FROM), and the fixed names CARLOS_MAIL, which the box
+// composes at every spawn (mail submission follow-ups).
func TestTeamPlatformManagedKeysRefused(t *testing.T) {
w := newTeamWorld(t, "code-team-managed")
ctx := context.Background()
@@ -752,6 +754,7 @@ func TestTeamPlatformManagedKeysRefused(t *testing.T) {
t.Fatal(err)
}
for _, k := range []string{"TITO_SMTP_PASS", "TITO_SMTP_HOST", "TITO_SMTP_FROM", MailEventsKeyEnv, relayVar,
+ "TITO_MAIL_FROM", "CARLOS_MAIL",
"TITO_S3_ACCESS_KEY", "TITO_S3_SCAN_CALLBACK_SECRET", "TEAM_S3_BUCKET", "TEAM_S3_SCAN_CALLBACK_SECRET"} {
set := fmt.Sprintf(`{"environment":"team","set":{%q:{"kind":"env","value":"x"}}}`, k)
if status, _, out := rawReq(t, http.MethodPut, w.url("/config"), w.team, set); status != http.StatusBadRequest || !strings.Contains(out, k) {
@@ -763,9 +766,13 @@ func TestTeamPlatformManagedKeysRefused(t *testing.T) {
}
}
// A key with the prefix's shape but not one of the five is the
- // team's own.
- if status, _, out := rawReq(t, http.MethodPut, w.url("/config"), w.team, `{"environment":"team","set":{"TITO_SMTP_REPLY_TO":{"kind":"env","value":"x"}}}`); status != http.StatusOK {
- t.Errorf("set a team's own key = %d %s", status, out)
+ // team's own, and so is a From named with the _SMTP kept: the submit
+ // transport's From is mail.MailFromName's, the stem plus _MAIL_FROM.
+ for _, k := range []string{"TITO_SMTP_REPLY_TO", "TITO_SMTP_MAIL_FROM"} {
+ set := fmt.Sprintf(`{"environment":"team","set":{%q:{"kind":"env","value":"x"}}}`, k)
+ if status, _, out := rawReq(t, http.MethodPut, w.url("/config"), w.team, set); status != http.StatusOK {
+ t.Errorf("set a team's own key %s = %d %s", k, status, out)
+ }
}
// A person is not bound by this: the walks overwrite what they own.
if status, _, out := rawReq(t, http.MethodPut, w.url("/config"), w.member, `{"environment":"plain","set":{"TITO_SMTP_PASS":{"kind":"env","value":"x"}}}`); status != http.StatusOK {
diff --git a/internal/console/teamenv.go b/internal/console/teamenv.go
index 3d4001b44..c3dde2ac6 100644
--- a/internal/console/teamenv.go
+++ b/internal/console/teamenv.go
@@ -23,14 +23,16 @@ import (
// platformManagedKeys is the set of var names the delivery walks own in
// app's bundles (§3a), computed from the app's records rather than a
// constant list (round 3, P3-2): the SMTP five from the mail record's
-// prefix (mail.EnvNames), the object-store five and the scan callback
-// secret from each store record's prefix (the app store and env's own
-// store), plus the two fixed names, the mail-events key and CARLOS_RELAY.
-// A team's PUT /config refuses any of them; adopt and fork never copy
-// them. An app with no mail or store record contributes only the fixed
-// names: a prefix the member has not chosen yet protects nothing.
+// prefix (mail.EnvNames) and the submit transport's From the switch
+// delivers in their place (mail.MailFromName, <stem>_MAIL_FROM), the
+// object-store five and the scan callback secret from each store record's
+// prefix (the app store and env's own store), plus the three fixed names:
+// the mail-events key, CARLOS_RELAY and CARLOS_MAIL. A team's PUT /config
+// refuses any of them; adopt and fork never copy them. An app with no mail
+// or store record contributes only the fixed names: a prefix the member
+// has not chosen yet protects nothing.
func (s *Server) platformManagedKeys(ctx context.Context, acct, app, env string) (map[string]bool, error) {
- keys := map[string]bool{MailEventsKeyEnv: true, relayVar: true}
+ keys := map[string]bool{MailEventsKeyEnv: true, relayVar: true, mailTransportVar: true}
if rec, _, err := mail.Get(ctx, s.cfg.Releases, acct, app); err != nil {
return nil, fmt.Errorf("mail record: %w", err)
} else if rec != nil && rec.Declared != nil && rec.Declared.EnvPrefix != "" {
@@ -38,6 +40,12 @@ func (s *Server) platformManagedKeys(ctx context.Context, acct, app, env string)
for _, k := range []string{h, p, u, pw, f} {
keys[k] = true
}
+ // The From is managed whether or not the app is switched now: the
+ // switch writes it and switch-off takes it out. A prefix with no
+ // _SMTP stem names no From and is never delivered one.
+ if mf, err := mail.MailFromName(rec.Declared.EnvPrefix); err == nil {
+ keys[mf] = true
+ }
}
stores := []string{""}
if env != "" {
@@ -59,6 +67,12 @@ func (s *Server) platformManagedKeys(ctx context.Context, acct, app, env string)
return keys, nil
}
+// mailTransportVar is the variable a box composes for each instance from
+// the app's submission switch (CARLOS_MAIL=submit, decision 11): the
+// agent sets or strips it at every spawn, so a bundle's copy is never
+// read, and a team has no business writing one.
+const mailTransportVar = "CARLOS_MAIL"
+
// platformManagedList is the keys of m that are platform-managed, sorted:
// what adopt and fork strip (§5), and what a team write is refused for.
func platformManagedList(managed map[string]bool, names []string) []string {
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index e5eb08f88..fa6913fa2 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -244,3 +244,4 @@ plan14-root-reads-fix-1193-wal-close-test.tsv 7ca068c5c146a679b4726d74fe43cf9c47
plan14-root-reads-ha-1192.tsv 8df52839a0c961d3721f3a5c3247d06202dae4e00d011844b7117f8e918803d4
plan14-root-reads-audit-bugs-2.tsv 1610abfc476fe45d259494242243756dac9cfec49cdd7f7f7b238329392241a1
plan14-root-reads-bounded-systemctl.tsv 16cae3931aadfa57a5293d69becf318645681400777cc08972cf08eb449c2457
+plan14-root-reads-mail-submission-followups.tsv c9cd3c8fdf31240b83affa0b2798422f3a99e1d0d400dbaf68665c1127996448
diff --git a/internal/provision/testdata/plan14-root-reads-mail-submission-followups.tsv b/internal/provision/testdata/plan14-root-reads-mail-submission-followups.tsv
new file mode 100644
index 000000000..7d2fab6f9
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-mail-submission-followups.tsv
@@ -0,0 +1,5 @@
+# Census overlay mail-submission-followups, written by census-propose (#369). census-ruling-mail-submission-followups, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-mail-submission-followups.md.
+# 1 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@legacy 399c0d6dca35e2a17946e31462de0e4762c890477f4ab64bdda815d8e1c8f200 deploy.go runDeploy legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-edge-asset-cache-1;basis=takes --assets and --no-assets, refuses both together and bad folders before anything runs (deployAssets), reads the folders saved in .carlos/config for the session's console through configAssets (the config walk the CLI already makes), and saves a new list there as it saves the other deploy settings; read site unchanged (1), none added;rev3=census-ruling-gated-deploy-watch-164;basis=the static-deploy branch passes its watch targets through passGatedTargets (a console POST for a gate pass per gated host) and passes the gated-host set to watchDeployed; no new local read, read site unchanged (1), none added;rev3=census-ruling-region-labels;basis=builds a host-to-label map (hostPlaces) from the instance list it already read and passes it to the static watch targets and watchDeployed, so the watch lines say where; no read added;rev3=census-ruling-first-deploy-493;basis=Sequences existing console APIs for confirmed-missing app and first instance creation, with repeatable environment values; local artifact preflight before these new writes. Existing config artifact stat read retained.;rev3=census-ruling-account-subdomains;basis=builds its watch targets with watchTargetsFor (host, watchOrigin(host), the instance list's public_host as Display, place, probe) from the instance list it already read, and passes them to watchDeployed; deployingLine prints the public host from that same list; the watch still dials and matches host; no read added, read site unchanged (1); fix round 1: a first static deploy keeps the create answer mintPlatformHost now returns (the whole record, not its host) and carries its public_host into the record it appends, for printing only; mintPlatformHost makes the same two console requests as before;rev3=census-ruling-mail-submission-followups;basis=takes --mail and refuses a value but submit before the console is asked anything (the git reads for the version and the dirty-tree check run earlier, as before) (validShipMail, joined with the existing --swap check), and sets the session's shipMail, which the existing ship request sends to the console and checks the echo of (checkMailEcho); its usage text moves to the deployUsage const; no read added, read site unchanged (1) file:Stat@8743 1f3fe5769efda7c319d8c3ee0c54140e79ea15e3f8381dec0bb3244b1bd46f29
+deploy.go runDeploy legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-edge-asset-cache-1;basis=takes --assets and --no-assets, refuses both together and bad folders before anything runs (deployAssets), reads the folders saved in .carlos/config for the session's console through configAssets (the config walk the CLI already makes), and saves a new list there as it saves the other deploy settings; read site unchanged (1), none added;rev3=census-ruling-gated-deploy-watch-164;basis=the static-deploy branch passes its watch targets through passGatedTargets (a console POST for a gate pass per gated host) and passes the gated-host set to watchDeployed; no new local read, read site unchanged (1), none added;rev3=census-ruling-region-labels;basis=builds a host-to-label map (hostPlaces) from the instance list it already read and passes it to the static watch targets and watchDeployed, so the watch lines say where; no read added;rev3=census-ruling-first-deploy-493;basis=Sequences existing console APIs for confirmed-missing app and first instance creation, with repeatable environment values; local artifact preflight before these new writes. Existing config artifact stat read retained.;rev3=census-ruling-account-subdomains;basis=builds its watch targets with watchTargetsFor (host, watchOrigin(host), the instance list's public_host as Display, place, probe) from the instance list it already read, and passes them to watchDeployed; deployingLine prints the public host from that same list; the watch still dials and matches host; no read added, read site unchanged (1); fix round 1: a first static deploy keeps the create answer mintPlatformHost now returns (the whole record, not its host) and carries its public_host into the record it appends, for printing only; mintPlatformHost makes the same two console requests as before;rev3=census-ruling-mail-submission-followups;basis=takes --mail and refuses a value but submit before the console is asked anything (the git reads for the version and the dirty-tree check run earlier, as before) (validShipMail, joined with the existing --swap check), and sets the session's shipMail, which the existing ship request sends to the console and checks the echo of (checkMailEcho); its usage text moves to the deployUsage const; no read added, read site unchanged (1) file:Stat@8743 1f3fe5769efda7c319d8c3ee0c54140e79ea15e3f8381dec0bb3244b1bd46f29
+@coverage . cee5db9bb10e60010db7a685c20fb9545f44db0f82e94a8b1d8a993caebbf2aa
diff --git a/ship_mail.go b/ship_mail.go
index 1b4d282fe..2aec995e5 100644
--- a/ship_mail.go
+++ b/ship_mail.go
@@ -11,12 +11,17 @@ import (
// carlos ship --mail submit: the build's mail transport declaration
// (release.Manifest.Mail, platform mail submission decision 10). The apps
// have no manifest file to hold it, so the declaration is a ship flag.
+// deploy and canary deploy take the same flag and carry it to the same
+// ship (apiSession.shipMail), so the console's checks and the echo below
+// hold for all three: a rootfs release is refused at the console's door,
+// and a re-ship of a version with a different declaration is its 409.
const shipMailFlagHelp = "declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set"
const shipBadMail = "--mail %q: the one value is submit"
const shipMailNoEcho = "ship: this console predates --mail and stored the release without it. Nothing was promoted. Upgrade the console, then ship under a new version"
// validShipMail refuses any --mail value but "" and release.MailSubmit, in
// one line, before the mode split, so both doors refuse the same value.
+// deploy and canary deploy call it before they ask the console anything.
func validShipMail(mail string) error {
if release.ValidateMail(mail) != nil {
return fmt.Errorf(shipBadMail, mail)
diff --git a/testdata/clireg-golden.jsonl b/testdata/clireg-golden.jsonl
index 66a23d5e3..39e24f262 100644
--- a/testdata/clireg-golden.jsonl
+++ b/testdata/clireg-golden.jsonl
@@ -128,21 +128,21 @@
{"case":"bootstrap | --zz-unknown-flag","argv":["bootstrap","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos bootstrap [flags]\nflags:\n --offcloud off-cloud box: require a staged 0600 credentials file instead of an EC2 instance profile\n --plan-json with -root: print the arming plan as JSON on stdout instead of the human summary\n --root <string> install root; a staging dir writes files only (no user creation, no systemctl) (default: /)\n --socket-consumer <value> host-app user to enroll in the carlos-sockets group (repeatable); members may dial every instance socket on the box\n"}
{"case":"bootstrap | -h","argv":["bootstrap","-h"],"exit":0,"stdout":"","stderr":"usage: carlos bootstrap [flags]\nflags:\n --offcloud off-cloud box: require a staged 0600 credentials file instead of an EC2 instance profile\n --plan-json with -root: print the arming plan as JSON on stdout instead of the human summary\n --root <string> install root; a staging dir writes files only (no user creation, no systemctl) (default: /)\n --socket-consumer <value> host-app user to enroll in the carlos-sockets group (repeatable); members may dial every instance socket on the box\n"}
{"case":"canary ./site | extra","argv":["canary","./site"],"exit":1,"stdout":"","stderr":"not in a git repository — pass --version\n"}
-{"case":"canary delete | --zz-unknown-flag","argv":["canary","delete","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app the canary belongs to\n --console <string> console to remove 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 --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"canary delete | -h","argv":["canary","delete","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app the canary belongs to\n --console <string> console to remove 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 --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"canary deploy | --zz-unknown-flag","argv":["canary","deploy","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
-{"case":"canary deploy | -h","argv":["canary","deploy","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
-{"case":"canary list -h | extra","argv":["canary","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"canary list | --zz-unknown-flag","argv":["canary","list","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"canary list | -h","argv":["canary","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"canary ls | --zz-unknown-flag","argv":["canary","ls","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"canary ls | -h","argv":["canary","ls","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"canary rm | --zz-unknown-flag","argv":["canary","rm","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app the canary belongs to\n --console <string> console to remove 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 --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"canary rm | -h","argv":["canary","rm","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app the canary belongs to\n --console <string> console to remove 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 --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
-{"case":"canary | --help","argv":["canary","--help"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
-{"case":"canary | --zz-unknown-flag","argv":["canary","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
-{"case":"canary | -h","argv":["canary","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
-{"case":"canary | bare","argv":["canary"],"exit":1,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is never refused, and a canary costs no rung: a build\nthat has been on one still enters the pipeline as a fresh build, so canarying\nand then promoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\n"}
+{"case":"canary delete | --zz-unknown-flag","argv":["canary","delete","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app the canary belongs to\n --console <string> console to remove 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 --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
+{"case":"canary delete | -h","argv":["canary","delete","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app the canary belongs to\n --console <string> console to remove 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 --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
+{"case":"canary deploy | --zz-unknown-flag","argv":["canary","deploy","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
+{"case":"canary deploy | -h","argv":["canary","deploy","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
+{"case":"canary list -h | extra","argv":["canary","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
+{"case":"canary list | --zz-unknown-flag","argv":["canary","list","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
+{"case":"canary list | -h","argv":["canary","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
+{"case":"canary ls | --zz-unknown-flag","argv":["canary","ls","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
+{"case":"canary ls | -h","argv":["canary","ls","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app whose canaries to list\n --console <string> console to read 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 --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
+{"case":"canary rm | --zz-unknown-flag","argv":["canary","rm","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app the canary belongs to\n --console <string> console to remove 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 --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
+{"case":"canary rm | -h","argv":["canary","rm","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app the canary belongs to\n --console <string> console to remove 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 --name <string> canary name to remove\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n"}
+{"case":"canary | --help","argv":["canary","--help"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
+{"case":"canary | --zz-unknown-flag","argv":["canary","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
+{"case":"canary | -h","argv":["canary","-h"],"exit":0,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\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 --app, -a <string> app to canary\n --console <string> console to deploy 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 --environment <string> named config bundle the canary binds to (default: the app's default bundle)\n --kind <string> binary | static (default: binary)\n --label <string> one line for humans — shows up in carlos releases and in the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --name <string> canary name (default: the current git branch, slugified)\n --region <string> region for the canary instance (default: the app's region)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --scope <string> the team scope that owns --environment, named explicitly (carlos env adopt)\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --timeout <duration> how long to watch the canary URL before failing (default: 2m0s)\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
+{"case":"canary | bare","argv":["canary"],"exit":1,"stdout":"","stderr":"usage: carlos canary [deploy] --app <a> [--name <n>] [--version <sha>] [--kind binary|static]\n [--region <code>] [--environment <e>] [--target <goos-goarch>] [--label <l>]\n [--mail submit] [--timeout 120s] <files-or-site-dir>\n carlos canary ls --app <a>\n carlos canary rm --app <a> --name <n>\n\nShips a version and serves it on its own host, following its own canary/<name>\nchannel, without touching what the app's other instances serve. The bare form\nis deploy.\n\n--name defaults to the current git branch, slugified. The canary's host is\n<name>-<app>.<your account's platform domain>, and its channel is\ncanary/<name>.\n\n--environment binds the canary to one of the app's named config bundles.\nReach for it whenever the app carries config: bundles are per-app, so without\none the canary serves values naming the app's MAIN host, and anything keyed to\na single origin — the Origin header the app compares against, magic-link URLs,\na WebAuthn RP ID, the cookie Secure flag — refuses requests on the canary host\nwhile GETs look healthy. \"carlos env --app <a> --environment <e> KEY=V\" writes\na bundle; this flag points the canary at it.\n\nPromotion into a canary is allowed from any rung, unless email submission is\non and the build lacks --mail submit. A canary costs no rung: a build that has\nbeen on one still enters the pipeline as a fresh build, so canarying and then\npromoting to edge is the ordinary path, not a bypass.\n\nCanaries carry a seven-day lease, refreshed by every re-promote. \"canary ls\"\nshows what is left of it.\n"}
{"case":"canary | help","argv":["canary","help"],"exit":1,"stdout":"","stderr":"not in a git repository — pass --version\n"}
{"case":"canary | zz-unknown","argv":["canary","zz-unknown"],"exit":1,"stdout":"","stderr":"not in a git repository — pass --version\n"}
{"case":"channels digests --account-id x on | extra","argv":["channels","digests","--account-id","x","on"],"exit":1,"stdout":"","stderr":"usage: carlos channels digests [on|off] [--account-id <sqid>]...\n"}
@@ -200,8 +200,8 @@
{"case":"db | bare","argv":["db"],"exit":2,"stdout":"","stderr":"usage: carlos db <verb> --app <a> [--instance <host>] [flags]\n\n pull --out <path> restore a copy of the instance's database and save it\n at <path>, which must not exist yet (saved 0600)\n query --sql <text> restore a copy and run one read-only query against it;\n rows go to stdout, tab-separated, with a header row\n\nAdd --at <time> to either verb to read the database as it was at that\ntime, for example --at 2026-10-07T14:00:00Z. The copy holds every change\nreplicated before then, so it can be a little older than the time you give.\nHow far back you can go depends on how much history the platform keeps.\n\nBoth read the platform's replica of the database, never the live one, and\nnothing you do to the copy reaches the instance. --instance names which of\nthe app's instances to read; it may be left out when the app has one. The\nusual --account / --account-id / --console / --destination apply.\n"}
{"case":"db | help","argv":["db","help"],"exit":0,"stdout":"usage: carlos db <verb> --app <a> [--instance <host>] [flags]\n\n pull --out <path> restore a copy of the instance's database and save it\n at <path>, which must not exist yet (saved 0600)\n query --sql <text> restore a copy and run one read-only query against it;\n rows go to stdout, tab-separated, with a header row\n\nAdd --at <time> to either verb to read the database as it was at that\ntime, for example --at 2026-10-07T14:00:00Z. The copy holds every change\nreplicated before then, so it can be a little older than the time you give.\nHow far back you can go depends on how much history the platform keeps.\n\nBoth read the platform's replica of the database, never the live one, and\nnothing you do to the copy reaches the instance. --instance names which of\nthe app's instances to read; it may be left out when the app has one. The\nusual --account / --account-id / --console / --destination apply.\n","stderr":""}
{"case":"db | zz-unknown","argv":["db","zz-unknown"],"exit":2,"stdout":"","stderr":"carlos db: unknown verb \"zz-unknown\"\nusage: carlos db <verb> --app <a> [--instance <host>] [flags]\n\n pull --out <path> restore a copy of the instance's database and save it\n at <path>, which must not exist yet (saved 0600)\n query --sql <text> restore a copy and run one read-only query against it;\n rows go to stdout, tab-separated, with a header row\n\nAdd --at <time> to either verb to read the database as it was at that\ntime, for example --at 2026-10-07T14:00:00Z. The copy holds every change\nreplicated before then, so it can be a little older than the time you give.\nHow far back you can go depends on how much history the platform keeps.\n\nBoth read the platform's replica of the database, never the live one, and\nnothing you do to the copy reaches the instance. --instance names which of\nthe app's instances to read; it may be left out when the app has one. The\nusual --account / --account-id / --console / --destination apply.\n"}
-{"case":"deploy | --zz-unknown-flag","argv":["deploy","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos deploy [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 --app, -a <string> app name\n --assets <value> a folder your build writes files to, for example /assets/. repeat the flag for up to 8 folders. servers near your visitors may keep copies of the files in them\n --capabilities <string> path to a JSON capability block (internal/caps) to embed in the manifest\n --channel, -c <string> channel to promote to (default: resolved from the app's instances, or its one channel if it has no instances; error if ambiguous)\n --console <string> console origin to deploy through (API 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 --env <value> set an ordinary environment variable before shipping; repeat for more variables\n --host <string> serve on this hostname instead of the app's own platform host (also scopes channel resolution and the watch to it)\n --kind <string> binary | static (default: binary)\n --label <string> one line describing this release, for carlos releases and the console\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-assets ship with no asset folders, ignoring any saved in .carlos/config\n --no-prompt Skip the optional change description prompt.\n --notes <string> longer release notes\n --region <string> region for the app this deploy creates (default: the region nearest you)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --swap <string> hold: this release stops each instance before starting it, for a migration the previous build cannot share the database with\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --temporary create a new temporary app for this static site: named tmp-..., it moves to the Trash after --ttl and is purged 3 days later\n --timeout <duration> how long to watch the URL before failing (default: 2m0s)\n --ttl <string> how long a temporary app lives, 1h to 30d (default 7d); implies --temporary\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
-{"case":"deploy | -h","argv":["deploy","-h"],"exit":0,"stdout":"","stderr":"usage: carlos deploy [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 --app, -a <string> app name\n --assets <value> a folder your build writes files to, for example /assets/. repeat the flag for up to 8 folders. servers near your visitors may keep copies of the files in them\n --capabilities <string> path to a JSON capability block (internal/caps) to embed in the manifest\n --channel, -c <string> channel to promote to (default: resolved from the app's instances, or its one channel if it has no instances; error if ambiguous)\n --console <string> console origin to deploy through (API 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 --env <value> set an ordinary environment variable before shipping; repeat for more variables\n --host <string> serve on this hostname instead of the app's own platform host (also scopes channel resolution and the watch to it)\n --kind <string> binary | static (default: binary)\n --label <string> one line describing this release, for carlos releases and the console\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-assets ship with no asset folders, ignoring any saved in .carlos/config\n --no-prompt Skip the optional change description prompt.\n --notes <string> longer release notes\n --region <string> region for the app this deploy creates (default: the region nearest you)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --swap <string> hold: this release stops each instance before starting it, for a migration the previous build cannot share the database with\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --temporary create a new temporary app for this static site: named tmp-..., it moves to the Trash after --ttl and is purged 3 days later\n --timeout <duration> how long to watch the URL before failing (default: 2m0s)\n --ttl <string> how long a temporary app lives, 1h to 30d (default 7d); implies --temporary\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
+{"case":"deploy | --zz-unknown-flag","argv":["deploy","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos deploy [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 --app, -a <string> app name\n --assets <value> a folder your build writes files to, for example /assets/. repeat the flag for up to 8 folders. servers near your visitors may keep copies of the files in them\n --capabilities <string> path to a JSON capability block (internal/caps) to embed in the manifest\n --channel, -c <string> channel to promote to (default: resolved from the app's instances, or its one channel if it has no instances; error if ambiguous)\n --console <string> console origin to deploy through (API 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 --env <value> set an ordinary environment variable before shipping; repeat for more variables\n --host <string> serve on this hostname instead of the app's own platform host (also scopes channel resolution and the watch to it)\n --kind <string> binary | static (default: binary)\n --label <string> one line describing this release, for carlos releases and the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-assets ship with no asset folders, ignoring any saved in .carlos/config\n --no-prompt Skip the optional change description prompt.\n --notes <string> longer release notes\n --region <string> region for the app this deploy creates (default: the region nearest you)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --swap <string> hold: this release stops each instance before starting it, for a migration the previous build cannot share the database with\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --temporary create a new temporary app for this static site: named tmp-..., it moves to the Trash after --ttl and is purged 3 days later\n --timeout <duration> how long to watch the URL before failing (default: 2m0s)\n --ttl <string> how long a temporary app lives, 1h to 30d (default 7d); implies --temporary\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
+{"case":"deploy | -h","argv":["deploy","-h"],"exit":0,"stdout":"","stderr":"usage: carlos deploy [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 --app, -a <string> app name\n --assets <value> a folder your build writes files to, for example /assets/. repeat the flag for up to 8 folders. servers near your visitors may keep copies of the files in them\n --capabilities <string> path to a JSON capability block (internal/caps) to embed in the manifest\n --channel, -c <string> channel to promote to (default: resolved from the app's instances, or its one channel if it has no instances; error if ambiguous)\n --console <string> console origin to deploy through (API 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 --env <value> set an ordinary environment variable before shipping; repeat for more variables\n --host <string> serve on this hostname instead of the app's own platform host (also scopes channel resolution and the watch to it)\n --kind <string> binary | static (default: binary)\n --label <string> one line describing this release, for carlos releases and the console\n --mail <string> declare this build's mail transport. the one value is submit: the build sends through carlos's submission socket when CARLOS_MAIL=submit is set\n --message <string> Add a short note describing this change (shown alongside the recorded action).\n --no-assets ship with no asset folders, ignoring any saved in .carlos/config\n --no-prompt Skip the optional change description prompt.\n --notes <string> longer release notes\n --region <string> region for the app this deploy creates (default: the region nearest you)\n --registry <string> registry database (resolves --account) (default: $DIR/data/registry.db)\n --swap <string> hold: this release stops each instance before starting it, for a migration the previous build cannot share the database with\n --target <string> GOOS-GOARCH the binary was built for (binary kind, single file) (default: linux-arm64)\n --temporary create a new temporary app for this static site: named tmp-..., it moves to the Trash after --ttl and is purged 3 days later\n --timeout <duration> how long to watch the URL before failing (default: 2m0s)\n --ttl <string> how long a temporary app lives, 1h to 30d (default 7d); implies --temporary\n --version, -v <string> version (default: git rev-parse --short HEAD)\n"}
{"case":"devbox list | --zz-unknown-flag","argv":["devbox","list","--zz-unknown-flag"],"exit":2,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos devbox list [--allowed]\nlist shows every link on this devbox, who owns it and whether it is answering\nflags:\n --allowed also show who can open your private links\n"}
{"case":"devbox list | -h","argv":["devbox","list","-h"],"exit":0,"stdout":"","stderr":"usage: carlos devbox list [--allowed]\nlist shows every link on this devbox, who owns it and whether it is answering\nflags:\n --allowed also show who can open your private links\n"}
{"case":"devbox serve | --zz-unknown-flag","argv":["devbox","serve","--zz-unknown-flag"],"exit":1,"stdout":"","stderr":"flag provided but not defined: -zz-unknown-flag\nusage: carlos devbox serve [--env-file <env file>]\nserve runs the devbox service. its systemd unit or launchd daemon starts it, and nobody else needs to\nflags:\n --env-file <string> a file of KEY=VALUE lines to read before serving. blank lines and lines starting with # are skipped, and values are taken as written, with no quotes. a setting in the file replaces one already in the environment. the file must belong to this account, and only this account may read or change it\nflag provided but not defined: -zz-unknown-flag\n"}