Skip to content

fix(javascript)!: avoid endpoint payload copies in graph metadata - #1423

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

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

Conversation

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

A long static fetch() endpoint was copied into the artifact graph's identity key and label and the semantic request label, in addition to its two complete observation/property representations. Large endpoints could therefore exhaust the default MCP response budget before any useful analysis reached the caller.

Keep exact values, source identities, locations, and graph relationships. Use canonical JSON string digests for long endpoint keys and reserve the digest prefix to prevent collisions with caller values. Choose shorter descriptive endpoint/method labels. Exact value search, semantic tracing, and unique-only version pairing continue to use the complete properties.

On the same 150,024-character endpoint fixture, redirected CLI JSON fell from 774,402 to 324,428 bytes (58.1%), retaining all four artifact nodes and five semantic nodes. This compares against 4d8ef3f3, which already includes compact CLI JSON; it measures serialized output, not model-host token billing.

Migration: New analyses change hashed endpoint IDs and longer endpoint labels. Use IDs from the selected parent graph and read endpoint values from observation properties.value or semantic properties.endpoint. Previously stored Evidence and its original node IDs remain accepted; real stdio MCP verified legacy node-ID tracing and old/new semantic-key pairing. Documented in the JavaScript workflow guide. No schema or tool inventory changes.

Verification:

  • Real compiled CLI/stdio MCP acceptance journey with a near-million-character Unicode endpoint, complete text/structured Evidence parity, reserved-prefix collision, distinct UTF-16 strings, repeated endpoint grouping, exact endpoint tracing, version comparison, and follow-up ping.
  • 67 adjacent graph/query/version tests passed; acceptance journey passed (68 tests total).
  • 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 original stored Evidence, node-ID tracing, and old/new graph comparison.
  • Real Hopper/Ghidra verification: not applicable; this changes static JavaScript projections only.

Partial follow-up to #723; its broader client-consumption investigation remains open.

Keep exact endpoint observations and request properties while using compact display labels and collision-safe canonical value digests for long artifact-local endpoint keys. Verify real CLI/stdio MCP tracing and version comparison without truncating evidence.

BREAKING CHANGE: New analyses use compact endpoint labels and digest-based IDs for long or reserved-prefix endpoint keys. Select IDs from the parent graph and read full values from endpoint properties. Previously stored graphs retain their original identities and remain valid workflow inputs.
@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 399149d: complete endpoint facts and provenance stay inline; exact search/tracing and semantic version pairing use preserved properties. The reserved digest prefix and canonical JSON encoding prevent caller-value and UTF-16 identity collisions. CLI/stdio MCP acceptance plus adjacent consumers pass (68 tests); Node 22/24 probes also accept legacy node IDs and pair old/new graphs. The changed IDs/labels are documented. Final-head CI 38021701725 completed successfully; all 19 checks passed and there are no unresolved review threads.

@N0zoM1z0
N0zoM1z0 marked this pull request as ready for review October 10, 2026 04:02
@N0zoM1z0
N0zoM1z0 merged commit 98022a8 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-endpoint-payload-metadata branch October 10, 2026 04:02
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…rluto#1423)

Keep exact endpoint observations and request properties while using compact display labels and collision-safe canonical value digests for long artifact-local endpoint keys. Verify real CLI/stdio MCP tracing and version comparison without truncating evidence.

BREAKING CHANGE: New analyses use compact endpoint labels and digest-based IDs for long or reserved-prefix endpoint keys. Select IDs from the parent graph and read full values from endpoint properties. Previously stored graphs retain their original identities and remain valid workflow inputs.
@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