Repository navigation
feat(dev): pnpm dev eval measures how sandboxed agents build from the skills - #1147
Conversation
Verdict: needs rework. |
|
All nine fixed in
Latest suite, network isolated: both builders built and passed every check. |
New findings:
Validation: Verdict: needs rework. PR #1147, head 1e7d959, checks and reviews: 16 focused tests passed; CI still running at inspection; re-check needs fixes. |
1e7d959 to
dc41635
Compare
|
Re-check findings, all fixed in
A live suite on these fixes: both builders built and passed every check. |
|
Second re-check at Statuses of findings left open by the first re-check:
New or regressed findings:
Validation: PR #1147, head dc41635, checks and reviews: 18 focused tests passed; second re-check verdict: needs rework. |
dc41635 to
ab7f953
Compare
|
Second re-check, fixed in
Live suite on these fixes: 4 builds, both builders, all built and passed every check. |
|
Third re-check at Statuses of the four open findings:
New regressions:
Validation: 16 focused tests passed with a temporary Vitest configuration; the two cases in the database-backed identity block were skipped. Additional reproductions used temporary fixtures and isolated bubblewrap, builder, Chromium, grader and sanitizer processes, including comparisons with the parent commit. No production, live databases, model calls or checkout edits. PR #1147, head ab7f953, checks and reviews: 16 focused tests passed, CI still running at inspection; third re-check verdict: needs rework. |
ab7f953 to
250a2cf
Compare
|
Third re-check, in
Live suite on this commit: 4 builds, both builders, each on the toolchain it installed through the proxy; all built and passed every check. |
|
Fourth re-check at Statuses of the five open findings:
New findings:
Validation: 25 focused eval/sanitizer tests passed; two database-backed identity cases were skipped. Additional isolated bubblewrap, builder-stream and Chromium fixtures ran, and the actual template installed Node, pnpm and both harnesses through the proxy against a local installer stub. No production, live databases, model calls or checkout edits. PR #1147, head 250a2cf, checks and reviews: focused tests passed; fourth re-check verdict: merge after fixes. |
250a2cf to
23c346f
Compare
|
Fourth re-check's two findings, fixed in
Live suite on this commit: both builders built and passed every check. |
|
Fifth re-check at
Regression:
Validation: 26 focused eval/sanitizer tests passed; the two database-backed identity cases were skipped using a temporary configuration without database setup. Nine actual Chromium task fixtures passed their expected outcomes, plus isolated bubblewrap/builder-stream and sanitizer reproductions. No production, live databases, model calls or checkout edits. PR #1147, head 23c346f, checks and reviews: focused checks passed; fifth re-check verdict: merge after fixes. |
|
Fifth re-check's regression, fixed in |
23c346f to
e0e8a84
Compare
|
Sixth re-check at [P2] Dictionary-key redaction drops metric counts — resolved ( Validation: all 9 sanitizer tests passed. Six scorecard exports and 2,160 nested dictionary permutations preserved every entry and count; no synthetic secret survived. Documents without secret keys stayed unchanged, value-only redaction matched the parent, and a second redaction was stable. Temporary fixtures and isolated processes only; no production, live database, model calls or checkout edits. No new findings at P2 or higher within this fix. Verdict: merge. PR #1147, head e0e8a84, checks and reviews: 9 sanitizer tests passed; scoped re-check passed; CI not assessed. |
|
Rebased onto main after #1121 moved the dev loop onto Bun. One fix for it in |
e0e8a84 to
e760b43
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… lookups Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e developer's files Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…er's endpoint Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ount by its word Co-Authored-By: Claude Opus 5.5 <[email protected]>
… carries no builder text Co-Authored-By: Claude Opus 5.5 <[email protected]>
…anitizer redacts keys Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e runner runs on Bun Co-Authored-By: Claude Opus 5.5 <[email protected]>
e760b43 to
4216149
Compare
## What changed `pnpm dev eval` could only run the suite at `HEAD`, so it couldn't tell whether a change to the skills, the `AGENTS.md` template or the CLI's messages made builders better or worse. It now runs every task on two sides, the base commit and `HEAD`, and shows each figure as base → head with its change. The base is where `HEAD` left `origin/main`, or `--base <ref>`; `--only-head` keeps 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: ```console 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: | Builder | Side | Passed | Minutes | Turns | Input tokens | | --- | --- | --- | --- | --- | --- | | sonnet | base | 2/2 | 1.4, 1.0 | 11, 14 | 491k, 689k | | sonnet | head | 2/2 | 2.4, 1.4 | 18, 19 | 848k, 880k | | terra | base | 2/2 | 3.1, 2.6 | – | 1,720k, 1,254k | | terra | head | 2/2 | 3.6, 3.0 | – | 1,969k, 1,468k | 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. - Live: the comparison above, and the refusal of a base without the keyed door. - Not checked: a base whose runner predates #1147's eval code entirely; the guard refuses it at the door. ## Release impact Tick exactly one. - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required. Dev tooling only; `--only-head` keeps 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. 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
We couldn't tell whether a change to the skills, the
AGENTS.mdtemplate or the CLI's messages makes agents build better or worse:pnpm dev trialruns one agent and calls itself a smell test.pnpm dev eval --only-headgives a suite of tasks to sandboxed builders, Sonnet 5.5 at high effort in Claude Code and GPT-6.1 Terra at high reasoning in Codex, on an evidence instance, and grades what they publish into a scorecard. This is the first slice of #1141: one task (cheers) atHEAD; comparing two commits and the blind judges are #1143.Closes #1142
Look at
Builders see nothing of this machine. Each runs in
bwrapwith the system read-only, a private/tmp, and a HOME of its own that holds its own toolchain: a template per suite installs Node from its release tarball, and pnpm, Claude Code and Codex from npm at the versions this machine has (recorded on the scorecard), the way a person sets up. Nothing of the developer's is mounted beyond/usr,/etc, the two network sockets and the runner's ownnodebinary that runs the bridge. Every harness permission is on inside, so a failure measures Patchy rather than a permission prompt. A builder starts as a real user who has set up: the instance'sinstall.mjs(which runspatchy setup), then its own publisher's login.Builders have a network of their own. Only loopback exists inside, where a bridge (
bridge.mjs, run ahead of every command) serves two Unix sockets: one to the instance's port, and a proxy (HTTPS_PROXY) to the public internet that refuses loopback, private, shared and link-local addresses. The one exception is a Codex model provider's exact endpoint, host and port, on the developer's network. A request can only fail its own connection, since every builder shares the proxy. Without this, a builder could reach the evidence instance's Postgres (fixed superuser credentials) and read any file on the machine. From inside a sandbox while a suite ran:The personas door can be keyed (
packages/auth). Dev personas list and sign in as everyone on an instance, which would show builders the other runs and give them help production never would. Whenpersonas.envalso holdsPATCHY_DEV_PERSONAS_KEY,/dev/sign-inanswers only withkey=<it>. On the eval instance during a run:Without a key nothing changes, so
compare,film,shotand the rollback rehearsal keep working.Each run gets its own company. Runs share the instance, so each seeds its task's scenario again under its own id: company handles suffixed, emails plus-addressed (an email is unique across an instance). Runs never collide on patch names or see each other's patches. A test seeds one scenario for two runs side by side and retires one of them.
Grading reads what was published, not the builder's folder. The target has to be served, and its published source, pulled into the run's HOME, has to pass
pnpm typecheck. A colleague signed in through the keyed door has to see it render with no console errors and no failed calls during grading. Then the task's own check runs; for cheers, Ada opens it fresh between every step: Ben only visits (the count beside the word "cheer" must hold), then Ben cheers and Cleo cheers (up by one each), so neither a count that never moves nor a counter of visitors passes. A failure of setup, the model provider or the grader itself (its browser, a refused sign-in, an unreadable log) is aninfraoutcome, retried, never a builder's failure; a page that errors or breaks is the patch's.The latest scorecard:
Eval
20261101T012607-6c47740At
6c47740.sonnetis claude-sonnet-5-5 at high;terrais gpt-6.1-terra at high. Tools: node 24.20.0, pnpm 12.9.1, claude 2.1.316, codex 0.166.0.Across the runs, Sonnet grepped
node_modules/patchy/dist/*.d.tsfor the shape ofme(), and Terra forisPatchyError, again and again. Those are the first things the skills should answer.How it was verified
patchy pullneeds its parent folder); since then every build has passed every check, the last six on the self-installed toolchain.scripts/dev/src/eval/eval.test.ts(19): the sandbox's mounts (the run's HOME, the sockets, the bridge and its node, nothing else), network and PATH; version pins; the proxy's address rules, aCONNECTto loopback refused, a bad port refused while the proxy keeps serving, and only the provider's exact endpoint let through; Codex's and Claude Code's streams, including a refusal piped past its exit code and a Grep that keeps its path; outcome classification, grader trouble as infrastructure; target choice; the count read beside its word, decoration and all, and a count that holds for a visit and rises with each cheer versus visitor counters; metrics that count only what a step read and only labels shaped like a CLI code or one of our skills; the Codex config; two runs of one scenario seeded side by side; long handles.sanitize.test.ts: access-token and API-key shapes redacted, and secrets in a JSON document's keys as well as its values.packages/auth/src/DevPersonas.test.ts: two new cases, a keyed door refusing without or with the wrong key and naming no one, and signing in with it through the picker.pnpm verify: format, lint, typecheck, synth, postgres-concurrency, cli-smoke, install, tier2-smoke and browser passed.testfailed locally on 11 CLI stub-server tests that recorded a strayGET /none of them sent (the local port probe; CI doesn't see it) and on two execution tests under load (EngineandLocalTaskProvider), which passed when re-run alone (21 of 21). None of them reads code this PR changes; CI's run is the real check.CLAUDE_CODE_OAUTH_TOKEN(these runs used the credentials file, mounted read-only), and Codex through a copiedauth.json(these used a model provider).Release impact
Tick exactly one.
Breaking — requires action from anyone already running this
Not breaking — no action required. Dev tooling, and a dev-only personas option that is off unless an instance's
personas.envnames a key.What does a revert leave behind? Nothing outside this machine: suites under
.local/evals/.Does the release before it still work with that? Yes. Production never reads the personas key; nothing on the wire, in the schema or in the CLI changed.
Built by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, through T3 Code.