Repository navigation
fix(javascript)!: avoid event payload copies in graph metadata - #1427
Conversation
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.
There was a problem hiding this comment.
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.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…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.
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 retainnulland explicit uncertainty. The workflow guide documents this change; no schema or tool inventory changes.Verification:
npm run check:fastandnpm run verify:test-discoverypassed.Follows #1423; partial follow-up to #723, which remains open for broader client consumption work.