Skip to content

test(conformance): script KiloCode compaction replies - #6047

Closed
giuliolovisotto wants to merge 1 commit into
glovisotto/codex-scripted-compactionfrom
glovisotto/kilocode-scripted-compaction
Closed

giuliolovisotto wants to merge 1 commit into
glovisotto/codex-scripted-compactionfrom
glovisotto/kilocode-scripted-compaction

Conversation

@giuliolovisotto

Copy link
Copy Markdown
Contributor

KiloCode compaction probes now have explicit scenario settings and a complete reply schedule: 14 tool replies, one summary, then the final answer. The last tool reply crosses the usage threshold for a 32,768-token context with an 8,192-token output reservation. Automatic compaction is enabled without setting a separate payload-estimation threshold.

This follows #6046 and targets its branch. The harness overrides and reply schedule live together in the compaction scenario configuration and merge directly onto base settings. The shared provider and conformance checks are unchanged. No separate issue is needed for this focused follow-up.

Validation:

  • HARNESS=kilocode python -m pytest scripts/harness_conformance/tests tests/unit_tests/rollouts/harness_capabilities/test_compaction.py -q -o log_cli=false: 243 passed, 14 skipped, including generated configuration validation against the KiloCode adapter schema.
  • pre-commit run --all-files: passed.
  • Native smoke using the exact pinned KiloCode 7.4.15 CLI, the adapter's generated configuration, command and environment, the actual scripted probe, and 14 executed shell tools: context 32,768 made 16 model requests, saved one native compaction in its database, reused the summary, and finished. A test-only context-65,536 comparison made 15 requests without compaction. Both runs exited successfully and retained tool evidence without fixture violations.

Kept as a draft pending full Gym agent-session validation. Adapter behavior and conformance expectations are unchanged.

@copy-pr-bot

copy-pr-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown

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.

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SHIP

LGTM — no concerns found.

I reviewed both changed files and traced the KiloCode scenario settings through configuration generation, native runtime staging, probe reply consumption, and compaction evidence checks. The added test cases cover the scripted compaction and no-compaction sequences without changing shared acceptance rules.

Static review only: I couldn't execute tests. The test and native-smoke results are author-reported; full Gym agent-session validation remains pending.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

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