Agree on the spec before an agent touches a file.
Most agent failures start in the first 30 seconds: vague prompt in, 1,400-line hallucinated diff out. DevBro runs every feature through five structured stages — Discover, Specify, Plan, Build, and Review.
- Structured question cards during Discover so requirements are settled in place, not buried in chat scrollback.
- Editable Markdown spec and portable tasks.json contracts: change complexity, model tier, skills, or checks before pressing Build.
- User overrides are marked setBy: "user" so re-planning never silently overwrites your decisions.