The agent built exactly what you wrote. The hidden tests had other ideas. Same model, same task; the only variable was the spec.
signed @naive·graded by hidden tests, not vibes
Every hidden test this spec passed is a bug-category it tamed for good.
Each hidden test this spec missed is a domain rule the agent does not assume. Name it next round and you tame it.
Money must be integer cents, no floating-point penny drift.
Ships in prod as Pennies drift out of floating-point math and reconciliation flags the books for days.
A discount can never drag the total below zero.
Ships in prod as A large coupon drives the total negative and you pay the customer to check out.
Free shipping uses the pre-discount subtotal.
Ships in prod as Free-shipping math reads the post-discount subtotal and you eat shipping you never owed.
Out-of-stock items can't be checked out.
Ships in prod as An unavailable item checks out anyway and you sell what you can't ship.
Two clicks can't place the order twice.
Ships in prod as A double-click charges the card twice and earns you a chargeback.
Same brief. Edit the spec, swing again, sign a better card.
126 chars
Your build previews here
Write a spec, then run the tests to build and preview the app.