Skip to content

fix(conformance): exercise compaction overflow recovery - #5435

Closed
giuliolovisotto wants to merge 5 commits into
mainfrom
glovisotto/compaction-overflow-fixture
Closed

giuliolovisotto wants to merge 5 commits into
mainfrom
glovisotto/compaction-overflow-fixture

Conversation

@giuliolovisotto

@giuliolovisotto giuliolovisotto commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

The controlled compaction fixture could report high token usage without supplying enough older history for Pi to summarize. Pi also checks its threshold after the tool loop, so that trigger could run after the final policy response.

Support an explicitly declared context-limit response during the task, with enough history to exercise Pi's own compact-and-retry path. Recognize Pi's summary instructions outside the quoted conversation, accept native automatic trigger names and summary wrappers, and account for successful policy/helper responses while retaining the failed attempt through the existing capture checks. The saved trigger must match whether the fixture declared an overflow, and the trigger position follows the scenario step count. The five behavioral requirements remain unchanged.

This focused follow-up to #5307 starts the Pi stack on main, followed by #5436. No separate GitHub issue is needed. The shared scenario landed in #5439; the default P0 gate is unchanged.

Validation on 2026-11-06, with the assembled Pi stack rebased onto main b4dc559825a951171c0218623f1c44243ceb7843:

  • Shared conformance runner/checker and Pi suites: 872 passed, 14 skipped.
  • pre-commit run --all-files: passed.
  • Fresh pinned Pi 0.80.2 run: all nine scenarios pass with P1 gating. The compaction rollout retains 17 model calls, 15 policy turns, one referenced helper and 190,544 synthetic fixture tokens. Summary reuse, retained helper usage and helper exclusion from turns pass.
  • The rebase preserves main's NOOA-specific probe setup alongside the Pi trigger; the shared recovery patch is unchanged. Commits retain DCO sign-offs and SSH signatures.

Rollout evidence uses the real pinned runtime and shell execution with a controlled local provider. Existing session configuration and scoring policy are unchanged.

@giuliolovisotto giuliolovisotto added bug Something isn't working area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters needs-review PR is ready for code review and waiting on a reviewer labels Nov 2, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team November 2, 2026 10:15

@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 all five changed files and traced the provider, episode setup, checker, and regression tests. Successful-only ID and usage accounting still leaves the failed overflow attempt covered by the independent exchange checks.

This was a static review. I didn't execute tests or independently reproduce the combined harness runs reported in the PR.

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.

marta-sd
marta-sd previously approved these changes Nov 2, 2026
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/compaction-overflow-fixture branch from fc4fb8e to 21c9c2f Compare November 2, 2026 17:00
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/compaction-overflow-fixture branch from 21c9c2f to b1dcd61 Compare November 3, 2026 10:08
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/compaction-overflow-fixture branch from b1dcd61 to f21e9c9 Compare November 3, 2026 10:13
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/compaction-overflow-fixture branch from f21e9c9 to d3ca2cd Compare November 3, 2026 10:28

This branch was previously deployed

1 inactive deployment
public — ec39e34f Deployed Nov 6, 2026 by copy-pr-bot[bot] via release / finalize / notify #10637
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 bug Something isn't working 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.

3 participants