spec rev 6: the sign-in flow cookie replaces the per-challenge id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+15
−1
docs/superpowers/specs/2026-10-21-console-email-signin-design.md+15 −1
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 6abcb8ae5..d122f15ec 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 found from the address |
| -Status: draft rev 5, 2026-10-21 (R5: one door, Keymail discovered from the address; Astra rounds 1-3; §15). Follows |
| +Status: rev 6, 2026-10-21 (approved rev 5 + the build's sign-in-flow change, §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. |
| @@ -517,3 +517,17 @@ keep the B4 two-channel rule (§4.3). |
| Astra round 3 (`CODEX-FINDINGS-email-signin-r3.md`): all eleven earlier |
| fixes confirmed, no P1. Both P2s accepted: r3-1 the no-mailer answer is |
| decided before rate limits (§4.2); r3-2 `ConsoleMailer.Ready` (§4.2). |
| + |
| +Rev 6 (build, 2026-10-21, after the whole-branch Astra review): the |
| +browser no longer holds a per-challenge id. A sign-in **flow** cookie |
| +(`carlos_console_flow`), set when the sign-in form renders, ties a |
| +browser's sign-in challenges together; the code box uses the flow's |
| +newest live challenge; `/auth/continue` serialises per flow. A refused |
| +request (rate limits) sends nothing and leaves the flow's live challenge |
| +untouched, or, if it has none, records a never-sent challenge so a wrong |
| +code reads the same either way. That replaces §5's "a rate-limited |
| +request creates no challenge": no refused request creates a challenge |
| +the mailbox could redeem. Over the per-IP submit cap there is no Keymail |
| +lookup and no send. Step-up challenges are found by session. Reasons: |
| +the per-challenge id leaked throttling through the code box and lost the |
| +code on a double-clicked Continue. |