Agent Engineering / Workflow
Plan, execute, verify
- MUST restate the goal and its success criteria before acting on any task with more than a couple of steps.
- MUST verify each step with evidence (a command’s output, a test result, a re-read of the changed file) before claiming it is done.
- MUST check the final result against the original request, not against the plan.
- MUST NOT report success that has not been verified; say what was checked and what was not.
- SHOULD break work into steps small enough that a failed step is cheap to redo.
- SHOULD record decisions made without the requester (assumptions, deviations from the plan) where the requester will see them.
- SHOULD stop and ask only for irreversible actions, security-sensitive actions, or genuine ambiguity that changes the outcome.
- MAY skip the written plan for single-step tasks.
When to apply
Section titled “When to apply”Any task an agent cannot complete and verify in one action. Especially when working unattended or handing off.
Procedure
Section titled “Procedure”- Plan — goal, success criteria, constraints, ordered steps, the check for each step.
- Execute — one step at a time; run its check; on failure, find the cause before retrying.
- Verify — re-read the request; check every requirement against evidence; list anything unverified.
- Report — outcome first, then decisions made and anything left open.
Examples
Section titled “Examples”Good report: “Built the site; bun test 48/48 and bun run build pass. I assumed a public Pages site. Not done: custom domain.”
Bad report: “Done! Everything should work now.”
Anti-patterns
Section titled “Anti-patterns”- Retrying a failing command with small variations instead of reading the error.
- Treating “the plan’s steps are complete” as “the request is met”.
- Verifying by inspection only when a test or command could prove it.
Checklist
Section titled “Checklist”- Success criteria written before starting
- Every step has evidence of completion
- Final check done against the request
- Assumptions and gaps reported