Repository navigation
feat(portal): the website can read what's new without a sign-in - #893
Conversation
GET /whats-new.json serves the shipped releases' New and Improved
changes as { releases: [{ id, date, changes: [{ kind, title, detail }] }] },
without PRs, through shas or behind-the-scenes lines, and drops a release
left with nothing to show. Public, cached for five minutes, no CORS.
Closes #890
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review by GPT-6.1-Sol (xhigh), round 1 on 0533bc6: nothing blocking. Sol checked the five risks it was given. Each passed:
One non-blocking caveat, dismissed: in production the load balancer's stickiness ( |
Acceptance: PASSChecked Done means
Golden journeys and adjacent risks
Local evidencepnpm exec vitest run packages/portal/src/WhatsNewPages.test.ts packages/core/src/whatsNew.test.ts apps/server/src/Server.test.ts packages/serving/src/Pages.test.ts --maxWorkers=2All 14 PR checks are successful on the pinned head, including the three Node test jobs, browser, live Clerk, both CLI jobs, tier 2, Postgres concurrency and rollback-rehearsal. CI run. Rollback answers: match the diff. This adds a read-only route and documentation, with no migration, stored-data change or infrastructure change. Reverting removes the feed without leaving state the previous release cannot read; no Not run
The throwaway instance was torn down with |
## 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
patchyhq.com falls behind with almost every release, because the plain-English release notes behind the bell only reach signed-in people. Now anyone can read them:
GET /whats-new.jsonserves the New and Improved changes of the releases the running server ships, so the website can render its own What's new page and a rollback serves the older list.Closes #890
Look at
What is public.
publicReleasesinpackages/portal/src/WhatsNewPages.tskeeps onlyNewandImprovedchanges (an allowlist, so a kind added later stays private), copies justkind,titleanddetail, and dropsthrough, PR numbers and behind-the-scenes lines. A release left with no public change is dropped, not kept with an empty list: the website shows what changed, and an empty day reads as nothing shipped. Today that leaves out releases 16, 9, 7, 5, 3, 2 and 1.The route. It sits beside the already-public
/whats-new/bell.jsand is a constant response, built once fromreleaseswith no session read, so nothing in it can be anyone's.Cache-Control: public, max-age=300, no CORS. It can't collide with a company or a patch: handles can't contain a dot, and patch addresses need two segments.In production the load balancer adds its own stickiness cookie to every response, this one included. It routes a browser to a host and identifies no one; the website keeps the parsed JSON, not the whole response.
Signed out, against
pnpm dev:HEADanswers the same headers./whats-newitself still answers 401 signed out.How it was verified
packages/portal/src/WhatsNewPages.test.ts, red before the change (publicReleases is not a function, then the route 404), green after: the projection on a fixture with Fixed, behind-the-scenes and an all-Fixed release; and the route signed out, with its status, JSON type, cache header, noset-cookie, noaccess-control-allow-origin, and the shipped list as its body.pnpm verifyon the head: format, lint, typecheck, synth, postgres-concurrency, cli-smoke, tier2-smoke and browser passed. Two suites outside this change failed under machine load:Fleet.test.tshit a workerd watchdog deadline with no guest time, andTables.test.ts(PGlite) hit a hook timeout. Both passed when rerun alone (43/43), and CI's test jobs pass on this commit.The glossary,
docs/product.mdand the release-writing rules inwhatsNew.tsnow say New and Improved changes are public, so the deploying agent writes them for anyone.Release impact
A new, read-only route; nothing existing changes.
Built by Claude Opus 5.5 (xhigh) in Claude Code on T3 Code; reviewed and accepted by GPT-6.1-Sol (xhigh).