Skip to content

--allow-unmetered turns off the budget check #181

Description

@MobinaSafarirad

So I was running evals with a Codex runner and passed --budget-usd 5 --allow-unmetered, thinking the budget would still hold things back. It didn't. The thing just ran every case × trial without stopping and printed Reported cost: $0.0000 at the end. Kind of a problem if someone does this against a paid API.

The budget logic looks at reported_cost, which only goes up when the runner returns a dollar amount:

reported_cost += float(cost or 0)
But with --allow-unmetered, _parse_response always returns cost = None. So reported_cost stays at zero, remaining never hits zero, and this check:

remaining = args.budget_usd - reported_cost
if remaining <= 0:
return 2

never fires. The flag basically makes --budget-usd decorative.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions