Repository navigation
test(core): cover token threshold compaction through harnesses - #3291
Merged
Merged
Conversation
Assert configured token thresholds and retained event tails through recorded model requests. Reuse the existing Harness fixture and compaction responses, including a below-threshold control. Verified Go runtime compaction tests and all four live Harness compaction cases with race detection. Focused core E2E lint and compilation pass. Signed-off-by: Ada Lundhe <adalundhe@lundhe.audio>
EItanya
approved these changes
Oct 20, 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.
Summary
The cases reuse the existing compaction models, recorder, and Harness fixture.
They assert which events reach the summarizer and which remain in the next agent request.
Validation
Commands run from
go/:go test -race -count=1 ./adk/pkg/agent -run 'TestCompaction|TestSummarizer' -vgo test -run '^$' ./core/test/e2emake lint LINT_ARGS=./core/test/e2ego test -race -v -count=1 -parallel=1 -timeout=15m ./core/test/e2e -run 'TestSession(Context|TokenThreshold)Compaction'All four live cases pass in an isolated KIND fleet with the current controller and Go harness built from
2261632.