Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
47459d5
feat(evalboard): Task Failure Analysis panel from the skill-doctor re…
CarlesUIPath Nov 19, 2026
8cfa175
fix(evalboard): review round for the Task Failure Analysis panel
CarlesUIPath Nov 19, 2026
1cfb6ab
fix(evalboard): one fetch path for doctor patches; kill switch covers…
CarlesUIPath Nov 19, 2026
41376a4
feat(evalboard): Task failure analysis as a collapsed block shaped li…
CarlesUIPath Nov 19, 2026
56cf461
feat(evalboard): order skill accordions by proposed PRs ready, then f…
CarlesUIPath Nov 19, 2026
661fd6f
feat(evalboard): sort task cards by proposed PR ready, then fix candi…
CarlesUIPath Nov 19, 2026
9621fb0
feat(evalboard): "PR with fix" and "Proposed PR" rows on task cards
CarlesUIPath Nov 19, 2026
bd3eed3
feat(evalboard): PR with fix links real PRs; cards show only fixing P…
CarlesUIPath Nov 19, 2026
ac241b1
fix(evalboard): review round for the redesigned Task failure analysis
CarlesUIPath Nov 19, 2026
2217049
feat(evalboard): third-party PR rows from the doctor's fixed_by_pr an…
CarlesUIPath Nov 19, 2026
f17956a
feat(evalboard): accept pr_checks head_sha and show the short sha wit…
CarlesUIPath Nov 19, 2026
0636adc
fix(evalboard): final review round for the Task failure analysis
CarlesUIPath Nov 19, 2026
1cdb443
fix(evalboard): owner review round for the Task failure analysis
CarlesUIPath Nov 20, 2026
1aaae7b
feat(evalboard): one Task failure analysis panel; say failed, not errors
CarlesUIPath Nov 23, 2026
b972fef
refactor(evalboard): share the fence scanner, test the panel choice, …
CarlesUIPath Nov 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions evalboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,17 @@ belongs to it.
and then every 4 minutes (`lib/warm.ts`, started from `instrumentation.ts`), so
the per-run cache is rebuilt by those requests rather than by a visitor.
`EVALBOARD_WARM_INTERVAL_SECONDS` sets the interval; `0` turns it off.
- Task Failure Analysis (internal edition, skills source): the run page reads
the skill-doctor report under `<run>/skill-doctor/` (`lib/doctor.ts`,
`readRunDoctor`). `status.json` is refetched after 60 s; the triage file it
names, `<fixes_dir>/fixes.json` and up to 10 patches are cached for good.
`/api/file` serves only the patches fixes.json lists, loading them through
the same reader on a cold cache. With a report, the AI summary and the doctor
are one collapsed "Task failure analysis" panel: the AI summary's top, then
the report laid out like the doctor's own page (stats, failures by layer, Fix
first, per-skill failure cards), then `analysis.md` from its `## Findings`
line down under a collapsed "More from the AI summary" disclosure that lists
its section headings. Other states show the whole AI summary and the doctor's
state in the same panel. The cut is at the literal `## Findings` line of `analysis.md` (the nightly AI summary step writes it); the disclosure label lists the file's `## ` headings from there down. Without that line the whole summary shows and there is no disclosure. Without a report the AI summary panel is unchanged. `EVALBOARD_TASK_ANALYSIS=off` turns it off.
- Pass rows render green (`bg-green-50 text-green-700`), failures render red
(`bg-red-50 text-red-700`), on a white background.
48 changes: 48 additions & 0 deletions evalboard/app/runs/[id]/__tests__/analysis-panel.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { describe, expect, test } from "vitest";
import { fireEvent, render, screen } from "@testing-library/react";
import { AnalysisPanel } from "../analysis-panel";
import { RunAnalysis } from "../run-analysis";
import { planAnalysis, parseDoctorStatus, parseTriage, type RunDoctor } from "@/lib/doctor";
import { readFileSync } from "node:fs";
import path from "node:path";

const MD = "# Analysis\n\n## TL;DR\nTop.\n\n## Findings\nBottom.\n";
const FIX = path.join(__dirname, "..", "..", "..", "..", "lib", "__tests__", "fixtures", "skill-doctor");
const read = (p: string) => readFileSync(path.join(FIX, p), "utf-8");
const doctor = (): RunDoctor => ({
status: parseDoctorStatus(read("status.json"))!,
triage: parseTriage(read("triage-1000001.json")),
fixes: null,
opened: {},
});

describe("AI summary panel without the doctor block", () => {
test("the panel renders the whole analysis, Findings included, as before", () => {
render(<AnalysisPanel markdown={MD} />);
expect(screen.queryByText("Bottom.")).toBeNull();
fireEvent.click(screen.getByRole("button", { name: /AI summary/ }));
expect(screen.getByText("Top.")).toBeInTheDocument();
expect(screen.getByText("Bottom.")).toBeInTheDocument();
expect(screen.queryByText(/More from the AI summary/)).toBeNull();
});
});

describe("RunAnalysis: which panel the page shows", () => {
test("with a doctor block: one Task failure analysis region, no standalone AI summary", () => {
render(<RunAnalysis plan={planAnalysis(MD, doctor())} runId="r" sourceId="skills" />);
expect(screen.getAllByRole("region", { name: "Task failure analysis" })).toHaveLength(1);
expect(screen.queryByRole("button", { name: /^AI summary/ })).toBeNull();
expect(screen.getAllByRole("button", { expanded: false })).toHaveLength(1);
});

test("without one: the AI summary panel alone", () => {
render(<RunAnalysis plan={planAnalysis(MD, null)} runId="r" sourceId="skills" />);
expect(screen.queryByRole("region", { name: "Task failure analysis" })).toBeNull();
expect(screen.getByRole("button", { name: /AI summary/ })).toBeInTheDocument();
});

test("without one and without analysis.md: nothing", () => {
const { container } = render(<RunAnalysis plan={planAnalysis(null, null)} runId="r" sourceId="skills" />);
expect(container).toBeEmptyDOMElement();
});
});
Loading
Loading