Skip to content

Fixes to adaptive aggressiveness updates#3441

Merged
ulugbekna merged 11 commits intomicrosoft:mainfrom
bstee615:ben/agg-updates
Feb 4, 2026
Merged

Fixes to adaptive aggressiveness updates#3441
ulugbekna merged 11 commits intomicrosoft:mainfrom
bstee615:ben/agg-updates

Conversation

@bstee615
Copy link
Member

@bstee615 bstee615 commented Feb 4, 2026

  • Add telemetry when config fails to parse
  • Replace unnecessary generic type with a simple type declaration
  • Add validation for some corner cases in happiness score configuration
  • Add unit tests for experimental config we'll flight first

@bstee615 bstee615 marked this pull request as ready for review February 4, 2026 15:15
Copilot AI review requested due to automatic review settings February 4, 2026 15:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tightens validation and telemetry around the adaptive aggressiveness “user happiness” configuration and adds tests to validate the scoring and configuration parsing behavior.

Changes:

  • Extends USER_HAPPINESS_SCORE_CONFIGURATION_VALIDATOR to enforce stricter constraints on ignored vs rejected scores.
  • Refactors user interaction data to use a dedicated NESUserAction type, wires in ITelemetryService to log parse/validation failures of the happiness configuration, and updates the corresponding tests.
  • Adds richer unit tests for the user happiness scoring algorithm and configuration parsing, including v1/v2 behavior comparisons and configuration-string round-tripping.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/platform/inlineEdits/common/dataTypes/xtabPromptOptions.ts Adds tighter validation for happiness score configuration values, including a new constraint on ignoredScore relative to rejectedScore and parsing of the configuration string via a validator.
src/extension/inlineEdits/common/userInteractionMonitor.ts Introduces the NESUserAction type, updates scoring helpers to use it, and adds telemetry/logging around failures to parse/validate the experimental happiness score configuration.
src/extension/inlineEdits/test/common/userInteractionMonitor.spec.ts Updates the test monitor to pass a telemetry service and adjusts comments/instantiations to align with the new constructor signature and default configuration behavior.
src/extension/inlineEdits/test/common/userHappinessScore.spec.ts Refactors tests to use NESUserAction/action() helper, exercises ignored-action handling and weighting behavior more explicitly, and adds new tests for configuration-string parsing and usage.

@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 4, 2026
@bpasero bpasero assigned ulugbekna and unassigned bpasero Feb 4, 2026
@ulugbekna ulugbekna added this pull request to the merge queue Feb 4, 2026
Merged via the queue into microsoft:main with commit 33c94ea Feb 4, 2026
9 checks passed
@bstee615 bstee615 deleted the ben/agg-updates branch February 6, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants