Repository navigation
agentHost: preserve the engine snapshot pairing ID namespace - #345229
Merged
Aaron Munger (amunger) merged 3 commits intoNov 3, 2026
Merged
Aaron Munger (amunger) merged 3 commits into
Aaron Munger (amunger) merged 3 commits into
Conversation
Do not substitute an SDK model-call ID when an engine snapshot lacks its independently generated pairing UUID. Exercise restricted routing and the sender boundary without inventing missing correlation. Co-authored-by: Copilot <[email protected]>
…d-implement-a-solution-that-satisf
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change separating engine snapshot pairing IDs from SDK model-call IDs.
No open issues 🎉
What changed in this PR
This PR preserves the distinction between engine snapshot pairing IDs and SDK model-call IDs in Agent Host telemetry. It addresses namespace safety without changing conversation ownership or downstream ingestion.
Changes:
- Prevents SDK ID fallback for
engine.messagesandengine.messages.length, while preserving fallback for other events. - Adds regression coverage for missing pairing IDs and independent input/output pairs passed through the restricted sender.
| File | Description |
|---|---|
src/vs/platform/agentHost/test/node/agentHostGitHubTelemetryRouter.test.ts |
Tests missing pairing IDs, preserved call pairs, and restricted-event filtering. |
src/vs/platform/agentHost/node/agentHostGitHubTelemetryRouter.ts |
Excludes engine snapshot events from SDK model-call ID fallback. |
Review effort: Balanced
Preserve the engine pairing-ID safeguard alongside the merged SDK conversation identifiers. Remove the obsolete host-context fixture and retain scoped input/output and consent assertions. Co-authored-by: Copilot <[email protected]>
Aaron Munger (amunger)
marked this pull request as ready for review
November 3, 2026 19:11
roblourens
approved these changes
Nov 3, 2026
Connor Peet (connor4312)
approved these changes
Nov 3, 2026
Connor Peet (connor4312)
left a comment
Member
There was a problem hiding this comment.
Reviewed for security and correctness; no actionable P1 or P2 findings. No builds or tests run.
Written by Connor's agent running GPT-6.1 Sol
Aaron Munger (amunger)
deleted the
agents/investigate-and-implement-a-solution-that-satisf
branch
November 3, 2026 22:23
This was referenced Nov 5, 2026
Aaron Munger (amunger)
added a commit
that referenced
this pull request
Nov 5, 2026
agentHost: preserve the engine snapshot pairing ID namespace (#345229) Do not substitute an SDK model-call ID when an engine snapshot lacks its independently generated pairing UUID. Exercise restricted routing and the sender boundary without inventing missing correlation. Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Keep missing engine input/output pairing IDs missing, rather than replacing them with an unrelated SDK model-call ID.
The restricted router falls back from
properties.modelCallIdto the top-levelmodel_call_idfor every target event. Engine snapshots mint their own input/output pairing UUID, so that fallback can manufacture an invalid correlation key. This change excludesengine.messagesandengine.messages.lengthfrom the fallback.For example, an engine snapshot with no pairing UUID and SDK ID
sdk-call-Apreviously acquiredmodelCallId: sdk-call-A. It now remains unpaired instead of presenting that unrelated ID as an engine pairing key. Other target events keep their existing fallback.This complements #345609:
sdkSessionId/sdkAgentIdidentify the conversation and child trajectory, while enginemodelCallIdpairs an individual model input/output. Conversation correlation remains available even when the engine pairing ID is missing.Scope
The change is limited to the restricted router and its regression tests. It does not change content collection, consent, destinations, SDK dependencies or downstream admission. The tests no longer depend on the earlier host-provided ownership proposal.
How to test
Result: 48 passed using the same Node test runner directly after refreshing the six selected telemetry modules and one newly added test helper with the repository's
transpileFilehelper. Other compiled dependencies were reused; this was not a full client build/typecheck. The installed local SDK is older than current main; the changed router imports its notification type only, and the focused routing tests use synthetic notifications.The real restricted sender tests capture serialized upload envelopes and verify independent engine pairs with different headers, preserved SDK conversation identity, and disabled/misclassified-event suppression. Prior synthetic loopback HTTP validation also exercised the router and sender, but predates this main merge. No customer content, production telemetry endpoint, or live CTS ingestion was used.