Repository navigation
Description
Observed
Found while validating #3608 / PR #3622. On the tree delivered as 65883f2d5332220db8a17fd1ddba0f926a1888be, bun scripts/check-citations.ts exits 1 and reports 1,629 citations: 1,091 anchored, 400 drifted, 130 documented exceptions, six unanchored and two unresolved. Citations moved by the Settings work were repaired; the remaining failures concern other source files.
For example, the resendPendingAsks(host, ws, msg.sessionId) citation in docs/decisions/answer-delivery.md still points to line 37 of packages/ui-server/src/ws/handlers/session-resume.ts, while the named anchor is at line 38. Other findings include an anchor no longer present in packages/ui-server/src/ws/run-session.ts.
The citation experiment is a release check, so this is separate documentation maintenance rather than an omitted #3608 behavior criterion. No runtime defect or new product scope is claimed.
Scope
Repair active documentation references that the checker reports. Verify the start and end of each current range against the named declaration and its actual behavior. For older descriptions, verify the original SHA and use the decision-record procedure for an explicitly historical or superseded claim. Inspect unanchored citations for their intended target, and distinguish genuine citations from protocol prose misread by the checker. Preserve justified existing exceptions and their occurrence counts.
Out of scope
Source implementation, new architecture choices, blanket exceptions, weaker citation rules, or exclusion of documentation or source directories from the gate.
Acceptance criteria
- Each affected record has verified anchors or an explicitly attributed historical source. Replaced or removed code is handled according to
docs/decisions/README.md. - The repository checker reports no active drift, unresolved or unanchored citations, and the citation experiment passes.
- If a remaining finding requires a new product ruling, name the exact question and evidence instead of changing the decision silently.
Verification
On main 63bb400b3, bun scripts/check-citations.ts exits 1 with 1,629 citations: 1,084 anchored, 407 drifted, 130 exceptions, six unanchored and two unresolved. The resendPendingAsks example remains at packages/ui-server/src/ws/handlers/session-resume.ts:38. Preserve the original tree’s count above as its own receipt.
Run bun scripts/check-citations.ts and bun run test experiments/decision-citations.test.ts on the edited tree. This is the release citation check described in docs/decisions/README.md.
Contract impact
Documentation references only. Keep all machine behavior and contract semantics in place, and apply the repository’s contract-document PR gate if an authoritative component is edited.
2026-11-20 triage — Scoped the verified release-gate repair at p1 and recorded the current checker result.
Activity