Skip to content

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

Description

@adhabnr-ux

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 and find_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

  1. self-assigned this
    on Aug 28, 2026
  2. stefano81 commented on Aug 28, 2026

    @stefano81
    Member

    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_plugins folder.
    This is meant to store community contributions not directly maintained by our team.

  3. adhabnr-ux commented on Aug 31, 2026

    @adhabnr-ux
    ContributorAuthor

    Thanks, @stefano81 — appreciate the steer, and happy to go the experimental-plugins route.

    To confirm the plan: I'll open a draft PR adding ares-openeval-adapter under experimental-plugins/, following the same layout as the existing experimental-plugins/ares-contextual-jailbreak (and the plugins/new-plugin-template scaffold — setup.py, src/, tests/) so it's discoverable via find_external() the same way. Functionally it'll cover the two directions from the sketch in the issue: goals (FileAttackGoals/HFAttackGoals-shaped input) → an EvalPort Suite, and AttackEval.evaluate() output (ConnectorResponse, prediction/label/attack_successful) → an EvalPort ResultSet, plus the reverse Suite → ARES-goals-shaped import — grounded in the actual current shapes in src/ares/utils/__init__.py, src/ares/goals/attack_goal.py, and src/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.md with 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.

  4. adhabnr-ux commented on Aug 31, 2026

    @adhabnr-ux
    ContributorAuthor

    Update: built and tested ares-openeval-adapter end 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(), and from_openeval(), with 13/13 tests passing, including validation against EvalPort's real openeval.validate.validate_suite()/validate_result_set().

    I tried opening the draft PR directly against IBM/ares under experimental-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_branch fails 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-adapter

    Happy 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.

  5. stefano81 commented on Aug 31, 2026

    @stefano81
    Member

    Hi @adhabnr-ux please go ahead with the PR, happy to move the conversation there.

  6. adhabnr-ux commented on Sep 1, 2026

    @adhabnr-ux
    ContributorAuthor

    Thanks @stefano81 — before assuming that means access is sorted, I just re-tested directly: create_branch against IBM/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:

    1. Add me as a contributor/collaborator on IBM/ares so I can push a branch and open the PR myself, or
    2. If you meant "go ahead" as in continue via a fork-based PR (fork → branch → PR from fork into IBM/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.

  7. adhabnr-ux commented on Sep 2, 2026

    @adhabnr-ux
    ContributorAuthor

    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 match ares-contextual-jailbreak's layout (setup.py, pyproject.toml, requirements.txt) and moved to experimental-plugins/ares-openeval-adapter/. Thanks for bearing with the access back-and-forth — happy to make any changes on the PR itself.

  8. adhabnr-ux commented on Sep 2, 2026

    @adhabnr-ux
    ContributorAuthor

    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/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions