Skip to content

test(conformance): script Hermes compaction replies - #6011

Closed
giuliolovisotto wants to merge 3 commits into
glovisotto/conformance-p0-coveragefrom
glovisotto/hermes-scripted-compaction
Closed

giuliolovisotto wants to merge 3 commits into
glovisotto/conformance-p0-coveragefrom
glovisotto/hermes-scripted-compaction

Conversation

@giuliolovisotto

@giuliolovisotto giuliolovisotto commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Hermes compaction probes now use an explicit reply schedule: 14 tool replies, one summary, then the final answer. The last tool reply crosses the configured compression threshold after enough history exists. A larger-context control receives the same tool usage without a summary reply.

This follows #5376 and targets its branch. The compaction scenario defines its complete harness overrides and reply schedule. The settings loader selects overrides by scenario name and merges them directly onto base settings. The no-compaction comparison is test-only. The shared provider and conformance checks are unchanged. 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: 237 passed, 14 skipped.
  • pre-commit run --all-files: passed.
  • Component smoke with the pinned Hermes compressor (26bb847a88493342ca1b194e0455b479073ae21d), the actual probe, and 14 executed shell tools: the 32,768-token context produced one compaction on request 15 and reused its summary on request 16; the 65,536-token control completed in 15 requests without compaction. Neither run recorded fixture violations. The smoke mirrored the agent's post-tool trigger and forwarded the compressor's model call to the probe; it did not run the full agent loop.

Kept as a draft because a full Gym agent-session episode has not been run. This changes conformance fixtures only; it does not change adapter behavior or weaken checks for missing observations.

@copy-pr-bot

copy-pr-bot Bot commented Nov 11, 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 settings selection and Hermes reply schedule, the updated tests, and their affected adapter, provider, and compaction-check paths. I found no introduced correctness issues or weakened evidence checks.

This was a static review. I didn't execute tests, and the external Hermes loop isn't mounted, so I couldn't independently verify automatic compaction timing in a full agent-session episode.

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