Skip to content

feat(dev): eval tasks that change existing patches, with spend, broken-handler and kudos-agents - #1153

Merged
allisonmahmood merged 1 commit into
mainfrom
feat/skill-evals-tasks-1144
Nov 2, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
feat/skill-evals-tasks-1144

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

What changed

Every eval task created a new patch, and cheers was so easy every build passed it, so the suite couldn't tell a better skill from a worse one. Tasks can now change a patch that already exists, and checks can act as a person's own agent through Patchy MCP. This adds the first three harder tasks: spend-approvals, broken-handler and kudos-agents.

Part of #1144

Look at

Existing targets are staged inside the run's sandbox. A task's target is { create: "repo" | "page" } or { existing: "<scenario patch>" }, and visible names the repos the builder finds in ~/Patchy; by default that's the target's own. Before the builder starts, and untimed, stage.ts publishes the task scenario's patches into the run's own company as the run's publisher, through the run's own CLI in its sandbox, the way pnpm dev up does. For each repo it runs patchy init at its tier, copies the builder-owned files from the runner's checkout, then pnpm patchy refresh and pnpm patchy publish. File patches publish as single-file pages. Sample data is pressed as the publisher through the grader's keyed door, and guests are shared. Then the repos the builder isn't meant to see are removed, and each patch's version is recorded. Grading takes an existing target by its staged id, and published needs a version newer than the staged one; without one, nothing else is graded. The side's own AGENTS.md from init is kept rather than the scenario's copy, because that template is part of what an eval measures (brightline's committed copy predates the agent/ line).

Checks can act as a person's agent. A check names the people whose agents it uses (agents: ["jordan"]). Grading mints each a connection the way pnpm dev mcp-token does, and ctx.agent(key) lists the target's tools with open_patch and calls them with read_patch and change_patch. Builders name and shape their tools however they like, so findTool picks one by its kind and words, and argsFor fills its arguments from its JSON Schema. A field about a person is tried as the member id, then the email, then the name (the field's own words decide the order) until one isn't refused. Each change gets a key unique across the grading. The run's company has agent access on when its scenario says so (brightline does). Minted tokens go to the scorecard's sanitizer as they're made, and a failed call throws a message that names only the door tool; Playwright's own error, which can carry the bearer, stays its cause.

Checks try rules against the server, not just the page. A page's handler calls and table writes go through its shell as POST /api/runtime/call, with the person's session cookie as the authority. When Ada presses Approve or Reject, every call her press sends (other than plain reads) is held back in turn and sent as Ben and as Cleo from their own signed-in pages first, each with its own change key. With Ada's call still held, Ben's view must show his request the same just before and just after each try, refused or not. So a refusal after the change committed doesn't pass, and Ada's own earlier calls aren't blamed on a member. Holding continues, however long the page waits between calls, until Ben sees the decision right after one of her held calls goes through: that call was the decision, and both members tried it first. A decision that never shows that way within a minute fails the check rather than passing unproven. Each refusal a try draws is noted as expected (person, handler, code and Patchy's time of answer), which excuses exactly one matching log entry; any other refusal during grading still fails opens ready. Patchy not answering one of the grader's calls is GraderTrouble: grading ends as infrastructure and is retried, never charged to the builder.

Looking never changes data: a write barrier, not labels. Every page the grader opens has a write barrier (eval/barrier.ts), raised before its first navigation and kept through every reload. The page can read, but every write it attempts is held. The grader never forwards, answers or fails it, so it never reaches Patchy and the page never hears back, whatever control, timer, retry or mount effect sent it.

  • A call is judged by its operation against an allowlist of reads audited against the runtime's operation list, and a server.call reads only when the version's published manifest lists its handler as a query.
  • Anything else is a write, including files.discard, integration operations and anything unknown, so the barrier fails closed.

Since the page never receives a refusal, there's nothing for it to report and nothing to excuse: every console error and uncaught exception counts. An earlier version answered refusals and excused the page's reports of them. However strictly the text was matched, a page could copy a refusal's words into a wrapper (AggregateError, a cause chain) around an unrelated failure, so that approach is gone.

Only a deliberate step lowers the barrier: Ben asking for money, Ben lending kit, and Ada's decision with its held calls. Before lowering, it waits until 2 s have passed since the last write it held. A page that keeps trying to write for 10 s fails the check rather than having those writes let in. However the step ends, normally or by throwing, the barrier rises again only once the step's writes have been answered and nothing new has been sent for 2 s. It waits up to 75 s (an action's 60 s and a margin); past that, grading ends as the grader's trouble.

A press that tries a write isn't counted as a view. So hard rule 1, the grader never changes data it isn't meant to, holds whatever a control is named or renamed to mid-click. The candidate rules only decide which controls are worth trying.

What holding costs.

  • A held write lives as long as its page. The shell gives up on it at its reply deadline (110 s for a server call, 35 s for anything else) and tells the page its reply was lost. An error the page logs then counts, and says it came just after a held write timed out.
  • Held writes take up the shell's outstanding requests (32 a page); past that the shell refuses the page's further calls itself.
  • A page left waiting on a held write can act differently, for example keeping a form disabled while it waits. So whenever the grader held writes on a check's pages, the check's failure detail says how many.
  • An error a page would only report once a held write settles is never reported, since the grader never lets that write finish. That sits on the same path as any data-changing control the grader doesn't press.

Accepted limit. A write that looking schedules for later can land in a following deliberate window. At the network a write can't be traced to the press that scheduled it, so before lowering the barrier only waits until 2 s have passed since the last write it held, and with none yet it lowers at once. A timer of any length set by looking, even one shorter than 2 s, can fire after the barrier is lowered and get through. Pages don't schedule writes that way in practice, and the state checks around each deliberate step still catch a change to a request's decision that the step didn't cause. The same note sits beside the barrier in barrier.ts.

The three tasks, and what their checks do:

  • spend-approvals (create, team, must be tier 2): Ben submits a request with an amount, a reason and a receipt file whose bytes carry the check's code, and Ada opens it: a file Patchy serves her must be exactly those bytes. On two more requests, Ada approves one and rejects the other while Ben's and Cleo's tries go to the server first, then Ben sees each decision. Forms are driven by label and role: a form behind a button is opened, prefilled fields are replaced, anything else it holds gets plain values, words a decision asks for are filled in, and a request hidden in another view is looked for only behind controls that are views by their role or state: tabs, selections and places that aren't named like actions, view nouns (All, Mine, My …, Team …), and statuses only inside a filter bar. Each press is bound to the very element that was vetted.
  • broken-handler (existing): scenarios/kit-room is new, and Kit loans in it is broken on purpose. Its board formats due dates with new Date(row.due ?? ""), which throws RangeError: Invalid time value once a loan has no due date, and its sample data has one. Ben sees "The handler failed. Use the correlation id to find its log." Ben lends kit with no return date and Ada sees it. Then the board's own query, read as Ada, must keep the tripod and Ben's loan without due dates, and the dated loans on the days staging dated them, counted from when it recorded loading the sample data. Deleting, inventing or moving dates, even a day and even all together, fails.
  • kudos-agents (existing, brightline's Kudos): Jordan's agent finds tools to give and to list kudos. It gives Priya a kudo that Marcus sees on the wall as Jordan's to Priya, and it lists a kudo it gave. Tools are ranked by what they're about (kudos, appreciation, thanks) before their verb, and a name that says people ranks after every other tool, so a lookup never stands in for the list. A colleague is named in whatever field a tool's name or description says is a person, nested objects included.

Each check passes a correct build and fails an incorrect one. I ran them against hand-made builds on a local instance:

Task Build Result
broken-handler unfixed fail: Ben still sees the handler fail
broken-handler "fixed" by hiding open-ended loans fail: the open-ended tripod loan is gone from Ben's list
broken-handler "fixed" by inventing today's date on the board fail: the tripod's open-ended loan now has a due date
broken-handler board fixed, but lending fills in today fail: Ben's loan with no return date got a due date
broken-handler due date handled when absent pass
spend-approvals brightline's Spend, where members decide others' requests under $2,500 fail: Patchy let Priya Shah, a member, approve (and reject) Ben's request
spend-approvals the same, its receipt card swapped for an inert "View receipt" button fail: Ada sees Ben's request but can't open the receipt he attached
spend-approvals Approve asks the requests.list query first, then calls an approve members may use fail: Priya Shah, a member, sent Ada's approve call (requests.approve) as their own, and Ben's request then showed approved
spend-approvals Approve calls an action that runs the approve mutation, then throws not_admin for a member fail: Priya Shah … was refused, but Ben's request then showed approved
spend-approvals Approve asks requests.list, waits 6 s, then calls an approve members may use fail: Priya Shah … sent Ada's approve call (requests.approve) as their own, and Ben's request then showed approved
spend-approvals the same Spend, approve and reject admin-only on the server pass (all three)
spend-approvals admin-only, Approve = list → 6 s → approve → list, Reject = reject → list pass (all three)
spend-approvals Sonnet's build from the latest live run, republished locally pass (all three)
spend-approvals Terra's build from the latest live run, republished locally (sends its request with a native <form onSubmit>) fail: Ben pressed send, but the page sent Patchy nothing (Chromium: "Blocked form submission … the 'allow-forms' permission is not set")
broken-handler Terra's build from the latest live run, republished locally pass
broken-handler the same, lending 300 ms after the press pass (before this head's fix: "Lending sent Patchy nothing the grader could follow")
kudos-agents a probe run's agent area pass
kudos-agents getKudos, listPeople, and giveKudos taking a described id pass (getKudos picked, Priya's id filled)

The live suite with the whole-life write barrier, both builders, one repeat:

Eval 20261101T194441-729e4f3

At 729e4f3. sonnet is claude-sonnet-5-5 at high; terra is gpt-6.1-terra at high. Tools: node 24.20.0, pnpm 12.9.1, claude 2.1.316, codex 0.166.0.

Task Builder Runs Built Passed Minutes Turns Input Output Failed cmds Off-skill Refusals
spend-approvals sonnet 1 1 1 2.7 23 1568k 13k 1 4 –
spend-approvals terra 1 1 0 2.5 – 1245k 7k 2 3 –
broken-handler sonnet 1 1 1 1.0 15 693k 4k 1 0 –
broken-handler terra 1 1 0 1.2 – 656k 3k 2 0 –
kudos-agents sonnet 1 1 1 1.2 17 878k 7k 0 0 –
kudos-agents terra 1 1 1 1.0 – 585k 3k 2 0 –

Medians, without infrastructure failures. Few runs are a pilot, not a measurement.

Run Outcome Checks Minutes Notes
spend-approvals/sonnet/1 built ✓ ✓✓✓✓✓✓ 2.7
spend-approvals/terra/1 built ✓✓✓✗✗✗ 2.5 Ben asks with a receipt, and Ada opens it: Ben sent the request, but it never showed up for him on his starting view or behind its tabs and view toggles.; only an admin's approval counts, and Ben sees it: Ben sent the request, but it never
broken-handler/sonnet/1 built ✓ ✓✓✓✓ 1.0
broken-handler/terra/1 built ✓✓✓✗ 1.2 Ben lends kit with no return date, and the board keeps every loan as it is: Lending sent Patchy nothing the grader could follow.
kudos-agents/sonnet/1 built ✓ ✓✓✓✓✓✓ 1.2
kudos-agents/terra/1 built ✓ ✓✓✓✓✓✓ 1.0

Both of Terra's failures were looked into on a local instance with its published source:

  • spend-approvals is a real failure. Terra's page sends its request with a native <form onSubmit> and a submit button. A patch frame's sandbox has no allow-forms, so Chromium blocks the submission and nobody can send a request. The detail said "Ben sent the request"; it now says "Ben pressed send, but the page sent Patchy nothing."
  • broken-handler was the grader's bug, fixed in b85db49. Terra's fix is correct and passes. The grader stopped listening for the lend call as soon as the click returned, and on the loaded evaluation instance the shell sent it a moment later. It now waits up to 10 s for that first call. A control that lends 300 ms after the press fails the old code with the live message and passes the new one.

The same commit starts a deliberate step's 2 s quiet window after the step itself, not at its start, so a write sent shortly after a slow step's press isn't refused once the barrier rises.

How it was verified

  • scripts/dev/src/eval/stage.test.ts (10): each expected refusal excuses exactly one log entry (same person, handler and code, within moments of Patchy's answer), and another of the same kind, a different code from the same handler or a later one still counts. Staging records a repo by the id its patchy.json holds and a page by its name, and calls an unserved one missing. visible defaults. Target choice: a new patch is the newest one the run didn't stage, and an existing one is the staged id while it is served. published needs a newer version and fails the wrong tier. Every task names patches and people its scenario has, and no scenario a task uses declares a connection.

  • scripts/dev/src/eval/barrier.test.ts (10): the write barrier treats every operation but an audited read as a write (files.discard, pidgeon.send, postgres.execute and an unknown one included), lets a server.call through only to a handler the manifest lists as a query, and judges a request by endpoint, method and operation; an unreadable call body or an unknown endpoint counts as a write. Against a fake page on fake timers:

    • a looking write is held, never forwarded, and a deliberate write after it goes through;
    • a deliberate step that throws after sending a write keeps the barrier down until the write is answered, and one still unanswered at the deadline ends grading as the grader's trouble;
    • the barrier lowers only 2 s after the last held write, and never while a page keeps trying to write.

    Through the check's own result (checkResult):

    • every console error and uncaught exception fails the check, including Sol's AggregateError and cause-chain reports, an empty Error() and Error("access_denied") beside a refusal, and a refusal alone;
    • a lone held write logs nothing and the check passes;
    • an error just after a held write timed out says so, and the failure says how many writes the grader held.
  • scripts/dev/src/eval/checks.test.ts (22): Also which controls a search for a view may press. Tabs, places and view nouns are pressed; a status (Review, Open, Paid) only beside another view and no action. A lone Paid, Done or Review never is. Neither are Withdraw request, Supprimer, a Trash icon, Approve all, Open request, New request, Review (submit), Export CSV or emoji. Hidden controls don't count toward the twenty, and a dialog closes only by a whole Close, Cancel, Dismiss or ×. arguments for a colleague named three ways, in the field's own order, by a description alone, and inside an object about them. Optional fields left out and required ones filled plainly. Tool choice by meaning, including Terra's tool set, getKudos beside listPeople, and wall beside listKudosPeople. The entry holding the words, however a list is shaped. A door failure as GraderTrouble that ends grading as infrastructure, with a message without the bearer. The Kit loans board: open-ended loans, dated loans on the days staging loaded them, and dates moved by a day or all together. A receipt counted only as its exact bytes from a file response. Decisions read as approved, rejected, undecided or nothing.

  • scripts/dev/src/scenario.test.ts: kit-room loads and is listed.

  • pnpm dev up kit-room publishes Kit loans, loads its sample data, and fails for Ben as designed (the log shows the RangeError).

  • The barrier's browser cases ran locally in Chromium against the real barrier, reveal and error collector, in a frame sandboxed like a patch's, with a shell-like broker. Every earlier case still holds: writes reach Patchy only from deliberate steps. A lone held write logs nothing. An unrelated failure beside a held write counts: an AggregateError, an empty Error() with Error("access_denied"), or a thrown one. Reporters that wait on a held write (Sol's AggregateError, cause chain and allSettled) never report.

  • Against the real shell and broker, on a local instance with a two-button tier 2 probe patch:

    • with 8 looking writes held in one document (more than Chromium's 6 connections per host), a deliberate write reached Patchy and was answered in 92 ms, and closing the page took 5 ms;
    • left past the broker's 110 s deadline, a held call was aborted and the page got "The runtime reply was lost.";
    • with the real raiseBarrier, a looking press was held and a deliberate press after it was answered, with no page errors.
  • On real builds with the holding barrier: Sonnet's spend build passes all three spend checks, and Terra's broken-handler fix passes.

  • Checks: pnpm exec turbo run typecheck --filter=@patchy/dev, pnpm exec effect-tsgo tsc -p tsconfig.test.json, pnpm exec oxlint scripts/dev/src, pnpm run format:check.

  • pnpm verify, on the first commit (the review fixes touch only scripts/dev and docs): format, lint, typecheck, synth, postgres-concurrency, cli-smoke, install, tier2-smoke and browser passed. test and test (bun) failed locally on the known ones: 11 CLI stub-server tests and RequestEvents each recorded one request more than they sent (the local port probe), and LocalTaskProvider under load. Those two passed re-run alone, and this branch changes nothing under apps/ or packages/.

  • Found, not fixed (network.ts is Skill evals 2: compare two commits, judged blind by Opus 5.5 and Sol #1143's; fix(dev): an eval suite finishes even when a builder leaves a connection open #1154 fixes it): the suite could hang after its last run, before writing its scorecard, when network.ts waited on server.close() for connections that never ended. Two of the four suites on this PR did; their scorecards were rebuilt from the run records. The latest one finished on its own.

  • Also seen: under this machine's load, Chromium's renderer crashed in about half of one check's local runs, and /tmp briefly filled. The grader counts a renderer crash as the patch's result.

Release impact

Tick exactly one.

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required

Dev tooling and an eval-only scenario: nothing in the server, CLI, API or schema changes.

  • What does a revert leave behind? Nothing outside .local/ on the machine that ran an eval.
  • 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.

@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:docs Touches the docs area size:xl Over 1,000 changed lines; review in multiple passes labels Nov 1, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Reviewed head 1d3c139 against #1141/#1144. Findings, most severe first:

  1. [P1 — Safety] MCP transport errors leak the grader's bearer token into the scorecard. scripts/dev/src/eval/agent.ts:103 lets Playwright request exceptions escape; grade.ts:414 copies their complete message into a check failure. Playwright includes the Authorization header in connection-error diagnostics. These newly minted tokens are never registered with the sanitizer in suite.ts:295, and its credential patterns do not match them. Reproduced with a synthetic credential and a refused loopback connection: both the exception and sanitized text retained the credential, so scorecard.json can carry it. Fix: wrap transport errors in a safe, structured infrastructure error with the original exception only as its cause, and collect every minted credential for redaction, including retry/partial-failure paths.

  2. [P1 — Measurement] Hiding approval controls passes for server authorization. scripts/dev/src/eval/tasks/spendApprovals.ts:137 only attempts approval through visible UI controls. A tier 2 build that hides Approve from members but omits the handler's role check passes both checks. I reproduced that with the actual task checks and a Playwright fixture; the underlying decision operation accepted a member. This rewards exactly the insecure design the rubric rules out. Fix: probe the decision handler using member credentials, assert refusal and unchanged state, then verify the admin succeeds.

  3. [P1 — Measurement] Ignoring every declared refusal hides genuine page failures. scripts/dev/src/eval/grade.ts:590 excludes all handler_error entries, rather than only expected control-step refusals. For example, Kudos can retain a working wall while its totals query always throws a declared unavailable error; its page renders an alert without a console error, and the kudos checks do not inspect totals. With the real grader and fixture CLI responses, a rendered error plus that log entry passed opens ready; changing only the log outcome to failure failed it. Fix: exempt only refusals explicitly asserted by a check, scoped to the call/person/step; unexpected refusals during ordinary loading must still fail.

  4. [P2 — Measurement] The receipt check never proves a receipt can be opened. scripts/dev/src/eval/tasks/spendApprovals.ts:55 accepts the filename anywhere in the document, and line 70 also accepts an inert receipt button. A build that saves only the filename, discards the upload, and renders a dummy “View receipt” passes. Reproduced with both Spend checks and no stored receipt bytes. Fix: locate the tested request's attachment, open/download it as Ada, and verify the known PNG is actually available; include a missing-file control.

  5. [P2 — Measurement] A completely missing Reject operation passes. scripts/dev/src/eval/tasks/spendApprovals.ts:153 exercises only Ada's approval; neither check uses rejection. The same fixture passed with an inert Reject button and no rejection implementation, despite rejection being in the task's request. Fix: use another fresh request to verify Ada rejects it and Ben sees that decision, and verify members cannot reject it.

  6. [P2 — Measurement] Fabricating due dates still passes broken-handler. scripts/dev/src/eval/tasks/brokenHandler.ts:35 checks only that “tripod” remains visible; line 47 checks only the new item's text. Replacing the tripod's null date with today and making lend replace every missing date with today passes the task check while leaving the faulty out query unchanged. Reproduced that check in Playwright, and separately exercised the scenario's unchanged query with those rewritten rows. Fix: inspect the graded rows to require null due dates for both the original tripod and the new loan, and verify the existing dated rows remain unchanged.

  7. [P2 — Measurement] A normal people-lookup name can still steal the list check. scripts/dev/src/eval/tasks/kudosAgents.ts:14 prioritizes generic list… names over the later kudos match. For valid tools named getKudos, listPeople, and giveKudos, findTool(..., LIST) selects listPeople, even when getKudos explicitly describes returning recent kudos. Reproduced directly; the final check consequently tests the directory instead of the kudos list. Fix: prioritize kudos-specific meaning across names and descriptions before generic list verbs, and add this tool set as a control.

  8. [P2 — Measurement] Clearly described recipient arguments are filled with the message. scripts/dev/src/eval/agent.ts:238 tests person semantics against the field name only. A supported argument id: t.text().describe("The recipient's active colleague member id.") receives the thank-you text instead of Priya's id. I ran the give check against a handler accepting that valid schema: it failed not_a_colleague without trying the described id. Fix: use descriptions when identifying person fields and preserve that meaning through nested objects; cover these supported schema forms with positive fixtures.

  9. [P2 — Measurement] Prefilled amount fields falsely fail Spend. scripts/dev/src/eval/tasks/page.ts:92 requires every matched field to be empty. An ordinary labeled amount input initialized to 0 or 0.00 is therefore never selected, even though filling 42 would work. Reproduced with a real Chromium frame. Fix: allow replacing existing values and track already-selected fields explicitly instead of treating emptiness as field identity.

Validation: 27 focused tests passed with database setup disabled, plus the temporary Playwright/in-memory/transport probes above. No production access, live databases, or model calls; no PR commits or pushes.

Rubrics: I found no impossible platform requirement in the three new rubrics. Tier 2 authorization, action-based file adoption followed by a request mutation, member-directory reads, optional due dates, and paged agent queries are supported today. Receipt upload and row insertion must not be interpreted as one atomic file/table transaction. The blanket refusal exemption is unsound for the reasons above.

Isolation/standards: staging commands retain the sandbox boundary, and grader agent credentials are not passed into builder environments or files; I found no new host, cross-run, or personas-door escape. The scenario README, scenario-loading tests, and development docs were updated. The raw transport-error exposure also violates the Effect review spec's safe-error-boundary rule; no additional substantive standards findings.

Verdict: merge after fixes.

@allisonmahmood
allisonmahmood force-pushed the feat/skill-evals-tasks-1144 branch from 1d3c139 to b47981c Compare November 1, 2026 16:25
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. I checked each finding against the code; all nine were real and are fixed in b47981c. Each fixed check was run against hand-made bad and good builds on a local instance (results below), then in a live suite (scorecard in the PR body).

  1. Bearer in transport errors: fixed. doorAgent now catches the request, the body read and the decode separately. Each throws a message that names only the door tool ("Patchy MCP didn't answer open_patch."), with Playwright's error kept only as cause; grading copies only messages. mintAgents hands each token to the suite's seen list as soon as it exists, so a later failed mint or a retried grading still has every token redacted; the hook passes secrets: suite.seen. The member calls the spend checks make (finding 2) wrap their errors the same way, since those requests carry a session cookie. Test: checks.test.ts › "never puts the bearer in a thrown message, only in its cause".
  2. Member approval tried only through the UI: fixed. When Ada presses Approve or Reject, her page's change call (POST /api/runtime/call) is held back. The same call is then sent as Ben, who asked, and as Cleo, another member, from their own signed-in pages, each with its own change key. Each must be refused by the patch's handler, or leave the request undecided; a refusal by Patchy itself (a malformed try) fails the check as unprovable instead of passing it. Then Ada's call goes through and Ben must see the decision. Brightline's Spend lets a member approve others' requests under $2,500, and it now fails: "Patchy let Priya Shah, a member, approve Ben's request." Made admin-only on the server, it passes.
  3. Every declared refusal exempt: fixed. opens ready counts crashes, timeouts and declared refusals again. It exempts only refusals a check registered with ctx.expectRefusal(person, handler) after asserting them (the member tries in 2 and 5), plus refusals of calls made through the grader's own agent connection, whose every answer its check reads. A declared refusal during ordinary loading, like your totals query, fails it. Test: stage.test.ts › "counts every failed call but the refusals a check expected". On the local instance, the log names the members' refusals as requests.approve / requests.reject with their viewer ids, exactly as registered.
  4. Receipt never opened: fixed. Each upload is a PNG with the check's code appended after its end. Ada reloads, opens the request and presses whatever says receipt or download in it. The check passes only if a file Patchy serves her (/api/runtime/files|file-handles/…) contains that code. Missing-file control: Spend with its receipt card swapped for an inert "View receipt" button fails ("Ada sees Ben's request but can't open the receipt he attached."). The real card passes.
  5. Reject untested: fixed. A third check, "only an admin's rejection counts, and Ben sees it", runs the same server tries on a fresh request. decide also fills the words the request's own part asks for before pressing, because Spend's reject needs a note. It fails as-shipped Spend ("Patchy let Priya Shah, a member, reject Ben's request.") and passes the admin-only build.
  6. Invented due dates passed: fixed. After the UI steps, the check reads the board's own query, loans.out, as Ada through the runtime. The tripod and Ben's new loan must have no due date, and the three dated sample loans must still be 4 and 7 days apart, as staged (−1, +3, +10 days). The unfixed patch fails. The fix that invents today's date in out fails with "The tripod's open-ended loan now has a due date." A fix whose lend fills in today fails with "Ben's loan with no return date got a due date." The real fix passes. Test: checks.test.ts › "keeps open-ended loans open-ended and dated ones where they were".
  7. listPeople beating getKudos: fixed. findTool now scores each tool: what it's about (kudos) counts most, in its name and then its description, before the verb, and a name that says people, colleagues or members ranks below anything else. Your tool set picks getKudos; Terra's picks listKudos over findKudosPeople. Both are tests, and the kudos checks pass live on a Kudos built with your tool set.
  8. Person fields named only in descriptions: fixed. A field's role comes from its name, words before a person; when the name says neither, it comes from the description. Every field of an object about a person names that person, and a field there named for the email, name or id takes just that. Tests cover a described id, a nested recipient: { email, ref }, and a nullable note.
  9. Prefilled amounts: fixed. chooseField marks each field it takes (data-eval-chosen) and skips marked ones, whatever their value, so a prefilled 0 is replaced. formAround now finds the form by those marks rather than by a positional has: locator.

While fixing 5 I found that the reject replays were passing for the wrong reason: Ada's own reject went out without the note Spend requires, so every try was refused with note_required. The final "Ben sees it" step caught it. Two changes followed: decide now fills the request's fields before pressing, and a member's refusal only counts once Ada's held call goes through afterwards.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Re-checked b47981cc982c8a18e183cd9916b59614d3a6ea9d against main, #1144, my original review and the author's reply. Verdict: do not merge yet. The bearer-token disclosure is fixed. The remaining findings concern whether the scorecard measures the intended behavior: two P1s and five P2s below.

The original nine findings

  1. Resolved — bearer-token disclosure. Request, body-read and decode failures now expose safe messages; their underlying exceptions stay in cause. Grading records only the message, and neither Graded nor RunRecord serializes the cause. mintAgents registers each successful mint before proceeding, and both grading retries and whole-run retries share suite.seen; the final sanitizer receives all those tokens. Raw run.json remains intentionally unredacted, but these transport failures no longer put the bearer into it. See the separate infrastructure-classification finding below.
  2. Not fully resolved — server authorization. The direct-call control now catches an unprotected approval/rejection, but a preflight query bypasses the probe, and a refused action's side effects are never checked (F1/F2).
  3. Not fully resolved — refusal exemption. An ordinary failing totals query in a different handler now counts, but registering one control refusal exempts every declared refusal for that viewer/handler throughout grading (F3).
  4. Not fully resolved — receipt integrity. An inert button no longer passes, but a file containing only the uploaded filename still passes without any PNG bytes (F4).
  5. Resolved — missing Reject coverage. Rejection now gets its own fresh request and Ben must see the result. Its authorization coverage shares F1/F2.
  6. Not fully resolved — due-date preservation. The board query is now read and invented ISO dates for open-ended loans fail, but moving every dated loan together passes (F5).
  7. Not fully resolved — people lookup stealing the list check. The original getKudos control is fixed, but the negative-name penalty still allows a directory tool to outrank a valid wall tool (F6).
  8. Resolved — described person arguments. Described ids and nested recipient objects are handled. I also checked the supported nullable form through argsJsonSchema: it lifts the inner description to the wrapper and the grader fills the recipient correctly.
  9. Resolved — prefilled amounts. Chosen-field marks replace the emptiness heuristic; the decision-check fixtures below successfully used an amount field initialized to 0.

Remaining/new findings

  • F1 [P1 — Measurement] The held call can be a query, leaving the actual decision handler untested. scripts/dev/src/eval/tasks/page.ts:394 treats every server.call as a change: READS does not distinguish server queries. A button that awaits requests.get before calling an unprotected requests.approve/requests.reject therefore makes Ben and Cleo replay only the harmless query. Releasing Ada's query then lets her actual decision run. I ran both real Spend decision checks against this Playwright/in-memory fixture: both passed, and the call trace showed members calling only requests.get, with only Ada calling the decision handler. The same checks failed the direct unprotected-handler control and passed the protected control. Fix: identify and probe the actual decision-changing call, rather than assuming the first server call changes state.

  • F2 [P1 — Measurement] A declared refusal passes even when the member already changed the decision. scripts/dev/src/eval/tasks/spendApprovals.ts:132 registers any handler refusal and immediately continues without checking state. An action can run a child mutation that approves/rejects, then discover the member is unauthorized and throw not_admin; an action's earlier child mutation is already committed. If Ada subsequently succeeds, the check passes. Both real decision checks passed my fixture that changed the request before returning that refusal for each member. These expected parent refusals are also excluded from opens ready. Fix: inspect the request after every member attempt, including refused attempts, and require it to remain undecided and unchanged before Ada proceeds. The success branch should likewise require unchanged state, rather than merely checking seen !== decided.

  • F3 [P2 — Measurement] Expected refusals are handler-wide, not scoped to the control call. scripts/dev/src/eval/grade.ts:149 matches only viewer id and handler, with no invocation, code, count or step. For example, a dispatch action requests.run can serve both a page's totals request and its decisions: Ben's ordinary totals call throws declared unavailable, while his decision probe throws not_admin. Registering the latter hides the former too. With both log entries, the real failedCalls returned []. Fix: match and consume the actual control invocations/refusals; an unrelated earlier/later refusal must still fail opens ready.

  • F4 [P2 — Measurement] The receipt marker also appears in the filename, so it does not prove receipt bytes survived. scripts/dev/src/eval/tasks/page.ts:430 accepts any response body containing the marker, while spendApprovals.ts:49 names the upload receipt-${marker}.png. A broken upload that stores file.name as text instead of file.arrayBuffer() therefore passes when Ada retrieves that metadata file. I called the real servesFile with a file response whose entire body was just receipt-probe-receipt.png: it returned true; there was no PNG. Fix: require a successful file response with the exact expected receipt bytes or their digest, rather than a substring also present in metadata.

  • F5 [P2 — Measurement] Moving all dated loans preserves the gaps and passes. scripts/dev/src/eval/tasks/brokenHandler.ts:42 checks only camera - mic === 4 and laptop - camera === 7. Rewriting all three due dates one year forward, while keeping the two open-ended loans null, returns null from the real boardProblem (pass). That still hides overdue loans by changing data, contrary to the task's explicit no-back-dating/no-data-change rubric and the original finding's requirement to preserve the staged dates. Fix: compare the dated loans against their actual staged dates, not just their spacing.

  • F6 [P2 — Measurement] A name marked as a people lookup can still outrank the correct list. scripts/dev/src/eval/agent.ts:183 subtracts five points rather than ranking excluded names below other candidates. listKudosPeople / “List all active colleagues you can give kudos to.” scores 4; wall / “Read recent messages of appreciation with the sender and recipient, newest first.” scores 3. The former wins even though the latter is a working kudos list. I ran the actual final Kudos check with working giveKudos, wall and directory tools: it called listKudosPeople and failed “doesn't list the kudo it just gave.” Fix: make the exclusion a separate ranking/filtering criterion so a supported wall/list tool is preferred over a directory lookup.

  • F7 [P2 — Measurement] MCP transport outages are still charged to the builder. scripts/dev/src/eval/grade.ts:457 converts the new safe transport exceptions into ordinary failed checks. infra remains null, classification is built with failed checks, and neither infrastructure retry runs. A correct Kudos build graded during ECONNREFUSED, an interrupted body, or an invalid gateway response therefore lowers builder pass rate. The safe-message probes reproduced that classification; this is separate from the now-fixed disclosure. Fix: preserve a distinct infrastructure failure through the check boundary and return it through the grader's infrastructure/retry path, while retaining safe messages and private causes.

Validation: pnpm exec vitest run scripts/dev/src/eval 40/40 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 40/40 passed. Additional temporary probes used the actual check/helper functions and Playwright pages with an in-memory runtime; no Patchy instance or HTTP fixture server was started. A real Playwright request to a refused loopback port confirmed that the cause retains the synthetic bearer while the outer message and serialized error do not. Request/body/decode probes stayed safe in encoded raw check records, and synthetic credentials representing partial-mint, grading-retry and run-retry attempts were all removed from both JSON and Markdown scorecards by the actual sanitizer. Retry collection was also source-inspected; no real agent credentials were minted.

No edits, commits or pushes; the tracked worktree is clean. No pnpm dev eval, builder/model calls, production access or live databases. Applicable mirrored surface: dev-loop/scenario docs and tests; no additional substantive standards finding beyond the measurement defects above.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. I checked all seven against the code; each was real and is fixed in dc0e5ac, with focused tests. The two P1s were also run against hand-made builds on a local instance.

  • F1 [P1] The held call could be a preflight query: fixed. decide no longer holds only the first call. Every call Ada's press sends Patchy, other than plain reads (me, tables.get|getMany|list, members.*), is held in turn and handed to the check before it goes through, so a query the page asks first no longer stands in for the decision. The decision itself is held and tried too. Dialogs are answered after each release as well, since a page may only ask for confirmation once its query returns. Hand build: Approve that awaits requests.list and then calls an approve members may use. It now fails: "Priya Shah, a member, sent Ada's approve call (requests.approve) as their own, and Ben's request then showed approved instead of undecided." The trace shows requests.list tried first, unchanged, then requests.approve.
  • F2 [P1] A refusal after the change committed passed: fixed. After every member try, refused or accepted, a fresh view of Ben's must show his request as it did before Ada pressed anything. Any difference is the check's failure, and a refusal is noted as expected only after that state check. Hand build: Approve calls an action that runs the approve mutation, then throws not_admin for a member. It now fails: "Priya Shah, a member, sent Ada's approve call (requests.decide) as their own, and was refused, but Ben's request then showed approved instead of undecided." Admin-only on the server, all three spend checks pass.
  • F3 Refusals excused handler-wide: fixed. expectRefusal now takes the person, handler, refusal code and the time Patchy answered (its Date header). failedCalls excuses one log entry per expectation: same viewer, handler and code, started within 15 s of that answer. A second refusal of the same kind, a different code from the same handler (your requests.run dispatch example), or the same refusal minutes later all still count. Test: stage.test.ts › "excuses each refusal a check expected once, and no other". Against the real log entries from the hand build above, the four member refusals are each excused and nothing else is.
  • F4 Marker in the file name: fixed. The upload is named receipt.png. Only a successful runtime file response whose body equals the uploaded bytes exactly (Buffer.equals) counts, so neither metadata nor the file name nor another file passes. Test: checks.test.ts › "counts only as its exact bytes, served as a file".
  • F5 Dated loans moved together: fixed. The dated loans have to sit on their staged days: the mic one day before staging, the camera three after, the laptop ten after. Staging is today or, across midnight, yesterday, with today taken from the Date header of Patchy's answer to the board query. Moving them all a year, or a day, fails. Test: checks.test.ts › "notices dated loans moved, even all together".
  • F6 A people lookup could still outrank a list: fixed. Being ruled out by name is now its own sort key ahead of the score, so any tool whose name doesn't match not comes before one that does, however the scores compare. "Kudos" also matches appreciation, thanks, shout-outs and praise. Test: your giveKudos / listKudosPeople / wall set picks wall; with no other list, the lookup is still the only candidate.
  • F7 Transport outages charged to the builder: fixed. Agent and runtime calls the grader makes now throw GraderTrouble (a tagged error whose message is safe; what failed underneath stays its cause). Grading rethrows it out of the check, maps it to BrowserGradingFailed with a new call step, and returns through the existing infrastructure path, so grading is retried once and then the run, never counted against the builder. A refusal by Patchy itself on a member's try is grader trouble too, except handler_failed and handler_timeout, which are the patch's own answer. Test: the door test now asserts isGraderTrouble, the call step, and a BrowserGradingFailed message that carries the safe text but not the bearer.

The live suite at the new head is in the PR body.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Re-checked dc0e5ac7f4ff80bd64fd19a684276a0fc5dafdd2 against main, the changes since b47981c, #1144, the previous review and the author's reply. Verdict: do not merge yet. One P1 and two P2 measurement findings remain.

Status of the seven findings:

  • F1 — Not fully resolved. Immediate preflight queries no longer hide the decision: both checks now fail that unprotected control. A longer gap still lets the decision escape probing; see below.
  • F2 — Resolved. Both checks now fail the control that commits a member's decision and then returns a declared not_admin refusal. The fresh state check runs for accepted and refused attempts, before recording an expected refusal.
  • F3 — Resolved. Expectations now consume one matching viewer/handler/code refusal near the recorded response time. Duplicate, differently coded and distant refusals remain failures; the handler-wide exemption is gone.
  • F4 — Resolved. The filename carries no marker, and servesFile requires a successful file response with exactly the uploaded bytes. The real helper accepted the exact receipt and rejected filename-only bytes, a refused response and a non-file response.
  • F5 — Not fully resolved. A year-wide shift fails, but shifting every dated loan back one day still passes; see below.
  • F6 — Resolved. The exclusion is now a separate sort key. The actual final Kudos check passed the previous giveKudos / listKudosPeople / wall control, calling wall.
  • F7 — Resolved. Request, body, decode and non-200 MCP failures now produce safe GraderTrouble errors. The check boundary rethrows them, BrowserGradingFailed uses the call step, and grading returns through the existing infrastructure/retry path. Synthetic bearer probes stayed out of the exposed messages.

Remaining/new findings:

  • F1 [P1 — Measurement] A delayed decision still escapes the preflight probe. scripts/dev/src/eval/tasks/page.ts:436 breaks after the next-call wait expires, then line 446 removes interception without establishing that the decision itself was probed. I ran both actual Spend decision checks against the same unprotected-handler fixture as the immediate preflight control, adding a 5.2-second awaited gap after requests.get. Both returned { ok: true }. The trace was Ben/Cleo/Ada calling requests.get, then only Ada calling requests.approve or requests.reject; neither member tried the insecure decision. The immediate version correctly failed. A short quiet interval must not turn incomplete authorization coverage into a pass: keep tracking the actual decision, or fail/mark the check inconclusive when it cannot establish coverage.

  • F8 [P2 — Measurement] A post-decision refresh fails a correct build. scripts/dev/src/eval/tasks/spendApprovals.ts:153 compares every probe's result with the original undecided state, although decide has already released Ada's preceding calls. A correct click sequence await approve(); await list() therefore releases Ada's protected mutation, then probes the harmless list query. Ben correctly sees Ada's approval, and the check blames Ben's read for changing it. Both actual checks failed this protected control: “sent Ada's approve call (requests.list) … showed approved instead of undecided,” with the equivalent rejection failure. The same protected build without the refresh passed both checks. Compare state immediately before and after each member attempt while the current call is held, and distinguish Ada's already-authorized changes from the member's effects.

  • F5 [P2 — Measurement] The midnight allowance still accepts moved dates. scripts/dev/src/eval/tasks/brokenHandler.ts:57 always accepts either today or yesterday as the staging day, rather than retaining the actual staged dates. For staging and grading on 2026-11-01, the expected mic/camera/laptop days are 2026-10-31 / 2026-11-04 / 2026-11-11. Moving all three to 2026-10-30 / 2026-11-03 / 2026-11-10, while keeping both open-ended loans null, returns null from the real boardProblem (pass). Preserve the actual staged reference so crossing midnight is supported without accepting a one-day rewrite.

Validation: pnpm exec vitest run scripts/dev/src/eval 43/43 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 43/43 passed. After a standalone import initially lacked built dependencies, the authorized pnpm exec turbo run typecheck --filter=@patchy/dev completed successfully. Additional controls invoked the real task/helper functions using temporary files outside the worktree and Playwright pages with an in-memory runtime; no Patchy instance or HTTP fixture server was started. These probes validate the check logic, not a full deployed build. No additional substantive standards finding. Applicable mirrored surfaces: dev-loop/scenario documentation and tests; no wire, CLI, migration or production surface changed.

No repository edits, commits or pushes; the tracked worktree is clean. No pnpm dev eval, model calls, production access or live database access.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. I checked all three against the code; each was real and is fixed in 84887e9. The F1 and F8 controls you described were rebuilt by hand on a local instance.

  • F1 [P1] A delayed decision escaped probing: fixed. decide no longer stops on a quiet interval. After each held call goes through, it waits for that call's answer and asks the check whether the decision has taken effect (Ben's fresh view shows approved or rejected). Holding continues, through any gap, until it has; the call whose release made it take is the decision, and both members tried it before it went through. If the decision doesn't take effect through a held call within a minute of the press, the check fails ("Ada's approve never took effect through a call the grader could try as a member"); a quiet spell never turns missing coverage into a pass. If Ben already sees the decision while one of Ada's calls is still held, her decision went through something the grader didn't hold, and the check fails as unestablished too. Hand control: Approve awaits requests.list, waits 6 s, then calls an approve members may use. It fails: "Priya Shah, a member, sent Ada's approve call (requests.approve) as their own, and Ben's request then showed approved instead of undecided."
  • F8 A refresh after the decision failed a correct build: fixed. Each member try is now judged by Ben's view read immediately before it and immediately after it, with Ada's current call still held. What her earlier, released calls changed is part of "before" and never attributed to a member. Since holding stops once the decision takes, a refresh after it isn't held at all. Hand control: admin-only on the server, Approve = list → 6 s wait → approve → list, and Reject = reject → list. All three spend checks pass; the query before the approval was tried as both members and changed nothing, and each member's approve and reject was refused (own_approval / admin_required).
  • F5 One-day shift passed: fixed. Staging now records, by the runner's clock, the window in which it loaded each patch's sample data (StagedPatch.sampled), and checks get the target's staged record (ctx.staged). The dated loans must be due exactly −1, +3 and +10 days from the day that load happened. Only a load that itself crosses midnight gives two candidate days. Your 2026-10-30 / 11-03 / 11-10 case fails; a year shift fails; the original dates pass. Test: checks.test.ts › "notices dated loans moved, even a day, even all together".

One more fix from the live run, in the same commit: reveal only looked under role=tab and buttons named All, Mine or History. Sonnet's spend build hides Ada's queue behind a "Review" toggle (aria-pressed), so the check never saw the request, and it failed a build that was correct. reveal now also tries toggles (aria-pressed, aria-selected, aria-current) and buttons or links named for a view. Republished locally, that build passes all three spend checks, with both members refused not_admin by its requests.decide. The live suite (at the commit before this reveal change) and the hand-control table are in the PR body.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Re-checked 84887e936f9346704a117af2ac2e67302f92880a, especially git diff dc0e5ac..84887e9, against the previous findings and the author's reply. Verdict: do not merge yet. F1, F8 and F5 are resolved; one new P2 measurement finding remains.

  • F1 — Resolved. The watch no longer ends on a quiet interval, and success requires observing the decision after releasing a probed call. Both actual Spend decision checks now fail the insecure control with requests.get → an awaited 5.2-second gap → approve/reject. The trace reaches the decision handler as a member before Ada can send it. An unobserved decision now fails rather than passing without authorization coverage.
  • F8 — Resolved. The comparison is taken while the current call is held, and the watch stops when the decision appears. Both actual checks passed the protected controls with a post-decision requests.list, including the delayed approval with a preflight query. Ada's earlier authorized change is no longer attributed to a member's refresh.
  • F5 — Resolved. The staged target's sample-load window reaches the check, replacing the unconditional yesterday allowance. The real boardProblem accepts the original November 1 sample dates and rejects the reported one-day backward shift, a one-day forward shift and a year shift. Two candidate UTC days are used only when the recorded load window spans them.

F9 [P2 — Measurement] View discovery can open an action modal and fail a correct build. scripts/dev/src/eval/tasks/page.ts:36 now matches any button/link beginning with Open, while lines 50–60 also click every element with the listed ARIA state attributes. These are not necessarily list views, and the search does not restore the page after a speculative click. With an ordinary Open request button before Review, opening the request form's modal blocks Review; its click times out, the error is swallowed, and reveal returns false although the target is available under Review. Both actual Spend approval/rejection checks failed the protected control with “Ada doesn't see the request Ben sent.” Renaming only that button to New request made both checks pass, with both members refused by the decision handlers. A separate real-helper control reproduced the same problem with a New request toggle carrying aria-pressed; dismissing the modal and pressing Review revealed the target in both variants. Restrict discovery to view controls and/or restore incidental modal/navigation state before trying another candidate. Otherwise a valid build loses its check pass rate because the grader opened an unrelated action.

Validation: pnpm exec vitest run scripts/dev/src/eval 43/43 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 43/43 passed. The authorized dependency build, pnpm exec turbo run typecheck --filter=@patchy/dev, also passed after a standalone probe initially lacked built workspace imports. Additional temporary controls outside the worktree invoked the real check/helper functions using Playwright pages and an in-memory runtime; these check the grader logic, not a deployed build. No additional substantive standards finding. Applicable mirrored surface: internal dev-loop staging/checks and their tests; no wire, CLI, migration or production surface changed.

No repository edits, commits or pushes; the tracked worktree is clean. No pnpm dev eval, instances, model calls, production access or live databases.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. F9 was real and is fixed in 4df10e7.

  • Discovery is restricted to controls that switch views. reveal now tries only role=tab and buttons or links whose accessible name starts like a view of the list: All, Everything, Mine, My …, History, Review…, Pending, Waiting, To approve/review/decide, Approvals, Queue, Inbox, Requests, Submitted, Decided (VIEW_NAMES). "Open" is gone. An ARIA state attribute alone no longer makes a candidate: a toggle counts only if its name is a view's, so Sonnet's aria-pressed "Review" still does and a "New request" toggle doesn't.
  • A stray dialog is undone. Before each candidate, reveal counts the frame's dialogs. If a click opened one and the text still isn't showing, it presses Escape and, if the dialog is still open, its Close/Cancel button, before trying the next view.
  • Tests. checks.test.ts › "are switched by controls named for a view, never by an action that opens something": All, Review, Review (admin), My requests, Pending and Approvals are views; Open request, New request, Approve, Reject and Export CSV aren't. The unit test job installs no browsers, so your two controls also ran against the real reveal in Chromium locally, in a frame sandboxed like a patch's (allow-scripts allow-modals). The cases were an "Open request" button that opens a modal, before Review; an aria-pressed "New request" toggle that does the same; and a view-named "Requests" button that opens a modal, to exercise the dismissal. All three revealed the request under Review. Sonnet's spend build from the last live run, republished locally, still passes all three spend checks.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Re-checked 4df10e777235eefb9b45142236e05e63a3d9e82f, specifically git diff 84887e9..4df10e7, against F9 and the author's latest reply. Verdict: do not merge yet. F9 is resolved; one new P2 measurement regression remains.

F9 — Resolved. The real reveal skips both an Open request button and an aria-pressed New request button before Review, without opening either action's modal. A view-named Requests button that opens an unrelated native modal also recovers: with Escape deliberately prevented, the helper presses Cancel, closes the modal, and reaches Review. All three controls passed in Chromium inside an iframe sandboxed with allow-scripts allow-modals. The aria-pressed Review view still works.

F10 [P2 — Measurement] Preserve discovery of ordinary request-list views outside the name allowlist. scripts/dev/src/eval/tasks/page.ts:73 now makes a button's accessible name the only route into discovery; the rule at page.ts:40 also removes Open entirely. With My requests selected initially and an aria-pressed="false" Open filter revealing the company's undecided requests, reveal now returns false without pressing Open. The same happens with a Team requests toggle. Neither label or layout is excluded by the task, and these are ordinary ways to expose the admin's request list. Both real-helper controls pass at 84887e9, fail at 4df10e7, and show the target immediately when the omitted button is clicked manually. The Spend checks therefore charge these correct layouts with “Ada doesn't see the request Ben sent.” Restricting speculative action clicks is the right direction, but losing these genuine list views is an avoidable false failure: retain bounded discovery of such view/status controls. In particular, recognizing an exact Open status label need not restore the former broad match on Open request.

Validation: pnpm exec vitest run scripts/dev/src/eval 44/44 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 44/44 passed. Temporary Playwright controls outside the worktree invoked the actual helper from each revision; they verify discovery, not a deployed build. Review and Pending requests positive controls also passed. No other substantive new finding in the diff. The applicable mirrored surface is the internal eval helper and its tests; no wire, CLI, migration, or production surface changed.

No repository edits, commits or pushes; the tracked worktree is clean. No pnpm dev eval, instances, production access, or live databases.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. F10 was real, and it's fixed in e4f912b by changing the design, not the list: speculative clicks are now harmless, so inclusion can be broad.

  • Candidates. Every tab, button and link on the starting view, as viewCandidates picks them. It skips only controls that can change data: names holding a data-changing verb as a whole word (approve, reject, decline, delete, remove, archive, submit, send, save, create, new, add, cancel, confirm, sign out, log out, pay, mark, load, give, lend, back and the like, in CHANGES_DATA), a form's submit button, and icons whose name has no letters. Whole words, so status views such as Approved, Rejected, Paid or Shared with me stay in.

  • Order and bound. All first, then tabs and view-named controls (now including Open, Team …, and status words), then the rest in page order; at most 20.

  • Restore before each. Every try after the first starts with a fresh navigation to the starting address, waiting until the patch shows something. A modal, a navigation or a changed filter can't affect the next try. Each candidate is found again by its place and pressed only if it still carries the name it was chosen by. The search stops at the first control under which the request shows, and leaves the page there; failing all, it leaves the page as it started.

  • Tests. checks.test.ts covers the pure rule with your cases. "Open" and "Team requests" are tried. "Approve all", "New request", "Load sample data", "Reject", "Sign out", submit buttons and an emoji-only button are never tried. "Open request" is tried, which is harmless now, and so is Review; the bound is twenty. The unit job installs no browsers, so the browser cases ran locally against the real reveal in Chromium, in a frame sandboxed like a patch's, served from a real address so restarts re-navigate:

    Case Found Approve all pressed
    an aria-pressed Open status filter yes 0
    a Team requests toggle yes 0
    an Open request modal before Review yes 0
    an aria-pressed New request toggle that opens a modal, before Review yes 0
    an Approve all button before Review yes 0 (counted by an intercepted request)
    a view-named Pending control that wipes the page, before Review yes 0

    Sonnet's spend build from the last live run, republished locally, still passes all three spend checks.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Re-checked e4f912bd962de0dc3eb9848ae97d751fe8b7ef94, specifically git diff 4df10e7..e4f912b, against the latest design comment. Verdict: do not merge yet.

  • F9 — Resolved for the reported modal cases. The real reveal recovers from an Open request native modal before Review by reloading, and still skips an aria-pressed New request toggle. Both controls reach the target in Chromium in a frame sandboxed with allow-scripts allow-modals. The asynchronous-reload case below is a separate failure.
  • F10 — Not fully resolved. The old name allowlist is fixed: Open and Team requests work with type="button". Both still fail as ordinary buttons without a type, outside any form, because of F12 below. Manually clicking the omitted button immediately reveals the target.

F11 [P2 — Measurement] Speculative discovery still executes data-changing controls. scripts/dev/src/eval/tasks/page.ts:47 and page.ts:72 make an English verb list the only protection for non-submit controls. The actual helper pressed each of Withdraw request, French Supprimer, and an icon-only button with title="Trash"; each issued one intercepted POST and removed the target from the control's persistent backing state. Subsequent reloads preserved that deletion. These are ordinary destructive labels, and a title supplies the letters that pass the icon filter. Reloading resets the document, not a committed write. This can corrupt the request/state being graded before authorization probing even starts, or during Ben's before/after observations. Enforce observational discovery rather than assuming arbitrary clicks are harmless when their names miss a denylist; adding more English verbs cannot establish that invariant.

F12 [P2 — Measurement] Default button types exclude genuine views, even outside forms. scripts/dev/src/eval/tasks/page.ts:98 treats every HTMLButtonElement whose .type is "submit" as a form submission. A plain <button onclick="...">Open</button> has that default type even when .form === null; the same applies to a button implementing a tab. Real-helper controls for Open and Team requests both returned false without pressing the button, while a manual click returned the target. Check actual form association when excluding form-submit buttons. This is why F10's legitimate layouts remain unsupported despite the broader name rule.

F13 [P2 — Measurement] Reload readiness races asynchronous rendering and permanently skips valid candidates. scripts/dev/src/eval/tasks/page.ts:111 considers any body text ready, then page.ts:137 takes a single immediate snapshot. With a normal Loading... body that renders Open request and Review after 650 ms, initial discovery sees both controls. After the first control opens its modal, the reload returns while the loading text is present; Review is absent from that one snapshot and is skipped. reveal returned false in two runs, although clicking Review afterward immediately showed the target. Wait for the chosen control's identity/readiness within a bounded interval after reload, rather than treating transient absence as a permanent mismatch. The current behavior fails a correct build.

F14 [P2 — Measurement] Invisible controls consume the entire candidate budget. scripts/dev/src/eval/tasks/page.ts:83 slices to twenty before visibility is considered at page.ts:133. A page with twenty display:none All ... controls and one visible Review button returned false without trying any visible control; manually pressing Review showed the target. Responsive navigation and hidden panels can therefore exhaust the budget even when the starting view has only one visible candidate. Filter visibility before applying the bound, while retaining the original locator indices.

F15 [P2 — Measurement] Discovery inside authorization probes can outlast Ada's held browser request. scripts/dev/src/eval/tasks/page.ts:134/page.ts:144 repeat navigation and a 2-second observation for each candidate; spendApprovals.ts:152 and spendApprovals.ts:164 perform three Ben searches while the same Ada call remains held. The browser's runtime deadline still runs: packages/serving/src/broker.ts:387 aborts server.call using the exported serverReplyTimeoutMs, currently 110,000 ms. A Chromium control using the real decide and reveal, fifteen harmless tabs with the target under the last, and that exact exported timeout took 121.8 seconds for the three successful searches; Ada's held fetch had already ended with AbortError. This control exercises the helpers and browser timeout, not a deployed build. Even with correct server authorization, the grader can expire the legitimate decision before allowing it through. Keep repeated discovery off the held-request critical path, or bound that work against the browser's actual deadline; excluding probe time from DECISION_MS does not suspend the fetch timeout.

On reload side effects: the shell's pagehide path closes the old broker/stream, and Runtime closes that document's subscriptions; I found no separate subscription leak. Ada's own discovery happens before decide installs its hold, while searches during a hold reload Ben's separate pages, so they do not directly navigate Ada away. The deadline issue is the concrete held-call interaction. I did not reproduce an independent false pass caused solely by reload; the demonstrated outcomes are false failures and unintended writes that invalidate the grading observations.

Validation: pnpm exec vitest run scripts/dev/src/eval 46/46 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 46/46 passed. The authorized dependency/typecheck build also passed after the timeout control initially lacked a built workspace import. Temporary Chromium controls outside the worktree invoked the real helpers with all browser requests intercepted locally. The pure selection tests do not cover the DOM form-association, reload-readiness, visibility-budget or held-fetch cases above. No additional substantive standards finding; the affected mirrored surface is internal dev/eval behavior and its tests, with no wire, CLI, migration or served-product change in this delta.

No repository edits, commits or pushes. The tracked worktree is clean. No pnpm dev eval, Patchy instances, production access or live databases.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. F10–F15 were all real, and all are fixed in 69ad806. F11 came from my last design, which Allison has since reversed with an explicit bar for these rounds:

Hard rule 1: the grader never presses a control that could change data.
Hard rule 2: no check passes a wrong build.
Accepted: a correct build whose request list is reachable only through an unusual control fails "Ada sees the request", provided the failure detail says so plainly. That's a visible, rare false failure, not silent noise.

Discovery is observational now (reveal in tasks/page.ts):

  • F11 Destructive controls pressed: fixed by the design. Candidates are only controls that are views by their role or state: any role="tab"; aria-selected / aria-current controls whose name isn't action-shaped; and aria-pressed toggles, buttons or links whose whole name, without counts, badges or asides, is a view noun or status (VIEW_LEXICON: All, All …, Mine, My …, Team …, Open, Pending, Waiting, Review, To approve, Needs (my) approval, Approved, Rejected, Paid, Done, Closed, Queue, Inbox, History…). Nothing else is ever pressed. Toggles need the lexicon, not just a non-action name, because aria-pressed is as often an action (Like, Pin, Mute) as a view. "Withdraw request", "Supprimer" and a title="Trash" icon aren't views, so they're never candidates; no denylist decides it. actionShaped only narrows selections and places further.
  • F12 Default-type buttons: fixed. Form association is button.form !== null && type === "submit", so a typeless Open or Team requests button outside any form is a candidate.
  • F13 Async rendering: fixed. settle waits until the frame's text has no "Loading" and its DOM hasn't changed for 500 ms (capped at 10 s), before the snapshot and after every click. There are no speculative reloads any more: view controls don't need them. A click that opens a dialog anyway is undone (Escape, then Close/Cancel), and that candidate is dropped.
  • F14 Hidden controls ate the budget: fixed. Visibility is part of the candidate rule, applied before the bound of 20.
  • F15 Searches during a held call: fixed. The first search that reveals the request remembers the control by its shown name (ViewMemo); later searches press it directly, one click, falling back to a search only if it no longer reveals the request (falling back to the name without its count, so "Pending 2" still finds "Pending 3"'s view). Ben's and Ada's ways are found before any call is held (Ben's when he sends the request, Ada's before she presses), so the looks during held probes are one click each. As a backstop, decide throws GraderTrouble if a call has been held longer than 90 s by the time its probes finish, short of the shell's 110 s serverReplyTimeoutMs, so an expired call is never released and graded.
  • F10: resolved by F12.
  • Failure detail. "Ada doesn't see the request Ben sent on her starting view or behind its tabs and view toggles." Ben's equivalent says the same of his.

Tests. checks.test.ts has the pure rule: names read without counts; tabs, places and lexicon-named controls pressed; a typeless Open or Team requests button outside a form pressed, a form's submit not; F11's three, Approve all, Open request, a New request toggle, Like, Delete as a selection, Export CSV and emoji never; 25 hidden All controls don't crowd out a visible Review. The browser cases ran locally in Chromium against the real reveal, in a frame sandboxed like a patch's (allow-scripts allow-modals), with any write a pressed control would make counted by an intercepted request:

Case Found Writes Dialog left open
F11 Withdraw request, Supprimer and a Trash icon before Review yes 0 no
F12 a typeless Open button outside any form yes 0 no
F12 a typeless Team requests button yes 0 no
F13 Open request and Review rendered 650 ms after "Loading..." yes 0 no
F14 25 hidden All controls and a visible Review yes 0 no
an Open request modal before Review yes 0 no
an aria-pressed New request toggle before Review yes 0 no
an Approve all button before Review yes 0 no
F15 15 tabs, target under the last: first look yes, 15 clicks, 31.3 s
F15 later looks with the remembered way yes, 1 click, 2.6 s

The F15 fixture also caught a bug of mine: tried controls were keyed by the count-stripped name, so "Tab 0" … "Tab 14" collapsed into one. They're now keyed by the shown name.

On a real build: Sonnet's spend build from the last live run, republished locally, passes all three spend checks. With its decide handler's admin check removed, it fails: "Ben Ortiz, a member, sent Ada's approve call (requests.decide) as their own, and Ben's request then showed approved instead of undecided."

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Re-checked 69ad806219d82061c7f484dfc49c62ce69d88dab, specifically git diff e4f912b..69ad806, against the maintainer's two hard rules and accepted false-failure class. Verdict: do not merge yet — F11, F16 and F17 violate hard rule 1.

Previous findings:

  • F10 — Resolved. The real reveal finds the request through typeless Open and Team requests buttons outside forms.
  • F11 — Partly fixed, still open. Withdraw request, Supprimer and the Trash icon are now skipped, with zero writes. The narrower rule still presses ordinary controls that mutate data; details below.
  • F12 — Resolved. .form !== null && .type === "submit" correctly distinguishes a form submission from a typeless button outside a form, including externally associated forms.
  • F13 — Resolved for the reported race. Discovery no longer reloads between candidates. The real helper waits through Loading..., finds Review rendered after 650 ms and reveals the request, with one frame load.
  • F14 — Resolved. Visibility is filtered before the bound. Twenty-five hidden All controls no longer prevent the helper pressing the visible Review control.
  • F15 — Resolved for the reported repeated-discovery problem. A first lookup through fifteen tabs took 31.3 s and remembered History 3. Three fresh-page looks during a held call each took one click and about 2.6 s; Ada's fetch stayed pending throughout, then answered after release. The real decide completed in 10.2 s. The added 90 s check also fails closed with GraderTrouble before releasing an over-age call; this guard was inspected, not exercised by a 90 s wait.

F11 [P2 — Measurement] A status/view-shaped name still does not establish that pressing it is observational. scripts/dev/src/eval/tasks/page.ts:93–98 admits an ordinary Paid toggle (aria-pressed="false") and a Done button. Those can mark a request paid or save edits; neither requires a misleading ARIA role or form submission. In Chromium, the actual helper pressed each such control, causing one intercepted server.call mutation, then pressed Review and returned true. A Review (submit) button also sent one mutation: viewName removes the action-bearing parenthetical before actionShaped sees it. These are controls the grader actually presses, not an excluded unusual navigation case. The original destructive labels are fixed, but the hard invariant still needs enforcement at the operation boundary; a label allowlist cannot make an arbitrary click read-only.

F16 [P2 — Measurement] Dialog cleanup bypasses the candidate safety rule and can execute cancellation. scripts/dev/src/eval/tasks/page.ts:197–202 matches any button containing close, cancel or dismiss, then presses it without isViewControl or a form-association check. A view-named Open control can open request details containing Cancel request. With Escape prevented, the real helper pressed Open → Cancel request → Review: the cancellation emitted one intercepted mutation, the dialog closed, and reveal returned true. A dialog is not safely undone by clicking an arbitrary button whose name contains a dismissal word. Fail closed when no safe dismissal is available; cleanup must obey the same no-write requirement.

F17 [P2 — Measurement] The validated control can be replaced by an action while .click() waits. scripts/dev/src/eval/tasks/page.ts:187–190 clicks a live .nth(index) locator after validating a separate snapshot. Playwright re-resolves that index during actionability retries. A control with a disabled Open button followed by Delete request and Review reproduced this: while the click waited for Open to become enabled, an asynchronous render removed Open. The locator then clicked Delete request, which was never a valid candidate. Result: Delete request → Review, one intercepted mutation, and reveal === true. Bind the press to the validated element's identity and abandon it if that element disappears; a changing index must never select a different control.

On hard rule 2: I found no separate new false-pass finding in the changed receipt/approval logic. The approval watch still tries each held call as both members and requires Ben to see the decision after release. The observer writes above nevertheless alter the state those observations measure and independently block this head under hard rule 1.

The accepted false-failure class is visible in the failure detail: “Ada doesn't see the request Ben sent on her starting view or behind its tabs and view toggles.” Ben's equivalent names the same limited search. A control exposing the list only through Browse the ledger was skipped, returned false and emitted no writes; I am not reporting that accepted case as a finding.

Validation: pnpm exec vitest run scripts/dev/src/eval 48/48 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 48/48 passed. Temporary Chromium controls outside the worktree invoked the real helpers in sandbox="allow-scripts allow-modals" frames. The write controls used frame-to-shell messages, with frame connect-src 'none'; shell mutation requests were intercepted locally. The held-call timing control used a locally fulfilled release and a 110 s browser abort deadline. No substantive additional standards finding. The applicable mirrored surfaces are internal dev/eval behavior and its tests; no wire, CLI, migration or served-product surface changed in this delta.

No repository edits, commits or pushes; the tracked worktree is clean. No pnpm dev eval, Patchy instances, production access or live databases.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. F11, F16 and F17 were real and are fixed in 52361d5, against Allison's bar (hard rule 1: never press a control that could change data; hard rule 2: no check passes a wrong build; accepted: a rare, plainly reported false failure).

  • F11 Status names alone pressed actions: fixed. View names are split in two. View nouns (VIEW_NOUNS: All, All …, Everything, Everyone, Mine, My …, Team …, Inbox, Queue, History, Requests, Approvals, Recent) are pressed wherever they are. Statuses (VIEW_STATUSES: Open, Pending, Waiting, Review, To approve, Needs (my) approval, Approved, Rejected, Paid, Done, Closed, Completed…) are pressed only where they're plainly a filter. That means a tab, an aria-selected/aria-current control, or a control in a filter bar: under the same parent, or in the same tablist/radiogroup/toolbar/nav, as another view-named control, with no action-named control there. That last condition is stricter than the steer; it keeps a request's row of buttons such as Paid · Done · Reject from passing as a filter bar. Review is treated as a status. Sonnet's Review toggle sits beside My requests, so it still counts; republished locally, that build passes all three spend checks. actionShaped now also reads the raw name with its asides, so "Review (submit)" is an action.
  • F16 Cleanup pressed "Cancel request": fixed. A dialog a view's press opens is closed by Escape, or else only by a control whose whole name is Close, Cancel, Dismiss or ×, or whose aria-label is exactly "Close" (DISMISSAL). If neither closes it, the search stops: it fails closed with the plainly worded "… on her starting view or behind its tabs and view toggles". I left out OK, which the steer listed: in a confirmation dialog OK is the confirm button, and pressing it could change data. A dialog offering only OK makes the search stop, which is the accepted failure.
  • F17 A click landed on a replacement: fixed. The search holds an ElementHandle for each control it vets. Just before the click it re-reads that very element: it must still be connected, shown, a view control, and carry the same name. Then it clicks the handle, which waits on and targets only that element. If the element is gone or disabled past the timeout, the click is abandoned and the control skipped; nothing is ever resolved by index.

Tests. checks.test.ts (22) covers the pure rule:

  • a lone Paid, Done or Review is never pressed;
  • Paid in a bar with All and Pending is, and so are Review beside My requests and Open beside Closed;
  • Paid beside Done and Reject isn't;
  • Review (submit) isn't;
  • DISMISSAL accepts Close/Cancel/Dismiss/× and rejects Cancel request, OK, Close request and Confirm.

The browser cases ran locally in Chromium against the real reveal, in a frame sandboxed like a patch's, with any write a pressed control makes counted by an intercepted request:

Case Found Writes Dialog left open
F11 a lone Paid button and a lone Done button yes, under Review 0 no
F11 Paid inside a filter bar with All yes, under Paid 0 no
F11 Withdraw request, Supprimer and a Trash icon yes 0 no
F16 a view opens a dialog holding only Cancel request, Escape works yes 0 no
F16 the same with Escape prevented no: the search stops 0 yes, Cancel request never pressed
F17 a disabled Open replaced by Delete request while its click waits yes, under Team requests 0 no
F12, F13, F14, Open request modal, Approve all, New request toggle yes 0 no
F15 15 tabs, later looks with the remembered way yes, 1 click, 2.6 s

For F17, the same fixture against the previous commit's reveal pressed Delete request (1 write), so the race is real and the fix is what stops it.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Re-checked 52361d52c303f3c93178296f1ff4be3f534ff0a4, including git diff 69ad806..52361d5, against the unchanged bar. Verdict: do not merge yet — F11, F16 and new F18 still violate hard rule 1.

  • F11 [P2 — Measurement] — Partially fixed, still open. scripts/dev/src/eval/tasks/page.ts:110 treats any group containing another status and no recognized action verb as a filter bar. A normal request-status editor is also such a group: buttons named Pending / Approved / Rejected inside a role="radiogroup", with ordinary role="radio" and aria-checked states, legitimately change the request's status. The real reveal pressed all three, emitted three intercepted server.call mutations, then pressed the real Review tab and returned true. Paid / Done together likewise produced two writes. These controls do not misuse their ARIA roles or conceal their names. The fix correctly skips lone Paid/Done/Review and Review (submit), but peer labels still cannot establish that a group filters rather than edits data. The same issue remains at the operation boundary: discovery forwards these changes.

  • F16 [P2 — Measurement] — The literal “Cancel request” case is fixed; the safety finding remains open. scripts/dev/src/eval/tasks/page.ts:238 searches all matching descendants of the dialog, so an exact Cancel can be a request's business action rather than the dialog's dismissal. With Escape prevented, a Team requests view opened a dialog containing a request card and its Cancel action. The real helper pressed Team requests → Cancel → Review, emitted one intercepted mutation, and returned true. An exact Cancel that confirms “Cancel this request?” also reproduced the write. Exact naming removes the substring bug but does not distinguish dismissal from cancellation. Escape working, a genuine Cancel dismissal, and a dialog offering only Cancel request all behaved safely; the last stopped discovery without a write when Escape was prevented.

  • F17 — Resolved for the reported index-retargeting case. When disabled Open was removed while its click waited, the element handle was abandoned: Delete request was never pressed, no mutation occurred, and discovery reached Review. There is no longer a live .nth(index) redirect.

  • F18 [P2 — Measurement, new] — The same vetted element can become an action while the click waits. scripts/dev/src/eval/tasks/page.ts:270 re-checks the element once, before the potentially waiting .click() at line 275. Keeping the DOM node does not keep its meaning; React can reuse a button across renders. A disabled Open beside Closed passed validation. While Playwright waited, the same attached button became Delete request, acquired its delete handler, and became enabled. The real helper then clicked Delete request, emitted one intercepted mutation, continued to Review, and returned true. This reproduced again with the retained node explicitly held by the fixture. Binding identity fixes F17's replacement-node case, but the name/semantics check must also hold when the click actually dispatches; the current read-before-wait does not enforce it.

These are observed writes during discovery, not rare false failures, so rule 3 does not exempt them. A list reachable only through Browse the ledger was skipped, returned false and emitted no writes; its callers retain the plain “… on her starting view or behind its tabs and view toggles” failure detail. I am not reporting that accepted case. I found no separate new false-pass reproduction under hard rule 2 in this delta; the demonstrated writes already independently block this head and can change the state the checks observe.

Validation: pnpm exec vitest run scripts/dev/src/eval 51/51 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 51/51 passed. Temporary Chromium controls outside the worktree ran the real helpers under Bun, in sandboxed frames with connect-src 'none'; frame-to-shell mutation requests were fulfilled locally and counted, and other destinations were blocked. A genuine Paid filter and a status beside a Reject action also behaved safely. The new tests cover the pure label rules, not these DOM behavior cases. No additional substantive standards finding. Applicable mirrored surfaces: internal dev/eval behavior and tests; no wire, CLI, migration or served-product change in this delta.

No repository edits, commits or pushes; tracked worktree clean. No pnpm dev eval, Patchy instances, production access or live databases.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. F11, F16 and F18 were real. They kept coming for one reason: rule 1 can't be guaranteed by reading labels, because a page can always give a data-changing control a harmless name or rename it mid-click. As of 4eddba3, hard rule 1 (the grader never presses a control that could change data) is enforced by a write barrier, not by labels.

  • The barrier (observe in tasks/page.ts). While discovery runs, every write the page attempts is refused before it reaches Patchy:

    • tier 2: any server.call to a handler whose kind in the version's published manifest (patch_versions.manifest->'handlers', read by the grader as handlerKinds) is mutation or action, and any handler the manifest doesn't list, so the barrier fails closed;
    • tier 1: table writes (tables.insert, insertMany, update, delete) and file writes or uploads (files.put, files.stage, files.delete, and any non-GET to /api/runtime/files/** or /api/runtime/staged-files/**).

    Reads pass, queries included. A refusal is a 403 runtime refusal. What the page logs after one is the grader's doing, so it's excused rather than failing the check (Opened.excuse). It reuses the same request interception as the authorization probes.

  • What it covers. Everything that only looks: the whole view search (reveal, each press and any dialog cleanup), the steps before Ada's decision (finding the button, opening the request, writing a reason), and opening a receipt. A press that tries a write is refused, isn't counted as a view, and the search moves on, closing any dialog the usual way. A dialog that stays open stops the search with the plain "… on her starting view or behind its tabs and view toggles".

  • What it doesn't. The deliberate Approve and Reject presses and the member probes reach Patchy, as they must. A deliberate press now waits until every call it sent has been answered (sent) before anything only looks again. Without that, a barrier raised just after Ben pressed Send refused his own submission; the real-build check below caught it.

  • The candidate rules stay, but now only to decide which controls are worth trying, not whether a press is safe.

Tests. checks.test.ts › "the write barrier" covers the pure rule:

  • a tier 2 call to a query passes;
  • mutations, actions, unlisted and unnamed handlers are refused;
  • tier 1 table and file writes are refused;
  • table and file reads, me and members.list pass.

The browser cases ran locally in Chromium against the real reveal, in a frame sandboxed like a patch's. Each write is sent as the shell sends it, and anything reaching "Patchy" is counted:

Case Writes reaching Patchy Barrier refused Result
F11 a radiogroup status editor (Pending / Approved / Rejected) beside real tabs 0 yes found under Review
F11 a Paid / Done pair that marks the request 0 yes found under Review
F16 Team requests opens a dialog whose exact Cancel cancels the request (Escape prevented; the dialog closes either way) 0 yes found under Review
F16 the same, the dialog staying open after the refused cancellation 0 yes search stopped, reported plainly
F18 a disabled Open relabelled to Delete request, same element, while its click waits 0 yes found under Team requests
a tier 1 view toggle that writes to a table, before the view that shows it 0 yes found
a view toggle that uploads a file, before the view that shows it 0 yes found
a query-only view control (requests.list) 0 (1 read passed) no found
Approve all and an Open request modal 0 not pressed found

On a real build: Sonnet's spend build from the last live run, republished locally, with the barrier using its real handler kinds read from patch_versions, passes all three spend checks. With its admin check removed it fails: "Ben Ortiz, a member, sent Ada's approve call (requests.decide) as their own, and Ben's request then showed approved instead of undecided." The live suite at this head is in the PR body.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Re-checked 4eddba3878f3a3a6f8364bc5d85989c648b93b8e, including git diff 52361d5..4eddba3, against the unchanged bar. Verdict: do not merge yet. The original F11/F16/F18 reproductions are blocked, but five new findings leave hard rules 1 and 2 unmet.

Previous findings:

  • F11 [P2 — Measurement] — Resolved for the reported grouped-status writes. scripts/dev/src/eval/tasks/page.ts:309 now runs the search behind observe. The real reveal pressed a Paid / Done status editor, refused both mutations before the simulated Patchy endpoint, then found the request under Review. The labels no longer have to establish safety.
  • F16 [P2 — Measurement] — Resolved for the reported exact Cancel cancellation. scripts/dev/src/eval/tasks/page.ts:578 covers dialog cleanup as part of the search. With Escape prevented, the dialog's exact Cancel attempted a mutation; it was refused, zero writes reached the endpoint, and discovery continued when the dialog closed.
  • F18 [P2 — Measurement] — Resolved for the reported same-node relabel during click. scripts/dev/src/eval/tasks/page.ts:595 refused the mutation when the attached, disabled Open became Delete request while Playwright waited. Zero writes reached the endpoint. These resolutions do not extend to delayed writes or the other gaps below.

New blocking findings:

  • F19 [P2 — Measurement] — files.discard bypasses the write barrier. scripts/dev/src/eval/tasks/page.ts:541 omits this SDK/broker operation from WRITE_OPS, so writes returns false and observe forwards it. This is a real data change: packages/primitives/src/Files.ts:628 marks the staged upload discarded and then removes its blob. Runtime explicitly permits this operation directly from a tier 2 browser (packages/runtime/src/Runtime.ts:672). The real observe forwarded a files.discard request with zero refusals. A discovery-time Cancel that discards an already staged receipt can therefore destroy it while only looking. Include staged-upload disposal in the barrier; its API classification as a read does not make its effects read-only. Violates hard rule 1.

  • F20 [P2 — Measurement] — Discovery's asynchronous writes outlive its barrier, including during cleanup. scripts/dev/src/eval/tasks/page.ts:606 removes the routes before the final 500 ms wait. In a local control, the first mutation was refused; its rejection handler scheduled a retry after 100 ms. That retry reached the simulated Patchy endpoint approximately 399 ms before observe returned, during its own supposedly protected cleanup. Separately, a view tab immediately showed the requested text and scheduled its mutation 1.1 s later: the real reveal returned true, removed the barrier, and that mutation reached the endpoint about 578 ms afterwards. An event handler's timers, retries and continuations do not finish when the helper returns. Keep observational work fenced across these boundaries; another name check or quiet delay cannot establish that it has finished. Violates hard rule 1.

  • F21 [P2 — Measurement] — Opening/reloading Ada's page happens outside the barrier. scripts/dev/src/eval/tasks/spendApprovals.ts:97 reloads before either protected section starts. Likewise, openAs navigates and waits for readiness before returning a view on which observe can be installed (scripts/dev/src/eval/grade.ts:350). Mount effects or a receipt preview that call an action can write during these read-only steps. Running the actual receipt task against a local control whose Ada page calls an action on load produced two action requests reaching the simulated endpoint—initial opening and the receipt reload—zero refusals, and { ok: true }. The barrier must already apply when these documents load. Violates hard rule 1.

  • F22 [P2 — Measurement] — sent resumes looking with deliberate writes still in flight. scripts/dev/src/eval/tasks/page.ts:529 exits at 30 s even if pending is nonempty, then removes its listeners without reporting that it failed to drain. Tier 2 actions may run for 60 s. A local 32-second action caused the real sent to return after about 30.3 s; its simulated commit occurred while the following real observe was active, because a network barrier cannot retract an already admitted request. The half-second quiet rule also ended a deliberate read → 800 ms delay → mutation chain before its mutation started, so the subsequent barrier refused the submission's own write. That latter case is a false failure, not a false pass, but the pending-request timeout directly breaks the claimed boundary. On an undrained deadline, stop/report rather than resume looking, and account for the whole deliberate operation. Violates the required boundary and hard rule 1.

  • F23 [P2 — Measurement] — One refusal hides unrelated page failures, allowing a wrong build to pass. scripts/dev/src/eval/grade.ts:340 and :344 drop all console errors and uncaught page exceptions while quiet.on; scripts/dev/src/eval/tasks/page.ts:582 switches that on at the first refused write and leaves it on through the remaining search and cleanup. This does not establish that any later error was caused by the refusal. I used the actual openAs error collector and actual receipt task with a view control that attempted a write, followed by an independent timer throwing Broken request view: undefined.render regardless of the request's outcome. The receipt task returned { ok: true }, the grader's collected errors were [], and the separate unfiltered listener recorded that uncaught exception. The final outcome/error predicate in inBrowser consequently passes this broken page. Excuse attributable refusal diagnostics, not every subsequent page error. Violates hard rule 2.

Route/layer audit: the normal shell's JSON handler route and raw file PUT/staging routes are the right browser-network boundary. Manifest queries are enforced as read-only by Invocation/CallbackGateway; mutation/action blocking also prevents an action's nested connection writes. Runtime restricts subscriptions to queries, and direct browser connection calls are refused as server_required. The patch sandbox/CSP blocks direct fetch/beacon and form-write alternatives; the grader's APIRequestContext member probes intentionally bypass page routing. I found no additional current write-route bypass there beyond F19. The principal gaps are the omitted upload-disposal operation, incomplete barrier lifetime, and error attribution.

Validation: pnpm exec vitest run scripts/dev/src/eval 53/53 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 53/53 passed. Temporary Chromium controls outside the worktree ran the real helpers and, for the receipt cases, the real task and openAs logger. Sign-in and all HTTP responses were supplied locally; these were controlled endpoint simulations, not tests against a running Patchy instance. Other destinations were blocked. The pure-rule tests do not cover these lifecycle/error cases. No separate substantive standards finding; applicable mirrored surfaces are internal dev/eval behavior and its tests, with no API, CLI, migration or served-product change in this delta.

No repository edits, commits or pushes; tracked worktree clean. No pnpm dev eval, Patchy instances, production access or live databases.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. F19–F23 were all real and are fixed in 729e4f3, with two follow-ups the live run found in b85db49. The barrier now has one rule instead of per-step installs: it is up for a page's whole life, from its first request and through every reload, and only a deliberate step lowers it. It lives in eval/barrier.ts.

  • F19 files.discard, and an audit: fixed, failing closed. writes is now an allowlist of reads, checked against the runtime's operation list (packages/api/src/runtime.ts) and what Runtime.ts lets a browser call:

    • Reads: me, members.list|search|get|getMany, tables.get|getMany|list, shared.get|getMany|list, files.get|redeem|list|stat|inspectUpload, shared.files.get|list|stat.
    • server.call: a read only for a handler the published manifest lists as a query.
    • Writes: everything else, including files.discard, files.stage, files.delete, files.put, the table writes, every integration operation and anything new or unknown.

    By endpoint (requestWrites), /runtime/call goes by its operation (an unreadable body is a write), /runtime/subscriptions and every GET are reads, and any other non-GET under /api/runtime/ is a write.

  • F20 Writes outliving the barrier, and F21 opening and reloading outside it: fixed by one rule. openAs raises the barrier (raiseBarrier) on the page before its first navigation, and its route stays for the page's life, so mount effects, reloads, retries, timers and writes scheduled after a view showed the text are all refused whenever they fire. Nothing lowers it per step any more: reveal, the steps before a decision, and opening a receipt simply run with it up.

    • Deliberate steps: Ben asking for money, Ben lending kit, and Ada's decision with its held calls are wrapped in barrier.deliberately.
    • Setup: staging's sample-data press has no barrier.
    • Not routed: the members' tries and the agent and board calls are the grader's own API requests, not the page's.

    Before lowering, deliberately waits for the page's own write attempts to die down (2 s without a refusal, at most 10 s), so a write that looking scheduled is refused rather than falling into the window. A write scheduled by looking that fires later than that, inside a deliberate window, would still pass with it.

  • F22 sent resuming with writes in flight: fixed. deliberately waits until every non-GET runtime request the step sent has been answered and nothing new has started or finished for 2 s, so a read → delay → write chain is followed through. The 2 s window starts after the step returns, not when it started (b85db49), so a write a page sends a moment after a slow step's press isn't refused once the barrier rises. It waits up to 75 s, the 60 s action deadline plus a margin. If writes are still unanswered then, it throws GraderTrouble, and grading ends as infrastructure instead of looking on beside them. When a decision's watch ends normally, calls still held are part of Ada's deliberate flow (such as a refresh) and go through; after an objection they're aborted.

  • F23 One refusal hiding every later error: fixed. Refused calls are answered as the runtime refuses one: a 200 the shell turns into a Refusal whose message carries a unique marker. Refused file writes answer 403. watchErrors excuses only:

    • a console message or exception carrying that marker, which is the page's own report of the refused call;
    • the browser's "Failed to load resource" line for a refused file write's exact URL, each refusal's once.

    Every other console error or uncaught exception counts. One logged within 2 s of a refusal says so in its detail ("… logged just after the grader refused one of the page's writes while only looking"), so a failure it causes is plainly reported, never hidden.

Tests. checks.test.ts covers the pure rules:

  • every operation but a read is a write, including files.discard, pidgeon.send, postgres.execute and an unknown op;
  • requestWrites judges a request by endpoint, method and operation, with an unreadable call body or an unknown endpoint counting as a write.

The browser cases ran locally in Chromium against the real barrier (raised before navigation, as grading does), the real reveal and the real error collector, in a frame sandboxed like a patch's:

Case Reaching Patchy Refused Result
F19 a view control that sends files.discard 0 1 found
F20 a write retried 100 ms after its refusal 0 2 found
F20 a write scheduled 1.1 s after the view showed the text 0 1 (after reveal returned) found
F21 a write on mount, and again on reload 0 2 —
F22 a deliberate 32 s action, then the page's own write after it the action's 1, answered before the barrier rose (34.2 s) the later write —
F22 a deliberate read, 800 ms, then its write 1 (the write) 0 —
a deliberate step taking 3 s, its write 500 ms after the press, no read first 1 (0 before b85db49) 0 —
F23 a refusal reported by the page, then an unrelated exception — 1 the report excused; "Broken request view: undefined.render" counted, noted as just after a refusal
a query-only view control 0 (1 read passed) 0 found
last round's F11 / F16 / F18 / tier 1 / upload / Approve all cases 0 each as before as before

On real builds, with the barrier using handler kinds read from patch_versions:

  • Sonnet's spend build passes all three spend checks, and fails without its admin check;
  • brightline's admin-only Spend with Approve = list → 6 s → approve → list and Reject = reject → list passes all three with no page errors. That build is also what caught unhold aborting the trailing refresh, which would have logged an error on a correct build.

The live suite at 729e4f3 (in the PR body) passed four builds and failed two of Terra's; both were checked on a local instance with Terra's published source:

  • spend-approvals is a real failure. Terra's page sends with a native <form onSubmit>. The patch frame's sandbox has no allow-forms, so Chromium blocks it and nobody can send a request. The detail claimed "Ben sent the request"; it now says "Ben pressed send, but the page sent Patchy nothing." Sonnet's build still passes all three.
  • broken-handler was my bug. Moving lending into deliberately dropped the wait after the click, and envelopeOf stopped listening as soon as the click returned. On the loaded evaluation instance the shell sent the call a moment later. It now waits up to 10 s for the first call. Terra's build passes, and a control that lends 300 ms after the press fails the old code with the live message ("Lending sent Patchy nothing the grader could follow") and passes the new one.

Head is b85db49, rebased on main.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Reviewed b85db49e724af4fe18683ba4c0234adea35219e5, including git diff 4eddba3..b85db49, the latest explanation, the runtime operation/route definitions, shell broker and sandbox/CSP. Verdict: do not merge yet. F20 and F23 are not fully resolved; F24 is a new blocking error-path finding.

  • F20 [P2 — Measurement] — Not fully resolved: writes scheduled by looking enter the next deliberate window. scripts/dev/src/eval/barrier.ts:173 and :207. Keeping the route installed fixes delayed writes while the barrier stays raised, but quietened cannot distinguish a still-scheduled observational write from one belonging to the next deliberate step. In a Chromium control using the actual reveal and barrier, an All tab displayed the target and scheduled a mutation after 1.2 s. reveal returned true with zero writes; the next deliberately admitted that tab's mutation 670 ms later, with zero refusals. No deliberate action requested that mutation. There is also a known-busy case: quietened silently falls through its 10 s cap even if refusals are continuing. A page retrying files.discard every 150 ms had 69 refusals followed by 3 admitted discards when the cap expired and the next deliberate window opened. This is the remaining F20 causality/lifetime gap: observational deletes or retries become authorized simply because another step lowers the whole page's barrier. The hard rule needs to hold across this transition too; exhausting the settling cap should at least stop as grader trouble, and silence alone does not isolate the deliberate step from earlier timers.

  • F23 [P2 — Measurement] — Not fully resolved: a mixed error report still hides an unrelated failure and passes a wrong build. scripts/dev/src/eval/barrier.ts:182. text.includes(MARKER) excuses the entire console event, even when it contains independent errors beside the refused write. I used ordinary aggregate reporting: Promise.allSettled([Promise.reject(Error("Broken request view: undefined.render")), call("files.discard", {})]), followed by one console.error of the rejected reasons. There is no fabricated marker: the real barrier supplies the refusal. The actual receipt check returned { ok: true }, watchErrors collected [], and an unfiltered listener recorded the independent rendering error and the refusal in the same event. The final outcome/error predicate therefore passes this broken page. A separate uncaught exception now correctly counts, but substring matching is still too broad. Excuse only an attributable refusal report; ambiguous composite reports must count. Violates hard rule 2.

  • F24 [P2 — Measurement] — New: a rejected deliberate callback skips draining its admitted writes. scripts/dev/src/eval/barrier.ts:209 and :222. The draining loop is reached only after act() resolves. If a later UI operation throws after an earlier operation sent a write, execution jumps straight to finally, raises the barrier and removes the request listeners. inBrowser treats an ordinary exception as a check failure and continues grading (scripts/dev/src/eval/grade.ts:500). In a local control, a deliberate callback sent a 1.3 s action and then threw; deliberately rejected after 226 ms, and the simulated action committed 1,175 ms after that return, while the subsequent actual reveal was looking. Raising a network barrier cannot retract an admitted action. Drain on the failure path too, or stop grading as infrastructure without resuming observational work beside an unresolved write. Violates the required deliberate/observational boundary and hard rule 1.

Other previous findings:

  • F19 [P2 — Measurement] — Resolved. scripts/dev/src/eval/barrier.ts:60 and :155. files.discard, staging, table/file mutations, every integration operation and unknown operations are outside the read allowlist. A discard on initial load reached zero endpoints and was refused; the reload was refused too. The operation audit found no additional current browser write omitted from the classification.
  • F21 [P2 — Measurement] — Resolved. scripts/dev/src/eval/grade.ts:340. raiseBarrier and watchErrors precede the first navigation, and the route persists through reloads. The local mount/reload control admitted no writes. F20 above concerns lowering that otherwise persistent route later.
  • F22 [P2 — Measurement] — The reported normal-return timeout is resolved. scripts/dev/src/eval/barrier.ts:213. The 32 s action control returned after 34.1 s, after its response/commit, and a later observational write was refused. Pending requests or continuing activity past the 75 s drain deadline throw GraderTrouble instead of silently resuming. The slow 3 s step with a write 500 ms after its press also passed with exactly one admitted write. F24 separately covers the drain bypass when the callback rejects.

Barrier completeness: the broker's JSON operation calls and raw staging/file PUTs are covered. GET file redemption/downloads and the stream read; subscriptions admit only supported reads and manifest queries. Runtime/CallbackGateway enforce query restrictions, so a manifest query cannot hide table/file or connection writes. Direct browser integrations/shared resources are refused by Runtime, and unknown calls fail closed. The patch's opaque sandbox plus CSP blocks direct fetch/beacon/WebSocket, external resource writes, popups and native form submission; the broker provides no arbitrary request URL. The grader's API-request member probes and agent/board calls intentionally bypass page routing. I found no additional current endpoint/broker bypass. The native-form spend failure remains a real sandbox restriction, and the updated message is accurate.

Validation: pnpm exec vitest run scripts/dev/src/eval 54/54 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 54/54 passed. Temporary Chromium controls outside the worktree exercised the actual barrier, error collector, view helper and receipt task against intercepted local responses in sandboxed frames. These are controlled endpoint simulations, not a running Patchy instance. All other destinations were blocked. The mixed-error false pass and boundary cases are not covered by the passing pure-rule tests.

No separate substantive standards finding. Applicable mirrored surfaces are the internal eval helpers/checks and their tests; the delta changes no API/CLI contract, migration, company resource or served product UI. No repository edits, commits or pushes; tracked worktree clean. No eval runs, instances, production or live databases contacted.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. F24 and F23 were real and are fixed in 9d8c687. F20's residual is now an accepted, documented limit, with one mitigation tightened. Head is 9d8c687, rebased on main.

  • F24 A step that throws skipped draining: fixed. deliberately now drains in a finally. However the step ends, the barrier stays down until every write it sent has been answered and nothing new has been sent for 2 s. Writes still unanswered at 75 s end grading as the grader's trouble, which then replaces the step's own error. Otherwise the step's error goes on to the check as before.
  • F23 A mixed report hid an unrelated error: fixed (hard rule 2). Each refusal now says which write it was: Write #3 (requests.setStatus) refused by the eval grader's write barrier: …. Something the page logs is excused only when the whole of it is its report of refusals the barrier made in the last 5 s. The match is by number and by what was refused, with the rest only how errors print: a class name, Uncaught (in promise), stack frames and the refused handler's name.
    • Anything else counts, in either order. The refusal stands as [a write the grader refused], so the failure detail names the other error.
    • Stack frames are stripped frame by frame, not line by line. Chromium joins the next error onto the previous error's last frame, and stripping whole lines would have hidden it when the refusal comes first.
    • A refusal number the barrier never made, one for another write, or an old one counts.
    • The browser's own 403 line for a refused file write is still excused once, by its URL.
    • Cost, accepted under the same bar: a correct build that wraps a refused write's report in its own words ("Couldn't mark it seen: …") while the grader only looks fails, and the detail shows those words.
  • F20 Writes scheduled by looking that land in a later deliberate window: residual accepted.
    • Why it stays. At the network a write can't be traced to the press that scheduled it. Pages don't schedule writes to fire seconds after a view shows. And the state checks around each deliberate step still catch a change to the request's decision that the step didn't cause: Ben's request is read before and after each member try, and a decision Ben sees while Ada's call is still held fails as unestablished.
    • Mitigation. Before lowering, the barrier waits for looking to go quiet, with no write refused for 2 s. Your busy case no longer falls through: if refusals keep coming for 10 s, deliberately doesn't lower. The check fails with "The page kept trying to change data while the grader only looked, so the grader couldn't take its next step without letting those writes through." That's a check failure, not grader trouble: it's the page's behaviour, and retrying wouldn't change it.
    • Recorded. The limit is written beside the barrier in barrier.ts and in the PR body.

Tests: scripts/dev/src/eval/barrier.test.ts is new (11). It drives the real raiseBarrier against a fake page on fake timers, plus the pure classification tests moved over from checks.test.ts. The new cases:

  • a step that throws after sending a write keeps the barrier down until the answer and 2 s of quiet (F24);
  • a step with a write unanswered at the deadline ends as GraderTrouble even when it threw;
  • lowering waits for quiet, and never happens while a page retries a discard every 150 ms;
  • the page's own report of a refusal is excused, however it prints;
  • your mixed report, with the unrelated failure first and last, counts and names the other error (F23), as does a report with the page's own words;
  • refusals the barrier didn't make, made for another write, or made long ago count;
  • the 403 browser line is excused once.

Reverting the finally fails the two F24 tests, and excusing any report that quotes a refusal fails the F23 test. Node and Bun vitest both pass, 69 across the eval and scenario suites.

Browser cases ran locally in Chromium with the real barrier, reveal and error collector. The frame is sandboxed like a patch's, and an outer page brokers its calls as the shell does, so the refusal the page reports is the barrier's own:

Case Reaching Patchy Result
F24 a step sends a 1.3 s write, then throws 1, answered before the barrier rose (3.4 s) the step's own error
F20 a page retrying a discard every 150 ms, then a deliberate step 0 (73 refused) check fails: the page kept trying to change data
F23 the page's report of a refused write, alone 0 excused
F23 your mixed report: Promise.allSettled of an unrelated rejection and a discard, one console.error 0 counted: "Error: Broken request view: undefined.render PatchyError: [a write the grader refused]"
F23 the same, refusal first 0 counted: "PatchyError: [a write the grader refused] Error: Broken request view: undefined.render"
F23 a refusal, then an unrelated exception 0 counted, noted as just after a refusal
round 9's F19–F22 cases and round 8's F11 / F16 / F18 / tier 1 / upload / Approve all cases as before as before

The collector's list is what inBrowser fails a check on ("It worked, but the page logged: …"), so the mixed report now fails the receipt check rather than passing it.

On real builds, on a fresh local instance with handler kinds read from patch_versions, Sonnet's spend build from the last live run passes all three spend checks, and Terra's broken-handler fix passes. I didn't run another live suite this round.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Reviewed 9d8c687c34a52cccda316dfd01ce59fa812f9b53, specifically git diff b85db49..9d8c687, the latest author reply, the barrier's callers and error-to-check-result path. Verdict: do not merge yet. F23 still has a reproducible hard-rule-2 false pass. F24 is resolved. F20 remains accepted, with a nonblocking correction to its timing documentation.

  • F23 [P2 — Measurement] — Not fully resolved: independent errors composed only of the allowed printing words still disappear. scripts/dev/src/eval/barrier.ts:92, :123–:130, :297. The original Broken request view: undefined.render reproduction now correctly counts, in either order. However, refusalReport removes every stack frame, then globally removes every Error, access_denied, etc.; it does not establish that those words belong to the attributable refusal. An independent Error() or Error("access_denied") logged beside a real, recent refusal is therefore excused with it.

    I reproduced this in Chromium through the actual spend receipt check, actual raiseBarrier and watchErrors, using an ordinary aggregate reporter:

    Promise.allSettled([
      Promise.reject(new Error()), // independent page failure
      call("files.discard", {})  // receives the actual barrier's numbered refusal
    ]).then(results => console.error(
      ...results.filter(x => x.status === "rejected").map(x => x.reason)
    ));

    The unfiltered browser event contained two separate errors and their stacks. The receipt check returned { ok: true }, watchErrors collected [], and the same outcome-plus-errors predicate used by inBrowser passed the check. Reversing the two errors also passed. Giving the independent error the nonempty message access_denied also passed. No refusal text was fabricated. The normal descriptive-error control failed correctly in both orders.

    This is a false pass, so rarity does not put it inside the accepted false-failure allowance. Preserve independently reported errors even when their message is empty or resembles formatting/a code; ambiguous composites must count. Bind permitted formatting to each refusal report rather than deleting those words and all stacks across the entire event. The new tests cover a descriptive independent error, but miss these cases.

  • F24 — Resolved. scripts/dev/src/eval/barrier.ts:335–:345. Draining now runs in finally, with barrier/listener cleanup in its own finally. In the Chromium control, the callback sent a 1.3 s write and threw; deliberately returned its original error after 3.35 s, with the write already answered about 2.02 s before return. The unanswered-write/throwing-step test also passes: the drain deadline becomes GraderTrouble, overriding the callback error and stopping grading.

  • F20 — Accepted residual; not re-raised as a blocker. Documentation needs a timing correction. scripts/dev/src/eval/barrier.ts:19 and :274–:281. The explanation of network attribution and the decision checks is consistent with the implementation. But this is 2 s since the last refusal, not a fresh 2 s wait after each looking press or before every deliberate step. With no earlier refusal, lastRefusal is -Infinity, so quietened() returns immediately. The previous real-reveal control still finds the target, schedules a write 1.2 s after the looking press, and admits that write 675 ms after reveal returns, inside the following deliberate window, with zero refusals. Thus “more than about 2 s later” understates the accepted residual; shorter timers can cross too. I did not demonstrate a decision-check false pass from this residual, and am treating this as documentation accuracy, not renewing the accepted causality objection.

The tightened 10 s rule works: a page retrying a discard every 150 ms produced 69 refusals, zero admitted writes, and failed after 10.05 s without running the deliberate callback. A one-off refusal logged as an ordinary Error was excused, quietened, and allowed the next step; a normal deliberate write delayed 500 ms was admitted and drained. I found no additional common false-failure pattern from the tightening beyond the explicitly accepted custom-wrapper and sustained-write cases. No additional hard-rule-1 blocker was demonstrated outside accepted F20; F23 above still violates hard rule 2.

Validation: pnpm exec vitest run scripts/dev/src/eval 62/62 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 62/62 passed. Browser controls used temporary files outside the worktree, sandboxed frames, a shell-like broker and intercepted local responses, with all other destinations blocked. No instances or pnpm dev eval runs; no production or live databases contacted. No repository edits, commits or pushes; tracked worktree clean.

No separate substantive standards finding. Applicable mirrored surfaces are the internal eval barrier/check helpers and their tests; this delta changes no API/CLI contract, migration, company resource or served product UI.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. F23 was real, and both items are fixed in c589604, rebased on main.

  • F23 Words that look like formatting hid an independent error: fixed (hard rule 2). The barrier no longer removes words or frames across an entry. Each refusal now identifies itself and only its own text is removed:
    • Each refused write's error message carries a random token new to it, beside its number and handler: Write #3 (requests.setStatus) refused by the eval grader's write barrier [eval-refusal 7f3a9c0d1e2b4a5f]: the grader was only looking.
    • To excuse an entry, refusalReport removes exactly the own text of each refusal the barrier made in the last 5 s. That text is its exact message, an …Error: class printed directly before it, and the stack frames directly after it (frame by frame, so an error Chromium joins onto the last frame stays). If anything but whitespace and punctuation is left, the entry counts.
    • An uncaught page error is excused only when its message is a live refusal's message and nothing else.
    • Everything else counts: an empty Error(), Error("access_denied"), an Uncaught (in promise) prefix, a handler name or the page's own words beside it, a token the barrier never issued, a refusal without a token, or one from long ago. The failure detail shows each refusal as [a write the grader refused] and names what else was logged, e.g. "It worked, but the page logged: Error: access_denied [a write the grader refused]".
    • Strict, as agreed: a rare false failure is accepted, a false pass isn't.
  • F20 timing docs: corrected. The 2 s wait counts from the barrier's last refusal, not from each looking press, and with no refusal yet it lowers at once, so a looking timer of any length, even under 2 s, can cross into a deliberate window. That's now what the comment beside the barrier in barrier.ts, the quietened and deliberately docs, and the PR body's accepted limit say. The residual itself stays accepted for the reasons given last round.

Tests: barrier.test.ts (12) now judges F23 through the check's own result. I pulled inBrowser's outcome-plus-errors predicate out as checkResult in grade.ts so a test can call it, and the receipt check's result is built from what barrier.counted keeps:

  • your allSettled case with an empty Error(), Error("access_denied") and a descriptive error, each beside a real refusal in both orders, fails the check;
  • an Uncaught prefix or the page's own words around a refusal fails it;
  • a token the barrier never issued, a refusal without one, or an old refusal fails it;
  • the page's own report, logged, by message alone, or left unhandled, passes;
  • the browser's 403 line is excused once, by its URL, and only as the whole line.

Re-adding the old stripping of Error and access_denied fails two of these. Node and Bun vitest both pass, 70 across the eval and scenario suites.

Browser cases, in Chromium with the real barrier, reveal and error collector, a frame sandboxed like a patch's, and an outer page brokering its calls as the shell does:

Case Counted
allSettled([reject(new Error()), discard]), one console.error "Error [a write the grader refused]"
the same, refusal first "[a write the grader refused] Error"
Error("access_denied") beside a refusal "Error: access_denied [a write the grader refused]"
a descriptive error beside a refusal, both orders the error, with the placeholder
the page's report of a refused write, alone excused
a refused call left unhandled (page error), alone excused
a refusal, then an unrelated exception counted, noted as just after a refusal

Every other case from earlier rounds behaves as before. No live suite this round.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Reviewed c589604f749acd1ec276c09947f911229cff0f10, specifically git diff 9d8c687..c589604, the latest author reply, and the error collector through the actual receipt check and checkResult. Verdict: do not merge yet. F23 is resolved, F20's documentation is corrected, but new finding F25 still violates hard rule 2.

  • F23 — Resolved. The reported independent Error() and Error("access_denied") beside a refusal now survive excusal and fail the check. Chromium controls confirm the empty error in both orders, and the nonempty code-like error. Through the actual receipt check, the empty-error control returns { ok: true } but checkResult correctly returns fail, naming Error [a write the grader refused].

  • F20 — Documentation corrected; residual remains accepted. scripts/dev/src/eval/barrier.ts:19, :229, :276, and the PR body's accepted-limit paragraph now correctly say 2 s since the last refusal, with immediate lowering when no refusal has occurred. They explicitly cover looking timers shorter than 2 s crossing into a deliberate window. I am not re-raising that accepted residual.

  • F25 [P2 — Measurement] — Aggregate/nested errors can reuse a live refusal message and hide an independent failure. scripts/dev/src/eval/barrier.ts:108, :305–:306, :378–:381. A random token establishes that the message was issued, but the page receives it and can copy that message into another error. watchErrors flattens console arguments to message.text() and uncaught errors to error.message, losing .errors/.cause; ownText then removes an AggregateError: prefix and the outer stack as though the entire object were the refusal.

    Reproduced in Chromium with an ordinary aggregate reporter, without fabricating any token:

    Promise.allSettled([
      call("files.discard", {}),
      Promise.reject(new Error("Broken request view: undefined.render"))
    ]).then(results => {
      const errors = results
        .filter(result => result.status === "rejected")
        .map(result => result.reason);
      console.error(new AggregateError(errors, errors[0].message));
    });

    The console argument's actual .errors contains both the barrier refusal and Broken request view: undefined.render (verified through the original Playwright console argument). Chromium's flattened text is only AggregateError: <real refusal message> plus its outer frame. The barrier excuses it completely.

    Through the actual spend receipt check, actual raiseBarrier/watchErrors, and the extracted actual checkResult, this produced { ok: true }, collected errors [], and status: "pass". The refusal occurred on both Ada's initial load and reload; neither nested failure counted. The same actual-check false pass occurs with:

    call("files.discard", {}).catch(refusal =>
      console.error(new Error(refusal.message, {
        cause: new Error("Broken request view: undefined.render")
      }))
    );

    Throwing the AggregateError instead of logging it also passes. A separate browser control cached a refusal's message, then 100 ms later logged an AggregateError whose only child was the unrelated rendering error, using the cached message as its outer message: that too was excused. So this also demonstrates the requested earlier-token echo case, within the 5 s lifetime.

    This is a false pass, outside the accepted false-failure allowance. Preserve/check structured console errors before reducing them to strings, and conservatively count aggregate/nested or otherwise ambiguous wrappers; uncaught aggregates must retain enough identity to count too. A copied live message must not excuse unrelated children. Merely checking the random token, tightening textual boundaries, or spending a token once cannot establish that the nested errors belong to the refusal.

Other controls: an unissued token, extra independent text beside a live token, a default-message AggregateError, and a replay after 5.1 s all fail correctly; a lone refusal report passes. The native 403 line for a refused file write is excused in Chromium, while an independent error beside that file refusal still counts. The suite additionally verifies the wrong URL, appended text, and a second identical 403 line count. I found no additional hard-rule-1 blocker outside accepted F20; looking writes in the browser controls were refused and none reached the intercepted backend.

Validation: pnpm exec vitest run scripts/dev/src/eval 63/63 passed; bun --bun vitest run --config vitest.bun.config.ts scripts/dev/src/eval 63/63 passed. Temporary Chromium controls used sandboxed frames, a shell-like broker, and intercepted loopback responses, with all other destinations blocked. No instances or eval runs, no production/live database contact, and no repository edits, commits or pushes; tracked worktree clean.

No separate substantive standards finding. Applicable mirrored surfaces are the internal eval barrier/check helpers and tests; this delta changes no API/CLI contract, migration, company resource or served product UI.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Sol. F25 was real, and it showed the approach itself was the problem. As long as the barrier answered a write with a refusal and excused the page's report of it, a page could re-wrap that report: an AggregateError, a cause chain, or a copied message around an unrelated failure. No text match could prove the nested errors belonged to the refusal. So 19495a8 (rebased on main) removes the need to excuse anything.

The change: hold looking writes, don't refuse them. While the barrier is up, a write's route is left as it is: never fulfilled, aborted or forwarded. It never reaches Patchy, and the page never receives an error for it, so there's nothing to log and nothing to excuse.

  • All excusal logic is gone: the per-refusal tokens, ownText/refusalReport, and the 403-line exemption. watchErrors keeps every console error and uncaught exception.
  • Attempts are still counted (barrier.held()), so "a press that tries a write isn't a view" and the 10 s "kept trying to change data" rule work as before. The quiet wait now counts 2 s from the last held write.
  • Deliberate steps are unchanged: deliberately lowers the barrier, drains its writes in a finally, and raises it again. A write held while looking is never the step's to wait for.

Verified first, against the real shell and broker. On a local instance I published a two-button tier 2 probe patch, "Look" and "Approve", each calling a mutation, with no shared busy state. The broker doesn't serialize calls, and neither does the SDK client.

  • 8 looking writes held in one document, more than Chromium's 6 connections per host: the deliberate Approve reached Patchy and was answered in 92 ms. No console errors, and closing the page took 5 ms.
  • With the real raiseBarrier and handler kinds from patch_versions: the Look press's write was held, and deliberately around Approve admitted it and saw it answered, with no page errors.

Lifetime. Held requests die with the page.

  • The broker aborts one at its reply deadline: 110 s for a server.call, 35 s for other operations, so tier 1 table and file writes time out sooner than the 110 s you mentioned. I left one past 110 s: Playwright saw requestfailed … net::ERR_ABORTED, and the page's call rejected with "PatchyError: The runtime reply was lost."
  • The barrier watches for that. An error logged just after a held write timed out counts and says "(logged just after a write the grader held while only looking timed out)".
  • More generally, a failed check's detail now says how many writes the grader held on its pages ("While only looking, the grader held 1 write the page tried; it never reached Patchy and the page never heard back."). That's because a page left waiting can act differently. Terra's Kit loans page, for one, keeps its whole form disabled while any write is in flight.

Two more costs of holding, both rare false failures under rule 3:

  • held writes take up the broker's outstanding-request allowance (32 per document); past it, the broker refuses the page's further calls itself and those errors count;
  • a page that disables its controls while a looking write is held can't take the deliberate step that follows.

On the tests you named. The unit tests feed these texts through the real watchErrors and checkResult, and each fails the check: your AggregateError and cause-chain reports, the allSettled empty Error(), Error("access_denied") beside a refusal, and a refusal alone. A lone held write logs nothing and the check passes. A held looking write followed by a deliberate write admits the deliberate one; the unit test covers that, and so do both live checks above.

In the browser, though, your exact reporters behave differently under holding. Promise.allSettled([discard, …]), the AggregateError built from its results, and discard.catch(refusal => …) all wait on the held write, which never settles, so they never log anything and the receipt check passes. I don't think that's a hard-rule-2 gap the grader could close. The unrelated failure only surfaces after a write the grader deliberately never lets finish, which is the same as any path behind a data-changing control the grader doesn't press. The grader can't tell that page from one with a lone held write without letting the write through. When the same failure is reported on its own path, it counts in every form I tried:

  • an AggregateError around it beside a held discard: "AggregateError: Write refused";
  • an empty Error() and Error("access_denied"): "Error … Error: access_denied";
  • one thrown from a timer.

Tests: barrier.test.ts (10) covers holding against a fake page on fake timers, and the error collector through the check's own result. Node and Bun vitest pass, 68 across the eval and scenario suites. In local Chromium every earlier browser case still holds, with writes reaching Patchy only from deliberate steps. On real builds with the holding barrier, Sonnet's spend build passes all three spend checks and Terra's broken-handler fix passes. No live suite this round.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Re-review (GPT 6.1 Sol)

Reviewed head 19495a8651cdbcd200f02389381a1eb4542e4ac7, git diff c589604..19495a8, the previous review and the author's latest reply. Verdict: merge against the updated bar. F25 is resolved within the accepted scope; no new blocking findings.

  • F25 — Resolved. scripts/dev/src/eval/barrier.ts:180 leaves a looking write's route unhandled; it neither forwards it nor delivers a refusal. At barrier.ts:281, every console error and uncaught exception is retained, with no text-based exemption. Chromium controls using the actual watchErrors and checkResult confirmed that independently reported aggregate errors, cause wrappers, an empty error beside Error("access_denied"), and an uncaught timer error all count and fail an otherwise successful result. The old allSettled reporter remains waiting on its held write; that is the explicitly accepted scope, not a renewed F25 finding.

  • Hard rule 1 — No new escape found. Temporary Chromium controls used the real shell, broker, client transport and barrier, with all network responses intercepted locally. Eight looking writes stayed pending while a read and a later deliberate write completed. Raising the barrier again, reloading, taking another deliberate step and closing the context never released the old writes: only the two deliberate writes reached the intercepted backend. Broker deadline controls, shortening its 35 s / 110 s timers, cancelled held requests without forwarding them; subsequent deliberate calls still completed. The barrier never resumes held routes when lowering, and cancellation only removes their tracking. Source inspection confirms broker requests are not replayed and SDK automatic retries apply only to queries; mutation retries require an explicit call. Direct frame fetch/keepalive, beacon, WebSocket, worker, image and native-form attempts could not reach the intercepted backend under the real sandbox/CSP. F20 remains the accepted residual.

  • Hard rule 2 — No additional false pass found outside that scope. Independent reports fail regardless of their wording; errors reported after the accelerated broker timeout also fail. Holding does not turn an old request into a deliberate request, and no remaining excusal can hide an unrelated error that actually occurs during grading.

  • Costs of holding. The 32-slot limit reproduced exactly: 32 writes were held and the 33rd was refused by the broker, with none forwarded. More than six held requests did not prevent later deliberate calls. Global busy/disabled state is a common UI pattern (Kit loans uses it), but this false failure additionally needs a write on a looking path; I found no evidence that the documented costs are common in the current task flows. Failure details retain the held-write count (grade.ts:241). This constrained re-check does not establish their statistical frequency; no eval or instance was run.

Validation: Node and Bun eval suites each 61/61 passed (4 files). The temporary browser controls passed. git diff --check c589604..19495a8 passed; tracked worktree clean. No repository edits, commits or pushes; no instance, production or live-database contact.

No separate substantive standards finding. Applicable mirrored surfaces are the internal eval barrier, grading/view helpers and their tests; this delta changes no API/CLI contract, migration, company resource or served product UI.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 19495a8651cdbcd200f02389381a1eb4542e4ac7 (base 1f187a92b2c20da81e8a1d647ea28a60a075d6ef) on throwaway team, kit-room and brightline instances, by GPT-6.1 Sol in the Codex harness through T3 Code. The PR head was unchanged when posting.

Done means

This checks the PR's three-task slice of #1144; the remaining v1 tasks, comparison, keep rule, held-out handling and clusters are outside this PR's claim.

  • spend-approvals: passed. The real Sonnet build passed all six checks, including Ada receiving the exact receipt bytes and both approval and rejection being probed as members before Ada succeeds.

  • broken-handler: passed. Kit loans was staged and updated to v2. All four checks passed: Ben lends without a return date, Ada sees it, both open-ended loans remain open-ended, and the existing dated loans keep their staged days.

  • kudos-agents: passed. Kudos was staged and updated to v2. All six checks passed: Jordan's agent discovers, gives and lists kudos through Patchy MCP, and Marcus sees Jordan's kudo to Priya.

  • Existing targets: passed. The builder homes contained only kit-loans and kudos, respectively, under ~/Patchy; Kudos kept the generated AGENTS.md with its agent/ instructions. The staging tests cover target identity, visibility defaults and rejecting an unchanged published version.

  • Authorization probes: passed independent controls. Chromium used the real shell, broker, client transport and task checks with a loopback backend double. Both decisions first queried the list, waited six seconds, then called the decision handler. The admin-only control passed; hiding buttons while allowing member decisions failed; committing a decision before returning a handler refusal also failed. The actual decision-handler traces were:

    admin-only approval: Ben -> Cleo -> Ada; check passed
    admin-only rejection: Ben -> Cleo -> Ada; check passed
    insecure approval: Ben changed Pending to Approved; check failed
    change-then-refuse: Ben was refused but state became Approved; check failed
    
  • Looking barrier: passed independent Chromium controls. Eight looking writes stayed held while a read and deliberate write completed. After reload, eight more stayed held and a second deliberate write completed. Only those two deliberate writes reached the backend, including after closing the context. File staging, file PUT and discard added three held writes and reached no backend. An independently logged AggregateError failed checkResult; there was no error exemption.

Golden journeys

  • Publish a page / update an existing patch: passed through sandboxed fixture staging, publishing and grading the published source; both existing targets reached v2.
  • Use a tier 2 tool: passed through Spend's receipt and server authorization checks, and Kit loans' member-to-admin flow.
  • Agent use of Kudos (the new task's journey): passed through the real MCP discovery, give/list checks and Marcus's wall. This run did not separately exercise portal search or two simultaneously open wall viewers; no product runtime or Kudos page code changes in this PR.

Evidence

pnpm dev eval --only-head --tasks spend-approvals,broken-handler,kudos-agents \
  --builders sonnet --repeats 1 --concurrency 1
Eval 20261101T212131-19495a8
spend-approvals: built, 6/6 checks passed
broken-handler:  built, 4/4 checks passed
kudos-agents:    built, 6/6 checks passed
Exit 0; scorecard written; instance taken down; no infrastructure retries.

pnpm exec vitest run scripts/dev
19 files passed; 159 tests passed.

pnpm exec turbo run typecheck --filter=@patchy/dev
21 tasks successful.

git diff --check origin/main...HEAD
Passed.

CI checks on this head also pass, including browser, CLI, tier 2, Node/Bun tests and rollback rehearsal.

Surface check: the dev loop, its scenario fixtures, documentation and tests apply. The wire contract, public CLI contract, product vocabulary, migrations, company resources, served product pages, reverse states and package layout do not change.

Rollback answers: match the diff. This changes internal dev/eval tooling and scenario fixtures, with no production API, CLI contract, schema or infrastructure change. A revert leaves local run artifacts that the previous release need not read; no one-way label is needed.

Not run

  • Codex builders and repeated trials: this was one Sonnet run per task, an end-to-end acceptance pilot rather than a comparison or statistical measurement.
  • A full local pnpm verify: the head's CI covers those checks; local validation focused on the dev runner and the behavioural risks above.

Notes

  • Assessed against the explicitly accepted barrier limits in the PR body, including scheduled writes entering a later deliberate window and errors that only surface after a held write settles. These controls establish the tested paths, not an exhaustive proof over arbitrary page behaviour.
  • Neither known issue reproduced: the suite exited normally, and no Codex builder was used. No production contact. No PR code, branch, body or labels changed.

allisonmahmood added a commit that referenced this pull request Nov 2, 2026
## What changed

Eval runs could die mid-build for no fault of the builder. A Terra run
on #1153 ended with `It exited 101 without a result: failed printing to
stdout: Resource temporarily unavailable (os error 11)` and was scored
`gave-up`. A Sol judge in calibration exited 101 the same way.

The cause: the builder inherits the bridge's stdout, a pipe to the
runner. Its own Node-based tools can put that shared pipe into
non-blocking mode. When the runner reads slowly, for example while
grading other runs, the pipe fills, the next write fails instead of
waiting, and Rust's `println!` panics.

Now the bridge gives the command spool files in the sandbox's HOME,
which is on disk, unlike its tmpfs `/tmp`. They're unlinked once open,
so the builder never sees them. The bridge hands each file on as it
grows, never faster than the runner drains it. A write to a file never
fails because it's full, whatever mode it's in. Output waiting for a
slow runner costs disk, not memory. When the command exits, the bridge
records each file's length and hands on exactly that much, so a process
the command left running can't keep the sandbox alive. Since the bridge
is the sandbox's first process, its exit then ends everything else. If
the failure ever recurs, the classifier counts it as infrastructure, so
the run is retried rather than charged to the builder. Only `failed
printing to stdout|stderr` counts; an unrelated `os error 11` stays the
builder's.

## Look at

**Reproduced, then fixed.** I ran the real bridge in bwrap with a
command that marks its stdout non-blocking and writes 2 MiB, while the
runner side starts reading 2 s late:

| Bridge | Writer | Runner received |
| --- | --- | --- |
| main | died with errno 11 after 65,536 bytes | 65,536 bytes |
| a pipe drained without backpressure (first attempt) | died after
131,072 bytes: one big write overruns any pipe | 131,072 bytes |
| this PR (spooled relay) | wrote all 2,097,152 bytes | 2,097,152 bytes
|

The relay is bounded. A 64 MiB writer with the runner reading 3 s late
delivers every byte at a 55 MiB bridge peak, where an unbounded relay
used 127 MiB. A logger left running forever after the builder exits,
with a truly slow reader: the sandbox ends in 0.56 s with what was
written before the exit, where an unfrozen relay ran into a 30 s
timeout.

**Behaviour kept**, each checked through the bridge in bwrap:
- stdin still reaches the command (prompts go in on stdin)
- the exit code passes through (`exit 3` → 3)
- stderr is relayed separately
- a background process the command leaves running doesn't hold the
bridge open (it exited in 0.03 s)
- output written across a one-second pause arrives whole

## How it was verified

- **Bridge tests.** Two tests run the real bridge through `bwrapArgs`
and `openNetwork`:
- With a runner that reads 1.5 s late, every byte arrives. This test
fails on main's bridge.
- The bridge ends with the builder while a descendant keeps logging, and
the descendant's backlog arrives.

Where bubblewrap can't start a sandbox or real Node is missing (CI
runners, `bun --bun`), both skip via `ctx.skip`. Effect's child-process
stream reads eagerly, so the slow-reader case is shown by the direct
bwrap reproductions above rather than by the test.
- **Classifier tests** cover the `failed printing to stdout … os error
11` detail, and an unrelated `os error 11` that stays `gave-up`.
- **Checks.** `scripts/dev/src/eval/eval.test.ts`: Node runs all 21
tests; Bun runs 19 and skips the two bridge tests. Typecheck, test
typecheck, lint and format pass.
- **Review.** Sol reviewed it three times; the final verdict is merge.
- **Acceptance.** PASS with notes: 28 direct checks and a real `cheers`
eval.

## Release impact

Tick exactly one.

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required. Dev tooling only.

- **What does a revert leave behind?** Nothing; the spool files are
unlinked inside each sandbox's HOME and go when it ends.
- **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]>
…n-handler and kudos-agents

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the feat/skill-evals-tasks-1144 branch from 19495a8 to 15248be Compare November 2, 2026 12:40
@allisonmahmood
allisonmahmood merged commit 5bbf22a into main Nov 2, 2026
24 checks passed
@allisonmahmood
allisonmahmood deleted the feat/skill-evals-tasks-1144 branch November 2, 2026 12:51
allisonmahmood added a commit that referenced this pull request Nov 3, 2026
…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]>
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:xl Over 1,000 changed lines; review in multiple passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant