Repository navigation
Add experimental-plugins/ares-openeval-adapter - #578
Closed
adhabnr-ux wants to merge 1 commit into
Closed
adhabnr-ux wants to merge 1 commit into
adhabnr-ux wants to merge 1 commit into
Conversation
Adds a standalone, optional plugin converting ARES attack goals and AttackEval output to/from EvalPort (https://github.com/adhabnr-ux/evalport), a small open interchange format for portable eval datasets and results. Scoped in issue IBM#563 (maintainer @stefano81 confirmed experimental-plugins/ as the right home). Grounded in ARES's real current shapes, not the illustrative sketch from the issue: ares.utils.ConnectorResponse/Status (src/ares/utils/__init__.py), AttackEval.validate_evaluation()/ interpret_prediction() (src/ares/evals/attack_eval.py), and AttackGoal.run()'s goal-dict shape (src/ares/goals/attack_goal.py, file_attack_goals.py). Every accessor is duck-typed against these shapes rather than importing `ares` directly, so the plugin has no hard `ares` dependency and works against real ARES objects or plain dicts of the same shape (e.g. loaded back from a saved goals/results JSON file) alike. ARES's judgment mechanism (keyword match / LLM judge / trained classifier, evaluator-specific) is represented as a single `custom` grader per the spec's own custom-grader mechanism, not force-fit into one of EvalPort's standard grader types. 13/13 tests passing, validated against evalport-sdk's real validate_suite()/validate_result_set(). Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RtocdH3tKifGdkiCZxxV3F
Contributor
Author
|
Closing this in favor of #579 — the DCO check correctly caught a missing |
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.
Resolves #563 (thanks for the steer there, @stefano81).
What this adds
A standalone, optional plugin at
experimental-plugins/ares-openeval-adapter/converting ARES attack goals andAttackEvaloutput to and from EvalPort, a small open interchange format for portable eval datasets and results.ares.utils.ConnectorResponse/Status(src/ares/utils/__init__.py),AttackEval.validate_evaluation()/interpret_prediction()(src/ares/evals/attack_eval.py), andAttackGoal.run()'s goal-dict shape (src/ares/goals/attack_goal.py,file_attack_goals.py).aresdirectly, so the plugin has no hardaresdependency and works against real ARES objects or plain dicts of the same shape alike.customgrader (gr_ares_attack_eval,params.handler = "ares:attack_eval") per the spec's own custom-grader mechanism, rather than force-fit into one of EvalPort's standard grader types.passedreflects target-model robustness (attack did not succeed), with ARES's"Unknown"tri-state preserved separately inmetadatarather than collapsed away.Structured to match
experimental-plugins/ares-contextual-jailbreak's existing layout (setup.pystub,pyproject.toml,requirements.txtwith-e .,src/package,tests/).Verification
against a fresh install, with
openeval.validate.validate_suite()/validate_result_set()both passing on everything the plugin produces. Fixtures mirror ARES's real dataclass/dict shapes (ConnectorResponse,AttackGoal.run()output) directly rather than importingaresitself (which pulls intorchand isn't yet on PyPI) — same approach the plugin's own runtime code takes.Background
Built and tested first, then initially shipped as a standalone package in EvalPort's own repo while I worked out write access here (see the issue thread) — same content, now opened directly as the PR you confirmed you'd review.
— Sahi, independent contributor (not affiliated with IBM)
🤖 Generated with Claude Code