Repository navigation
feat(evals): weekly capped evals, golden cases as data, a local viewer - #11
Open
Prashant-Surya wants to merge 9 commits into
Open
Prashant-Surya wants to merge 9 commits into
Prashant-Surya wants to merge 9 commits into
Conversation
…olden cases `just evals-view` serves one page on 127.0.0.1 over backend/evals: the JSONL datasets (filter by outcome, category, group, variant, check type; a row's full definition in a side panel), the saved run reports (results per row across trials, infra errors, rows not run, a baseline beside them) and the golden cases. Standard library only, so no new dependency. It never writes a file and computes no score: the numbers and the broke/fixed rows against a baseline come from running `python -m evals.report`, and the golden tab imports evals.cases.golden. Dataset text is rendered with textContent only, since rows hold adversarial asks.
…1~deb12u1 Debian dropped 156.0.8078.79-1~deb12u1 from bookworm-security when the .108 security build replaced it, so the frame-browser apt step failed.
The nightly ran the whole golden hundred at the deployment's default budget and mostly re-measured an unchanged tree. Now: - golden cases move from code to evals/cases/golden.jsonl; golden.py loads them and rejects a bad row by file and line - --sample/--seed draw a seeded golden sample; --budget caps each golden task, and a task parked on its budget is cancelled and reported "over budget" instead of timing out - evals.yml runs Mondays on 20 golden cases at 0.50 USD and 15 trivial50 rows, skipping when the prompts, skills, model catalog seed, eval cases, lockfile and the workflow are unchanged since the last green run; a manual dispatch never skips and can run the whole hundred - evals-pr.yml decides a sample of 50 outcome rows on a PR that changes prismoid/ai or skills (advisory) - ADR-008 amended; ADR-052, STATE.md and the eval READMEs follow
…s errors when a case fails
…worker's warnings when a case fails
The worker reads PRISMOID_WORKER_ANTHROPIC_API_KEY, never the bare ANTHROPIC_API_KEY the workflows set, so every eval task ran keyless and failed in seconds at no cost. Both workflows now pass the secret under the worker's prefix. The catalog-models check is removed: it rested on a wrong guess and flagged an alias the provider serves only by its dated id. A golden case that was answered in a reply now says so.
…lishes a file to verify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
golden.jsonl;just evals-viewopens a local read-only page over datasets, reports and golden cases; Chromium is pinned to today's bookworm-security build.--sample N --seed Sand--budget USD; a task parked on its budget is cancelled and reported "over budget" instead of timing out after 15 min.uv.lockand the workflow are unchanged since the last green run. A manual dispatch never skips and can run all 104.prismoid/aiorskillsdecides a seeded sample of 50 outcome rows in process (advisory).PRISMOID_WORKER_ANTHROPIC_API_KEY(andPRISMOID_WORKER_OPENAI_API_KEY). The worker never reads the bare name, so every CI case failed in seconds at $0.main's nightly has the same bug. The secret names are unchanged.deliverable(document,spreadsheet,code,deck,collection; the browser rows leave it to the Lead), so a short ask publishes a file to verify, not a chat reply.FLOOR, 0.5) and, given the last green run's report, fails when more than 2 more of the shared cases fail than did then. It no longer gates on a fixed 90%.Where to look
backend/evals/run.py---budget, golden--sample, the over-budget cancel.github/workflows/evals.yml- weekly cadence, fingerprint, skip, previous-report carrybackend/evals/cases/golden.py- the loader and its rules.github/workflows/evals-pr.yml- the PR routing samplebackend/tools/evals_view.py- the local viewer (not shipped)backend/prismoid/ai/frames/image_browser/Dockerfile- the Chromium pinbackend/evals/cases/golden.jsonl- the cases, moved verbatim (a test pins equality)docs/adr/,STATE.md, READMEs,ci.ymlcomment - cadence wordingWatch out for:
uv.lockin the fingerprint means dependency bumps trigger a run. A run that loses 2 cases still passes and becomes the next baseline, so the floor is what stops a slow slide.Blast Radius
python -m evals.run --suite golden(local) - same cases, new flags optional--budgetdefault (1 USD) - unchangedjust evals-view(local) - only the person who runs itProof
Important
Confidence: Medium - the Python is unit-tested,
just checkis green, and the key fix is reproduced locally; the weekly workflow has not yet run green end to endjust check(backend suite, import contracts, quality, web); tests pingolden.jsonl== the old cases, bad-row errors, the seeded sample, the budget payload and the over-budget cancel against a scripted API; the viewer in a browser; Debian's bookworm-security index listschromium 156.0.8078.108-1~deb12u1.--sample 20 --seed 1 --budget 0.5): 11/20 pass (55%), $1.40 in all, $0.09 at most per case. Of the 9 failures, 5 are the verifier failing correct work (units, citation labels, the sign of a gap), 2 are collections published with empty rows, 1 is a spreadsheet total, and 1 is a small rounding error.--sample 5 --seed 1 --budget 0.5, ~$0.40 total): 3 cases answered in a reply, 2 published and failed verification (organize-metrics-gallerymissing figures,model-pnlcross-foot). No case came near the $0.50 cap. Starting the worker with only the bareANTHROPIC_API_KEYreproduced CI's 3-attempts-at-$0 failure exactly.cases= 5;just evals-viewlocally.integration-frames.yml).Rollout
ANTHROPIC_API_KEY(and optionallyOPENAI_API_KEYfor the cross-family judge) as repo secrets; without them the weekly run fails fast and spends nothing, and the PR job reports "not run".main.Media
N/A
Links
docs/adr/008-continuous-operation.md(amended),docs/adr/052-the-problem-book.mdgrounding:claimsfalse failures (units, citation labels, gap sign); collections published with empty rows; raiseFLOORas those land🤖 Generated with Claude Code