carlos / platform Public

spec rev 2: builder check + Astra round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev ac21aa3bc69327f326ea08ad8c9b6d4f594e422d parent 49eaacf
3 files changed, +253 −15
  • docs/superpowers/reviews/CODEX-FINDINGS-email-signin-r1.md +91 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-email-signin.md +35 −0
  • docs/superpowers/specs/2026-10-21-console-email-signin-design.md +127 −15

CI passed — run details

diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-email-signin-r1.md b/docs/superpowers/reviews/CODEX-FINDINGS-email-signin-r1.md
new file mode 100644
index 000000000..3483943c2
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-email-signin-r1.md
@@ -0,0 +1,91 @@
+Reviewed draft rev 1 at `49eaacf0`. These findings concern the proposed design and its integration with the existing code. No files were edited; no tests were run.
+
+1. **P1 — The link POST permits login CSRF.**
+
+ **Spec:** §5.1.
+
+ **Evidence:** [server.go:2124](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/server.go:2124) sets `SameSite=Lax`; [server.go:1683](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/server.go:1683) dispatches without a general origin check.
+
+ **Failure:** An attacker requests a link for their own address, then auto-submits its token from an attacker-controlled page into the victim’s browser. The proposed POST signs that browser into the attacker’s account without displaying the confirmation page. The attacker knows the token legitimately. Withholding existing cookies does not prevent the response from installing a new session.
+
+ **Fix:** Require browser-bound confirmation state minted by the GET, checked on POST alongside the link token. Reject cross-origin submissions. Apply this protection to the legacy confirmation POST too.
+
+2. **P1 — Suppressing sends alone leaves unlimited six-digit guessing budgets.**
+
+ **Spec:** §§4, 5, 7.
+
+ **Evidence:** The existing challenge-creation precedent, [store.go:2456](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/store.go:2456), creates a redeemable token independently of delivery. [authcli.go:1270](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/authcli.go:1270) explicitly addresses the analogous problem: a fresh caller-controlled key must not provide a fresh guessing budget.
+
+ **Failure:** The spec records challenges but says rate limiting skips only the send. An attacker can repeatedly create challenges for a victim using fresh browser cookies and make five guesses against each, including challenges whose emails were suppressed. A correct guess still authenticates; mailbox access is unnecessary. Five attempts per challenge therefore does not bound attempts per victim.
+
+ **Fix:** Rate-limit creation of *redeemable* challenges, preserving an indistinguishable response for refused requests. Add verification limits across challenges, keyed by address and client IP. Test repeated challenge replacement after delivery limits are exhausted.
+
+3. **P1 — The stored pending-action hash cannot be passed to the existing redemption helper.**
+
+ **Spec:** §5’s `pending` column and §6’s success path.
+
+ **Evidence:** [stepup.go:181](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/stepup.go:181) returns a raw token while storing its hash. [stepup.go:214](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/stepup.go:214) hashes the token supplied to `TakePendingAction` before lookup.
+
+ **Failure:** The challenge retains only the pending token’s hash, but §6 calls the existing `TakePendingAction`. Passing the stored value hashes it twice and finds no action. No other place retaining the raw token is specified. Email verification can succeed while every pending action fails to resume.
+
+ **Fix:** Specify an internal redemption helper accepting the stored hash, retaining the transaction, session binding, expiry check and single-use deletion. Alternatively, explicitly preserve and bind the raw token in browser state.
+
+4. **P2 — The delivery rules still allow SMTP sends to Keymail addresses.**
+
+ **Spec:** §3’s no-SMTP anti-goal, §4, and §11’s CLI notification change.
+
+ **Evidence:** [keymailfed.go:77](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/keymailfed.go:77) wraps **every** lookup failure as `ErrNoKeymailMailbox`, including transport failures and server errors. [keymailfed_test.go:84](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/keymailfed_test.go:84) also establishes that a nonexistent local part under `keymail.dev` produces that sentinel. [authcli.go:1319](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/authcli.go:1319) checks grant presence, not mailbox type.
+
+ **Failure:** Following §4 during a Keymail lookup outage sends a Keymail-addressed authentication message through SES. Separately, someone signing in through federation has no stored grant, so §11 sends their CLI security notification directly through SES even though their mailbox is Keymail.
+
+ **Fix:** Distinguish definitive mailbox/domain results from transient lookup failures, and explicitly prevent SMTP fallback for Keymail-hosted addresses. Route CLI notifications through the same delivery policy rather than treating “no grant” as “ordinary email.”
+
+5. **P2 — The shared 60-second limit suppresses the first CLI step-up email.**
+
+ **Spec:** §§5.3, 6, 7, 12.
+
+ **Evidence:** [store.go:2404](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/store.go:2404) creates a session without recording fresh authentication. [authcli.go:1468](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/authcli.go:1468) requires step-up before CLI approval.
+
+ **Failure:** A person receives a sign-in email, signs in promptly, and approves their terminal within 60 seconds. Step-up requires another email, but the shared address cooldown silently suppresses it. They see “check your email” for a message that will never arrive.
+
+ **Fix:** Reserve capacity for an authenticated step-up immediately after sign-in while retaining aggregate address limits—for example, separate purpose cooldowns under a shared hourly/daily budget. Test the complete CLI flow without advancing the clock between sign-in and approval.
+
+6. **P2 — Email challenges outlive the actions they promise to resume.**
+
+ **Spec:** §§5–6.
+
+ **Evidence:** [stepup.go:75](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/stepup.go:75) defines a ten-minute pending-action lifetime; [stepup.go:191](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/stepup.go:191) applies it when stashing. [stepup.go:232](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/stepup.go:232) refuses expired actions.
+
+ **Failure:** A person uses their valid 15-minute step-up link after eleven minutes. Authentication succeeds, but the pending action has expired and cannot resume.
+
+ **Fix:** Align email step-up challenge and pending-action expiry. If pending actions remain ten minutes, give step-up challenges that same deadline and communicate it consistently.
+
+7. **P2 — Reusing `/auth/continue` needs stricter recipient validation.**
+
+ **Spec:** §§7 and 11.
+
+ **Evidence:** [server.go:2733](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/server.go:2733) normalizes the submitted text but checks only `ValidAddress`. [mint.go:85](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/domains/mint.go:85) merely requires an `@` and no whitespace. The invite handler already explains and closes this gap using `net/mail.ParseAddress` plus exact address equality at [server.go:2462](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/server.go:2462).
+
+ **Failure:** Inputs such as `a<victim@example.com>` pass the existing sign-in validator. Different display-name forms can identify the same email recipient while receiving different address-rate-limit keys and console identities.
+
+ **Fix:** Require one normalized bare address before challenge creation, identity lookup or rate limiting, using the invite handler’s stricter validation. Use that same canonical value throughout delivery and redemption.
+
+8. **P2 — `next` bypasses the personal-account creation promised by R2.**
+
+ **Spec:** §§2/R2, 5.3, 8.
+
+ **Evidence:** [store.go:2147](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/store.go:2147) creates only the user row. Account creation happens through `redirectToCurrentAccount` at [server.go:2179](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/server.go:2179), which reaches the mint at [server.go:2209](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/console/server.go:2209).
+
+ **Failure:** A new user signs up while returning to `/auth/cli`. The proposed `finishSignin` follows `next` instead of calling `redirectToCurrentAccount`, so no personal account is created. The same branch changes onboarding for invite-driven sign-ups.
+
+ **Fix:** Separate required onboarding from redirect selection. Ensure the R2 account-creation behavior completes before following `next`, and test new-user CLI and invite round trips.
+
+9. **P2 — The rollout omits ownership proof for an existing SES identity.**
+
+ **Spec:** §§9 and 13.
+
+ **Evidence:** [walk.go:249](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/mail/walk.go:249) refuses an existing identity that CARLOS does not own unless DNS proof succeeds. [domainclaim.go:363](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/email-signin/internal/mail/domainclaim.go:363) defines the required proof record and value.
+
+ **Failure:** If `carloku.com` already has an SES identity—or an operator creates it while preparing the rollout—verified DKIM and the absence of a tenant claim are insufficient. `EnsureDomain` refuses adoption, leaving ordinary email sign-in unavailable despite the send grant.
+
+ **Fix:** Add an explicit existing-identity check. Where adoption is required, publish TXT `_carlos-mail.carloku.com` with value `carlos-mail-account=bab`, verify that the mailer adopts the identity successfully, then run the live sign-in checks.
\ No newline at end of file
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-email-signin.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-email-signin.md
new file mode 100644
index 000000000..1efc72eb9
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-email-signin.md
@@ -0,0 +1,35 @@
+# Review brief: console email sign-in spec (rev 1)
+
+Repo: carlos/platform, branch `email-signin`, commit 49eaacf0.
+Spec: `docs/superpowers/specs/2026-10-21-console-email-signin-design.md`.
+
+You are an independent reviewer. Read the spec, then read the code it
+changes to check every claim against it: `internal/console/server.go`
+(handleContinue, handleSignin, handleCallback, handleConfirm,
+handleInvite, handleInvitePage, handleAcceptInvite, session, setCookie),
+`internal/console/stepup.go`, `internal/console/keymail.go`,
+`internal/console/keymailfed.go`, `internal/console/consolemail.go`,
+`internal/console/authcli.go` (device flow, clientIP, notifyCLIIssued),
+`internal/console/store.go` (sessions, confirmations, invites),
+`internal/console/store_gate.go` (claimSQLTables), `cmd/console/main.go`
+(consoleMailer wiring), `infra/modules/region-host` (console_mail_*).
+
+Rulings R1-R4 in §2 are Paul's and fixed. Do not re-argue them; report
+only mechanisms that fail to honour them.
+
+Report, ranked P1 (security hole or will not work) / P2 (real defect) /
+P3 (worth fixing):
+- security holes: session fixation, login CSRF, downgrade of Keymail
+ sessions to email re-confirmation, oracles (account existence, Keymail
+ mailbox existence, rate limiting), token/code brute force, link
+ scanners consuming tokens, open redirects via `next`, the pending
+ action being swapped or replayed, mail-cannon abuse;
+- places the spec contradicts the code or would break an existing flow
+ (Keymail sign-in, the Apps-inbox confirmation, invites, CLI login,
+ claim-mode gates);
+- missing pieces a builder would trip over.
+
+For each finding: the spec section, the code location (file:line) that
+proves it, the failure scenario, and a suggested fix. Verify every code
+citation. 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/specs/2026-10-21-console-email-signin-design.md b/docs/superpowers/specs/2026-10-21-console-email-signin-design.md
index 0d4a37844..0bbdb561e 100644
--- a/docs/superpowers/specs/2026-10-21-console-email-signin-design.md
+++ b/docs/superpowers/specs/2026-10-21-console-email-signin-design.md
@@ -1,6 +1,6 @@
# Console email sign-in (magic links), with Keymail as the alternative
-Status: draft rev 1, 2026-10-21. Follows
+Status: draft rev 2, 2026-10-21 (rev 1 + builder check + Astra round 1, §15). Follows
[console invite delivery](2026-09-28-console-invite-delivery-design.md),
whose §4 console mailer this reuses and whose line 4 named this spec.
@@ -99,6 +99,26 @@ fallback link:
A send that fails at step 1 with a dead grant (401) falls through to
step 2, as a revoked grant is not a refusal.
+**When federation may fall through to SES.** Today `SendFederated` wraps
+every lookup error as `ErrNoKeymailMailbox`, so a Keymail outage would
+send `@keymail.dev` addresses to SES. The lookup answers definitively
+(checked live 2026-10-21): 400 "could not determine target mailbox" for a
+domain Keymail does not serve, 404 "no such mailbox" for an unknown local
+part, 409 "inbox not yet claimed". Only those three mean "no Keymail
+mailbox". A timeout, network error or 5xx is "Keymail unreachable": the
+sender stops there when the address's domain is the configured Keymail
+host (`CONSOLE_KEYMAIL`'s host) or the address has a stored grant, and
+otherwise falls through to SES (a non-Keymail domain should not lose
+sign-in because Keymail is down). `ErrFederationPriceTooHigh` and a
+delivery failure after a successful lookup stop: the address IS a Keymail
+mailbox. The invite chain takes the same rule.
+
+**The channel decides the session's method** (§5.4): a challenge whose
+link went out through steps 1 or 2 is recorded `via=keymail`; through
+step 3, `via=email`. The challenge row stores which (builder: a column,
+written by the background send before it hands the message over; a
+challenge with no recorded channel cannot be consumed).
+
**Sends run off the request.** The handler records the challenge, starts
the send on a background goroutine with its own bounded context
(20 s total, Keymail's share 12 s, the invite numbers), and renders the
@@ -144,6 +164,14 @@ email_challenges(
by this browser's cookie, so there is no global code space to guess in.
- **The link token** is 32 random bytes, base64url, the `randomToken`
shape.
+- **Guessing is bounded per address, not just per challenge** (codex 2).
+ A fresh challenge must not buy a fresh guessing budget. Wrong codes are
+ counted per address across all its challenges (10 per day) and per
+ client IP (30 per hour); past either, every live sign-in challenge for
+ that address is burned and further codes are refused until the window
+ passes. A rate-limited request (§7) creates **no** challenge at all,
+ while rendering the same page, so refused requests are not redeemable
+ either.
- One live challenge per (browser, purpose): asking again replaces the
browser's previous one.
@@ -157,9 +185,21 @@ the "link expired" message.
`POST /auth/email/link` (token in the body) consumes the challenge and
signs **this** browser in, whichever browser it is. That is what a magic
link means: possession of the mailbox. The confirm page names the
-address, so a forwarded link (login CSRF) shows whose account it opens.
-No CSRF token exists before sign-in; the POST is protected by the
-unguessable token itself and by `SameSite=Lax` on the cookies it sets.
+address, so a forwarded link shows whose account it opens.
+
+**Login CSRF** (codex 1). The link token alone does not protect the POST:
+an attacker holds a valid token for their own address and could
+auto-submit it from their own page into a victim's browser. So:
+- the GET sets a fresh random nonce in an HttpOnly `SameSite=Lax` cookie
+ (`carlos_console_linkconfirm`, 15 min) and puts the same nonce in the
+ form; the POST requires both and compares them in constant time. A
+ cross-site POST carries no Lax cookie and fails;
+- every pre-session POST in this feature (`/auth/continue`, the link POST,
+ the code POSTs) also refuses a request whose `Origin` (or, when absent,
+ `Sec-Fetch-Site`) names another site. Absent both, allow (old clients).
+- the legacy `/auth/confirm` gets the same confirm-page-plus-nonce shape.
+The code POST is already browser-bound through the challenge cookie,
+which a cross-site POST does not carry.
### 5.2 Sign-in by code
@@ -177,13 +217,23 @@ welcome cookie when created, then `next` if set and safe, else
`redirectToCurrentAccount`. No grant token is stored for an email sign-in
(it has none), and an existing grant is left alone.
+**A link or code sign-in whose session method is `email` also records a
+step-up** (`RecordStepUp` at the moment of use). It is the same proof a
+step-up would ask for, minutes later, of the same mailbox; without it a
+signed-out `carlos auth login` sends two emails back to back. A
+`keymail`-method session from a link does not (it re-confirms with the
+passkey, as the old Apps-inbox link's sessions do).
+
### 5.4 The session remembers how it was proved
`sessions` gains `method TEXT NOT NULL DEFAULT 'keymail'`. Existing rows
read as `keymail`, which is true of every session today (the
-Apps-inbox confirmation link is a Keymail channel and stays `keymail`). A
-session made by §5.1 or §5.2 is `email`. `session(r)` (or a sibling)
-exposes it.
+Apps-inbox confirmation link is a Keymail channel and stays `keymail`).
+A session made by §5.1 or §5.2 takes its challenge's channel (§4): a
+link delivered through Keymail makes a `keymail` session, one delivered
+by SES an `email` session. So a Keymail user who types their address
+into the email form still re-confirms with their passkey. `session(r)`
+(or a sibling) exposes the method.
## 6. Re-confirmation (R1)
@@ -197,15 +247,21 @@ exposes it.
and render a "check your email" page with a code box.
- `GET /auth/email/link?t=` for a stepup challenge renders a confirm
page; `POST` requires a session cookie whose hash equals the
- challenge's `session_hash`. Opened in another browser it refuses
+ challenge's `session_hash` (and the nonce of §5.1). Opened in another browser it refuses
with "open this link in the browser where you started, or type the
code there". It never signs anyone in.
- `POST /auth/email/stepup/code` checks the code for the stepup
challenge named by this browser's cookie, and requires the same
session.
- On success: `RecordStepUp(raw, addr, now, now)` (the gesture time is
- the moment the link or code was used), `TakePendingAction`, then
- `resume`, the same tail as `handleStepUpCallback`.
+ the moment the link or code was used), then redeem the pending
+ action, then `resume`, the same tail as `handleStepUpCallback`. The
+ challenge stores the pending token's **hash**, and the existing
+ `TakePendingAction` hashes its argument, so add a sibling
+ `takePendingActionByHash` keeping the same transaction, session
+ binding, expiry check and single-use delete (codex 3).
+ - A step-up challenge lives **10 minutes**, the pending action's own
+ lifetime (`stepUpFlowTTL`), not 15 (codex 6).
The five-minute `StepUpWindow` applies from that moment, as for Keymail.
@@ -228,7 +284,8 @@ numbers (builder may tune within reason):
| per client IP (`s.clientIP`, edge-proof aware) | 10 per hour |
| whole console | 200 per hour |
-Step-up challenges count against the address but not the IP or global
+Step-up challenges have their own per-address window (1 per 60 s,
+10 per hour) and do not count against sign-in's address, IP or global
caps (the requester is already signed in as that address). Code attempts
are bounded per challenge (§5), not here.
@@ -247,6 +304,11 @@ lose their place. Two of them matter for this feature:
- `GET /auth/cli` signed out: `next=/auth/cli` (so a CLI user can sign in
and land on the code entry).
+**Onboarding runs before `next`** (codex 8). `finishSignin` first does
+what `redirectToCurrentAccount` does to pick or mint the current account
+(so a brand-new user always has their personal account), and only then
+redirects to `next` instead of the account page.
+
`next` is accepted only as a local path: starts with `/`, not `//`, no
backslash, parsed by `url.Parse` with no scheme or host. For email it is
stored on the challenge row; for Keymail in a short cookie beside the
@@ -264,7 +326,23 @@ silently and the usual landing applies.
- Before relying on it, check that no tenant has a mail-domain claim on
`carloku.com` (it is served by an app; a claim conflict refuses
`EnsureDomain`) and that SES in the console's mail region is out of the
- SES sandbox.
+ SES sandbox. Checked 2026-10-21: SES in eu-west-1 is in production
+ (50,000/day), no SES identity exists for carloku.com, and the
+ carloku.com hosted zone is in the flagship account. If `carloku.com`
+ turns out to be refused, use `noreply@mail.carloku.com` (builder's call,
+ reported to Paul) rather than stop.
+- The flagship console today has `CARLOS_MAIL_REGION=eu-west-1` and
+ `CARLOS_MAIL_PLATFORM_SUFFIX=oncarlos.com`, and its mailer has already
+ made and verified `console-mail.bab.oncarlos.com` (SES: DKIM SUCCESS,
+ config set `carlos-bab`). So the host role can create identities; only
+ the send grant is missing. That default identity is the fallback if
+ carloku.com is held up.
+- **An existing identity needs ownership proof** (codex 9). If an SES
+ identity for carloku.com exists when the mailer first runs, and CARLOS
+ did not make it, `EnsureDomain` refuses to adopt it unless TXT
+ `_carlos-mail.carloku.com` = `carlos-mail-account=bab` is published.
+ None existed on 2026-10-21; check again at rollout, and publish the TXT
+ if one has appeared.
- carloku-infrastructure's region-host module call for the console's box
sets `console_mail_from = "noreply@carloku.com"` and
`console_mail_region` to the console's mail region, a targeted apply
@@ -299,11 +377,20 @@ builder may make (`CARLOS_CONSOLE_NAME`, default "CARLOS platform").
## 11. Smaller changes that fall out
-- `notifyCLIIssued`: when the address has no Keymail grant, send the
- notice through the console mailer instead of skipping it.
+- `notifyCLIIssued` and `notifyStoreDecided` (storenotify.go, the
+ object-storage approved/declined notice to the customer): when the
+ address has no Keymail grant, send the notice through §4's sender
+ (federation, then SES under the same fall-through rule), never
+ straight to SES (codex 4). Operator alerts stay Keymail-only
+ (operators are Keymail users).
- `handleContinue` (`POST /auth/continue`): becomes the email form's
target (it already takes `address`), so no new route is needed for
"request a link". The empty-address → `/auth/signin` redirect stays.
+ It validates with the invite handler's rule (codex 7): lower-case,
+ trim, `ValidAddress`, and `netmail.ParseAddress(addr).Address == addr`,
+ so `a<victim@example.com>` and list forms are refused before any
+ challenge, rate-limit key or user row exists. That one canonical
+ string is used everywhere after.
- `handleConfirm` (`/auth/confirm?token=`, the old Apps-inbox link) keeps
working for links already sent; new sign-in links use §5.1. It must
stop signing in on GET (§3 anti-goal); give it the same confirm-page
@@ -326,7 +413,14 @@ controllable clock):
- Delivery order: grant → SendApp; no grant, Keymail mailbox → federation;
`ErrNoKeymailMailbox` → console mailer; blocked → nothing sent; the
page is byte-identical in every case, including rate-limited.
-- Rate limits at each key.
+- Rate limits at each key; a refused request creates no challenge.
+- Guessing: wrong codes across several fresh challenges for one address
+ stop at the per-address cap (codex 2).
+- Login CSRF: a cross-site auto-submitted link POST without the nonce
+ cookie is refused (codex 1).
+- Signed-out `carlos auth login` by a new email user, without advancing
+ the clock between sign-in and approval: one email, a personal account
+ minted, CLI approved (codex 5, 8).
- Step-up: an email session doing a gated action gets an email challenge,
the pending action resumes after the code or same-session link; the link
in another browser refuses; a **keymail** session never gets an email
@@ -351,3 +445,21 @@ controllable clock):
Names of files, functions and routes beyond those fixed above; the
semaphore size; the step-up action descriptions; tuning the rate numbers
within the same order of magnitude; template structure.
+
+## 15. Review dispositions
+
+Builder check (rev 1), settled as builder's calls:
+- B1 Keymail users via the email form: the delivery channel sets the
+ session method (§4, §5.4).
+- B2 email sign-in counts as a step-up (§5.3); step-up has its own
+ per-address window (§7).
+- B3 carloku.com refused: fall back to `noreply@mail.carloku.com` (§9).
+- B4 federation fall-through rule (§4), from Keymail's live answers.
+- B5 `notifyStoreDecided` joins `notifyCLIIssued` (§11).
+
+Astra round 1 (`docs/superpowers/reviews/CODEX-FINDINGS-email-signin-r1.md`),
+all accepted: codex 1 login CSRF (§5.1); codex 2 per-address guessing
+budget (§5); codex 3 pending-action hash (§6); codex 4 no SMTP to Keymail
+(§4, §11); codex 5 CLI step-up cooldown (§5.3, §7); codex 6 step-up TTL
+(§6); codex 7 strict address parsing (§11); codex 8 onboarding before
+`next` (§8); codex 9 existing-identity proof (§9).