[PR #35] Filling the Gaps in an Unattended Work Order
- What changed: A ‘commit author’ field was added to the work-order form. The first overnight run stopped for over an hour because this field was missing.
- Decision: Before writing the second order, the plan’s test lines were checked one by one against the code, and the steps were reduced to two.
- Still unknown: Whether the order finishes an overnight run without stopping will be checked in the next run.
The first overnight task finished in three rounds, but it stopped for over an hour because the commit author value was missing. PR #35 filled that blank in the template and recorded how the next work order was written, checking where it might get stuck. No code changed; only the work-order template and the work-order document were edited.
What was done and why
- A “commit author” field was added to the basic-information section of the template. The first night stopped because this field did not exist.
- Before writing the second work order, each test line in the plan was checked against the current code, one line at a time, to see whether it could work as written. This found several places where the agent-led work would have stopped.
- The number of rounds was reduced to two. The shared types were finished on the first night, so a test round and an implementation round were enough.
Options chosen and rejected
- Two files outside the plan’s file list were allowed. The plan’s file list alone could not finish this task. One function did not check one of the plan’s test lines, and another could not take a transaction. Both functions are also used by other features, so the work order asked for the fix to be made in one shared place.
- Rejected: leave it out of the work order and let the agent decide. The rule to stop when the plan and the code differ would have stopped the agent-led work.
- The meaning of each test was written into the work order. Some tests fail for an unrelated reason when taken literally. For example, a confirmation ticket can expire first, so the expiry of the code itself is never tested. The work order therefore states the exact moment at which time should be advanced.
- Importing files that do not exist yet is forbidden. The first night’s agent avoided this on its own. Here it is written into the prohibited list, because a type check breaks on an import of a missing file.
How it was checked
- Claude Opus 5.5 matched the facts in the work order against the code: the validity periods of the ticket and the recovery code, the expiry error code, whether the error names appear in the error list, and how many places use the function.
- Only documents changed, so only the check command (
npm run verify) was run.
Lessons
- Stopping on one blank field is the most common cause. Every value the work needs must be written down.
- Checking each test line in the plan against the current code before writing the work order finds stop points early.
- When unattended work fails, the cause is usually that the work order was not specific enough.