Repository navigation
feat(dev): eval judges score each run blind and say which skill text led where - #1172
Conversation
|
Review (GPT 6.1 Sol) Verdict: blocking findings at
Validation: |
dd38a46 to
316cdf2
Compare
|
All seven findings are fixed in 316cdf2, which is rebased onto #1155's 95d8b1b. I also fixed one leak the review didn't name.
The judges commits had also left the docs stale. New tests cover the checkout masks (build outputs, scenario |
38f7585 to
675b9cb
Compare
|
Re-review (GPT 6.1 Sol) Verdict: blocking findings at The seven previous findings:
Remaining/new findings: A. [P1] The walk adds a symlink mask that prevents every judge from starting. B. [P1] Turbo's compressed build cache remains a local copy of the masked skills. C. [P1] The judge's public proxy bypasses both skill and calibration masks. D. [P2] An attribution infrastructure error erases a successful score. E. [P2] Shared judge-network setup can still abort the completed suite before its scorecard. Reading the runner's checkout for both sides is acceptable for #1143: the issue explicitly freezes the evaluation suite and asks for a masked Patchy checkout, without requiring the reference checkout to be the side's version. A common reference is appropriate for skill-text comparisons. The documented limitation when platform behavior itself changes is real, but I would not block this issue on that choice. Validation: all 32 eval tests passed on Node and Bun. Minimal bwrap probes exercised the real masks/network and a temporary cache fixture; fake harnesses exercised retry and attribution-error behavior without model calls. No eval suite or Patchy instance was started, no production endpoint was touched, and no tracked files were changed. |
316cdf2 to
da147c9
Compare
|
All five fixed in da147c9, which is rebased onto #1155's new head 675b9cb.
New tests:
All 34 eval tests pass on Node and Bun, along with typecheck, test types, lint and format. Calibration is running now on this head as the end-to-end check, with real judges through the narrowed network. I'll post its table here. |
|
Calibration on da147c9 passes. The run used real judges with the calibration labels masked, links not masked, caches hidden, the network limited to their providers and web tools off. Both judges ranked all three labelled pairings the labelled way:
All six judges started and answered through the narrowed network. That settles finding A in practice, and shows the providers-only network is enough for both harnesses. One caveat: the run had #1154's shutdown fix applied locally, so that the process exits after printing the table. |
|
Re-review (GPT 6.1 Sol) Verdict: one P1 blocker remains at A–E:
Remaining blocker [P1]: shared Vercel ingress bypasses the judge allowlist and serves the exact hidden files.
The mirror's embedded Other probes: direct GitHub, lookalike suffixes, IP literals (including IPv4-mapped IPv6), and userinfo-shaped CONNECT targets were rejected. DNS vetting connects to the checked numeric address, so I found no lookup/connect rebinding gap. Validation: 34/34 eval tests passed on Node and 34/34 on Bun. The authorized dependency build/typecheck completed from cache after a standalone probe import initially lacked built dependencies. Minimal bwrap probes and a fake harness exercised the routes above; no eval suite, calibration, or Patchy instance was started, no production endpoint was contacted, and no tracked files were changed. |
|
Fixed in 601d6a4. You were right: allowing whole provider domains let shared hosting under them in.
All 35 eval tests pass on Node and Bun, along with typecheck, test types, lint and format. Calibration is re-running on 601d6a4 to confirm both harnesses work with only these exact hosts. |
|
Calibration on 601d6a4 passes with judges limited to the exact provider hosts and TLS server-name check. Both judges ranked all three labelled pairings the labelled way:
So both harnesses work with only those hosts. One Sol pass crashed (Codex exited 101), and its retry answered. That crash put a whole minified file on the console, which is why cc7cdc5 caps the failure line at 240 characters. (The run had #1154's shutdown fix applied locally.) |
|
Re-review (GPT 6.1 Sol) Verdict: merge at Previous open item C — resolved. TLS parser and gate. I found no out-of-bounds Buffer read or exception in the parser. A partial first record waits for more TCP data; a complete record without SNI, plaintext, an oversized record header, and an oversized accumulated hello are refused. Local probes through the actual narrowed tunnel confirmed that one-byte TCP delivery forwards zero client bytes until approval, that a different SNI closes both sockets without forwarding, that mixed-case CONNECT/SNI works, and that a hello pipelined after CONNECT is checked too. A ClientHello fragmented across TLS records is not generally supported; that is a fail-closed compatibility limit, distinct from TCP fragmentation. This is an SNI reader, not a complete TLS validator: it skips the handshake length and does not enforce the server_name extension/list lengths. Deliberately inconsistent lengths can therefore still return the approved name. The same malformed hellos were rejected by Node/OpenSSL before its SNI callback, and I found no way for those cases to establish TLS under a different name. I do not count their permissive parsing as an established blindness bypass. #1143's blindness requirement. The documented reliance on the provider CDN to reject cross-customer Host-header fronting is acceptable for this internal harness's explicit trusted-provider boundary. Matching SNI closes the demonstrated shared-ingress route; this is not an independent guarantee about encrypted HTTP authorities. The CDN isolation assumption must remain true for each allowed host. I did not probe live provider/CDN behavior in this re-review, so this verdict does not independently certify that assumption. Non-blocking finding [P3]: close the upstream socket when a client abandons SNI inspection. Validation: 35/35 eval tests passed on Node and 35/35 on Bun using the two permitted commands. Additional local-only parser probes covered every prefix of a valid hello and 69,968 mutation/fuzz inputs without a throw; local socket probes exercised the gate and cleanup case above. |
|
Fixed the P3 in 5fef167. While the tunnel waits for the TLS hello, a client that disconnects now destroys the upstream socket too, the same as the rejection path. All 35 eval tests pass on Node and Bun. |
Acceptance: PASS with notesChecked Done means
Scorecard and attribution evidence The comparison encountered the known #1154 shutdown hang after all judgments were persisted, before its scorecard write. I stopped only my runner after verifying its cwd, then passed its persisted measured records through this head's unchanged
No two-point judge splits. The global skill bytes are identical across these runs; these deltas are sampling noise. Both judges correctly distinguish the published Sonnet full-table recounts from Terra's tier 2 atomic counters. Checked all fourteen attribution links: eleven quotations match literally, one matches after joining a wrapped line, and two explicitly identify missing instructions. Golden journeys
Rollback answers: match the diff. This adds local eval records and fixtures, not production schema, kept rows, infrastructure or a deployed client contract. The earlier runner can ignore the new local files; no Not run / not fully verified
Notes
|
675b9cb to
c7de44f
Compare
…led where Co-Authored-By: Claude Opus 5.5 <[email protected]>
5fef167 to
e5a2e41
Compare
…ce (#1184) ## What changed Owned tables have no count or sum. Asked for a button with a live company-wide count, Sonnet 5.5 kept building a tier 1 page that paged through every row to add them up. That reads the whole table on every change in every open page, and a page-side counter loses concurrent cheers. The skills never said how to keep a total: the tier guidance offered tier 2 for "atomic multi-row writes" and said live sync works on tier 1. The judges on #1172 traced their findings to that gap. Now: - `patchy-tables` has a short **Totals** section. It says to keep an exact total as its own row, changed by the same tier 2 mutation that writes the rows it counts. - The tier lists in the global skill and in `patchy-loop` name "a value such as a total that several people change at once" as a reason for tier 2. Part of #1141. ## Look at **Measured with `pnpm dev eval`.** Both sides ran cheers three times per builder, plus one uncounted warm-up. The only difference between the sides is this commit: base `316cdf2`, head `c2749fc`, the same edit on top of the eval branch. | Build | Base (skills today) | Head (this edit) | | --- | --- | --- | | sonnet | tier 1, pages through every row, **4/4** | tier 2, mutation updates a counter row, **4/4** | | terra | tier 2, counter row, 3/3 | tier 2, counter row, 3/3 | Every build passed every check on both sides. Sonnet is the one that changed. Its head builds even shard the counter, so many simultaneous cheers don't contend for one row: ```ts export const cheer = mutation({ handler: async (ctx) => { const shard = `s${Math.floor(Math.random() * SHARDS)}`; const found = await ctx.tables.tallies.list({ index: "byShard", eq: { shard }, limit: 1 }); const row = found.rows[0]; if (row) await ctx.tables.tallies.update(row.id, { count: row.count + 1 }); else await ctx.tables.tallies.insert({ shard, count: 1 }); return true; } }); ``` **The cost.** Tier 2 is more work for the builder. Sonnet's medians went from 1.9 to 2.9 minutes, from 784k to 1,266k input tokens, and from 0 to 2 failed commands. Terra's were flat or better. With identical skills, input tokens have moved about 40% between sides on noise alone, so I'd read only the direction of these. **What wasn't scored.** The judges in this run predate #1172's sandbox fixes and gave no verdicts, so design quality comes from reading the published sources, not from scores. ## How it was verified - The suite above: 12 measured builds and 2 warm-ups, all passing, with the tier and counting approach read from each published source. - `skillLock.test.ts` passes with the refreshed hash of the global skill. `SdkApi.test.ts`, `initProject.test.ts` and `limits-md.test.ts` (39 tests) and the format check pass. ## Release impact Tick exactly one. - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required. Skill text only; builders get it with the next release's skills. - **What does a revert leave behind?** Nothing. Patches built while it was live keep their tier 2 counters, which are ordinary patch code. - **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]>
…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
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
xhighin Claude Code, and GPT-6.1 Sol atxhighin Codex.pnpm dev eval --calibratechecks 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:
after-…, inpatchy.json,package.jsonand the lockfile.skills/folders, releaseartifacts/,.turboand 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.network.ts.Failures. A judge failure never takes the suite down:
Calibration on the final code. Both judges ranked every labelled pairing the labelled way:
#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: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:
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.tspasses on Node and Bun (35 tests). They cover:raw.githubusercontent.comTypecheck, test typecheck, lint and format pass.
Real bwrap. All masks mount over a built checkout, and grepping
/patchyfinds no skill text.Live runs. The calibration and the done-means run above. Both ran with fix(dev): an eval suite finishes even when a builder leaves a connection open #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
Not breaking — no action required. Dev tooling only;
--no-judgeskips 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.