Skip to content

fix(experiments): read raw_reward from task_info - #428

Open
JYunth wants to merge 1 commit into
ServiceNow:mainfrom
JYunth:fix/raw-reward-task-info
Open

JYunth wants to merge 1 commit into
ServiceNow:mainfrom
JYunth:fix/raw-reward-task-info

Conversation

@JYunth

@JYunth JYunth commented Nov 10, 2026

Copy link
Copy Markdown

StepInfo.from_step looked up RAW_REWARD_GLOBAL at the top level of the step info, but BrowserEnv puts task info under info["task_info"]. So raw_reward was always None and summary_info["cum_raw_reward"] was always 0, even on MiniWoB tasks that report a raw reward.

One-line fix, plus two asserts in test_run_exp (raw_reward == 1 and cum_raw_reward == 1 on miniwob.click-test). They fail on main and pass here.

StepInfo.from_step looked up RAW_REWARD_GLOBAL at the top level of the step
info, but BrowserEnv puts task info under info["task_info"]. raw_reward was
always None and summary_info["cum_raw_reward"] was always 0, even for MiniWoB
tasks that report a raw reward.

This branch has not been deployed

No deployments
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.

1 participant