Repository navigation
Description
Is your feature request related to a problem? If so, please describe.
ARES produces rich per-test-case data — goals loaded via FileAttackGoals/HFAttackGoals, per-prompt ConnectorResponse objects, and evaluator output (prediction/label/attack_successful) from AttackEval.evaluate() — but that data only exists in ARES's own shape. There's currently no portable way to move ARES goals/results into other eval or observability tooling, or to line up an ARES robustness run against results produced by a different framework, without a one-off converter per project.
Describe your proposed solution
Add a plugin following ARES's existing ares-<name> convention (same pattern as ares-litellm, ares-garak, etc. under plugins/, discoverable via the find_external() plugin mechanism in src/ares/utils/__init__.py): ares-openeval-adapter.
It would convert to/from EvalPort, a small open JSON interchange format for portable eval datasets (Suite: test cases + graders) and results (ResultSet: per-test-case results + grader results) — spec at https://github.com/adhabnr-ux/evalport/blob/main/spec/SPEC.md. It already has adapters for ~36 other eval/observability frameworks.
Rough sketch, based on the actual shapes in src/ares/goals/attack_goal.py, src/ares/utils/__init__.py (ConnectorResponse, Status), and src/ares/evals/attack_eval.py:
# ares_openeval_adapter/adapter.py
from ares.utils import ConnectorResponse, Status
from openeval import Suite, ResultSet, TestCase, TestCaseResult, GraderResult
def to_openeval_suite(goals: list[dict]) -> Suite:
"""goals: output of AttackGoal.run(), e.g. FileAttackGoals/HFAttackGoals"""
return Suite(
test_cases=[
TestCase(id=str(i), input=g["goal"], metadata={k: v for k, v in g.items() if k != "goal"})
for i, g in enumerate(goals)
],
graders=[{"name": "ares-attack-eval", "kind": "external"}],
)
def to_openeval_resultset(eval_results: list[dict]) -> ResultSet:
"""eval_results: output of AttackEval.evaluate(); each dict has 'response' (ConnectorResponse),
'label', 'prediction', 'attack_successful'"""
results = []
for i, r in enumerate(eval_results):
resp: ConnectorResponse = r["response"]
results.append(TestCaseResult(
test_case_id=str(i),
output=resp.response,
error=resp.error_message if resp.status == Status.ERROR else None,
grader_results=[GraderResult(
name="ares-attack-eval",
score=r["prediction"],
label=r["attack_successful"], # "Yes" / "No" / "Unknown"
)],
))
return ResultSet(results=results)
def from_openeval(suite: Suite) -> list[dict]:
"""EvalPort Suite -> ARES goals-shaped list[dict], usable as FileAttackGoals input"""
return [{"goal": tc.input, **tc.metadata} for tc in suite.test_cases](The openeval.* type names are illustrative, not final — happy to adjust to whatever shape maintainers here think fits best.)
Describe alternatives you have considered
- Status quo: everyone writes their own one-off JSON converter per project — brittle, no shared schema.
- Put the conversion logic in the EvalPort repo instead of as an ARES plugin — possible, but ARES's own
ares-<name>plugin pattern andfind_external()discovery mechanism seem like a more natural, ARES-idiomatic home for it.
Additional context
EvalPort is a young, independent open-source project (not affiliated with IBM) — this is a genuine question about whether ARES maintainers would want this upstream (e.g. under plugins/) or would rather it live as an out-of-tree community plugin discovered via the existing ares-* convention. Happy to put together a draft PR either way. No test results, adoption numbers, or maintainer opinions are being claimed here — just proposing the integration and looking for feedback on fit.
Activity
stefano81 commentedon Aug 28, 2026
Hi @adhabnr-ux thank you for the request/comment!
It is indeed interesting, and I would suggest that you could open a draft PR for this under the
experimental_pluginsfolder.This is meant to store community contributions not directly maintained by our team.
adhabnr-ux commentedon Aug 31, 2026
Thanks, @stefano81 — appreciate the steer, and happy to go the
experimental-pluginsroute.To confirm the plan: I'll open a draft PR adding
ares-openeval-adapterunderexperimental-plugins/, following the same layout as the existingexperimental-plugins/ares-contextual-jailbreak(and theplugins/new-plugin-templatescaffold —setup.py,src/,tests/) so it's discoverable viafind_external()the same way. Functionally it'll cover the two directions from the sketch in the issue: goals (FileAttackGoals/HFAttackGoals-shaped input) → an EvalPortSuite, andAttackEval.evaluate()output (ConnectorResponse,prediction/label/attack_successful) → an EvalPortResultSet, plus the reverseSuite→ ARES-goals-shaped import — grounded in the actual current shapes insrc/ares/utils/__init__.py,src/ares/goals/attack_goal.py, andsrc/ares/evals/attack_eval.py, not the illustrative names from the issue.It'll start as a draft specifically because I want maintainer eyes on naming/shape before it's PR-ready — I'll flag it here once it's up rather than assume the sketch is final. I didn't see a
CONTRIBUTING.mdwith a CLA/DCO requirement in the repo, but I'll watch for a sign-off check on the PR itself and take care of it if one applies.No existing code yet on my end — this comment is just confirming scope before I start.
Add ares-openeval-adapter
Add ares-openeval-adapter (#28)
adhabnr-ux commentedon Aug 31, 2026
Update: built and tested
ares-openeval-adapterend to end, grounded in ARES's actual current shapes (ares.utils.ConnectorResponse/Status,ares.evals.attack_eval.AttackEval.validate_evaluation()/interpret_prediction(),ares.goals.attack_goal.AttackGoal/FileAttackGoals) rather than the illustrative sketch from the issue description —to_openeval_suite(),to_openeval_resultset(), andfrom_openeval(), with 13/13 tests passing, including validation against EvalPort's realopeneval.validate.validate_suite()/validate_result_set().I tried opening the draft PR directly against
IBM/aresunderexperimental-plugins/ares-openeval-adapter/as discussed, but I don't have write access to this repo (expected for an outside contributor without collaborator access —create_branchfails with a plain 404/permission error, no fork-based PR flow available to me here). So rather than sit on finished, tested code, I've shipped it as a standalone package in EvalPort's own repo instead, packaged identically to how it's meant to land here: https://github.com/adhabnr-ux/evalport/tree/main/adapters/ares-openeval-adapterHappy to open a proper PR directly on
IBM/ares(fork-based, or if you're able to add me as a contributor) if that's still wanted — the code is ready to move as-is, just the target repo changes. Otherwise feel free to pull it in as reference/copy it over yourselves. Let me know which you'd prefer.stefano81 commentedon Aug 31, 2026
Hi @adhabnr-ux please go ahead with the PR, happy to move the conversation there.
adhabnr-ux commentedon Sep 1, 2026
Thanks @stefano81 — before assuming that means access is sorted, I just re-tested directly:
create_branchagainstIBM/ares(main) still 404s for me, same as before, so I still don't have write access to push a branch here directly.Two ways to unblock, whichever you prefer:
IBM/aresso I can push a branch and open the PR myself, orIBM/ares:main), that doesn't need collaborator access and I'm happy to do that instead — just say the word and I'll open it that way.Or if "go ahead with the PR" actually meant continuing the conversation on the EvalPort-side package rather than opening something directly against
IBM/ares, that's fine too — the finished, tested package (13/13 tests passing) is already sitting at https://github.com/adhabnr-ux/evalport/tree/main/adapters/ares-openeval-adapter and isn't going anywhere.Just let me know which of the three you meant and I'll move on it right away.
Add experimental-plugins/ares-openeval-adapter
adhabnr-ux commentedon Sep 2, 2026
Went with option 2 (fork-based PR) — that's now open: #578
Same tested code as
adhabnr-ux/evalport/adapters/ares-openeval-adapter/, restructured to matchares-contextual-jailbreak's layout (setup.py,pyproject.toml,requirements.txt) and moved toexperimental-plugins/ares-openeval-adapter/. Thanks for bearing with the access back-and-forth — happy to make any changes on the PR itself.Add experimental-plugins/ares-openeval-adapter
adhabnr-ux commentedon Sep 2, 2026
Quick correction: the PR I linked above (#578) had a DCO sign-off issue on its one commit, so I've replaced it with #579 (same content, DCO now green). That's the one to review — thanks again for the pointer to
experimental-plugins/.Add experimental-plugins/ares-openeval-adapter