AI-Ready Acceptance Criteria: 8 Rules for Better Tickets

Zusammenfassung

Pixel shares practical guidance on writing acceptance criteria that AI agents can actually meet. The post explains three questions every criterion should answer—what will be true, how it will be verified, and who decides—and introduces rules like describing outcomes, replacing vague quality words, and separating multiple requirements. Clear criteria reduce guesswork and make reviews more reliable.

DEV Community

Writing Acceptance Criteria an AI Agent Can Actually Meet

What happens when you give a vague ticket to a person? They ask a question. Or they fill the gap with what they know about your team, your customers and that one time it all went wrong. Now give the same ticket to an AI agent. It doesn't ask. It fills the gap with a plausible guess, finishes, and reports back with total confidence: Implemented and verified. ✅ And you find out what it guessed in review, reading a diff against a definition of done that nobody wrote down. 😅 Acceptance criteria are where that gets fixed, before the work starts instead of after. With an agent they matter more, not less. Every gap gets filled, and nobody tells you which ones. Full disclosure: I make Arbituro, a work tracker built around criteria like these. Everything in this post works in any tracker, and only the last section is about Arbituro. 🤔 Three Questions for Every Criterion A criterion an agent can meet answers three questions: What will be true? An outcome someone can observe, not an activity. How will we know? The evidence: a test, a check's result, a page someone opens, a command's output. Who decides? A named CI check, or a named person. Not "the team". Not "QA". And definitely not nobody. Can't answer the third one? Then it isn't a criterion yet. It's a wish. 🌠 📏 Eight Rules Rule #1: Write Outcomes, Not Activities "Add tests" describes effort. "Signing up twice with the same address is refused" describes a result. An agent can always do the activity. Only the outcome tells it when to stop. Rule #2: Replace Every Quality Word Fast, clean, robust, properly, user-friendly. Each one is a gap the agent fills with its own standard, and its standard is... generous. 😇 Swap the word for a number, an example or a named judge. Rule #3: One Thing per Criterion A criterion with "and" in it can be half met, and then nobody can say met or not met. Split it. Rule #4: Name the Edge Case You Care About Agents cover the cases you wrote down. So write down the one you'd check first in review. Rule #5: Say What's Out of Scope Agents love to widen work. A rename here, a little tidy-up there, and suddenly the diff touches forty files. 🧹 One line saying what this job leaves alone keeps the diff reviewable. Rule #6: Let a Check Decide Wherever One Can A CI check decides "the test passes" on every push, and it never gets tired, bored or hungry. Keep people for judgement: wording, design, whether the change actually solves the problem. Rule #7: Keep Standing Rules Out of Tickets "Lint passes", "reviewed by a second engineer" and "coverage holds" apply to every change. Enforce them once, in CI and branch protection, so each ticket's criteria say only what's specific to it. Rule #8: Two to Five per Job Fewer, and something's usually missing. More, and it's probably two jobs in a trench coat. 🧥 🔧 Before and After Enough theory. Let's fix some tickets. Before: "Handle expired reset links properly." After: Opening an expired or already used reset link shows "This link has expired" and a button that sends a new one. Decided by the e2e check. "Properly" was carrying that whole ticket. 😂 Before: "Make search faster." After: On the seeded test data of 50,000 orders, the first page of search results comes back in under 300 ms at the 95th percentile. Decided by the search-perf check. Faster than what? Now we know. Before: "Make checkout mobile-friendly." After: At 375 px wide, the checkout form fits without scrolling sideways, and every button is at least 44 px tall. Priya decides, from screenshots at 375 px. And Priya knows exactly what she's looking at. Before: "Clean up the billing code." After: Billing behaves exactly as before: every existing billing test passes. Decided by the test check. InvoiceService reaches the payment provider only through PaymentClient. Priya decides, from the diff. Not in this job: renaming anything other code calls. "Clean up" is how a two-line fix becomes a forty-file diff. That last line is doing real work. Before: "Add tests ...
AI-Ready Acceptance Criteria: 8 Rules for Better Tickets
Powered by Readybot.io

Das Neueste von Pixel

Incident Response: Look Beyond the Red Alert

Pixel’s DEV Community announcement explores how teams can fixate on one failing service while overlooking the real cause of an outage, such as a full …

Sach: AI Fact-Checks WhatsApp Forwards in India

Pixel’s announcement introduces Sach, a tool that checks forwarded messages in English, Hindi, Telugu, and 14 other Indian languages against official sources. It gives cited …

Java 25 Removes SecurityManager: What to Fix

Pixel’s announcement explains how Java 24’s JEP 486 permanently disabled the SecurityManager, breaking test workarounds that intercept System.exit. It recommends returning exit codes or throwing …