Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ ClawBench's primary score is the lenient reward. `kernel_mcp_valid` records whet

### `public-web`

Compare three browser approaches on nine signed-out tasks across six sites. The tasks cover
repository facts and search, hotel rules, flight search and cart preparation, retail search,
and comparing game prices. No logins, payment details or purchases. One task,
Compare three browser approaches on 21 signed-out tasks across 17 sites. The tasks cover
repository facts and search, hotel rules and room rates, flight search on Google Flights and
three airlines, cart preparation, setting a delivery address, retail and ticket search,
restaurant availability, and comparing prices. No logins, payment details or purchases. One task,
`github-latest-release`, is a placebo: the treatment arm gets GitHub's tools, but none of them
reads a release, so a difference between control and treatment there is noise.

Expand Down Expand Up @@ -194,7 +195,7 @@ model access is implied by selecting a preset, and live model availability still
provider account. Add another MCP-capable Harbor agent by adding a file under `runners/`, rather
than duplicating the three browser arms. Credentials stay in environment variables, not presets.

The full workflow defaults to 135 trials (9 tasks × 3 arms × 5 attempts), each with a fresh
The full workflow defaults to 315 trials (21 tasks × 3 arms × 5 attempts), each with a fresh
browser. Control and treatment differ only in the injected tools, so `benchmarks/public-web.toml`
pairs them: for every task and attempt, one control and one treatment trial run back to back,
in an order that is random but balanced within each task and recorded in the run manifest.
Expand All @@ -215,8 +216,10 @@ local artifacts and Braintrust's `rawRewards` metadata. Each task's timeout and
the run manifest.

The agent calls `finalize` with its JSON answer. The verifier applies the pinned answer
schema/rules and, for the cart task, reads the final page independently and compares it to
the answer. That page check covers the route, displayed departure date, cabin, passenger count
schema/rules and, for the two tasks that leave the site in a state, reads the final page
independently: the DoorDash task must leave the requested delivery address set, and the cart
task's page is compared to the answer. The cart check covers the route, displayed departure
date, cabin, passenger count
and amount due, not the flight numbers or whether the fare is the cheapest. The verifier adds
the departure-date check to the pinned grader and reads it from the cart's itinerary fields;
a missing or mismatched date cannot pass. The rules and the grader are uploaded only
Expand All @@ -228,6 +231,16 @@ because they show a well-formed, in-range answer and nothing about whether it is
pinned rules do not verify every returned fact. Audit examples before publishing correctness
claims; this catalog is a screening set, not a held-out validation set.

For twelve tasks the best answer changes too often to pin, such as a cheapest fare or
tonight's open tables, and the verifier cannot tell whether a well-formed answer is the best
one. The report compares their passing trials with each other across every arm in it: a
trial matched the run's best answer when it gave the lowest price any passing trial gave for
that task, within the task's tolerance, or, where a task has one right answer, the answer
most passing trials gave. This catches an arm that reports a well-formed fare that is not the
cheapest. It compares trials with each other and not with the site, so one wrong outlier can
set the bar, answers can move while a run is in progress, and the rate depends on which arms
ran.

Reports show per-arm and per-task results, agent-only time (excluding setup and grading),
input/cached/output tokens, browser call counts, toolset validity, rejected calls and recorded
model cost with pricing coverage. For the paired arms they add, per task, how many pairs passed
Expand Down
88 changes: 86 additions & 2 deletions report/public-web.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ test("public-web reports agent time, tokens, graded outcomes and pricing coverag
);
// This legacy job has no task plan to classify its missing trial.
expect(report).toContain(
"| 3/4 | — | — | end state 1/? · unknown 0/? | blocked 1 · errored (SetupError) 1 | 0 |",
"| 3/4 | — | — | — | end state 1/? · unknown 0/? | blocked 1 · errored (SetupError) 1 | 0 |",
);
expect(report).toContain(
"| control | 3 | 2/3 | 1 | 0 / 0 | 0 / 0 | 0 | 30s |",
);
expect(report).toContain(
"| end state | — | blocked 1 · errored (SetupError) 1 | 30s |",
"| end state | — | — | blocked 1 · errored (SetupError) 1 | 30s |",
);
expect(report).toContain("30s | 20s");
expect(report).toContain("1000 / 200 / 100");
Expand Down Expand Up @@ -779,6 +779,90 @@ test("matched pairs compare speed over both-pass pairs and passes over discordan
expect(compared.tasks[0].agreement).toEqual({ checked: 2, differed: 1 });
});

test("answers that cannot be pinned are compared with the run's best across arms", () => {
const price = {
grading: "shape/range rules",
agreement: { path: "price", better: "lower", tolerance: 1 },
};
const times = {
grading: "shape/range rules",
agreement: { path: "times[]", same: true },
};
const fare = (value: number, reward = 1) => ({
task: "fare",
source: price,
answer: { price: value },
reward,
});
const slots = (...values: string[]) => ({
task: "tables",
source: times,
answer: { times: values },
});
const arms = [
readBenchmarkArm({
name: "control",
path: job([
fare(327),
fare(327),
// A failed trial's answer neither sets the best nor matches it.
fare(100, 0),
slots("19:00", "20:00"),
slots("19:00"),
{ task: "pinned" },
]),
}),
readBenchmarkArm({
name: "treatment",
path: job([
fare(248),
fare(248.5),
fare(327),
slots("20:00", "19:00"),
slots("20:00", "19:00"),
]),
}),
];
const [control, treatment] = summarizePublicWeb(arms);
expect(control.runBest).toMatchObject({ passes: 1, intended: 5 });
expect(treatment.runBest).toMatchObject({
passes: 4,
intended: 5,
interval: wilson(4, 5),
});
const task = (name: string) =>
control.tasks.find((entry) => entry.task === name)?.runBest;
expect(task("fare")).toMatchObject({ passes: 0, intended: 3 });
expect(task("tables")).toMatchObject({ passes: 1, intended: 2 });
expect(task("pinned")).toMatchObject({ passes: 0, intended: 0 });
// The format-only pass rate still counts every well-formed answer.
expect(control.formatOnly).toMatchObject({ passes: 4, intended: 5 });

const report = renderMarkdown(
"public-web",
arms.map(summarizeArm),
undefined,
{},
arms,
);
expect(report).toContain(
"| fare | control | shape/range rules | 2/3 (21–94%) | 0/3 |",
);
expect(report).toContain(
"| pinned | control | pinned rules | 1/1 (21–100%) | — |",
);

// Two answers given equally often leave no best answer, so the task is not scored.
const tied = summarizePublicWeb([
readBenchmarkArm({
name: "control",
path: job([slots("19:00"), slots("20:00")]),
}),
])[0];
expect(tied.runBest).toMatchObject({ passes: 0, intended: 0, unresolved: 1 });
expect(tied.tasks[0].runBest.unresolved).toBe(1);
});

test("interval and sign-test statistics", () => {
const [low, high] = wilson(5, 5) as [number, number];
expect([low.toFixed(3), high.toFixed(3)]).toEqual(["0.566", "1.000"]);
Expand Down
Loading
Loading