Skip to content

Add experimental-plugins/ares-openeval-adapter - #578

Closed
adhabnr-ux wants to merge 1 commit into
IBM:mainfrom
adhabnr-ux:add-ares-openeval-adapter
Closed

adhabnr-ux wants to merge 1 commit into
IBM:mainfrom
adhabnr-ux:add-ares-openeval-adapter

Conversation

@adhabnr-ux

Copy link
Copy Markdown
Contributor

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 and AttackEval output to and from EvalPort, a small open interchange format for portable eval datasets and results.

  • Grounded in ARES's real current shapes rather than the issue's illustrative sketch: 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 (dict or dataclass access) 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 alike.
  • ARES's judgment mechanism (keyword match / LLM judge / trained classifier — evaluator-specific) is represented as a single custom grader (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.
  • passed reflects target-model robustness (attack did not succeed), with ARES's "Unknown" tri-state preserved separately in metadata rather than collapsed away.

Structured to match experimental-plugins/ares-contextual-jailbreak's existing layout (setup.py stub, pyproject.toml, requirements.txt with -e ., src/ package, tests/).

Verification

13 passed

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 importing ares itself (which pulls in torch and 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

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
Copilot AI lite review requested due to automatic review settings September 2, 2026 04:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@adhabnr-ux

Copy link
Copy Markdown
Contributor Author

Closing this in favor of #579 — the DCO check correctly caught a missing Signed-off-by trailer on the one commit here, and since it can't be rewritten in place from this tooling, I deleted and recreated the branch with the sign-off included rather than leave it blocked. Same content, verification, and description; #579 is the one to review.

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.

Feature request: ares-openeval-adapter — portable export of ARES goals/results to a shared eval interchange format

2 participants