When the warehouse count arrives late on Friday, whoever is running the stock reconciliation has to decide whether to wait or send a partial report. “Compare the two exports and flag anything unusual” leaves that decision open. The inventory lead might know the answer from experience, but someone covering for them needs it in writing.
A runbook is a procedure for doing the job again and checking the result. For the warehouse example, it tells a person or agent which exports to use, how to compare them, and when a missing file means the inventory lead needs to take over.
Copy this runbook template
## [Name of recurring job]
Owner: [Person or role responsible for the outcome.]
Trigger: [When the work is due, with time zone and reporting cutoff.]
Inputs: [Source, expected version or date, and access required.]
Allowed actions: [What may be read, produced, or changed.]
### Steps
1. Check that each required input is present and covers the same period.
2. [Perform the operation in the order another operator can reproduce.]
3. [Save the result with enough evidence to verify it.]
### Stop and hand over
Stop if: [Missing inputs, unsafe conditions, or ambiguous records.]
Send to: [Person or queue, with the reason and what was checked.]
Before a retry: [What to confirm about previous attempts or changes.]
### Completion
Output: [Location, required fields, and who reviews it.]
Success check: [How a second person confirms the result is usable.]For deployments and other changes to live systems, AWS's runbook guidance recommends checking the system at each stage and rehearsing the rollback. Record who can perform that recovery. For a report, recovery might be as simple as correcting an input and labelling the new report with the version it replaces.
Rehearse it with last week's inventory
Start with the physical count and the inventory ledger from the same warehouse, both showing units on hand at 8 a.m. local time on Friday. Include the current mapping of product codes so the operator can line up items across the two files. Before comparing quantities, check the warehouse, units, and cutoff on both exports.
Suppose one item has 41 units in the ledger and 38 in the count. Record the shortage of three units with both source rows and the cutoff. The inventory lead can then check shipment records to see what accounts for the difference. In this job the agent prepares the report, and any adjustment to the ledger stays with the inventory lead.
Write an instruction for each interruption the operator is likely to see. For a missing count or a count from the wrong warehouse, stop and tell the inventory lead which file to provide. If only one product code is unmapped, put that item in an exceptions section and continue comparing the items you can match. Count the exclusions in the report so the lead knows what remains to check.
Give the two kinds of output a clear status. “Waiting for count” tells the reviewer why there was no comparison. A finished reconciliation should let the reviewer trace each difference to its source file and distinguish zero differences from an empty report.
Bring the runbook into Swarm
Save the approved runbook and the latest permitted exports in a private Space. Put the expected files and cutoff in the Task brief, where the team can reuse the instructions. When the job uses a Swarm Run, that Run records the individual attempt, so the reviewer can find the execution that produced Friday's report.
Ask a compatible connected agent to compare just this week's test exports. Limit access to the files it needs and the place where it will save the draft report, so the inventory ledger stays untouched. Have the reviewer find the three unit difference in the report and verify it against the two source rows.
Try a second rehearsal with the count file removed from the test inputs. Check that the agent asks for the missing count and leaves the old exports alone. Once both cases work, the team can keep starting the job by hand or set a schedule with an eligible runtime, such as Swarm Cloud. The scheduling guide explains how to configure a runtime that can start the job even when the chat isn't open.
Use the first real exception to tighten the runbook. If a late export arrives after someone has reviewed the report, record whether the lead wants a replacement report or a correction in the next one. Write that decision down while the people involved still remember the details.