AI writes Given/When/Then faster than you do, and it finds edge cases you would have met in production. This playbook wires both into a routine — then applies the two-question testability gate: could QA automate this as written, and could two reasonable people disagree on pass/fail?
Workflow area: Requirements Quality · Tier: Foundation · Hands-on time: ~25 minutes
Acceptance criteria are where requirements meet reality, and where most disputes at UAT are born. "The system shall handle errors gracefully" is a lawsuit, not a criterion. Gherkin's Given/When/Then structure forces concreteness, and AI is genuinely good at producing it — including the negative paths and boundary conditions humans skip when tired. What AI cannot do is know your actual business rules, so every generated criterion is either traceable to the story's evidence or it is a guess wearing syntax. The testability gate catches the guesses and the ambiguities before QA does.
Stage the story with its context. You need the story text, its evidence citations (from pb-04), any known business rules, and the field or workflow definitions the story touches. The more real rules you provide, the fewer the model invents.
Generate criteria with edge cases, rules-bound.
You are a business analyst writing Gherkin acceptance criteria.
Story: [PASTE STORY + EVIDENCE CITATIONS]
Known business rules: [PASTE RULES, THRESHOLDS, FIELD CONSTRAINTS
— e.g. "vendor tax ID is 10 digits; duplicates matched on tax ID
+ bank account; only supervisors can merge"]
Produce:
1. HAPPY PATH — 1-2 scenarios in Given/When/Then.
2. EDGE CASES — scenarios for boundaries, empty/null inputs,
permission denials, duplicates, and timing issues relevant to
this story.
3. NEGATIVE PATHS — what must NOT happen, as scenarios.
4. QUESTIONS — every place you needed a rule I did not provide,
as a question. Do NOT invent thresholds, formats, or role
permissions; use [TBD] in the scenario and list the question.
Rules:
- Concrete values in every scenario (real-looking amounts, dates,
role names), not placeholders like "valid input".
- One behavior per scenario. No "and correctly" clauses.
- Each scenario tagged with the rule or evidence it derives from,
or tagged (PROPOSED) if it is your suggestion.
Read a sample of good output.
Scenario: Duplicate vendor blocked at entry (rule: tax ID + bank)
Given a vendor "Acme Ltd" exists with tax ID 4455667788
And bank account ending 9921
When a clerk submits a new vendor with the same tax ID and
bank account
Then the submission is blocked
And the clerk sees the existing vendor's ID and creation date
Scenario (PROPOSED): Near-duplicate flagged for review
Given a vendor exists with tax ID 4455667788
When a clerk submits a vendor with the same tax ID but a
different bank account
Then the vendor is created with status "review" [TBD: is this
the intended behavior, or should it block?]
QUESTIONS
- What happens to in-flight invoices when vendors are merged?
Apply the testability gate — the human pass. For every scenario ask two questions. First: could QA automate this exactly as written — are the Given state, the When action, and the Then observation all concrete enough to script? Second: could two reasonable people disagree on pass/fail? Words like "quickly", "appropriate", "user-friendly", and "handles" fail the gate. Rewrite or delete. Then run the model as a second gate reviewer in a fresh conversation: "For each scenario, state how an automated test would verify the Then clause, and flag any scenario where pass/fail is arguable." Disagreements between your pass and the model's are the interesting findings.
Resolve every [TBD] and (PROPOSED) with the business owner. The QUESTIONS list is elicitation gold — each item is a rule the organization has not yet decided or you have not yet captured. Take them to the product owner or SME; their answers convert [TBD]s into rules and (PROPOSED) scenarios into accepted or deleted ones. Criteria go to the backlog only after this pass — the model proposes, the business decides.
Attach criteria to the story with their tags intact. The rule tags and evidence links make UAT disputes short: when someone challenges a criterion in cycle two, the tag says exactly which rule or decision it encodes and who confirmed it.
Business rules, thresholds, and workflow details are commercially sensitive — generate criteria in your organization's approved AI workspace, and use fabricated example values in scenarios, never real customer records.
The model supplies fluency and edge-case breadth; the testability gate supplies enforceability — a criterion is done when QA could automate it and no two people could argue about it, and every rule inside it has a human owner.