[PR #41] Updating the Unattended Work Order Template
- What changed: The overnight work-order template file was revised so the three failures from the earlier overnight run became rules and fields. No code was touched.
- Decision: A shared field for the work folder was added, and the notice that a step has finished now replies to the assignment post. A ‘could not see’ rule was added to the read-only check.
- Still unknown: Some gaps are not blocked by rules alone, and they will be reviewed in the next overnight run.
PR #41 did not touch any code. It changed only the night-order template file. No agent-led work ran this time.
What was done and why
- The previous agent-led work (PR #40) had three problems. The Buzz thread (in Buzz, the shared workspace where people and AI agents work together in channels) used to pass instructions split in two. The read-only review stage passed two bugs as “matches”. The review report was sloppy about model names and commit hashes.
- So that the same failures would not repeat in the next order, the template file was changed. The aim was to move each failure seen once into a rule.
What was changed
- A working-folder line was added to the shared fields. Each order used to write its own clone command, so every worker now clones and works only under one agreed folder.
- The “step finished” message now replies to the assignment message. “Reply in the thread where the assignment was posted” was harder to follow than this shorter wording, so the shorter one was chosen.
- The read-only review got a “not seen” rule. Anything that cannot be known by reading code, such as what a library actually returns or how a database behaves, is recorded as “not seen”.
- The review checklist now matches each new route’s guard and response codes against the plan’s API table, line by line. This line sits in the section the order’s writer fills in.
- Database updates must not use raw queries. A raw
UPDATEorDELETE … RETURNINGreturns a result shape that differs between libraries. The template now says to use the query builder, as existing code already does. The first draft only coveredUPDATE;DELETEreturns the same shape, so it was added too. - The report fields were tightened. The review step also records its model, or “unknown” if it is not known. Commit hashes are copied from the log, not written from memory.
Options considered
- Each rule was placed by asking who reads the line. When a line meant for the order’s writer sits next to a line meant for the agent-led worker, the line ends up in the wrong place. So each line’s reader was decided first, and then its section was chosen.
- The working-folder rule was not left inside the review section. A rule that only the review step follows is not followed by other workers. So it was placed in a shared field for all workers.
- The model rule for the review step reuses the existing report field. A separate rule would duplicate it.
How it was checked
- The library’s actual return shape was checked in its installed source. Only raw
UPDATEandDELETEreturn the row list and row count as a pair. - Existing code was checked to confirm it uses the query builder.
- The new folder rule was compared against the clone commands in earlier orders.
- The changed files were checked: only the template and this work record. The project’s check command was run.
What rules alone cannot cover
- The agent-led work sandbox has no database, so tests that need one cannot run overnight. Adding rules does not fix this gap.
- The real fix is a test database placed next to the sandbox. That changes the server setup, so it needs a separate decision.
Lessons
- A template mixes lines for the person writing the order with lines for the person doing the work. When adding a line, decide first who reads it.
- Moving a failure seen once into a rule reduces repeats. But without a way to check that the rule is followed, it stays only in the document.