AgentDyn defense bundles#
EvoSafeHarness learns a system prompt and executable defense hooks around AgentDyn’s
frozen victim. The native Shopping, GitHub and DailyLife loops remain task code; all model calls use the direct
Base Agent. Designer, Criticizer and Analyzer sessions use the shared Claude or Codex Base Agent.
The example README describes installation
and case preparation. examples/agentdyn/evosafe/run_nemotron_codex.yaml names the frozen victim backend,
learning CLI, training IDs and budgets. The Codex configuration uses disjoint training and held-out test
groups; the adapter is frozen before testing.
Results#
See the No-defense and EvoSafeHarness comparison.
The Lightning comparison covers 186 fixed TEST cases and indirect injections, with runtime errors reported
separately. Both Codex and Claude recipes use the same victim and keep max_iters: 25; the measured
comparison uses Codex roles. It is for reference only: the learner ran without Hermit’s sandbox, so it is not a
reported result.
SHE evolves a system prompt, rule bank, safety memory and tool policy around the same Lightning victim, which also serves as the semantic judge. Codex proposes artifact edits, and the official SHE selector uses measurements on 57 TRAIN cases to select the best adapter. The reserved validation split is unused. The completed 20-round run selected round 9 and evaluated that adapter on 186 frozen TEST cases, with up to 25 acting iterations per case. Observed attack success fell and safe task utility increased, while clean task success declined. See SHE execution and verification for the protocol and completed-case denominators. Like the EvoSafe comparison, this run is for reference only: its learner ran without Hermit’s sandbox.