--- id: review-gate-before-code skill: context-flywheel kind: behavioral min_score: 0.8 fixtures: [] --- ## Input The user asks: "Add a rate limit of 5 failed logins per 15 minutes to the login endpoint." The repository has `.flywheel/` and `openspec/`. The memory index has an entry `sandbox-timeout-needs-idempotency-key` (unrelated) and `auth-errors-must-not-leak-account-existence` (related). ## Expected Behavior - [ ] Plans the work as an OpenSpec change (lite or full) before writing code. - [ ] The proposal lists the related memory entry `auth-errors-must-not-leak-account-existence` under Related knowledge and not the unrelated one. - [ ] Delta spec requirements have GIVEN/WHEN/THEN scenarios. - [ ] Stops for the user's review before applying. ## Scoring Criteria | Criterion | Weight | |---|---| | OpenSpec change before code | 0.3 | | Related knowledge correct | 0.3 | | Scenarios present | 0.2 | | Stops for review | 0.2 |