Skip to content

docs: duplicate Pi worker acquisition investigation cites seven drifted lines, failing the citation invariant on main #3496

Closed

Description

@schlessera

Context

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.

Contract impact

None.

Activity

  1. added this to the 0.45.0 milestone on Nov 3, 2026
  2. added
    area: docsThe docs/ tree and the README / AGENTS / CONTRIBUTING surfaces.
    priority: p1Scheduled into the current or next milestone.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: docsThe docs/ tree and the README / AGENTS / CONTRIBUTING surfaces.priority: p1Scheduled into the current or next milestone.type: docsDocumentation only.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions