You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: duplicate Pi worker acquisition investigation cites seven drifted lines, failing the citation invariant on main #3496
docs/investigations/duplicate-pi-worker-acquisition.md landed on main in #3492 (a272a790b) with seven file:line citations that no longer start on their anchors at that commit. bun scripts/check-citations.ts on a272a790b reports {"anchored":1318,"exception":135,"drifted":7}, and tests/decision-citations.test.ts ("every citation names its anchor, or is a listed exception") fails. Because that test is an affected fast invariant for any change under docs/, bun run check:pr --base origin/main now fails on every such branch rebased onto current main.
Examples of the reported drifts:
docs/investigations/duplicate-pi-worker-acquisition.md:36 cites packages/ui-backend-pi/src/session-pool.ts:76-99 for if (req.sessionId), which is now at line 77.
docs/investigations/duplicate-pi-worker-acquisition.md:52 cites packages/ui-server/src/ws/run-session.ts:1216-1247 for const runningTurn, which is now at line 1222.
docs/investigations/duplicate-pi-worker-acquisition.md:60 cites packages/ui-server/src/ws/run-session.ts:993-995 for coordinator.bySession.get(turn.sessionId) === turn, which is now at line 999.
Scope
Re-anchor all seven citations in that document to the lines their anchors occupy on current main, keeping each claim's meaning.
Out of scope
Any change to the cited source files.
The investigation's findings.
Acceptance criteria
bun scripts/check-citations.ts on the fix's head reports "drifted":0.
bun run test tests/decision-citations.test.ts passes.
Verification
bun scripts/check-citations.ts and bun run test tests/decision-citations.test.ts.
Activity
docs: re-anchor the duplicate pi worker investigation's citations (#3496
ci: check code-citation drift at release, not on every merge (#3499)