[PR #34] A First Night of Split Work Without Anyone at the Desk
- What changed: One server task was split into three steps for an overnight run. A different model took each step.
- Decision: The writer of the tests and the writer of the code were kept apart, so tests would catch places where the code differs from the plan.
- Still unknown: Tests that cannot run overnight showed their failures only on return. The checks to run overnight and the checks to run on return need to be listed separately.
This is the first experiment with the overnight work orders designed in PR #33. While the person was away, one server task was handed over. The task covered invitation acceptance, access scope and module guards. The schedule was originally for the following week, but I chose to move it up for this experiment.
What was done and why
- The task was split into three rounds. The first round was shared types and error codes, the second was tests, and the third was implementation. Each round was done by a different model. Implementation was done by ChatGPT (Codex, model gpt-6-luna), and tests were written by Claude Haiku 5.5, as the report states.
- When a round finished, the work was handed to the next round. Each round changed only its own files.
- On return, Claude Opus 5.5 checked the results and fixed what was wrong.
Options chosen and rejected
- The test writer and the implementer were kept apart. If one party writes both the tests and the code, the same mistake can end up in both. With separate parties, tests can catch where the implementation departs from the plan.
- Work stopped at a blank author field. The work order had no field for the commit author, so the agent stopped. It asked rather than making up a value. I chose a dedicated address for each agent. Using the person’s own name or address was rejected, because the agent’s code would then appear in the record as if the person had written it.
- A concurrency bug was fixed by changing the order of operations. The result that the plan specified was kept. The test was not changed to pass.
How it was checked
- Before the implementation, a commit containing only the new tests was checked. Most of the new tests failed as expected. One passing test passed only because existing temporary code already returned an empty list.
- After the implementation, the full check found one failure: two requests accepting the same invitation at the same time. The cause was an order inside the transaction, where user status was read before the code was marked as used. The order was changed to fix it. Because database tests could not run overnight, this failure only showed up on return.
- On return, review found that a malformed identifier caused a server error (500). It was reproduced with a temporary test, and the response was changed to 403.
- Claude Opus 5.5 matched the test lines in the plan against the actual tests.
Lessons
- Keeping the test writer and the implementer apart shows where the implementation departs from the plan.
- The most common reason work stops without anyone present is one blank field. The work order should list the values that will be needed.
- A failure in a test that cannot run overnight only shows up on return. Write down what to check at night and what to check on return.
- More time was spent waiting than working. Reducing the time spent stopped while waiting for an answer is the next task.