Proposal: EvalPort adapter to export ExpResult data as portable eval results
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
Research direction
Start with browsergym/experiments/src/browsergym/experiments/loop.py and read how ExpResult exposes summary_info and exp_args. The issue proposes a standalone adapter but does not establish whether maintainers want it in this repository or define an accepted interface, so clarify scope before starting. If approved, the proposal describes a standalone package with tests and a README; done would include converting results and validating the result set.
Written by the indexing model from the issue text.
Description
EvalPort (https://github.com/adhabnr-ux/evalport) is a small open interchange spec + SDK (evalport-sdk on PyPI) for portable LLM/agent eval datasets and results, so results produced by one framework can be validated and read by tooling that doesn't know that framework's internals.
I read through browsergym/experiments/src/browsergym/experiments/loop.py and think BrowserGym's ExpResult is a genuinely good fit, not just eval-adjacent:
get_exp_result(exp_dir)/yield_all_exp_results(savedir_base)already give you a per-task-run iterator over a benchmark run.ExpResult.summary_infois a real structured per-episode record:n_steps,cum_reward,cum_raw_reward,terminated,truncated,err_msg,stack_trace, plus flattenedstats.*(aggregatedStepInfo.stats, itself built fromAbstractBrowserTask.validate()'s(reward, done, message, info)return).ExpResult.exp_args(ExpArgs→agent_args,env_args.task_name,env_args.task_seed) gives a stable per-run identifier.
That maps cleanly onto EvalPort's per-test-case result model: one ExpResult -> one result record (id from task_name/task_seed, pass/fail from terminated + absence of err_msg, score from cum_reward, everything else as metadata).
Sketch of what a zero-footprint browsergym-openeval-adapter package would let you do:
# today
from browsergym.experiments import yield_all_exp_results
for exp_result in yield_all_exp_results("./results/my_run"):
summary = exp_result.summary_info # n_steps, cum_reward, terminated, truncated, err_msg, stats.*
args = exp_result.exp_args # env_args.task_name, env_args.task_seed
print(args.env_args.task_name, summary["cum_reward"], summary.get("terminated"))
# with an adapter
from browsergym_openeval_adapter import results_to_openeval
from openeval.validate import validate_result_set
result_set = results_to_openeval(yield_all_exp_results("./results/my_run"))
validate_result_set(result_set)
# each ExpResult becomes one OpenEval result:
# id = f"{args.env_args.task_name}_{args.env_args.task_seed}"
# passed = bool(summary.get("terminated")) and not summary.get("err_msg")
# score = summary.get("cum_reward")
# metadata = {"n_steps": ..., "cum_raw_reward": ..., "stack_trace": ..., **stats}
This would let anyone who runs BrowserGym benchmarks (MiniWoB, WebArena, WorkArena, etc.) drop their savedir_base results into any OpenEval-consuming tool without writing custom parsing against the pickle/json layout.
Happy to build this myself and open it as a PR (adapters/browsergym-openeval-adapter/, standalone installable package, depends on evalport-sdk, includes tests + README) if that's of interest — just wanted to check first given BrowserGym has no CONTRIBUTING.md spelling out a preferred process for this kind of thing.
— Sahi, independent contributor, maintainer of EvalPort
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 202
- Avg merge
- 6d 12h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ServiceNow/BrowserGym
-
[Feature Proposal]: Add experiment lifecycle callbacks to `ExpArgs` in `loop.py`Possibly taken @sriram687 claimed this today. Open
ServiceNow/BrowserGym#417 · 1 assignee ·
-
WebArena-Verified reward averages evaluator scores instead of using the benchmark's task score (partial credit for failed tasks)Possibly taken @salma2vec claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 32/100
ServiceNow/BrowserGym#412 ·
-
full_reset() gives no signal whether the environment was reset; skipped reset is indistinguishable from a successful onePossibly taken @Tharun-Varshan-S claimed this 6 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 38/100
ServiceNow/BrowserGym#406 · 3 comments ·
-
AssistantBench scorer treats a thousands separator as a decimal point: "3,080,000" scores 0 against gold 3080000, while "1,000" scores 1.0 against gold 1Possibly taken @Andiii208 claimed this 26 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
ServiceNow/BrowserGym#404 · 1 comment ·
-
`miniwob.find-greatest` can be marked successful after selecting a non-maximum cardPossibly taken @jstar0 claimed this 102 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
ServiceNow/BrowserGym#392 ·
All issues in ServiceNow/BrowserGym
Similar issues
-
backlog
Difficulty 1/5 Under an hour Newbie friendliness 91/100
EchoTools/nevr-runtime#1108 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
btclib-org/btclib-wallet#587 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Judgment-Pack/judgment-pack-spec#275 ·
Maintainers usually reply within 1 day