Versioned write gates for parallel coding agents
Teams running several coding agents on the same repository can add a shared write gate before scaling the number of agents. The gate keeps a version counter for each file, records the files each agent read, and rejects a write when any file in that read set has changed. The rejection should return the current target file, the direct diff, and any stale dependency files so the agent can retry with current context.
STORM gives a concrete design for this workflow. It keeps one shared workspace, checks an agent’s read snapshot before each write, and uses structured intent comments so nearby agents can see why code changed. On Commit0-Lite with Claude Sonnet 4.6, STORM reported 46.2 weighted pass rate and 82.5 macro pass rate, compared with 24.6 / 63.8 for a GitWorktree baseline. The cheap test is to run the same backlog with isolated worktrees and with a versioned write gate, then compare integration failures, rejected stale writes, retry rate, and wall-clock time.