carlos / platform Public

review fixes: ordering wording; canary promotion is gated once submission is on

Astra census P3: the comments said --mail is refused before the first
read; git reads run earlier, so they say before the console is asked.
Opus review P3: canary's usage, docs and promote comment said promotion
into a canary is never refused; the submission gate refuses a build
without --mail submit while submission is on. New copy MSF-C6 and MSF-C7,
Luna round 2, applied verbatim.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 2a591b348bc64f9d147500479849e82712fbef86 parent aedbb20
8 files changed, +62 −17
  • approved_mail_submission_followups_copy_test.go +3 −2
  • canary.go +9 −6
  • docs/site/cli.md +5 −4
  • docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md +18 −0
  • docs/superpowers/notes/LUNA-COPY-RESULT-mail-submission-followups-R2.md +10 −0
  • docs/superpowers/notes/census-claims-mail-submission-followups.tsv +1 −1
  • docs/superpowers/plans/mail-submission-followups-copy.json +15 −3
  • ship_mail.go +1 −1
diff --git a/approved_mail_submission_followups_copy_test.go b/approved_mail_submission_followups_copy_test.go
index 8053dfe3b..f226f9fbd 100644
--- a/approved_mail_submission_followups_copy_test.go
+++ b/approved_mail_submission_followups_copy_test.go
@@ -8,8 +8,9 @@ import (
// mailSubmissionFollowupsCopyIDs is the copy inventory of the mail
// submission follow-ups (carlos deploy and carlos canary take --mail
-// submit): the two usage lines and the docs page's three passages.
-var mailSubmissionFollowupsCopyIDs = []string{"MSF-C1", "MSF-C2", "MSF-C3", "MSF-C4", "MSF-C5"}
+// 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,
diff --git a/canary.go b/canary.go
index 862b8f965..0b02ac494 100644
--- a/canary.go
+++ b/canary.go
@@ -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.`
@@ -518,7 +519,7 @@ func runCanaryDeploy(args []string) {
*ver = gitShortHead()
}
// --mail is ship's declaration, refused as ship refuses it, with the
- // name and before the first read.
+ // name and before the console is asked anything.
canary, err := canaryNameFrom(strings.TrimSpace(*name), gitBranch())
if err = errors.Join(err, validShipMail(*mail)); err != nil {
log.Fatal(err)
@@ -656,8 +657,10 @@ func runCanaryDeploy(args []string) {
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/docs/site/cli.md b/docs/site/cli.md
index cb96d300b..654fd9ec4 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -622,10 +622,11 @@ app that runs on one of your fleets.
`--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 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.
+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
diff --git a/docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md b/docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md
index a265ceeed..eb16ba4a4 100644
--- a/docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md
+++ b/docs/superpowers/notes/LUNA-COPY-BRIEF-mail-submission-followups.md
@@ -67,3 +67,21 @@ Write `/Users/paulcampbell/.cache/tmp/claude-mailfollowups/luna-review.md` with:
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/census-claims-mail-submission-followups.tsv b/docs/superpowers/notes/census-claims-mail-submission-followups.tsv
index 2d4f30a75..63bd43fa2 100644
--- a/docs/superpowers/notes/census-claims-mail-submission-followups.tsv
+++ b/docs/superpowers/notes/census-claims-mail-submission-followups.tsv
@@ -1 +1 @@
-deploy.go:runDeploy takes --mail and refuses a value but submit before anything runs (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)
+deploy.go:runDeploy takes --mail and refuses a value but submit before the console is asked anything (the git reads for --version and the branch name 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/plans/mail-submission-followups-copy.json b/docs/superpowers/plans/mail-submission-followups-copy.json
index db2a3b0df..75e37a572 100644
--- a/docs/superpowers/plans/mail-submission-followups-copy.json
+++ b/docs/superpowers/plans/mail-submission-followups-copy.json
@@ -1,7 +1,7 @@
{
- "approved_by": "Luna copy pass (gpt-5.6-luna), delegated under Paul's standing rule of 2026-10-25 for platform copy; MSF-C3 and MSF-C4 applied verbatim as Luna rewrote them, MSF-C1, MSF-C2 and MSF-C5 approved as drafted; no flags",
+ "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).",
+ "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": [
@@ -34,8 +34,20 @@
"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"
+ "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/ship_mail.go b/ship_mail.go
index 25cc31ee0..2aec995e5 100644
--- a/ship_mail.go
+++ b/ship_mail.go
@@ -21,7 +21,7 @@ const shipMailNoEcho = "ship: this console predates --mail and stored the releas
// 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 their first read or write.
+// 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)