`miniwob.find-greatest` can be marked successful after selecting a non-maximum card
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, python
- Lĩnh vực
- ai, testing-qa
Hướng nghiên cứu
Start with the attached source/browsergym_miniwob_base.py and trace how RAW_REWARD_GLOBAL becomes the reported reward and success value; compare that with the wrong-card branch in source/find-greatest.html. Check the linked pull request #396 and any relevant tests before choosing a fix. Done means submitting a non-maximum card no longer reports success, while selecting the greatest card still does.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
There appears to be a success-threshold bug in the BrowserGym MiniWoB wrapper for miniwob.find-greatest.
The task text says:
Find and pick the card with the greatest number, then press submit.
However, a run can be marked successful after selecting a card that is not the greatest card.
In the attached concrete run, the page had cards with values 4, 7, and 2. The agent selected the card with value 2 and submitted. The final DOM still shows another card with value 7, so this should not satisfy the task. The native evaluator nevertheless reports success: true.
Why this happens
In MiniWoB++ find-greatest.html, selecting the correct card ends with reward 1.0, but selecting the wrong card and submitting still ends the episode with a positive partial reward:
if(userIndex === expectedIndex.toString()) core.endEpisode(1.0, true);
else core.endEpisode(0.1, true);
In BrowserGym's MiniWoB wrapper, AbstractMiniwobTask.validate() converts any positive raw reward into a full success reward:
reward = float(info["RAW_REWARD_GLOBAL"] > 0) # TODO: shouldn't it be 0.5?
As a result, the wrong-card partial reward 0.1 becomes reward: 1.0 and success: true in the run output.
Actual behavior in the attached run
The attached evidence/native_evaluator_output_agent_a.json shows:
"RAW_REWARD_GLOBAL": 0.1,
"reward": 1.0,
"success": true
It also shows the agent actions:
"action": "click('17')"
"action": "click('20')"
The attached final DOM snapshot evidence/final_dom_step_002_agent_a.html shows that bid 17 is the revealed selected card, with value 2:
<div class="card" data-index="2" ... bid="17">
<span class="card-value" ...>2</span>
</div>
The same DOM line also shows another card with value 7:
<div class="card hidden" data-index="1" ... bid="15">
<span class="card-value" ...>7</span>
</div>
So the submitted card was not the greatest card, but the run was still reported as successful.
Expected behavior
For find-greatest, BrowserGym should only report success when the selected card is actually the greatest card.
Possible fixes:
- change the MiniWoB success threshold so partial positive rewards such as
0.1do not count as success, for exampleRAW_REWARD_GLOBAL > 0.5orRAW_REWARD_GLOBAL >= 1.0; or - add task-specific handling where partial rewards are not treated as benchmark success; or
- if the intended fix belongs in MiniWoB++, make wrong-card submission produce a non-success raw reward rather than
0.1.
The issue seems most directly triggered by BrowserGym treating any RAW_REWARD_GLOBAL > 0 as success.
Attached evidence package
source/browsergym_miniwob_base.py: BrowserGym MiniWoB wrapper showingreward = float(info["RAW_REWARD_GLOBAL"] > 0).source/find-greatest.html: MiniWoB++ task source showing the task text and wrong-cardcore.endEpisode(0.1, true)branch.evidence/native_evaluator_output_agent_a.json: run output showingRAW_REWARD_GLOBAL=0.1,reward=1.0, andsuccess=true.evidence/final_dom_step_002_agent_a.html: final DOM showing selected card value2while another card value is7.evidence/final_screenshot_step_002_agent_a.png: final screenshot for the same run.evidence/validation_final_agent_a.jsonandevidence/task_info_final_agent_a.json: final validator/task state.evidence/miniwob_scores_flat.csv: score table; row 170 contains thisminiwob.find-greatest / Agent Arun.
- Ngôn ngữ chính
- Python
- Star
- 1.4k
- Fork
- 202
- Merge trung bình
- 6 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ServiceNow/BrowserGym
-
[Feature Proposal]: Add experiment lifecycle callbacks to `ExpArgs` in `loop.py`Có thể đã có người làm @sriram687 đã nhận 1 ngày trước. Đang mở
ServiceNow/BrowserGym#417 · 1 người được giao ·
-
WebArena-Verified reward averages evaluator scores instead of using the benchmark's task score (partial credit for failed tasks)Có thể đã có người làm @salma2vec đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 32/100
ServiceNow/BrowserGym#412 ·
-
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 1Có thể đã có người làm @Andiii208 đã nhận 27 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
ServiceNow/BrowserGym#404 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
ServiceNow/BrowserGym#401 ·
-
Issues with the coordinates action spaceCó thể đã có người làm @FazeelUsmani đã nhận 184 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ServiceNow/BrowserGym#375 · 2 bình luận ·
Tất cả issue của ServiceNow/BrowserGym
Issue tương tự
-
area/profiles comp/cli P3 type/feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
NousResearch/hermes-agent#146372 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] OpenAI-compatible embedding model alias breaks embedder constructionCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[oblt-aw][autodoc] Document obs-aw-automerge contract and fix automerge doc inconsistenciesCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
GeoSeries scale and skew tests fail with pytest 9.2.0Có thể đã có người làm @jiayuasu đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
admission-deferred priority: medium status: ready work-class: scoped
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
melodic-software/claude-code-plugins#10887 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày