Status: done (2026-11-24) Priority: 2 Size: M Design ref: docs/plans/VB-1677-conflicts.md; docs/agents/worker.md, section 1 Touches: new tools/lanes.js; new tools/lib/symbols.js; tools/inbox.js; docs/agents/worker.md; new tests/lanes.js Goal: The orchestrator and a session starting a task choose work that edits different functions from the work in flight, by a tool, not by judgement; each merge reports how far the declared footprint matched Acceptance criteria:
node tools/lanes.js [N] picks, from the ready tasks in backlog.js next order, up to N that touch no function or table in common with each other or with the work in flight; a plan or a wrap-up runs alone; a task with no Touches: line or Touches: unknown falls back to the rule of docs/agents/worker.md (different archs) and is listed as such. For each task held back it prints what it meets and where (VB-1234 sim/jobs (allot)).claude/*, the last few days): their edits since their merge base with main, by enclosing symbol, from one symbol finder in tools/lib/ (the heuristic of docs/plans/VB-1677-replay.js). Half the conflicted merges since 15 Nov were between sessions, not within a run (docs/plans/VB-1677-conflicts.md).node tools/lanes.js --check VB-NNN: what in flight a task would meet, for a session that starts one by hand. inbox.js claim takes functions (sim/jobs:allot) beside files and reports a clash at function level.node tools/lanes.js --measure VB-NNN BASE..TIP compares the declared Touches: with the edits, by symbol (recall, precision), into the inbox result; the night’s PR gives the totals. docs/agents/worker.md, section 1, step 1 uses the tool.tests/lanes.js on a constructed backlog and a scratch git repository; a row in docs/agents/changes.md; npm test and npm run verify pass.
Notes:Touches: lines. When a step of VB-1406 turns a list into declarations, that file leaves this tool’s ignored list (VB-1406’s note).tools/lib/symbols.js (the replay’s heuristic, but indent 2 only inside a module’s wrapper: in a tool it is a function’s body), tools/lanes.js (take, --check, --measure), function claims and a footprint note in the inbox. Decided: the candidates come from backlog.js next (its order and its --size, --unattended filters, which /night uses); a task the inbox has started is in flight by its Touches: line from the start, before its first claim, and is never offered again that night; a task with no footprint keeps the rule of before (other archs only). The ignored list (IGNORED) also leaves out the archives and docs/bench/.--measure cc6a3ddb..918710d4): declared 3, edited 3, recall 1, precision 1. On today’s backlog most ready tasks have no line yet, so the tool falls back to the arch rule for them; the line fills in as tasks are taken (VB-1677).claude/* branches; the test’s archs; the inbox read through inbox.js flight; dead code); all mended in the one revision.