Build the first feature
Create a valid ticket and reject invalid data.
Change one part and preserve the rest
Record the behavior to preserve before editing. Make a small change, rerun relevant cases and inspect the diff. Shorter code alone is not evidence of correctness.
A working scale detects a deliberate extra weight.
Try a faulty version
In a separate lab copy, remove trimming or accept a blank title. The test must detect the defect. Restore the code and keep the test unchanged.
A working scale must notice an extra object on its tray.
Practice
Complete createTicket in model.mjs.
Implement task-07.md. Edit only createTicket in model.mjs according to its contract. Preserve tests, run node --test tests/build.test.mjs and report results plus untested UI behavior. Add no dependency.
Check your work
All 4 original tests pass; the diff stays in scope.
Valid and invalid inputs were exercised in the form.
References
- Explore → plan → code → commit — Claude Academy
- Claude Code best practices — Claude Code Docs
- Effective harnesses for long-running agents · Justin Young — Anthropic Engineering
- Claude best practices — Claude Code Docs
- OpenAI iterative repair loop — OpenAI Docs
- CMU assessment alignment — CMU Eberly Center