Repository navigation
fix(stirrup): observe compaction helper calls - #5310
Merged
Merged
Conversation
giuliolovisotto
force-pushed
the
codex/fea-518-stirrup
branch
from
October 29, 2026 13:53
aacc5da to
ba22c1b
Compare
marta-sd
previously approved these changes
Nov 2, 2026
giuliolovisotto
force-pushed
the
codex/fea-518-stirrup
branch
from
November 2, 2026 10:59
ba22c1b to
0077324
Compare
giuliolovisotto
force-pushed
the
codex/fea-518-stirrup
branch
from
November 2, 2026 17:00
3bc39fb to
b0d52a8
Compare
giuliolovisotto
force-pushed
the
codex/fea-518-stirrup
branch
from
November 3, 2026 14:15
b0d52a8 to
59dd3e1
Compare
giuliolovisotto
enabled stacked auto-merge
November 3, 2026 14:27
marta-sd
previously approved these changes
Nov 3, 2026
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]>
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]>
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]>
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
marta-sd
approved these changes
Nov 4, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/41802884251 |
This branch was previously deployed
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.
What does this PR do?
Stirrup's summarizer makes captured model calls, but Gym does not export the compaction event linking them. Observe the existing
summarize_messagescall and completion logger, retaining its actual summary, outcome and helper response IDs. Add the configured model scope before validatingContextCompactionObservationon the host.Every helper attempt during summarization remains referenced, including rejected summaries. The existing usage recorder retains those calls, and the collector excludes them from policy turns.
Earlier validation
python -m pytest -q responses_api_agents/stirrup_agent/tests --disable-warnings: 173 passed. Tests cover successful summarization and failed attempts, preserving helper usage while excluding helper IDs from policy responses.Rollouts
Stirrup 0.1.12 passes the final shared compaction scenario (16 calls, 15 policy turns, one event) and all eight existing P0 scenarios. Reproduce with
python scripts/run_harness_conformance.py --harness stirrup --scenario context_compaction --gate-tier P1 --output results/stirrup-compactionin the Stirrup environment.Compatibility and benchmark impact
Stirrup still decides when and how to summarize. Production observations now describe that operation and connect it to the captured calls. No benchmark or default compaction settings change.
The stack starts with #5122; #5439 registers the scenario only after the shared support and harness fixes.
All-file
uvx pre-commit run --all-filespassed; all commits have DCO sign-off. Full repository CI has not been validated. Smoke runs use real pinned harness runtimes and a controlled local model provider; they do not qualify remote sandbox infrastructure or model quality.Rebase validation — 2026-11-02
Rebased onto main
0c7ac5119c99e0aa0dfeda7be59157c589680ffd, preserving the existing stack order. Fresh Stirrup 0.1.12 compaction passes all five behavioral checks: 16 calls, 15 policy turns, one event, summary reuse and retained helper usage. Its patch differs from the previous head only in import context after the module moves on main. All-file pre-commit passed on both stack tips; commits have DCO sign-off and SSH signatures. These are local pinned-runtime runs with a controlled provider, not remote deployment or full repository CI qualification.