Skip to content

fix(browser): respect metadata key and overwrite semantics - #686

Closed
rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/rea-web-metadata-keys-20261006
Closed

rudycelekli wants to merge 1 commit into
morluto:mainfrom
rudycelekli:fix/rea-web-metadata-keys-20261006

Conversation

@rudycelekli

Copy link
Copy Markdown

What changed

Captured browser metadata now distinguishes literal property keys from computed identifiers. Route findings and WebMCP schema property names no longer treat an identifier's spelling as its runtime key. WebMCP declaration fields follow object property order: final named values win; uncertain spread/computed writes and accessors invalidate earlier exact values; subsequent exact fields restore them. Known empty-string keys preserve unrelated fields.

Consumer evidence

The complete public CdpBrowserProvider.analyzeBundle on an owned page in actual Chrome 154 previously fabricated /not-a-route from { [path]: ... } where path is "description", reported "old" for a duplicated final name: "new", and invented a schema property named name from [name]. Afterward the false route disappears, the final name is "new", uncertain overwritten names remain null, and the computed literal route and empty-string-key controls survive.

Verification

  • Focused analyzer suite: 8 passed, including computed key, final field, spread/accessor and empty-key controls.
  • npm run check, npm run check:fast, git diff --check: passed.
  • Full npm run verify:browser: passed with actual Chrome and public CLI/stdio browser workflows.
  • Complete public provider capture and metadata assertions: passed.

No new tool, schema or execution authority. Hopper/Ghidra verification was not run because no binary provider behavior changes. AI assistance was used for investigation, implementation and verification. Hosted checks are pending on publication.

@morluto morluto left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve: computed route keys now use semanticStaticPropertyName (unknown computed drops out), last-wins for duplicate names, spread/computed/accessor invalidation with restoration, schema props filtered. Dense test covers all branches, no schema change. Checks green.

@morluto

morluto commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Superseded by #705, which cherry-picks this change (plus 13 sibling fixes) onto current main with conflict resolution and regenerated catalogs. Closing to keep one reviewable merge unit.

@morluto morluto closed this Oct 6, 2026
@morluto

morluto commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Thanks, @rudycelekli, for your work on “fix(browser): respect metadata key and overwrite semantics.” I appreciate your contribution to REA.

@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants