reviews: briefs for the census and branch review of mail submission follow-ups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+132
−0
docs/superpowers/reviews/CENSUS-REVIEW-BRIEF-mail-submission-followups.md+55 −0docs/superpowers/reviews/REVIEW-BRIEF-mail-submission-followups.md+77 −0
CI failed — run details
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/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). |