Opus finding
Misleading docstring: 'replay inside the validity window is a no-op, not an exploit'
- apps/web/lib/optin-token.ts:3-10
The comment is factually wrong because the action parameter is not signed. A replayed token with the opposite &action= flips the bit. Even ignoring that, 'idempotent flip' only describes the same-action case. A reader auditing this token's threat model will be reassured by a claim that is not load-bearing on the actual security property.
Recommendation
Rewrite to: 'Replay of the same (token, action) pair is a no-op due to idempotent flip. Replay with the opposite action will toggle state, so action must be bound to the token (see PR follow-up) or the TTL must be tightened.'