Repository navigation
feat(dev): held-out eval task, a daily standup where people own their entries - #1243
allisonmahmood wants to merge 6 commits into
Conversation
… entries Co-Authored-By: Claude Opus 5.5 <[email protected]>
…page loads Co-Authored-By: Claude Opus 5.5 <[email protected]>
…edits it Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s Edit behind its view, read table headers and count autosaves Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s and labels to agree, open only an entry's own view, and post again from a fresh page Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t for the save a read comes before Co-Authored-By: Claude Opus 5.5 <[email protected]>
Acceptance: PASSChecked Done means
In both the UI-only and admin-bypass builds, the ownership check reported: “Ada Park, an admin, sent Ben's fix (entries.save) as their own, and before Ben's own call went through, his entry showed with the fix.” The checked edit-by-ID build and Details-edit build each produced exactly two declared
All reported CI checks at this head passed or were intentionally skipped; none failed or remained pending.
Golden journeys None directly affected: the diff changes only eval tasks/helpers/tests and dev documentation. It does not change any product page, flow, CLI output, handler, authentication or data contract. The shared-grader risk to existing eval tasks is covered by the unchanged-code comparison and offline suite above. Rollback answers: Match the diff. Reverting removes eval-only code and prose; no schema, persistent product data, external action or shipped contract remains. No Not run
The anticipated overlap with #1242 is a trivial registration/docs rebase, not a defect. No PR code, branch, body or labels were changed; production was not touched. |
… kept missing (#1249) ## What changed Agents building on Patchy kept tripping over the same few platform behaviours that nothing they read said plainly. The fixes are facts, one or two sentences each, in the two places builders read: the `AGENTS.md` that `patchy init` writes, and the project skills. - **A page's form never submits.** Every page runs in a sandboxed frame without `allow-forms`, so `<form onSubmit>` with a submit button sends nothing. This caused 27 of the 53 failing runs on main (51%), nearly all of them Terra's. - **A plain `Error` doesn't reach the page.** Anything a handler throws besides a declared `HandlerError`, or one of Patchy's own refusals, arrives as `handler_failed`, with its message lost. - **An agent knows a tool's arguments only from its description and schema.** `t.enum` lists the accepted values in the schema; `t.text()` names none. - **The look can colour every `button`'s text, as the Patchy look does.** A button restyled with a light background then keeps the look's cream text and disappears. - **What `ctx.viewer` is, and how a row id reaches `ctx.tables.<t>.get`.** This was the most common reason builders left the skills to read Patchy's type declarations. - **`get` refuses an empty id.** A last round of edits, written by Claude Fable 5.2 from the judges' findings on this branch, is the last four commits, the last of them fixing a review of the round: - **List order and paging.** A list on a declared index comes back ascending by the index's columns, so oldest first when `eq` fixes them all, unless it passes `order: "desc"`; and rows past `limit` come only through the cursor. The tables example passes both, and patchy-server gains a paged handler example. - **What a refusal looks like on the page.** A `HandlerError`'s `message` is its code. The generated client exports `isHandlerError` and `isPatchyError`, and patchy-preact shows a page telling them apart and keeping `retry()` for a lost reply. - **`useQuery` can't be skipped**, so a query that can't run yet belongs in a component rendered once it can. - **`useFileUrl` downloads the whole file as soon as it mounts**, and each download counts against the viewer's 300 calls a minute. - **An action's table writes commit one at a time**, and a write that fails with `unknown_outcome` may have committed. - **Every `server/` export is callable from the page.** `ctx.agent` is null where no tool arrives, and a re-export can rename a tool with `as`. - **The look's heading colour and paragraph width hold** the way its button colour does. - **The members skill exists only after `pnpm patchy add members`.** - It also cuts paragraphs repeated word for word in another skill, corrects the per-patch live-query re-run limit (2, not 1), and gives the agent section's error sentence the same exception for Patchy's own refusals. Part of #1141. Supersedes #1244, whose change is the first commit here. ## Look at  | ×6, 120 verdicts a side | Fit | Platform | Correctness | UX | Code | Mean | Checks pass | | --- | --- | --- | --- | --- | --- | --- | --- | | main (`8a3b347`) | 4.02 | 3.89 | 3.75 | 4.11 | 3.96 | 3.95 | 50/60 (83%) | | this branch | **4.20** | **4.03** | 3.90 | **4.06** | 3.94 | **4.03** | **54/60 (90%)** | The goal was 4.0 or more on every judge dimension. Fit, platform and UX meet it; **correctness (3.90) and code (3.94) don't yet**. UX and code are level with main in this run, within noise, though round K moved both. The rest of the correctness gap is design choices: paging, which agent tools exist, copying a handler instead of re-exporting it, receipt cleanup. Five rounds of facts didn't move those (see below). - **Native-form pages** went from 4 to 0, and "the page sent Patchy nothing" failures from 6 to 0. - **Off-skill lookups** fell on the hard tasks: war-room/terra 4.0 → 0.3, spend-approvals/terra 3.7 → 0.0, spend-approvals/sonnet 5.7 → 2.8 per run. - **Per task**, spend-approvals/terra went from 3/6 to 6/6. One drop: spend-approvals/sonnet went 5/6 → 4/6. One head build subscribed every viewer to an admin-only query, and logged `not_admin` refusals. In another, Ben's request wasn't on Ada's starting view. **Held-out tasks** (#1242 `recipe-book`, #1243 `standup`, ×3, never used to choose a change): checks pass 9/12 → **12/12**; judges 3.68 → **4.04**, correctness 3.04 → 3.75. **On today's main, with the last round.** Measured after rebasing onto `7f93b91`: | ×3, 60 verdicts a side | Fit | Platform | Correctness | UX | Code | Mean | Checks pass | | --- | --- | --- | --- | --- | --- | --- | --- | | main (`7f93b91`) | 3.85 | 3.88 | 3.65 | 4.08 | 3.97 | 3.89 | 17/30 | | the first five commits (two suites, 120 verdicts) | **4.10** | 3.98 | 3.79 | **4.18** | 3.98 | **4.01** | 16/30, 18/30 | | with the last round | **4.05** | **4.10** | 3.90 | **4.13** | **4.00** | **4.04** | 18/30 | - **The first five commits** still score higher than main on every dimension. - **The last round** against the first five is within ×3 noise on scores (+0.06 mean), but what it aimed at moved. The judges' high and medium findings about paging and truncation fell from 38 to 17, lists returning the wrong end from 12 to 6, and retry handling from 18 to 12. All high and medium findings fell from 170 to 154. - **Pass rates are low on every side because the eval is broken on main.** Since #1204, the `team` scenario's Cleo hasn't accepted the terms, so when the grader opens a patch as her it gets the terms prompt and the patch never loads. Every cheers and spend-approvals build fails there. That hits both sides equally, so the comparison holds, but these pass rates can't be compared with the ×6 above. **Where the facts go matters more than what they say.** Terra (Codex) loads `AGENTS.md` into its instructions and reads the skills as long tool output. Each fact in this table was first tried in a skill alone, and none changed what Terra built there. In `AGENTS.md`, each did: | Fact | In the skill only | In `AGENTS.md` | | --- | --- | --- | | Forms never submit | native-form pages 1 → 4 of 12, dropped (H1) | native-form pages 2 → 0; pass 77% → 93% (round A) | | A plain `Error` is `handler_failed` | plain throws 2 → 1, judges flat, dropped (G) | plain throws 1 → 0; pass 80% → 90% (H) | | `t.enum` is in the tool's schema | judges 3.86 → 3.81, dropped (C) | every dimension up, mean 3.91 → 4.01 (I) | | A restyled button keeps the look's text colour | too rare in its suite to read, dropped (F) | transparent-button rules 9 → 3 of 30; UX 3.92 → 4.15, code 3.85 → 3.98 (K) | `AGENTS.md` is written once, at `patchy init`; `refresh` never touches it. So each fact also goes into its skill, as it was measured there, so builders in existing repos get it too. Those skill versions measured neutral on their own, not harmful. After review, three sentences were tightened without changing what they tell a builder. A business refusal is a declared `HandlerError`, and Patchy's own refusals keep their codes. A tool's description counts as well as its schema. The button rule holds when the look sets a button text colour. **War room, Terra, one build each side (round K):** before, the Resolved and All filter tabs are cream text on cream and only Open shows; after, all three read. | Before | After | | --- | --- | |  |  | <details><summary>Every round, kept and dropped</summary> Each round is an A/B suite: base and head both build all five training tasks ×3, both builders (Claude Code on Sonnet 5.5, Codex on Terra 6.1), both judges (Opus 5.5, Sol 6.1): 30 runs and 60 verdicts a side (H2, run twice: 60 and 120). Rounds after A are measured against #1244 + A. | Round | Change, and where | Judges, mean | Pass | Target signal | Result | | --- | --- | --- | --- | --- | --- | | H1 | Retitle patchy-loop's "Tier 1 constraints" to cover every page (forms) | 3.93 → 3.80 | 80% → 77% | native-form pages 1 → 4 of 12 | dropped | | H2 | patchy-server: `ctx.viewer`'s shape; row ids reach tables as `Id<"table">` (×6) | 3.85 → 3.83 | 83% → 78% | off-skill lookups on the hard tasks 5.2 → 2.1 per run; held-out `standup` too | **kept** (was #1244) | | H3 | patchy-server: a `HandlerError`'s message is its code; the `errors` list | 3.92 → 3.91 | 80% → 83% | bare-code findings 16 → 15 | dropped | | A | `AGENTS.md` and patchy-preact: forms never submit in the frame; patchy-tables: `get` refuses an empty id | 3.82 → **4.03** | 77% → **93%** | native-form pages 2 → 0; "sent nothing" 3 → 0 | **kept** | | B | patchy-server: a `t.member()` column holds `user.id`, a copied name goes stale; patchy-tables: filtering a fetched page misses later pages | 3.86 → 3.80 | 83% → 73% | builds using a member column 5 → 5 of 12; truncation findings 65 → 67 | dropped | | C | patchy-server: an action with no tool is closed to agents; `t.enum` is in the tool's schema | 3.86 → 3.81 | 73% → 73% | agent-coverage findings 17 → 18 | dropped | | D | patchy-look: recipe classes need their CSS, the Patchy look's example company is made up; files: `put` by a caller's name, `useFileUrl` fetches on mount | 3.93 → 3.91 | 90% → 83% | look findings 13 → 10, files 22 → 15; dimensions flat | dropped | | F | patchy-tables: a declared index lists ascending; patchy-look: a restyled button keeps the look's text colour | 3.97 → 4.01 | 90% → 90% | invisible-text findings 1 → 1, order findings 5 → 7 | dropped | | G | patchy-server: a plain `Error` reaches the page as `handler_failed` | 4.06 → 4.05 | 90% → 87% | plain throws 2 → 1 | dropped (moved to H) | | H | `AGENTS.md`: G's fact | 3.95 → 3.95 | 80% → **90%** | plain throws 1 → 0; `handler_failed` failures 1 → 0 | **kept** | | I | `AGENTS.md`: C's `t.enum` fact | 3.91 → **4.01** | 83% → 80% | every dimension up; agent-check failures 1 → 0 | **kept** (part of the lift is likely noise: it spans tasks without agent tools) | | J | `AGENTS.md`: a `list` returns one page and a cursor | 3.99 → 3.96 | 83% → 83% | truncation findings 17 → 19 | dropped | | K | `AGENTS.md`: F's button fact | 3.92 → **4.03** | 90% → 77% | transparent-button rules 9 → 3 of 30; UX 3.92 → 4.15 | **kept**, an exception: its pass dip was 4 plain-`Error` refusals and 1 free-text agent argument, H's and I's targets, which K's branch lacked | Judges are the mean of the five dimensions over both judges; each round is 30 runs and 60 verdicts a side (H2: 60 runs and 120 verdicts). </details> ## What didn't work, and why - **Restating a rule where Terra already reads it.** Terra `cat`s whole skill files on both sides of every A/B, so a heading never gated whether it saw the form rule (H1). It saw it, and wrote a native form about half the time anyway. The same fact in `AGENTS.md` worked. - **Facts about design choices.** Telling builders that a `t.member()` column holds a stable id (B), that leaving out an agent tool closes it to agents (C), that filtering a fetched page misses later pages (B, and J in `AGENTS.md`), or that a declared index lists oldest first (F) left the designs unchanged. Truncation findings stayed at 65 → 67 and 17 → 19. Only facts about behaviour the builder didn't know changed what it built. The exception came in the last round: it restated paging as what `list` does, with an example passing `order` and the cursor, and the paging findings halved (38 → 17). - **Saying what a refusal looks like on the page (H3).** True, and builders still showed the bare code. - **The look's example company.** I wrote that the Patchy look's example markup names a made-up company, Acme Co, after judges flagged pages that read "Acme Co". The `team` scenario's company *is* Acme Co, so those pages were right and the judges wrong. Dropped (D). The last round says only that the sample's names are placeholders and the company's name is `company.name`. - **Codex truncating long output.** Terra prints several skills in one command, so I checked whether the form rule fell in an elided middle. Runs where the rule landed in the visible head or tail used native forms as often (3/5) as those where it was cut (21/49), so that isn't why. ## How it was verified - **Final:** this branch's head against main (`8a3b347`), ×6 (two ×3 suites on the same commits), all five training tasks, both builders, both judges. - **Held-out:** both held-out tasks, #1242 `recipe-book` and #1243 `standup`, merged locally onto main, with this branch on top. They were never used to choose a change. Result, ×3, 24 verdicts a side: pass 9/12 (75%) → **12/12 (100%)**; judges 3.68 → **4.04** (fit 3.79 → 4.17, platform 3.96 → 4.25, correctness 3.04 → 3.75, UX 3.92 → 4.13, code 3.71 → 3.88); native-form pages 3 → 0. - **Facts checked against the code:** - forms: `packages/serving/src/shell.ts`, the frame's `sandbox="allow-scripts allow-modals"` - refusals: `packages/runtime/src/Invocation.ts`, `HandlerFailed`'s fixed message - enums in tool schemas: `packages/api/src/agentTools.ts` - buttons: `packages/companies/looks/patchy/look.css`, the `button` rule - empty ids: `packages/api/src/runtime.ts`, `tables.get` takes `NonEmptyText` - viewer shape: `ContextBase.viewer: Me` in `packages/patchy/src/server.ts` - **The last round:** its head (`c8af5ed`, before the last commit's two wording fixes and a clean rebase) against the first five commits, ×3; and the first five against main in a separate ×3 suite, both on `7f93b91`. Each claim in it was checked against the code: `TableOperations.ts` for list order, `handlerError.ts`, `generateClient.ts` and `generateServer.ts` for refusals and imports, `useQuery.ts`, the admission in `Runtime.ts` for file downloads, `registry.ts` for limits, `handlerDescriptors.ts` for re-exports, `Generation.ts` for the members skill, and `look.css`. - **Review of the last round:** GPT-6.1 Sol at xhigh, in Codex. Its five findings are fixed in the last commit: a declared index sorts by its columns, not by age; the page's error example left the `missing` code to show as text; only handler runs leave log entries; a call never sent fails with `unknown_outcome` and no `retry()`; and patchy-server repeated patchy-preact on `useQuery`. - **Raw runs stay on the eval machine.** - On this head, format, the SDK's skill tests (34, in `install`, `FrontDoor` and `SdkApi`) and `initProject.test.ts` (15) pass. Before the last round, `env -u NODE_ENV pnpm check`: format, lint, typecheck and synth pass; 2,828 of 2,830 tests pass. The two that timed out at 30 s (`cliRepoPublish`, `devServerWatch`) did so while four eval suites shared the machine; rerun alone with `initProject.test.ts`, all 38 pass. **Noise, so the numbers read right.** The same main commit read between 3.89 and 3.99 mean across suites, and one run is 3.3 points of a ×3 pass rate. Rounds were kept when their target moved and their pass rate held; K is the stated exception. The headline numbers pool two ×3 suites run on the same two commits. **Found on the way, outside this PR:** - **The eval since #1204.** The grader can't open a patch as the `team` scenario's Cleo, who hasn't accepted the terms, so two of the five tasks can't pass. A fix: the eval accepts the current terms for every person it signs in as. - **A live-query race.** A shell `replace` that arrives after a later `subscribe` is refused with 409, and the grader fails any check whose page logged an error. That can fail a correct build. - **Eval disk use.** The harness keeps a ~2 GB builder home per run. A trimmer on the eval machine covered it here. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required: skill text, and the `AGENTS.md` text new repos get. - **What does a revert leave behind?** Repos initialised in between keep the new `AGENTS.md` sentences, which stay true; skills regenerate from the release. - **Does the release before it still work with that?** Yes. Claude Opus 5.5 in Claude Code, through T3 Code; the last round's skill edits by Claude Fable 5.2. --------- Co-authored-by: Allison Mahmood <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed
Held-out eval tasks confirm that a skill edit generalises, and are never used to choose one. This adds
standup, a held-out task onteam. A person asks, in their own words:It's
heldOut: true, so a defaultpnpm dev evalskips it and--tasks standupruns it. It creates a repo patch attier: 2, because tier 1 has no per-row access (every viewer can write every row, perdocs/product.md), so only handlers can keep each entry its author's.Part of #1144
Look at
Ownership is tried at the server, not on the page. There are three checks, each with its own author. A grading's checks share one patch, and a build may keep one entry per person per day, so no author posts twice.
opens ready. Admins are tried on purpose: the request says nobody can change someone else's entry.Holding needed
holdWhileinpage.ts:decide's holding loop, for a change that isn't an Approve, Reject or Resolve press. I leftdecidealone rather than change existing checks; sharing the loop is a follow-up.The rubric states the behaviour, not one entry model. Today's entries are visible to the team, and each is its author's alone to change, admins included. Either model fits:
The author comes from
ctx.viewer, never an argument.Nothing depends on the builder's names, and each step prefers a sure answer to a clever one:
aria-labelledbyoraria-label, must name the author alone, by first name or email. In a table, the cell's headers count too: itsheaders, else the header cells across its rows and above it in its columns, with the table laid out as itsrowspanandcolspanplace it. Headers and any name inside the cell must agree on one person; a contradiction or ambiguity means nobody's alone. So when a try saves Ben's words as the trier's own entry, that copy isn't counted as his.No agent angle: builders shape agent tools their own way, and filling three free-text fields through their arguments would make that check flaky.
kudos-agentsandwar-roomcover agents.How it was verified
Planted flaws and correct builds at this head. Each build is a passing real build changed on purpose, or written as a fixture. Each was published to a local
teamenvironment on a fresh patch and graded with the task's checks under Bun, aspnpm dev evalgrades.entries.save) as her own, and his entry showed the fix before his call went throughrowspanshifts Ada's words under Ben's column headerThe reviews' cases. Each row is a review's case, graded with the checks before its fix and at this head. A ✓✓✓ on a flaw is a false pass; an ✗ on a correct build is a false failure.
12ebc1612ebc16: posted a second entry12ebc16: beside all three names12ebc16: "leaving the field saved nothing"rowspanputs Ada's words under Ben's header3aed8613aed861colspanTeam header and arowspancorner3aed861: beside Ben Ortiz3aed861: opened the other card, then posted a second entry3aed861: the dialog covered the form's button (click timed out)3aed861: the page was closed before it saved3ca1dd5: Ben sees what Ada is doing today, but not what she did yesterday or what's blocking her3ca1dd5: the page was closed after the read, before the saveReal builds. All 14 builds from the four suites below were regraded at this head, each on a fresh patch. 13 pass all three checks. The 14th, the first suite's Terra run 1, fails all three because its page sends entries with a native
<form onSubmit>, which the patch frame's sandbox blocks: Chromium logs "Blocked form submission … the 'allow-forms' permission is not set", so nobody could post. That failure is the build's, not the grader's.What could still be graded wrong. None of these can false-pass a build except the first, and none is likely from a real builder:
order, absolute positioning).whosereads the DOM. It's very unlikely: every build here, and every layout the reviews tried, kept DOM and display together.role="table",columnheader) rather than<table>. Header resolution only reads<table>, so a people-as-columns ARIA grid falls back to the ancestor rule and reads as everyone's. Unlikely in a Preact page.Suites, all
pnpm dev eval --only-head --tasks standup --concurrency 4.sonnetis Sonnet 5.5 high in Claude Code;terrais GPT-6.1 Terra high in Codex. These ran before the reviews' fixes, so their check results are for earlier checks; the regrade above is for this head's.20261104T15130320261104T16151220261104T16511112ebc1620261104T17035412ebc16A first attempt, before these, set up no builders: npm skipped Claude Code's optional
linux-x64package in the builder home. The next run was clean. All 14 builds chose one design: a mutation that saves the caller's own entry, with the author fromctx.viewerand a unique index on author and day.Judges (
20261104T170354, rubric before the reviews' changes): both gave verdicts on both runs, none 2 or more apart on a dimension.What the judges flagged follows the rubric. On both builds, "today" is decided by the browser and only loosely checked by the server. On Terra's, validation throws plain errors rather than declared ones, and blockers look like the other two answers. Both have smaller notes: nobody is shown as not having posted yet, and reads are unbounded or truncated.
Checks:
checks.test.tscover which label each part takes, a name versus a longer word or an email, and what counts as someone's entry. The eval tests pass (89).env -u NODE_ENV pnpm checkpasses at this head: format, lint, typecheck, synth and all 2833 tests (this machine's shell setsNODE_ENV=production, which local execution refuses).pnpm dev evaldoes. Under tsx, the named helpers insidewhose's in-page code get wrapped in a__namehelper the page doesn't define, so a grader run under tsx would throw there.#1242, the other held-out task, edits the same sentence in
docs/DEVELOPMENT.mdand the same list intasks/index.ts, so whichever lands second merges the two.Release impact
Tick exactly one.
An eval task and its checks under
scripts/dev, and a line of docs; nothing ships.Built by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, through T3 Code.