Skip to content

test(conformance): script Stirrup compaction replies - #6044

Closed
giuliolovisotto wants to merge 1 commit into
glovisotto/hermes-scripted-compactionfrom
glovisotto/stirrup-scripted-compaction
Closed

giuliolovisotto wants to merge 1 commit into
glovisotto/hermes-scripted-compactionfrom
glovisotto/stirrup-scripted-compaction

Conversation

@giuliolovisotto

@giuliolovisotto giuliolovisotto commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Stirrup compaction probes now use an explicit reply schedule. Fourteen tool replies build history; the last reports enough usage to cross Stirrup's 70% context threshold, followed by one summary and the final reply. The larger-context control receives the same tool usage without a summary reply.

This follows #6011 and targets its branch. Harness and probe settings remain together in the existing compaction configuration. No shared provider or conformance-check changes are needed. No separate issue is needed for this focused follow-up.

Validation:

  • python -m pytest scripts/harness_conformance/tests tests/unit_tests/rollouts/harness_capabilities/test_compaction.py -q -o log_cli=false: 239 passed, 14 skipped.
  • pre-commit run --all-files: passed.
  • Pinned Stirrup 0.1.12 agent-loop smoke using Gym's NeMoAgent, DynamicMaxTokensChatCompletionsClient, the actual scripted probe, and 14 executed shell tools: the 32,768-token context made 16 requests, compacted once, reused the summary, and completed through the finish tool. The 65,536-token control made 15 requests with no compaction and also completed. Both runs retained tool evidence without fixture violations. Only the SDK's HTTP submission was redirected to the in-process probe; the agent loop, compaction trigger, summary handling, client serialization and response parsing ran unchanged.

Kept as a draft because the full Gym agent-session path has not been exercised. This changes conformance fixtures only; adapter behavior and checks for missing observations remain 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.

@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/stirrup-scripted-compaction branch 2 times, most recently from 25386bc to ecd43c9 Compare November 12, 2026 10:09
@giuliolovisotto
giuliolovisotto marked this pull request as ready for review November 12, 2026 16:31
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 12, 2026 16:32

@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 Stirrup reply schedule through configuration, adapter plumbing, and compaction evidence checks. The added test case covers the scripted tool usage, summary, final reply, and no-summary control without weakening the existing tool-observation requirements.

This was a static review. I didn't execute tests or reproduce the reported SDK smoke runs; the full Gym agent-session path remains unvalidated, as the PR notes.

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