Status: done (2026-11-24) Priority: 2 Size: M Design ref: docs/plans/VB-1677-conflicts.md; docs/agents/worker.md (conflicts); tools/backlog.js sync Goal: A merge whose only conflicts are in the backlog tables, the question and tuning files or a module’s import block resolves without a person or an agent Acceptance criteria:
node docs/plans/VB-1677-split.js, after the replay) are classified by file and kind: a row added on both sides, a row moved between sections on one side, a row edited on both sides.BACKLOG.md and BACKLOG_ARCHIVE.md get a merge driver (.gitattributes and a committed setup that npm install runs, so a fresh clone, a worktree and the orchestrator’s preflight all have it): both sides’ row changes are kept and the tables come out as tools/backlog.js sync writes them; a row edited differently on both sides stays a conflict. QUESTIONS.md and docs/tuning.md likewise where the classification shows it pays.git merge if git merge-tree does not run them): the merges since 15 Nov whose only conflicts were in these files and blocks merge clean; on five of them the result passes tests/backlog.js or npm test. Report the counts before and after.docs/agents/worker.md’s conflict rules say what is now automatic; a row in docs/agents/changes.md; npm test and npm run verify pass.
Notes:docs/plans/VB-1677-conflicts.md). Runs beside VB-1677; touches no src/ module but the Prettier config, if that is the way taken for imports.docs/plans/VB-1679-hunks.js, diff3): BACKLOG_ARCHIVE.md 30, all both sides adding rows; BACKLOG.md 62 (30 both adding, 22 edits on neighbouring rows, 10 the same row changed on both sides, mostly one side reformatting); tests/counters.json 46, 36 of them the same measured value re-recorded on both sides; the rest small: design changelog 5, tuning 4, suites 4, owners 4, sim.js 6, manifest 9 and layers 4 (one-line arrays), page.json 2.git merge and git merge-tree both run a custom driver from .gitattributes (git 2.43, tried on a scratch repository), so the replay can measure the drivers.tools/merge.js backlog, set by npm install (prepare). Over the 59 conflicted backlog files since 15 Nov it resolves 48; the 11 left are real (an ID taken by two branches, a row done on one side and changed on the other, a row changed two ways). Of the 31 clean merges whose own task files pass, 28 pass tests/backlog.js with the driver’s tables; the 3 others did extra work in the merge commit itself, or collided on an ID that the task file’s own conflict shows.docs/tuning.md gets no union: a row removed on one side would come back. QUESTIONS.md had no conflict in the period. QUESTION_ARCHIVE.md and docs/design-changelog.md only grow: git’s union.tests/counters.json, a counter re-recorded on both sides keeps the incoming side’s value; tables whose order does not matter opt in with a // @merge union marker, which VB-1678’s scheduler also ignores.tools/merge.js json for owners, page, manifest, layers and counters. All 32 conflicted JSON files since 15 Nov resolve; owners and layers as committed, manifest and page.json 9 of 11 (the 2 others place two modules added at one spot in the other order, neither reading the other at load); counters keep the incoming value.tools/merge.js js merges a module’s imports and exports, and tables marked // @merge union (ICON, ICON_STEN, the three test lists, REPORTS, SYSTEMS), only when every line of every conflict lies in them: a function added beside an export list (crops.js, 053ab9d3) reads a name the other side removed, so it stays for a person. Replayed: 20 of the 66 conflicted src files resolve, the names as committed but for two edits the resolver added. Conflicted merges since 15 Nov: 91 before, 59 with the drivers (bookkeeping 37 to 19, lists 11 to 5, imports 11 to 3, bodies 29 unchanged: VB-1678’s); about 4 more by the marked tables, which the old files do not carry.