Worktree leases and state packets for parallel coding agents
Teams running more than one coding agent against the same repository can add a small control layer around each task: one Git worktree, one lease file, one gate result, and one state packet listing owned files, changed files, commands, tests, and evidence. GlueRun-go shows a concrete version of this pattern. Its worker writes a schema-backed packet, an auditor checks the packet and gate result, and a deterministic decider chooses retry, scope change, escalation, or parking before a model fallback is used.
The useful test is operational. Run two or three agents on independent tasks in a repo with a real test command, then inspect whether reviewers can answer three questions without reading every diff first: what files did the task own, what proof did it produce, and what should happen after a failed gate. GlueRun-go reports that detached dispatch lets gluerun reconcile --actuate return within seconds while workers continue in the background, and crash detection drops from a 60-minute stale-lease window to about one reconcile cycle. That is enough to justify a trial for teams whose agent runs currently leave stale branches, unclear ownership, or unreviewable changes.