Skip to content

feat(serving): desktop Firefox is supported, proven by its own CI job - #1427

Merged
allisonmahmood merged 2 commits into
mainfrom
t3/support-firefox-ci
Nov 13, 2026
Merged

allisonmahmood merged 2 commits into
mainfrom
t3/support-firefox-ci

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

What changed

Patchy said desktop Chromium was the only supported browser, and CI ran one spec in Firefox. Nothing technical was behind that line: the sandbox was designed for both, and the Firefox suite was dropped for speed. Running the whole tier 1 browser suite in Firefox found three real bugs, fixed here:

  • A portal dialog couldn't be closed once its form had been submitted. Share from All patches, invite a guest, then Done, Close or Escape: nothing happened.
  • The "Starting your tools" cover came back without focus after a tab was hidden and shown again, when it had closed with Try again focused.
  • A same-page link on patchy look preview --compare scrolled nowhere.

Every tier 1 browser spec now runs in Firefox as its own CI job, browser-firefox, beside the Chromium one. The docs say what is true now: desktop Chromium-based browsers and Firefox are supported, Safari is untested, and mobile is outside this release.

Look at

1. The dialog that wouldn't close (packages/core/src/ui/enhancer.ts). Closing a dialog goes back in history past every entry it took, and it counted one entry per submission. A post that redirects back to the dialog's own address takes a new entry in Chromium and replaces the dialog's entry in Firefox:

history.length list dialog opened after the invite
Chromium 2 3 4
Firefox 1 2 2

So Firefox was asked to go back two entries when one existed, which a browser silently ignores. Firefox's Navigation API miscounts the same way (it reports a third entry the history doesn't hold), so the fix reads history.length:

  • An entry is counted only when the history's length changed since the dialog was last drawn. Equal length means the entry was replaced.
  • A history at its 50-entry limit takes a new entry without growing, so that count can come up short. A close that lands on an earlier page of the same dialog keeps going to the page that opened it. It can never overshoot.
  • Back from a redrawn dialog still skips its earlier pages. They are ordered by how many times the dialog was drawn, which no longer has to equal the entries it took.
  • A dialog left open across the release keeps working. The release before recorded only a depth, which orders its pages; with no length to compare, its next page counts no new entry and the close keeps going.

Red on main, green here, in Firefox:

✘ [firefox] › sharing.spec.ts:4 › an owner shares a page from its menu, and the guest opens it from Home and removes it
    Error: expect(locator).toHaveCount(expected) failed   Locator: getByRole('dialog')   Expected: 0   Received: 1
✓ [firefox]  › sharing.spec.ts:5 › an owner shares a page from its menu, and the guest opens it from Home and removes it
✓ [chromium] › sharing.spec.ts:5 › …

That test now also goes Back and Forward across the invite and checks focus returns to the menu's button. Two new ones in ui.spec.ts, each failing in both browsers with its part of the fix taken out:

  • "in a history at its longest, closing a dialog drawn again still reaches its opener" fills the history to its limit first, and needs the keep-closing step.
  • "a dialog the release before opened still goes back to its opener" rewrites the dialog's records to that release's shape, and needs them read by their depth.

2. Firefox passes or fails by itself. browser-firefox installs only Firefox, builds what it runs and shares nothing with browser, so the two run side by side and neither waits on the other. playwright.tier1.config.ts's firefox project lost its testMatch and keeps Fission on, as Firefox ships it. pnpm verify runs the two one after the other.

CI job, on this head Tests Job
browser (Chromium) 189 passed 12 min 17 s
browser-firefox 186 passed, 3 skipped 11 min 49 s

The two started together, so the Firefox suite adds under a minute to CI's wall clock. The three skips are the ones named under 4.

browser-firefox is not a required check: the main CI ruleset lists browser and not it. Adding it is a repository setting, left for Allison.

3. What the 14 Firefox failures were. A full Firefox run on main: 166 passed, 14 failed, 2 skipped.

Failing test What it was What changed
sharing.spec.ts share dialog real: dialog can't close fixed, above
starting.spec.ts fleet retry real: Firefox goes on counting Try again focused once the cover closed and focus moved to the frame, so the reopened cover can't take focus stream-status.ts blurs Try again before the cover closes
look-preview.spec.ts compare page real: Firefox scrolls only the frame to a same-page link's target, and a fitted frame has nowhere to scroll the compare page scrolls the page around it; its script hash moves with it
switcher.spec.ts menu over the cover test: the switcher's Firefox retry sits on a timer the test's paused clock held the test runs the clock a tick
switcher.spec.ts shell selection test stages desktop Chrome's own race; see the limit below the staged fall runs in Chromium only, the rest in both
switcher-relay.spec.ts (2) Firefox won't build a MessageEvent naming another origin's window as its source, in a page's own script too, so the forgery the test makes can't exist there forgeries are attempted and nothing may come of them; the real pair is the frame's own message
hotkeys.spec.ts layouts, touch, local hotkeys; stream.spec.ts HTTP/2 need Chromium's DevTools protocol see the skips below; HTTP/2 is now read from the test ingress, in both browsers
hotkeys.spec.ts sheet styles 12.16px is 12.1563px in Firefox matches either
tier1.spec.ts anti-framing Firefox refuses the frame as it should; Playwright's Firefox then never reports that page's next navigation each probe gets a page of its own
server-subscriptions.spec.ts blob images Firefox goes on drawing an image it decoded from an address after the address is revoked asked for under a fresh fragment, which is refused in both

Once the local-hotkeys test got past its first DevTools step it failed further on, for a Playwright reason: when a second tab closes, Playwright's Firefox doesn't give the first tab's frame its focus back. The test now clicks back into the patch, as a person would.

4. What still runs in Chromium only, and why. No skip says "unsupported" any more.

  • Steps that press a key as another layout reports it, compose with an input method, drag a touch, or read the accessibility tree: they drive Chromium's DevTools protocol, which Playwright has no equivalent of for Firefox. Three steps, the three accessibility-tree checks and one test in hotkeys.spec.ts; the rest of those tests run in both.
  • tier1.spec.ts BFCache and switcher.spec.ts tab-and-back, as before: each launches or reconfigures Chromium on purpose.

A limit this leaves. Firefox sends a window no blur when its frame takes focus, so the shell can't tell that the keys went into the patch. With text still selected in a download card, a return of focus to the shell's window keeps the keys there, where Chromium hands them back to the patch. Only desktop Chrome is known to drop keys onto the shell by itself, which is what that hand-back is for. broker.ts says so beside the code.

How it was verified

  • Every test touched here passes in both projects, run spec by spec: sharing, ui, people, starting, switcher, switcher-relay, hotkeys, stream, look-preview, server-subscriptions, tier1's anti-framing test, and focus after all-patches, csv and downloads.
  • pnpm lint, pnpm typecheck, pnpm format:check, and the unit tests beside the changed code (packages/core/src/ui, packages/serving, lookPreview.test.ts, SdkApi.test.ts, repo.test.ts).
  • Not run locally: both suites end to end, and pnpm verify. The machine was shared and heavily loaded, and runs there failed on port collisions and timeouts that passed alone. CI's browser and browser-firefox are the full runs.
  • Reviewed by GPT-6.1 Sol. Its two findings are fixed in the second commit: records the release before wrote, and the relay spec's catch, which now lets only Firefox's refusal to build the message through.
  • Not checked: Safari, and Firefox with a window on macOS or Windows. Playwright's Firefox is headless Linux.

Release impact

Tick exactly one.

  • Breaking — requires action from anyone already running this

  • Not breaking — no action required. The portal's and shell's own scripts, the CLI's compare page, one project skill line and one capability's limits text change; no API, schema or CLI contract does.

  • What does a revert leave behind? Nothing on the server. A tab open across the revert may hold a dialog's records in the new shape. The older script reads the opener and depth it knows and ignores the rest, and one case then reads short: in a tab whose history is at its 50-entry limit, a dialog drawn again after a submission recorded fewer entries than it took, counting on the newer script to keep closing. Under the older script each Close or Escape there steps back one draw, so that dialog takes one press per draw to reach its opener.

  • Does the release before it still work with that? Yes. That one dialog, already open in such a tab, closes in more presses than one; a dialog opened after the revert is the older script's throughout. Not labelled one-way: the older release reads everything this one leaves, and nothing is stuck.

Built by Claude Fable 5.2 (claude-fable-5-2) in Claude Code, through T3 Code.

A portal dialog drawn again after a submission could not be closed in Firefox:
a post that redirects back to the dialog's own address replaces its history
entry there, where Chromium adds one, so the close went back further than the
history reached and did nothing. The dialog chain now counts an entry only when
the history's length changed, orders its pages by how often the dialog was
drawn, and keeps closing when a close falls short of the page that opened it.

Firefox also left the starting cover unfocused when it reopened after closing
with Try again focused, and scrolled nowhere for a same-page link on the look
compare page. Both are fixed.

Every tier 1 browser spec now runs in Firefox as its own CI job,
browser-firefox, beside the Chromium one. The docs say desktop Chromium-based
browsers and Firefox are supported, Safari is untested and mobile is outside
this release.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@github-actions github-actions Bot added area:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:core Touches the core area area:docs Touches the docs area size:m 100-500 changed lines labels Nov 13, 2026
…goes back

Its records carry no step or length: depth orders them, and their next page
counts no new entry, which a close that falls short makes up for. The relay
spec's forged messages may fail to build only in Firefox.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 4669509e3b98eeaf4ce5236d93e67b5a2ad68fa4 (base 5decfef6f53acc56be108a8af972eef4dfd536b3) on a fresh development-gallery instance, with the earlier run's brightline and team checks carried forward on this same head, by GPT-6.1 Sol in Codex. The checkout matched the PR head and was clean. I did not write this change.

Done means

These four results were checked in the earlier run on this exact head and carried forward, not rerun:

  • Portal dialog fix: passed. In Chromium and Firefox with Fission, All patches → Share → invite a guest → footer Close, header Close, Escape, or browser Back returned to /patches without a dialog. Close/Escape restored the menu button's focus. This head calls both close links “Close”.
  • Starting-cover focus: passed. The real-fleet retry test passed in both browsers, including hiding with Try again focused and reopening with the cover focused.
  • Compare-preview scrolling: passed. An actual CLI-generated look preview --compare file worked offline in both browsers: “See all vendors” scrolled the outer page to the target; no network request escaped.
  • Firefox CI and browser policy: passed. Firefox has no spec filter and builds/runs in an independent job. README, product/development docs, SDK limits, and project skill agree on desktop Chromium/Firefox, Safari untested, and mobile outside this release.

Golden journeys

All three were checked in the earlier run on this exact head and carried forward, not rerun:

  • Share and unshare: passed. The guest opened the kickoff page; guest removal returned 404. CLI public sharing returned signed-out 200 with public caching; company sharing returned 401 with private/no-store caching.
  • Invite and join: passed in both browsers. An invalid invite redrew and closed with Escape; valid invitations worked; a pending invite was revoked; another person joined Acme Co, reached Home, and was deactivated and reactivated through portal dialogs.
  • Use a tier 2 tool: passed in both browsers. New Business showed sample deals; Jordan's stage change appeared on Allison's board and was moved back. Spend refused self-approval.

Rollback answers: passed. The revised answers accurately disclose the retained browser-history mismatch. The older release can read the retained records and reach the opener. Under the PR template and acceptance skill, the one-way label is not owed: the disclosed extra close presses do not leave the older release unable to work with what remains.

Fresh checks kept the head-written history/session records, served the base commit's exact uiScript at /assets/ui.js, and reloaded before closing. No record was rewritten. Nine focused cases passed, run sequentially:

History at 50 entries; open New patch; two refused submissions:
  Head record before/after swap: depth=1, step=3
  Chromium, Escape: step 3 → 2 → 1 → /~ui/index?page=2, no dialog
  Firefox,  Escape: step 3 → 2 → 1 → /~ui/index?page=2, no dialog
  Chromium and Firefox, Close: same result, three clicks each

Chromium, without filling history, head records → base script:
  One refusal:  length=4, depth=2, step=2 → one Escape, opener, no dialog
  Two refusals: length=5, depth=3, step=3 → one Escape, opener, no dialog

Dialogs opened with the base script throughout (after-revert controls):
  Two refusals, at limit: Chromium and Firefox → one Escape, opener, no dialog
  Two refusals, below limit: Chromium → one Escape, opener, no dialog

The first Escape still leaves the dialog visible, as the earlier FAIL reported; two more reach the opener. This run supersedes that verdict after checking the revised claim about repeated closing.

Evidence and CI on this head

  • gh pr checks 1427 is green: all reported non-skipped checks passed, including Pidgeon, which was pending in the earlier verdict. Attio/IMAP live checks were skipped.
  • browser: passed, 189 tests.
  • browser-firefox: passed, 186 tests, 3 skipped.
  • The earlier run's focused history-limit, previous-record upgrade, and fleet-retry tests passed: 6 tests, one worker, Chromium and Firefox.
  • rollback-rehearsal passed without exercising browser history, since no migration or handler descriptor changed. The retained-state checks above cover this risk directly.

Not run

  • pnpm verify or full browser suites locally, as requested; CI supplies the complete suites.
  • Safari, mobile, and Firefox on macOS/Windows. Focused Playwright checks used headless Linux.
  • A full deployment rollback; the rollback check swapped only the exact previous enhancer into the head instance while retaining browser records.

Notes

  • A dialog already open across a revert in a tab at the history limit may require one Close/Escape per draw. The reproduced three-draw dialog closes after three presses; it is not stuck. This is now disclosed in Release impact.
  • Carried forward from the earlier run: Firefox Back closes the submitted Share dialog but leaves focus on the page body, also reproduced with the base enhancer. Explicit Close/Escape restore focus. The earlier run also confirmed browser-firefox is not required by the active main CI ruleset.
  • Checks ran sequentially. Every instance and the temporary proxy started for this run were taken down. Tracked files, PR code, branch, body, and labels were left unchanged; no merge was performed.

@allisonmahmood
allisonmahmood merged commit bc3487f into main Nov 13, 2026
27 checks passed
@allisonmahmood
allisonmahmood deleted the t3/support-firefox-ci branch November 13, 2026 16:42
allisonmahmood added a commit that referenced this pull request Nov 15, 2026
#1456)

## What changed

This adds release 44's What's new entry, written from `b653816`. It
covers everything merged since release 43's `through` (`1cbd39f`), and
sets the `patchy` release to `0.44.0` in `packages/patchy/package.json`
and `CURRENT_RELEASE`.

| Change | PRs |
| --- | --- |
| New: Connect GitHub | #1448, #1451 |
| New: Pin patches to your sidebar | #1437 |
| Improved: Patchy works in Firefox | #1427 |
| Improved: Your agent's Patchy skill keeps up | #1446 |
| Fixed: Dialogs close in Firefox | #1427 |
| Fixed: Publishing a tool no longer fails by chance | #1444 |
| Behind the scenes: agents read what each tier means before picking one
| #1438 |

#1445 is CI only and has no line. #1422 is release 43's own entry.

## Look at

- **The entry**, at the top of `releases` in
`packages/core/src/whatsNew.ts`.
- **GitHub is announced because this deploy makes it available.** The
production App is registered and its five settings are in place, so
GitHub is offered in Integrations once this ships. The code was run
against real GitHub before it merged (#1451). One check stays open on
#1440: someone who administers a repository without owning its
organization. That case fails closed until it is shown.
- **One test changed with it.** With GitHub off, a test searched the
whole catalogue page for the word "GitHub". The entry puts that word in
the What's new bell on every page, so the test now checks for the
catalogue's own GitHub card and link instead.
- **`pidgeon-suite` and `pidgeon-live` are red for a reason outside this
release:** Pidgeon is retiring the API the integration calls (#1457).
Neither is a required check, and this release neither fixes nor worsens
it.
- **Rollback safety, from the live commit `5decfef` (release 43) to this
PR's merge.** #1448 and #1451 are labelled `one-way`; the rest are not,
and each says release 43 reads what it leaves.
- #1448 adds migration 43's three tables and five host settings. Release
43 ignores both, and the rollback rehearsal passed on #1448's head.
  - #1437 adds a personal pins table that release 43 never reads.
- A patch version that declares a GitHub connection is what release 43
can't read. None can exist before this release.

If this release misbehaves, roll back to `5decfef` (release 43) while no
patch version declares a GitHub connection. Once one does, rolling back
past #1448 would break that patch, because release 43 can't read a
`github` declaration; fix forward instead.

## How it was verified

`pnpm format:check`, the What's new tests, the API suites and GitHub's
page tests pass locally.

## Release impact

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

- **What does a revert leave behind?** Nothing: the entry and the
version number are in the tree.
- **Does the release before it still work with that?** Yes.

Written by Claude Fable 5.2 in Claude Code, through T3 Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5.2 <[email protected]>
allisonmahmood added a commit that referenced this pull request Nov 19, 2026
…1426)

## What changed

Effect moves from 4.0.5 to 4.1.4 (`effect`, `@effect/platform-node`,
`@effect/sql-pg`, `@effect/sql-pglite`, `@effect/vitest`). People using
Patchy see no difference. Nothing stored changes: tokens, digests, HMACs
and sealed values are still made and checked by the same `node:crypto`
code. This supersedes #1380, whose CI was red because 4.1 stores
`HttpApiSchema.status` where our `refuse()` didn't look, so every
refusal answered 400.

Beside the Effect group, the lockfile moves only ws, to 8.23.0, which
`@effect/platform-node-shared` 4.1.4 pins exactly. undici 8.12.4 and
PGlite 0.5.16, which the 4.1 packages need, are already on main from
#1424, so the workspace holds one PGlite again.

## Look at

**Crypto.** 4.1 replaces `effect/Crypto` with per-family services and
drops crypto from the runtime `*Services` bundles. The `Cryptography`
seam stays as it was. `NodeCryptography.layer` now also provides
Effect's `SecureRandom` and `Digest`, using Effect's own Web Crypto
layers: no new dependency, nothing at import time, and the same
behaviour on Node and Bun. Every entrypoint and test layer already
provides it, so "provide `NodeCryptography.layer`" stays the one rule.
The seven direct `effect/Crypto` users take `SecureRandom` or `Digest`
instead. `@patchy/limits` can't depend on core, so `Digest` is what it
uses. AGENTS.md, the service-conventions spec and the oxlint messages
say this now.

**Refusal statuses.** 4.1's `HttpApiSchema.status` writes a key
annotation, which `SchemaAST.resolveAt` doesn't read. HttpApi's own
reader, `getStatusErrorSchema`, is internal and missing from the
published types, so `respond.ts` follows its rules exactly:
1. The last check that sets a status wins, looking into check groups
too.
2. Otherwise the schema's own annotation counts, and an explicit
`undefined` clears the status.
3. Otherwise the key annotation counts.
4. With none of those, the status is 500.

`respond.test.ts` compares each case with HttpApi's own reader. One
consequence: a schema with no status now answers 500, where it used to
answer 400. No current refusal schema lacks one.

**Request targets.** 4.1's server adapter turns an absolute-form target
into its path, and sets `Host` to the target URL's host, which drops
userinfo and the scheme's default port. The door's `Host` gate then saw
a cleaned-up host, so `POST http://<public host>/mcp` and `POST
https://user@<public host>/mcp` reached the bearer check instead of
answering 421. `RequestTrust.requestAuthority` now reads the target and
the `Host` fields from the Node request as the client sent them
(`request.source`). Sources without raw fields, such as a web `Request`
or the in-memory test client, keep the old reading. I also checked
everything else that reads the target or `Host`:
- The API guard, serving and the portal resolve `request.url` against
the configured origin, and compare `Origin` rather than `Host`. They
don't trust the target's authority, and the rewrite makes an absolute
target reduce to its path.
- The CLI dev server's DNS-rebinding guard compares `Host`. Browsers
send origin-form, which the adapter leaves alone, so the guard still
does its job.
- Two private listeners now accept an absolute-form target where they
used to refuse it before authentication, and the behaviour stays as it
is. The callback gateway (`CallbackGatewayApi.ts`) used to answer `POST
https://anything/callback` with 200 `invalid_request`; now it reaches
the bearer and identity checks. The supervisor's callback proxy
(`supervisor.ts`) looks up its callback path from the rewritten target.
Neither grants anything the checks behind it don't already require.

**Oversized uploads.** Under 4.1, an undeclared (chunked) body over its
cap is answered instead of reset. But the adapter then keeps reading up
to 256 KiB more with no deadline, so a sender that stalled kept its
connection until the runtime's own timeout. A declared length over the
cap had the same problem below 256 KiB, on origin/main as well.

A size refusal now closes the connection, through one hook:
`closeAfterAnswer` in `@patchy/api`. It adds `Connection: close` to the
current request's answer, and the adapter then ends the socket and
destroys it within its 500 ms grace. Measured here, the server closed it
about 7 ms after answering, on Node and on Bun. Every capped reader runs
the hook, for a cap crossed mid-stream and for a declared length over
the cap. Each keeps its existing status and body:
- `readBody`, for every JSON API route that reads one: 400 "Malformed
request body." mid-stream, 413 declared.
- The 16 form readers in auth and portal, through `capBody(maxBytes)`:
beta links, device login, the OAuth token request and consent answer,
machines, shortcuts, logout, terms, What's new, patch pages, sharing,
home (two), feedback, user lifecycle, and pinning. Their declared-length
prechecks run the hook too.
- The runtime's call, file and stage readers (413), and the
subscriptions stream (413).
- The callback gateway: the file bound and the byte budget answer, as
before, with a 200 refusal body.
- The supervisor's callback proxy (413).

One reader is left out: the MCP door reads a chunked body to its end by
design, so its refusal is unchanged. The device start, device poll and
shortcuts descriptions, and `docs/API.md`, say what the code does.
Nothing is stored on any refusal.

**Row ids.** 4.1's `SecureRandom.uuidV7` counts within a millisecond: 42
counter bits and 32 random. #214's contract test pins 74 random bits per
id, and Effect's own docs say a monotonic id reveals the one minted
before it. So `TableOperations` builds the UUIDv7 itself from the Effect
clock and 16 bytes from `SecureRandom`, clamping the timestamp to the
48-bit field as 4.0 did.

**Other behaviour 4.1 changed that tests asserted:**
- A failed migration step is a typed `MigrationError` (`kind: "Failed"`)
instead of a defect. Startup still fails and the process exits.
- The CLI parser now splits `-json=true` into `-j -s -o -n`, so
`jsonRequested` stops treating it as `--json`. A global flag's bad value
(`--log-level loud`) now goes through Effect's usage path like any other
parse error. That made the entrypoint's `InvalidValue` catch dead, so it
is gone. Under `--json` stdout stays empty; without it, usage comes
before the one line, as ADR-0004 allows.

**Mechanical.** `SqlClient.make` takes a `driver`, and `sql.insert`
takes a non-empty array. `docs/API.md` drops the eight duplicate
`RuntimeFailure_N` components that differed only by status.

**On top of the GitHub integration.** Everything on main since #1427 was
written against 4.0.5: the GitHub App connection (#1448) and its reads
(#1451), workerd binding its own port (#1444), CLI refresh (#1446) and
sidebar pins (#1437). Checked against each 4.1 change:
- **Crypto.** None of it uses `effect/Crypto`. `Cryptography` gains
`rsaSha256Sign` for the App's JWT, which runs on `node:crypto` like the
rest, and `NodeCryptography.layer` still provides it beside
`SecureRandom` and `Digest`.
- **Statuses.** It adds no routes and no status-bearing refusal schemas.
GitHub's refusals reach clients through the existing connection pages,
`ConnectionsApi` (whose declared errors HttpApi encodes itself) and the
runtime, which takes its status from the error. The GitHub, connections
and dev-read suites assert those statuses over `HttpApiTest` and real
sockets, and pass on 4.1.
- **Body reads.** The one new body read is the pin form, which provided
`MaxBodySize` directly. It now goes through `capBody`. GitHub's connect
flow adds none: its filter is a GET, and its choices post through the
connection page's existing form read, which #1434 caps.
- **Targets and `Host`.** The GitHub sign-in's redirect URI is built
from the configured origin, and nothing new reads `Host`.
- **The rest.** Nothing new calls `SqlClient.make`, the Migrator,
`uuidV7` or `ws`, and no new flag uses a single-dash long spelling.

**On top of Pidgeon's new API.** #1458 rewrote the Pidgeon integration
against 4.0.5, and nothing in it needed a 4.1 change:
- Its crypto goes through `Cryptography`.
- It adds no routes, status-bearing refusal schemas, body reads or CLI
flags. Its connect page posts through the connection page's existing
form read, which #1434 caps.
- It doesn't call `SqlClient.make`, the Migrator or `uuidV7`.
- Its migration `0044_pidgeon_drafts` joins the record behind this
branch's, and the record and upgrade tests pass.

## How it was verified

**Red, then green, on Effect 4.1.4:**

| Case | At 8980889 | Now |
| --- | --- | --- |
| `RequestTrust.test.ts`, the gate behind the real `NodeHttpServer`
adapter: `POST http://cloud.patchyhq.com/mcp` | passed the gate | 421 |
| `McpDoor.test.ts`, the whole server: `POST http://user@<host>/mcp` |
400 (past the gate) | 421 |
| Same tests: origin form, the door's own absolute target (200), two
`Host` fields | — | unchanged |
| `AuthApi.socket.test.ts` (JSON) and `AuthPages.socket.test.ts` (form):
an unterminated 8 KiB chunked upload | 400, connection still open at 3
s, on Node and Bun | 400, then closed, on Node and Bun |
| `AuthApi.socket.test.ts`: `Content-Length: 8192` sent with no body
(open on origin/main too) | 413, still open at 3 s, on Node and Bun |
413, then closed |
| `RuntimeApi.test.ts`: a call streamed just past its cap, a stage
upload streamed past its cap, and a stage upload declared past it | 413,
still open at 3 s, on Node and Bun | 413, then closed |
| `RuntimeStreamApi.test.ts`: a subscriptions body streamed past its cap
| 413, still open at 3 s, on Node and Bun | 413, then closed |
| `CallbackGatewayApi.test.ts`: a callback file body streamed past its
bound | 200 refusal, still open at 3 s, on Node and Bun | 200 refusal,
then closed |
| `respond.test.ts`: a status set inside a check group | 409 | 403, as
HttpApi |
| UUIDv7 contract: a clock at −1 ms | timestamp field all ones | 0 |

**Suites:**
- On the head rebased onto main at 2a17d16, which now carries the
Effect checker at 0.68 (#1425), `pnpm check` passes in full (3741
offline tests).
- `pnpm verify` on the previous head, on main at 47deb91:
- Pass in the full run: format, lint, typecheck, synth, the offline
tests on Node (3732) and Bun (3405), postgres-concurrency and install.
- Pass rerun alone: cli-smoke, tier2-smoke and the Chromium browser
suite (189). In the full run they couldn't find the browser builds that
Playwright 1.65 (from #1424) asks for; once installed, all three pass.
- Could not start: the Firefox suite, because Firefox there lacks the
system libraries it needs. CI's required `browser-firefox` job covers
it, and it passed in an earlier round (186 tests).
- The suites the Pidgeon rewrite touches pass on Node and on Bun (646
tests across 72 files each): all of `packages/integrations` and
`packages/api`, the CLI's `pidgeon`, dev-resource and dev-preparation
tests, and the server's migration record test.
- The GitHub integration's suites, run alone on 4.1, pass on Node (361
tests across 27 files, with portal and the CLI's repo, global-CLI and
dev-resource files) and on Bun (286 tests across 24 files; the CLI files
run on Node only). They cover:
- `github/Connections.test.ts`: connecting through the App against a
stub GitHub on real sockets.
  - `github/Operations.test.ts`: the reads.
  - `github/Pages.test.ts`: the connect pages.
- `github/Source.test.ts` and `Generate.test.ts`: the source and
generated tables.
- `ConnectionsApi.test.ts`, `ConnectionPages.test.ts` and
`DevReads.test.ts`, with their status assertions.
  - `NodeCryptography.test.ts`, including RS256 signing.
- Each rebase took main's lockfile and regenerated it with `pnpm
install`; it differs from main's only in the Effect group and ws.
- `install.test.ts` builds its PATH from the running Node, so these runs
put the repo's pinned Node 24 first.
- The supervisor's callback proxy gets the same hook, but has no socket
test: reaching it needs a live workerd resident to register the callback
path and capability.
- Not checked: the server image (`server-image` needs Docker; CI runs
it), live Clerk, and a deploy.

## Release impact

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

This is a dependency bump, and the stored formats and the API's statuses
and bodies are unchanged. Three things a client could notice:
- An oversized chunked upload now gets its refusal and a closed
connection, where it used to get a reset.
- A declared length over a cap gets its 413 and a closed connection,
where the connection used to stay open.
- The undocumented single-dash `-json=<b>` spelling is no longer read as
`--json`. `--json` and `--json=<b>` are unchanged.

- **What does a revert leave behind?** Nothing: no migration, no new
stored shape. Ids, tokens, digests and sealed values are made the same
way on both sides.
- **Does the release before it still work with that?** Yes.

Built by Claude Opus 5.5 in T3 Code via Claude Code.

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:core Touches the core area area:docs Touches the docs area area:server Touches the server area size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant