Skip to content

feat(dev): pnpm dev eval reaches Claude through your model provider, as it does Codex - #1207

Merged
allisonmahmood merged 1 commit into
mainfrom
feat/eval-claude-model-provider
Nov 3, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
feat/eval-claude-model-provider

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

What changed

pnpm dev eval signed Claude Code in only with a token or ~/.claude/.credentials.json. If your Claude Code reaches its models through a provider (ANTHROPIC_BASE_URL, for example a subscription hub), the suite stopped with "There is no Claude Code sign-in". The sandbox proxy would also have refused the provider's private address. Codex providers already worked both ways.

Claude builders and judges now get your provider too: ANTHROPIC_BASE_URL with ANTHROPIC_AUTH_TOKEN or ANTHROPIC_CUSTOM_HEADERS, read from the environment, dev.env, or the env block of Claude Code's settings.json. Its endpoint joins the private addresses the proxy lets through.

Part of #1144

Look at

  • How sign-in is chosen (claudeEnv in home.ts). The provider decides where requests go. A token signs in: CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY, or the provider's own ANTHROPIC_AUTH_TOKEN. Without one, the credentials file is still mounted read-only, so a provider that authenticates only by custom headers keeps working beside a claude.ai login. Without a base URL, nothing changes.
  • Redaction. ANTHROPIC_CUSTOM_HEADERS doesn't have a secret-looking name, so the sanitizer wouldn't catch it by name. Its value and each header's value go into secrets explicitly.

How it was verified

  • New tests: claudeEnv's cases, and readSignIns reading a provider from a temporary HOME's settings.json (endpoint allowed, token in secrets, no credentials file needed).
  • pnpm typecheck passes 24/24 tasks; oxlint is clean; the eval tests pass. On Ubuntu, the two sandbox bridge tests also need the sandbox fix in the companion PR.
  • End to end on Ubuntu 26.04, together with that fix: pnpm dev eval --only-head --tasks cheers --builders sonnet,terra --repeats 1 with Claude Code configured only through a provider (ANTHROPIC_BASE_URL plus ANTHROPIC_AUTH_TOKEN in settings.json). The Sonnet builder and the Opus judge reached their models through it, the hub logged the sandbox's requests as 200, and all four verdicts came back.

Release impact

  • Breaking — requires action from anyone already running this

  • Not breaking — no action required: dev tooling under scripts/dev; nothing ships.

  • What does a revert leave behind? Nothing.

  • Does the release before it still work with that? Yes.


Made by Claude Opus 5.5 in Claude Code (via T3 Code), working on Allison's Ubuntu home server.

🤖 Generated with Claude Code

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:docs Touches the docs area size:m 100-500 changed lines labels Nov 2, 2026
The eval signed Claude Code in only with a token or the credentials file, so a
developer whose Claude Code reaches its models through a provider
(ANTHROPIC_BASE_URL, as with a subscription hub) had no way in. Builders and
judges now get that provider from the environment, dev.env or settings.json,
and its endpoint joins the private addresses the sandbox proxy lets through,
as Codex providers already do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the feat/eval-claude-model-provider branch from 72197ac to dd5e31b Compare November 3, 2026 23:45
@allisonmahmood
allisonmahmood merged commit 8ba50ad into main Nov 3, 2026
24 checks passed
@allisonmahmood
allisonmahmood deleted the feat/eval-claude-model-provider branch November 3, 2026 23:59
allisonmahmood added a commit that referenced this pull request Nov 4, 2026
## What changed

No build could pass `cheers` on `main`. Its check pressed the cheer
button outside `barrier.deliberately()`, so the grader's write barrier
held every cheer's write, and Ada always saw `0 → 0 → 0 → 0`. That made
the suite's easiest task a guaranteed fail, whatever the skills said.
Each cheer is now a deliberate step, as lending is in `broken-handler`.
The barrier lowers for the press and rises again once its write is
answered, which replaces the fixed 1.5 s wait.

Part of #1144

## Look at

The one-line change in `tasks/cheers.ts`. Ben's first visit, which only
looks, still runs with the barrier up, so a page that writes just by
being opened still can't move the count.

## How it was verified

`pnpm dev eval --only-head --tasks cheers --builders sonnet,terra
--repeats 1 --no-judge` on Ubuntu 26.04, together with #1206 and #1207,
which that machine needs to run the eval at all.

- **Before** (`main`'s check): both builds failed "each cheer reaches a
third colleague" with Ada seeing `0 → 0 → 0 → 0`, and the grader
reported holding the page's writes. The Opus judge traced it to the
click outside `deliberately()` and scored the Sonnet build's correctness
4/5.
- **After:** all three builds (Sonnet's uncounted warm-up, then Sonnet
and Terra) passed every check. Ada's count went `0 → 0 → 1 → 2` each
time.

`pnpm typecheck` passes 24/24 tasks; oxlint is clean.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required: an eval task under
`scripts/dev`; nothing ships.

- **What does a revert leave behind?** Nothing.
- **Does the release before it still work with that?** Yes.

---

Made by Claude Opus 5.5 in Claude Code (via T3 Code), working on
Allison's Ubuntu home server.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Allison Mahmood <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
allisonmahmood added a commit that referenced this pull request Nov 4, 2026
)

## What changed

The suite's tasks are each small: a counter, an approval flow, a bug fix
and a few agent tools. Nothing in it asks a builder for a whole tool
that uses most of Patchy at once, the way Allison's YC demo did. That
demo was War Room, a live incident room built from one open-ended
prompt.

`war-room` is that reference task. On `brightline`, a person asks for a
war room: incidents with a severity and a commander, one timeline
everyone sees update live, resolution only by the commander or an admin
with a root cause, a postmortem download and evidence screenshots.
Taylor at Cedar Works can use it as a guest, except for resolving.
People's agents can declare and update incidents through Patchy, but
never resolve a SEV1.

Part of #1144

## Look at

**The four checks** each try a rule where it's kept, rather than reading
the page's labels:

- **Live:** Marcus has the board open before Jordan declares an
incident. The incident, and then Jordan's update, must reach that open
page without a reload.
- **Who resolves:** Jordan, its commander, resolves. Each call the press
sends is held while Sofia, a member who isn't the commander, sends it as
her own first, and Marcus must see no change. This is spend-approvals'
`decide`.
- **Guest:** Taylor must be able to open the patch and post an update
Marcus sees, and Taylor's replayed resolve must change nothing.
- **Agents:** through Patchy MCP, Jordan's agent finds tools to declare
and post, declares a SEV1 and posts an update Marcus sees. Then it tries
every way it has to close the incident (a resolve tool, or a status tool
offering resolved), and each must be refused.

**Guests in task words.** A builder can't look up someone at another
company, and a run's addresses are its own, so the words write
`{email:taylor}`. `wordsFor` fills in the run's address for the builder
and says "taylor's email" for the blind judges. Checks can now open the
run's guests: `ctx.people` lists them last.

**Grader changes** found by running the task against real builds:

- `decide` learns Resolve and waits for what a click opens. It opens a
closed disclosure named for the decision (a `<details>` whose summary
reads "Resolve incident"). It fills a form before judging its button,
since a root cause can be what enables it. It answers a confirmation
brought up in place ("Yes, resolve"), not only in a dialog. And when a
probe throws, it aborts the call it was holding instead of leaving the
step waiting on it.
- `chooseField` and `fillRest` skip search boxes and filters, however
their label reads. "Search title, impact or commander" took the title
before, and `fillRest` typing into a form's "Find commander" cleared the
commander it had chosen. `formAround` takes the send names a form goes
by. `fillRest` writes a sentence long enough for a root cause.
"resolved" is a view status, so `reveal` finds a Resolved tab.
- A deliberate step waits only for its writes (`requestWrites`), not for
reads and subscriptions. When it gives up, it names the calls it was
still waiting on.

**Not covered:** PostHog. War Room charted production signals from the
company's PostHog, but an eval run's company has no connections
(`stage.ts`: "an eval can't make a scenario's connections yet"), so the
words leave it out. Evidence uploads, the postmortem and the clock are
left to the judges' rubric.

`heldOut: false`, so default suites include it. Builds took 3–13 minutes
against the 60-minute limit.

## How it was verified

Ten suites on Ubuntu 26.04 (`--only-head --tasks war-room --builders
sonnet,terra --repeats 1`), together with #1206, #1207 and #1209, fixing
a failure in the checks each time until the remaining failures were the
builds'. Along the way:

- Every check has passed on a real build: live delivery and
commander-only resolve on both Sonnet and Terra builds, the guest check
once builds could share with Taylor, and the agent check broadly.
- A failure that looked like the grader's was a real one. Terra builds
kept failing at "pressed Declare incident, but the page sent Patchy
nothing". Published into a `pnpm dev up brightline` environment and
driven by hand, the browser logs *Blocked form submission … the form's
frame is sandboxed and the 'allow-forms' permission is not set*: those
builds used `<form onSubmit>`, which `patchy-loop` already warns
against. The judges scored those builds low too.
- With judges (suite `20261103T191044`): Sonnet's two builds passed
every check, and Opus scored one 4 on every dimension (the judges' mean
for Sonnet was 4.0). Terra's build was judged 2.8; two of its three
failed checks were the grader's (a SEV2 match that pressed an incident
card named "SEV2 …"), fixed since.
- Then the whole suite, with #1206, #1207 and #1209 merged in
(`--builders sonnet,terra --repeats 1 --no-judge`), since `decide`,
`fillRest` and the barrier are shared. Cheers, broken-handler and
kudos-agents passed every check on both builds. Two more of the grader's
failures turned up on Terra's war rooms (the "Find commander" search and
the Resolve disclosure above), fixed since. On the final code (suite
`20261103T225112`, war-room and spend-approvals), every spend-approvals
check passed on all three builds, and Sonnet's war room passed every
check for the third run in a row. Terra's war room sent its declaration
with a native `<form onSubmit>`, which the frame's sandbox blocks: that
one is the build's.

`pnpm typecheck` passes 24/24 tasks; oxlint is clean; unit tests cover
`wordsFor`, how a card's status is read (a working status beats a
Resolved tab, and badge text that runs into its neighbour) and how a
tool's answer names its incident.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required: an eval task and its grader
under `scripts/dev`; nothing ships.

- **What does a revert leave behind?** Nothing.
- **Does the release before it still work with that?** Yes.

---

Made by Claude Opus 5.5 in Claude Code (via T3 Code), working on
Allison's Ubuntu home server.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Allison Mahmood <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
allisonmahmood added a commit that referenced this pull request Nov 4, 2026
…ges publish (#1241)

## What changed

This adds release 36's What's new entry, written from `1acc968`. It
covers everything merged since release 35's `through` (`dd0e2ec`), and
sets the `patchy` release to `0.36.0` in `packages/patchy/package.json`
and `CURRENT_RELEASE`.

| Change | PRs |
| --- | --- |
| Improved: shortcuts work where you use them (keys for one part of a
patch, the closest wins, text boxes keep their typing keys) | #1231 |
| Improved: the shortcuts sheet shows what works where you are (Ctrl+/
and ⌘/ open it, its commands run, it opens from a patch's menu and in
view on a narrow screen, keeps the look, spells keys out away from a
Mac) | #1231, #1181, #1178, #1180, #1177 |
| Fixed: keys pressed while a patch opens reach it | #1183 |
| Fixed: pages styled with Tailwind 4 publish, and a look with the same
rule saves | #1191 |
| Fixed: an old copy of a patch no longer replaces newer work
(**Breaking** for such a copy: it needs `patchy pull` or one
`--allow-behind` publish) | #1179 |
| Improved: your agent can check a publish before sending it | #1188 |
| Improved: your agent hears what changed when it updates a patch |
#1186, #1185 |
| Fixed: your agent stops chasing false alarms (`pnpm install` exit
codes, `manifest.json` bytes, the description notice, a copied dev
record) | #1176, #1174, #1175 |
| Behind the scenes: fuller hotkeys instructions for agents; fewer
redraw costs for patches with many shortcuts | #1182, #1187 |

`patchChanges` has three sentences for the agent refreshing a patch
across this release:
- #1231's, from its PR: text fields keep their keys, `preventDefault()`,
and the sheet's Mod+/ and `.hotkey-row` buttons.
- The sheet's dialog renders in `document.body`, and element-only page
rules don't reach it (#1178, #1180). Its own row lists last (#1181). The
hotkey label helpers take only valid literals (#1177).
- Publish's `unknown_base_version` (#1179).

It also rewords release 33's "Press ? to see every shortcut a patch
has". That was true only for a patch that mounts the shortcuts sheet, so
it now says a patch *can* list its shortcuts.

The rest get no line:
- #1206, #1207, #1209 and #1220 are `pnpm dev eval` tooling.
- #1222 is release 35's own entry.

## Look at

- **The entry**, at the top of `releases` in
`packages/core/src/whatsNew.ts`, and release 33's reworded line.
- **Rollback safety, from the live commit `d28fdd0` (release 35) to
`1acc968`:**
- #1191 is labelled `one-way`. Its Release impact: a company look
published after this release with a nested `@supports` condition stays
stored after a revert. Release 35 refuses any bundle carrying it, so
repo publishes in that company would fail until an admin runs `patchy
look restore` to an earlier revision. Pages and Tailwind 4 repos already
published stay published.
- #1183 is the only change to what the server serves browsers: the
shell's script, under a digest-named URL. Its revert leaves nothing
behind.
- The hotkeys PRs change `patchy/hotkeys`, which patches bundle when
they are built. Published patches keep their copy.
- The CLI PRs change what a CLI writes and refuses. Release 35 reads
everything they leave behind: #1176's `allowBuilds` entry, #1174's
indented `manifest.json`, and the `version` recorded by an
`--allow-behind` publish.

**Rollback line:** If this release misbehaves, roll back to `d28fdd0`
(release 35). First check that no company's look has a nested
`@supports` condition, and `patchy look restore` an earlier revision
where one does (#1191).

## How it was verified

- **Tests.** `whatsNew.test.ts`, `WhatsNewPages.test.ts` and
`schemas.test.ts` pass (22 tests), and `bun fmt` passes on the changed
files.
- **Facts.** The sheet's new `document.body` home and its element-rule
reset were checked against `hotkeys.ts` and `hotkeySheet.ts` on main.
- **Deploy state.** I pinned the live commit from `/healthz/deep`:
`d28fdd0` (release 35). 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.36.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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:docs Touches the docs area size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant