Navigate Ways of Working
AI Use Cases: Releases
AI use cases for Releases: Rollout Monitoring and Auto-Revert, Release Note Generation, Flag Cleanup, Database Migration Analysis.
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: Release Process in the Engineering Process.
AI-023: Rollout Monitoring and Auto-Revert
Purpose: Watch production metrics in real time during a percentage rollout, revert the feature flag when a predefined threshold is breached, and explain what moved.
Owner: Platform squad (builds and maintains)
Owner: Whoever takes the platform work (builds and maintains)
Autonomy: Runs within set rules
Human checkpoint: The squad writes the rollback criteria before release. The on-call engineer and the PM get an alert on every revert, and decide what happens next.
Verification: The thresholds themselves, checked against the control group’s baseline.
Context: Active during any percentage rollout, and faster than a human on-call engineer. The revert is a rule on the predefined thresholds. The threshold decides whether to revert; the agent explains what moved and why.
Artefacts Required:
- Predefined rollback criteria (error rate, latency thresholds)
- Real-time production monitoring data
- Feature flag configuration
- Control group baseline metrics
Artefacts Produced:
- Revert when a threshold is breached
- Alert to the on-call engineer and PM, with an account of what moved
AI-024: Release Note Generation
Purpose: Draft release notes from the scenarios accepted in the release, which are already written in the language of the problem.
Owner: PM
Autonomy: Drafts
Human checkpoint: The PM approves anything a customer reads.
Verification: Each note links to the accepted scenarios and the flag it describes.
Context: At release time.
Artefacts Required:
- Accepted scenarios in the release
- Release flag list
- Sprint goal
Artefacts Produced:
- Draft release notes (user-facing summary)
AI-025: Flag Cleanup
Purpose: Remove feature flags that have served their purpose, together with their dead code paths.
Owner: Dev on the squad that owns the flag; Platform squad (runs the monthly sweep)
Autonomy: Builds, a person accepts
Human checkpoint: The Dev who ran the removal accepts that behaviour is unchanged, with the CI gates and a quick revert behind them. A flag older than 60 days without a documented reason goes to the Tech Lead.
Verification: The scenarios that cover the feature stay green with the flag gone.
Context: Monthly. Finding old flags is a rule on the flag inventory and needs no model. The agent’s work starts after that: it opens the removal of the flag and its dead code, and runs the scenarios against the result.
Artefacts Required:
- Feature flag inventory with creation dates and status
- Flag usage in the codebase
- The scenarios covering each flagged feature
Artefacts Produced:
- The removal change, with the scenario run attached
- Flags held back, with the reason
AI-026: Database Migration Analysis
Purpose: Analyse a migration script against the current schema, plan it as expand and contract, and rehearse it on a production-sized copy, so the human reader judges measured evidence.
Owner: Dev (before opening the migration pull request)
Autonomy: Drafts
Human checkpoint: The Tech Lead or Staff Engineer reads the migration pull request (migrations and security-sensitive changes are the only changes that need one), with no auto-merge.
Verification: A rehearsal in staging on a production-sized copy, with measured lock times and execution time.
Context: Before the pull request opens. The agent catches the mechanical issues (table locking, data loss, backward compatibility) so the human review can spend its time on design judgement.
Artefacts Required:
- Migration script
- Current database schema
- Table row counts and size estimates
- Application code that references affected tables
Artefacts Produced:
- Risk assessment: locking, backward compatibility, data loss
- Expand-and-contract plan, step by step
- Rehearsal results with measured timings