05 MAR 2026
David debugged: Concurrent lecture notes agents writing to the same document simultaneously
David noticed two lecture notes agent runs had written to the same document at the same time and asked the agent to investigate — then directly commissioned a production ad-hoc run with a strict 'one tool call per turn' constraint to prevent the issue.
David pasted evidence of two overlapping agent runs in a single workspace — Run 1 (63 iterations, correctly inserting PDF pages section by section) and Run 2 (44 iterations, starting 7 minutes later, which re-read the entire PDF before overwriting all of Run 1's output in a single edit_blocks call).
Rather than just asking for a diagnosis, David commissioned a direct fix to test:
i want you to find the module planner's plan used for that lecture notes generation run, and i want you to run an ad hoc one that uses gemini 2.5 flash lite, and that inserts an instruction at the top of the system prompt: 'OUTPUT ONLY ONE TOOL CALL PER TURN' and you should enforce this rule, if it outputs more than 1 tool call per turn, respond with an error message telling it to output one tool call at a time
This was a direct experiment to test whether serialising tool call output per turn would prevent the catastrophic re-read-and-overwrite pattern observed in Run 2.