Repository navigation
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
N0zoM1z0
left a comment
There was a problem hiding this comment.
Reviewed head28eeb18ed5. Registration identity now includes the observed frame owner, matching the existing owner-specific removal and frame-navigation cleanup. Same-frame updates still replace one registration; distinct same-URL frames retain separate tools. Parsing, admission and passive authority remain unchanged, and cross-session/navigation key stability is explicitly excluded. Local production build and all19 document/script boundary tests passed, including both owner/update/removal regressions. All20 hosted checks are green, including the real-browser lane. No blocking findings.
|
Thanks, @rudycelekli, for your work on “fix(browser): distinguish WebMCP registration frame owners.” I appreciate your contribution to REA. |
Signed-off-by: Rudy Celekli <[email protected]>
Summary
Keep WebMCP registrations from distinct observed frames separate, including when their names and URLs match.
Problem and expected behavior
Two ordinary same-origin iframes serving the same URL can each register
read_item. Actual Chrome154 emits two registrations with distinct frame IDs, but REA hashes only URL/name, retains one, and reports a complete inventory. Unregistering the retained second owner leaves the first registered in Chrome but REA returns zero. Passive discovery should retain both owners and remove only the requested owner. This is a reproduced ordinary bug fix, not a large contract change requiring an issue.Change and scope
Include the observed frame ID in the registration identity. Same-frame updates retain one entry; updates and removals do not overwrite a different frame owner. Preserve current origin/frame admission, metadata parsing, and passive discovery. Owning docs explain that this key is not a stable identity across navigation or browser sessions.
Contract and boundary impact
docs/product-catalog.json), package, or installation impact: none.Evidence and regression coverage
Tests added or updated: two existing-fixture protocol controls cover same-URL owners, same-frame updates and owner-specific removal. Both fail the base source;17existing controls pass.
Base reproduction or other evidence: actual public
CdpBrowserProvider.discoverWebMcpTools, owned HTTP page and Chrome154. A transparent loopback CDP passthrough acknowledges the actualWebMCP.enableresponse before the external fixture registers tools. Traffic is forwarded unchanged; no synthetic protocol events. Independent native CDP events anddocument.modelContext.getTools()confirm the real registrations.User-visible CLI/MCP output: the two-frame inventory reports2instead of1; unregistering the second leaves1instead of0. The single-frame control remains1.
Remaining proof gaps: no cross-browser or cross-navigation key stability claim. Chrome's initial child-frame replay behavior is unchanged; proof covers live registration events during the discovery window. The fixture tests supplement actual native producer evidence.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run check:5tasks passed,129existing warnings and zero errors.npm run check:fast:2tasks passed.npm run docs:checkandnpm run build:passed.npm run verify:browser:passed, including existing public CLI/stdio MCP, popup, network, screenshot and script-export workflows. Its existing descendant-run-token mismatch reports process-lineage evidence unavailable; no stronger lineage claim.Compatibility, safety, and release
Review checklist
type(scope): outcome.AI-assisted implementation and verification; I reviewed the patch and ran the reported checks.