Add edit tracker characterization tests#326062
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds characterization coverage for AI edit attribution telemetry ahead of Agent Host tracking work.
Changes:
- Tests edit tracking, source categories, telemetry windows, and annotated edits.
- Corrects source caching and top-source telemetry limiting.
- Introduces an SCM adapter interface for test stubbing.
Show a summary per file
| File | Description |
|---|---|
editTracker.test.ts |
Tests attribution and retained edits. |
editSourceTrackingImpl.test.ts |
Tests telemetry lifecycle and limits. |
editSourceCategories.test.ts |
Tests source categorization. |
documentWithAnnotatedEdits.test.ts |
Tests edit combining and minimization. |
scmAdapter.ts |
Adds the SCM adapter interface. |
editSourceTrackingImpl.ts |
Extracts categorization and fixes source limiting. |
arcTelemetrySender.ts |
Uses the SCM interface. |
arcTelemetryReporter.ts |
Uses the SCM interface. |
documentWithAnnotatedEdits.ts |
Includes provider IDs in source identity. |
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 0
- Review effort level: Medium
amunger
marked this pull request as ready for review
July 15, 2026 22:23
amunger
enabled auto-merge (squash)
July 15, 2026 22:27
anthonykim1
approved these changes
Jul 15, 2026
roblourens
approved these changes
Jul 15, 2026
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.
adding test coverage to AI telemetry events before making things complicated with AH tracking in #326061