Skip to content

feat(portal): pin patches in the sidebar - #1437

Merged
allisonmahmood merged 5 commits into
mainfrom
feat/1436-personal-pins
Nov 13, 2026
Merged

allisonmahmood merged 5 commits into
mainfrom
feat/1436-personal-pins

Conversation

@vsrikar08

@vsrikar08 vsrikar08 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

Finding a patch you use every day gets harder as the company publishes more. Now anyone can pin a page or a tool from its menu, on Home, All patches or the patch's own page, and it stays in their sidebar on every page, under the places. On a phone it is in Menu.

Pins are personal and keep the order they were pinned in. Pinning and unpinning say what they did. A pin whose patch is off, or that its person can no longer open, is hidden until it is back, and pinning grants no access.

One thing differs from the issue's wording. It asked for the list to scroll after roughly five rows; that hid pins while the sidebar stood empty below them. Up to five always show, and past five the list scrolls only once the sidebar runs out of room, never showing fewer than five and a half. The phone's Menu shows them all and scrolls as a whole. There is still no limit.

Closes #1436

Look at

Seven pins, pages and tools together, as rows like the places above them. Home's own content is unchanged.

Home with seven pinned patches in the sidebar, under the places

Pinning from All patches, then unpinning from the sidebar, a short window and a phone, on the dense scenario at 978b45c:

pins-flow.mp4
A pin's menu, a short window and the phone Menu

A row's menu shows when the row is hovered or holds focus; on a touch screen it always shows.

A pinned row's menu, holding Unpin patch

In a short window the list scrolls and the places stay put. The receipt names what was unpinned.

A 520px-high window: the pinned list scrolled under its label

The phone Menu with every pin listed

How it was verified

  • The flow above ran on a throwaway instance at the head commit: pin seven patches from their menus, see them on Home in pin order, unpin one from the sidebar, each with its receipt.
  • In Chromium on a local dense instance with all 13 live patches pinned: at 1000px high every pin shows and a wheel over them scrolls the page; at 700px the list scrolls (235 of 440px) and the sidebar doesn't; at 520px the list holds five and a half rows and the sidebar scrolls; at 390×650 a wheel over the pins scrolls the Menu. Tab reaches a row's menu button, which shows with its focus ring inside the row.
  • As a member: pin and unpin from All patches and the patch's page, pins on Home, All patches, Your agents, People, Integrations and What's new, no browser errors. A patch shared only with another team has no row to pin from.
  • pnpm check passed in full before the review round (330 test files, 3,615 tests); after it, typecheck, lint and the core, auth and pin suites (620 tests). CI on the head covers the rest, both browsers included.
  • Code review by GPT-6.1 Sol: four findings, three fixed and one dismissed with its reason, in the comment below.

Not checked by hand: the pins of a deactivated person, and reclamation removing a patch's pins, which the table's cascades own.

Release impact

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

An additive personal-preference table and two browser form routes. The CLI and API contracts are unchanged.

  • What does a revert leave behind? The patch_pins table and people's saved pins.
  • Does the release before it still work with that? Yes. It never reads the table.

Built with GPT-6 in the Codex harness; taken over, reworked and finished with Claude Fable 5.2 in Claude Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added area:server Touches the server area area:core Touches the core area area:docs Touches the docs area area:ui Portal and first-party browser pages, shared rendering and styles labels Nov 13, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T19:20:11.086402Z 6f5bfcf New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the size:m 100-500 changed lines label Nov 13, 2026
@vsrikar08

Copy link
Copy Markdown
Collaborator Author

Acceptance: PASS with notes

Checked 6f5bfcf63bc02281d18a60c70888d19747b7dfe5 (base bc3487fccb4ca7650308af3e95c93c5ee73f1c85) in an isolated checkout on fresh portal/store socket fixtures, by GPT-6 in Codex. This agent did not author the change.

Done means

  • Pages and tools can be pinned/unpinned: passed through the real HTTP routes, including a tier 2 tool.
  • Personal persistence: passed across Home, All patches and the patch card; repeated pin requests do not duplicate or toggle pins, and another person has no shortcuts.
  • More than five pins: passed with seven persisted entries. The unchanged sidebar/phone rendering was independently checked at the preceding head: Chromium rendered seven pins at 1280px and 390px, verified overflow-y: auto with content exceeding visible height, and scrolled the list successfully.
  • Empty and off patches: passed. Removing all pins hides the section; retire/restore hides/reveals a pin.
  • Access filtering: passed in the focused store/pin suites and inspected in the new selector. Its query retains company_id, narrows to the person's pinned IDs, and runs the existing audience, viewer-activity, liveness and custom-openability checks. findForViewer already enforces company identity, so removing the duplicate comparison does not widen access.
  • At the preceding head, an independent team-access change hid its pin and refused re-pinning with 404; current-title changes also appeared on a fresh page load. Those admission and rendering paths are unchanged.

Golden journeys / refusals

  • Home, catalog and patch-card navigation: passed in the focused HTTP suite.
  • Cross-company pin, cross-origin post and switched-account form: refused.
  • Signed-out Home and confinement of foreign return URLs were independently verified at the preceding head; their handlers are unchanged.

Evidence on this head

vitest run packages/portal/src/PinPages.test.ts packages/patches/src/Patches.test.ts --maxWorkers=1
Test Files  2 passed (2)
Tests       44 passed (44)
Duration    19.80s

Rollback answers: match the diff. The migration only adds patch_pins; the previous release ignores this table, and existing patch reclamation cascades its pin rows.

Not run / notes

  • Full cross-platform verification, live Clerk and live tier 2 collaboration were not rerun for this focused acceptance. This verdict is not a claim that required CI checks have finished.

allisonmahmood and others added 2 commits November 13, 2026 23:28
The pinned list sat in a bordered box that cut it at five rows with no
sign of more, its rows a different size from the places above them, and
pinning from a phone changed nothing the person could see.

Pins are now rows like the places: the mark sits on the places' icons,
the name starts where their labels do, and a row's menu waits for the
pointer or focus. Up to five always show; past five the list scrolls
only once the sidebar runs out of room, and the phone Menu shows them
all. Pinning and unpinning leave a receipt naming the patch.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…p scrolling

Doors, the shortcut switch and the guide's polled steps answer without a
sidebar, so they no longer read the viewer's pins. The pinned list is a
scroller only past five pins on a wide window, so a wheel or swipe over
it moves the page or the phone's Menu as anywhere else, and a row's menu
button draws its focus ring inside the row, where a scrolling list can't
clip it.

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

Copy link
Copy Markdown
Owner

Code review, round 1

Reviewed at 282ec9b4 by GPT-6.1 Sol (xhigh) in Codex, reading the whole diff against main. Four findings, all should-fix; three fixed in 978b45cd, one dismissed.

Finding Outcome
The pinned list trapped scrolling in the phone Menu: a wheel or swipe over the pins never reached the Menu (overscroll-behavior: contain on a list that had nothing to scroll). Fixed. The list is a scroller only past five pins on a wide window, and never contains overscroll. Measured in Chromium at 390×650 with 13 pins: a wheel over the pins now scrolls the Menu (0 → 300). On a wide window a wheel over the pins scrolls the page as anywhere else.
A row's menu button drew its focus ring outside the row, where the scrolling list clips it. Fixed. Both the link and the button draw the ring inside the row.
Routes that draw no sidebar read the viewer's pins anyway: device and consent doors, the shortcut switch, and /guide/steps, which the Final step polls every 3 s. Fixed. RequireSession.withoutPins answers those without the pins read. Pages, and forms whose refusal draws a page, keep withViewer.
The receipt's access is checked at the POST only: a patch retired or closed to the viewer between the POST and the redirected page would still be named once. Dismissed. The receipt is written at the moment the person pinned or unpinned a patch they could open, from the title they had just pressed, and is shown once within 60 s to that person only. It tells them nothing they didn't have on screen. Every other receipt works the same way ("Shared … with …", "Retired …").

Claims that held: access in the sidebar and on the pin POST (company, audience and team, lifecycle, disabled state, Openability), same-origin and account checks, idempotence, the return redirect staying on this origin, the additive migration and its cascades, escaping and menu ids, the Effect service conventions and the Auth → Portal seam.

One test added from its coverage notes: one person's unpin leaves another's pin of the same patch. The rest of its list (team revocation, Openability refusal, disabled and deleted patches) is the existing selection's own suite, which the pins query reuses.

@allisonmahmood

allisonmahmood commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Acceptance: PASS with notes

Checked 978b45cd8d64c369442e94276e2fb21cd2c117f5 (base bc3487fccb4ca7650308af3e95c93c5ee73f1c85) on fresh, throwaway dense and team instances, by GPT-6.1 Sol in the Codex harness through T3 Code. I did not write this change. The PR head still agrees.

Done means

  • Pin/unpin pages and tools: passed. Pinned and unpinned Kudos and the kickoff page through each of Home's row menu, All patches' row menu and the patch's own menu. Each action returned to its page, changed the sidebar and showed the correct named receipt. Sidebar unpin works too, including without JavaScript.
  • Personal persistence: passed. Pinned all 13 live patches through their menus, mixing pages and tools. A fresh browser session retained pin order. Jordan initially had no section; his own pin and unpin did not change Allison's 13 pins. Posting a form naming another user returned 409.
  • Shared sidebar and phone Menu, Home preserved: passed. Home retained Your usual, New, Yours and From colleagues. Checked Home, All patches, a patch's Overview/Log/Versions/Settings, Your agents, People, Integrations, Agent access and What's new at 1280px and 390px, with 13 pins and with none, including 520px-high windows. Settings' subnav remained present and current, the foot stayed at the bottom when space allowed and was reachable by scrolling when constrained, and no page gained horizontal overflow. Touch rows expose 44×44 menu buttons. Tab reaches a pinned link and then its visible menu button, with its focus ring inside the row; Enter opens and Escape closes the menu.
  • More than five and scrolling: passed against the PR's documented behavior. All 13 could be saved. Five pins at 520px height occupied 168px without inner scrolling. With 13, a tall desktop showed all rows, a constrained desktop scrolled the list, a short window retained five and a half rows before the sidebar also scrolled, and a wheel over phone pins scrolled Menu as a whole. See Notes for the deliberate difference from the issue.
  • Empty/off/inaccessible: passed. Last unpin removed the whole section. Retirement and deletion hid the kickoff pin; pin POSTs returned 404; restoration revealed the saved pin. Restricting it to a Design team hid Jordan's pin and title and removed his row menu, while Priya in Design could pin it. Restoring company access revealed Jordan's original pin. A foreign-company pin POST returned 404. Deactivating Ben with a saved pin produced a 403 door with no pin or patch title; reactivating him restored it.

Golden journeys

  • Find and open a tool: passed. As Jordan on dense (the populated Brightline scenario), Home search found Kudos and opened its live frame. Allison also opened Kudos from its sidebar pin.
  • Sign in: passed on team, Ben. A signed-out company page returned 401, private, no-store, a sign-in URL and no redirect or content frame. Persona sign-in returned Ben to the requested page and its frame. Account Sign out restored the 401 door. Real Clerk coverage on this head is green in CI; manual Clerk sign-in was not run below.

Other changed routes

  • Consent Deny as Allison at 1280px returned access_denied with the original state. Allow as Jordan at 390px returned a code that exchanged successfully. With agent access off, the refusal door offered no Allow; the switch was restored on. These doors carried no sidebar.
  • Final step's setup line and /guide/steps advanced through pickup, device confirmation and connected. The standalone device GET/POST door had no sidebar; the environment's CLI completed as Priya with the chosen computer name. Connected /guide redirected Home. Logout removed that computer from Your agents; the installed CLI then fell back to this instance's dev seed.
  • The account's single-key shortcuts switch persisted both directions, returned with its receipt and kept the pins intact.
  • Chromium reported no unexpected console errors or page exceptions during the page matrices and tool journeys. Expected 401/403/404/409 refusal responses were checked separately.

Rollback answers: match the diff. Migration 0042 only adds patch_pins, with person/patch foreign keys and cascades. Reverting leaves that table and its saved preferences; the earlier release ignores them. No new CLI/API contract, infrastructure change or one-way data rewrite requires a one-way label. The head's rollback-rehearsal check passed its real rehearsal: live → CI merge containing this head → live → CI merge, on the same data, in 175s. I read the successful step output, not just the check badge.

CI: all applicable checks on this head passed, including Node 22/24/26 and Bun tests, Chromium and Firefox, live Clerk, CLI/install suites, lint, concurrency, server image and rollback rehearsal. Attio and IMAP live checks were skipped by their change gates. CI run.

Not run

  • Manual real Clerk sign-in: used isolated dev personas; real development keys and a person's interactive sign-in are needed for that manual flow. The head's live Clerk CI check passed.
  • Final reclamation of a patch after its recovery window: no time-forward purge run was performed. The new table's ON DELETE CASCADE was reviewed, but that is not a behavioral pass for reclamation.
  • A separate local pnpm verify: used the completed head CI suites for that coverage, plus the direct instance checks above.

Notes

  • The issue says “only the pinned list scrolls after roughly five visible rows.” As explicitly documented in the PR, up to five always show; beyond five, the list uses available sidebar height and scrolls only when space runs out, retaining at least five and a half rows. At very short heights the sidebar must scroll too. On a phone all pins are in Menu, which scrolls as a whole. Acceptance uses that agreed variation; the issue's other Done means lines stand unchanged.
  • The preview tool repeatedly timed out clicking visible controls. The completed interaction checks used local Playwright Chromium with its own browser profiles. This was a tooling problem, not a product failure.
Measured scrolling and inspected scenario screenshots
13 pins, desktop 1280×1000: list 440/440px; sidebar 1000/1000px
13 pins, desktop 1280×700:  list 235/440px; sidebar 700/700px
13 pins, desktop 1280×520:  list 187/440px; sidebar 520/640px
13 pins, phone 390×650:    Menu 597/963px; wheel over pins scrolled Menu to 366px
5 pins, desktop 1280×520:  list 168/168px (no inner scroll)

Desktop, including keyboard focus on a pinned row's menu:

Desktop with personal pins and keyboard focus

Short window, with the sidebar scrolled to its foot:

Short window retains five and a half pinned rows

Phone Menu scrolled through the pins to its foot:

Phone Menu with personal pins and its foot

@allisonmahmood
allisonmahmood merged commit 679b082 into main Nov 13, 2026
27 checks passed
@allisonmahmood
allisonmahmood deleted the feat/1436-personal-pins branch November 13, 2026 23:14
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:core Touches the core area area:docs Touches the docs area area:server Touches the server area area:ui Portal and first-party browser pages, shared rendering and styles size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Personal pinned patches on Home

2 participants