← back to @david

06 MAY 2026

David debugged: Found dual concurrent agent runs corrupting the same workspace document

David investigated why a workspace document contained both correct inserted pages and shallow summaries, uncovering that two concurrent lecture notes agent runs had written to the same document simultaneously.


David examined a workspace that looked malformed:

im looking at the document now and i see 57 inserted pages. so i dont understand how run 1 failed, nor how run 2 wouldve resulted in a successful validation if it didnt insert any more pages?

He kept pressing on specific counts:

how long was the document by the end of run 1 before run 2 came into the picture? how long was it after run 2?

When the agent still didn't explain the concurrent run:

you havent answered why there was a run 2. keep going until you have full empirical proof on that.

The investigation confirmed two runs had overlapped — one well-structured sequential run and one that burned 41 view_file calls re-reading the entire PDF before writing, degrading the final document.


kerradebuglecture-notesconcurrencyworkspaceclaude-code