Editorial Benchmarks
~ / tests / membership-bug
DEBUGGING

>Membership Renewal Bug Hunt

id: membership-bug · deliverable: FIX.md · graders: bugfix

Read exact fixed prompt
A client sent this:

> Hi, a few of our members are complaining their renewal dates are wrong. One lady joined January 31 and the renewal reminder says her membership renews on March 3?? Also somebody who paid for 3 years said the discount on their invoice looked off. Can you take a look? The code is in this folder.

The project is a small Node.js module in this folder (see README.md). Find the root cause of each problem and fix it in the source. Keep the public function signatures the same. You can run the existing tests with `node --test`. Add tests for what you fix. When you are done, write a short FIX.md explaining the cause of each bug and what you changed.
Fixture file: README.md
# ciba-membership

Membership dues and renewal dates for the Carolina Independent Bakers Association.

- `src/dates.js` date helpers
- `src/membership.js` renewal dates and invoice totals (all money in cents)
- Run tests with `node --test`
Fixture file: package.json
{ "name": "ciba-membership", "version": "1.4.2", "type": "module", "private": true, "scripts": { "test": "node --test" } }
Model Outputs

>Model Outputs

Hidden tests: 15/15

Model's own tests: 11 passed, 0 failed · wrote FIX.md

Model note: Fixed month-end overflow in addMonths (Jan 31 + 1 month now Feb 28/29, not Mar 3) and the off-by-one discount tier comparison (3-year prepay now gets 10%); added tests in test/fixes.test.js and wrote FIX.md. All 11 tests pass.

Gemini 4 Neon thinking_level=high
Queued (Antigravity 502s (model unreachable) on high-effort Neon generation, 2026-11-23)

Provider: antigravityPersonal · Model ID: gemini-4-neon

GPT-6 Astra reasoningEffort=high
Hidden tests: 15/15

Model's own tests: 11 passed, 0 failed · wrote FIX.md

Model note: Fixed month-end renewal overflow and inclusive multi-year discount thresholds without changing public function signatures. Added regression coverage and FIX.md; all 11 tests pass with node --test.