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

Skip to content

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

Closed
andylinx wants to merge 1 commit into
Infini-AI-Lab:mainfrom
andylinx:feat/agentdojo-integration
Closed

andylinx wants to merge 1 commit into
Infini-AI-Lab:mainfrom
andylinx:feat/agentdojo-integration

Conversation

@andylinx
Copy link
Copy Markdown
Contributor

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

  • 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

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>
@haizhongzheng
Copy link
Copy Markdown
Member

Thanks @andylinx! Review found a few fixes, and this branch doesn't allow maintainer edits, so we opened #110 with your commit unchanged plus one fix commit on top. You're credited as co-author of the squash commit. Closing this in favor of #110.

🤖 Generated with Claude Code

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