diff --git a/apps/evals/__tests__/leaderboard-outcomes.test.ts b/apps/evals/__tests__/leaderboard-outcomes.test.ts
index f66448b9..e0e73c5e 100644
--- a/apps/evals/__tests__/leaderboard-outcomes.test.ts
+++ b/apps/evals/__tests__/leaderboard-outcomes.test.ts
@@ -103,7 +103,11 @@ test("retains visible outcomes when a later configuration has incomplete grading
expect(html).toContain("73 ungraded · zero credit");
expect(html).toContain("38.3%");
expect(html).not.toMatch(/>\s*—\s* {
diff --git a/apps/evals/__tests__/leaderboard-state.test.ts b/apps/evals/__tests__/leaderboard-state.test.ts
new file mode 100644
index 00000000..505b4bcf
--- /dev/null
+++ b/apps/evals/__tests__/leaderboard-state.test.ts
@@ -0,0 +1,128 @@
+import { expect, test } from "vitest";
+import { configurationLeaderboardRows, type LeaderboardModelRow } from "../src/canonical/selectors";
+import {
+ leaderboardHash,
+ readLeaderboardState,
+ visibleLeaderboardRows,
+ providerOverviewRows,
+} from "../src/lib/leaderboard-state";
+import { modelRowHref, rowMetricValue } from "../src/components/leaderboard-results";
+
+const rows = configurationLeaderboardRows();
+
+test("a shared link round-trips every desktop/mobile exploration control", () => {
+ const state = {
+ ...readLeaderboardState(""),
+ search: "Grok & Astra",
+ campaign: "all",
+ grading: "incomplete" as const,
+ metric: "cost" as const,
+ direction: "asc" as const,
+ group: "models" as const,
+ view: "efficiency" as const,
+ page: 3,
+ category: "Predictions" as const,
+ efficiency: "cost" as const,
+ overview: true,
+ };
+ expect(readLeaderboardState(leaderboardHash(state))).toEqual(state);
+});
+
+test("time can be displayed independently while sorting by cost", () => {
+ const state = readLeaderboardState("#/leaderboard?metric=cost&efficiency=time");
+ expect(state.direction).toBe("asc");
+ expect(state.efficiency).toBe("time");
+ expect(readLeaderboardState(leaderboardHash(state))).toEqual(state);
+});
+
+test.each(["overall", "Spot", "Perps", "Predictions", "time", "cost"] as const)(
+ "links preserve either sort direction and independent columns for %s",
+ (metric) => {
+ for (const direction of ["asc", "desc"] as const) {
+ const state = {
+ ...readLeaderboardState(""),
+ metric,
+ direction,
+ category: "Spot" as const,
+ efficiency: "time" as const,
+ };
+ expect(readLeaderboardState(leaderboardHash(state))).toEqual(state);
+ }
+ },
+);
+
+test.each(["Perps", "Predictions"] as const)(
+ "a direct %s sort displays that category on tablet",
+ (metric) => {
+ expect(readLeaderboardState(`#/leaderboard?metric=${metric}`).category).toBe(metric);
+ },
+);
+
+test.each(["-1", "NaN", "Infinity", "1.5", "9007199254740992"])(
+ "invalid overview page %s recovers to the first page",
+ (page) => {
+ expect(readLeaderboardState(`#/leaderboard?page=${page}`).page).toBe(0);
+ },
+);
+
+test("incomplete grading filters apply after latest-setting selection", () => {
+ const shown = visibleLeaderboardRows(
+ rows,
+ readLeaderboardState("#/leaderboard?search=Astra&grading=incomplete"),
+ );
+ expect(shown).toHaveLength(1);
+ expect(shown[0]?.runs.Spot?.runId).toBe("recovery-astra-xhigh-spot-1");
+});
+
+test.each(["asc", "desc"] as const)(
+ "missing cost remains after measured zero cost when sorting %s",
+ (direction) => {
+ const shown = visibleLeaderboardRows(
+ rows,
+ readLeaderboardState(`#/leaderboard?metric=cost&direction=${direction}`),
+ );
+ const firstMissing = shown.findIndex((row) => rowMetricValue(row, "cost") === null);
+ expect(firstMissing).toBeGreaterThan(0);
+ expect(shown.slice(firstMissing).every((row) => rowMetricValue(row, "cost") === null)).toBe(
+ true,
+ );
+ expect(shown.some((row) => rowMetricValue(row, "cost") === 0)).toBe(true);
+ },
+);
+
+test("model navigation retains the clicked setting's real run, including non-Spot rows", () => {
+ const row = rows.find((entry) => entry.runs.Spot?.runId === "astra-low-spot-1")!;
+ expect(modelRowHref(row)).toBe("#/models/astra?run=astra-low-spot-1");
+ const perpsOnly: LeaderboardModelRow = { ...row, runs: { Perps: row.runs.Perps } };
+ expect(modelRowHref(perpsOnly)).toBe("#/models/astra?run=astra-low-perps-1");
+});
+
+test("the overview includes each provider once without changing ranked settings", () => {
+ const shown = visibleLeaderboardRows(rows, readLeaderboardState(""));
+ const originalOrder = shown.map((row) => row.rowId);
+ const overview = providerOverviewRows(shown);
+ expect(overview.map((row) => row.model.provider)).toEqual([
+ "OpenAI",
+ "xAI",
+ "Muse",
+ "Anthropic",
+ "Google",
+ "Devin",
+ ]);
+ for (const row of overview)
+ expect(row).toBe(shown.find((entry) => entry.model.provider === row.model.provider));
+ expect(shown.map((row) => row.rowId)).toEqual(originalOrder);
+ expect(shown).toHaveLength(45);
+});
+
+test("provider representatives respect filtering and the active sort", () => {
+ const shown = visibleLeaderboardRows(
+ rows,
+ readLeaderboardState("#/leaderboard?search=Astra&metric=cost"),
+ );
+ const overview = providerOverviewRows(shown);
+ expect(overview).toHaveLength(1);
+ expect(overview[0]).toBe(shown[0]);
+ expect(overview[0]?.runs.Spot?.runId).toBe("astra-low-spot-1");
+ expect(providerOverviewRows([])).toEqual([]);
+});
diff --git a/apps/evals/__tests__/model-profile.test.ts b/apps/evals/__tests__/model-profile.test.ts
index 01f7d023..962ca217 100644
--- a/apps/evals/__tests__/model-profile.test.ts
+++ b/apps/evals/__tests__/model-profile.test.ts
@@ -8,6 +8,27 @@ import {
} from "../src/canonical/selectors";
import { ModelSettingResults } from "../src/components/model-setting-results";
import { ModelProfilePage } from "../src/pages/model-profile";
+import { selectProfileSetting } from "../src/lib/model-profile-selection";
+
+test("profile selection follows an exact run's whole setting, including historical campaigns", () => {
+ const high = selectProfileSetting("astra", "astra-high-perps-1")!;
+ expect(high.runs.Spot?.runId).toBe("astra-high-spot-1");
+ expect(high.overall).toBeCloseTo(0.866096866);
+ const historical = selectProfileSetting("astra", "astra-max-predictions-1")!;
+ expect(
+ Object.values(historical.runs).every((run) => run.campaignId === historical.campaignId),
+ ).toBe(true);
+ expect(historical.runs.Spot?.runId).toBe("astra-max-spot-1");
+ expect(historical.campaignId).not.toBe(selectProfileSetting("astra")?.campaignId);
+});
+
+test("unavailable and foreign runs fall back to the same model's latest setting", () => {
+ const latest = selectProfileSetting("astra")!;
+ expect(selectProfileSetting("astra", "missing-run")).toEqual(latest);
+ expect(selectProfileSetting("astra", "grok47-low-spot-1")).toEqual(latest);
+ expect(selectProfileSetting("astra", undefined, [])).toBeUndefined();
+ expect(latest.overall).toBeLessThan(selectProfileSetting("astra", "astra-high-spot-1")!.overall!);
+});
test("expanded run details appear immediately after their history row", () => {
const runId = "recovery-astra-max-perps-1";
@@ -134,8 +155,10 @@ test("model profiles retain earlier runs and source downloads below the setting
);
expect(html).toContain("Configuration fingerprints & original downloads");
expect(html).not.toContain("Latest recorded run per family");
- expect(html).toContain("Latest recorded max reasoning");
- expect(html).toContain("model-profile-metrics");
+ expect(html).toContain("Latest recorded setting");
+ expect(html).toContain("mp-stat-strip");
+ expect(html).toContain("Success by category");
+ expect(html).not.toContain("model-profile-metrics");
expect(html).toContain("How to read these results");
expect(html.match(/Full campaign notes & sources/gu)).toHaveLength(2);
expect(html).toContain("209/210 graded");
diff --git a/apps/evals/__tests__/transaction-evals.test.ts b/apps/evals/__tests__/transaction-evals.test.ts
index 2886fc56..644e3d82 100644
--- a/apps/evals/__tests__/transaction-evals.test.ts
+++ b/apps/evals/__tests__/transaction-evals.test.ts
@@ -1,7 +1,12 @@
import { describe, expect, test } from "vitest";
+import { createElement } from "react";
+import { renderToStaticMarkup } from "react-dom/server";
import { parse } from "yaml";
import { configurationLeaderboardRows } from "../src/canonical/selectors";
import { TRANSACTION_TASKS } from "../src/lib/transaction-evals";
+import { spotTransactionsHref, TransactionResult } from "../src/components/transaction-results";
+import { TaskExplorerPage } from "../src/pages/task-explorer";
+import { parseRoute } from "../src/router";
import {
TRANSACTION_RUNS,
transactionRunForRow,
@@ -24,6 +29,31 @@ interface TaskFile {
const grok47Low = TRANSACTION_RUNS.find((run) => run.runId === "grok-4.7-low-20260925-v4")!;
+test.each(TRANSACTION_RUNS)("transaction links retain the exact setting for $runId", (run) => {
+ const route = parseRoute(spotTransactionsHref(run).slice(1));
+ expect(route.path).toBe("/tasks");
+ expect(route.query.get("run")).toBe(run.runId);
+ expect(route.query.get("model")).toBe(run.canonicalModelId);
+ const html = renderToStaticMarkup(
+ createElement(TaskExplorerPage, {
+ initialFamily: "Spot",
+ initialCaseId: TRANSACTION_TASKS[0]!.id,
+ initialModelId: run.canonicalModelId,
+ initialRunId: run.runId,
+ initialView: "run",
+ }),
+ );
+ expect(html).toContain(`${run.runId}`);
+ const owner = configurationLeaderboardRows().find((row) => transactionRunForRow(row) === run);
+ if (owner) {
+ const compact = renderToStaticMarkup(
+ createElement(TransactionResult, { row: owner, compact: true }),
+ );
+ expect(compact).toContain("Transactions ↗");
+ expect(compact).toContain(`run=${run.runId}`);
+ }
+});
+
describe("Transactions page catalog", () => {
test("lists exactly the task files, with their prompt, tier, user reply and outcome", () => {
const fromFiles = Object.keys(TASK_SOURCES)
diff --git a/apps/evals/src/components/leaderboard-evidence.tsx b/apps/evals/src/components/leaderboard-evidence.tsx
new file mode 100644
index 00000000..992bddbe
--- /dev/null
+++ b/apps/evals/src/components/leaderboard-evidence.tsx
@@ -0,0 +1,54 @@
+import { Fragment, useId, useState } from "react";
+import type { LeaderboardModelRow } from "../canonical/selectors";
+import { SCORED_FAMILIES } from "../canonical/selectors";
+import { rowLabel, CoverageNote, RecordedResult } from "./leaderboard-results";
+import { LeaderboardConversations } from "./leaderboard-conversations";
+import { RunDetails } from "./results-ui";
+import { TransactionDetails } from "./transaction-results";
+
+export function LeaderboardEvidence({ row }: { row: LeaderboardModelRow }) {
+ const [chatOpen, setChatOpen] = useState(false);
+ const id = useId();
+ return (
+
+ );
+}
diff --git a/apps/evals/src/components/leaderboard-mobile.tsx b/apps/evals/src/components/leaderboard-mobile.tsx
index 5316d569..f448c01f 100644
--- a/apps/evals/src/components/leaderboard-mobile.tsx
+++ b/apps/evals/src/components/leaderboard-mobile.tsx
@@ -1,139 +1,21 @@
-import { Fragment, useEffect, useId, useState, useSyncExternalStore } from "react";
-import { ArrowDown, ArrowUp, ChevronDown, Search, SlidersHorizontal, X } from "lucide-react";
-import {
- campaignDisplayLabel,
- leaderboardCampaignRows,
- recordedBudgetLabel,
- recordedOutcomes,
- SCORED_FAMILIES,
- sortLeaderboardRows,
- type LeaderboardMetric,
- type LeaderboardModelRow,
-} from "../canonical/selectors";
-import { ModelAvatar } from "./eval-ui";
-import { LeaderboardConversations } from "./leaderboard-conversations";
-import { LeaderboardScatter } from "./leaderboard-scatter";
+import { useId, useState } from "react";
+import { ChevronDown, MoreHorizontal } from "lucide-react";
+import { SCORED_FAMILIES, type LeaderboardModelRow } from "../canonical/selectors";
+import { useLeaderboard, type LeaderboardController } from "../lib/leaderboard-state";
import {
columns,
- CoverageNote,
- RecordedResult,
+ CompactScore,
+ followModelRow,
rowKey,
rowLabel,
- SummaryValue,
+ rowMetricValue,
+ RowIdentity,
} from "./leaderboard-results";
-import { dollars, InfoPopover, ResultsHeader, RunDetails, seconds } from "./results-ui";
-import "../styles/leaderboard-mobile.css";
-import { TransactionDetails, TransactionResult } from "./transaction-results";
-
-type Grouping = "settings" | "models";
-
-function subscribeToMobile(onChange: () => void) {
- const media = window.matchMedia("(max-width: 760px)");
- media.addEventListener("change", onChange);
- return () => media.removeEventListener("change", onChange);
-}
-function isMobileViewport() {
- return window.matchMedia("(max-width: 760px)").matches;
-}
-
-function initialState(search: string) {
- const params = new URLSearchParams(
- typeof window === "undefined" ? "" : window.location.hash.split("?")[1],
- );
- const metric =
- columns.find((column) => column.metric === params.get("metric"))?.metric ?? "overall";
- return {
- search: params.get("search") ?? search,
- campaign: params.get("campaign") ?? "latest",
- grading: ["complete", "incomplete"].includes(params.get("grading") ?? "")
- ? params.get("grading")!
- : "all",
- metric,
- direction: params.get("direction") === "asc" ? ("asc" as const) : ("desc" as const),
- grouping: params.get("group") === "models" ? ("models" as Grouping) : ("settings" as Grouping),
- };
-}
+import { InfoPopover } from "./results-ui";
+import { LeaderboardEvidence } from "./leaderboard-evidence";
+import { TransactionResult } from "./transaction-results";
-function MobileMetric({ row, metric }: { row: LeaderboardModelRow; metric: LeaderboardMetric }) {
- if (metric === "time") return ;
- if (metric === "cost")
- return (
-
- );
- const runs =
- metric === "overall" ? Object.values(row.runs) : row.runs[metric] ? [row.runs[metric]!] : [];
- const score = metric === "overall" ? row.overall : row.scores[metric];
- return (
-
-
- {metric === "Spot" && }
-
- );
-}
-
-function MobileInspector({ row, onClose }: { row: LeaderboardModelRow; onClose: () => void }) {
- const [view, setView] = useState<"chat" | "details">("chat");
- return (
-
-
-
- {row.model.name}
- {row.configurationLabel}
-
-
-
-
-
-
-
setView("chat")}>
- Conversation
-
-
setView("details")}>
- Run details
-
-
Model profile ↗
-
-
- {view === "chat" ? (
-
{}} />
- ) : (
- <>
- {row.overallReason && {row.overallReason}
}
-
-
- {SCORED_FAMILIES.map((family) =>
- row.runs[family] ? (
-
-
-
- View {family} tasks and checks ↗
-
-
- ) : null,
- )}
-
- >
- )}
-
-
- );
-}
-
-/** Mobile presentation shares the desktop's outcome and measurement semantics. */
+/** Standalone entry point for previews; the app supplies its shared controller. */
export function LeaderboardMobile({
rows,
initialSearch = "",
@@ -141,306 +23,117 @@ export function LeaderboardMobile({
rows: readonly LeaderboardModelRow[];
initialSearch?: string;
}) {
- const id = useId();
- const mobile = useSyncExternalStore(subscribeToMobile, isMobileViewport, () => false);
- const [state, setState] = useState(() => initialState(initialSearch));
- const [filtersOpen, setFiltersOpen] = useState(false);
+ const controller = useLeaderboard(rows, initialSearch);
+ return ;
+}
+
+export function LeaderboardMobileView({ controller }: { controller: LeaderboardController }) {
+ const { state, shown, clear } = controller;
const [selected, setSelected] = useState(null);
const [openGroups, setOpenGroups] = useState>(new Set());
- const column = columns.find((entry) => entry.metric === state.metric)!;
- const campaigns = [...new Set(rows.map((row) => row.campaignId).filter(Boolean))];
- const query = state.search.trim().toLocaleLowerCase();
- const campaignRows = leaderboardCampaignRows(rows, state.campaign);
- const shown = sortLeaderboardRows(
- campaignRows.filter((row) => {
- const counts = recordedOutcomes(Object.values(row.runs));
- const complete = counts.planned > 0 && counts.graded === counts.planned;
- return (
- `${row.model.name} ${row.model.provider} ${row.configurationLabel ?? ""} ${row.campaignId ?? ""}`
- .toLocaleLowerCase()
- .includes(query) &&
- (state.grading === "all" || (state.grading === "complete" ? complete : !complete))
- );
- }),
- state.metric,
- state.direction,
- );
+ const id = useId();
const groups = new Map();
- for (const row of shown) groups.set(row.model.id, [...(groups.get(row.model.id) ?? []), row]);
- const totals = recordedOutcomes(shown.flatMap((row) => Object.values(row.runs)));
- const hasFilters = Boolean(query || state.campaign !== "latest" || state.grading !== "all");
- const scope = `${state.campaign === "latest" ? "Latest per setting" : state.campaign === "all" ? "All campaigns (history)" : campaignDisplayLabel(state.campaign)} · ${state.grading === "all" ? "All results" : state.grading === "complete" ? "Fully graded" : "Incomplete grading"}`;
-
- useEffect(() => {
- // Keep mobile exploration shareable without changing desktop navigation or
- // triggering a route change (and page scroll) on each filter keystroke.
- if (!window.matchMedia("(max-width: 760px)").matches) return;
- const [path, search] = window.location.hash.split("?");
- const params = new URLSearchParams(search);
- for (const [key, value, fallback] of [
- ["search", state.search, ""],
- ["campaign", state.campaign, "latest"],
- ["grading", state.grading, "all"],
- ["metric", state.metric, "overall"],
- ["direction", state.direction, "desc"],
- ["group", state.grouping, "settings"],
- ]) {
- if (value === fallback) params.delete(key!);
- else params.set(key!, value!);
- }
- params.delete("view");
- window.history.replaceState(
- window.history.state,
- "",
- `${path || "#/leaderboard"}${params.size ? `?${params}` : ""}`,
- );
- }, [state]);
-
- function clearFilters() {
- setState({ ...state, search: "", campaign: "latest", grading: "all" });
- }
- function closeInspection(key: string) {
- setSelected(null);
- document.getElementById(`${id}-inspect-${key}`)?.focus({ preventScroll: true });
- }
- function renderRow(row: LeaderboardModelRow) {
+ shown.forEach((row) => groups.set(row.model.id, [...(groups.get(row.model.id) ?? []), row]));
+ const efficiency = state.efficiency;
+ function renderRow(row: LeaderboardModelRow, index: number) {
const key = rowKey(row);
const open = selected === key;
- const runs = Object.values(row.runs);
- const first = runs[0];
- const recovery = runs.some((run) => run.recovery);
return (
-
+
followModelRow(event, row)}
+ >
+
+ {rowMetricValue(row, state.metric) === null ? "·" : index + 1}
+
+
+
+
+
+
+
+
setSelected(open ? null : key)}
>
-
-
- {row.model.name}
-
- {row.configurationLabel?.replace(" reasoning", "") ?? "Recorded setting"}
-
-
- {recovery && "Recovery · "}
- {first?.startedAt.slice(0, 10) ?? "Date not recorded"}
-
- {recovery && {recordedBudgetLabel(runs)} }
-
-
+
-
-
{column.label}:
-
+
+ {SCORED_FAMILIES.map((family) => (
+
+ {family}
+
+ ))}
+
{open && (
- closeInspection(key)} />
+
)}
);
}
-
return (
-
-
-
-
-
- Search mobile leaderboard
- setState({ ...state, search: event.target.value })}
- />
-
-
setFiltersOpen(!filtersOpen)}
- >
-
- Filters{hasFilters && · }
-
+
+
+
{`${shown.length} ${state.campaign === "all" ? "records" : "settings"}`}
+
Overall
+
+ {columns.find((column) => column.metric === "overall")?.explanation}
+
-
-
{scope}
- {hasFilters && (
-
- Clear
-
- )}
-
-
-
- Campaign
- setState({ ...state, campaign: event.target.value })}
- >
- Latest per setting
- All campaigns (history)
- {campaigns.map((campaign) => (
-
- {campaignDisplayLabel(campaign)}
-
- ))}
-
-
-
- Grading
- setState({ ...state, grading: event.target.value })}
- >
- All results
- Fully graded
- Incomplete grading
-
-
-
- {totals.graded.toLocaleString()}/{totals.planned.toLocaleString()} attempts graded ·{" "}
- {totals.passed} passed · {totals.failed} failed · {totals.timedOut} timed out ·{" "}
- {totals.runtimeFailure} run errors
-
-
-
-
-
- Results view
- {
- setSelected(null);
- setState({ ...state, grouping: event.target.value as Grouping });
- }}
- >
- All settings
- Group by model
-
-
-
- Displayed metric
- {
- const metric = event.target.value as LeaderboardMetric;
- setState({
- ...state,
- metric,
- direction: metric === "time" || metric === "cost" ? "asc" : "desc",
- });
- }}
- >
- {columns.map((entry) => (
-
- Metric: {entry.label}
-
- ))}
-
-
+ {state.group === "models" ? (
+
+
No settings are combined into a model score.
+ {[...groups].map(([modelId, settings]) => (
+
+
+ setOpenGroups((current) => {
+ const next = new Set(current);
+ if (next.has(modelId)) next.delete(modelId);
+ else next.add(modelId);
+ return next;
+ })
+ }
+ >
+ {settings[0]?.model.name}
+ {settings.length} settings
+
+
+
+ {settings.map((row) => renderRow(row, shown.indexOf(row)))}
+
+
+ ))}
-
-
- {shown.length} {state.campaign === "all" ? "records" : "settings"} · {groups.size}{" "}
- {groups.size === 1 ? "model" : "models"}
-
-
- {column.explanation}
-
-
- setState({ ...state, direction: state.direction === "desc" ? "asc" : "desc" })
- }
- >
- {state.direction === "desc" ? : }
-
+ ) : (
+
{shown.map(renderRow)}
+ )}
+ {!shown.length && (
+
+
No matching results
+
Try another model, campaign, or grading filter.
+
Clear filters
- {state.grouping === "settings" ? (
-
- {shown.map(renderRow)}
-
- ) : (
-
-
- Expand a model to see every setting. No settings are combined into a model score.
-
- {[...groups].map(([modelId, settings]) => (
-
-
- setOpenGroups((current) => {
- const next = new Set(current);
- if (next.has(modelId)) next.delete(modelId);
- else next.add(modelId);
- return next;
- })
- }
- >
-
-
- {settings[0]!.model.name}
-
- {settings.length} recorded {settings.length === 1 ? "setting" : "settings"}
-
-
-
-
-
- {settings.map(renderRow)}
-
-
- ))}
-
- )}
- {shown.length === 0 && (
-
-
No matching results
-
Try another model, setting, campaign, or grading filter.
-
- Clear filters
-
-
- )}
-
- Tap a model to inspect its conversation and run details. Time and cost cover completed
- attempts; exclusions are shown. Costs are estimates, not billed spend.
-
-
- {mobile &&
}
-
+ )}
+
);
}
diff --git a/apps/evals/src/components/leaderboard-overview.tsx b/apps/evals/src/components/leaderboard-overview.tsx
new file mode 100644
index 00000000..b263894e
--- /dev/null
+++ b/apps/evals/src/components/leaderboard-overview.tsx
@@ -0,0 +1,314 @@
+import { useId, useState, type CSSProperties } from "react";
+import { Popover } from "@base-ui/react/popover";
+import { ChevronDown, ChevronLeft, ChevronRight, X } from "lucide-react";
+import { SCORED_FAMILIES, type LeaderboardModelRow } from "../canonical/selectors";
+import { providerOverviewRows, type LeaderboardController } from "../lib/leaderboard-state";
+import { ModelAvatar } from "./eval-ui";
+import {
+ columns,
+ modelRowHref,
+ RecordedResult,
+ rowKey,
+ rowLabel,
+ rowMetricValue,
+} from "./leaderboard-results";
+import { percent } from "./results-ui";
+import { LeaderboardScatter } from "./leaderboard-scatter";
+
+const scoreMetrics = [...SCORED_FAMILIES, "overall"] as const;
+type ScoreMetric = (typeof scoreMetrics)[number];
+type ActiveCell = { key: string; metric: ScoreMetric; surface: string } | null;
+
+function HeatCell({
+ row,
+ metric,
+ surface,
+ active,
+ setActive,
+}: {
+ row: LeaderboardModelRow;
+ metric: ScoreMetric;
+ surface: string;
+ active: ActiveCell;
+ setActive: (active: ActiveCell) => void;
+}) {
+ const key = rowKey(row);
+ const value = rowMetricValue(row, metric);
+ const open = active?.key === key && active.metric === metric && active.surface === surface;
+ const run = metric === "overall" ? undefined : row.runs[metric];
+ const runs = metric === "overall" ? Object.values(row.runs) : run ? [run] : [];
+ const label = metric === "overall" ? "Overall" : metric;
+ const band = value === null ? "missing" : String(Math.min(9, Math.floor(value * 10)));
+ return (
+
{
+ if (next) setActive({ key, metric, surface });
+ else if (open) setActive(null);
+ }}
+ >
+ {
+ if (event.currentTarget.matches(":focus-visible")) setActive({ key, metric, surface });
+ }}
+ data-band={band}
+ data-overall={metric === "overall"}
+ data-highlight={active?.key === key || active?.metric === metric}
+ aria-label={`${rowLabel(row)}, ${label}: ${value === null ? "unavailable" : percent(value)}. Show evidence.`}
+ >
+ {value === null ? "N/A" : percent(value)}
+
+
+
+
+
+
+ {row.model.name} · {label}
+
+
+
+
+
+
+
+
+
+
+ );
+}
+
+export function LeaderboardOverview({ controller }: { controller: LeaderboardController }) {
+ const { state, update, shown, page: requestedPage, pageSize, viewport } = controller;
+ const [selection, setSelection] = useState<{ context: string; cell: ActiveCell } | null>(null);
+ const id = useId();
+ const overviewRows = providerOverviewRows(shown);
+ const lastPage = Math.max(0, Math.ceil(overviewRows.length / pageSize) - 1);
+ const page = Math.min(requestedPage, lastPage);
+ const start = page * pageSize;
+ const windowRows = overviewRows.slice(start, start + pageSize);
+ const context = JSON.stringify([
+ state.search,
+ state.campaign,
+ state.grading,
+ state.metric,
+ state.direction,
+ state.view,
+ page,
+ pageSize,
+ viewport,
+ ]);
+ const active = selection?.context === context ? selection.cell : null;
+ function setActive(cell: ActiveCell) {
+ setSelection({ context, cell });
+ }
+ const label = columns.find((column) => column.metric === state.metric)?.label;
+ function changePage(next: number) {
+ setActive(null);
+ update({ page: next });
+ }
+ return (
+
+ update({ overview: !state.overview, page })}
+ >
+ Category overview
+
+
+
+
+ update({ view: "categories", page })}
+ >
+ By category
+
+ update({ view: "efficiency", page })}
+ >
+ Efficiency
+
+
+ {state.view === "categories" && (
+
+
+ {overviewRows.length
+ ? `${start + 1}–${Math.min(start + pageSize, overviewRows.length)} of ${overviewRows.length} providers`
+ : "No settings"}
+
+ {" "}
+ · {label} {state.direction === "desc" ? "↓" : "↑"}
+
+
+ changePage(page - 1)}
+ >
+
+
+ = lastPage}
+ onClick={() => changePage(page + 1)}
+ >
+
+
+
+ )}
+
+
+
+
+
+ Success by category for one setting per provider, selected using the active sort. All
+ settings remain in the ranked table. Tap a score for evidence.
+
+
+
+ Model / setting
+ {scoreMetrics.map((metric) => (
+
+ {metric === "overall" ? (
+ "Overall"
+ ) : metric === "Predictions" ? (
+ Pred.
+ ) : (
+ metric
+ )}
+
+ ))}
+
+
+
+ {windowRows.map((row) => (
+
+
+
+
+
+ {row.model.name}
+ {row.configurationLabel?.replace(" reasoning", "")}
+
+
+
+ {scoreMetrics.map((metric) => (
+
+
+
+ ))}
+
+ ))}
+
+
+
+
+ {`${state.direction === "desc" ? "Highest" : "Lowest"} ${label?.toLowerCase()} setting per provider`}{" "}
+ · different clients and budgets
+
+
+ 0% 100% · N/A: unavailable
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/apps/evals/src/components/leaderboard-results.tsx b/apps/evals/src/components/leaderboard-results.tsx
index f81ab296..edbd602c 100644
--- a/apps/evals/src/components/leaderboard-results.tsx
+++ b/apps/evals/src/components/leaderboard-results.tsx
@@ -1,3 +1,4 @@
+import type { CSSProperties, MouseEvent } from "react";
import type { CanonicalRun } from "../canonical/canonical";
import {
processingProgress,
@@ -6,7 +7,9 @@ import {
type LeaderboardModelRow,
type SummaryMetric,
} from "../canonical/selectors";
-import { percent } from "./results-ui";
+import { dollars, percent, seconds } from "./results-ui";
+import { ModelAvatar } from "./eval-ui";
+import { recordedBudgetLabel } from "../canonical/selectors";
export const rowKey = (row: LeaderboardModelRow) =>
row.rowId ??
@@ -18,6 +21,148 @@ export const rowKey = (row: LeaderboardModelRow) =>
export const rowLabel = (row: LeaderboardModelRow) =>
`${row.model.name}, ${row.configurationLabel ?? "recorded setting"}, ${Object.values(row.runs)[0]?.startedAt.slice(0, 10) ?? "undated"}`;
+export function modelRowHref(row: LeaderboardModelRow) {
+ const run = row.runs.Spot ?? Object.values(row.runs)[0];
+ return `#/models/${row.model.id}${run ? `?run=${encodeURIComponent(run.runId)}` : ""}`;
+}
+
+export function followModelRow(event: MouseEvent
, row: LeaderboardModelRow) {
+ if (event.target instanceof Element && event.target.closest("a,button,input,select,summary"))
+ return;
+ if (window.getSelection()?.toString()) return;
+ if (event.button !== 0) return;
+ const href = modelRowHref(row);
+ if (event.metaKey || event.ctrlKey || event.shiftKey)
+ window.open(href, "_blank", "noopener,noreferrer");
+ else window.location.hash = href.slice(1);
+}
+
+export function rowMetricValue(row: LeaderboardModelRow, metric: LeaderboardMetric) {
+ if (metric === "overall") return row.overall;
+ if (metric === "cost" || metric === "time") {
+ const summary = metric === "cost" ? row.estimatedCost : row.averageTime;
+ return summary.availability === "available" ? summary.value : null;
+ }
+ return row.scores[metric];
+}
+
+export function RowIdentity({
+ row,
+ compact = false,
+}: {
+ row: LeaderboardModelRow;
+ compact?: boolean;
+}) {
+ const runs = Object.values(row.runs);
+ const recovery = runs.some((run) => run.recovery);
+ const budget = recordedBudgetLabel(runs);
+ return (
+
+
+
+
{row.model.name}
+
+ {compact
+ ? (row.configurationLabel?.replace(" reasoning", "") ?? "Recorded setting")
+ : (row.configurationLabel ?? "Recorded setting")}
+ {recovery && (
+
+ {!compact && budget.includes(" / ") ? " · Recovery · mixed budgets" : " · Recovery"}
+
+ )}
+ {row.coverageLabel && · {row.coverageLabel} }
+
+
+ {runs[0]?.startedAt.slice(0, 10)} · {recovery ? "Recovery · " : ""}
+ {budget} · {runs[0]?.cohort.repetitions} reps
+
+
+
+ );
+}
+
+export function CompactScore({
+ row,
+ metric = "overall",
+}: {
+ row: LeaderboardModelRow;
+ metric?: LeaderboardMetric;
+}) {
+ const value = rowMetricValue(row, metric);
+ if (metric === "time" || metric === "cost") {
+ const summary = metric === "cost" ? row.estimatedCost : row.averageTime;
+ return (
+
+
+ {value === null
+ ? summary.availability === "unavailable" && summary.reason.includes("not published")
+ ? "Not published"
+ : "Not recorded"
+ : metric === "cost"
+ ? dollars(value)
+ : seconds(value)}
+
+ {summary.availability === "available" ? (
+ <>
+ {metric === "cost" && value === 0 && Free model tier }
+ {summary.excluded > 0 && {summary.excluded} excluded }
+
+ {summary.sampleCount} attempts · {summary.excluded} excluded. {summary.detail}
+
+ >
+ ) : (
+ {summary.reason}
+ )}
+
+ );
+ }
+ const runs =
+ metric === "overall" ? Object.values(row.runs) : row.runs[metric] ? [row.runs[metric]!] : [];
+ const counts = recordedOutcomes(runs);
+ const progress = processingProgress(runs);
+ const reason = !runs.length
+ ? "Not evaluated"
+ : metric === "overall" && runs.length < 3
+ ? "Partial coverage"
+ : !progress.complete
+ ? "Incomplete"
+ : "Unavailable";
+ const interruptions = [
+ counts.timedOut ? `${counts.timedOut} timed out` : "",
+ counts.runtimeFailure ? `${counts.runtimeFailure} run errors` : "",
+ counts.pending ? `${counts.pending} pending` : "",
+ counts.unstarted ? `${counts.unstarted} not started` : "",
+ counts.unknown ? `${counts.unknown} unknown` : "",
+ ]
+ .filter(Boolean)
+ .join(" · ");
+ return (
+
+ {value === null ? reason : percent(value)}
+ {value !== null && counts.graded < counts.planned && (
+ {counts.planned - counts.graded} ungraded
+ )}
+ {metric === "overall" && value !== null && (
+
+ )}
+
+ {progress.complete ? "Completed · " : ""}
+ {progress.processed}/{progress.planned} processed · {counts.graded}/{counts.planned} graded
+ · {counts.passed} passed · {counts.failed} failed
+ {interruptions ? ` · ${interruptions}` : ""}
+ {value !== null && counts.graded < counts.planned
+ ? ` · ${counts.planned - counts.graded} ungraded · zero credit`
+ : ""}
+ {value === null && metric === "overall" ? ` · ${row.overallReason ?? reason}` : ""}
+
+
+ );
+}
+
export const columns: readonly { metric: LeaderboardMetric; label: string; explanation: string }[] =
[
{
diff --git a/apps/evals/src/components/leaderboard-scatter.tsx b/apps/evals/src/components/leaderboard-scatter.tsx
index a2dc9021..d58eb985 100644
--- a/apps/evals/src/components/leaderboard-scatter.tsx
+++ b/apps/evals/src/components/leaderboard-scatter.tsx
@@ -34,7 +34,7 @@ export function LeaderboardScatter({
const width = canvasWidth || (compact ? 360 : 1100);
const height = compact
? Math.round((width * 280) / 360)
- : Math.min(380, Math.round((width * 380) / 960));
+ : Math.min(300, Math.round((width * 300) / 960));
const margin = compact
? { top: 30, right: 16, bottom: 48, left: 52 }
: { top: 30, right: 24, bottom: 48, left: 62 };
diff --git a/apps/evals/src/components/model-profile-overview.tsx b/apps/evals/src/components/model-profile-overview.tsx
new file mode 100644
index 00000000..964d4101
--- /dev/null
+++ b/apps/evals/src/components/model-profile-overview.tsx
@@ -0,0 +1,158 @@
+import type { CSSProperties } from "react";
+import { ArrowUpRight } from "lucide-react";
+import {
+ SCORED_FAMILIES,
+ recordedBudgetLabel,
+ recordedOutcomes,
+ type LeaderboardModelRow,
+} from "../canonical/selectors";
+import { clientDisplayName } from "../lib/client-labels";
+import { CompactScore, columns } from "./leaderboard-results";
+import { InfoPopover, percent } from "./results-ui";
+
+export function ModelProfileOverview({
+ row,
+ onInspectRun,
+}: {
+ row: LeaderboardModelRow;
+ onInspectRun: (runId: string) => void;
+}) {
+ const runs = Object.values(row.runs);
+ const first = row.runs.Spot ?? runs[0];
+ const counts = recordedOutcomes(runs);
+ const clients = [...new Set(runs.map((run) => clientDisplayName(run.cohort.target)))];
+ return (
+
+
+
Performance overview
+
+ {columns[0]?.explanation}
+
+
+
+
+
Overall success
+
+
+
+ Equal-weight category mean
+
+
+
Average time
+
+
+
+ Completed attempts only
+
+
+
Est. cost / task
+
+
+
+ Token estimate, not billed spend
+
+
+
Grading coverage
+
+ {counts.graded}
+ / {counts.planned}
+
+
+ {counts.passed} passed · {counts.failed} failed
+
+
+
+
+
+ Success by category
+ {SCORED_FAMILIES.map((family) => {
+ const run = row.runs[family];
+ const score = row.scores[family];
+ return (
+
+
+ {family}
+
+ {score === null ? (run ? "Incomplete" : "Not evaluated") : percent(score)}
+
+
+
+
+
+
+
+ {run
+ ? `${run.counts.passed}/${run.counts.planned} passed · ${run.counts.graded} graded`
+ : "No recorded category run"}
+
+ {run && (
+
+ Tasks & chats
+
+ )}
+
+
+ );
+ })}
+ {row.overallReason && (
+
+ {row.overallReason}
+
+ )}
+ {counts.planned > counts.graded && (
+
+ {counts.planned - counts.graded} ungraded · {counts.timedOut} timed out ·{" "}
+ {counts.runtimeFailure} run errors. Terminal non-passes receive zero success credit;
+ unfinished processing keeps scores unavailable.
+
+ )}
+
+
+ Recorded setting
+
+
+
Reasoning / route
+ {row.configurationLabel}
+
+
+
Client
+ {clients.join(" / ")}
+
+
+
Recorded
+ {first?.startedAt.slice(0, 10) ?? "Not recorded"}
+
+
+
Time budget
+ {recordedBudgetLabel(runs)}
+
+
+
Repetitions
+ {first?.cohort.repetitions ?? "Not recorded"} per task
+
+
+ {first && (
+ onInspectRun(first.runId)}
+ >
+ Inspect run evidence
+
+ )}
+
+
+
+ );
+}
diff --git a/apps/evals/src/components/model-setting-results.tsx b/apps/evals/src/components/model-setting-results.tsx
index 45f68323..f3894874 100644
--- a/apps/evals/src/components/model-setting-results.tsx
+++ b/apps/evals/src/components/model-setting-results.tsx
@@ -1,103 +1,126 @@
-import { SCORED_FAMILIES, modelProfileRows, recordedBudgetLabel } from "../canonical/selectors";
-import { Panel } from "./eval-ui";
-import { RecordedResult, SummaryValue, rowKey } from "./leaderboard-results";
-import { dollars, seconds } from "./results-ui";
+import {
+ SCORED_FAMILIES,
+ modelProfileRows,
+ recordedBudgetLabel,
+ type LeaderboardModelRow,
+} from "../canonical/selectors";
+import { CompactScore, rowKey } from "./leaderboard-results";
-export function ModelSettingResults({ modelId }: { modelId: string }) {
+export function ModelSettingResults({
+ modelId,
+ selectedRowId,
+ onSelectSetting,
+}: {
+ modelId: string;
+ selectedRowId?: string;
+ onSelectSetting?: (row: LeaderboardModelRow) => void;
+}) {
const rows = modelProfileRows(modelId);
if (!rows.length) return null;
return (
-
-
- Completed means every trial finished processing, including execution errors. Graded counts
- trials with a pass or fail verdict. Scores divide verified passes by all planned trials;
- timeouts and execution errors earn zero credit. Overall averages the three categories
- equally. Select a category result to explore its tasks and chat transcripts.
-
- Scroll across for category scores, time and cost.
-
-
-
-
- Recorded setting
- Overall
- {SCORED_FAMILIES.map((family) => (
-
- {family}
-
- ))}
- Avg. time
- Est. cost / task
-
-
-
- {rows.map((row) => {
- const runs = Object.values(row.runs);
- const first = runs[0]!;
- return (
-
-
- {row.configurationLabel}
-
- {first.startedAt.slice(0, 10)} · {first.cohort.repetitions} reps
-
- {recordedBudgetLabel(runs)}
- {row.coverageLabel && {row.coverageLabel} }
-
-
-
-
- {SCORED_FAMILIES.map((family) => {
- const run = row.runs[family];
- return (
-
-
-
- );
- })}
-
-
-
-
-
-
-
- );
- })}
-
-
+
+
+
+
Results by reasoning level
+
Latest recorded setting per reasoning level. Select one to update the overview.
+
+
{rows.length} settings
-
+
+
+ Success rates and completed-attempt time and estimated cost. Earlier campaigns remain in
+ Run history. Categories have equal weight in Overall.
+
+
+
+
+
+
+
+
+
+
+
+
+ Recorded setting
+ Overall
+ {SCORED_FAMILIES.map((family) => (
+
+ {family}
+
+ ))}
+ Avg. time
+ Est. cost / task
+
+
+
+ {rows.map((row) => {
+ const runs = Object.values(row.runs);
+ const first = runs[0]!;
+ const selected = rowKey(row) === selectedRowId;
+ return (
+
+
+ {onSelectSetting ? (
+ onSelectSetting(row)}
+ >
+ {row.configurationLabel}
+ {selected ? "Selected" : "View"}
+
+ ) : (
+ {row.configurationLabel}
+ )}
+ {recordedBudgetLabel(runs)}
+
+ {first.startedAt.slice(0, 10)} · {first.cohort.repetitions} reps{" "}
+ {row.coverageLabel}
+
+
+
+
+
+ {SCORED_FAMILIES.map((family) => {
+ const run = row.runs[family];
+ return (
+
+ {run ? (
+
+
+
+ ) : (
+
+ )}
+
+ );
+ })}
+
+
+
+
+
+
+
+ );
+ })}
+
+
+
+ Overall averages Spot, Perps and Predictions equally. Terminal errors earn zero credit;
+ unfinished processing has no score. Time and cost exclude execution errors. Different
+ clients and budgets can affect comparisons.
+
+
);
}
diff --git a/apps/evals/src/components/task-brief.tsx b/apps/evals/src/components/task-brief.tsx
new file mode 100644
index 00000000..80e2d193
--- /dev/null
+++ b/apps/evals/src/components/task-brief.tsx
@@ -0,0 +1,52 @@
+import type { CanonicalCaseDefinition, PrototypeFamily } from "../canonical/canonical";
+import { EvidenceValue } from "../canonical/components";
+import type { TransactionTask } from "../lib/transaction-evals";
+import { TaskCriteria } from "./task-evidence";
+
+/** Keep the selected task's purpose visible before model and attempt controls. */
+export function TaskBrief({
+ family,
+ title,
+ definition,
+ transaction,
+}: {
+ family: PrototypeFamily;
+ title: string;
+ definition?: CanonicalCaseDefinition;
+ transaction?: TransactionTask;
+}) {
+ const prompt = transaction ? (
+
{transaction.prompt}
+ ) : definition ? (
+
{value}
} />
+ ) : null;
+ return (
+
+
+ {family} · {transaction ? "Transaction execution" : "Tool use"}
+
+ {title}
+
+
+ {prompt}
+ Prompt & grading criteria
+
+
+ {prompt}
+ {definition &&
}
+ {transaction && (
+
+ Scripted user replies{" "}
+ {transaction.userReply === "approve" ? "yes" : "no"} . Correct
+ outcome: {transaction.expectedOutcome}. {transaction.tests}{" "}
+ Transaction grading ↗
+
+ )}
+
+
+ {transaction && (
+ Scored separately from Spot tool use and Overall.
+ )}
+
+ );
+}
diff --git a/apps/evals/src/components/task-evidence.tsx b/apps/evals/src/components/task-evidence.tsx
index 3a54d193..06112a87 100644
--- a/apps/evals/src/components/task-evidence.tsx
+++ b/apps/evals/src/components/task-evidence.tsx
@@ -146,54 +146,65 @@ export function AttemptChecks({ attempt }: { attempt: CanonicalAttempt }) {
);
}
-export function TaskCriteria({ definition }: { definition: CanonicalCaseDefinition }) {
- return (
+export function TaskCriteria({
+ definition,
+ inline = false,
+}: {
+ definition: CanonicalCaseDefinition;
+ inline?: boolean;
+}) {
+ const content = (
+
+
+
+
Task identifier
+
+ {definition.caseId}
+
+
+
+
Suite
+
+ {definition.suiteId} v{definition.suiteVersion}
+
+
+
+
Expected behavior
+ {definition.expectedBehavior}
+
+
+
Required arguments
+
+ {definition.requiredArguments ? (
+ {JSON.stringify(definition.requiredArguments, null, 2)}
+ ) : (
+ "No task-specific constraints"
+ )}
+
+
+
+
Forbidden tools
+ {definition.forbiddenTools.join(", ") || "None declared"}
+
+
+
Forbidden permissions
+ {definition.forbiddenScopes.join(", ") || "None declared"}
+
+
+
Recorded grading rules
+
+ {definition.gradingCriteria.map((criterion) => (
+ {criterion}
+ ))}
+
+
+ );
+ return inline ? (
+ content
+ ) : (
Grading criteria
-
-
-
-
Task identifier
-
- {definition.caseId}
-
-
-
-
Suite
-
- {definition.suiteId} v{definition.suiteVersion}
-
-
-
-
Expected behavior
- {definition.expectedBehavior}
-
-
-
Required arguments
-
- {definition.requiredArguments ? (
- {JSON.stringify(definition.requiredArguments, null, 2)}
- ) : (
- "No task-specific constraints"
- )}
-
-
-
-
Forbidden tools
- {definition.forbiddenTools.join(", ") || "None declared"}
-
-
-
Forbidden permissions
- {definition.forbiddenScopes.join(", ") || "None declared"}
-
-
-
Recorded grading rules
-
- {definition.gradingCriteria.map((criterion) => (
- {criterion}
- ))}
-
-
+ {content}
);
}
diff --git a/apps/evals/src/components/transaction-results.tsx b/apps/evals/src/components/transaction-results.tsx
index f7cd4a8f..3122498c 100644
--- a/apps/evals/src/components/transaction-results.tsx
+++ b/apps/evals/src/components/transaction-results.tsx
@@ -23,15 +23,35 @@ const usd = (micros: number) => `$${(micros / 1_000_000).toFixed(2)}`;
const secondsLabel = (ms: number) => `${Math.round(ms / 1000)}s`;
/** Spot cell sub-line: the Spot transactions score owned by this row. Not part of the Spot score. */
-export function TransactionResult({ row }: { row: LeaderboardModelRow }) {
+export function TransactionResult({
+ row,
+ compact = false,
+}: {
+ row: LeaderboardModelRow;
+ compact?: boolean;
+}) {
const run = transactionRunForRow(row);
if (run === undefined) return null;
const score = transactionScore(run);
const passed = run.trials.filter((trial) => trial.passed).length;
return (
-
- Transactions {score === null ? "incomplete" : percent(score)} · {passed}/{plannedTrials(run)}{" "}
- attempts passed
+
+ {compact ? (
+ "Transactions ↗"
+ ) : (
+ <>
+ Transactions {score === null ? "incomplete" : percent(score)} · {passed}/
+ {plannedTrials(run)} attempts passed
+ >
+ )}
);
}
diff --git a/apps/evals/src/components/transaction-task-panels.tsx b/apps/evals/src/components/transaction-task-panels.tsx
index 0c3be172..5fa2916c 100644
--- a/apps/evals/src/components/transaction-task-panels.tsx
+++ b/apps/evals/src/components/transaction-task-panels.tsx
@@ -1,4 +1,5 @@
import { ArrowLeft, ArrowRight, ChevronRight } from "lucide-react";
+import { useRef, useState } from "react";
import { getModel, type LeaderboardModelRow } from "../canonical/selectors";
import type { TransactionTask } from "../lib/transaction-evals";
import {
@@ -16,9 +17,8 @@ const secondsLabel = (ms: number) => `${Math.round(ms / 1000)}s`;
/**
* Runs and inspector panes for a Spot transaction task, with the same attempt picker and
- * Conversation / Checks / Run details views as the other tasks. Every transaction run is its own
- * entry, whether a leaderboard setting owns it or it is transaction-only; leaderboard models
- * without any run show "Not run". Transaction trials never change the Spot score.
+ * Conversation / Checks / Run details views as the other tasks. Each recorded transaction setting has its own
+ * entry, including transaction-only models. Models without a run show "Not run". Transaction trials never change the Spot score.
*/
export function TransactionTaskPanels({
task,
@@ -37,6 +37,15 @@ export function TransactionTaskPanels({
readonly view: TaskView;
readonly onMove: (next: Partial) => void;
}) {
+ const [comparisonOpen, setComparisonOpen] = useState(false);
+ const modelSelect = useRef(null);
+ function chooseEntry(key: string) {
+ const entry = entries.find((candidate) => candidate.key === key);
+ if (!entry) return;
+ onMove({ modelId: entry.model.id, runId: entry.run?.runId, attempt: undefined });
+ setComparisonOpen(false);
+ modelSelect.current?.focus();
+ }
// A transaction-only model has no leaderboard row, so each run names its canonical model.
const entries = [
...TRANSACTION_RUNS_BY_MODEL.flatMap((run) => {
@@ -72,74 +81,89 @@ export function TransactionTaskPanels({
const failed = new Map(trial?.failedChecks.map((check) => [check.id, check.detail]));
return (
<>
-
-
- Selected model
- {
- const entry = entries.find((candidate) => candidate.key === event.target.value);
- if (entry)
- onMove({ modelId: entry.model.id, runId: entry.run?.runId, attempt: undefined });
- }}
- >
- {entries.map((entry) => (
-
- {entry.label}
-
- ))}
-
-
-
-
-
Models
-
- {runCount} {runCount === 1 ? "run" : "runs"} · {modelCount}{" "}
- {modelCount === 1 ? "model" : "models"}
-
+
setComparisonOpen(event.currentTarget.open)}
+ >
+
+ Compare model results{" "}
+
+ {runCount} runs · {modelCount} models
+
+
+
+
+
+
Models
+
+ {runCount} runs · {modelCount} models
+
+
-
-
- {entries.map((entry) => {
- const own = entry.run?.trials.filter((trial) => trial.taskId === task.id) ?? [];
- return (
-
- onMove({ modelId: entry.model.id, runId: entry.run?.runId, attempt: undefined })
- }
- >
-
-
- {entry.model.name}
-
- {entry.run ? `${entry.run.reasoning} reasoning` : "No transaction run"}
-
-
-
-
- {entry.run
- ? `${own.filter((trial) => trial.passed).length}/${own.length} passed`
- : "Not run"}
-
-
-
-
- );
- })}
-
-
- Spot transactions: scored separately, not part of the Spot score.
-
-
+
+ {entries.map(({ model, run, key, label }) => {
+ const own = run?.trials.filter((trial) => trial.taskId === task.id) ?? [];
+ return (
+ chooseEntry(key)}
+ >
+
+
+ {model.name}
+ {run ? `${run.reasoning} reasoning` : "No transaction run"}
+
+
+
+ {run
+ ? `${own.filter((trial) => trial.passed).length}/${own.length} passed`
+ : "Not run"}
+
+
+
+
+ );
+ })}
+
+
+ Spot transactions: scored separately, not part of the Spot score.
+
+
+
-
{selected?.label ?? "No model selected"}
+
+ {selected?.model.name ?? "No model selected"} attempt evidence
+
+
+ {selected && }
+
+ Model
+ chooseEntry(event.target.value)}
+ >
+ {entries.map(({ key, label }) => (
+
+ {label}
+
+ ))}
+
+
+
+ {run && (
+
+ {run.reasoning} reasoning · {run.date}
+
+ )}
{trials.length > 0 && (
@@ -171,19 +195,6 @@ export function TransactionTaskPanels({
aria-labelledby={`task-tab-${view}`}
tabIndex={0}
>
-
-
- {task.name} · Prompt & criteria
-
- {task.prompt}
-
- Scripted user replies {task.userReply === "approve" ? "yes" : "no"} .
- Correct outcome: {task.expectedOutcome}. {task.tests}
-
-
- How transaction evals are graded ↗
-
-
{run === undefined ? (
No transaction run is recorded for this model yet.
) : view === "run" ? (
diff --git a/apps/evals/src/lib/leaderboard-state.ts b/apps/evals/src/lib/leaderboard-state.ts
new file mode 100644
index 00000000..d6e7133b
--- /dev/null
+++ b/apps/evals/src/lib/leaderboard-state.ts
@@ -0,0 +1,224 @@
+import { useEffect, useState, useSyncExternalStore } from "react";
+import {
+ leaderboardCampaignRows,
+ recordedOutcomes,
+ sortLeaderboardRows,
+ type LeaderboardMetric,
+ type LeaderboardModelRow,
+ type ScoredFamily,
+} from "../canonical/selectors";
+
+export interface LeaderboardState {
+ search: string;
+ campaign: string;
+ grading: "all" | "complete" | "incomplete";
+ metric: LeaderboardMetric;
+ direction: "asc" | "desc";
+ group: "settings" | "models";
+ view: "categories" | "efficiency";
+ page: number;
+ category: ScoredFamily;
+ efficiency: "time" | "cost";
+ overview: boolean;
+}
+
+export function readLeaderboardState(hash: string, initialSearch = ""): LeaderboardState {
+ const params = new URLSearchParams(hash.split("?")[1]);
+ const requestedMetric = params.get("metric");
+ const metric =
+ (["overall", "Spot", "Perps", "Predictions", "time", "cost"] as const).find(
+ (entry) => entry === requestedMetric,
+ ) ?? "overall";
+ const page = Number(params.get("page") ?? 0);
+ return {
+ search: params.get("search") ?? initialSearch,
+ campaign: params.get("campaign") ?? "latest",
+ grading:
+ params.get("grading") === "complete"
+ ? "complete"
+ : params.get("grading") === "incomplete"
+ ? "incomplete"
+ : "all",
+ metric,
+ direction:
+ params.get("direction") === "asc"
+ ? "asc"
+ : params.get("direction") === "desc"
+ ? "desc"
+ : metric === "time" || metric === "cost"
+ ? "asc"
+ : "desc",
+ group: params.get("group") === "models" ? "models" : "settings",
+ view: params.get("view") === "efficiency" ? "efficiency" : "categories",
+ page: Number.isSafeInteger(page) && page >= 0 ? page : 0,
+ category:
+ params.get("category") === "Spot"
+ ? "Spot"
+ : params.get("category") === "Perps"
+ ? "Perps"
+ : params.get("category") === "Predictions"
+ ? "Predictions"
+ : metric === "Perps" || metric === "Predictions"
+ ? metric
+ : "Spot",
+ efficiency:
+ params.get("efficiency") === "cost"
+ ? "cost"
+ : params.get("efficiency") === "time"
+ ? "time"
+ : metric === "cost"
+ ? "cost"
+ : "time",
+ overview: params.get("overview") === "open",
+ };
+}
+
+export function leaderboardHash(state: LeaderboardState): string {
+ const defaults = readLeaderboardState(`#/leaderboard?metric=${state.metric}`);
+ const params = new URLSearchParams();
+ for (const key of Object.keys(defaults) as (keyof LeaderboardState)[]) {
+ if (key === "metric" ? state.metric !== "overall" : state[key] !== defaults[key])
+ params.set(key, key === "overview" ? "open" : String(state[key]));
+ }
+ return `#/leaderboard${params.size ? `?${params}` : ""}`;
+}
+
+export function visibleLeaderboardRows(
+ rows: readonly LeaderboardModelRow[],
+ state: LeaderboardState,
+) {
+ const query = state.search.trim().toLocaleLowerCase();
+ return sortLeaderboardRows(
+ leaderboardCampaignRows(rows, state.campaign).filter((row) => {
+ const counts = recordedOutcomes(Object.values(row.runs));
+ const complete = counts.planned > 0 && counts.graded === counts.planned;
+ return (
+ `${row.model.name} ${row.model.provider} ${row.configurationLabel ?? ""} ${row.campaignId ?? ""}`
+ .toLocaleLowerCase()
+ .includes(query) &&
+ (state.grading === "all" || (state.grading === "complete" ? complete : !complete))
+ );
+ }),
+ state.metric,
+ state.direction,
+ );
+}
+
+/** The input is already filtered and sorted; retain its first setting per provider. */
+export function providerOverviewRows(rows: readonly LeaderboardModelRow[]): LeaderboardModelRow[] {
+ const seen = new Set
();
+ return rows.filter((row) => {
+ const provider = row.model.provider.trim().toLocaleLowerCase();
+ if (seen.has(provider)) return false;
+ seen.add(provider);
+ return true;
+ });
+}
+
+function subscribeViewport(onChange: () => void) {
+ const queries = [
+ window.matchMedia("(min-width: 761px)"),
+ window.matchMedia("(min-width: 1100px)"),
+ window.matchMedia("(min-width: 1400px)"),
+ ];
+ queries.forEach((query) => query.addEventListener("change", onChange));
+ return () => queries.forEach((query) => query.removeEventListener("change", onChange));
+}
+
+function viewportBand() {
+ return window.matchMedia("(min-width: 1400px)").matches
+ ? "wide"
+ : window.matchMedia("(min-width: 1100px)").matches
+ ? "desktop"
+ : window.matchMedia("(min-width: 761px)").matches
+ ? "tablet"
+ : "phone";
+}
+
+export function useLeaderboard(rows: readonly LeaderboardModelRow[], initialSearch = "") {
+ const [state, setState] = useState(() =>
+ readLeaderboardState(typeof window === "undefined" ? "" : window.location.hash, initialSearch),
+ );
+ const viewport = useSyncExternalStore(subscribeViewport, viewportBand, () => "wide");
+ const pageSize = viewport === "wide" ? 10 : viewport === "desktop" ? 8 : 5;
+ const shown = visibleLeaderboardRows(rows, state);
+ const page = Math.min(state.page, Math.max(0, Math.ceil(shown.length / pageSize) - 1));
+
+ useEffect(() => {
+ window.history.replaceState(window.history.state, "", leaderboardHash(state));
+ }, [state]);
+
+ useEffect(() => {
+ // replaceState keeps typing from remounting the page. A real hash navigation
+ // must still restore controls, even when the router already has this path.
+ const restore = () => {
+ const path = window.location.hash.split("?")[0];
+ if (path === "#/leaderboard" || path === "#/" || path === "") {
+ setState(readLeaderboardState(window.location.hash));
+ }
+ };
+ window.addEventListener("hashchange", restore);
+ return () => window.removeEventListener("hashchange", restore);
+ }, []);
+
+ useEffect(() => {
+ const saved = window.history.state?.leaderboardScrollY;
+ const frame =
+ typeof saved === "number"
+ ? requestAnimationFrame(() => window.scrollTo({ top: saved, behavior: "instant" }))
+ : undefined;
+ let scrollFrame: number | undefined;
+ const saveScroll = () => {
+ if (scrollFrame !== undefined) return;
+ scrollFrame = requestAnimationFrame(() => {
+ scrollFrame = undefined;
+ if (["", "#/", "#/leaderboard"].includes(window.location.hash.split("?")[0] ?? "")) {
+ window.history.replaceState(
+ { ...window.history.state, leaderboardScrollY: window.scrollY },
+ "",
+ );
+ }
+ });
+ };
+ window.addEventListener("scroll", saveScroll, { passive: true });
+ return () => {
+ if (frame !== undefined) cancelAnimationFrame(frame);
+ if (scrollFrame !== undefined) cancelAnimationFrame(scrollFrame);
+ window.removeEventListener("scroll", saveScroll);
+ };
+ }, []);
+
+ function update(patch: Partial) {
+ setState((current) => ({ ...current, page: 0, ...patch }));
+ }
+ function sort(metric: LeaderboardMetric) {
+ update({
+ metric,
+ direction:
+ metric === state.metric
+ ? state.direction === "desc"
+ ? "asc"
+ : "desc"
+ : metric === "time" || metric === "cost"
+ ? "asc"
+ : "desc",
+ ...(metric === "time" || metric === "cost"
+ ? { efficiency: metric }
+ : metric !== "overall"
+ ? { category: metric }
+ : {}),
+ });
+ }
+ return {
+ state,
+ update,
+ sort,
+ shown,
+ page,
+ pageSize,
+ viewport,
+ clear: () => update({ search: "", campaign: "latest", grading: "all", group: "settings" }),
+ };
+}
+
+export type LeaderboardController = ReturnType;
diff --git a/apps/evals/src/lib/model-profile-selection.ts b/apps/evals/src/lib/model-profile-selection.ts
new file mode 100644
index 00000000..27aa6747
--- /dev/null
+++ b/apps/evals/src/lib/model-profile-selection.ts
@@ -0,0 +1,29 @@
+import {
+ configurationLeaderboardRows,
+ modelProfileRows,
+ type LeaderboardModelRow,
+} from "../canonical/selectors";
+
+/** Select a complete recorded setting, never independently pick category runs. */
+export function selectProfileSetting(
+ modelId: string,
+ requestedRunId?: string,
+ rows: readonly LeaderboardModelRow[] = configurationLeaderboardRows(),
+): LeaderboardModelRow | undefined {
+ if (requestedRunId) {
+ const requested = rows.find(
+ (row) =>
+ row.model.id === modelId &&
+ Object.values(row.runs).some((run) => run.runId === requestedRunId),
+ );
+ if (requested) return requested;
+ }
+ const startedAt = (row: LeaderboardModelRow) =>
+ Object.values(row.runs)
+ .map((run) => run.startedAt)
+ .sort()[0] ?? "";
+ return [...modelProfileRows(modelId, rows)].sort(
+ (a, b) =>
+ startedAt(b).localeCompare(startedAt(a)) || (a.rowId ?? "").localeCompare(b.rowId ?? ""),
+ )[0];
+}
diff --git a/apps/evals/src/pages/leaderboard.stories.tsx b/apps/evals/src/pages/leaderboard.stories.tsx
index 9a9e1bb6..7a420c19 100644
--- a/apps/evals/src/pages/leaderboard.stories.tsx
+++ b/apps/evals/src/pages/leaderboard.stories.tsx
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from "@storybook/react-vite";
import { LeaderboardPage } from "./leaderboard";
import { canonicalRuns } from "../canonical/canonical";
-import { unifiedLeaderboardRows } from "../canonical/selectors";
+import { configurationLeaderboardRows, unifiedLeaderboardRows } from "../canonical/selectors";
import "../styles/evals.css";
const meta = {
@@ -40,3 +40,14 @@ export const PartialCoverage: Story = {
},
};
export const Mobile: Story = { globals: { viewport: { value: "mobile", isRotated: false } } };
+export const LongModelName: Story = {
+ args: {
+ rows: configurationLeaderboardRows()
+ .slice(0, 1)
+ .map((row) => ({
+ ...row,
+ model: { ...row.model, name: "A model with a deliberately long descriptive name" },
+ })),
+ },
+};
+export const RecoveryAndMissingCost: Story = { args: { initialSearch: "Grok 4.7" } };
diff --git a/apps/evals/src/pages/leaderboard.tsx b/apps/evals/src/pages/leaderboard.tsx
index b8dbe6d2..ff67bd45 100644
--- a/apps/evals/src/pages/leaderboard.tsx
+++ b/apps/evals/src/pages/leaderboard.tsx
@@ -1,37 +1,44 @@
-import { Fragment, useState } from "react";
-import { ChevronDown, Search } from "lucide-react";
-import { LeaderboardMobile } from "../components/leaderboard-mobile";
+import { Fragment, useId, useState } from "react";
import {
+ ArrowDown,
+ ArrowUp,
+ ChevronDown,
+ MoreHorizontal,
+ Search,
+ SlidersHorizontal,
+} from "lucide-react";
+import { LeaderboardMobileView } from "../components/leaderboard-mobile";
+import {
+ columns,
+ CompactScore,
+ followModelRow,
+ RowIdentity,
rowKey,
rowLabel,
- columns,
- SummaryValue,
- CoverageNote,
- RecordedResult,
+ rowMetricValue,
} from "../components/leaderboard-results";
-import { LeaderboardScatter } from "../components/leaderboard-scatter";
-import { LeaderboardConversations } from "../components/leaderboard-conversations";
-import { TransactionDetails, TransactionResult } from "../components/transaction-results";
-import { ModelAvatar, PageShell } from "../components/eval-ui";
-import { InfoPopover, ResultsHeader, RunDetails, dollars, seconds } from "../components/results-ui";
+import { LeaderboardEvidence } from "../components/leaderboard-evidence";
+import { LeaderboardOverview } from "../components/leaderboard-overview";
+import { PageShell } from "../components/eval-ui";
+import { InfoPopover } from "../components/results-ui";
+import { TransactionResult } from "../components/transaction-results";
+import { useLeaderboard } from "../lib/leaderboard-state";
import {
- SCORED_FAMILIES,
campaignDisplayLabel,
configurationLeaderboardRows,
- leaderboardCampaignRows,
- recordedBudgetLabel,
recordedOutcomes,
- sortLeaderboardRows,
type LeaderboardMetric,
type LeaderboardModelRow,
+ type ScoredFamily,
} from "../canonical/selectors";
+import "../styles/leaderboard.css";
-const configurations = [...configurationLeaderboardRows()].sort((a, b) =>
+const defaultRows = [...configurationLeaderboardRows()].sort((a, b) =>
(Object.values(b.runs)[0]?.startedAt ?? "").localeCompare(
Object.values(a.runs)[0]?.startedAt ?? "",
),
);
-const defaultRows = configurations;
+
export function LeaderboardPage({
initialSearch = "",
initialExpandedModel,
@@ -39,60 +46,25 @@ export function LeaderboardPage({
}: {
initialSearch?: string;
initialExpandedModel?: string;
- /** Storybook can supply derived summaries; the app uses all measured current records. */
rows?: readonly LeaderboardModelRow[];
}) {
- const [search, setSearch] = useState(initialSearch);
- const [campaign, setCampaign] = useState(() =>
- typeof window === "undefined"
- ? "latest"
- : (new URLSearchParams(window.location.hash.split("?")[1]).get("campaign") ?? "latest"),
- );
- const [grading, setGrading] = useState("all");
- const [metric, setMetric] = useState("overall");
- const [direction, setDirection] = useState<"asc" | "desc">("desc");
+ const controller = useLeaderboard(rows, initialSearch);
+ const { state, update, sort, shown, clear } = controller;
+ const [filtersOpen, setFiltersOpen] = useState(false);
const [expanded, setExpanded] = useState>(
- new Set(rows.filter((row) => row.model.id === initialExpandedModel).map(rowKey)),
+ () => new Set(rows.filter((row) => row.model.id === initialExpandedModel).map(rowKey)),
);
- const [chatRows, setChatRows] = useState>(new Set());
- function setChatOpen(key: string, open: boolean) {
- setChatRows((current) => {
- const next = new Set(current);
- if (open) next.add(key);
- else next.delete(key);
- return next;
- });
- }
- const query = search.trim().toLocaleLowerCase();
+ const id = useId();
const campaigns = [...new Set(rows.map((row) => row.campaignId).filter(Boolean))];
- const campaignRows = leaderboardCampaignRows(rows, campaign);
- const shown = sortLeaderboardRows(
- campaignRows.filter((row) => {
- const counts = recordedOutcomes(Object.values(row.runs));
- const complete = counts.planned > 0 && counts.graded === counts.planned;
- return (
- `${row.model.name} ${row.model.provider} ${row.configurationLabel ?? ""} ${row.campaignId ?? ""}`
- .toLocaleLowerCase()
- .includes(query) &&
- (grading === "all" || (grading === "complete" ? complete : !complete))
- );
- }),
- metric,
- direction,
- );
const totals = recordedOutcomes(shown.flatMap((row) => Object.values(row.runs)));
- function sort(next: LeaderboardMetric) {
- setMetric(next);
- setDirection(
- next === metric
- ? direction === "desc"
- ? "asc"
- : "desc"
- : next === "time" || next === "cost"
- ? "asc"
- : "desc",
- );
- }
+ const modelCount = new Set(shown.map((row) => row.model.id)).size;
+ const activeFilters = Number(state.grading !== "all") + Number(state.group !== "settings");
+ const scope =
+ state.campaign === "latest"
+ ? "Latest per setting"
+ : state.campaign === "all"
+ ? "All campaigns (history)"
+ : campaignDisplayLabel(state.campaign);
function toggle(key: string) {
setExpanded((current) => {
const next = new Set(current);
@@ -101,100 +73,223 @@ export function LeaderboardPage({
return next;
});
}
- function clearFilters() {
- setSearch("");
- setCampaign("latest");
- setGrading("all");
- }
return (
-
-
-
-
-
-
-
+
+
+
+
+
+
Search models, providers, or reasoning settings
setSearch(event.target.value)}
+ value={state.search}
+ onChange={(event) => update({ search: event.target.value })}
placeholder="Search models or settings"
/>
+
+ Campaign
+ update({ campaign: event.target.value })}
+ >
+ Latest per setting
+ All campaigns (history)
+ {campaigns.map((campaign) => (
+
+ {campaignDisplayLabel(campaign)}
+
+ ))}
+
+
+
setFiltersOpen(!filtersOpen)}
+ >
+ Filters
+ {activeFilters > 0 && {activeFilters} }
+
+
+ {`${modelCount} models · ${shown.length} ${state.campaign === "all" ? "records" : "settings"}`}
+
+ {" "}
+ · {totals.graded}/{totals.planned} attempts graded
+
+
-
-
+
+
+ {scope}
+ {state.grading !== "all"
+ ? ` · ${state.grading === "complete" ? "Fully graded" : "Incomplete grading"}`
+ : ""}
+
+ {(state.search || state.campaign !== "latest" || activeFilters > 0) && (
+
+ Clear filters
+
+ )}
+
+
+
Campaign
- setCampaign(event.target.value)}>
+ update({ campaign: event.target.value })}
+ >
Latest per setting
All campaigns (history)
- {campaigns.map((id) => (
-
- {campaignDisplayLabel(id)}
+ {campaigns.map((campaign) => (
+
+ {campaignDisplayLabel(campaign)}
))}
Grading
- setGrading(event.target.value)}>
+ update({ grading: event.target.value as typeof state.grading })}
+ >
All results
Fully graded
Incomplete grading
-
- {shown.length} {campaign === "all" ? "records" : "settings"} ·{" "}
- {new Set(shown.map((row) => row.model.id)).size} models ·{" "}
- {totals.graded.toLocaleString()}/{totals.planned.toLocaleString()} attempts graded
-
- {totals.passed.toLocaleString()} passed · {totals.failed.toLocaleString()} failed ·{" "}
- {totals.timedOut} timed out · {totals.runtimeFailure} run errors
-
+
+ Results view
+ update({ group: event.target.value as typeof state.group })}
+ >
+ All settings
+ Group by model
+
+
+
+ {totals.graded.toLocaleString()}/{totals.planned.toLocaleString()} attempts graded ·{" "}
+ {totals.passed} passed · {totals.failed} failed · {totals.timedOut} timed out ·{" "}
+ {totals.runtimeFailure} run errors
-
-
+
+
+
+ Sort
+ sort(event.target.value as LeaderboardMetric)}
+ >
+ {columns.map((column) => (
+
+ {column.label}
+
+ ))}
+
+
+
sort(state.metric)}
+ >
+ {state.direction === "desc" ? : }
+
+
+ Category
+ update({ category: event.target.value as ScoredFamily })}
+ >
+ Spot
+ Perps
+ Predictions
+
+
+
+ update({ efficiency: "time" })}
+ >
+ Time
+
+ update({ efficiency: "cost" })}
+ >
+ Cost
+
+
+
+
+
- {campaign === "latest" ? "Latest model settings" : "Recorded model settings"}, sorted
- by {columns.find((col) => col.metric === metric)?.label},{" "}
- {direction === "desc" ? "descending" : "ascending"}. Unavailable values appear last.
+ Latest recorded model settings, sorted by{" "}
+ {columns.find((column) => column.metric === state.metric)?.label},{" "}
+ {state.direction === "desc" ? "descending" : "ascending"}. Unavailable values appear
+ last.
+
+
+
+ {columns.map((column) => (
+
+ ))}
+
+
-
- Model / recorded setting
+
+ #
+ Model / recorded setting
{columns.map((column) => (
-
-
sort(column.metric)}>
+
+ sort(column.metric)}>
{column.label}
- {metric === column.metric ? (direction === "desc" ? "↓" : "↑") : "↕"}
+ {state.metric === column.metric
+ ? state.direction === "desc"
+ ? "↓"
+ : "↑"
+ : ""}
@@ -203,142 +298,63 @@ export function LeaderboardPage({
))}
+
+ Evidence
+
- {shown.map((row) => {
+ {shown.map((row, index) => {
const key = rowKey(row);
- const label = rowLabel(row);
- const runs = Object.values(row.runs);
- const first = runs[0];
- const recovery = runs.some((run) => run.recovery);
+ const open = expanded.has(key);
return (
followModelRow(event, row)}
>
-
-
-
toggle(key)}
- >
-
-
-
-
-
{row.model.name}
-
- {row.configurationLabel ?? "Recorded setting"}
-
-
- {recovery && "Recovery · "}
- {first?.startedAt.slice(0, 10)} · {recordedBudgetLabel(runs)} ·{" "}
- {first?.cohort.repetitions} reps
-
- {row.coverageLabel &&
{row.coverageLabel} }
-
- toggle(key)}
- >
- Evidence & sources
-
- {
- {
- setExpanded((current) => new Set([...current, key]));
- setChatOpen(key, true);
- }}
- >
- Chat
-
- }
-
-
-
-
-
-
+
+ {rowMetricValue(row, state.metric) === null ? "·" : index + 1}
- {SCORED_FAMILIES.map((family) => (
-
-
- {family === "Spot" && }
+
+
+
+ {columns.map((column) => (
+
+
+ {column.metric === "Spot" && (
+
+
+
+ )}
))}
-
-
-
-
+ toggle(key)}
+ >
+ {open ? : }
+
- {expanded.has(key) && (
-
-
-
-
{label}: run details
- {row.overallReason &&
{row.overallReason}
}
- {
-
setChatOpen(key, open)}
- />
- }
-
-
-
-
- {SCORED_FAMILIES.map((family) =>
- row.runs[family] ? (
-
-
-
- View {family} tasks and conversations ↗
-
-
- ) : null,
- )}
-
-
+ {open && (
+
+
+
)}
@@ -347,21 +363,21 @@ export function LeaderboardPage({
})}
+ {!shown.length && (
+
+
No matching results
+
Try another model, setting, campaign, or grading filter.
+
Clear filters
+
+ )}
- {shown.length === 0 && (
-
-
No matching results
-
Try another model, setting, campaign, or grading filter.
-
Clear filters
-
- )}
-
- Time and estimated token costs cover completed attempts, including graded failures.
- Timeouts and run errors are excluded; sample counts are shown for both measures. Costs
- include cache discounts and are not billed spend or subscription charges. Evidence and
- sources include per-category latency, tokens, provenance, and recorded limitations.
+
+
+ Overall averages three category success rates equally; terminal ungraded attempts earn
+ zero credit. Time and estimated token cost cover completed attempts; errors and timeouts
+ are excluded from those measurements. Spot transaction results are separate from Spot and
+ Overall. Scoring, coverage, and methodology ↗
-
);
diff --git a/apps/evals/src/pages/model-profile-clean.css b/apps/evals/src/pages/model-profile-clean.css
new file mode 100644
index 00000000..2b7e9c87
--- /dev/null
+++ b/apps/evals/src/pages/model-profile-clean.css
@@ -0,0 +1,618 @@
+.mp-page .mp-content {
+ max-width: 1336px;
+ padding: 0 28px 32px;
+}
+.mp-breadcrumbs {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 8px;
+ padding-top: 20px;
+ font-size: 12px;
+ color: var(--lb-muted);
+}
+.mp-breadcrumbs a:hover {
+ color: var(--lb-ink);
+ text-decoration: underline;
+ text-underline-offset: 3px;
+}
+.mp-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 24px;
+ padding: 20px 0;
+}
+.mp-identity {
+ display: flex;
+ align-items: center;
+ gap: 14px;
+ min-width: 0;
+}
+.mp-identity .eval-avatar {
+ width: 40px;
+ height: 44px;
+ flex: 0 0 40px;
+}
+.mp-provider {
+ margin: 0 0 4px;
+ font-size: 12px;
+ color: var(--lb-muted);
+}
+.mp-title {
+ font: 400 40px/1.1 var(--font-heading);
+ letter-spacing: -0.035em;
+ margin: 0;
+ overflow-wrap: anywhere;
+}
+.mp-inline-link {
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+ padding: 4px 0;
+ background: transparent;
+ border: 0;
+ color: var(--lb-ink);
+ font-size: 12px;
+ text-decoration: underline;
+ text-underline-offset: 4px;
+}
+.mp-header > a {
+ flex-shrink: 0;
+}
+.mp-selection-bar {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 16px;
+ padding: 0 0 16px;
+}
+.mp-selection-bar label {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ font-size: 12px;
+ color: var(--lb-muted);
+}
+.mp-selection-bar select {
+ min-width: 240px;
+ max-width: 440px;
+}
+.mp-selection-bar > span {
+ color: var(--lb-muted);
+ font-size: 12px;
+}
+.mp-overview {
+ border: 1px solid var(--lb-line);
+ border-radius: 10px;
+ padding: 20px 24px;
+ margin-bottom: 24px;
+ background: var(--lb-paper);
+}
+.mp-section-heading {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ margin-bottom: 16px;
+}
+.mp-section-heading h2 {
+ margin: 0;
+ font: 400 24px/1.15 var(--font-heading);
+ letter-spacing: -0.02em;
+}
+.mp-section-heading p,
+.mp-section-heading > span {
+ font-size: 12px;
+ color: var(--lb-muted);
+ margin: 6px 0 0;
+}
+.mp-section-heading .results-info {
+ width: 28px;
+ height: 28px;
+}
+.mp-stat-strip {
+ display: grid;
+ grid-template-columns: 1.15fr 1fr 1fr 1fr;
+ margin: 0 0 20px;
+ padding: 0 0 20px;
+ border-bottom: 1px solid var(--lb-line);
+}
+.mp-stat-strip > div {
+ min-width: 0;
+ padding: 0 20px;
+ border-left: 1px solid var(--lb-line);
+}
+.mp-stat-strip > div:first-child {
+ border-left: 0;
+ padding-left: 0;
+}
+.mp-stat-strip dt {
+ font-size: 12px;
+ color: var(--lb-muted);
+ margin-bottom: 8px;
+}
+.mp-stat-strip dd {
+ margin: 0;
+ font-size: 26px;
+ font-weight: 500;
+ font-variant-numeric: tabular-nums;
+ line-height: 1.2;
+}
+.mp-stat-strip .mp-stat-note {
+ display: block;
+ color: var(--lb-muted);
+ font-size: 12px;
+ font-weight: 400;
+ margin-top: 6px;
+}
+.mp-stat-strip .mp-stat-denominator {
+ color: var(--lb-muted);
+ font-size: 18px;
+ font-weight: 400;
+}
+.mp-stat-strip .lb-compact-value {
+ align-items: flex-start;
+}
+.mp-stat-strip .lb-compact-value > small {
+ font-size: 12px;
+}
+.mp-stat-strip .lb-compact-value[data-score-available="false"] {
+ font-size: 18px;
+}
+.mp-stat-strip .lb-score-track {
+ display: none;
+}
+.mp-overview-body {
+ display: grid;
+ grid-template-columns: minmax(0, 1fr) 280px;
+ gap: 36px;
+}
+.mp-categories h3,
+.mp-record-facts h3 {
+ margin: 0 0 12px;
+ font-size: 13px;
+ font-weight: 500;
+}
+.mp-category-row {
+ margin-bottom: 12px;
+}
+.mp-category-row:last-child {
+ margin-bottom: 0;
+}
+.mp-category-heading {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 12px;
+ font-size: 13px;
+ font-variant-numeric: tabular-nums;
+}
+.mp-category-heading strong {
+ font-weight: 400;
+}
+.mp-category-heading > span {
+ font-weight: 500;
+}
+.mp-category-track {
+ height: 5px;
+ margin: 7px 0 5px;
+ background: var(--lb-soft);
+ border-radius: 2px;
+ overflow: hidden;
+}
+.mp-category-track > span {
+ display: block;
+ height: 100%;
+ width: var(--mp-score);
+ background: var(--lb-teal);
+ border-radius: inherit;
+}
+.mp-category-track[data-available="false"] {
+ background: repeating-linear-gradient(
+ 135deg,
+ var(--lb-soft),
+ var(--lb-soft) 4px,
+ var(--lb-line) 4px,
+ var(--lb-line) 5px
+ );
+}
+.mp-category-detail {
+ display: flex;
+ justify-content: space-between;
+ gap: 8px;
+ font-size: 12px;
+ color: var(--lb-muted);
+}
+.mp-category-detail a {
+ display: inline-flex;
+ align-items: center;
+ gap: 3px;
+ color: var(--lb-ink);
+}
+.mp-category-detail a:hover {
+ text-decoration: underline;
+ text-underline-offset: 3px;
+}
+.mp-record-facts {
+ border-left: 1px solid var(--lb-line);
+ padding-left: 24px;
+}
+.mp-record-facts dl {
+ margin: 0;
+ font-size: 12px;
+}
+.mp-record-facts dl > div {
+ display: grid;
+ grid-template-columns: 90px minmax(0, 1fr);
+ gap: 8px;
+ padding: 5px 0;
+}
+.mp-record-facts dt {
+ color: var(--lb-muted);
+}
+.mp-record-facts dd {
+ margin: 0;
+ overflow-wrap: anywhere;
+}
+.mp-record-facts .mp-inline-link {
+ margin-top: 12px;
+}
+.mp-scope-note {
+ font-size: 12px;
+ line-height: 1.6;
+ color: var(--lb-muted);
+ margin: 12px 0 0;
+ max-width: 90ch;
+}
+.mp-settings {
+ margin: 0 0 24px;
+}
+.mp-settings .mp-section-heading {
+ margin-bottom: 12px;
+}
+.mp-settings-table {
+ width: 100%;
+ table-layout: fixed;
+ border-collapse: collapse;
+ font-size: 13px;
+ font-variant-numeric: tabular-nums;
+}
+.mp-settings-table .mp-setting-column {
+ width: 28%;
+}
+.mp-settings-table th,
+.mp-settings-table td {
+ text-align: right;
+ padding: 10px 12px;
+ border-bottom: 1px solid var(--lb-line);
+ vertical-align: middle;
+ white-space: normal;
+}
+.mp-settings-table thead th {
+ font-size: 12px;
+ font-weight: 400;
+ color: var(--lb-muted);
+ background: var(--lb-soft);
+}
+.mp-settings-table th:first-child {
+ text-align: left;
+ padding-left: 12px;
+}
+.mp-settings-table tbody th {
+ font-weight: 500;
+}
+.mp-settings-table th > small {
+ display: block;
+ font-size: 12px;
+ font-weight: 400;
+ color: var(--lb-muted);
+ margin-top: 4px;
+}
+.mp-settings-table [data-selected="true"] > * {
+ background: var(--lb-soft);
+}
+.mp-setting-choice {
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 8px;
+ border: 0;
+ padding: 0;
+ background: transparent;
+ color: var(--lb-ink);
+ font: inherit;
+ text-align: left;
+}
+.mp-setting-choice > span {
+ color: var(--lb-muted);
+ font-size: 12px;
+ font-weight: 400;
+}
+.mp-setting-choice[aria-pressed="true"] > span {
+ color: var(--lb-teal);
+ font-weight: 500;
+}
+.mp-setting-choice:hover {
+ text-decoration: underline;
+ text-underline-offset: 3px;
+}
+.mp-category-score-link:hover {
+ text-decoration: underline;
+ text-underline-offset: 3px;
+}
+.mp-evidence-sections {
+ border-top: 1px solid var(--lb-line);
+}
+.mp-disclosure {
+ border-bottom: 1px solid var(--lb-line);
+}
+.mp-disclosure > summary {
+ position: relative;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 16px;
+ padding: 16px 24px 16px 0;
+ cursor: pointer;
+ list-style: none;
+ font-size: 14px;
+ font-weight: 500;
+}
+.mp-disclosure > summary::-webkit-details-marker {
+ display: none;
+}
+.mp-disclosure > summary::after {
+ content: "+";
+ position: absolute;
+ right: 0;
+ font-size: 18px;
+ font-weight: 400;
+}
+.mp-disclosure[open] > summary::after {
+ content: "−";
+}
+.mp-disclosure > summary > small {
+ color: var(--lb-muted);
+ font-size: 12px;
+ font-weight: 400;
+}
+.mp-disclosure > .eval-panel {
+ margin: 0 0 16px;
+ border-radius: 6px;
+ box-shadow: none;
+}
+.mp-disclosure .model-profile-history-panel .eval-panel-heading {
+ display: none;
+}
+.mp-disclosure .model-profile-history-panel .model-profile-table {
+ font-size: 12px;
+}
+.mp-disclosure .model-profile-history-panel .eval-table th,
+.mp-disclosure .model-profile-history-panel .eval-table td {
+ padding: 10px 12px;
+}
+.mp-disclosure .model-profile-history-panel .eval-panel-body {
+ padding: 0;
+}
+.mp-downloads {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 8px 20px;
+ margin-bottom: 20px;
+}
+.mp-downloads a {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding-block: 8px;
+ font-size: 12px;
+ text-decoration: underline;
+ text-underline-offset: 3px;
+ overflow-wrap: anywhere;
+}
+.mp-downloads svg {
+ flex-shrink: 0;
+}
+.mp-footer-note {
+ margin: 20px 0 0;
+ color: var(--lb-muted);
+ font-size: 12px;
+ line-height: 1.6;
+ max-width: 90ch;
+}
+.mp-footer-note a {
+ color: var(--lb-ink);
+ text-decoration: underline;
+ text-underline-offset: 3px;
+}
+.mp-empty {
+ padding: 24px 0;
+}
+@media (max-width: 1000px) {
+ .mp-overview-body {
+ grid-template-columns: minmax(0, 1fr) 240px;
+ gap: 24px;
+ }
+ .mp-stat-strip > div {
+ padding-inline: 14px;
+ }
+ .mp-settings-table [data-family] {
+ display: none;
+ }
+ .mp-settings-table .mp-setting-column {
+ width: 40%;
+ }
+}
+@media (max-width: 760px) {
+ .mp-page .mp-content {
+ padding: 0 16px 24px;
+ }
+ .mp-breadcrumbs {
+ padding-top: 14px;
+ }
+ .mp-header {
+ padding: 16px 0;
+ align-items: flex-start;
+ gap: 10px;
+ }
+ .mp-identity {
+ gap: 10px;
+ }
+ .mp-title {
+ font-size: 32px;
+ }
+ .mp-identity .eval-avatar {
+ width: 28px;
+ height: 34px;
+ flex-basis: 28px;
+ }
+ .mp-identity .eval-avatar img {
+ width: 28px;
+ height: 28px;
+ }
+ .mp-header > a {
+ font-size: 12px;
+ margin-top: 4px;
+ }
+ .mp-selection-bar {
+ display: block;
+ padding-bottom: 12px;
+ }
+ .mp-selection-bar label {
+ display: grid;
+ gap: 5px;
+ }
+ .mp-selection-bar select {
+ min-width: 0;
+ width: 100%;
+ max-width: none;
+ font-size: 16px;
+ }
+ .mp-selection-bar > span {
+ display: block;
+ margin-top: 6px;
+ }
+ .mp-overview {
+ padding: 16px;
+ margin-bottom: 20px;
+ }
+ .mp-section-heading h2 {
+ font-size: 22px;
+ }
+ .mp-section-heading .results-info {
+ width: 44px;
+ height: 44px;
+ }
+ .mp-overview .mp-section-heading {
+ margin-bottom: 8px;
+ }
+ .mp-stat-strip {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 16px 0;
+ padding-bottom: 16px;
+ margin-bottom: 16px;
+ }
+ .mp-stat-strip > div {
+ padding: 0 0 0 14px;
+ }
+ .mp-stat-strip > div:nth-child(odd) {
+ border-left: 0;
+ padding-left: 0;
+ }
+ .mp-stat-strip dt {
+ margin-bottom: 6px;
+ }
+ .mp-stat-strip dd {
+ font-size: 24px;
+ }
+ .mp-stat-strip .mp-stat-note {
+ font-size: 12px;
+ line-height: 1.35;
+ }
+ .mp-overview-body {
+ grid-template-columns: minmax(0, 1fr);
+ gap: 20px;
+ }
+ .mp-record-facts {
+ padding: 16px 0 0;
+ border-left: 0;
+ border-top: 1px solid var(--lb-line);
+ }
+ .mp-record-facts dl {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 8px 16px;
+ }
+ .mp-record-facts dl > div {
+ display: block;
+ padding: 0;
+ }
+ .mp-record-facts dt {
+ margin-bottom: 3px;
+ }
+ .mp-record-facts .mp-inline-link {
+ min-height: 44px;
+ margin-top: 4px;
+ }
+ .mp-category-detail a {
+ min-height: 30px;
+ }
+ .mp-category-detail {
+ align-items: center;
+ }
+ .mp-settings .mp-section-heading {
+ align-items: flex-start;
+ }
+ .mp-settings .mp-section-heading > span {
+ flex-shrink: 0;
+ }
+ .mp-settings-table .mp-setting-column {
+ width: 38%;
+ }
+ .mp-settings-table th,
+ .mp-settings-table td {
+ padding: 8px 4px;
+ font-size: 12px;
+ }
+ .mp-settings-table th:first-child {
+ padding-left: 4px;
+ }
+ .mp-settings-table thead th {
+ font-size: 12px;
+ }
+ .mp-settings-table th > small {
+ font-size: 12px;
+ overflow-wrap: anywhere;
+ }
+ .mp-setting-choice {
+ min-height: 44px;
+ gap: 3px;
+ font-size: 12px;
+ }
+ .mp-setting-choice > span {
+ font-size: 12px;
+ }
+ .mp-settings-table .lb-compact-value > small {
+ font-size: 12px;
+ }
+ .mp-disclosure > summary {
+ align-items: flex-start;
+ gap: 8px;
+ padding-block: 14px;
+ }
+ .mp-disclosure > summary > small {
+ max-width: 90px;
+ text-align: right;
+ }
+ .mp-downloads {
+ grid-template-columns: minmax(0, 1fr);
+ }
+}
+@media (pointer: coarse) {
+ .mp-inline-link,
+ .mp-category-detail a,
+ .mp-setting-choice {
+ min-height: 44px;
+ }
+}
diff --git a/apps/evals/src/pages/model-profile.tsx b/apps/evals/src/pages/model-profile.tsx
index a2d62507..0b9d3222 100644
--- a/apps/evals/src/pages/model-profile.tsx
+++ b/apps/evals/src/pages/model-profile.tsx
@@ -3,7 +3,6 @@ import { clientDisplayName } from "../lib/client-labels";
import { ArrowUpRight, ChevronDown, ChevronRight, Download } from "lucide-react";
import {
canonicalCampaigns,
- MEASURED_FAMILIES,
withdrawnRuns,
type CanonicalAttempt,
type CanonicalCampaign,
@@ -23,6 +22,8 @@ import {
publicationFor,
recordedBudgetLabel,
recordedOutcomes,
+ configurationLeaderboardRows,
+ modelProfileRows,
resolveBaselineRun,
runHistoryFor,
type DerivedCost,
@@ -45,8 +46,14 @@ import {
import { CheckDimensionPanel } from "../components/check-dimension-radar";
import { ModelAvatar, PageShell, Panel } from "../components/eval-ui";
import { ModelSettingResults } from "../components/model-setting-results";
+import { ModelProfileOverview } from "../components/model-profile-overview";
import { Button } from "../components/ui/button";
+import { rowKey } from "../components/leaderboard-results";
+import { selectProfileSetting } from "../lib/model-profile-selection";
+import type { LeaderboardModelRow } from "../canonical/selectors";
import "./model-profile.css";
+import "../styles/leaderboard.css";
+import "./model-profile-clean.css";
// ---------------------------------------------------------------------------
// Bundled source artifact downloads (decision 13: byte-identical ?url imports)
@@ -217,135 +224,6 @@ function DerivedCostRow({ cost }: { cost: DerivedCost }) {
);
}
-// ---------------------------------------------------------------------------
-// Metric cards per family (newest representative measured run)
-// ---------------------------------------------------------------------------
-
-function FamilyMetricCards({
- modelId,
- includeSynthetic,
- onSelectRun,
-}: {
- modelId: string;
- includeSynthetic: boolean;
- onSelectRun: (runId: string) => void;
-}) {
- const cards = useMemo(() => {
- return MEASURED_FAMILIES.map((family) => {
- const runs = runHistoryFor(modelId, family).filter(
- (run) => includeSynthetic || run.origin === "measured",
- );
- const representative = runs[0];
- return { family, representative, count: runs.length };
- }).filter((entry) => entry.representative !== undefined);
- }, [modelId, includeSynthetic]);
-
- if (cards.length === 0) return null;
- const levels = [
- ...new Set(
- cards.map(({ representative }) => representative?.configuration.reasoning ?? "unspecified"),
- ),
- ];
-
- return (
- <>
-
-
- Latest recorded {levels.length === 1 ? `${levels[0]} reasoning` : "category results"}
-
-
- A closer look at the newest category runs. Compare every reasoning level in the table
- below.
-
-
-
- {cards.map(({ family, representative }) => {
- if (!representative) return null;
- const headline = headlineFor(representative);
- const unscored = representative.counts.started - representative.counts.graded;
- return (
-
-
- {family}
-
-
-
- Reasoning {representative.configuration.reasoning ?? "not recorded"} ·{" "}
- {clientDisplayName(representative.cohort.target)} ·{" "}
- {recordedBudgetLabel([representative])}
-
-
-
-
-
- {headline.kind === "rate" && passes / started }
-
-
-
-
Graded / planned:
-
- {representative.counts.graded} / {representative.counts.planned}
-
-
-
-
Latency:
-
-
-
-
-
-
Tokens:
-
-
-
-
-
-
- {unscored > 0 ? (
-
- {unscored} unscored (
- {[
- representative.counts.timedOut > 0
- ? `${representative.counts.timedOut} timed out`
- : null,
- representative.counts.runtimeFailure > 0
- ? `${representative.counts.runtimeFailure} runtime failure`
- : null,
- representative.counts.pending > 0
- ? `${representative.counts.pending} pending`
- : null,
- ]
- .filter(Boolean)
- .join(", ")}
- )
-
- ) : (
- All started attempts graded
- )}
-
- onSelectRun(representative.runId)}
- >
- Inspect run {runDisplayLabel(representative.runId)} →
-
-
- );
- })}
-
- >
- );
-}
-
// ---------------------------------------------------------------------------
// Configuration groups
// ---------------------------------------------------------------------------
@@ -1075,8 +953,9 @@ function CampaignsPanel({
Graded does not mean passed. Each graded attempt has a pass or fail
- verdict. Timeouts and run errors remain ungraded; incomplete settings do not receive an
- Overall score.
+ verdict. Terminal timeouts and run errors earn zero success credit without becoming
+ graded failures. Unfinished processing or missing category coverage keeps Overall
+ unavailable.
These are small, live samples. Results reflect the model, client,
@@ -1124,190 +1003,223 @@ export function ModelProfilePage({
initialRunId,
includeSynthetic = false,
}: ModelProfilePageProps) {
- // Strip any query string attached to the prop (e.g. `gpt-5.5?run=…`)
const rawId = propModelId?.split("?")[0] || "gpt-5.5";
const cleanModelId = MODEL_ID_ALIASES[rawId] ?? rawId;
const model = getModel(cleanModelId);
-
- const [expandedRunId, setExpandedRunId] = useState(() => {
- return initialRunId ?? readRunQueryParam();
- });
-
+ const [selectedRunId, setSelectedRunId] = useState(() => initialRunId ?? readRunQueryParam());
+ const [expandedRunId, setExpandedRunId] = useState(() => initialRunId ?? readRunQueryParam());
+ const [historyOpen, setHistoryOpen] = useState(Boolean(initialRunId));
+ const allSettings = useMemo(
+ () => configurationLeaderboardRows().filter((row) => row.model.id === cleanModelId),
+ [cleanModelId],
+ );
+ const settings = useMemo(
+ () => modelProfileRows(cleanModelId, allSettings),
+ [cleanModelId, allSettings],
+ );
+ const selected = selectProfileSetting(cleanModelId, selectedRunId, allSettings);
useEffect(() => {
- if (initialRunId) setExpandedRunId(initialRunId);
+ if (initialRunId) {
+ setSelectedRunId(initialRunId);
+ setExpandedRunId(initialRunId);
+ setHistoryOpen(true);
+ }
}, [initialRunId]);
- if (!model) {
+ if (!model)
return (
-
-
-
-
-
- Leaderboard
- /
- Models
- /
- Not found
-
- Model profile · Conformance harness
-
- Model not found.
-
-
- No canonical model matches the identifier {cleanModelId}.
-
-
- Browse all models
-
-
+
+
);
- }
- // Filter runs by origin: synthetic runs are excluded from app pages (decision 9).
- // They remain reachable when includeSynthetic is true (Storybook).
const runs = runHistoryFor(model.id).filter(
(run) => includeSynthetic || run.origin === "measured",
);
- const museSweepCounts =
- model.id === "muse-spark"
- ? runs.reduce(
- (sum, run) => {
- if (run.campaignId !== "reasoning-sweep-2026-09-16") return sum;
- sum.planned += run.counts.planned;
- sum.graded += run.counts.graded;
- sum.passed += run.counts.passed;
- sum.failed += run.counts.failed;
- sum.unscored += run.counts.timedOut + run.counts.runtimeFailure;
- return sum;
- },
- { planned: 0, graded: 0, passed: 0, failed: 0, unscored: 0 },
- )
- : null;
-
const modelWithdrawn = withdrawnRuns.filter(
- (w) => w.modelId === model.id && (includeSynthetic || w.origin === "measured"),
+ (run) => run.modelId === model.id && (includeSynthetic || run.origin === "measured"),
+ );
+ const campaigns = canonicalCampaigns.filter((campaign) =>
+ runs.some((run) => run.campaignId === campaign.campaignId),
);
-
- const campaignIds = [...new Set(runs.map((run) => run.campaignId))];
- const campaigns = canonicalCampaigns.filter((c) => campaignIds.includes(c.campaignId));
-
const artifacts = MODEL_ARTIFACTS[model.id] ?? [];
+ const historical =
+ selected !== undefined && !settings.some((row) => rowKey(row) === rowKey(selected));
+ const choices = historical ? [...settings, selected] : settings;
+ const selectedRuns = selected ? Object.values(selected.runs) : [];
+ const selectedFirst = selected?.runs.Spot ?? selectedRuns[0];
+ const requestedUnavailable =
+ selectedRunId !== undefined && !selectedRuns.some((run) => run.runId === selectedRunId);
- const handleSelectRun = (runId: string) => {
+ function chooseRun(runId: string) {
+ setSelectedRunId(runId);
+ const params = new URLSearchParams(window.location.hash.split("?")[1]);
+ params.set("run", runId);
+ window.history.replaceState(window.history.state, "", `#/models/${model!.id}?${params}`);
+ }
+ function chooseSetting(row: LeaderboardModelRow) {
+ const run = row.runs.Spot ?? Object.values(row.runs)[0];
+ if (run) chooseRun(run.runId);
+ }
+ function inspectRun(runId: string) {
+ chooseRun(runId);
setExpandedRunId(runId);
- // Let the selected row render before bringing its inline details into view.
- requestAnimationFrame(() => {
- document
- .getElementById(`run-row-${runId}`)
- ?.scrollIntoView({ behavior: "smooth", block: "start" });
- });
- };
-
- const handleToggleRun = (runId: string) => {
- setExpandedRunId((prev) => (prev === runId ? undefined : runId));
- };
+ setHistoryOpen(true);
+ requestAnimationFrame(() =>
+ document.getElementById(`run-row-${runId}`)?.scrollIntoView({
+ behavior: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth",
+ block: "start",
+ }),
+ );
+ }
return (
-
- {/* Hero section */}
-
-
-
-
- Leaderboard
- /
- Models
- /
- {model.name}
-
-
- Model profile ·{" "}
- {model.origin === "synthetic" ? "Synthetic demonstration" : "Measured conformance"}
-
-
-
-
- {model.name}
- .
-
-
+
+
+ Leaderboard
+ /
+ Models
+ /
+ {model.name}
+
+
+
+
+
+
{model.provider} · Financial evaluations
+
{model.name}
-
- {model.provider} · {model.providerModel}
-
-
- {campaigns.length > 0
- ? campaigns.map((c) => `${c.harness} (${c.date}, ${c.repetitions} reps)`).join("; ")
- : "Canonical evaluation profile"}
- . Compare reasoning levels below, then inspect individual tasks and their evidence.
-
- {museSweepCounts !== null && museSweepCounts.planned > 0 && (
-
- Earlier sweep, 16 September. {museSweepCounts.graded} of{" "}
- {museSweepCounts.planned} planned sweep trials were graded: {museSweepCounts.passed}{" "}
- passed, {museSweepCounts.failed} failed and {museSweepCounts.unscored} remain
- unscored in that original campaign. The results below include later recorded
- attempts; the earlier runs remain in history.
-
- )}
-
-
-
+
+ Methodology
+
+
+ {model.origin === "synthetic" && (
+
+ Synthetic demonstration. These are not measured model results.
+
+ )}
+
+
+ Recorded setting
+ {
+ const row = choices.find((entry) => rowKey(entry) === event.target.value);
+ if (row) chooseSetting(row);
+ }}
+ >
+ {choices.length ? (
+ choices.map((row) => (
+
+ {row.configurationLabel} · {Object.values(row.runs)[0]?.startedAt.slice(0, 10)}
+ {historical && selected === row ? " · Historical" : ""}
+
+ ))
+ ) : (
+ No measured setting available
+ )}
+
+
+
+ {historical
+ ? "Historical setting"
+ : selectedRunId && !requestedUnavailable
+ ? "Selected recorded setting"
+ : "Latest recorded setting"}
+ {selectedFirst ? ` · ${selectedFirst.startedAt.slice(0, 10)}` : ""}
+
+
+ {requestedUnavailable && (
+
+ The requested run is unavailable for this model. Showing its latest available recorded
+ setting.
+
+ )}
+ {selected ? (
+
+ ) : (
+
+ No measured summary available
+ Recorded history and publication details are available below.
+
+ )}
+ {model.origin !== "synthetic" && (
+
+ )}
+
+ setHistoryOpen(event.currentTarget.open)}
+ >
+
+ Run history & task evidence
+ {runs.length} recorded runs
+
+
+ setExpandedRunId((current) => (current === runId ? undefined : runId))
+ }
+ />
+
+
+
+ Configuration fingerprints & original downloads
+ Sources & provenance
+
+
+
+ {artifacts.map((artifact) => (
+
+ Original {artifact.description} JSON
+
+ ))}
+
+
+
+
+ Campaigns, coverage & limitations
+ {campaigns.length} campaigns
+
+
+
-
-
- {model.origin !== "synthetic" && }
-
- {/* Run history table with expandable rows */}
-
-
-
- Configuration fingerprints & original downloads
-
-
-
-
- {/* Campaigns & limitations */}
-
+
+ Scores describe financial tool use in recorded evaluations. Spot transaction results are
+ separate from the three tool-use category scores.{" "}
+ How these evaluations work ↗
+
);
diff --git a/apps/evals/src/pages/task-explorer.tsx b/apps/evals/src/pages/task-explorer.tsx
index 24f69b54..20588f5f 100644
--- a/apps/evals/src/pages/task-explorer.tsx
+++ b/apps/evals/src/pages/task-explorer.tsx
@@ -18,7 +18,7 @@ import {
import { ModelAvatar, PageShell } from "../components/eval-ui";
import { seconds } from "../components/results-ui";
import { AttemptConversationPanel } from "../components/conversation-panel";
-import { AttemptChecks, TaskCriteria, TaskRunEvidence } from "../components/task-evidence";
+import { AttemptChecks, TaskRunEvidence } from "../components/task-evidence";
import {
attemptLabel,
taskRunOptions,
@@ -26,7 +26,9 @@ import {
type TaskSelection,
type TaskView,
} from "../lib/task-workspace";
+import "../styles/leaderboard.css";
import "../styles/task-workspace.css";
+import { TaskBrief } from "../components/task-brief";
import { TaskEvidenceTabs } from "../components/task-evidence-tabs";
import { TransactionTaskPanels } from "../components/transaction-task-panels";
import { TRANSACTION_TASKS } from "../lib/transaction-evals";
@@ -140,13 +142,10 @@ export function TaskExplorerPage({
});
const [search, setSearch] = useState(initialSearch);
const [modelSearch, setModelSearch] = useState("");
- const [modelSearchOpen, setModelSearchOpen] = useState(false);
- const evidenceBody = useRef
(null);
+ const [comparisonOpen, setComparisonOpen] = useState(false);
+ const modelSelect = useRef(null);
+ const workspaceContent = useRef(null);
const modelList = useRef(null);
- const modelSearchInput = useRef(null);
- useEffect(() => {
- if (modelSearchOpen) modelSearchInput.current?.focus();
- }, [modelSearchOpen]);
useEffect(() => {
setSelection({
family: initialFamily,
@@ -205,15 +204,21 @@ export function TaskExplorerPage({
const shownModels = rows.filter((entry) =>
`${entry.model.name} ${entry.model.provider}`.toLocaleLowerCase().includes(modelQuery),
);
+ const taskIdentity = transactionTask?.id ?? definition?.caseId;
+ const previousTask = useRef(taskIdentity);
useEffect(() => {
- const body = evidenceBody.current;
+ const changedTask = previousTask.current !== taskIdentity;
+ previousTask.current = taskIdentity;
+ const body = workspaceContent.current?.querySelector(
+ ".task-workspace-evidence",
+ );
if (!body) return;
body.scrollTo({ top: 0 });
- // On phones the document scrolls, so advancing at the end of a transcript
- // should bring the new evidence into view without skipping the initial pickers.
- if (getComputedStyle(body).overflowY === "visible" && body.getBoundingClientRect().top < 0)
- body.scrollIntoView({ block: "start" });
- }, [definition?.caseId, run?.runId, repetition, view]);
+ // New tasks start at their brief; advancing within a long transcript returns
+ // to its evidence. Initial direct links keep the pickers in view.
+ const target = changedTask ? workspaceContent.current : body;
+ if (target && target.getBoundingClientRect().top < 0) target.scrollIntoView({ block: "start" });
+ }, [taskIdentity, run?.runId, selection.modelId, selection.attempt, repetition, view]);
useEffect(() => {
const list = modelList.current;
const selected = list?.querySelector('[aria-pressed="true"]');
@@ -277,6 +282,8 @@ export function TaskExplorerPage({
});
}
function chooseModel(modelId: string) {
+ setComparisonOpen(false);
+ modelSelect.current?.focus();
if (modelId === row?.model.id) return;
move({
modelId,
@@ -286,11 +293,14 @@ export function TaskExplorerPage({
}
return (
-
+
- Tasks
- Compare model responses and inspect the evidence.
+
+
GINA / EVALUATIONS
+
Tasks & evidence
+
+ Explore financial tasks, compare model results, and inspect each attempt.
@@ -311,7 +321,7 @@ export function TaskExplorerPage({
))}
-
+
Search tasks or prompts
- {transactionTask || !definition ? (
- transactionTask && (
-
- )
- ) : (
- <>
-
- {rows.length > 0 && (
-
- Selected model
- chooseModel(event.target.value)}
- >
- {row && !shownModels.includes(row) && (
- {row.model.name} (selected)
- )}
- {shownModels.map((entry) => (
-
- {entry.model.name}
-
- ))}
-
-
- )}
-
-
-
Models
-
- {modelQuery ? `${shownModels.length} of ${rows.length}` : rows.length}{" "}
- models
-
-
-
{
- const expanded = modelSearchOpen || Boolean(modelSearch);
- setModelSearchOpen(!expanded);
- if (expanded) setModelSearch("");
- }}
+
+
+ {transactionTask || !definition ? (
+ transactionTask && (
+
+ )
+ ) : (
+ <>
+ setComparisonOpen(event.currentTarget.open)}
+ >
+
+ Compare model results {rows.length} models
+
+
- {shownModels.length ? (
- <>
-
- {shownModels.map((entry) => {
- const selected = row?.model.id === entry.model.id;
- const modelRun = selected ? run : entry.runs[family];
- return (
+
+
+
Model results
+
+ {modelQuery ? `${shownModels.length} of ${rows.length}` : rows.length}{" "}
+ models
+
+
+
+
+ Search models
+ setModelSearch(event.target.value)}
+ />
+
+
+ {shownModels.length ? (
+ <>
+
+ {shownModels.map((entry) => {
+ const selected = row?.model.id === entry.model.id;
+ const modelRun = selected ? run : entry.runs[family];
+ return (
+ chooseModel(entry.model.id)}
+ >
+
+
+ {entry.model.name}
+
+ {modelRun ? taskSettingLabel(modelRun) : "No measured run"}
+
+
+
+
+
+
+
+ );
+ })}
+
+ >
+ ) : (
+
+
+ {rows.length
+ ? `No models match “${modelSearch}”.`
+ : "No models have recorded results yet."}
+
+ {modelSearch && (
+
setModelSearch("")}>
+ Clear model search
+
+ )}
+
+ )}
+
+ Latest setting per model. History in Recorded setting.
+
+
+
+
+
+
+
+ {row?.model.name ?? "No model selected"} attempt evidence
+
+
+ {row && }
+ {rows.length > 0 && (
+
+ Model
+ chooseModel(event.target.value)}
+ >
+ {rows.map((entry) => (
+
+ {entry.model.name}
+
+ ))}
+
+
+ )}
+
+ {run && (
+
+ Recorded setting
+
+ move({ runId: event.target.value, attempt: undefined })
+ }
+ >
+ {runOptions.map((entry) => (
+
+ {taskSettingLabel(entry)} · {entry.startedAt.slice(0, 10)}
+
+ ))}
+
+
+ )}
+
+ {summary.slots.length > 0 && (
+
+ {summary.slots.map((entry, index) => (
chooseModel(entry.model.id)}
+ className={`task-attempt ${entry?.verdict === "pass" ? "task-attempt-pass" : ""}`}
+ aria-pressed={repetition === index + 1}
+ disabled={!entry}
+ onClick={() => move({ attempt: index + 1 })}
>
-
-
- {entry.model.name}
-
- {modelRun ? taskSettingLabel(modelRun) : "No measured run"}
-
-
-
-
-
-
+ Attempt {index + 1}
+ {attemptLabel(entry)}
- );
- })}
-
- >
- ) : (
-
-
- {rows.length
- ? `No models match “${modelSearch}”.`
- : "No models have recorded results yet."}
-
- {modelSearch && (
-
setModelSearch("")}>
- Clear model search
-
+ ))}
+
)}
+ {attempt && (
+
+
+
+ )}
+
move({ view: next })} />
- )}
-
- Latest setting per model. History in Recorded setting.
-
-
-
-
-
-
{row?.model.name ?? "No model selected"}
- {run && (
-
- Recorded setting
-
- move({ runId: event.target.value, attempt: undefined })
- }
- >
- {runOptions.map((entry) => (
-
- {taskSettingLabel(entry)} · {entry.startedAt.slice(0, 10)}
-
- ))}
-
-
+
+ {summary.status !== "available" && (
+
+
+ {summary.status === "not_evaluated"
+ ? "Not evaluated"
+ : summary.status === "incomplete"
+ ? "Incomplete results"
+ : "Results unavailable"}
+ .
+ {" "}
+ {summary.reason}
+
+ )}
+ {view === "run" ? (
+ run ? (
+
+ ) : (
+
No measured run is available for this model and category.
+ )
+ ) : attempt ? (
+ view === "checks" ? (
+
+ ) : (
+
+ )
+ ) : (
+
+ {summary.slots.length
+ ? `Attempt ${repetition} was not recorded.`
+ : "Individual attempts are not available for this selection."}
+
)}
{summary.slots.length > 0 && (
-
- {summary.slots.map((entry, index) => (
-
move({ attempt: index + 1 })}
- >
- Attempt {index + 1}
- {attemptLabel(entry)}
-
- ))}
+
+
{
+ const previous = summary.slots
+ .slice(0, repetition - 1)
+ .reverse()
+ .find((entry) => entry);
+ if (previous) move({ attempt: previous.repetition });
+ }}
+ >
+
+ Previous attempt
+
+
{
+ const next = summary.slots.slice(repetition).find((entry) => entry);
+ if (next) move({ attempt: next.repetition });
+ }}
+ >
+ Next attempt
+
+
)}
- {attempt && (
-
-
-
- )}
-
move({ view: next })} />
-
-
-
-
- {taskName(definition)} · Prompt & criteria
-
- {prompt}
}
- />
-
-
- {summary.status !== "available" && (
-
-
- {summary.status === "not_evaluated"
- ? "Not evaluated"
- : summary.status === "incomplete"
- ? "Incomplete results"
- : "Results unavailable"}
- .
- {" "}
- {summary.reason}
-
- )}
- {view === "run" ? (
- run ? (
-
- ) : (
-
No measured run is available for this model and category.
- )
- ) : attempt ? (
- view === "checks" ? (
-
- ) : (
-
- )
- ) : (
-
- {summary.slots.length
- ? `Attempt ${repetition} was not recorded.`
- : "Individual attempts are not available for this selection."}
-
- )}
-
- {summary.slots.length > 0 && (
-
-
{
- const previous = summary.slots
- .slice(0, repetition - 1)
- .reverse()
- .find((entry) => entry);
- if (previous) move({ attempt: previous.repetition });
- }}
- >
-
- Previous attempt
-
-
{
- const next = summary.slots.slice(repetition).find((entry) => entry);
- if (next) move({ attempt: next.repetition });
- }}
- >
- Next attempt
-
-
-
- )}
-
- >
- )}
+
+ >
+ )}
+
)}
diff --git a/apps/evals/src/styles/leaderboard-mobile.css b/apps/evals/src/styles/leaderboard-mobile.css
deleted file mode 100644
index 1cc86820..00000000
--- a/apps/evals/src/styles/leaderboard-mobile.css
+++ /dev/null
@@ -1,382 +0,0 @@
-.leaderboard-mobile {
- display: none;
-}
-
-@media (max-width: 760px) {
- .leaderboard-desktop {
- display: none;
- }
- .leaderboard-mobile {
- display: block;
- padding-bottom: 40px;
- }
- .leaderboard-mobile button,
- .leaderboard-mobile select,
- .leaderboard-mobile input {
- font: inherit;
- }
- .leaderboard-mobile button,
- .leaderboard-mobile select {
- min-height: 44px;
- }
- .leaderboard-mobile select {
- width: 100%;
- min-width: 0;
- max-width: 100%;
- padding: 8px 24px 8px 10px;
- border: 1px solid var(--eval-line);
- border-radius: 6px;
- background: var(--eval-paper);
- color: var(--eval-ink);
- font-size: 16px;
- }
- .leaderboard-mobile .results-header {
- padding: 20px 0 12px;
- }
- .leaderboard-mobile .results-header h1 {
- font-size: 32px;
- margin-bottom: 8px;
- }
- .leaderboard-mobile .results-header .eval-description {
- font-size: 12px;
- line-height: 1.5;
- }
- .leaderboard-mobile .results-info {
- min-width: 44px;
- }
- .lb-mobile-searchbar {
- display: flex;
- gap: 8px;
- }
- .lb-mobile-searchbar .results-search {
- min-width: 0;
- flex: 1;
- padding: 8px 10px;
- }
- .lb-mobile-searchbar input {
- min-height: 26px;
- font-size: 16px;
- }
- .lb-mobile-searchbar svg {
- flex-shrink: 0;
- }
- .lb-mobile-filter-trigger {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 6px;
- padding: 8px 10px;
- border: 1px solid var(--eval-line);
- border-radius: 6px;
- font-size: 13px;
- }
- .lb-mobile-filter-trigger[aria-expanded="true"] {
- background: var(--sand-3);
- }
- .lb-mobile-filter-scope {
- display: flex;
- align-items: center;
- gap: 8px;
- min-height: 36px;
- color: var(--eval-muted);
- font-size: 12px;
- }
- .lb-mobile-filter-scope p {
- flex: 1;
- min-width: 0;
- overflow-wrap: anywhere;
- margin: 4px 0;
- }
- .lb-mobile-filter-scope button {
- text-decoration: underline;
- text-underline-offset: 3px;
- padding-inline: 8px;
- }
- .lb-mobile-filters:not([hidden]) {
- display: grid;
- gap: 12px;
- padding: 12px;
- margin-bottom: 12px;
- background: var(--sand-2);
- border: 1px solid var(--eval-line);
- border-radius: 8px;
- }
- .lb-mobile-filters label {
- display: grid;
- gap: 5px;
- min-width: 0;
- font-size: 12px;
- }
- .lb-mobile-filters p {
- font-size: 12px;
- color: var(--eval-muted);
- margin: 0;
- line-height: 1.6;
- }
- .lb-mobile-controls {
- display: grid;
- grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
- gap: 8px;
- margin-top: 12px;
- }
- .lb-mobile-controls label {
- min-width: 0;
- }
- .lb-mobile-result-summary {
- display: flex;
- align-items: center;
- margin: 4px 0;
- color: var(--eval-muted);
- font-size: 12px;
- }
- .lb-mobile-result-summary p {
- flex: 1;
- margin: 0;
- }
- .lb-mobile-sort {
- width: 44px;
- display: grid;
- place-items: center;
- }
- .lb-mobile-results {
- list-style: none;
- padding: 0;
- margin: 0;
- border-top: 1px solid var(--eval-line);
- }
- .lb-mobile-results > li {
- min-width: 0;
- border-bottom: 1px solid var(--eval-line);
- }
- .lb-mobile-row {
- display: grid;
- grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
- align-items: stretch;
- gap: 10px;
- padding: 8px 0;
- }
- .lb-mobile-row[data-selected="true"] {
- background: var(--sand-2);
- }
- .lb-mobile-inspect-trigger {
- display: flex;
- align-items: center;
- gap: 8px;
- width: 100%;
- min-width: 0;
- text-align: left;
- padding: 6px 0;
- }
- .lb-mobile-inspect-trigger > svg {
- flex-shrink: 0;
- transform: rotate(-90deg);
- }
- .lb-mobile-inspect-trigger[aria-expanded="true"] > svg {
- transform: none;
- }
- .lb-mobile-inspect-trigger .eval-avatar,
- .lb-mobile-group-trigger .eval-avatar {
- width: 24px;
- height: 28px;
- flex: 0 0 24px;
- }
- .lb-mobile-model-name {
- min-width: 0;
- flex: 1;
- }
- .lb-mobile-model-name strong {
- display: block;
- font-size: 14px;
- font-weight: 600;
- line-height: 1.4;
- overflow-wrap: anywhere;
- }
- .lb-mobile-model-name small,
- .lb-mobile-group-trigger small {
- display: block;
- font-size: 12px;
- color: var(--eval-muted);
- line-height: 1.5;
- margin-top: 2px;
- overflow-wrap: anywhere;
- }
- .lb-mobile-value {
- align-self: center;
- min-width: 0;
- text-align: right;
- font-size: 17px;
- font-weight: 600;
- font-variant-numeric: tabular-nums;
- padding: 8px 0;
- }
- .lb-mobile-value .results-outcome-value,
- .lb-mobile-value .results-cost-value {
- gap: 2px;
- white-space: normal;
- overflow-wrap: anywhere;
- }
- .lb-mobile-value small {
- font-size: 12px;
- font-weight: 400;
- color: var(--eval-muted);
- }
- .lb-mobile-value [data-complete-score="false"] {
- font-size: 14px;
- }
- .lb-mobile-value [data-complete-score="true"] .results-pass-fail {
- display: none;
- }
- .lb-mobile-value .results-eligibility {
- max-width: none;
- }
- .lb-mobile-group-trigger {
- display: flex;
- gap: 10px;
- align-items: center;
- text-align: left;
- width: 100%;
- padding: 14px 0;
- border-bottom: 1px solid var(--eval-line);
- }
- .lb-mobile-group-trigger > span {
- flex: 1;
- }
- .lb-mobile-group-trigger > svg {
- flex-shrink: 0;
- transform: rotate(-90deg);
- }
- .lb-mobile-group-trigger[aria-expanded="true"] > svg {
- transform: none;
- }
- .lb-mobile-group-note,
- .lb-mobile-footnote {
- font-size: 12px;
- color: var(--eval-muted);
- line-height: 1.6;
- margin: 12px 0;
- }
- .lb-mobile-inspector {
- min-width: 0;
- border: 1px solid var(--eval-line);
- border-radius: 8px;
- margin: 0 0 12px;
- background: var(--sand-2);
- overflow: hidden;
- }
- .lb-mobile-inspector-heading {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 8px 12px 0;
- }
- .lb-mobile-inspector-heading h3 {
- flex: 1;
- min-width: 0;
- font-size: 14px;
- margin: 0;
- }
- .lb-mobile-inspector-heading small {
- display: block;
- font-size: 12px;
- font-weight: 400;
- color: var(--eval-muted);
- }
- .lb-mobile-inspector-heading button {
- display: grid;
- place-items: center;
- width: 44px;
- flex-shrink: 0;
- }
- .lb-mobile-inspector-views {
- display: flex;
- flex-wrap: wrap;
- gap: 0 16px;
- padding: 0 12px;
- border-bottom: 1px solid var(--eval-line);
- font-size: 12px;
- }
- .lb-mobile-inspector-views button {
- color: var(--eval-muted);
- border-bottom: 2px solid transparent;
- }
- .lb-mobile-inspector-views [aria-pressed="true"] {
- color: var(--eval-ink);
- border-color: var(--eval-red);
- }
- .lb-mobile-inspector-views a {
- display: flex;
- align-items: center;
- min-height: 44px;
- text-decoration: underline;
- text-underline-offset: 3px;
- }
- .lb-mobile-inspector-body {
- max-height: 65dvh;
- min-height: 200px;
- overflow-y: auto;
- overscroll-behavior: contain;
- padding: 12px;
- background: var(--eval-paper);
- font-size: 13px;
- overflow-wrap: anywhere;
- }
- .lb-mobile-inspector-body:focus-visible {
- outline-offset: -3px;
- }
- .lb-mobile-inspector .leaderboard-conversations {
- border: 0;
- margin: 0;
- }
- .lb-mobile-inspector .leaderboard-conversations > summary {
- display: none;
- }
- .lb-mobile-inspector .leaderboard-conversations > div {
- padding: 0;
- }
- .lb-mobile-inspector .task-model-picker {
- display: grid;
- grid-template-columns: 54px minmax(0, 1fr);
- gap: 6px;
- margin: 0 0 8px;
- }
- .lb-mobile-inspector .task-model-picker label {
- width: auto;
- align-self: center;
- }
- .lb-mobile-inspector .task-attempt {
- padding: 8px 4px;
- }
- .lb-mobile-inspector .task-attempt span,
- .lb-mobile-inspector .task-attempt strong {
- font-size: 12px;
- }
- .lb-mobile-inspector .conversation-output summary {
- min-height: 44px;
- padding: 10px 0;
- }
- .lb-mobile-inspector .results-facts > div {
- grid-template-columns: 1fr;
- gap: 4px;
- }
- .lb-mobile-inspector .results-facts pre {
- white-space: pre-wrap;
- overflow-wrap: anywhere;
- }
- .lb-mobile-task-link {
- display: flex;
- align-items: center;
- min-height: 44px;
- text-decoration: underline !important;
- text-underline-offset: 3px;
- }
- .leaderboard-mobile .lb-chart-section {
- border-top: 1px solid var(--eval-line);
- border-bottom: 1px solid var(--eval-line);
- margin: 0;
- padding: 16px 0 12px;
- }
- .leaderboard-mobile .lb-chart-heading {
- align-items: flex-start;
- flex-direction: column;
- }
-}
diff --git a/apps/evals/src/styles/leaderboard.css b/apps/evals/src/styles/leaderboard.css
new file mode 100644
index 00000000..2b9c1f9c
--- /dev/null
+++ b/apps/evals/src/styles/leaderboard.css
@@ -0,0 +1,1160 @@
+.lb-page {
+ --lb-paper: oklch(99% 0.004 85);
+ --lb-ink: oklch(23% 0.007 75);
+ --lb-muted: oklch(47% 0.009 75);
+ --lb-line: oklch(90% 0.009 85);
+ --lb-soft: oklch(96.5% 0.007 85);
+ --lb-teal: oklch(40% 0.07 175);
+ --eval-paper: var(--lb-paper);
+ --eval-ink: var(--lb-ink);
+ --eval-muted: var(--lb-muted);
+ background: var(--lb-paper);
+ color: var(--lb-ink);
+}
+.lb-page .eval-header {
+ min-height: 56px;
+ padding: 8px 28px;
+ max-width: 1336px;
+ border-bottom: 1px solid var(--lb-line);
+}
+.lb-page .eval-wordmark > img:first-child {
+ width: 32px;
+ height: 32px;
+}
+.lb-page .eval-wordmark :is(.eval-wordmark-light, .eval-wordmark-dark) {
+ height: 22px;
+}
+.lb-page .lb-content {
+ max-width: 1336px;
+ width: 100%;
+ padding: 0 28px 32px;
+}
+.lb-page-heading {
+ display: flex;
+ align-items: end;
+ justify-content: space-between;
+ gap: 24px;
+ padding: 10px 0 8px;
+}
+.lb-page-heading h1 {
+ font-family: var(--font-heading);
+ font-size: 36px;
+ font-weight: 400;
+ line-height: 1.05;
+ letter-spacing: -0.035em;
+ margin: 0;
+}
+.lb-eyebrow {
+ font-size: 12px;
+ letter-spacing: 0.09em;
+ color: var(--lb-muted);
+ margin: 0 0 4px;
+ line-height: 1.2;
+}
+.lb-page-heading > p {
+ color: var(--lb-muted);
+ font-size: 13px;
+ line-height: 1.4;
+ max-width: 340px;
+ margin: 0 0 2px;
+}
+.lb-toolbar {
+ display: flex;
+ gap: 8px;
+ align-items: center;
+ margin-bottom: 12px;
+}
+.lb-search {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ width: 290px;
+ min-width: 0;
+ color: var(--lb-muted);
+ border: 1px solid var(--lb-line);
+ border-radius: 6px;
+ padding: 0 10px;
+ background: var(--eval-paper);
+}
+.lb-search input {
+ width: 100%;
+ min-width: 0;
+ height: 36px;
+ font-size: 13px;
+ background: transparent;
+ color: var(--lb-ink);
+ border: 0;
+}
+.lb-page .lb-search input:focus-visible {
+ outline: none;
+}
+.lb-search:focus-within {
+ outline: 2px solid var(--ring);
+ outline-offset: 2px;
+}
+.lb-page select {
+ min-width: 0;
+ max-width: 100%;
+ color: var(--lb-ink);
+ background: var(--lb-paper);
+ border: 1px solid var(--lb-line);
+ border-radius: 6px;
+ padding: 7px 24px 7px 10px;
+ font-size: 13px;
+}
+.lb-campaign select {
+ height: 38px;
+ max-width: 260px;
+}
+.lb-filter-trigger {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 6px;
+ height: 38px;
+ border: 1px solid var(--lb-line);
+ border-radius: 6px;
+ padding: 0 10px;
+ background: transparent;
+ font-size: 13px;
+}
+.lb-filter-trigger[aria-expanded="true"] {
+ background: var(--lb-soft);
+}
+.lb-filter-trigger > span {
+ color: var(--lb-teal);
+ font-weight: 600;
+}
+.lb-result-count {
+ margin: 0 0 0 auto;
+ color: var(--lb-muted);
+ font-size: 12px;
+ white-space: nowrap;
+ font-variant-numeric: tabular-nums;
+}
+.lb-filter-scope {
+ display: none;
+ font-size: 12px;
+ color: var(--lb-muted);
+}
+.lb-filter-scope:has(button) {
+ display: flex;
+ justify-content: space-between;
+ gap: 12px;
+ margin: -4px 0 8px;
+}
+.lb-filter-scope button {
+ color: var(--lb-ink);
+ text-decoration: underline;
+ background: transparent;
+ border: 0;
+}
+.lb-advanced-filters:not([hidden]) {
+ display: flex;
+ align-items: end;
+ flex-wrap: wrap;
+ gap: 16px;
+ padding: 12px;
+ margin-bottom: 12px;
+ background: var(--lb-soft);
+ border-radius: 6px;
+}
+.lb-advanced-filters label {
+ display: grid;
+ gap: 4px;
+ font-size: 12px;
+}
+.lb-advanced-filters p {
+ flex: 1;
+ min-width: 220px;
+ font-size: 12px;
+ margin: 0 0 7px;
+ color: var(--lb-muted);
+}
+.lb-group-control {
+ display: none !important;
+}
+.lb-mobile-campaign-control {
+ display: none !important;
+}
+.lb-overview {
+ margin-bottom: 10px;
+ padding-bottom: 4px;
+ border-bottom: 1px solid var(--lb-line);
+}
+.lb-overview-toolbar {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ margin-bottom: 2px;
+ min-height: 26px;
+}
+.lb-view-switch {
+ display: inline-flex;
+ gap: 18px;
+ align-items: center;
+}
+.lb-view-switch button {
+ color: var(--lb-muted);
+ background: transparent;
+ border: 0;
+ padding: 4px 0;
+ border-bottom: 1px solid transparent;
+ font-size: 13px;
+}
+.lb-view-switch [aria-pressed="true"] {
+ color: var(--lb-ink);
+ border-bottom-color: var(--eval-red);
+}
+.lb-overview-pagination {
+ display: flex;
+ gap: 4px;
+ align-items: center;
+ color: var(--lb-muted);
+ font-size: 12px;
+}
+.lb-overview-pagination > span {
+ margin-right: 8px;
+}
+.lb-overview-pagination button {
+ width: 26px;
+ height: 26px;
+ display: grid;
+ place-items: center;
+ border: 1px solid var(--lb-line);
+ border-radius: 4px;
+ background: transparent;
+ color: var(--lb-ink);
+}
+.lb-mobile-overview-trigger {
+ display: none;
+}
+.lb-matrix {
+ border-collapse: separate;
+ border-spacing: 4px 3px;
+ table-layout: fixed;
+ width: calc(100% + 8px);
+ margin: 0 -4px;
+ font-size: 12px;
+ font-variant-numeric: tabular-nums;
+}
+.lb-matrix-wide th:first-child,
+.lb-matrix-wide thead td {
+ width: 100px;
+}
+.lb-matrix th {
+ font-weight: 400;
+ text-align: left;
+}
+.lb-matrix td,
+.lb-matrix th {
+ padding: 0;
+}
+.lb-matrix thead th {
+ height: 34px;
+ vertical-align: bottom;
+ padding-bottom: 3px;
+}
+.lb-matrix th a {
+ display: flex;
+ gap: 5px;
+ align-items: center;
+ font-weight: 500;
+ min-width: 0;
+ line-height: 1.2;
+}
+.lb-matrix th a > span:last-child {
+ min-width: 0;
+ overflow-wrap: anywhere;
+}
+.lb-matrix .eval-avatar {
+ width: 18px;
+ height: 20px;
+ flex: 0 0 18px;
+}
+.lb-matrix .eval-avatar img {
+ width: 18px;
+ height: 18px;
+}
+.lb-matrix small {
+ display: block;
+ color: var(--lb-muted);
+ font-size: 12px;
+ font-weight: 400;
+ margin-top: 2px;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+.lb-matrix tbody th {
+ color: var(--lb-muted);
+ padding-right: 8px;
+}
+.lb-matrix th[data-active="true"] {
+ color: var(--lb-teal);
+}
+.lb-heat-cell {
+ display: block;
+ width: 100%;
+ border: 0;
+ height: 22px;
+ padding: 2px;
+ border-radius: 3px;
+ font-size: 12px;
+ font-weight: 500;
+ font-variant-numeric: tabular-nums;
+ color: var(--lb-ink);
+ transition: box-shadow 150ms ease-out;
+}
+.lb-heat-cell[data-highlight="true"] {
+ box-shadow: inset 0 0 0 1px var(--lb-teal);
+}
+.lb-heat-cell[data-band="0"] {
+ background: oklch(95% 0.012 155);
+}
+.lb-heat-cell[data-band="1"] {
+ background: oklch(92% 0.025 158);
+}
+.lb-heat-cell[data-band="2"] {
+ background: oklch(88% 0.04 160);
+}
+.lb-heat-cell[data-band="3"] {
+ background: oklch(83% 0.055 162);
+}
+.lb-heat-cell[data-band="4"] {
+ background: oklch(77% 0.07 165);
+}
+.lb-heat-cell[data-band="5"] {
+ background: oklch(70% 0.08 168);
+}
+.lb-heat-cell[data-band="6"] {
+ background: oklch(54% 0.085 170);
+ color: var(--lb-paper);
+}
+.lb-heat-cell[data-band="7"] {
+ background: oklch(47% 0.085 172);
+ color: var(--lb-paper);
+}
+.lb-heat-cell[data-band="8"] {
+ background: oklch(42% 0.075 175);
+ color: var(--lb-paper);
+}
+.lb-heat-cell[data-band="9"] {
+ background: oklch(34% 0.06 178);
+ color: var(--lb-paper);
+}
+.lb-heat-cell[data-overall="true"] {
+ color: var(--lb-ink);
+ background: var(--lb-soft);
+ font-weight: 600;
+}
+.lb-matrix [data-overall="true"] th {
+ color: var(--lb-ink);
+ font-weight: 500;
+}
+.lb-heat-cell[data-band="missing"] {
+ color: var(--lb-muted);
+ background: repeating-linear-gradient(
+ 135deg,
+ var(--lb-soft),
+ var(--lb-soft) 4px,
+ var(--lb-line) 4px,
+ var(--lb-line) 5px
+ );
+}
+.lb-overview-caption {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 12px;
+ color: var(--lb-muted);
+ font-size: 12px;
+ line-height: 1.2;
+ margin-top: 3px;
+}
+.lb-heat-legend {
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+ white-space: nowrap;
+}
+.lb-heat-legend i {
+ display: inline-block;
+ width: 54px;
+ height: 5px;
+ border-radius: 2px;
+ background: linear-gradient(to right, oklch(95% 0.012 155), oklch(34% 0.06 178));
+}
+.lb-matrix-narrow {
+ display: none;
+}
+.lb-overview .lb-chart-section {
+ padding: 8px 0 0;
+ border: 0;
+ margin: 0;
+}
+.lb-overview .lb-chart-heading h2 {
+ font-size: 18px;
+}
+.lb-overview .lb-chart-caption {
+ margin-bottom: 0;
+}
+.lb-heat-popover {
+ --eval-muted: var(--muted-foreground);
+ transition:
+ opacity 140ms ease-out,
+ transform 140ms ease-out;
+}
+.lb-heat-popover[data-starting-style],
+.lb-heat-popover[data-ending-style] {
+ opacity: 0;
+ transform: translateY(3px);
+}
+.lb-responsive-controls {
+ display: none;
+}
+.lb-table-wrap {
+ border: 1px solid var(--lb-line);
+ border-radius: 8px;
+ overflow: clip;
+}
+.lb-table {
+ width: 100%;
+ min-width: 0;
+ border-collapse: collapse;
+ table-layout: fixed;
+ font-size: 13px;
+ font-variant-numeric: tabular-nums;
+}
+.lb-table .lb-col-position {
+ width: 36px;
+}
+.lb-table .lb-col-evidence {
+ width: 44px;
+}
+.lb-table col[data-column="overall"] {
+ width: 100px;
+}
+.lb-table col[data-column="Spot"],
+.lb-table col[data-column="Perps"] {
+ width: 94px;
+}
+.lb-table col[data-column="Predictions"] {
+ width: 114px;
+}
+.lb-table col[data-column="time"] {
+ width: 104px;
+}
+.lb-table col[data-column="cost"] {
+ width: 136px;
+}
+.lb-table th,
+.lb-table td {
+ padding: 8px 12px;
+ border-bottom: 1px solid var(--lb-line);
+ vertical-align: middle;
+ text-align: right;
+ white-space: normal;
+}
+.lb-table th[scope="row"],
+.lb-table thead th:nth-child(2) {
+ text-align: left;
+}
+.lb-table .lb-position {
+ color: var(--lb-muted);
+ padding: 8px 0 8px 12px;
+ font-size: 12px;
+ text-align: left;
+}
+.lb-table thead th {
+ height: 38px;
+ padding-top: 5px;
+ padding-bottom: 5px;
+ background: var(--lb-soft);
+ color: var(--lb-muted);
+ font-size: 12px;
+ font-weight: 400;
+}
+.lb-table tbody tr:last-child > * {
+ border-bottom: 0;
+}
+.lb-data-row {
+ cursor: pointer;
+}
+.lb-data-row > * {
+ transition: background-color 150ms ease-out;
+}
+.lb-data-row:hover > *,
+.lb-data-row:focus-within > * {
+ background: var(--lb-soft);
+}
+.lb-column-heading {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: 3px;
+}
+.lb-sort {
+ border: 0;
+ padding: 4px 0;
+ background: transparent;
+ color: inherit;
+ display: flex;
+ gap: 4px;
+ align-items: center;
+ text-align: right;
+ font-size: 12px;
+ white-space: nowrap;
+}
+.lb-column-heading .results-info {
+ width: 16px;
+ height: 22px;
+ min-width: 16px;
+}
+.lb-column-heading .results-info svg {
+ width: 12px;
+ height: 12px;
+}
+.lb-identity {
+ display: flex;
+ align-items: center;
+ gap: 9px;
+ min-width: 0;
+ font-weight: 500;
+}
+.lb-identity > div {
+ min-width: 0;
+}
+.lb-identity .eval-avatar {
+ flex: 0 0 22px;
+ width: 22px;
+ height: 24px;
+}
+.lb-identity .eval-avatar img {
+ width: 22px;
+ height: 22px;
+}
+.lb-identity a {
+ line-height: 1.25;
+ overflow-wrap: anywhere;
+}
+.lb-identity a:hover {
+ text-decoration: underline;
+ text-underline-offset: 3px;
+}
+.lb-identity small {
+ display: block;
+ font-size: 12px;
+ font-weight: 400;
+ color: var(--lb-muted);
+ line-height: 1.3;
+ margin-top: 3px;
+ overflow-wrap: anywhere;
+}
+.lb-record-flag {
+ font-size: 12px;
+}
+.lb-compact-value {
+ display: inline-flex;
+ flex-direction: column;
+ align-items: flex-end;
+ gap: 2px;
+ max-width: 100%;
+ line-height: 1.25;
+}
+.lb-compact-value > small {
+ display: block;
+ font-size: 12px;
+ font-weight: 400;
+ color: var(--lb-muted);
+ overflow-wrap: anywhere;
+}
+.lb-compact-value[data-score-available="false"] {
+ font-size: 12px;
+ color: var(--lb-muted);
+}
+.lb-table td[data-column="overall"] > .lb-compact-value {
+ font-size: 14px;
+ font-weight: 600;
+}
+.lb-score-track {
+ display: block;
+ width: 44px;
+ height: 2px;
+ background: var(--lb-line);
+ position: relative;
+ overflow: hidden;
+ border-radius: 1px;
+}
+.lb-score-track::after {
+ content: "";
+ display: block;
+ width: var(--lb-score);
+ height: 100%;
+ background: var(--lb-teal);
+}
+.lb-evidence-trigger {
+ width: 28px;
+ height: 36px;
+ display: inline-grid;
+ place-items: center;
+ padding: 0;
+ background: transparent;
+ color: var(--lb-muted);
+ border: 0;
+ border-radius: 4px;
+}
+.lb-evidence-trigger:hover,
+.lb-evidence-trigger[aria-expanded="true"] {
+ color: var(--lb-ink);
+ background: var(--lb-line);
+}
+.lb-table td:last-child {
+ padding-inline: 4px;
+ text-align: center;
+}
+.lb-transactions-note:empty {
+ display: none;
+}
+.lb-transactions-note .results-transactions-line {
+ font-size: 12px;
+ line-height: 1.2;
+ margin-top: 3px;
+ white-space: normal;
+}
+.lb-expanded-row > td {
+ text-align: left;
+ padding: 16px 24px;
+ background: var(--lb-soft);
+}
+.lb-evidence {
+ font-size: 13px;
+ overflow-wrap: anywhere;
+}
+.lb-evidence .results-outcome-value small,
+.lb-heat-popover .results-outcome-value small {
+ font-size: 12px;
+}
+.lb-evidence-heading h3 {
+ margin: 0 0 4px;
+ font-size: 16px;
+ font-weight: 500;
+}
+.lb-evidence-heading h3 span {
+ font-weight: 400;
+ color: var(--lb-muted);
+ font-size: 13px;
+}
+.lb-evidence-heading p {
+ color: var(--lb-muted);
+ margin: 0;
+}
+.lb-evidence-summary {
+ display: flex;
+ gap: 32px;
+ margin: 12px 0;
+}
+.lb-evidence-summary p {
+ margin: 0 0 5px;
+}
+.lb-evidence .results-facts {
+ white-space: normal;
+}
+.lb-evidence .results-run-details {
+ margin: 18px 0 8px;
+}
+.lb-footnote {
+ color: var(--lb-muted);
+ font-size: 12px;
+ max-width: 95ch;
+ margin: 16px 0 0;
+ line-height: 1.6;
+}
+.lb-footnote a {
+ text-decoration: underline;
+ text-underline-offset: 3px;
+ color: var(--lb-ink);
+}
+.lb-page .leaderboard-mobile {
+ display: none;
+}
+.lb-page .eval-footer {
+ max-width: 1336px;
+ padding-inline: 28px;
+ font-size: 12px;
+}
+@media (max-width: 1099px) {
+ .lb-page .eval-header,
+ .lb-page .lb-content {
+ padding-inline: 24px;
+ }
+ .lb-page-heading {
+ align-items: flex-start;
+ flex-direction: column;
+ gap: 8px;
+ }
+ .lb-page-heading > p {
+ max-width: none;
+ }
+ .lb-matrix-wide {
+ display: none;
+ }
+ .lb-matrix-narrow {
+ display: table;
+ }
+ .lb-matrix-narrow th:first-child {
+ width: 38%;
+ }
+ .lb-matrix-narrow thead th {
+ height: 24px;
+ text-align: center;
+ }
+ .lb-matrix-narrow thead th:first-child {
+ text-align: left;
+ }
+ .lb-matrix-narrow .lb-heat-cell {
+ height: 44px;
+ }
+ .lb-matrix-narrow th a {
+ min-height: 44px;
+ }
+ .lb-responsive-controls {
+ display: flex;
+ gap: 8px;
+ align-items: center;
+ margin: 0 0 12px;
+ }
+ .lb-responsive-controls label {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ font-size: 12px;
+ color: var(--lb-muted);
+ }
+ .lb-responsive-controls > button {
+ display: grid;
+ place-items: center;
+ height: 36px;
+ width: 32px;
+ border: 1px solid var(--lb-line);
+ border-radius: 6px;
+ background: transparent;
+ }
+ .lb-efficiency-switch {
+ display: inline-flex;
+ border: 1px solid var(--lb-line);
+ border-radius: 6px;
+ margin-left: auto;
+ }
+ .lb-efficiency-switch button {
+ border: 0;
+ background: transparent;
+ padding: 8px 12px;
+ font-size: 12px;
+ color: var(--lb-muted);
+ }
+ .lb-efficiency-switch [aria-pressed="true"] {
+ color: var(--lb-ink);
+ background: var(--lb-soft);
+ }
+ .lb-table [data-column]:not([data-column="overall"]):not([data-selected="true"]) {
+ display: none;
+ }
+ .lb-table col[data-column] {
+ width: 120px;
+ }
+ .lb-result-count {
+ font-size: 12px;
+ }
+}
+@media (max-width: 760px) {
+ .lb-page .eval-header {
+ flex-wrap: wrap;
+ gap: 4px;
+ padding: 8px 16px 0;
+ }
+ .lb-page .eval-wordmark {
+ margin-right: auto;
+ }
+ .lb-page .eval-nav {
+ width: 100%;
+ margin: 0;
+ gap: 0;
+ justify-content: space-between;
+ overflow: visible;
+ }
+ .lb-page .eval-nav a {
+ font-size: 12px;
+ line-height: 36px;
+ }
+ .lb-page .lb-content {
+ padding: 0 16px 24px;
+ }
+ .lb-page-heading {
+ padding: 16px 0 12px;
+ gap: 6px;
+ }
+ .lb-page-heading h1 {
+ font-size: 30px;
+ }
+ .lb-eyebrow {
+ display: none;
+ }
+ .lb-page-heading > p {
+ font-size: 12px;
+ line-height: 1.5;
+ }
+ .lb-toolbar {
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-bottom: 0;
+ }
+ .lb-search {
+ flex: 1;
+ width: auto;
+ }
+ .lb-search input {
+ height: 42px;
+ font-size: 16px;
+ }
+ .lb-filter-trigger {
+ height: 44px;
+ }
+ .lb-campaign {
+ display: none;
+ }
+ .lb-result-count {
+ display: none;
+ }
+ .lb-filter-scope,
+ .lb-filter-scope:has(button) {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ min-height: 32px;
+ margin: 0;
+ }
+ .lb-filter-scope button {
+ min-height: 32px;
+ }
+ .lb-advanced-filters:not([hidden]) {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 12px;
+ padding: 12px;
+ margin: 4px 0 8px;
+ }
+ .lb-advanced-filters p {
+ grid-column: 1 / -1;
+ min-width: 0;
+ margin: 0;
+ }
+ .lb-page select {
+ min-height: 44px;
+ font-size: 16px;
+ }
+ .lb-group-control {
+ display: grid !important;
+ }
+ .lb-mobile-campaign-control {
+ display: grid !important;
+ grid-column: 1 / -1;
+ }
+ .lb-overview {
+ padding: 0;
+ margin: 0 0 8px;
+ border-top: 1px solid var(--lb-line);
+ }
+ .lb-mobile-overview-trigger {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ width: 100%;
+ min-height: 44px;
+ padding: 0;
+ font-size: 13px;
+ background: transparent;
+ border: 0;
+ color: var(--lb-ink);
+ }
+ .lb-mobile-overview-trigger svg {
+ transition: transform 160ms ease-out;
+ }
+ .lb-mobile-overview-trigger[aria-expanded="true"] svg {
+ transform: rotate(180deg);
+ }
+ .lb-overview[data-mobile-open="false"] .lb-overview-inner {
+ display: none;
+ }
+ .lb-overview-inner {
+ padding-bottom: 12px;
+ }
+ .lb-overview-toolbar {
+ flex-wrap: wrap;
+ gap: 4px;
+ }
+ .lb-view-switch button {
+ min-height: 44px;
+ }
+ .lb-overview-sort {
+ display: none;
+ }
+ .lb-overview-pagination {
+ margin-left: auto;
+ }
+ .lb-overview-pagination button {
+ width: 44px;
+ height: 44px;
+ }
+ .lb-overview-pagination > span {
+ margin-right: 0;
+ }
+ .lb-matrix-narrow {
+ border-spacing: 2px 4px;
+ width: calc(100% + 4px);
+ margin-inline: -2px;
+ }
+ .lb-matrix-narrow th:first-child {
+ width: 40%;
+ }
+ .lb-matrix-narrow .eval-avatar {
+ display: flex;
+ width: 18px;
+ height: 22px;
+ flex: 0 0 18px;
+ }
+ .lb-matrix-narrow .eval-avatar img {
+ width: 18px;
+ height: 18px;
+ }
+ .lb-matrix-narrow [data-overall="true"] {
+ display: none;
+ }
+ .lb-matrix-narrow th a {
+ font-size: 12px;
+ padding-right: 4px;
+ gap: 6px;
+ }
+ .lb-matrix-narrow th small {
+ white-space: normal;
+ }
+ .lb-heat-cell {
+ font-size: 12px;
+ }
+ .lb-overview-caption {
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 6px;
+ }
+ .lb-responsive-controls {
+ margin-bottom: 0;
+ gap: 6px;
+ }
+ .lb-responsive-controls label {
+ gap: 4px;
+ font-size: 12px;
+ min-width: 0;
+ }
+ .lb-responsive-controls label select {
+ font-size: 13px;
+ padding-inline: 8px 20px;
+ max-width: 145px;
+ }
+ .lb-responsive-controls > button {
+ height: 44px;
+ min-width: 44px;
+ }
+ .lb-responsive-controls .lb-category-control {
+ display: none;
+ }
+ .lb-efficiency-switch button {
+ min-height: 44px;
+ padding-inline: 9px;
+ }
+ .lb-responsive-controls .lb-efficiency-switch {
+ display: none;
+ }
+ .lb-page .leaderboard-desktop {
+ display: none;
+ }
+ .lb-page .leaderboard-mobile {
+ display: block;
+ }
+ .lb-mobile-list-heading {
+ display: flex;
+ align-items: center;
+ min-height: 34px;
+ gap: 8px;
+ color: var(--lb-muted);
+ font-size: 12px;
+ border-bottom: 1px solid var(--lb-line);
+ }
+ .lb-mobile-list-heading > span:nth-child(2) {
+ margin-left: auto;
+ }
+ .lb-mobile-list-heading .results-info {
+ width: 44px;
+ height: 44px;
+ }
+ .lb-mobile-results {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+ .lb-mobile-results[hidden] {
+ display: none;
+ }
+ .lb-mobile-results > li {
+ border-bottom: 1px solid var(--lb-line);
+ }
+ .lb-mobile-row {
+ display: grid;
+ grid-template-columns: 16px minmax(0, 1fr) 66px 44px;
+ column-gap: 5px;
+ align-items: center;
+ padding: 6px 0;
+ cursor: pointer;
+ }
+ .lb-mobile-position {
+ font-size: 12px;
+ color: var(--lb-muted);
+ align-self: start;
+ padding-top: 2px;
+ }
+ .lb-mobile-row .lb-identity {
+ gap: 6px;
+ align-items: flex-start;
+ }
+ .lb-mobile-row .lb-identity .eval-avatar {
+ width: 18px;
+ height: 22px;
+ flex-basis: 18px;
+ }
+ .lb-mobile-row .lb-identity .eval-avatar img {
+ width: 18px;
+ height: 18px;
+ }
+ .lb-mobile-row .lb-identity a {
+ font-size: 13px;
+ }
+ .lb-mobile-row .lb-identity small {
+ font-size: 12px;
+ line-height: 1.25;
+ margin-top: 2px;
+ }
+ .lb-mobile-row .lb-record-flag {
+ font-size: 12px;
+ }
+ .lb-mobile-value {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ font-size: 14px;
+ font-weight: 600;
+ }
+ .lb-mobile-value > small {
+ margin-top: 2px;
+ font-size: 12px;
+ font-weight: 400;
+ color: var(--lb-muted);
+ }
+ .lb-mobile-value .lb-score-track {
+ display: none;
+ }
+ .lb-mobile-row .lb-evidence-trigger {
+ width: 44px;
+ height: 44px;
+ }
+ .lb-mobile-category-strip {
+ grid-column: 2 / -1;
+ display: flex;
+ flex-wrap: wrap;
+ align-items: baseline;
+ gap: 4px 10px;
+ margin-top: 3px;
+ font-size: 12px;
+ color: var(--lb-muted);
+ line-height: 1.25;
+ }
+ .lb-mobile-category-strip > span {
+ display: flex;
+ align-items: baseline;
+ gap: 4px;
+ }
+ .lb-mobile-category-strip .results-transactions-line {
+ margin: 0;
+ font-size: 12px;
+ }
+ .lb-mobile-category-strip .lb-compact-value {
+ color: var(--lb-ink);
+ }
+ .lb-mobile-category-strip .lb-compact-value small {
+ display: none;
+ }
+ .lb-mobile-row:hover,
+ .lb-mobile-row:focus-within,
+ .lb-mobile-row[data-selected="true"] {
+ background: var(--lb-soft);
+ }
+ .lb-mobile-group-note {
+ font-size: 12px;
+ color: var(--lb-muted);
+ }
+ .lb-mobile-group-trigger {
+ display: flex;
+ align-items: center;
+ width: 100%;
+ min-height: 44px;
+ gap: 8px;
+ padding: 8px 0;
+ background: transparent;
+ border: 0;
+ border-bottom: 1px solid var(--lb-line);
+ color: var(--lb-ink);
+ font-size: 13px;
+ text-align: left;
+ }
+ .lb-mobile-group-trigger > span {
+ margin-left: auto;
+ color: var(--lb-muted);
+ font-size: 12px;
+ }
+ .lb-mobile-group-trigger[aria-expanded="true"] > svg {
+ transform: rotate(180deg);
+ }
+ .leaderboard-mobile .lb-evidence {
+ background: var(--lb-soft);
+ padding: 12px;
+ border-radius: 6px;
+ }
+ .lb-evidence-summary {
+ flex-direction: column;
+ gap: 12px;
+ }
+ .lb-footnote {
+ font-size: 12px;
+ }
+}
+@media (pointer: coarse) {
+ .lb-heat-cell {
+ min-height: 44px;
+ }
+ .lb-page button:not(.lb-heat-cell),
+ .lb-page .results-info {
+ min-height: 44px;
+ }
+ .lb-evidence-trigger {
+ min-width: 44px;
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .lb-heat-popover,
+ .lb-heat-cell,
+ .lb-data-row > *,
+ .lb-mobile-overview-trigger svg {
+ transition: none;
+ }
+}
diff --git a/apps/evals/src/styles/task-workspace.css b/apps/evals/src/styles/task-workspace.css
index e169395d..10f1cb6a 100644
--- a/apps/evals/src/styles/task-workspace.css
+++ b/apps/evals/src/styles/task-workspace.css
@@ -1,119 +1,95 @@
-/* A viewport workspace on larger screens; a single reading flow on phones. */
+/* Task → model → attempt. Page scrolling keeps evidence in one reading flow. */
.task-workspace-shell {
- height: 100dvh;
- min-height: 36rem;
- display: flex;
- flex-direction: column;
- overflow: hidden;
-}
-.task-workspace-shell .eval-main,
-.task-workspace-page {
- display: flex;
- flex-direction: column;
- flex: 1;
- min-height: 0;
-}
-.task-workspace-shell .eval-footer {
- display: none;
+ --eval-line: var(--lb-line);
}
.task-workspace-shell .task-workspace-page {
- max-width: none;
- padding: 0 24px 12px;
+ max-width: 1336px;
+ padding: 20px 28px 32px;
}
.task-workspace-page-heading {
display: flex;
- align-items: baseline;
- gap: 20px;
- padding: 4px 0 8px;
+ justify-content: space-between;
+ align-items: end;
+ gap: 24px;
+ margin-bottom: 20px;
}
.task-workspace-page-heading h1 {
- font-family: var(--font-heading), Georgia, serif;
- font-size: 32px;
+ font-family: var(--font-heading);
+ font-size: 36px;
font-weight: 400;
- letter-spacing: -0.04em;
- line-height: 1.2;
+ letter-spacing: -0.035em;
+ line-height: 1.1;
margin: 0;
}
-.task-workspace-page-heading p {
- margin: 0;
- color: var(--eval-muted);
+.task-workspace-page-heading > p {
+ max-width: 390px;
+ margin: 0 0 2px;
+ color: var(--lb-muted);
font-size: 13px;
+ line-height: 1.5;
}
-.task-workspace-page .task-toolbar {
- flex-direction: row;
+.task-toolbar {
+ display: flex;
+ justify-content: space-between;
align-items: center;
- gap: 16px;
- margin: 0 0 12px;
+ gap: 24px;
+ margin-bottom: 20px;
+ border-bottom: 1px solid var(--lb-line);
}
.task-workspace-page .results-category-tabs {
+ display: flex;
gap: 24px;
+ margin: 0;
+ border: 0;
}
.task-workspace-page .results-category-tabs button {
min-height: 44px;
- padding: 8px 0;
+ padding: 8px 0 12px;
font-size: 13px;
+ font-weight: 400;
+ border: 0;
+ border-bottom: 2px solid transparent;
+ color: var(--lb-muted);
+ background: transparent;
+ white-space: nowrap;
}
-.task-workspace-page .results-search {
- flex: 0 1 260px;
- padding: 6px 10px;
- border-radius: 6px;
+.task-workspace-page .results-category-tabs button[aria-current="page"] {
+ color: var(--lb-ink);
+ border-bottom-color: var(--eval-red);
}
-.task-workspace-page .results-search input {
- font-size: 13px;
- min-height: 24px;
+.task-workspace-page .results-category-tabs span {
+ font-size: 12px;
+ color: var(--lb-muted);
+ margin-left: 4px;
+}
+.task-workspace-page .task-search {
+ width: 260px;
+ margin-bottom: 8px;
}
.task-workspace {
display: grid;
- grid-template-columns: clamp(180px, 14vw, 220px) clamp(248px, 19vw, 288px) minmax(0, 1fr);
- flex: 1;
- min-height: 0;
- border: 1px solid var(--eval-line);
- border-radius: 8px;
- background: var(--sand-2);
- overflow: hidden;
+ grid-template-columns: 220px minmax(0, 1fr);
+ gap: 28px;
+ align-items: start;
}
-.task-workspace h2 {
- font-size: 15px;
- font-weight: 600;
- line-height: 1.4;
- margin: 0;
+.task-workspace :focus-visible,
+.task-brief :focus-visible {
+ outline: 2px solid var(--ring);
+ outline-offset: 3px;
}
+.task-workspace h2,
.task-workspace h3 {
- font-size: 13px;
- font-weight: 600;
- line-height: 1.5;
- margin: 0 0 8px;
-}
-.task-workspace p {
- line-height: 1.6;
-}
-.task-workspace-shell .task-workspace select {
- min-width: 0;
- max-width: 100%;
- width: 100%;
- border: 1px solid var(--eval-line);
- border-radius: 6px;
- background: var(--eval-paper);
- color: var(--eval-ink);
- padding: 6px 28px 6px 10px;
- font-size: 13px;
- min-height: 36px;
-}
-.task-workspace :focus-visible {
- outline: 2px solid var(--ring);
- outline-offset: 2px;
+ margin: 0;
}
-.task-workspace-tasks,
-.task-workspace-models,
-.task-workspace-inspector {
- position: relative;
+.task-workspace-content {
min-width: 0;
- min-height: 0;
}
.task-workspace-tasks {
- padding: 16px 8px 8px;
- display: flex;
- flex-direction: column;
+ position: sticky;
+ top: 20px;
+ min-width: 0;
+ border-right: 1px solid var(--lb-line);
+ padding-right: 16px;
}
.task-workspace-heading {
display: flex;
@@ -121,131 +97,272 @@
justify-content: space-between;
gap: 8px;
}
+.task-workspace-heading h2 {
+ font-size: 13px;
+ font-weight: 500;
+}
.task-workspace-heading > span {
font-size: 12px;
- color: var(--eval-muted);
- flex-shrink: 0;
+ color: var(--lb-muted);
}
.task-workspace-tasks > .task-workspace-heading {
- padding: 0 8px 12px;
+ padding: 0 8px 10px;
}
.task-workspace-task-list {
+ max-height: calc(100dvh - 220px);
overflow-y: auto;
scrollbar-gutter: stable;
}
.task-workspace-task-list button {
display: block;
+ min-height: 40px;
width: 100%;
- min-height: 44px;
+ padding: 9px 8px;
+ border: 0;
+ border-radius: 5px;
+ color: var(--lb-muted);
+ background: transparent;
text-align: left;
- padding: 10px 8px;
- border-radius: 4px;
font-size: 13px;
- line-height: 1.5;
+ line-height: 1.4;
+ transition:
+ background 140ms ease-out,
+ color 140ms ease-out;
}
-.task-workspace-task-list button:hover,
-.task-workspace-model:hover {
- background: var(--sand-3);
+.task-workspace-task-list button:hover {
+ color: var(--lb-ink);
+ background: var(--lb-soft);
}
-.task-workspace-task-list [aria-current="true"],
-.task-workspace-model[aria-pressed="true"] {
- background: var(--sand-4);
+.task-workspace-task-list [aria-current="true"] {
+ color: var(--lb-ink);
+ background: var(--lb-soft);
+ font-weight: 500;
}
-.task-workspace-models {
- border-inline: 1px solid var(--eval-line);
+.task-workspace .task-workspace-task-group {
+ margin: 16px 8px 6px;
+ font-size: 11px;
+ letter-spacing: 0.07em;
+ font-weight: 500;
+ color: var(--lb-muted);
+ text-transform: uppercase;
+}
+.task-workspace-task-select {
+ display: none;
+}
+.task-brief {
+ padding: 0 0 16px;
+}
+.task-brief-category {
+ font-size: 12px;
+ color: var(--lb-muted);
+ margin: 0 0 6px;
+}
+.task-brief h2 {
+ font-family: var(--font-heading);
+ font-size: 28px;
+ line-height: 1.15;
+ letter-spacing: -0.02em;
+ font-weight: 400;
+}
+.task-brief-details {
+ margin-top: 10px;
+}
+.task-brief-details > summary {
+ display: block;
+ cursor: pointer;
+ list-style: none;
+}
+.task-brief-details > summary::-webkit-details-marker,
+.task-model-comparison > summary::-webkit-details-marker {
+ display: none;
+}
+.task-brief-preview {
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ overflow: hidden;
+ max-width: 75ch;
+ color: var(--lb-ink);
+ font-size: 13px;
+ line-height: 1.6;
+}
+.task-brief-preview p {
+ margin: 0;
+}
+.task-brief-toggle {
+ display: inline-flex;
+ gap: 8px;
+ align-items: center;
+ font-size: 12px;
+ color: var(--lb-muted);
+ margin-top: 6px;
+}
+.task-brief-toggle::after {
+ content: "+";
+ font-size: 16px;
+}
+.task-brief-details[open] .task-brief-toggle::after {
+ content: "−";
+}
+.task-brief-details[open] .task-brief-preview {
+ display: none;
+}
+.task-brief-details[open] .task-brief-toggle {
+ margin: 0;
+}
+.task-brief-full {
+ padding-top: 10px;
+ font-size: 13px;
+ line-height: 1.6;
+}
+.task-brief-full > p {
+ max-width: 75ch;
+ margin: 0 0 12px;
+ white-space: pre-wrap;
+}
+.task-brief-full .results-accordion {
+ margin-top: 12px;
+}
+.task-brief-full .results-accordion > summary {
+ padding: 10px 0;
+}
+.task-brief .task-brief-scope {
+ font-size: 12px;
+ color: var(--lb-muted);
+ margin: 8px 0 0;
+}
+.task-model-comparison {
+ border-block: 1px solid var(--lb-line);
+ margin-bottom: 20px;
+}
+.task-model-comparison > summary {
display: flex;
- flex-direction: column;
+ align-items: center;
+ gap: 12px;
+ min-height: 44px;
+ font-size: 13px;
+ cursor: pointer;
+ list-style: none;
+}
+.task-model-comparison > summary small {
+ color: var(--lb-muted);
+ font-size: 12px;
+ font-weight: 400;
+}
+.task-model-comparison > summary::after {
+ content: "+";
+ margin-left: auto;
+ font-size: 18px;
+ color: var(--lb-muted);
+}
+.task-model-comparison[open] > summary::after {
+ content: "−";
}
.task-workspace-model-tools {
- padding: 16px 12px 8px;
+ padding: 0 0 12px;
}
.task-workspace-model-search {
display: flex;
align-items: center;
gap: 8px;
- margin-top: 12px;
+ max-width: 320px;
padding: 0 10px;
- border: 1px solid var(--eval-line);
+ border: 1px solid var(--lb-line);
border-radius: 6px;
- background: var(--eval-paper);
- color: var(--eval-muted);
+ background: var(--lb-paper);
+ color: var(--lb-muted);
}
-.task-workspace-model-search:focus-within {
- outline: 2px solid var(--ring);
- outline-offset: 2px;
-}
-.task-workspace .task-workspace-model-search input {
+.task-workspace-model-search input {
width: 100%;
min-width: 0;
- padding: 8px 0;
+ height: 36px;
background: transparent;
- color: var(--eval-ink);
+ color: var(--lb-ink);
font-size: 13px;
+ border: 0;
}
-.task-workspace .task-workspace-hint {
- font-size: 12px;
- line-height: 1.5;
- color: var(--eval-muted);
- padding: 12px;
- margin: 0;
- border-top: 1px solid var(--eval-line);
+.task-workspace-model-search input:focus-visible {
+ outline: none;
+}
+.task-workspace-model-search:focus-within {
+ outline: 2px solid var(--ring);
+ outline-offset: 2px;
}
.task-workspace-model-list {
position: relative;
- min-height: 0;
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ max-height: 280px;
overflow-y: auto;
- flex: 1;
- padding: 0 8px 8px;
scrollbar-gutter: stable;
+ gap: 0 16px;
}
.task-workspace-model {
display: flex;
- align-items: flex-start;
- gap: 8px;
width: 100%;
- text-align: left;
+ gap: 8px;
+ align-items: center;
padding: 10px 8px;
- border-bottom: 1px solid var(--eval-line);
+ border: 0;
+ border-bottom: 1px solid var(--lb-line);
+ color: var(--lb-ink);
+ background: transparent;
+ text-align: left;
border-radius: 4px;
}
+.task-workspace-model:hover,
+.task-workspace-model[aria-pressed="true"] {
+ background: var(--lb-soft);
+}
.task-workspace-model .eval-avatar {
width: 20px;
height: 20px;
- margin-top: 2px;
- flex-shrink: 0;
+ flex: 0 0 20px;
+}
+.task-workspace-model .eval-avatar img {
+ width: 20px;
+ height: 20px;
}
.task-workspace-model > svg {
flex-shrink: 0;
- margin-top: 3px;
+ color: var(--lb-muted);
}
.task-workspace-model-name {
- min-width: 0;
- flex: 1;
display: flex;
flex-direction: column;
+ min-width: 0;
+ flex: 1;
gap: 2px;
}
.task-workspace-model-name strong {
font-size: 13px;
+ line-height: 1.4;
font-weight: 500;
- line-height: 1.45;
overflow-wrap: anywhere;
}
.task-workspace-model-name small {
font-size: 12px;
- color: var(--eval-muted);
- line-height: 1.5;
+ color: var(--lb-muted);
+ line-height: 1.35;
}
.task-workspace-outcome {
display: flex;
flex-direction: column;
font-size: 12px;
- line-height: 1.5;
+ line-height: 1.4;
font-variant-numeric: tabular-nums;
}
+.task-workspace-outcome small {
+ font-size: 12px;
+ color: var(--lb-muted);
+}
+.task-workspace-hint,
.task-workspace-empty-models {
- padding: 0 12px 16px;
- font-size: 13px;
+ font-size: 12px;
+ color: var(--lb-muted);
+ line-height: 1.5;
+ padding: 10px 0;
+ margin: 0;
}
.task-workspace-empty-models button {
display: flex;
@@ -253,56 +370,93 @@
align-items: center;
min-height: 44px;
text-decoration: underline;
- text-underline-offset: 3px;
}
.task-workspace-inspector {
- display: flex;
- flex-direction: column;
+ min-width: 0;
container-type: inline-size;
}
.task-workspace-inspector-header {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
- padding: 12px 20px 0;
}
.task-workspace-model-heading {
- grid-column: 1 / -1;
+ grid-column: 1/-1;
display: flex;
- justify-content: space-between;
- align-items: center;
+ align-items: end;
gap: 16px;
+ justify-content: flex-start;
}
-.task-workspace-setting {
+.task-model-picker {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
+ flex: 1;
+ max-width: 360px;
+ margin: 0;
}
-.task-workspace-setting > span {
- flex-shrink: 0;
+.task-model-picker > .eval-avatar {
+ width: 24px;
+ height: 24px;
+ flex: 0 0 24px;
+ align-self: end;
+ margin-bottom: 8px;
+}
+.task-model-picker > .eval-avatar img {
+ width: 24px;
+ height: 24px;
+}
+.task-workspace-model-select,
+.task-workspace-setting {
+ display: flex;
+ flex-direction: column;
+ align-items: stretch;
+ min-width: 0;
+ gap: 6px;
font-size: 12px;
- color: var(--eval-muted);
+ color: var(--lb-muted);
}
-.task-workspace-setting select {
- width: auto;
- max-width: 320px;
+.task-workspace-model-select {
+ width: 100%;
+ max-width: 330px;
+}
+.task-workspace-setting {
+ flex: 1;
+ max-width: 340px;
+}
+.task-workspace-shell .task-workspace select {
+ width: 100%;
+ min-width: 0;
+ max-width: 100%;
+ height: 38px;
+ font-size: 13px;
+ color: var(--lb-ink);
+ background: var(--lb-paper);
+ border: 1px solid var(--lb-line);
+ border-radius: 6px;
+ padding: 6px 24px 6px 10px;
+}
+.task-transaction-setting {
+ margin: 0 0 10px;
+ font-size: 12px;
+ color: var(--lb-muted);
}
.task-workspace .task-attempts {
display: flex;
flex-wrap: wrap;
gap: 6px;
- margin: 12px 0 4px;
+ margin: 16px 0 12px;
}
.task-workspace .task-attempt {
flex-direction: row;
align-items: center;
gap: 6px;
- min-width: 0;
+ padding: 7px 10px;
min-height: 36px;
- padding: 6px 10px;
+ min-width: 0;
border: 1px solid transparent;
- border-radius: 4px;
background: transparent;
+ border-radius: 5px;
}
.task-workspace .task-attempt span,
.task-workspace .task-attempt strong {
@@ -313,108 +467,63 @@
}
.task-workspace .task-attempt[aria-pressed="true"] {
outline: none;
- border-color: var(--sand-8);
- background: var(--eval-paper);
-}
-.task-workspace .task-attempt:focus-visible {
- outline: 2px solid var(--ring);
- outline-offset: 2px;
+ border-color: var(--lb-line);
+ background: var(--lb-soft);
}
.task-workspace .task-workspace-attempt-meta {
align-self: center;
- margin: 8px 0 0 12px;
font-size: 12px;
- color: var(--eval-muted);
+ color: var(--lb-muted);
+ margin: 8px 0 4px 12px;
+ font-variant-numeric: tabular-nums;
}
.task-workspace-tabs {
- grid-column: 1 / -1;
+ grid-column: 1/-1;
display: flex;
gap: 24px;
- border-bottom: 1px solid var(--eval-line);
+ border-bottom: 1px solid var(--lb-line);
+ margin-bottom: 16px;
}
.task-workspace-tabs button {
- min-height: 40px;
+ min-height: 42px;
padding: 8px 0;
+ color: var(--lb-muted);
font-size: 13px;
- color: var(--eval-muted);
+ border: 0;
border-bottom: 2px solid transparent;
+ background: transparent;
}
.task-workspace-tabs [aria-selected="true"] {
- color: var(--eval-ink);
+ color: var(--lb-ink);
border-bottom-color: var(--eval-red);
}
.task-workspace-tabs button:hover {
- color: var(--eval-ink);
+ color: var(--lb-ink);
}
.task-workspace-evidence {
- position: relative;
- flex: 1;
- min-height: 0;
- overflow-y: auto;
- padding: 0 20px 20px;
- background: var(--eval-paper);
- scrollbar-gutter: stable;
- font-size: 13px;
-}
-.task-workspace-evidence:focus-visible {
- outline-offset: -3px;
-}
-.task-workspace-prompt {
- border-bottom: 1px solid var(--eval-line);
- margin-bottom: 12px;
-}
-.task-workspace-prompt > summary {
- padding: 12px 0;
- cursor: pointer;
- font-size: 13px;
- font-weight: 500;
- overflow-wrap: anywhere;
-}
-.task-workspace-prompt > summary > span {
- color: var(--eval-muted);
- font-weight: 400;
-}
-.task-workspace-prompt > p {
- max-width: 75ch;
- margin: 0 0 12px;
- white-space: pre-wrap;
-}
-.task-workspace-prompt .results-accordion {
- margin: 12px 0;
-}
-.task-workspace-prompt .results-accordion > summary {
- padding: 8px 0;
- font-size: 13px;
-}
-.task-workspace-prompt .results-accordion > div {
+ min-width: 0;
+ overflow: visible;
font-size: 13px;
-}
-.task-workspace-prompt pre,
-.task-workspace-prompt code {
- white-space: pre-wrap;
- overflow-wrap: anywhere;
-}
-.task-workspace-prompt .results-accordion ul {
- padding-left: 16px;
+ line-height: 1.6;
}
.task-workspace .task-workspace-status {
+ max-width: 75ch;
+ margin: 0 0 16px;
font-size: 12px;
- color: var(--eval-muted);
- margin: 0 0 12px;
- max-width: 85ch;
+ color: var(--lb-muted);
}
.task-workspace .conversation-summary {
- margin: 0;
font-size: 12px;
- color: var(--eval-muted);
+ color: var(--lb-muted);
+ margin: 0;
}
.task-workspace .conversation-controls {
max-width: none;
- margin: 8px 0;
gap: 8px;
+ margin: 8px 0;
}
.task-workspace .conversation-controls button {
- min-height: 32px;
+ min-height: 36px;
font-size: 12px;
}
.task-workspace .conversation-format {
@@ -427,21 +536,17 @@
margin: 0 0 6px;
}
.task-workspace .conversation-message {
- padding: 12px 0;
+ padding: 16px 0;
max-width: none;
}
.task-workspace .conversation-notices {
font-size: 12px;
padding: 8px 12px 8px 28px;
}
-.task-workspace .conversation-output {
- font-size: 12px;
-}
+.task-workspace .conversation-output,
.task-workspace .conversation-speaker {
font-size: 12px;
- gap: 8px;
}
-/* Tables and source use the evidence pane; prose keeps a readable line length. */
.task-workspace .conversation-markdown {
max-width: none;
}
@@ -457,20 +562,29 @@
max-height: none;
}
.task-workspace .task-checks {
- gap: 16px;
+ gap: 20px;
+}
+.task-workspace .task-checks dt {
+ font-size: 12px;
+}
+.task-workspace .task-attempt-details > h4 {
+ font-size: 14px;
+ font-weight: 500;
+ margin: 0 0 14px;
}
.task-workspace .results-run-details {
padding: 0 0 20px;
border-top: 0;
}
.task-workspace .results-facts > div {
- grid-template-columns: 100px minmax(0, 1fr);
- gap: 12px;
+ grid-template-columns: 120px minmax(0, 1fr);
+ gap: 16px;
}
.task-workspace .results-facts dd {
overflow-wrap: anywhere;
}
-.task-workspace .results-facts pre {
+.task-workspace .results-facts :is(pre, code),
+.task-brief :is(pre, code) {
white-space: pre-wrap;
overflow-wrap: anywhere;
}
@@ -478,262 +592,198 @@
display: flex;
justify-content: space-between;
gap: 12px;
- border-top: 1px solid var(--eval-line);
- padding: 4px 20px;
- background: var(--eval-paper);
+ border-top: 1px solid var(--lb-line);
+ padding: 8px 0;
+ margin-top: 16px;
}
.task-workspace-attempt-navigation button {
display: inline-flex;
align-items: center;
gap: 8px;
+ min-height: 40px;
font-size: 12px;
- min-height: 36px;
+ background: transparent;
+ border: 0;
}
.task-workspace-attempt-navigation button:disabled {
- color: var(--eval-muted);
opacity: 0.5;
+ color: var(--lb-muted);
cursor: default;
}
.task-workspace-attempt-navigation button:not(:disabled):hover {
text-decoration: underline;
text-underline-offset: 3px;
}
-.task-workspace-task-select,
-.task-workspace-model-select,
-.task-workspace-model-search-toggle {
- display: none;
-}
.task-workspace-empty {
- padding: 32px 24px;
- border: 1px solid var(--eval-line);
- border-radius: 8px;
- text-align: center;
+ border-block: 1px solid var(--lb-line);
+ padding: 36px 0;
}
.task-workspace-empty h2 {
- font-size: 17px;
- font-weight: 600;
+ font-family: var(--font-heading);
+ font-weight: 400;
+ font-size: 24px;
}
.task-workspace-empty p {
+ color: var(--lb-muted);
font-size: 13px;
- color: var(--eval-muted);
- margin: 12px 0;
}
.task-workspace-empty button {
min-height: 44px;
+ font-size: 13px;
text-decoration: underline;
text-underline-offset: 3px;
}
.task-workspace-page .task-workspace-footnote {
- flex-shrink: 0;
- margin: 8px 0 0;
+ border-top: 1px solid var(--lb-line);
+ margin: 28px 0 0;
+ padding-top: 12px;
font-size: 12px;
+ color: var(--lb-muted);
+ max-width: none;
}
-@container (max-width: 640px) {
+@media (max-width: 1099px) {
+ .task-workspace {
+ grid-template-columns: 190px minmax(0, 1fr);
+ gap: 20px;
+ }
.task-workspace-model-heading {
flex-wrap: wrap;
- gap: 8px;
+ align-items: start;
}
.task-workspace-setting {
- width: 100%;
- }
- .task-workspace-setting select {
- flex: 1;
max-width: none;
+ flex-basis: 100%;
}
- .task-workspace .task-attempts {
- gap: 4px;
- }
- .task-workspace .task-attempt {
- padding-inline: 6px;
- }
-}
-@media (max-width: 1100px) {
- .task-workspace {
- grid-template-columns: 248px minmax(0, 1fr);
- grid-template-rows: auto minmax(0, 1fr);
- }
- .task-workspace-tasks {
- grid-column: 1 / -1;
- flex-direction: row;
- align-items: center;
- gap: 16px;
- padding: 8px 12px;
- border-bottom: 1px solid var(--eval-line);
- }
- .task-workspace-tasks > .task-workspace-heading {
- padding: 0;
- }
- .task-workspace-tasks .task-workspace-heading > span {
- display: none;
- }
- .task-workspace-task-list {
- display: none;
- }
- .task-workspace-task-select {
- display: block;
- flex: 1;
- max-width: 32rem;
- }
- .task-workspace-models {
- border-left: 0;
- }
-}
-@media (max-width: 1100px), (any-pointer: coarse) {
- .task-workspace-shell .task-workspace select,
- .task-workspace .task-workspace-model-search input,
- .task-workspace-page .results-search input {
- min-height: 44px;
- font-size: 16px;
- }
- .task-workspace-page .results-search {
- padding-block: 0;
- }
- .task-workspace-tabs button,
- .task-workspace .task-attempt,
- .task-workspace-attempt-navigation button,
- .task-workspace .conversation-controls button {
- min-height: 44px;
+ .task-workspace-model-select {
+ max-width: none;
}
- .task-workspace .conversation-output summary {
- min-height: 44px;
- padding: 11px 0;
+ .task-workspace-model-list {
+ grid-template-columns: 1fr;
}
}
-@media (max-width: 760px), (max-width: 1100px) and (max-height: 600px) {
- .task-workspace-shell {
- height: auto;
- min-height: 100dvh;
- overflow: visible;
- }
+@media (max-width: 760px) {
.task-workspace-shell .task-workspace-page {
- padding: 12px 16px 24px;
+ padding: 16px 16px 24px;
}
.task-workspace-page-heading {
- padding: 0 0 8px;
+ display: block;
+ margin-bottom: 16px;
+ }
+ .task-workspace-page-heading h1 {
+ font-size: 30px;
}
- .task-workspace-page-heading p {
+ .task-workspace-page-heading > p {
display: none;
}
- .task-workspace-page .task-toolbar {
+ .task-toolbar {
flex-direction: column;
align-items: stretch;
- gap: 8px;
+ gap: 10px;
+ margin-bottom: 16px;
+ padding-bottom: 12px;
}
.task-workspace-page .results-category-tabs {
- gap: 20px;
justify-content: space-between;
+ gap: 8px;
}
.task-workspace-page .results-category-tabs button {
- font-size: 13px;
+ padding-bottom: 8px;
+ min-height: 44px;
+ font-size: 12px;
}
.task-workspace-page .results-category-tabs span {
display: none;
}
- .task-workspace-page .results-search {
- flex: auto;
+ .task-workspace-page .task-search {
+ width: 100%;
+ margin: 0;
}
.task-workspace {
display: block;
- flex: none;
}
.task-workspace-tasks {
- gap: 12px;
- padding: 8px;
+ position: static;
+ border: 0;
+ padding: 0;
+ margin-bottom: 20px;
}
- .task-workspace-tasks h2 {
- font-size: 13px;
+ .task-workspace-tasks > .task-workspace-heading {
+ padding: 0 0 8px;
}
- .task-workspace-task-select {
- max-width: none;
+ .task-workspace-task-list {
+ display: none;
}
- .task-workspace-models {
- display: grid;
- grid-template-columns: minmax(0, 1fr) 44px;
- gap: 8px;
- padding: 8px;
- border-right: 0;
- border-bottom: 1px solid var(--eval-line);
+ .task-workspace-task-select {
+ display: block;
}
- .task-workspace-model-tools {
- display: contents;
+ .task-workspace .task-brief h2 {
+ font-size: 26px;
}
- .task-workspace-model-tools .task-workspace-heading,
- .task-workspace-model-list,
- .task-workspace .task-workspace-hint {
+ .task-brief-category {
display: none;
}
- .task-workspace-model-select {
- display: block;
- grid-row: 1;
- grid-column: 1;
- }
- .task-workspace-model-search-toggle {
- display: inline-flex;
- grid-row: 1;
- grid-column: 2;
- align-items: center;
- justify-content: center;
- min-height: 44px;
- border: 1px solid var(--eval-line);
- border-radius: 6px;
+ .task-brief-preview {
+ font-size: 13px;
}
- .task-workspace-model-search-toggle[aria-expanded="true"] {
- background: var(--sand-4);
+ .task-model-comparison {
+ margin-bottom: 16px;
}
- .task-workspace-model-search {
- display: none;
- grid-column: 1 / -1;
- grid-row: 2;
- margin: 0;
+ .task-model-comparison > summary small {
+ margin-left: auto;
}
- .task-workspace-models[data-search-open="true"] .task-workspace-model-search {
- display: flex;
+ .task-model-comparison > summary::after {
+ margin-left: 0;
}
- .task-workspace-empty-models {
- grid-column: 1 / -1;
- padding: 0 4px;
+ .task-workspace-model-heading {
+ gap: 12px;
}
- .task-workspace-inspector-header {
- padding: 8px 12px 0;
+ .task-model-picker {
+ flex-basis: 100%;
+ max-width: none;
}
- .task-workspace-model-heading h2 {
+ .task-workspace-model-select > span {
display: none;
}
.task-workspace-setting {
- width: 100%;
+ gap: 6px;
+ flex-direction: row;
+ align-items: center;
}
.task-workspace-setting > span {
- width: 60px;
+ flex: 0 0 66px;
}
.task-workspace-setting select {
flex: 1;
width: 0;
- max-width: none;
+ }
+ .task-workspace-shell .task-workspace select,
+ .task-workspace-model-search input,
+ .task-search input {
+ height: 44px;
+ font-size: 16px;
}
.task-workspace .task-attempts {
gap: 4px;
- margin: 8px 0 0;
+ margin-top: 12px;
}
.task-workspace .task-attempt {
- flex: 1;
flex-direction: column;
- gap: 0;
- padding: 4px;
- }
- .task-workspace .task-workspace-attempt-meta {
- margin-left: 8px;
+ gap: 1px;
+ padding: 6px;
+ min-height: 44px;
}
.task-workspace-tabs {
- justify-content: space-between;
- gap: 8px;
+ gap: 20px;
+ }
+ .task-workspace-tabs button {
+ min-height: 44px;
+ font-size: 12px;
}
- .task-workspace-evidence {
- padding: 0 12px 16px;
- overflow: visible;
+ .task-workspace .task-workspace-attempt-meta {
+ margin-left: 4px;
}
.task-workspace .conversation-loading {
- /* Preserve scroll position while the next attempt's transcript is fetched. */
- min-height: 100dvh;
+ min-height: 50dvh;
}
.task-workspace .conversation-controls {
gap: 4px;
@@ -744,14 +794,28 @@
.task-workspace .conversation-format {
padding: 0;
}
- .task-workspace-attempt-navigation {
- padding: 4px 12px;
- }
- .task-workspace-attempt-navigation button {
- gap: 6px;
- }
.task-workspace .results-facts > div {
grid-template-columns: 1fr;
gap: 2px;
}
+ .task-workspace .task-checks {
+ gap: 14px;
+ }
+ .task-workspace-attempt-navigation button {
+ min-height: 44px;
+ }
+}
+@media (pointer: coarse) {
+ .task-workspace button,
+ .task-workspace-tabs button {
+ min-height: 44px;
+ }
+ .task-workspace .conversation-controls button {
+ min-height: 44px;
+ }
+}
+@media (prefers-reduced-motion: reduce) {
+ .task-workspace-task-list button {
+ transition: none;
+ }
}
diff --git a/bun.lock b/bun.lock
index 0e07b398..8d95222b 100644
--- a/bun.lock
+++ b/bun.lock
@@ -136,6 +136,7 @@
"@hono/node-server": "2.1.6",
"esbuild": "0.28.1",
"glob": "14.0.3",
+ "hono": "4.13.16",
"ip-address": "10.7.4",
"minimatch": "11.0.4",
"oxlint": "1.88.0",
@@ -1134,7 +1135,7 @@
"hast-util-whitespace": ["hast-util-whitespace@3.0.0", "", { "dependencies": { "@types/hast": "^3.0.0" } }, "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw=="],
- "hono": ["hono@4.13.13", "", {}, "sha512-CQ46U0ZkAGmbT/4UxdzzGJpacP2IeKgY4a5/tOI9AABbpOMfK739wfDXmv1usCk+3RkKj1hQy4/fjhiwa2xlrA=="],
+ "hono": ["hono@4.13.16", "", {}, "sha512-AOLOEhvrV+iH92xXCnFr/5+3KjPKcI3xP63XJtX5spAnkznPdHijlIsUTpi7/9EhWqrTCekw5c5zh1K+YsVw7A=="],
"hookified": ["hookified@1.15.1", "", {}, "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg=="],
diff --git a/package.json b/package.json
index 5c3741c3..b09db681 100644
--- a/package.json
+++ b/package.json
@@ -74,6 +74,7 @@
"@hono/node-server": "2.1.6",
"esbuild": "0.28.1",
"glob": "14.0.3",
+ "hono": "4.13.16",
"ip-address": "10.7.4",
"minimatch": "11.0.4",
"oxlint": "1.88.0",