Repository navigation
test(conformance): script Claude Code compaction - #6048
Closed
giuliolovisotto wants to merge 4 commits into
Closed
giuliolovisotto wants to merge 4 commits into
giuliolovisotto wants to merge 4 commits into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
giuliolovisotto
marked this pull request as ready for review
November 12, 2026 16:31
giuliolovisotto
force-pushed
the
glovisotto/claude-code-scripted-compaction
branch
from
November 12, 2026 17:02
5acc0ab to
a414294
Compare
giuliolovisotto
force-pushed
the
glovisotto/kilocode-scripted-compaction
branch
from
November 12, 2026 17:02
6006040 to
3e26323
Compare
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
giuliolovisotto
force-pushed
the
glovisotto/kilocode-scripted-compaction
branch
from
November 13, 2026 10:15
3e26323 to
e7ee039
Compare
giuliolovisotto
force-pushed
the
glovisotto/claude-code-scripted-compaction
branch
from
November 13, 2026 10:15
a414294 to
ded68e2
Compare
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.
Claude Code's compaction scenario uses 14 Bash replies, a summary, then the final answer. The last tool reply supplies 90,000 input tokens to cross the configured threshold. The full pinned-runtime episode now passes conformance.
The adapter exposes optional
session_name(--name) andtools(--tools) settings, and accepts an inline settings mapping or the existing JSON path. The fixture names the session to suppress title generation and limits tools to Bash, removing title-request detection and auxiliary-call bookkeeping.Observation fixes retain the actual sandbox ID across cleanup, normalize the native
autotrigger toautomatic, and reconcile aggregate usage from uniquely resolved invocation-owned captures, including compaction helpers and cache tokens. Repeated references are counted once; unrelated calls are excluded. Missing or ambiguous capture evidence leaves native usage intact with a reconciliation gap. Without configured capture, native reporting remains the fallback.The compaction checker requires the complete scripted summary in the saved event and resumed request, allowing runtime continuation text around it. Exact helper identity and ownership checks remain. Usage expectations use the existing shared model-call extractor, including Messages cache reads and writes.
Stacked on #6047. No separate issue is needed for this focused conformance follow-up. Existing configuration defaults remain compatible; capture-backed reported usage can increase because previously omitted helper/cache tokens are included. No benchmark task or scoring changes.
Validation:
automaticcompaction trigger are retained.pre-commit run --all-files: passed on this PR and the restacked tip.Kept as a draft for review.
CI validation: 706 shared/adapter tests passed (23 skipped); public API and observation checks passed (889 tests). Removed the obsolete auxiliary-call test and used the public model-call record API in the observation test. Repository hooks pass.