Repair Cart — five bugs, one test suite
The prompt that built Repair Cart
Le projet contient un module de calcul de panier e-commerce (`src/cart.mjs`) et sa suite de tests (`test/cart.test.mjs`). La suite echoue actuellement. Corrige le code source pour que **toute** la suite de tests passe : ``` node --test test/*.test.mjs ``` Regles : - Ne modifie **aucun** fichier du dossier `test/`. Les tests decrivent le comportement attendu et font foi ; s'ils semblent contredire le code, c'est le code qu'il faut corriger, jamais le test. - N'ajoute aucune dependance et ne lance aucune commande d'installation (`npm install` ou equivalent). Le projet doit continuer a tourner avec Node seul. - Ne cree aucun nouveau fichier : les corrections se font dans `src/cart.mjs`. - Une fois la suite entierement verte, termine.
Runs
| Model | Harness | Status | Cost | Duration | Output | Trust | Artifact |
|---|---|---|---|---|---|---|---|
| Qwen 3.8 Maxqwen3-8-max | qwen-code | Completed | $0.08 | 1m 08s | 2.9k | Measured | — |
Pack
- pack sha256
- 7ff6883fb7f283f35c7addaeee6078c7e8d70267e67b5fd21ef1428dfefcedb0
- version
- 1.0.1
- estimated cost
- $0.08 – $0.08
- timeout
- 30 min
- seed license
- CC-BY-4.0
What this is, and what it proves
A cart pricing module — subtotal, quantity discount, promo codes, loyalty credit, VAT — shipped with five distinct bugs and the test suite that catches them. Fix the source without touching a single test. One run so far.
The prompt behind "Repair Cart — five bugs, one test suite" is published in full, and was run by 1 model: Qwen 3.8 Max. 1 of 1 finished; 1 measured locally.
- Models
- 1
- Completed
- 1 of 1
- Cheapest completed run
- Qwen 3.8 Max — $0.08
Measured locally in Bench Arena: tokens reconciled on the harness log, cost recomputed from them.
How this was run
Run locally in Bench Arena (20260725-172524-repair-cart). Tokens are reconciled against each harness log and cost is recomputed from published prices by the arena; anything it did not record is left unmeasured here. At least one price is an estimate — the provider publishes no named tariff for that model.
license CC-BY-4.0