Harden CybORG agent validation#106
Merged
Muhtasham merged 1 commit intoJun 23, 2026
Merged
Conversation
2494fc4 to
6dafcbf
Compare
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.
Summary
MyAgentduring validation using the same constructor fallbacks as the runtimeWhy
A real OpenAI smoke run generated a CybORG agent that passed validation but crashed during evaluation because its constructor called
RandomAgent.__init__(seed=...). The arena isolated the crash and scored it correctly, but validation should catch this before the round starts.Verification
uv run pytest -q tests/arenas/test_cyborg.py tests/arenas/test_scml.py-> 14 passeduv run ruff check codeclash/arenas/cyborg/cyborg.py tests/arenas/test_cyborg.py-> passeduv run ruff check .-> passeduv run pytest -q-> 187 passeduv run python main.py configs/examples/CybORG__dummy__r1__s2.yaml -o /tmp/codeclash-cyborg-dummy.pUV7lx-> passed full Docker smoke, per-episode results hadstatus: okuv run python main.py configs/examples/SCML__dummy__r1__s2.yaml -o /tmp/codeclash-scml-dummy.WT6xqD-> passed full Docker smoke, per-sim score details writtentournament.rounds=5,sims_per_round=5,n_steps=8, output/tmp/codeclash-scml-long.CZnbSS-> passed 6 competition executions with 30 total SCML worldstournament.rounds=5,episodes_per_round=5,steps_per_episode=10, output/tmp/codeclash-cyborg-long.ZgGyM7-> passed 6 competition executions with 30 total CybORG episodes, all visible episode records hadstatus: okNote: I also ran short real OpenAI-backed smoke loops for SCML and CybORG to verify the coding-agent path. Those are integration smoke evidence only, not benchmark results.
CI note:
pre-commitandtestpass on this PR.markdown-link-checkcurrently fails on an unrelated pre-existing 404 incodeclash/viewer/_STATIC_README.md.