Skip to content

test(conformance): script Codex compaction replies - #6046

Closed
giuliolovisotto wants to merge 2 commits into
glovisotto/stirrup-scripted-compactionfrom
glovisotto/codex-scripted-compaction
Closed

giuliolovisotto wants to merge 2 commits into
glovisotto/stirrup-scripted-compactionfrom
glovisotto/codex-scripted-compaction

Conversation

@giuliolovisotto

@giuliolovisotto giuliolovisotto commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex compaction probes now have a complete scripted schedule: 14 tool replies, one summary, then the final answer. The last tool reply reports usage above the configured 24,000-token compaction limit. The scenario uses supported session settings and disables transport retries so a transport failure stops the scripted run.

This follows #6044 and targets its branch. Harness and probe overrides remain together in the compaction scenario configuration, merged directly onto base settings. The shared provider and conformance checks are unchanged. No separate issue is needed for this focused follow-up.

Validation:

  • HARNESS=codex python -m pytest scripts/harness_conformance/tests tests/unit_tests/rollouts/harness_capabilities/test_compaction.py -q -o log_cli=false: 241 passed, 14 skipped.
  • pre-commit run --all-files: passed.
  • Full Linux Gym agent-session context_compaction episode with pinned Codex 0.144.4: all applicable P0, P1 and health checks passed. It executed 14 tools and 16 model requests, retained exactly one compaction with its helper reference, reused the summary, and preserved token accounting. An initial session rejection exposed unsupported fixture extra_config; the final change removes that override, and the full scenario passes without adapter or checker changes.
  • Native CLI comparison with context 65,536 and compaction limit 48,000 completed without compaction.

This changes fixture configuration only; 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 the Codex compaction settings and reply schedule, their session configuration and probe/checker consumers, and the compaction and no-compaction regression cases.

This was a static review; I didn't execute tests or independently reproduce the reported CLI run.

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