Skip to content

chore: remove trackJudgeResult from graph tracker and fix judgeConfigKey spread#1296

Merged
jsonbailey merged 1 commit intofeat/ai-sdk-next-releasefrom
jb/aic-2200/fix-judge-config-key
Apr 20, 2026
Merged

chore: remove trackJudgeResult from graph tracker and fix judgeConfigKey spread#1296
jsonbailey merged 1 commit intofeat/ai-sdk-next-releasefrom
jb/aic-2200/fix-judge-config-key

Conversation

@jsonbailey
Copy link
Copy Markdown
Contributor

@jsonbailey jsonbailey commented Apr 20, 2026

Summary

  • Removes trackJudgeResult from LDGraphTracker interface and LDGraphTrackerImpl — it belongs only on the config tracker
  • Fixes LDAIConfigTrackerImpl.trackJudgeResult to conditionally include judgeConfigKey rather than unconditionally spreading it (which emitted judgeConfigKey: undefined when absent)
  • Removes associated tests from LDGraphTrackerImpl.test.ts

Test plan

  • yarn workspace @launchdarkly/server-sdk-ai lint passes
  • yarn workspace @launchdarkly/server-sdk-ai test passes (176 tests)

Note

Medium Risk
Medium risk due to an API surface change: trackJudgeResult is removed from LDGraphTracker, which may break downstream callers. Behavioral change in LDAIConfigTrackerImpl.trackJudgeResult is small but affects emitted analytics payloads.

Overview
Removes judge-result tracking from the graph tracker by deleting trackJudgeResult from LDGraphTracker and LDGraphTrackerImpl, along with the corresponding LDGraphTrackerImpl tests.

Updates LDAIConfigTrackerImpl.trackJudgeResult to only include judgeConfigKey in the tracked event data when it is present, avoiding emission of judgeConfigKey: undefined.

Reviewed by Cursor Bugbot for commit bf71059. Bugbot is set up for automated code reviews on this repo. Configure here.

…Key spread

Removes trackJudgeResult from LDGraphTracker interface and LDGraphTrackerImpl — it belongs only on the config tracker. Also fixes LDAIConfigTrackerImpl to conditionally include judgeConfigKey rather than spreading undefined.
@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 25623 bytes
Compressed size limit: 29000
Uncompressed size: 125843 bytes

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179375 bytes
Compressed size limit: 200000
Uncompressed size: 829982 bytes

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 31655 bytes
Compressed size limit: 34000
Uncompressed size: 112792 bytes

@github-actions
Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 37169 bytes
Compressed size limit: 38000
Uncompressed size: 204305 bytes

@jsonbailey jsonbailey marked this pull request as ready for review April 20, 2026 20:35
@jsonbailey jsonbailey requested a review from a team as a code owner April 20, 2026 20:35
@jsonbailey jsonbailey merged commit ba595b1 into feat/ai-sdk-next-release Apr 20, 2026
44 checks passed
@jsonbailey jsonbailey deleted the jb/aic-2200/fix-judge-config-key branch April 20, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants