The semantic merge conflict: tracking exported-symbol diffs to catch what git misses with parallel coding agents
Avinash2k5 · reddit · 2026-11-24
A deep dive into the failure mode of running parallel coding agents on isolated worktrees: semantic merge conflicts. Git only detects line-level collisions, so when Agent A changes a payload schema in a shared package while Agent B writes a consumer against the old shape, both branches merge cleanly and pass local builds — then integration fails on staging minutes later.
Root cause: isolation hides contract drift. Humans surface shared-interface changes via Slack and PR review; agents have no peripheral vision and treat their branch HEAD as ground truth.
Workarounds that fail at scale: full monorepo CI per commit burns runner budget and slows the loop; relying on PR review dumps cross-branch symbol mapping back on developers.
What works: track exported symbol diffs across active worktree branches — generate a manifest of exported functions/types/schemas from the base branch, diff it against each agent branch at commit time, and check whether other active branches import the touched symbols. On a shape change, flag the contract collision immediately and trigger automated rebase + typecheck on dependent branches while the agent is still running.
More from coding & agent
- Artificial Analysis benchmarks 13 coding agent harnesses — same model, wildly different behavior — ArtificialAnlys · 2026-11-24
- Codex's exec_command tool definition alone switches models into telegraphic gpt-oss-style reasoning — ArtificialAnlys · 2026-11-24
- Artificial Analysis runs GPT-6 Luna and GLM-5.3-Flash across 13 coding harnesses: harness choice moves cost more than score — ArtificialAnlys · 2026-11-24
- Sierra's Agent PM role feels radically different from traditional software PM — akshatag77 · 2026-11-24
- Databricks analyzed 5,400 malicious npm packages: 7% hijacked legit ones drove 99% of bad downloads — lxfater · 2026-11-24
- Hands-on: Neon + T3 Code shines with 500k-700k token chats, 3D and game design — rachittshah · 2026-11-24