Repository navigation
fix(javascript)!: avoid endpoint payload copies in graph metadata - #1423
Conversation
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.
There was a problem hiding this comment.
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.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
…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.
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.valueor semanticproperties.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:
npm run check:fastandnpm run verify:test-discoverypassed.Partial follow-up to #723; its broader client-consumption investigation remains open.