Skip to content

Terminal-Bench: a reward.txt the agent leaves counts when test.sh ends before writing one #702

Description

@aitianshi

Priority

P2 · Planned: limited in scope, has a way around it, or a missing feature

Evidence

  • Harbor's verifier deletes /logs/verifier/reward.txt before it runs a task's tests (_remove_reward_files).
  • benchmarks/terminal-bench/driver.py, score: reads reward.txt from what the check collected. Nothing removes it first.
  • A task whose test.sh stops early (set -euo pipefail in its setup) leaves the agent's file as the reward.

Reproduction

  1. A task whose test.sh exits 1 before it writes a reward.
  2. An agent that writes 1 to /logs/verifier/reward.txt.
  3. The unit scores 1.

Expected

As Harbor: the file is removed before the tests run; no reward written means 0.

Acceptance

  • The check removes the reward files before test.sh
  • A test: a reward left by the agent does not count

Activity

  1. self-assigned this
    on Dec 2, 2026
  2. added
    bug
    P2
    on Dec 2, 2026
  3. added theissue type on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions