[PR #33] Designing Work Orders for Time Away from the Desk
- What changed: A work-order format was designed during the day so that an agent can keep working while no person is present.
- Decision: Day and night were split by whether a person is present, not by the clock. When a decision outside the order comes up, only that step stops and is recorded.
- Still unknown: Whether the first order runs to the end overnight will be checked in the next experiment.
Until now, a person sat beside the work and approved each step, so the work stopped whenever the person left. PR #33 designed the work to hand off during the day, wrote it down as work orders, and set things up so an agent could continue unattended. This post records the design process and what was learned.
What was done and why
- During the day, the person designs what to hand off, and a template for the work order was created so an agent can carry it out while the person is away.
- Day and night are separated by whether the person is at the desk, not by the clock. I chose this rule. Lunch and weekends count as night when no one is there, so each order has a field for the expected absence time.
- The first order was chosen from work whose plan was already detailed and where a failure would cost little.
Options chosen and rejected
- All rules for the order fit on one page. The agent reading it may not see any other document, so one missed document could drop a rule.
- Running it on a machine that does not sleep. A personal PC can be cut off by sleep or update restarts, so that option was rejected.
- When a decision outside the order appears, stop only that step and record it. The agent then moves on to another step that does not depend on it. Stopping everything would end the night at the first question. Going ahead on reversible choices would leave a pile of things to fix in the morning.
- Only pre-approved installs are allowed. New packages are blocked because on a machine with internet access they become an entry point for supply-chain attacks.
- Reports go to one fixed file. This keeps them separate from the work log, and the session that resumes copies them into the log.
What review added
- The most dangerous gap was this: work is handed off, nobody picks it up, so nothing happens and the person cannot tell in the morning. So the person must see confirmation that the work was assigned before leaving. If the report file is missing, the run counts as failed.
- At night there is no runtime, so it cannot be seen whether a test fails before the implementation exists. So a commit containing only the tests is made first, and on return the check is whether those tests fail on that commit.
- The plan was reviewed twice from different angles. The first pass found large gaps, and the second pass found wording-level gaps.
How it was checked
- Claude confirmed the tool versions and repository access on the machine where the work would run.
- Claude matched the paths and names in the order against the repository.
- Only documents changed, so only the check command (
npm run verify) was run.
Lessons
- To keep working when no one is there, write the stop conditions and the records to keep in advance.
- Some things cannot be settled by review, such as whether a long run really finishes or how much a single night allows. They have to be tried for real.