Navigate Ways of Working
Guide

AI Use Cases: Refinement and Specification

AI use cases for Refinement and Specification: Problem Statement Drafting, Example Mapping, Executable Acceptance Specification, Preliminary Technical Assessment.

Part of the AI Use Case Catalogue. Every entry names its owner, how much the agent may do alone, the human checkpoint and how the result is verified; the catalogue overview explains each field.

Full process: Refinement in the Engineering Process. Roles referenced below (PM, Tech Lead, Quality Engineer) are defined in the Team Structure.

AI-004: Problem Statement Drafting

Purpose: Gather the evidence behind a request (tickets, analytics, earlier cards, stakeholder notes) and draft a problem statement, success criteria and constraints from it.

Owner: PM

Autonomy: Drafts

Human checkpoint: The PM rewrites the draft before refinement. The PM’s version is the one that counts.

Verification: Each claim in the draft links to its source. A claim with no source is the PM’s to confirm or cut.

Context: Preparation before the weekly refinement session.

Artefacts Required:

  • Customer feedback, support tickets or the stakeholder request
  • Product roadmap and strategic context
  • Existing backlog items, to avoid duplication
  • Analytics for the affected area

Artefacts Produced:

  • Draft problem statement, with sources
  • Draft success criteria
  • Draft constraints

AI-005: Example Mapping

Purpose: Turn a problem statement into the concrete examples that define the behaviour: the ordinary cases, the boundaries, the counter-examples and the questions nobody has answered yet. Vague intent becomes testable here, and most misunderstandings surface before any code exists.

Owner: PM (challenged by the QE)

Autonomy: Drafts

Human checkpoint: In refinement, the PM decides which examples define the behaviour and the QE adds the domain edge cases. Each open question goes to the named person who can answer it.

Verification: Each chosen example becomes an executable scenario (AI-006). An example nobody can turn into a scenario was too vague to keep.

Context: Before refinement, and on the card in a founding team. The agent’s job is breadth: propose more examples than anyone would think of, and mark each one as a rule, an example of a rule, or an open question. The human job is selection. Expect to discard most of the draft.

Artefacts Required:

  • Problem statement and success criteria
  • Known constraints
  • Existing behaviour of the affected area, and its current scenarios

Artefacts Produced:

  • Rules, each with two or three concrete examples
  • Counter-examples and boundary cases
  • Open questions, each with a named person to answer it

AI-006: Executable Acceptance Specification

Purpose: State what the change must do as scenarios a machine checks on every commit, in the language of the problem: Given a situation, When something happens, Then this is the result. The scenarios are the specification and its test at once, so the two can’t drift apart.

Owner: PM (what each scenario means); QE (whether it can catch a wrong answer)

Autonomy: Drafts

Human checkpoint: The PM approves what every scenario says; the QE approves its form. Nothing counts as specification until both have. An agent may draft scenarios from the examples; only the PM and the QE approve them.

Verification: Before any implementation starts, the first scenario runs and fails for the right reason. A scenario that has never been red has not shown it can catch anything.

Context: From refinement onwards, one scenario at a time. Write the first scenario before the agent starts, watch it fail, and add the rest as the work proceeds, so the specification grows with the change. Scenarios describe what the system does in the problem’s terms, with no endpoints, buttons, tables or class names. A thin layer of shared domain vocabulary, owned by the QE and the Tech Lead, translates them into calls on the system, and drivers behind it talk to the interface or the API. The agent has full freedom over the drivers and the code. The scenarios belong to the PM and the QE. Every Tier 2 and Tier 3 item gets scenarios, and so does any Tier 1 item that changes behaviour. A copy change needs none.

Artefacts Required:

  • Examples and rules from AI-005
  • The domain vocabulary that existing scenarios use
  • Acceptance criteria and success criteria

Artefacts Produced:

  • Approved scenarios, committed alongside the code and protected by AI-018
  • A recorded failing run of the first scenario

AI-007: Preliminary Technical Assessment

Purpose: Read the codebase the change will touch and assess the likely approach, the components and call sites affected, rough complexity and the risks, with a time-boxed throwaway spike where a question can only be settled by trying.

Owner: Tech Lead

Autonomy: Drafts

Human checkpoint: The Tech Lead makes the feasibility call in refinement, and decides whether a spike’s finding changes the size or the approach.

Verification: The assessment cites the files and call sites it rests on. A spike reports what it proved and what it left open, and its branch is deleted.

Context: Preparation before refinement, once the examples exist.

Artefacts Required:

  • Problem statement, examples and acceptance criteria
  • The codebase, the architecture overview and relevant ADRs

Artefacts Produced:

  • Draft technical assessment: likely approach, components and call sites affected, rough complexity, risks
  • Spike findings, where a spike ran

← Product Discovery · All stages · Planning →