Skip to content

fix(javascript)!: avoid event payload copies in graph metadata - #1427

Merged
N0zoM1z0 merged 1 commit into
mainfrom
fix/javascript-event-payload-metadata
Oct 10, 2026
Merged

N0zoM1z0 merged 1 commit into
mainfrom
fix/javascript-event-payload-metadata

Conversation

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Long EventEmitter names were copied into the event identity and display labels as well as the complete event/listener properties. Keep the exact properties and emitter-scoped registration/removal/dispatch graph, while using compact canonical string identities and shorter display labels. Share the existing endpoint identity rule so reserved-prefix and UTF-16 behavior has one owner.

On an inert static fixture with a 150,000-character name, redirected CLI JSON fell from 804,522 to 354,612 bytes (55.9%), preserving all 21 semantic nodes and ten relations. These are serialized-output measurements, not model-host token billing.

Migration: New analyses change hashed event IDs and longer event/listener labels. Select IDs from the parent graph or query the exact properties.event_name. Stored Evidence and its original semantic-node IDs remain valid; real stdio MCP verified legacy node-ID tracing. Dynamic names retain null and explicit uncertainty. The workflow guide documents this change; no schema or tool inventory changes.

Verification:

  • Real compiled CLI/stdio MCP acceptance with a large Unicode name, complete text/structured Evidence parity, repeated registration/dispatch/removal grouping, emitter isolation, reserved-prefix lookalike, unresolved dynamic name, exact event/listener seeds, and follow-up ping.
  • Endpoint acceptance and 33 adjacent async/empty-value cases passed alongside the new acceptance journey (35 tests).
  • npm run check:fast and npm run verify:test-discovery passed.
  • Public stdio MCP probes passed on Node 24.18.0 and 22.22.2, including legacy original semantic-node IDs and complete event/listener values.
  • Real Hopper/Ghidra verification: not applicable; static JavaScript projection only.

Follows #1423; partial follow-up to #723, which remains open for broader client consumption work.

Share the canonical string identity rule with endpoint projection, scope event keys to each emitter, and keep complete event/listener names in properties. Verify real CLI and stdio MCP with large names, registration/removal, distinct emitters, exact name seeds, reserved-prefix values, and unresolved dynamic names.

BREAKING CHANGE: New analyses use digest-based IDs for long or reserved-prefix event names and shorter event/listener display labels. Select IDs from the parent graph and read exact names from event_name properties. Stored graphs and their original IDs remain accepted for semantic tracing.
@N0zoM1z0 N0zoM1z0 added the bug Something isn't working label Oct 10, 2026

@N0zoM1z0 N0zoM1z0 left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewed cf1289c: complete event/listener names remain queryable, identities stay emitter-scoped, and reserved-prefix values cannot alias long-name digests. Dynamic names retain null and explicit unknowns; registration/removal/dispatch relations remain intact. Real CLI/stdio MCP and adjacent consumers pass (35 tests), and Node 22/24 accept legacy semantic-node IDs. Metadata migration is documented. Final-head CI 38022717189 passed all 19 checks; no unresolved review threads. Subsequent main changes do not touch the event/endpoint projection or shared identity helper.

@N0zoM1z0
N0zoM1z0 marked this pull request as ready for review October 10, 2026 04:20
@N0zoM1z0
N0zoM1z0 merged commit f4a0c1c into main Oct 10, 2026
19 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0
N0zoM1z0 deleted the fix/javascript-event-payload-metadata branch October 10, 2026 04:20
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…to#1427)

Share the canonical string identity rule with endpoint projection, scope event keys to each emitter, and keep complete event/listener names in properties. Verify real CLI and stdio MCP with large names, registration/removal, distinct emitters, exact name seeds, reserved-prefix values, and unresolved dynamic names.

BREAKING CHANGE: New analyses use digest-based IDs for long or reserved-prefix event names and shorter event/listener display labels. Select IDs from the parent graph and read exact names from event_name properties. Stored graphs and their original IDs remain accepted for semantic tracing.
@morluto morluto added the area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior label Nov 26, 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