GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — fix(id): isolate pending email codes by flow by dezren39 · Pull Request #6479 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 2f9db6d530
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
2f9db6d to
3d20f41
Compare
|
@codex review One P2 addressed in 3d20f41: the cross-flow test now re-issues the sign-in code past its resend window until it differs from the confirmation code, eliminating the 1-in-1,000,000 sampled-collision flake. Branch also rebased onto current main (7ff9cf5), diff otherwise unchanged. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 3d20f41c3a
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| #[test] | ||
| fn confirmation_and_sign_in_codes_have_independent_slots() { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Add property coverage for pending-code flow isolation
The new flow-isolation invariant is covered only by fixed example sequences, whereas the root AGENTS.md testing doctrine explicitly requires property tests for meaningful state-machine invariants. The existing property test in this module covers signed-request nonce grammar, not pending codes. Add a proptest generating interleaved issuance, verification, and time advancement across both flows, checking that operations on one slot preserve the other slot's code, resend window, and attempt budget. This supplies the required coverage of operation orderings and timing boundaries beyond this single example.
AGENTS.md reference: AGENTS.md:L42-L46
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged — not disputing: the repo doctrine (AGENTS.md L42–46) does call for property coverage of state-machine invariants, and the pending-code slots qualify. This needs a properly modelled proptest (interleaved issuance/verification/time across both flows, checking slot independence for code, resend window, and attempt budget), which is more than the current lane's remaining shift budget can do carefully. The shepherd task (14041) is parked on this PR with this thread as the resume point; the resuming lane adds the proptest, re-runs the directory_auth suite, and merges. Production change and the collision-safe example test are already green: directory_auth suite 24/24 on head 3d20f41.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 1fab4a5 (branch rebased onto current origin/main; directory_auth suite 25/25, up from 24).
pending_code_slots_are_isolated_across_flows is a modelled proptest in the same module: it generates interleaved Issue / Check / Advance operations across both flows (Confirm and SignIn) for one address — checks present the slot's own code, the OTHER flow's code, or a wrong code — and validates every step against an independent per-slot model (code, sent_at, expires_at, attempts). Beyond outcome equality, it snapshots the other slot's production state (digest, sent_at, expires_at, attempts) before and after each operation: a check must leave it byte-identical (check_code does not even sweep), and an issue may change it only by sweeping an already-expired slot, which the model accounts for explicitly. Code collisions between the two flows are handled by construction: guesses are resolved to strings and compared against the model slot's code, so an equal-code draw predicts acceptance in the owning flow exactly as production behaves.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… on #6479) Interleaved issuance, verification, and time advancement across both flows, checked step by step against an independent per-slot model: an operation on one flow preserves the other slots code, resend window, and attempt budget exactly; the only cross-slot effect is the issuance sweep removing expired slots of either flow.
3d20f41 to
1fab4a5
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
id(directory_auth): pending email codes share one slot per address across purposes — cross-purpose issuance replaces the other flow's code, and a correct code presented in the wrong flow is consumed
There was an error while loading. Please reload this page.