docs: record the seed 5063 finding for Paul
A switch-off whose MintKey fails after the Enable walk reaped the delivered key leaves a still-switched app's default bundle naming a deleted key. Pre-existing; found by a 120-seed sweep with the per-step key check. Not fixed: it needs a ruling.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+1
−0
docs/superpowers/plans/2026-11-13-platform-mail-submission.md+1 −0
CI passed — run details
diff --git a/docs/superpowers/plans/2026-11-13-platform-mail-submission.md b/docs/superpowers/plans/2026-11-13-platform-mail-submission.md| index 3e469e132..5f5fbe4de 100644 |
| --- a/docs/superpowers/plans/2026-11-13-platform-mail-submission.md |
| +++ b/docs/superpowers/plans/2026-11-13-platform-mail-submission.md |
| @@ -83,6 +83,7 @@ Plan choices that are not gaps, for the plan reviewer (each resolves an item on |
| - *The stronger simulation check* (every SMTP key a bundle holds must be live) showed a switch-on that failed after deleting an owned environment's IAM user but before taking the five out of its bundle. The record still named the deleted user, so the next switch-off's `EnableEnvironment` read the bundle as delivered and minted nothing. Fix: before any delivery walk skips a mint because a bundle already holds the recorded key (`Enable`, `EnableEnvironment`, so switch-off's step 1 among them), it asks IAM through a new read, `Provisioner.KeyState` (IAM `ListAccessKeys`; the in-memory fake has it too), and re-mints unless the key exists under that user and is active (or inactive, for a paused sender: a pause deactivates keys on purpose). **An unreadable key state refuses the walk** rather than reading as missing: a switch-off then stops before it writes the switch, so the app stays switched and keeps submitting, whereas reaping and re-minting on a read failure would delete a key running instances may still use. |
| - *Astra's census review of 76f4f582c* (all units accepted; P2-1 and P2-3 resolved, P2-2 partly): `ReapEnvironment` deleted the keys and user before taking the five out of the bundle, so a failed bundle write left a switched app's environment with its From beside a dead key, and a spawn with the switch unreadable took SMTP from it. Fix: the bundle write comes first, then the keys and the user; a re-run finishes the deletion. **The same order is applied to the week-7 reap of the app-level user** (`ReapAppUserAfterSubmission`): the default bundle is made a switched app's (From, none of the five) before the user goes. The seed sweep found that sibling (seed 2009: a switch-on failed after `On:true` with the five still in the default bundle, then the hourly reap deleted the user under them). This applies Paul's ruled order to the second place a switched app's user is deleted, so he should confirm it. |
| - The simulation now checks, at every step, every SMTP key that an instance would use: after a switch-off, and while switched wherever `activator.MailUnknownSubmits` (the agent's own rule for an unreadable switch) picks SMTP. Scripted steps cover a key lost in AWS before a switch-off and a switch-off whose key state is unreadable (refused, still switched). Mutation-checked: without the key check, the lost-key step fails; with the old reap order, the part-failed switch-on (team's write #2) fails; without the week-7 reap's bundle write, seed 2009 fails. |
| + - **Found by a wider sweep, not fixed (same family, for Paul):** seed 5063 (`SUBMISSION_SIM_FIRST=5063 SUBMISSION_SIM_SEEDS=1`, outside CI's default 60 seeds). A switched app whose failed switch-on left the five in the default bundle beside its From is switched off with `MintKey` failing. The Enable walk finds delivery incomplete (here a `_FROM` left stale by a re-declare), and it reaps every key but the pending one before it mints ("reap before minting"), so the delivered key goes and no new one arrives. The switch stays on and instances that read it submit, but an instance started while the agent cannot read the switch takes SMTP from a bundle naming a deleted key. This predates these fixes; the per-step key check is what shows it. |
| The copy review (Task 6 P2-6) is still Paul's; the copy record stays a draft. |