Skip to content

fix(dev): eval runs start every person past the terms prompt - #1419

Merged
allisonmahmood merged 1 commit into
mainfrom
fix/eval-terms
Nov 12, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
fix/eval-terms

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

What changed

pnpm dev eval has failed every check that opens a patch as team's Cleo since #1204, on both sides of every suite. #1204 made Cleo termsPending so the terms prompt could be shown, and every run copies its scenario's people, Cleo included. So when the grader opened a patch as her, it landed on "We've updated our terms" instead of the patch. Since then, cheers checks that need her and spend-approvals' approval and rejection checks have failed whatever was built. Pass rates from that point on can't be compared with earlier ones.

A run's people now all start past the terms prompt. No eval task is about the prompt, and the scenario itself is unchanged: pnpm dev up team still shows Cleo the prompt.

Look at

namespaceScenario in scripts/dev/src/eval/fixtures.ts copies each person without termsPending. A new test seeds a run of team and checks that every run person has accepted the current terms. It fails on main and passes here:

main:  × starts every run's people past the terms prompt, as its checks open pages as them
       AssertionError: expected false to be true
here:  Tests  45 passed (45)   (scripts/dev/src/eval/eval.test.ts)

Real runs. pnpm dev eval seeds both sides with the eval code of the checkout that runs it, so the comparison is between whose eval code ran, not between the sides. Sonnet built, with no judges:

Eval code Task Runs The checks that open as Cleo
main, yesterday's ×3 suite cheers 14 all 14 fail "each cheer reaches a third colleague: The patch never showed Cleo Shah anything."
main, yesterday's ×3 suite spend-approvals 12 approval and rejection fail in 10 with the same sentence; the other 2 failed earlier, on their builds
main 3a43a84, today cheers 4 all 4 fail with the same sentence
this branch cheers 4 4/4 checks pass in every run
this branch spend-approvals 2 6/6 checks pass in every run

How it was verified

  • scripts/dev/src/eval/eval.test.ts: 45 pass, including the new test.
  • scripts/dev typechecks; lint and format pass on the changed files.
  • The eval runs above, from a checkout of main and from this branch.
  • docs/DEVELOPMENT.md now says a run's people start past the prompt, under "A run's identities".

Release impact

  • Breaking — requires action from anyone already running this

  • Not breaking — the dev eval's own fixtures; nothing that ships changes.

  • What does a revert leave behind? Nothing. Eval runs' people would get the prompt again.

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

Claude Opus 5.5 in Claude Code, through T3 Code.

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:docs Touches the docs area size:s Under 100 changed lines labels Nov 12, 2026
Since team's Cleo became termsPending (#1204), the grader landed on the
terms prompt whenever it opened a patch as her, so every cheers and
spend-approvals check that needs her failed on both sides. A run's people
now all start past the prompt; no task is about it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 26c505d68a3167372bdaee605144b7642604ecfa (base be360708a6454c6d041fe113ef859d0499a1a07a) on team, by GPT-6.1 Sol in the Codex harness through T3 Code. I did not write this change.

Done means

  • Every eval person accepts the current terms: passed. Seeded fresh runs with each checkout's own seedRun. At the head, Ada, Ben and Cleo all satisfy Users.hasAcceptedTerms for the current terms and privacy revisions (2026-11-10). On main, only Ada and Ben do; Cleo does not.
  • The grader opens a patch as eval Cleo, and main's terms prompt explains its failure: passed. Published the same small probe page in each run and used the grader's actual openAs with Chromium. At the head, Cleo signs in, the grader reports ready, and the probe heading is visible inside iframe#patch, without browser errors. On main, Cleo signs in but gets “We’ve updated our terms”, no patch frame, and ready is false. Main's Ben opens that same published patch successfully as a control.
  • Ordinary pnpm dev up team preserves feat(auth): people accept updated terms on their next page #1204: passed. On fresh ordinary scenarios at both commits, Cleo has no current acceptance and browser navigation shows the terms prompt. The scenario's termsPending: true remains unchanged.
  • Other fixture behavior and consumers remain intact: passed. Compared namespace output for all eight scenarios: every other field matches main after excluding the intended termsPending difference, and neither transform mutates its input. Traced all callers: eval run seeding, eval template setup, and retirement. Run retirement passed on both commits; the head's complete dev-runner suite also covers identity isolation and retirement.

Golden journeys

  • Publish and open a page through the eval identities (team, Ada and Cleo): passed. CLI publishing succeeded on both instances; Cleo reaches the patch at the head, and Ben's main control reaches it too.
  • Sign-in and terms boundary (team, Cleo): passed. Eval sign-in reaches the patch at the head; ordinary sign-in still requires acceptance. Both throwaway instances were taken down after checking.

Validation

env -u NODE_ENV pnpm exec vitest run scripts/dev/src/eval/eval.test.ts
Test Files  1 passed (1)
Tests       45 passed (45)

env -u NODE_ENV pnpm exec vitest run scripts/dev
Test Files  20 passed (20)
Tests       190 passed (190)

env -u NODE_ENV pnpm exec turbo run typecheck --filter @patchy/dev
Tasks       22 successful, 22 total

Formatting and lint also pass on the changed files.

Rollback answers: They match the diff. No shipped runtime, migrations, wire contract or CLI contract changes. A revert restores the old behavior for future eval runs; any local acceptance rows use the existing, backward-compatible shape. No one-way label is needed. CI's rollback-rehearsal passed.

Not run

  • Fresh agent builder/judge runs: used the permitted direct seeding and actual grader checks from separate head and main checkouts instead.

Notes

  • The latest CI snapshot has 21 successful checks, three skipped checks, and no failures. browser and test (24) are still running; this verdict does not claim their completion.

@allisonmahmood
allisonmahmood merged commit 263db8a into main Nov 12, 2026
26 checks passed
@allisonmahmood
allisonmahmood deleted the fix/eval-terms branch November 12, 2026 13:55
allisonmahmood added a commit that referenced this pull request Nov 12, 2026
…ey shortcuts (#1421)

## What changed

This adds release 42's What's new entry, written from `1cd6d12`. It
covers everything merged since release 41's `through` (`a25a9c5`), and
sets the `patchy` release to `0.42.0` in `packages/patchy/package.json`
and `CURRENT_RELEASE`.

| Change | PRs |
| --- | --- |
| New: Tell Patchy what it's missing | #1217, #1218, #1219, #1227, #1228
|
| New: Turn off single-key shortcuts | #1276, #1279, #1301 |
| Fixed: Typing reaches the patch again | #1407, #1412 |
| Fixed: Dialogs in patches keep your place | #1420, #1255 |
| Behind the scenes: plainer facts for agents building patches | #1249,
#1256, #1297, #1418 |
| Behind the scenes: Patchy stores teams and audiences ahead of teams |
#1416 |
| Patch changes: Mod+/ and `client.close()` in patchy/hotkeys;
single-key shortcuts can be off; Tab wraps in plain modal dialogs |
#1279, #1301, #1420 |

#1376 is release 41's own entry. #1400, #1406, #1414, #1415, #1302,
#1413 and #1419 are test, CI and dev tooling and need no line.

The teams bridge (#1416) ships alone in this release so teams (#1417)
can follow in the next one with a release to roll back to that reads its
data closed.

## Look at

- **The entry**, at the top of `releases` in
`packages/core/src/whatsNew.ts`.
- **Rollback safety, from the live commit `7f93b91` (release 41) to this
PR's merge.** No PR in the range is labelled `one-way`, and every
Release impact answer says release 41 still works:
- **#1217** adds migration `0037_feedback`, a schema release 41 never
reads. **#1227** and **#1228** write into it.
- **#1276** adds migration `0038_single_key_shortcuts`, a column with a
default that release 41 never selects.
- **#1416** adds migrations `0039_company_teams` to
`0041_connection_audiences`, which hold tables that stay empty until
teams ship, and widens one scope check. Its CI rehearsal ran `7f93b91 →
head → 7f93b91 → head` on one set of data, and all four steps passed.
- **#1279**, **#1301**, **#1255** and **#1420** change the SDK and the
shell. Patches built on this release carry a `shortcutSetting` manifest
field that release 41 reads without refusing, and its shell names no
frame, so every shortcut stays on.
- **#1218** and **#1219** add CLI commands and an optional
`feedbackHint` in `--json` failures. A CLI from this release refuses to
publish to an older instance before sending anything, as any mismatched
release does.
  - Everything else is skill text, docs, tests and CI.

If this release misbehaves, roll back to `7f93b91` (release 41).

Written by Claude Opus 5.5 in Claude Code, through T3 Code.

🤖 Generated with [Claude Code](https://claude.com/claude-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:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant