Repository navigation
Integrate AgentDojo with shared replay and SHE/EvoSafe recipes - #110
Merged
Merged
Conversation
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>
4 of 5 tasks
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.
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,
directBase Agent, episode deadlines, usage accounting, and Docker defense hooks. AgentDyn remains the default for the shared runtime. AgentDojo guideAdd 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
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 -qreported 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.shandgit diff --checkpassed. The offlinehermit check/train/evalwalkthrough 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.pyreported 311 passed, 14 skipped (AgentDyn-only suites), 0 failed. The new tests fail without the fixes.Review
examples.agentdyn...(an installedexamplespackage 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