Skip to content

docs(sdk): the agent area's text, tuned on Sonnet and Opus builders - #896

Merged
allisonmahmood merged 4 commits into
mainfrom
mcp/860-skill-test
Oct 23, 2026
Merged

allisonmahmood merged 4 commits into
mainfrom
mcp/860-skill-test

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #894 (ticket #859); merges with the rest of #833's stack, not alone.

What changed

The skill test on the prototype shaped patchy-server's "The agent area", but it couldn't exercise the agent/ folder, read-only actions, change keys, patchy dev agent or the result caps. This repeats it on the stack's own build. There were six builder runs, Claude Sonnet 5.5 and Opus 5.5 on the same three requests, and a Sonnet 5.5 worker agent used each published patch through /mcp.

Every builder made a working agent area from the skills alone, and every worker task succeeded. Three things in the text were wrong or missing, and the skill now fixes them:

  • It never said publish warns when agent access is off. All six builders told their person an admin still had to turn it on, though it was already on.
  • The result-size facts sat at the end of a long section. One Sonnet builder read the section in pieces, stopped before them, and shipped an unpaged read.
  • It had dropped the spec's fact that clients decide whether to ask before a change.

Closes #860

Look at

1. The three edits, all in packages/sdk/skills/patchy-server/SKILL.md › The agent area. The section goes from 708 to 825 words. The last two rows came after acceptance (see below). The global skill and patchy-loop are unchanged, so skills-lock.json is too.

Was Now Why
"Agent access is a company switch, off until an admin turns it on at <instance>/company." "Agent access is a company switch an admin turns on at <instance>/company; a publish with agent tools warns while it is off, and says nothing when it is on." All six builders told their person that an admin had to turn agent access on, and all three Sonnet builders wrote a literal <instance>/company. Access was already on, and publish (PatchesApi.agentAccessWarnings) warns only while it is off. The fact they were missing was how to tell.
The limits paragraph opened with "300 calls a minute … Read results over 100,000 characters are refused, so large reads need paging. The agent reads every result in full; a row result carries id, createdAt and updatedAt …" Those facts now follow "The ids it holds come from earlier results or from the person." in the descriptions-and-schemas paragraph, now reading "A read result over 100,000 characters is refused, counting every row's text in full: 50 rows holding 2,000 characters of text each reach it. A read that grows with its table, in rows or in text, needs paging." The limits paragraph keeps in-flight calls, the first call's wait, retryAfterSeconds and change keys. Claude Code saves a long cat to a file and shows only a preview. Opus read the saved file whole, but Sonnet read line ranges. sonnet-r1 read lines 340–400 of the skill and stopped at the end of the descriptions paragraph, one paragraph before the result facts. Its listCalls returns up to 1,000 whole rows with no paging, at about 370 characters a row. That passes 100,000 characters at around 270 logged calls. In the prototype, a facts-only Sonnet run also returned whole rows.
(none) "A refusal reaches the agent with its code and details only as a HandlerError whose code is in errors; anything else a tool throws is handler_failed, with its message left in the patch's log." The second acceptance's Sonnet validated with a plain throw new Error(...). Its worker got a bare handler_failed with a correlation id instead of the entry-by-entry refusal its description promised. "Results and failures" says undeclared codes become handler_failed, but the agent area never said a plain throw hides its message from the agent. The other five Sonnet builds, four of mine and the first acceptance's, all used a declared HandlerError. The descriptions paragraph is now split in two: what an agent knows, then the build rules.
(none) "To agents, a query or read-only action is a read and anything else is a change, so Postgres and PostHog reads count as reads only from a read-only action. Clients decide whether to ask the person before a change, and most ask every time." The spec's "What the skills say" lists both facts for this section, and the stack's text had dropped them; the connection-read fact survived only in "Choose a kind", where both sales builders found it. No builder tripped on their absence. It restores facts the spec requires (the connection-read half came from Sol's review).

2. The runs. Each run records the ticket's list. Kinds are what open_patch reports. Sizes are UTF-8 characters of the door's answers.

Run Tier Agent tools (kind) Says what it does / changes / when it refuses List tool Stricter than the page, in the schema Result sizes patchy dev agent before publish Turns · min · $
sonnet-r1, call log 2 from init listCalls (read), logCalls (change), both re-exported from server/ Yes / yes / yes (invalid_calls: all or nothing, by position; duplicates skipped) logCalls, up to 100 calls No open_patch 3.1 K; logCalls 57. listCalls returns up to 1,000 whole rows, unpaged Yes: listed tools, logged a batch, sent a bad date, filtered 34 · 2.2 · 0.46
sonnet-r2, loans 2 from init listAvailableEquipment (read), lendEquipment (change), its own Yes / yes / mostly (already_out and the date are said; no_such_item isn't) No Due date required, as YYYY-MM-DD text; the page's is optional open_patch 2.7 K; list 866 (5 whole rows); loan 296 Yes: missing, invalid and blank dates 35 · 2.4 · 0.52
sonnet-r3, sales 2 from init salesSummary (read), a read-only action re-exported from server/ Yes / reads only / declares bad_range but doesn't say when n/a n/a open_patch 2.6 K; summary 1.5 K (top 10, fixed) Yes: last month, last quarter, a reversed range 33 · 3.3 · 0.56
opus-r1, call log 2 from init findCustomerCalls (read), logCustomerCalls (change), updateFollowUp (change), its own Yes / yes / yes, with codes logCustomerCalls, up to 200 calls No open_patch 7.1 K; log 506; reads page 50 rows with a cursor, about 23 K a page Yes, as both viewers: a batch, its resend, bad entries, 200 calls 64 · 5.8 · 2.64
opus-r2, loans 2 from init listFreeEquipment (read), recordLoan (change), its own Yes / yes / yes, every code No Due date required, as YYYY-MM-DD text; also refused for agents in the shared helper open_patch 2.1 K; list 471 (compact); loan 180 Yes, as both viewers: no date, 2026-02-30, an item already out 45 · 5.4 · 1.74
opus-r3, sales 2 from init salesSummary (read), its own read-only action beside the page's Yes / "Read-only." / yes (invalid_range) n/a n/a open_patch 5.9 K; summary 2.0 K (top 1–50) Yes, as both viewers: periods, edges, bad ranges 45 · 4.6 · 2.17

Across runs:

  • Tier. All six ran patchy init --tier 2 first. The prototype's Sonnet started the call log at tier 1, before the global tier line said agents need tier 2.
  • patchy dev agent. Every builder called its own tools before publishing. The three Opus runs also called them as the colleague.
  • Asking. No builder asked first. All six built, then listed their choices in the report.
  • Change keys. Both call logs also skip duplicate calls themselves, so a resent day is safe even with a new key.
  • ctx.agent. Builders tag agent writes (sonnet-r1, sonnet-r2, opus-r1, opus-r2) and log agent reads with ctx.log (both sales runs).
    • Two runs (sonnet-r2, opus-r2) also refuse ctx.agent in page handlers no tool exports. No agent reaches those, and Opus called it a backup. It does no harm, so I left the text alone.
    • opus-r1 also ctx.logs its own changes, which Patchy logs already. That's one run in six, against two of eight in the prototype; no edit.
  • Outside this text:

3. The worker checks. Each was a Sonnet 5.5 worker from the environment's worker-claude, signed in as Ben (a member) through consent, with no built-in tools. The task named the patch.

Run Task Door calls Result
sonnet-r1 Log a day of 8 pasted calls find_patches, open_patch, change_patch All 8 in one logCalls, relative follow-ups resolved
opus-r1 Same find_patches, open_patch, change_patch All 8 in one logCustomerCalls
sonnet-r2 Borrow the camera until Friday; which laptops are free? find_patches, open_patch, read_patch, change_patch Loan due 2026-10-30, using the id from the list; three laptops named
sonnet-r2 Mark my camera returned find_patches, open_patch Declined: no tool for it, so it pointed to the page and the owner
opus-r2 Borrow the camera until Friday; which laptops are free? find_patches, open_patch, read_patch, change_patch Same as Sonnet's
opus-r2 Mark my camera returned find_patches, open_patch Declined, same as Sonnet's
sonnet-r3 Revenue by region in September 2026 and the top three customers open_patch, read_patch Matches SQL over the source exactly: $313,425.00, five regions, top three
opus-r3 Same open_patch, read_patch Same figures; also reported the refunds it left out and the pending orders it counted

Every worker needed nothing outside the door. The ids it used came from the patch's own list. It said how it read "Friday" (the 30th, a week out). Twice, Claude Code itself answered the first open_patch with "No such tool available" before loading the tool; that was the client, not Patchy.

After acceptance

The first acceptance run, at df79c67, was a FAIL. Acceptance's Sonnet built the call log's read as up to 200 whole rows with no cursor, and its handler accepts summaries of up to 2,000 characters. With 58 such valid calls the read was too_large (120,012 characters).

95ea886 then made two facts concrete: that the cap counts every row's text, with 50 rows of 2,000 characters reaching it, and that publish says nothing when access is on. Sonnet ran request 1 twice more on that text:

  • retest-a stopped before building. It saw the signed-in account's email, which Claude Code puts in its context, differ from the CLI's login, and started a login handoff. That came from the launcher's environment, not the text.
  • retest-b read the whole agent area and built findCalls: the newest 100 whole rows with no cursor, summaries capped at 1,000 characters, and "Returns at most 100." in its description. After 300 realistic calls (about 100-character summaries), the read returned 100 rows in 38,684 characters. At 100 summaries near their 1,000-character maximum it would pass 100,000. On access, it said publish gave no warning, "so it may already be on".

Stating the facts doesn't get Sonnet to size a read for its longest valid rows. The chief of staff's call, which Allison can overturn, is that the text stays facts with no recipe sentence. Builder reads that pass the cap under worst-case rows are a known limitation tracked in #897, with the candidate fixes listed there.

The second acceptance, at 95ea886, was also a FAIL, on a different defect in its Sonnet call log. Validation used a plain throw, so a worker sending an impossible date got handler_failed and a correlation id, not the refusal the description promised. The too_large check passed as the #897 limitation: the refusal named the cap and the owner, and said paging is the fix. Everything else passed, including the worker tasks, change keys, consent and endings, the access switch and the rehearsal. The refusal fact above is the fix.

The third acceptance, at 0ce7c1c, is a PASS with notes. It classified each defect in a generated patch as a fact gap in the text or a builder slip despite the fact. It found no fact gap and no Patchy defect. Sonnet's batch mutation now refuses a bad date with its declared code (invalid_call, from: patch, with the entry's index and reason). The builder slips it noted:

  • Sonnet's read is still unpaged, which is Agent reads that grow with their table can pass the 100,000-character cap with no way to page #897. Patchy's too_large names the cap and the owner, and says paging is the fix.
  • Sonnet's batch mutation returns every inserted row. Sixty calls with 2,000-character summaries passed the 64 KiB mutation-result limit the skill states, and failed as handler_failed. Batches of 20 succeeded.
  • Sonnet still told its person an admin had to turn access on, though its publish showed no warning.

How it was verified

Method. Both phases ran on this branch at 33b5445, with each model on a fresh pnpm dev up (team, so no other company's patches beside them). Ada (admin) turned agent access on and connected postgres/orders. That's a throwaway database in a non-production Neon project: 40 invented customers and 1,500 invented orders, read through a new read-only role. The instance accepts only public TLS sources, so a local Postgres couldn't stand in.

  • Builders. <env>/agent -p --model claude-{sonnet,opus}-5-5 --no-session-persistence "<request>". That's the launcher's isolation from A dev environment's agent makes new patches in your real ~/Patchy #829 (no ancestor instruction files, no memory, --strict-mcp-config). A probe found only the workspace's CLAUDE.md, the Patchy skill and Claude Code's built-in skills. To match the prototype, I added its extra allowed commands: cd, cp, mv, curl, echo, sleep, timeout, chromium, python3 and sed. Two builders ran at a time, R1 and R2 together, then R3.
  • Requests, the prototype's own minus "in this folder", since the workspace's CLAUDE.md says where:
    1. "Make a patch where our team logs customer calls: who called, the customer company, a short summary and a follow-up date. People's agents should be able to log calls for them; they'll often paste in a whole day of call notes at once. Publish it when it works."
    2. "Make a small patch for equipment loans. People borrow laptops, cameras and mics and give them back. Our agents should be able to see what's free and record a loan for their person, but an agent must always give a due date, which people can leave blank. Only a person can mark something returned. Publish it when it works."
    3. "Make a patch that summarises our sales from the company's order database: revenue by region and by product for a date range, and the top customers. People's agents should be able to get the same summary for their person, say for last month or a quarter. Publish it when it works."
  • Seeding. Before each loans worker check, I added the prototype's five items through the patch's own page as Ada.
  • Sizes. open_patch was recorded through the door with a minted connection.
  • Aborted run. The first sonnet-r3 run was stopped partway when the machine was needed for a demo, then rerun from scratch. The aborted run published nothing.

Safety.

  • Every publish went to the local instance.
  • ~/Patchy and ~/.patchy. I checked both before the first run and around each run. Each run's before and after listing of ~/Patchy (outside node_modules) matched.
    • Over the whole session, one new repo bound to production appeared, and ~/.patchy's skill copy was rewritten. Both happened at 01:10–01:14, during the pause for the demo, while none of my runs was going.
    • TypeScript's files inside ~/Patchy's node_modules changed size during one run. They are hard links into the shared pnpm store, which another install's Effect language-service patch rewrote.
  • Neon. The Neon database and role were dropped at the end, and the catalogue shows neither.
  • Transcripts. Claude Code put the signed-in account's email in builders' and workers' context, and several repeated it. Nothing here quotes a transcript unscrubbed.

Tests.

  • vitest run packages/limits/src/limits-md.test.ts packages/patchy/src/skillLock.test.ts passed (the generated limits block and the global skill's lock), and so did vitest run packages/sdk/src, which includes generation.
  • Prettier passes.
  • pnpm verify passed at 50d7d63: format, lint, typecheck, synth, test, postgres-concurrency, cli-smoke, tier2-smoke and browser. 05c35d5 adds one sentence to the skill. I re-checked it with the limits and lock tests and Prettier, and CI is green on it.

Not done. The edited text wasn't put through a second round of builders; the ticket's scale is two models × three requests. All three edits add or move facts the runs showed were missing; none removes one.

Release impact

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

Skill text only: the project skill a tier 2 repo gets at init, refresh and dev start.

  • What does a revert leave behind? Repos that refreshed in between keep the new text until their next refresh.
  • Does the release before it still work with that? Yes. Nothing reads the skill but agents.

Built by Claude Opus 5.5 (xhigh) in Claude Code on T3 Code; reviewed and accepted by GPT-6.1-Sol (xhigh).

@github-actions github-actions Bot added area:server Touches the server area area:docs Touches the docs area size:s Under 100 changed lines labels Oct 23, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review: GPT-6.1-Sol (xhigh), two rounds

Round 1, at 50d7d63, found nothing blocking:

  1. Should-fix, packages/sdk/skills/patchy-server/SKILL.md:380: the agent area's reads and changes paragraph left out the spec's "connection reads are reads only from a read-only action". The fact appeared only in "Choose a kind", and the runs show builders read this skill in pieces. Fixed in 05c35d5: "…anything else is a change, so Postgres and PostHog reads count as reads only from a read-only action." The edit table and word count (708 → 764) are updated.
  2. Should-fix, PR body: the closing line's "reviewed and accepted by GPT-6.1-Sol" was premature. Dismissed. The stack's lane brief prescribes that exact line for every stack PR, and this PR isn't reported ready until review is clean and acceptance has passed on its head.

Round 2, at 05c35d5, found nothing. The fix is correct and complete against the spec and the code that enforces it. The run records support the tables and the reason for each edit. Mirrored surfaces stay consistent, the length is comparable, and the body holds nothing private.

@allisonmahmood

allisonmahmood commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 0ce7c1c1bc8eda2709037896d077afecf3297f11 (PR base b4dba653e803c37930116694cf21f9e71dfcc388; combined stack from e4243ff54d2acbbc88b60eeb0cf9b82a26dc9d5d) on a fresh team environment, by GPT-6.1-Sol (xhigh), in the Codex harness on T3 Code. This is the combined-stack acceptance for #833. No Patchy defect or skill fact gap was found in these checks; the generated-patch limitations below are classified separately as requested.

Done means

  • Run tables, worker checks, edits and reasons in the PR: passed. The body records six author builder runs across both models and all three requests, their worker checks, and the reasons for the text changes.
  • Working agent areas from the skills under both models: passed with the builder notes below. I gave request 1 verbatim to Sonnet 5.5 and request 2 verbatim to Opus 5.5, headless through this environment's agent launcher. Ada enabled agent access at Company first. Both initialized tier 2, received server skills byte-for-byte identical to this head, read the current agent-area facts, created agent/, listed and called tools with patchy dev agent, and published to this instance. No repair prompt or implementation hint was supplied.
Independent builder Agent tools and design Descriptions and schema Sizes and local checks
Sonnet 5.5, call log listCalls (read), logCalls (change), re-exported from page handlers. Batch up to 200 calls; read up to 500 whole rows with an optional company filter, no cursor. Says what is read/written and explains all-or-nothing validation. Declares invalid_call and too_many, using HandlerError. No extra agent-only required field. open_patch: 3,636 characters. Eight-call change: 2,444; nine-row read: 2,744. Builder listed tools, saved a batch and tested an invalid date before publishing. 28 turns, 93 seconds.
Opus 5.5, equipment loans listEquipmentLoans (read), recordLoan (change), its own agent area with shared helpers. Compact list of items and current loans; no return tool. Describes changes and refusal conditions. Agent schema requires due date; the page accepts null. The shared helper also checks ctx.agent, and the page return handler refuses agents. open_patch: 3,291 characters. Five free items: 602; after camera loan: 751; change: 351. Builder tested both dev viewers, missing/blank/impossible/past dates, an item already out, agent return refusal and the human handler paths. Temporary test exports were removed and guards restored before publish. 56 turns, 243 seconds.

Sizes count compact structured answers once, without duplicating MCP's text representation.

Golden journeys and worker checks

Workers used the documented worker-codex ben exec alternative with the change_patch approval override. Completed tool records contain only MCP calls, with no shell, file or browser calls.

  • Pasted day: passed. Find → open → one change logged all eight calls. Relative follow-ups became the correct dates; two absent follow-ups remained null. An independent read and the published page showed all eight attributed to Ben via Codex.

  • Borrow camera and list free laptops: passed. Find → open → read → change borrowed Sony A7 IV through Friday 30 October 2026 using its discovered id, and named all three free laptops. The open page updated live. I seeded the five items through the page. An initial worker launched before seeding was complete correctly reported empty inventory; the unchanged task succeeded after inventory was confirmed.

  • Return request: passed. A fresh worker used find/open, declined because no return tool exists, and pointed to the page and Ada. The camera remained on loan. A direct MCP return attempt was unknown_tool.

  • Human path and stricter agent rules: passed. Missing due date was invalid_args; blank was due_date_required; impossible/past dates were invalid_due_date with useful details. A second camera loan was item_on_loan. Ben borrowed the mic on the page with no due date, then returned camera and mic there; MCP listed all five free again.

  • Previous refusal failure: passed on this head. A mixed call batch containing an impossible date returned the declared patch refusal below and saved no rows:

    code: invalid_call
    from: patch
    details: { index: 1, reason: "followUpOn must be a real date as YYYY-MM-DD" }
    
  • Change keys: passed. Same key and arguments replayed the original result with replayed: true; changed arguments were key_conflict. After a publish, retry was version_changed and instructed the agent to read first.

  • Read cap: passed, with Agent reads that grow with their table can pass the 100,000-character cap with no way to page #897's accepted limitation. After three successful batches of 20 calls with 2,000-character summaries, the read was clearly refused:

    too_large, from patchy:
    call-log's listCalls answered with 139,474 characters, more than the 100,000
    an agent reads in one answer, so nothing was sent. Narrow the call;
    the patch's owner, Ada Park, can add paging.
    
  • Consent and connection endings: passed independently. Real Claude Code client metadata loaded. Signed-out consent answered 401; Deny returned access_denied; Allow and the S256 exchange succeeded. Refresh rotated the pair; a retry returned the same access/refresh tokens. Disconnect made access return 401 and refresh invalid_grant; replaying an authorization code ended its connection. Deactivation ended Cleo's connection, and reactivation did not revive it. Disconnect everything ended Ben's connection. Worker connections themselves were dev-minted, rather than client-driven consent.

  • Door and switch: passed. Wrong host was 421, wrong origin 403, and a work token at the build API 401. The four tools had the expected read/change annotations. Access off refused an existing connection with agent_access_off and named the admin; on restored the same connection. Ben could not toggle it (403). Publish emitted no warning while on and an agent-access warning while off.

  • Lifecycle: passed. Retiring the call log hid it from the catalogue; a read returned patch_retired, naming Ada, the date and the restore path. Restore exposed the same tools again.

  • Existing journeys and checks: passed in the head's green CI, including browser, Clerk live, both CLI-smoke jobs, tier 2 smoke, Postgres concurrency, lint and all three Node test jobs. The focused local run had 393 passes and one installer test failure caused by this machine's pre-existing global patchy in Node's directory. With a task-local Node/npm directory containing no global Patchy, that installer suite passed 7/7, without a source change. The original aggregate command exited 1 and is not reported green.

Rollback answers: #896's text-only answers match its diff: refreshed repos keep the text until their next refresh; no program reads it. The combined stack leaves additive tables/columns, agent log rows and descriptor marks, whose prerequisite readers and credential-ending stamps exist in pinned main. The explicit four-step rehearsal passed: e4243ff → 0ce7c1c → e4243ff → 0ce7c1c on the same data, in 157 seconds. It exercises read-only/agent descriptor enforcement, ended credentials staying ended and replay of step 2's change at step 4. CI's five-second rollback job only skipped the text-only PR diff; it is not the evidence for this combined-stack rehearsal. The persistent ALB host-preservation attribute is disclosed in #883's release-impact answer. No infrastructure was deployed.

Notes — generated-patch defects classified

  • (b) Builder slip, known Agent reads that grow with their table can pass the 100,000-character cap with no way to page #897: Sonnet's unpaged read can cross the cap. The exact skill it read says, “A read that grows with its table, in rows or in text, needs paging,” and explicitly states the 100,000-character cap and longest-row example. The fact is present; Patchy's clear too_large refusal above passed.
  • (b) Builder slip: Sonnet returns every inserted row from its batch mutation. Sixty valid calls with 2,000-character summaries made the mutation result exceed 64 KiB and return handler_failed with “The handler result exceeds its byte limit.” The skill it read says, “Query and action results are limited to 8 MiB; mutation results are limited to 64 KiB.” Three 20-call batches succeeded. This is the generated handler's result design, with the documented platform limit enforced, not a missing fact.
  • (b) Builder slip: Sonnet still said an admin needed to enable access after publishing, although it was already on. The text it received says a publish “warns while it is off, and says nothing when it is on.” Its publish had no such warning.

Not run

  • Request 3's fresh sales builder and Postgres worker: covered by the author's recorded public-TLS Postgres run in this PR, as instructed. Its disposable source was dropped; no Neon or other external resources were created.
  • Hosted clients, live Fargate/ALB behavior, a local live-Clerk run, or an interactive Claude Code consent sign-in. CI's Clerk job passed; the local consent check exercised the protocol with real client metadata.

Safety and surfaces

Every direct environment CLI call cleared external URL/token variables and used that environment's cli-state; builders used its guarded launcher. No production or daily-driver instance was touched. The CLI/project-skill surface applies to #896: generated copies matched this head; #896 adds no wire, runner, vocabulary, migration, resource, page, lifecycle or package-layout change.

Before the run, after each builder, after workers and after the rollback rehearsal, both personal directories matched their initial contents: no added, removed or changed files. The team environment and its workspace were removed with pnpm dev down; its recorded processes and ports are gone. The rehearsal removed its scratch instance and checkout. Builders, workers and verification processes finished, and the browser tab was closed. This T3-provided checkout remains clean.

Only scenario data and scrubbed excerpts appear here; raw transcripts are not uploaded. The PR's code, branch, body and labels remain unchanged.

@allisonmahmood allisonmahmood mentioned this pull request Oct 23, 2026
@allisonmahmood
allisonmahmood force-pushed the mcp/859-dev-worker-agents branch from b4dba65 to 9375347 Compare October 23, 2026 16:58
Base automatically changed from mcp/859-dev-worker-agents to main October 23, 2026 17:19
…ask, and puts result sizes beside schemas

Six builder runs (Sonnet 5.5 and Opus 5.5, three requests each) on the
stack's own pipeline made working agent areas from the skills. Every one
told its person an admin still had to turn agent access on, though it was
on: the text said it starts off but not that publish warns while it is.
Sonnet read the long skill in pieces and stopped before the limits
paragraph, so one list read returned up to 1,000 full rows; the result
facts now sit with descriptions and schemas. The spec's fact that clients
decide whether to ask before a change, and most ask every time, is back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…p, and that publish is silent when access is on

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he agent with its details

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood merged commit 3e6728f into main Oct 23, 2026
14 checks passed
@allisonmahmood
allisonmahmood deleted the mcp/860-skill-test branch October 23, 2026 17:32
allisonmahmood added a commit that referenced this pull request Oct 23, 2026
## What changed

This PR adds release 17's What's new entry, written from `5dd94f3`. It
covers everything merged since release 16's `through` (`dd3f41f`), and
it sets the `patchy` release to `0.17.0` in
`packages/patchy/package.json` and `CURRENT_RELEASE`. With this release,
people's agents can use their company's patches through Patchy MCP
(#833).

| Change | PRs |
| --- | --- |
| New: Your AI agent can use your company's tools | #873, #878, #880,
#881, #882, #883, #884, #886, #887 |
| New: Admins choose whether agents can use the company's tools | #871 |
| Improved: Your machines shows your agents too (Revoke all machines is
now Disconnect everything) | #885, #879 |
| New: See what agents can do with a tool | #876 |
| New: The log says when an agent made a change | #888 |
| New: Your agent can make a tool ready for agents | #869, #870, #872,
#875, #896 |
| Behind the scenes: agents' calls have their own limits, and a server
only an agent uses rests a minute after its last call | #889, #892 |
| Behind the scenes: New and Improved changes are public, for
patchyhq.com | #893 |
| Behind the scenes: library updates | #899 |

Five merged PRs get no line:
- #874 is release 16's own entry.
- #894 is dev tooling: worker agent launchers and scenario data. Its one
CLI fix lets a `patchy` installed outside a tier 2 repo publish it. The
skills have agents use the repo's pinned `pnpm patchy` instead, so that
path is off the documented one.
- #900 is CI.
- #901 rewords an internal skill.

## Look at

- **The entry**, at the top of `releases` in
`packages/core/src/whatsNew.ts`.
- It names only Claude Code and Codex. Both have connected through real
consent against dev instances. Hosted clients (Claude.ai, ChatGPT) are
checked in production only (`docs/product.md` › Patchy MCP ›
Acceptance).
- Its labels are the pages' own: Agent access on Company, Your machines,
What agents can do, Disconnect everything, and "Jordan Lee via Claude".
- **Rollback safety, from the live commit `e4243ff` to `5dd94f3`.**
- No PR in the range is labelled `one-way`, and every PR answers both
Release impact questions with "Yes".
  - Migrations 0020–0025 are all additive:
    - three defaulted or nullable columns on `companies`;
- `agent_name` on the runtime log, with a widened `credential_kind`
check;
    - the agent connection tables, `agent_consents` and `change_keys`;
    - two columns on execution bindings.

The new tables reference `users` without a cascade, but no release
deletes users or companies. Release 16 reads the runtime log only for
credential kinds it knows, so rows from agents can't break it.
- `rollback-rehearsal` on #892 rehearsed the whole stack, since #892
adds the last migration and the rest of the stack sits below it:
`Exercised rollback paths passed: e4243ff → c8bede4 → e4243ff → c8bede4,
in 238s.` #896's run skipped, because it changes no migration or handler
descriptor.
- #883 turns on the load balancer's host header preservation, which the
Deploy workflow's app stack deploy applies. A rollback leaves it on.
That's harmless, because release 16's server never reads `Host`.
- A rollback takes `/mcp` and `/whats-new.json` away. Connected agents
get a 404 until this release returns, and then their connections work
again, unless one ended in between. Agent tools published in between
stay refused to pages, because #837 already shipped in release 16.

## How it was verified

- `pnpm check` on `2d528b1`: format, lint, typecheck and synth passed.
In the test step, 2,300 of 2,301 tests passed. The one failure was
`packages/sdk/src/install.test.ts` › "says how to reach patchy when the
prefix's bin is not on PATH", which timed out at 180 s while the shared
machine was loaded. Rerun alone, that file passes all 7 tests in 62 s.
The release's own tests pass too: `whatsNew.test.ts`, `schemas.test.ts`
and `WhatsNewPages.test.ts`.
- The live commit was pinned from `/healthz/deep`: `e4243ff`, release
16. The Deploy run updated last succeeded, and none is unfinished.
- Each PR in the range was read with `gh pr view`, including its Release
impact answers.

## Release impact

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

This PR changes only the changelog text and the `patchy` version. As
with every release, a CLI installed before this deploy is told to
upgrade.

- **What does a revert leave behind?** Nothing. People whose seen marker
reached 17 would just see no new release.
- **Does the release before it still work with that?** Yes.

If this release misbehaves, roll back to
`e4243ff54d2acbbc88b60eeb0cf9b82a26dc9d5d` (release 16).

Prepared by Claude Opus 5.5 (xhigh) in Claude Code on 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:docs Touches the docs area area:server Touches the server area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test the agent area's skill text with Sonnet and Opus builders on the real pipeline

1 participant