8000 Integrate AgentDojo with shared replay and SHE/EvoSafe recipes by haizhongzheng · Pull Request #110 · Infini-AI-Lab/hermit · GitHub
[go: up one dir, main page]

Skip to content

Integrate AgentDojo with shared replay and SHE/EvoSafe recipes - #110

Merged
haizhongzheng merged 2 commits into
mainfrom
agentdojo-integration
Nov 19, 2026
Merged

haizhongzheng merged 2 commits into
mainfrom
agentdojo-integration

Conversation

@haizhongzheng
Copy link
Copy Markdown
Member

Supersedes #109 by @andylinx (maintainer edits were off): their commit unchanged, plus one review-fix commit.

Change

Integrate the official AgentDojo banking, Slack, travel, and workspace suites. Reuse AgentDyn's supervised replay, direct Base Agent, episode deadlines, usage accounting, and Docker defense hooks. AgentDyn remains the default for the shared runtime. AgentDojo guide

Add a frozen-case protocol with 57 training, 54 reserved validation, and 406 test cases across disjoint user-task groups. Groups with one eligible goal go directly to TEST, with a clean case and their eligible injected case. TRAIN and validation still require two eligible goals per group. The SHE and EvoSafe recipes use the same frozen Nemotron 3.5 Lightning actor and held-out cases, with different search budgets. Protocol

Method ASR, initial → final Clean utility, initial → final Final errors
EvoSafe 57/344 (16.6%) → 8/347 (2.3%) 49/55 (89.1%) → 48/55 (87.3%) 4/406
SHE 59/345 (17.1%) → 12/343 (3.5%) 50/54 (92.6%) → 48/54 (88.9%) 9/406

These are recorded single-pass results. Rates use completed cases. EvoSafe results · SHE results

Validation

  • python -m pytest examples/agentdojo/utils/tests tests/core/test_selection.py -q reported 34 passed and 2 skipped with the pinned official AgentDojo checkout. The skipped cases require Docker or the SHE dependency. Both new one-goal group regression cases failed before the fix and passed after it.

  • Regenerated the frozen dataset before and after the fix from the official AgentDojo checkout. The task JSONL, all three split lists, the manifest, and the native audit were byte-for-byte identical. The frozen splits have 57 training, 54 validation, and 406 test cases.

  • Optional native tests now check for the installed AgentDojo submodules. With SHE installed and AgentDojo absent, the affected test selection reported 125 passed and 38 skipped.

  • bash docs/build.sh and git diff --check passed. The offline hermit check/train/eval walkthrough scored 1.0 with zero errors.

  • Review fixes, in the AgentDojo environment (agentdojo@089ed468, SHE group, Docker, HERMIT_TEST_DOCKER=1): python -m pytest examples/agentdojo/utils/tests tests/methods/evosafe tests/methods/she/test_agentdyn_she.py tests/core/test_selection.py reported 311 passed, 14 skipped (AgentDyn-only suites), 0 failed. The new tests fail without the fixes.

Review

  • Tests and docs cover case selection, configuration, native verdicts, and incomplete episodes. Tests
  • Commands, defaults, and public interfaces are consistent. AgentDojo selects the official benchmark explicitly through the shared example runtime. Recipe
  • Shared examples contain no credentials or private data. The integration includes public tool schemas under the upstream MIT notice.
  • Documentation-only issue link. Inapplicable to this integration.
  • Independent review checked the published split fix and verified that native test guards skip when the dependency is absent and load when official AgentDojo is installed. The audit reproduced the fix across all four suites, including cases where a single-goal group provides the only TEST coverage for a suite. It confirmed disjoint, deterministic splits and identical frozen outputs. No actionable findings. Regression test
  • Dual review (this session and Codex, 4 rounds) found and fixed: AgentDyn runtime imported as examples.agentdyn... (an installed examples package shadowed it; AgentDyn's prepare.py regressed), the EvoSafe recipe recorded AgentDyn's provenance, malformed tool-call arguments escaped as a JSONDecodeError under official AgentDojo, AgentDyn-suite native tests failed under official AgentDojo, and a committed PR description file. No open findings.

🤖 Gener 8000 ated with Claude Code

andylinx and others added 2 commits November 19, 2026 11:01
Reuse the AgentDyn replay runtime for the official AgentDojo suites. Add frozen-case preparation, native replay regressions, matched SHE and EvoSafe recipes, and the recorded evaluation.

Co-authored-by: Codex <codex@openai.com>
…tDojo environment

- Load AgentDyn's runtime by file name, as AgentDyn's own modules do, not as
  `examples.agentdyn...`: an installed `examples` package no longer shadows it,
  and AgentDyn's prepare.py is back to main's import.
- The EvoSafe recipe names `benchmark: agentdojo`, so the experiment supervisor
  records AgentDojo and its revision, not AgentDyn's.
- The victim reports malformed tool-call arguments as a protocol error under
  official AgentDojo too (its converter raises where AgentDyn's drops them).
- AgentDyn-suite native tests skip when official AgentDojo is installed instead
  of failing with KeyError 'shopping'.
- Remove the committed PR description file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@haizhongzheng
haizhongzheng merged commit a6f39ea into main Nov 19, 2026
1 check passed
@haizhongzheng
haizhongzheng deleted the agentdojo-integration branch November 19, 2026 16:23
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

0