Skip to content

test(conformance): add shared compaction checks - #5307

Merged
giuliolovisotto merged 5 commits into
mainfrom
codex/fea-518-compaction-checks
Nov 4, 2026
Merged

giuliolovisotto merged 5 commits into
mainfrom
codex/fea-518-compaction-checks

Conversation

@giuliolovisotto

@giuliolovisotto giuliolovisotto commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Add reusable compaction checks and controlled-provider support while retaining the eight-scenario default catalog. Scenario activation follows in #5439 after the harness fixes; this focused support layer needs no separate issue.

Reuse ContextCompactionObservation, Scenario, Probe, and typed checks. The independent provider witness establishes helper IDs and a summary. Saved artifacts must contain a completed event, helper references with unique invocation ownership, summary reuse in the next policy request, policy turns excluding the helper, and aggregate usage including it. Conflicting ownership fails independently of turn exclusion. The no-compaction path remains a unit-test control.

The runner defaults to the P0 scenario gate; --gate-tier P1 also requires P1 scenarios. Reporting retains the independent P0/P1/P2 counts already on main from #5179. Each column evaluates applicable checks at that priority; a scenario may contribute to several columns. The obsolete cumulative tier_verdicts field and table changes are removed. The regression fails the actual P1 compaction.event check while its P0 checks pass, and inspection errors preserve other completed measurements.

Validation after rebasing onto main 0c7ac5119c99e0aa0dfeda7be59157c589680ffd:

  • On this support layer, pytest scripts/harness_conformance/tests tests/unit_tests/harness_capabilities/test_compaction.py -q --no-cov: 184 passed, 2 skipped.
  • On the assembled original stack, shared conformance, collector, Codex and Kilo tests: 1,719 passed, 16 skipped, 76 configuration-test cases deselected.
  • Fresh native Codex passes all nine scenarios with P1 gating. Compaction also passes on OpenCode, Kilo, Stirrup and Hermes. The separate Pi follow-up passes all nine Pi scenarios.
  • All-file pre-commit passes on both stack tips; commits have DCO sign-off and SSH signatures.

Existing check priorities remain unchanged. Usage is synthetic fixture input; no benchmark scoring or production context settings change. Runs use pinned real harness runtimes and a controlled local provider; remote deployments and full repository CI were not qualified. Stack starts at #5122; #5439 activates the scenario last in the original stack.

@giuliolovisotto giuliolovisotto added feature New capabilities, enhancements, or enablement work area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters needs-review PR is ready for code review and waiting on a reviewer labels Oct 29, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team October 29, 2026 13:44
@giuliolovisotto
giuliolovisotto force-pushed the codex/fea-518-compaction-checks branch from ce9a51c to ae5da2b Compare October 29, 2026 13:53
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 30, 2026
Comment thread scripts/harness_conformance/runner.py Resolved
marta-sd
marta-sd previously approved these changes Nov 3, 2026
@giuliolovisotto
giuliolovisotto added this pull request to the merge queue Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41797693607

Merged via the queue into main with commit f34d6ab Nov 4, 2026
63 of 66 checks passed
Base automatically changed from codex/fea-518-collector to main November 4, 2026 08:31
@giuliolovisotto
giuliolovisotto deleted the codex/fea-518-compaction-checks branch November 4, 2026 08:31

This branch was previously deployed

1 inactive deployment
public — e3e439c3 Deployed Nov 4, 2026 by copy-pr-bot[bot] via release / finalize / notify #9905
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants