|
| 1 | +name: vero/optimize-browsecomp-plus-baseline |
| 2 | +description: >- |
| 3 | + Improve a deep-research agent on BrowseComp-Plus using its fixed corpus, |
| 4 | + canonical BM25 index, and semantic answer evaluator. |
| 5 | +agent_repo: target |
| 6 | +task_source: ../tasks |
| 7 | +task_manifest: ../partitions/manifest.json |
| 8 | +agent_import_path: browsecomp_plus_agent.agent:BrowseCompPlusAgent |
| 9 | +harbor_requirement: harbor[modal]==0.20.0 |
| 10 | + |
| 11 | +partition_files: |
| 12 | + development: ../partitions/development.json |
| 13 | + validation: ../partitions/validation.json |
| 14 | + test: ../partitions/test.json |
| 15 | + |
| 16 | +# Four full passes over each agent-visible partition. |
| 17 | +agent_access: |
| 18 | + - partition: development |
| 19 | + disclosure: full |
| 20 | + expose_case_resources: true |
| 21 | + total_runs: 100 |
| 22 | + total_cases: 132 |
| 23 | + - partition: validation |
| 24 | + disclosure: aggregate |
| 25 | + expose_case_resources: false |
| 26 | + min_aggregate_cases: 5 |
| 27 | + total_runs: 100 |
| 28 | + total_cases: 264 |
| 29 | + |
| 30 | +selection_partition: validation |
| 31 | +targets: |
| 32 | + - partition: test |
| 33 | + reward_key: reward |
| 34 | + baseline_reward: 0.4619 # re-pinned 0.424 / 0.470 / 0.492 (sd 0.0283); was 0.4495. See runs/BASELINES.md |
| 35 | + failure_value: 0.0 |
| 36 | + max_attempts: 1 |
| 37 | + # The held-out eval is noisy: score the selected candidate 3x per case and |
| 38 | + # average, so the final reward is comparable to the pinned baseline, which was |
| 39 | + # itself pooled over 3 rounds. Without this the candidate carries ~sqrt(3) more |
| 40 | + # standard error than the floor it is judged against. |
| 41 | + # Per-target override - search/validation keep the global n_attempts (1). |
| 42 | + n_attempts: 3 |
| 43 | + aggregate_attempts: mean |
| 44 | + |
| 45 | +evaluation_set_name: browsecomp-plus |
| 46 | +objective: |
| 47 | + selector: |
| 48 | + metric: score |
| 49 | + direction: maximize |
| 50 | +reward_mode: submit |
| 51 | +baseline_floor: false |
| 52 | +score_baseline: false |
| 53 | +rescore_top_k: 3 |
| 54 | +rescore_attempts: 1 |
| 55 | + |
| 56 | +model: fireworks_ai/deepseek-v4-flash |
| 57 | +environment_name: ${inner_env:-modal} |
| 58 | +extra_harbor_args: ["--ek", "app_name=harness-engineering-bench", "--ek", "sandbox_idle_timeout_secs=3600"] |
| 59 | +harbor_python_version: "3.12" |
| 60 | +n_attempts: 1 |
| 61 | +max_retries: 1 |
| 62 | +infrastructure_max_attempts: 3 |
| 63 | +infrastructure_retry_delay_seconds: 5 |
| 64 | +aggregate_attempts: best |
| 65 | +feedback_transcripts: true |
| 66 | +feedback_max_bytes: 16000 |
| 67 | +expose_attempt_detail: false |
| 68 | +# Unreachable: worst case is ceil(198/24) x 3600 = 32400s, every |
| 69 | +# finalize trial (66 held-out x n_attempts=3) hitting its own cap. Assumes |
| 70 | +# max_concurrency=24; recompute if that drops. |
| 71 | +timeout_seconds: 39600 |
| 72 | +# Exactly the dataset's declared [agent] timeout_sec, so vero's derived |
| 73 | +# --agent-timeout-multiplier is 1.0 and the target agent gets precisely the |
| 74 | +# clock the benchmark intends. Harbor times agent setup, environment build and |
| 75 | +# verification on separate clocks with separate multipliers, so none of them |
| 76 | +# eat into this budget and no buffer is warranted. |
| 77 | +case_timeout_seconds: 3600 |
| 78 | +task_agent_timeout_seconds: 3600 |
| 79 | +max_concurrency: 24 # 8 -> 24; see officeqa for the measured headroom argument |
| 80 | +error_rate_threshold: 0.1 |
| 81 | +# Unreachable: worst-case finalize (32400) + worst-case rescore_top_k=3 |
| 82 | +# validation rescore (32400). A verifier timeout loses the score outright. |
| 83 | +verifier_timeout_seconds: 75600 |
| 84 | +secrets: |
| 85 | + - MODAL_TOKEN_ID |
| 86 | + - MODAL_TOKEN_SECRET |
| 87 | + - WANDB_API_KEY |
| 88 | + - WANDB_BASE_URL |
| 89 | + |
| 90 | +wandb: |
| 91 | + project: harness-engineering-bench # one project for the whole suite |
| 92 | + group: browsecomp-plus # keeps the benchmark distinguishable in the shared project |
| 93 | + name: ${wandb_run:-browsecomp-plus} # per-launch label, e.g. --param wandb_run=browsecomp-plus__claude-sonnet-5 |
| 94 | + tags: [browsecomp-plus] |
| 95 | + log_traces: true |
| 96 | + |
| 97 | +inference_gateway: |
| 98 | + upstream_api_key_env: OPENAI_API_KEY |
| 99 | + upstream_base_url_env: OPENAI_BASE_URL |
| 100 | + producer: |
| 101 | + allowed_models: ["${optimizer_model:-openai/gpt-5.4}"] |
| 102 | + max_concurrency: 8 |
| 103 | + # See officeqa/baseline/build.yaml for the sizing rationale: the case budget is |
| 104 | + # the spend control, so a token cap only needs to stop a runaway. |
| 105 | + evaluation: |
| 106 | + allowed_models: [fireworks_ai/deepseek-v4-flash] |
| 107 | + max_requests: 200000 |
| 108 | + max_tokens: 2000000000 # 396 agent case-runs (132 dev + 264 validation) |
| 109 | + max_concurrency: 64 |
| 110 | + # Reserved so a search-phase overspend can never starve held-out scoring. |
| 111 | + finalization: |
| 112 | + allowed_models: [fireworks_ai/deepseek-v4-flash] |
| 113 | + max_requests: 200000 |
| 114 | + max_tokens: 2000000000 # 66 test cases x3 attempts + rescore headroom |
| 115 | + max_concurrency: 64 |
| 116 | + |
| 117 | +instruct_multifidelity: true |
| 118 | +instruct_exhaust_budget: true |
| 119 | + |
| 120 | +# The official upstream OpenAI evaluator runs inside the task container. It |
| 121 | +# uses the raw upstream credential while the editable target agent continues to |
| 122 | +# receive only the evaluation-scoped gateway credential. |
| 123 | +task_services_use_upstream: true |
| 124 | +harness_user: null |
| 125 | +# Optimizer-agent env (forwarded to the harbor claude-code agent as --ae KEY=VALUE). |
| 126 | +# Claude Code's Bash tool caps a single call at BASH_MAX_TIMEOUT_MS (default |
| 127 | +# 600000=10min), well under one inner eval, which pushed the officeqa optimizer |
| 128 | +# into --detach + background-poll + end-turn -- and a headless --print run is |
| 129 | +# never re-woken, so the search died there. Raise the cap so a whole eval fits in |
| 130 | +# one blocking call. The background-task vars are defence in depth only: they gate |
| 131 | +# *automatic* backgrounding and do NOT remove the Bash tool's run_in_background |
| 132 | +# parameter, which the model can still choose. The instruction forbids that. |
| 133 | +agent_env: |
| 134 | + # Above this benchmark's widest single eval: a full validation pass is |
| 135 | + # ceil(66/24) x 3600 = 10800s worst case. |
| 136 | + BASH_MAX_TIMEOUT_MS: "14400000" |
| 137 | + BASH_DEFAULT_TIMEOUT_MS: "14400000" # same as max: an un-timed eval must still block |
| 138 | + ENABLE_BACKGROUND_TASKS: "0" |
| 139 | + FORCE_AUTO_BACKGROUND_TASKS: "0" |
| 140 | + # Harnesses installed with `uv tool install` (mini-swe-agent, swe-agent) |
| 141 | + # default to symlinking their entry point into /usr/local/bin, which the |
| 142 | + # unprivileged optimizer user cannot write: "Failed to install executable |
| 143 | + # ... Permission denied". npm/nvm-based harnesses (claude-code, opencode) |
| 144 | + # are unaffected, so this only bites when the harness changes. |
| 145 | + UV_TOOL_BIN_DIR: "/home/agent/.local/bin" |
| 146 | + |
| 147 | +task_environment: |
| 148 | + BROWSECOMP_JUDGE_MODEL: gpt-4.1 |
0 commit comments