Repository navigation
feat(dev): pnpm dev eval compares a base commit against HEAD - #1155
Conversation
|
Reviewed head
Validation: all 20 existing eval tests passed. Temporary fixtures used no model calls or live databases. Paired real socket tests preserved each side's routing and refused cross-side proxy connections; scorecard fixtures handled infrastructure exclusions and an empty baseline correctly; both sides' fixture credentials and the door key were redacted. No additional Effect service findings. #1154's shutdown issue was excluded. Verdict: merge after fixes. |
|
Fixed all four review findings in cc1e504:
|
|
Re-review (GPT 6.1 Sol) Reviewed
No additional findings from the remaining diff or the affected HOME, fixture, grading and sandbox paths. No Effect service findings. Validation: Verdict: do not merge yet — the door-probe bypass and silently failed warm-up remain blocking. |
|
Both blockers fixed in the latest push:
|
|
Re-review (GPT 6.1 Sol) Reviewed
No other findings in the delta. The previously verified toolchain and bootstrap identity fixes were untouched. Validation: all 23 eval tests passed on Node and all 23 on Bun using the two permitted commands. Additional checks used isolated source execution and a temporary loopback HTTP fixture. No repository source edits, model calls, Patchy instances, or production access. Verdict: do not merge yet — the base-persona probe gap remains blocking. |
|
Fixed in the latest push. The door tests now use a door that knows only |
|
Re-review (GPT 6.1 Sol) Reviewed [P1] Probe each side as one of its own people: resolved — Verified the provenance: The previous failure scenario is covered by No new findings in the delta. The redirect request options and exhausted warm-up guard are unchanged. Standards: no findings. Spec: the remaining blocker is resolved. Surface check: dev loop only; no command, wire, seed, migration, vocabulary, served-page or package-layout changes. Validation:
No source edits, commits, pushes, Verdict: merge — no remaining blockers from this re-review. |
38f7585 to
675b9cb
Compare
Acceptance: PASS with notesChecked Done means
Golden journeys
Rollback answers: match the diff. A revert leaves local eval artifacts only; the earlier runner can still work. No Not run
Evidence Notes
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
675b9cb to
c7de44f
Compare
…led where (#1172) ## What changed A comparison showed whether builders passed the checks and how fast, but not whether what they built was any good. It couldn't say whether a build fit Patchy, whether it stayed correct when two people used it at once, or whether it was pleasant to use. Now, after the build phase, two judges review every built run in the eval's sandbox: Opus 5.5 at `xhigh` in Claude Code, and GPT-6.1 Sol at `xhigh` in Codex. - **Scoring pass, blind.** Each judge scores fit, platform, correctness, UX and code from 1 to 5, with findings. - **Attribution pass.** For findings of medium severity or worse, the judge reads the skill text and the builder's log, and says which text plausibly led there or what was missing. - **Calibration.** `pnpm dev eval --calibrate` checks both judges against builds a person labelled. Closes #1143 together with #1155, which it's stacked on. ## Look at **What keeps the scoring pass blind.** Six review rounds tightened it to this: - **The source it reads** has its agent instructions removed, and the side's instance host renamed. A pulled repo records the host, e.g. `after-…`, in `patchy.json`, `package.json` and the lockfile. - **The Patchy checkout it reads** is this checkout, the same for both sides. A walk masks every copy of what builders are told: `skills/` folders, release `artifacts/`, `.turbo` and dependency caches, agent folders, `SKILL.md`/`AGENTS.md`/`CLAUDE.md`, the git history, local state and the calibration labels. A symlink is never a mask; a symlinked instruction file hides its target instead. - **Its workspace** is staged under an anonymous name, so no mounted path names a run, side or builder. The staging is removed afterwards. - **Its network** reaches only its harness's inference and sign-in hosts, by exact name. Each connection must open TLS naming the host that was vetted, so a shared CDN can't serve another site on the same connection. The harnesses' own web search and fetch tools are off. What's left: a request that names another site inside a correctly named TLS session is the CDN's to refuse. That's documented in `network.ts`. **Failures.** A judge failure never takes the suite down: - A pass that gives no answer is tried once more. - A judge that can't run records why. - A failed attribution keeps its score. - If the judges' home can't be set up, every judgment says so and the scorecard still lands. **Calibration** on the final code. Both judges ranked every labelled pairing the labelled way: | Better | Worse | On | Opus | Sol | | --- | --- | --- | --- | --- | | cheers-counter | cheers-page-counter | platform, correctness | ✓ 5.0 vs 1.0 | ✓ 4.5 vs 1.0 | | cheers-recount | cheers-page-counter | correctness | ✓ 3.0 vs 1.0 | ✓ 2.0 vs 1.0 | | cheers-counter | cheers-recount | platform | ✓ 5.0 vs 2.0 | ✓ 5.0 vs 2.0 | **#1143's done-means run** at 5fef167: `pnpm dev eval --base origin/main --tasks cheers --repeats 2`, both builders, both judges. Every run was judged by both (16 of 16 verdicts). The skill text is the same on both sides, so the deltas are noise: | Task | Builder | Verdicts | Fit | Platform | Correctness | UX | Code | | --- | --- | --- | --- | --- | --- | --- | --- | | cheers | sonnet | 4/4 → 4/4 | 4.0 → 4.0 | 2.3 → 2.0 (−0.3) | 2.5 → 2.8 (+0.3) | 4.3 → 4.5 (+0.3) | 3.3 → 3.0 (−0.3) | | cheers | terra | 4/4 → 4/4 | 4.8 → 4.8 | 4.5 → 4.8 (+0.3) | 4.3 → 4.5 (+0.3) | 4.3 → 4.3 | 4.5 → 4.8 (+0.3) | The judges consistently separate Sonnet's page-side count from Terra's tier 2 counter on platform. Their attribution, independently, names the gap #1184 fills. From Opus: > No skill says that owned tables have no count or aggregate. None says that an exact running total should be one counter row, incremented by a tier 2 mutation. **cheers' rubric** now names today's expert design, a tier 2 atomic increment read through a live query, instead of saying a tier 1 page is enough. ## How it was verified - **Tests.** `scripts/dev/src/eval/eval.test.ts` passes on Node and Bun (35 tests). They cover: - the checkout masks, including the symlink case, caches and the calibration labels - the blind source copy - the exact-host network, and the refusal of `raw.githubusercontent.com` - TLS server-name parsing against a real Node ClientHello - the closed schemas, task brief, means, splits and verdict counts - the calibration labels Typecheck, test typecheck, lint and format pass. - **Real bwrap.** All masks mount over a built checkout, and grepping `/patchy` finds no skill text. - **Live runs.** The calibration and the done-means run above. Both ran with #1154's shutdown fix applied locally, so the process exits after the scorecard. - **Review.** Sol reviewed this six times; its last verdict is merge, with one P3 that was fixed. ## Release impact Tick exactly one. - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required. Dev tooling only; `--no-judge` skips the judges. - **What does a revert leave behind?** Only files on this machine, under `.local/evals/`. - **Does the release before it still work with that?** Yes. Nothing outside the dev runner changed. Built by Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, through T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
…tals stay exact (#1222) ## What changed This adds release 35's What's new entry, written from `dd0e2ec`. It covers everything merged since release 34's `through` (`e5334ca`), and sets the `patchy` release to `0.35.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. | Change | PRs | | --- | --- | | Fixed: keyboard shortcuts in patches do what they say (a once-per-press shortcut doesn't fire again while held, shortcuts wait during input-method composition, symbol keys such as `+` work on every keyboard) | #1152 | | Improved: agents keep shared totals exact | #1184 | The rest get no line: - #1147, #1154, #1189, #1155, #1172 and #1153 are `pnpm dev eval` tooling. - #1150 renames a CI check. - #1203 is an internal docs paragraph. - #1221 changes the production spend alerts, which nobody using Patchy sees. - #1149 is release 34's own entry. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `11dc68b` (release 34) to `dd0e2ec`:** - None of the 11 PRs is labelled `one-way`, and each one's Release impact answers say a revert leaves nothing behind. - #1152 changes `patchy/hotkeys`, which patches bundle when they are built. Published patches keep the copy they bundled. A patch repo that writes `"+"` stops typechecking only if it moves back to an older `patchy` release. - #1184 is skill text. #1147 adds a dev-only personas option that production never reads. - #1221 changes a cost setting on the two budgets in the base stack. Releases don't read budgets. - Nothing else touches code that runs in production. **Rollback line:** If this release misbehaves, roll back to `11dc68b` (release 34). ## How it was verified - **Tests.** `whatsNew.test.ts`, `WhatsNewPages.test.ts` and `schemas.test.ts` pass (21 tests), and `bun fmt` passes on the changed files. - **Deploy state.** I pinned the live commit from `/healthz/deep`: `11dc68b` (release 34). The Deploy run updated last succeeded, and none is unfinished. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Text and version numbers only. Like every release, the `0.35.0` bump tells CLIs and patch repos installed before this deploy to upgrade. - **What does a revert leave behind?** Nothing. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, through T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed
pnpm dev evalcould only run the suite atHEAD, so it couldn't tell whether a change to the skills, theAGENTS.mdtemplate or the CLI's messages made builders better or worse. It now runs every task on two sides, the base commit andHEAD, and shows each figure as base → head with its change. The base is whereHEADleftorigin/main, or--base <ref>;--only-headkeeps the old behaviour. First half of #1143; the blind judges follow in a stacked PR.Part of #1143.
Look at
Two sides, one suite. Each side is its own evidence instance with its own network, template home (its own release's CLI and global skill on the shared toolchain) and database. Tasks, fixtures and checks come from this checkout for both, so both are graded alike. Runs alternate sides, and which side goes first alternates by repeat, so neither always meets a busier machine.
Fairness guards. Both sides must come up: there's no head-only fallback. Each side's personas door must refuse a request without the eval's key, checked before any setup, so a base from before the keyed door can't run (its builders could see other runs' people). Live against today's main before #1147 landed:
The base instance (11dc68b) signs anyone in without the eval's key: its commit predates the keyed personas door, so its builders could see other runs' people. Pick a base that has it.What a comparison of identical skills shows. Base
2bd3986(main) against this branch, cheers, two repeats each. The builder-facing skills are the same on both sides, so every difference is noise:At two repeats, Sonnet's input tokens moved about 40% between sides on noise alone, so efficiency figures need many more repeats before an edit can be credited with them. (That suite built and graded all eight runs, then hung on shutdown; #1154 fixes the hang, and these figures come from its run records.)
How it was verified
scripts/dev/src/eval/eval.test.ts(20, including the base → head cells), typecheck, test typecheck, lint and format pass.Release impact
Tick exactly one.
Breaking — requires action from anyone already running this
Not breaking — no action required. Dev tooling only;
--only-headkeeps the previous behaviour.What does a revert leave behind? Nothing outside this machine: suites under
.local/evals/.Does the release before it still work with that? Yes; nothing outside the dev runner changed.
Built by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, through T3 Code.