Repository navigation
Conversation
morluto
added a commit
that referenced
this pull request
Oct 16, 2026
Inspect AST property segments instead of flattened suffixes. Reject dotted-key and suffix collisions while retaining page-declared trust and source evidence through the CLI. Refs: #4205, #4279 Co-authored-by: Geekwolf <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream integration update — 2026-10-16
Main already includes the fix in 38f92d108e3148cdf47e4ffbfe3de8a76e795d51, referencing #4205 and this PR, with Geekwolf credited as co-author. Its AST-segment implementation additionally rejects dotted-key collisions. Replaying this draft's older suffix-based implementation over it would lose that stronger boundary, so no replacement code push is proposed.
Verified upstream main
808339f0b1cf3837445f392b5d5f1f362d64a27don Windows x64 with Node 24.18.0 / npm 11.16.0: all 39 analyzer tests and the compiled WebMCP CLI regression passed. The CLI uses a simulated CDP producer and checks retained source and receiver collisions; this does not establish real Chrome or runtime WebMCP behavior. This PR remains open/draft; code integration is not a GitHub merge of this PR. The original proposal and its historical verification follow.Summary
Fixes #4205. Static WebMCP extraction no longer treats
foobar_modelContext.registerToolas a declaration. BaremodelContextand exact nested member segments remain supported, including existing optional/literal-computed forms.Change and scope
Require the receiver segment boundary in the owning captured-source classifier. No alias inference, source execution, API/schema change or new provider capability. Captured source and the
page-declared-untrustedclassification are retained. Maintainer capability-scope decision: not applicable to this bounded correction.Evidence and validation
93c620c3, the new regression failed with two false suffix declarations; the other 38 analyzer tests passed.check:fast,verify:test-discovery(1,388 files), staged formatting/lint andgit diff --checkpassed. Invoked with Node 24.18.0 / npm 11.16.0 on Windows x64.npm run checkstopped on an existing formatting issue in unchangedsrc/adb/AdbProvider.ts; the complete check is not claimed. Full CI remains required.Author readiness
Human owner: @geekwolf