feat/mail-submission-followups
Mail submission follow-ups
Paul approved this on 2026-11-17 ("Yes to CARLOS change"). It follows platform mail submission (9eec0236).
What changes
carlos deploy --mail submitandcarlos canary [deploy] --mail submit. Until now onlycarlos shiphad the flag, but the Oficina apps deploy withdeploy. Both commands reuse ship's code: -validShipMailrefuses a bad value before the console is asked anything. Deploy joins it to the existing--swapcheck, and canary to the name check, so the root package gets no newlog.Fatalsite. -apiSession.shipMailsends the declaration in the existing ship request, socheckMailEcho(shipMailNoEcho) applies. - The console door refuses a rootfs release that declares--mail(deploy and canary only ship binaries and static sites). It also refuses a re-ship of a version whose declaration differs, with a 409.
The deploy usage line moves to a deployUsage const. runDeploy drops from 331 to 329 code lines, and the code-health record is lowered to match.
The canary usage text, the docs and a code comment said promotion into a canary is "never refused". That was untrue once email submission is on, so all three are qualified.
<stem>_MAIL_FROMandCARLOS_MAILare platform-managed (internal/console/teamenv.go,platformManagedKeys): - The From name comes frommail.MailFromName, the same derivation the delivery uses. - A team's config write refuses these names, just as it refuses the<P>_SMTP_*five. - Adopt and fork leave them out.mintOwnedEnvironment(DeliverMailFromIn) still delivers a switched app's From afterwards.
Tests (each was red without its change)
TestDeployAndCanaryCarryTheMailDeclaration(new) runs the built binary against a real console. It checks the bad value, the stored declaration, the console's 409 on a re-ship, and the missing echo with nothing promoted.TestTeamPlatformManagedKeysRefused,TestEnvironmentAdoptAndReleaseandTestEnvironmentForknow cover the new names.TestSwitchedAdoptAndForkLeaveTheFromToThePlatform(new) checks that adopt and fork strip both names on a switched app and the platform's From is then delivered.
Generated files
testdata/clireg-golden.jsonl: re-recorded in the Linux container (Go 1.26.10). Only the deploy and canary cases change.make parity-doc: no change.- Code-health record:
runDeploy331 -> 329.
Copy
docs/superpowers/plans/mail-submission-followups-copy.json holds MSF-C1 to C7. Luna reviewed them in two rounds under Paul's 2026-10-25 delegation. Her rewrites (C3, C4, C6, C7) are applied verbatim, and she raised no flags. TestApprovedMailSubmissionFollowupsCopy pins the record.
Reviews
- Census, Astra round 1 at 99c49f86a: APPROVE (
runDeploy, envelope.). The P3 is fixed. - Census, Astra scoped check at df0785194: CHECK PASSED. The P3 is fixed in 3f7edfec9 (claim text only).
- Both verdicts are recorded on #280.
- Branch review, Opus round 1: READY. P3s 1 and 2 are fixed. P3 3 (a zero-arg
--mailtest) is left as a follow-up. - Findings:
docs/superpowers/reviews/FINDINGS-mail-submission-followups.md.
CI
The first run, at aedbb2073, failed on internal/activator TestPoolWithdrawalLogsProofAttempt/success. The branch does not touch that package, and the test passes 20/20 in isolation, so this was a load flake.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed aa1aabcc1 Merge origin/main (61ed5486f, bounded systemctl) into feat/mail-submission-followups
- paul@keymail.dev pushed 3f7edfec9 census: claim names deploy's own earlier git reads (Astra scoped-check P3); review findings recorded
- paul@keymail.dev pushed df0785194 census: re-propose mail submission follow-ups after the review fixes
- paul@keymail.dev pushed 725621e21 cli golden: canary help's promotion paragraph
- paul@keymail.dev pushed 2a591b348 review fixes: ordering wording; canary promotion is gated once submission is on
- paul@keymail.dev pushed aedbb2073 reviews: briefs for the census and branch review of mail submission follow-ups
- paul@keymail.dev pushed 99c49f86a census: mail submission follow-ups proposal (runDeploy body, envelope .)
- paul@keymail.dev pushed 12b9384de cli golden: deploy and canary help name --mail
- paul@keymail.dev pushed 2ba630a47 mail submission follow-ups: deploy and canary take --mail; the From is platform-managed