Repository navigation
chore(deps): bump 17 patch releases, including Effect 4.0.5 - #899
Conversation
|
Review: GPT-6.1-Sol (xhigh), 1 round Round 1 on 89ee9fb found nothing, blocking or otherwise.
Local |
0050f14 to
c41db26
Compare
c41db26 to
6d5fe22
Compare
Dependabot's patch-updates group (#877) applied as is, plus the fixes it needs: - Effect 4.0.5 types UrlParams entries as `string | Redacted`, so the join, invite and patch-card forms and the OAuth token endpoint read their fields from the body text through URLSearchParams, which is what urlParamsBody does internally. - The CLI's toolchain.json moves testedAgainst with vite 8.3.4, vite-plugin-singlefile 2.3.4 and @types/node 22.20.5; accepted ranges are unchanged. - packages/mcp, which landed after Dependabot opened #877, gets the same vitest range and lockfile entries as its siblings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
6d5fe22 to
e518fe2
Compare
|
Review: GPT-6.1-Sol (xhigh), round 2 (after the rebase over the MCP stack, #900 and #901) Round 2 on c41db26 found nothing, blocking or otherwise. The patch is unchanged through 6d5fe22 and e518fe2: each later rebase only moved the base, by CI and acceptance-doc files.
|
Acceptance: PASS with notesThe PR moved to Checked Done means (PR claims; no linked issue)
Golden journeys
Rollback answers: match the diff against Applicable surfaces were request-body consumers, CLI/toolchain and served-page behavior. No dev-runner contract, vocabulary, migration, company-resource or repository-layout changes needed mirroring. Selected direct evidence and local verification resultNot run
Notes
|
|
The acceptance verdict for 6d5fe22 (PASS with notes) carries to the current head, e518fe2. e518fe2 is 6d5fe22 rebased cleanly onto 185ecf7, and #901's only change is three added lines in |
## 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]>
## What changed Brings every outdated dependency outside the Effect, TypeScript, TanStack Hotkeys and workerd lanes up to the newest release pnpm's one-day `minimumReleaseAge` installs, and clears the repo's open Dependabot alerts (undici, minimatch). People using Patchy notice nothing. Their next CLI release ships Preact 11.2.0, parse5 8.1.1 and undici 8.12.4. Supersedes the Dependabot PRs in the table, which stay open for Allison to close. One commit per package or group. | Package | From | To | Supersedes | | --- | --- | --- | --- | | `@aws-sdk/client-s3`, `@aws-sdk/client-ecs` | 3.1146.0 | 3.1167.0 | #1399, #1390 | | `@clerk/backend` | 3.23.0 | 3.27.0 | #1398 | | `tough-cookie` | 6.0.2 | 6.1.0 | #1397 | | `rolldown` | 1.2.15 | 1.3.2 | #1396 | | `rolldown-plugin-dts` | 0.28.8 | 0.30.2 | #1388 | | `posthog-node` | 5.55.0 | 5.69.0 | #1395 | | `@babel/parser`, `@babel/types` | 8.0.8 | 8.1.2 | #1394, #1393 | | `preact` (bundled in the CLI) | 11.1.0 | 11.2.0 | #1392 | | `vitest` | 5.0.5 | 5.1.0 | #1389 | | `@playwright/test` | 1.63.0 | 1.65.0 | #1387 | | `parse5` (catalog) | 8.0.1 | 8.1.1 | #1386 | | `imapflow` | 2.10.2 | 2.11.0 | #1385 | | `aws-cdk` / `aws-cdk-lib` | 2.1144.0 / 2.272.0 | 2.1148.1 / 2.276.0 | #1383 | | `oxlint`, `@oxlint/plugins` / `oxlint-tsgolint` | 1.90.0 / 7.0.2005 | 1.93.0 / 7.0.2006 | #1382 | | `npm`, `turbo`, `@electric-sql/pglite`, `semver`, `vite` | 12.2.1, 2.11.9, 0.5.10, 7.8.5, 8.3.4 | 12.2.2, 2.11.11, 0.5.16, 7.8.6, 8.3.8 | #1401 | | `papaparse` | 5.7.0 | 5.7.1 | none | | `minimatch` | 10.2.6 | 11.0.8 | none (alerts 21, 22) | | `undici` (transitive, lockfile only) | 8.11.2 | 8.12.4 | none (alerts 13 to 18) | Newer releases exist for `@aws-sdk/*` (3.1168.0), `@clerk/backend` (3.28.0), `posthog-node` (5.71.0) and `oxlint-tsgolint` (7.0.2007), but they were still under a day old. ## Look at **Why the three red Dependabot PRs failed, and the fixes.** 1. **parse5 (#1386, every test job).** `html-policy.test.ts` expected `<b><div>` + 6,000 `<br>` + `</b>` to cross the HTML repair bound. parse5 8.1 now moves the children of an element closed out of order last child first ([inikulin/parse5@e2901d06](inikulin/parse5@e2901d06)). That cost used to grow with the square of the child count, and the repair bound charges for exactly that cost. The old test described the old parser, not a product rule. The same page now parses in milliseconds and reads its title, as a browser does. The test now asserts that a 15,000-child block reads its title, and the comment on `locate` says why. Timed through `documentTitle` with 64 KB inputs, the bound that fires on each version: | Input (64 KB) | parse5 8.0.1 | parse5 8.1.1 | | --- | --- | --- | | `<b><div>` + `<br>`… + `</b>` | repair bound, null | 19 ms, title read | | `<a><div>` + `<br>`… + `<a>` | repair bound, null | 11 ms, title read | | `<table><b><div>` + `<br>`… | repair bound, null | 9 ms, title read | | 500 distinct `<b a=n>` + `x<p>`… | created bound, null | created bound, null (234 ms) | | deep `<span><div>` pairs | depth bound, null | depth bound, null | Every other shape I tried parses in under 20 ms on 8.1.1. **The sibling-repair bound keeps a test of its own.** On 8.1.1 no known input reaches `MAX_REPAIR_WORK`. A fuzz of about 22,000 generated documents and fragments, repeated motifs over tables, formatting elements, foster parenting and adoption, never had a single move pass more than one sibling. With the check removed, every parse test still passed, because their refusals come from the created-node and attribute bounds. The bound stays as the guard against a parser release that moves front first again, as parse5 did before 8.1, and the comment on `locate` now says so. Its test drives the bounded tree adapter directly (`boundedTreeAdapter`, now exported from the module for it; core's package exports are unchanged). Detaching 6,000 children last first passes, and detaching them front first is refused with the repair message. With line 91's check deleted, the test fails: ``` × bounds error recovery that moves nodes from the front of a long sibling list 112ms FAIL packages/core/src/html-policy.test.ts > boundedTreeAdapter > bounds error recovery that moves nodes from the front of a long sibling list AssertionError: expected [Function] to throw an error Tests 1 failed | 31 passed (32) ``` With the check in place, 32 of 32 pass. parse5 8.1 also brings a series of security fixes: mutation-XSS cases where parse5's tree differed from a browser's, and quadratic parse times. bundleCheck and the HTML policy now see the tree a browser builds in those cases. The rest of `packages/core`, `serving/src/shell`, `bundleCheck`, `repoBuild.test.ts` and `pageImports` pass unchanged. 2. **Babel (#1394, lint).** `@babel/parser` takes its AST types from `@babel/types`. With only the parser on 8.1.0, the CLI had two copies of the types, and `editUses.ts`, `packagePin.ts` and `pageImports.ts` failed to typecheck (`Type 'ArrayExpression' is not assignable to type 'Node'`, plus an excessive-stack-depth error). Both now move to 8.1.2 together, and `pnpm typecheck:tests` is clean. 3. **Patch group (#1401, test on Node).** `cliRepo.test.ts` and `cliRepoBuild.test.ts` expect the loaded vite to match `packages/patchy/src/toolchain.json`'s `testedAgainst` (`expected 'Loaded vite 8.3.7 is unsupported' to contain 'Loaded vite 8.3.4 is unsupported'`). Those files are Node-only, which is why Bun passed. `testedAgainst` and the patchy-loop skill's toolchain table now say 8.3.8, as #899 did for the last vite bump. The accepted range stays `^8.3.0`. **CDK synth.** I synthesized the production example (`synth:example`'s context) before and after the aws-cdk bump. Both templates differ only in the `CDKMetadata` analytics blob, which encodes the library version. No resource changed. The new feature flags are left unset and keep their old behaviour. **rolldown-plugin-dts 0.30** folds `dtsInput` into `dtsOnly`, so the release build now names the new option. The published `.d.ts` files are byte-identical except that `preact.d.ts` and the two JSX runtime entries keep their bare `import "./preact/runtime.js"`. rolldown emits that as one `_types/runtime-*.d.ts` holding `export {}`. The plugin forces internal modules to keep side effects in `dtsOnly` mode, so there's no option to drop it. TypeScript reads it as an empty module. **Behaviour changes in changelogs, and why none needed a change here:** - `@clerk/backend` 3.26.1 refuses the legacy `cl_I7d4PD111III` JWT category, which Clerk no longer issues. 3.28.0, not taken here, will refuse session JWTs without a `cat` header. We only call `authenticateRequest` on Clerk-issued tokens. - `tough-cookie` 6.1 refuses `Secure` cookies set from plain-http origins other than loopback, and wants an explicit `Path=/` on `__Host-` cookies. It is used only in auth's tests, which pass. - `posthog-node` 5.57 to 5.69 change local flag evaluation, exception autocapture and email. We use only `capture` and `shutdown`, with GeoIP off. - `@electric-sql/pglite` 0.5.12 runs initdb with `TZ=UTC`, so new local `.patchy/` databases default to UTC, as production does. 0.5.15 rejects committing an aborted transaction instead of resolving. - Preact 11.1.1 and 11.2.0 reach every page the CLI bundles. An `on*` prop with a non-function value no longer registers an event handler. A thrown `null` or `undefined` now reaches error boundaries as itself instead of a `TypeError`. A node that unmounts keeps its handlers, so an event already bubbling through it finishes. `<template>` in SVG and MathML now renders and hydrates. These are fixes to what a page observes. No change to `patchy/preact` was needed, and the packed Preact suite (one runtime, hooks, compat, signals, `useQuery`, dev debugging) passes. - `imapflow` 2.11 only adds an opt-in `sessionExpires` option. - The `@aws-sdk` clients gain features and fixes. S3 and ECS keep their protocols. `@aws-sdk/client-ecs` now sets a default socket timeout of 900,000 ms. That's moot here: every ECS call runs under our own `Effect.timeout`, which aborts the request through its `abortSignal` at 10 s for management calls, 40 s for `list` and 50 s for starts. - `aws-cdk` 2.1148 rejects a single-value option given twice. The deploy workflow repeats only `-c`, which takes many. - Playwright 1.64 forwards a device descriptor's `screen`, and 1.65 loads `.css` imports in test files as empty modules. The CI browser cache keys on `playwright --version`, so it follows the bump without a change. ## How it was verified - Each red Dependabot failure was reproduced locally first, then the targeted suites ran green: `html-policy.test.ts`, `typecheck:tests`, `cliRepo`, `cliRepoBuild`, `initProject`, the Babel-using CLI suites, the auth suites that use tough-cookie, the IMAP suites, `company-database`, CSV, the labeler test, the lint plugin's tests and `apps/infra`. - `pnpm audit` went from 9 advisories (8 undici, 1 minimatch) to none. Under minimatch 10 and 11, every one of the 54 label globs matches the same 1,457 tracked files. - papaparse 5.7.1 parses the CSV test's 500,000-row input in about 300 ms, against about 470 ms on 5.7.0. - `pnpm check`: format, lint, typecheck and synth pass. The offline tests passed 3,603 of 3,613. The 10 failures were this shared machine, not the change: two timeouts under a load average near 40, and `install.test.ts`, which needs npm beside the Node that runs it while this shell's first `node` was a system build without one. Rerun alone on Node 24.20.0 (CI's and `mise.toml`'s), those three files pass, 90 of 90. - `pnpm verify` on Node 24.20.0: format, lint, typecheck, synth, postgres-concurrency, cli-smoke, install, tier2-smoke and browser (Chromium and Firefox) pass. `test` and `test (bun)` failed on timeouts while the shared machine ran near load 45: 25 Node cases in 18 files and 9 Bun cases in 8 files, nearly all `Test timed out`. Rerun alone, the 8 Bun files pass (149 of 149), and 17 of the 18 Node files pass. The last one, `PgliteCompanyDatabases.test.ts`, timed out its 5 s case once more among the 18 and passes alone twice in about 1.6 s. PGlite 0.5.16 boots a fresh database as fast as 0.5.10 (1.1–2.4 s against 1.4–2.4 s over three cold boots each). CI's `test (24)` and `test (bun)` passed on this branch. - Not run locally: the live Clerk, Pidgeon, Attio and IMAP suites, which create real accounts and send mail, the server image and the rollback rehearsal. CI runs them. **Left out:** `embedded-postgres` 18.6.0-beta.19. It swaps `async-exit-hook`, which `patches/[email protected]` fixes, for `exit-hook` 5. That honours `process.exitCode` on `beforeExit`, so the patch could go. But exit-hook also installs `exit` and IPC `message` listeners, and prints a termination notice on any explicit `process.exit()` while Postgres's async hook is registered. The dev supervisor, `packed-cli-e2e.mjs` and `rollback-rehearsal.ts` all manage those handlers by hand, so moving needs its own pass over their signal and exit codes. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Library and tooling bumps. No API, schema, CLI flag or configuration change. The CLI release bundles a newer Preact, parse5 and undici. CDK templates are unchanged. - **What does a revert leave behind?** Nothing. Lockfile, manifests and one test change. No migration, data or infrastructure moves. - **Does the release before it still work with that?** Yes. Made by Claude Opus 5.5 in T3 Code via Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed
Dependabot's patch-updates group (#877) failed nearly every check, all from two real breaks. This applies the group's 17 patch releases (Effect 4.0.1 → 4.0.5, vite 8.3.4, vitest 5.0.5, turbo 2.11.9, and the rest in #877's table) with the fixes they need. Nothing changes for someone using Patchy.
Replaces #877, which stays open for Allison to close.
Look at
Why #877 is red. No flakes were involved. Every failing job comes down to one of two breaks:
@patchy/companiesand@patchy/portalstopped building (lint, image, cli-smoke, tier2-smoke, browser and the test jobs all build first). Effect 4.0.5 letsUrlParamscarryRedactedvalues for outgoing requests, so its entries are now typedstring | Redacted; 4.0.6 keeps that type. Three forms spreadObject.fromEntries(yield* request.urlParamsBody)into string fields:urlParamsBodyisUrlParams.fromInput(new URLSearchParams(text)). So the join form, the invite form and the patch card forms now readnew URLSearchParams(yield* request.text)themselves: last value wins, as before, andMaxBodySizestill applies to the read. The MCP stack, which landed after build(deps): bump the patch-updates group across 1 directory with 17 updates #877 opened, added one more caller of the same shape: the OAuth token endpoint (packages/auth/src/OAuthEndpoints.tstokenParams). It rebuiltURLSearchParamsfromurlParamsBody's entries and now reads the text directly. The otherurlParamsBodycallers pass the record toSchema.decodeUnknown*or useUrlParams.getFirst, which still return strings; they're unchanged.cliRepo.test.ts,cliRepoBuild.test.ts) expect the loaded vite and vite-plugin-singlefile to matchpackages/patchy/src/toolchain.json'stestedAgainst:testedAgainstnow matches the bumps (vite 8.3.4, vite-plugin-singlefile 2.3.4, and @types/node 22.20.5, which the packed Preact e2e installs). Theacceptedranges, and the upgrade line in the CLI README and ADR-0004, are unchanged.Also from the MCP stack:
packages/mcpgets the same vitest range (^5.0.5) and lockfile entries as its siblings. A textual rebase left its importer pointing at Effect 4.0.1 snapshots that no longer exist; after the fix,pnpm install --frozen-lockfilepasses andpnpm install --lockfile-onlymakes no change.How it was verified
pnpm build,pnpm typecheck,pnpm lint,pnpm format:checkare clean locally. Before the fix,pnpm buildfailed on exactly the errors above.packages/patchy/src/cliRepo.test.ts+cliRepoBuild.test.ts: 48/48 pass (4 failed on build(deps): bump the patch-updates group across 1 directory with 17 updates #877).packages/auth,packages/mcp,packages/companies,packages/portaland the two CLI files: 498/498 pass on the rebased head. They post the join, invite, role and patch card forms and the OAuth token requests.pnpm verifyand Sol review, round 1 on the pre-train head; CI and acceptance on every head (see comments).Release impact
Dependency patch releases. The forms take the same fields with the same last-value-wins parsing.
testedAgainstonly shows up in the CLI's toolchain messages and the e2e installs.Built by Claude Opus 5.5 (xhigh) in Claude Code on T3 Code; reviewed and accepted by GPT-6.1-Sol (xhigh).