Playbook overview

Run the implementation and review loop

Guide, operating model and reference

Say we’ve agreed that a booking can be cancelled at exactly 24 hours. I’d give the agent the brief, point it to the domain module and ask it to read the current rule and tests. The first useful answer is often a question about what’s already there. If the agent finds a policy date it can’t interpret, I’d rather see that now than in a diff that’s already guessed the answer.

From brief to review

StepWhat actually happens
Agree the sliceWrite the outcome and the awkward case. Say who can decide if the brief turns out to be incomplete. Identify the checks that need to pass.
InvestigateRead AGENTS.md and the relevant notes. Trace the current behaviour, find a nearby test and reproduce a reported defect before changing code where possible. For anything consequential, have the worker show its proposed approach and open decisions.
ImplementStart a fresh coding session with one bounded change and an isolated workspace if needed. Ask for the smallest coherent patch, with tests. Keep unrelated findings with the task as possible follow-ups.
Verify and validateCheck the agreed behaviour against the brief. Walk through the use case using realistic test data. Record what was checked, what failed and what couldn’t be demonstrated. See V&V.
Review and reviseGive a fresh reviewer the brief, diff and evidence. Ask for specific discrepancies, with a file, a case or a reason. Send those findings back to the implementer, then check the new revision.
Accept and leave a trailThe authorised reviewer makes the acceptance decision. Leave the agreed brief, clean diff, build evidence and remaining limits where the next person can find them. Propose a durable learning when the correction will help on another task.

For the booking change, start a session to implement the cutoff and add its tests. A fresh reviewer can check that the test uses a fixed clock and that the old-booking fixture still represents old data. Someone walking the customer journey can catch a refusal message that still says 48 hours. A person can do both checks on a small change. If you delegate either check, start a fresh session with the specific question and evidence it needs.

Give the reviewer a job they can do

For this change, I’d hand the reviewer the approved brief, the diff for the exact revision under review and the independent check results. Leave the implementer’s summary available for later. Here’s a review brief you can adapt.

Check each acceptance criterion against the change and its evidence. Look at who owns the cancellation rule, what happens to old bookings, and whether the tests changed the agreed cutoff. For each finding, give the affected behaviour, the relevant file or test and what would demonstrate the fix. Flag required evidence you can’t find. Leave implementation to the worker.

A reviewer can be wrong too. Resolve findings against the requirement or the code. If the patch changes, send the reviewer the new diff and fresh results. On a small change this may be one exchange and a quick rerun.

Human in the loop

When I’m working alongside the agent, I can stop it after investigation and answer the policy question. If the agent proposes altering a shared API or starts solving a broader problem, I can redirect it before the change spreads. I’d keep that checkpoint for new behaviour, a migration or any change with an unsettled assumption. I’d happily skip the planning checkpoint for a spelling correction.

For an unattended run, agree the limits up front. Let the worker investigate, edit inside its scope and run the checks without asking for permission every few minutes. It should pause at the first consequential decision outside that agreement, leave the patch and the exact question, and let the owner decide. The authority to accept a change or release it stays where the team put it. A human in the loop can intervene during execution. A human on the loop sets policy up front and steps in when the system raises a decision or asks for acceptance. A worker’s report, a protected verification receipt and the human’s acceptance record serve three different purposes. Execution modes · Evidence and acceptance

Where the loop goes back

  • A check disagrees with the brief. Investigate and fix the implementation. If there’s a real error in the approved check, propose the correction for review.
  • The brief disagrees with what a user needs. Ask the owner to resolve it. Record the amended brief and run the applicable checks again.
  • The reviewer spots the same problem as last week. Fix this change, then ask what the repository or build could do to catch the next one earlier.

Stop after a bounded number of attempts. If each pass finds a different symptom of the same design problem, another round of patching is a poor substitute for revisiting the plan.