Navigate Ways of Working
AI Use Cases: Development
AI use cases for Development: Scenario-by-Scenario Implementation, Functional Tests Below the Specification, Parallel Agent Orchestration, Automated Review and Risk Routing, Large-Scale Code Migration, Weekly Drift Report.
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: Development & Deployment in the Engineering Process.
AI-012: Scenario-by-Scenario Implementation
Purpose: Agents implement the change end to end against the approved scenarios, in steps small enough that a wrong turn shows up within minutes.
Owner: Dev
Autonomy: Builds, a person accepts
Human checkpoint: The Dev confirms the behaviour against the approved scenarios. The PM and the QE approved those scenarios before work began (AI-006), so the Dev is checking the build against an agreed specification, and the pipeline does the rest. Each change is small, so for most work that is enough. A second person accepts the behaviour as well where the change is on the always-reviewed list, and migrations and security-sensitive changes get a read of the code in a pull request.
Verification: The approved scenarios go green, the CI gates and the Acceptance Spec Guard (AI-018) pass, and the Dev confirms the behaviour. Nobody reads the diff line by line as a matter of course.
Context: After the implementation plan is agreed (AI-011). The loop runs one scenario at a time: pick the next scenario, confirm it is red, let the agent make it green inside the agreed boundaries, run the full suite, commit to main behind a flag. A scenario that turns out to be wrong goes back to the PM and the QE; the agent never edits it to match what it built. When the agent hits a boundary, an ambiguity or a failure it didn’t expect, it stops and asks.
Artefacts Required:
- Approved scenarios (AI-006)
- Implementation plan with its boundary list (AI-011)
- Codebase conventions and the AI playbook
Artefacts Produced:
- Committed code behind a feature flag, one commit per scenario or card
- Functional tests below the scenarios (AI-013)
- A closing note: which scenarios pass, what changed, what the agent was unsure about
AI-013: Functional Tests Below the Specification
Purpose: Agents write the unit and integration tests that pin down the code they produce: fast feedback for the Dev, and regression protection for the next change.
Owner: Dev (functional tests); QE (test strategy)
Autonomy: Runs within set rules
Human checkpoint: None per test. The QE sets the strategy (what is tested at which level) and watches suite health; the Tech Lead looks at test-suite health weekly (AI-017).
Verification: Mutation testing on changed code (AI-019), and the QE’s checks for tests that assert nothing.
Context: Alongside implementation. These tests come from the code, so they confirm the code does what it does. That is their value and their limit. They never count as the specification and never replace a scenario, and a green unit suite says nothing about whether the change does what the PM asked.
Artefacts Required:
- The code under change
- Test strategy and existing test patterns
Artefacts Produced:
- Unit and integration tests committed with the code
AI-014: Parallel Agent Orchestration
Purpose: Let one Dev run several agents at once on separate scenarios or items, each in its own isolated workspace, with the Dev’s judgement setting the pace.
Owner: Dev
Autonomy: Builds, a person accepts
Human checkpoint: The Dev decides how many sessions to run, and takes no session’s own report as proof. Each session’s output goes through the same acceptance as any other change.
Verification: The approved scenarios and CI gates for each session’s change. Acceptance latency and escaped defects in AI-034 show when parallelism has outrun attention.
Context: During development. The limit is the Dev’s attention when the work comes back. Rising acceptance latency is the signal to run fewer. Every session works on its own item, visible on the board, with its own narration; in a founding team that means one claimed card per session and, once several run at once, the With Agent lane.
Artefacts Required:
- Independent items or scenarios, each ready to dispatch
- Isolated workspaces per session
Artefacts Produced:
- One change per session, each with its closing note
AI-015: Automated Review and Risk Routing
Purpose: Review every change in CI for bugs, convention breaches and security anti-patterns, send the findings back to the agent that wrote it, and route the changes that need a person to that person.
Owner: Staff Engineer (sets the blocking rules); Platform squad (builds and maintains)
Autonomy: Runs within set rules
Human checkpoint: None on ordinary changes. The reviewer holds any change it classifies as a database migration or security-sensitive (auth, payment, PII) until the change has its pull request and its human reader.
Verification: Blocking findings fail CI. Each misclassification someone finds later tightens the rules.
Context: Every commit. One agent reviewing another’s work is a useful filter. Acceptance of behaviour stays with a person (AI-012). The authoring agent fixes the findings. The routing half is what lets CI enforce the two pull request classes.
Artefacts Required:
- The change set
- Conventions, the AI playbook and security patterns
- The definition of the two pull request classes
Artefacts Produced:
- Findings, returned to the authoring agent
- Held changes, with the reason and the reader they need
AI-016: Large-Scale Code Migration
Purpose: Move a codebase to a new framework version, language version or library in small behaviour-preserving steps, run by agents.
Owner: Tech Lead (Staff Engineer for cross-squad migrations)
Autonomy: Builds, a person accepts
Human checkpoint: The Tech Lead agrees the migration plan and the order of steps before it starts, and decides when the old path goes. Steps that touch a database migration or security-sensitive code get their pull request.
Verification: Existing scenarios plus characterisation tests stay green at every step.
Context: Here, and only here, tests that record what the code does today are the right specification, because preserving today’s behaviour is the requirement. The agent records current behaviour first, then changes one area at a time, committing each green step behind a flag where behaviour could differ.
Artefacts Required:
- Target version and its breaking changes
- Existing scenarios and test suites
- Migration plan with step order
Artefacts Produced:
- Characterisation tests for areas without scenarios
- A series of small committed steps
- A list of behaviour differences found, for a human decision
AI-017: Weekly Drift Report
Purpose: Prepare the Tech Lead’s weekly look across everything the squad shipped: where the code drifted from the agreed architecture, which patterns are spreading, and how healthy the test suites are.
Owner: Tech Lead (the Staff Engineer runs the same report across squads)
Autonomy: Drafts
Human checkpoint: The Tech Lead decides what counts as drift and turns it into backlog items in the engineering allocation. The report approves and blocks nothing.
Verification: Each finding cites the commits and files behind it.
Context: Weekly, for the Tech Lead’s review of outcomes after. Agent-written code is plausible and locally correct, and it drifts. A look across a week of change catches drift that a single diff hides. Typical findings: a second way of doing something the codebase already does, a new dependency, a layer boundary crossed, duplicated utilities, a rise in skipped or slow tests.
Artefacts Required:
- A week of commits to main
- Architecture overview, ADRs and the AI playbook
- Test-suite health data
Artefacts Produced:
- Drift findings with evidence
- Suggested backlog items
- Candidate additions to the AI playbook (AI-041)