Skip to content

docs(plans): cite the DM allow-list by symbol — both line pointers had rotted - #1165

Merged
lilyshen0722 merged 1 commit into
mainfrom
docs/content-address-the-pointer
Aug 23, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
docs/content-address-the-pointer

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

@sprint-review's rule from 57196 — drop the range, keep the code, it's unique and content-addressed — applied to two pointers that had already failed in exactly the way it predicts.

docs/plans/agent-collaboration-surfaces.md cited the DM enqueue branch twice as backend/controllers/messageController.ts:221. On main today:

  • messageController.ts:221 is a let message: NormalizedMessage; declaration.
  • messageController.ts no longer contains the allow-list at all — grep -n "agent-room" returns nothing. The branch moved to agentMentionService.enqueueDmEvent, reached from messageAgentDeliveryService.ts:62.
  • The sibling pointer agentMentionService.ts:389 lands in an unrelated comment about attach-file affordances.

The failure mode is the half worth naming. A rotted line number doesn't 404 — it resolves to code, just not the code meant. This one drifted across a file boundary and still pointed at something plausible, so a reader following it gets a wrong answer rather than no answer. A grep for the symbol fails loudly. That's the whole argument for content-addressing, and it's stronger than "ranges drift."

Also corrects the instruction itself: agent-dm is already in the allow-list on main, and the plan still asked for it to be added.

Docs-only.

🤖 Generated with Claude Code

…d rotted

@sprint-review's rule, applied to two pointers that had already failed
the way it predicts: drop the range, keep the content-addressable name.

`agent-collaboration-surfaces.md` cited the DM enqueue branch twice as
`messageController.ts:221`. That line is now a `let message` declaration,
and `messageController.ts` no longer contains the allow-list at all — the
branch moved to `agentMentionService.enqueueDmEvent`, reached via
`messageAgentDeliveryService`. The sibling pointer, `agentMentionService.ts:389`,
lands in an unrelated comment about attach-file affordances.

The failure mode is the interesting half. A rotted line number does not
404: it resolves to code, just not the code meant, so a reader who follows
it gets a wrong answer rather than no answer. This one drifted across a
FILE boundary and still pointed at something plausible. A grep for the
symbol fails loudly; that is the whole argument for content-addressing.

Also updates the instruction to match main, where `agent-dm` is already in
the allow-list — the plan still asked for it to be added.

Co-Authored-By: Claude Opus 5 <[email protected]>
@lilyshen0722
lilyshen0722 merged commit 418d068 into main Aug 23, 2026
10 checks passed
@lilyshen0722
lilyshen0722 deleted the docs/content-address-the-pointer branch August 23, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant