Skip to content

chat wire: id leak guard mirrors every generateId prefix (CL-9910) - #1102

Merged
TheGreatAxios merged 4 commits into
mainfrom
cl-9910-id-leak-prefixes
Oct 5, 2026
Merged

TheGreatAxios merged 4 commits into
mainfrom
cl-9910-id-leak-prefixes

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Problem: ID_PREFIX_WORDS covered 6 of 27 generateId prefixes (missing e.g. pky, crd, ses, apr, sig, wdv, tp), so those ids could render to users. Docs and the guard header also pointed at nonexistent packages/chat / packages/hub-common.

Fix: hand-mirror all 27 prefixes (ids are <prefix>_ + 32 hex; the regex already handles 2-letter tp); correct stale paths in the guard header and docs/chat-wire-contract.md.

Repro: new test generates one real id per kind; 21 failed on main, all pass now.

Gates: typecheck, lint, fmt:check, test (CHECK_SINCE=origin/main) run; unrelated packages report 'no test files' pre-existing.

@linear-code

linear-code Bot commented Oct 4, 2026

Copy link
Copy Markdown

CL-9910

@TheGreatAxios
TheGreatAxios force-pushed the cl-9910-id-leak-prefixes branch from 1764262 to 10ef858 Compare October 4, 2026 22:56
@TheGreatAxios
TheGreatAxios merged commit edec14c into main Oct 5, 2026
3 checks passed
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