Repository navigation
feat(auth): Your agents shows what's connected first - #932
Conversation
The signed-in shell is now a sidebar of places grouped by whose thing they are: Home, All patches, Your agents, then Company (People, Integrations, Agent access). What's new and an account menu with Sign out sit at its foot. On a phone the same markup opens from a Menu button as a popover. Rows, tiles, tabs, side panels and step cards lose their hard shadows; a lit tab or place is a pale yellow fill. URLs are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A POST that changes something can leave a one-line receipt for the person: a short-lived HttpOnly cookie bound to them (__Host- over HTTPS) that the next signed-in page shows at its top and clears. Agent-access links point at the sidebar's place, and Copy buttons can name what they copy. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A receipt now survives redirects and fragments and is cleared by the page that renders it; one left for someone else is dropped at once. The phone header stays compact on short pages, the Menu sheet leaves a gutter to tap outside at 320px, and a Menu left open while the window widens sits where the sidebar's menu would. Co-Authored-By: Claude Opus 5.5 <[email protected]>
/machines is now Your agents. It lists what acts as the person before any setup: Build patches (machine tokens, each with Revoke) and Use patches (agent connections, each with Disconnect). Each section's way to add one sits in a disclosure under its rows, open while the section is empty; Use patches' also opens for any ?agent= link, so links from released CLIs and skills still land on the steps. The steps are plain numbered instructions. Disconnect everything goes through GET /machines/revoke-all, which counts what ends and posts the viewer's id; the POST refuses a missing or other account's id and ends nothing. Revoke, Disconnect and Disconnect everything leave a receipt naming what ended, read before the change. "Your machines" becomes "Your agents" on the device, consent and CLI copy, the skills and the glossary. The rollback rehearsal finds the revoke-all form on either release. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he way Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The fragment names the disclosure's body, so the browser opens it without script even when the person already has a connection. Disconnect everything uses the quiet danger button. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review: GPT 6.1 Sol (xhigh). One should-fix finding, fixed in 7b2a83f.
Also in that commit, Disconnect everything uses the new quiet danger button ( |
Acceptance: PASSChecked Done means No linked issue; checked the PR's What changed claims.
Golden journeys
Rollback answers: Match the diff. No migrations, infrastructure changes or persistent new row shapes. Revocation is the existing behavior; receipts expire after 60 seconds. The previous release accepts its own revoke-all form without Not run
Notes
|
…Agent access (#934) ## What changed The docs still describe the old dashboard: a top bar with Company, Connections and Your machines, a bell, and agent access at the foot of the company page. This PR brings `docs/product.md`, both READMEs, `GLOSSARY-MAP.md`, the ADR mentions, the acceptance skill and the portal glossary's What's new entry up to the redesign in #930–#933: - **The sidebar shell:** places grouped by scope, the account menu, What's new at the foot, and receipts. - **Your agents:** records first, Add a computer, Connect an app, and a confirmation page for Disconnect everything. - **People, Integrations and Agent access** as their own pages. - **Titles in lists**, a single way to open a patch, and the confirmation step before a patch goes public. Routes are unchanged. `patchy list` still says "Connections", the CLI's word for a configured source. Stacked on #930. **Merge it after #931, #932 and #933**, since it describes what they build. ## Look at `docs/product.md`: - **§ The portal is built:** the sidebar paragraph. - **§ Identity and access:** Your agents. - **§ Patchy MCP › Pages:** Connecting an agent, Agent access and Your agents. ## How it was verified - Prettier on every changed file. - Grepped the stack's combined tree: no "Your machines" or `company#agent-access` is left outside What's new history. - Docs only: no code or tests change. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Documentation only. - **What does a revert leave behind?** Nothing. - **Does the release before it still work with that?** Yes. --- Made by Claude Opus 5.5 in Claude Code (T3 Code). --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…ry change (#941) ## What changed This PR adds release 19's What's new entry, written from `156a228`. It covers everything merged since release 18's `through` (`b23e6ad`), and it sets the `patchy` release to `0.19.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. With this release the dashboard gets its redesign: a sidebar grouped by scope, Your agents with connected things first, People, Integrations and Agent access as their own pages, titles, and a receipt after every change. | Change | PRs | | --- | --- | | Improved: A sidebar that keeps your things and the company's apart | #930 | | Improved: Your agents shows what's connected first | #932 | | Improved: People, Integrations and Agent access each have a page | #931 | | Improved: Patches go by their real names, and one click opens them | #933 | | New: Patchy says what just happened | #930, #931, #932, #933 | | Improved: Making a patch public asks first | #933 | | Behind the scenes: agents' instructions and the docs use the new names | #931, #932, #934 | One merged PR gets no line: #920 is release 18's own entry. This PR also fixes one stale line in the README ("a bell"), which #934's acceptance verdict noted. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. Its labels are the pages' own: Home, All patches, Your agents, People, Integrations, Agent access, Add a computer, Connect an app, Disconnect everything, Invite people. - **Rollback safety, from the live commit `8a278cb` to `156a228`.** - No PR in the range is labelled `one-way`, and every PR answers both Release impact questions with "Yes". - No migration, schema, API or CLI contract changes. URLs are unchanged. - `rollback-rehearsal` passed on every landed head: none change a migration or handler descriptor, so there was nothing to rehearse. - A rollback leaves at most a 60-second receipt cookie, which release 18 ignores. Release 18 also ignores the `user` field the new Disconnect everything form sends, and a CLI at `0.19.0` stays usable against it, since the CLI changes only the "Your agents" wording. ## How it was verified - **Tests.** Typecheck passes for core, api and the CLI, and so does lint. Core, api, `WhatsNewPages` and the skill lock pass (149 tests), including `whatsNew.test.ts` and `schemas.test.ts`. - **The stack.** Before landing, `pnpm verify` passed on the stack merged together: 2338 tests, plus browser, CLI and tier 2 smoke. Each PR had a Sol code review and an acceptance verdict. All five landed with the verified tree: `main`'s tree at `156a228` is identical to the combined tree `pnpm verify` ran on. - **Deploy state.** The live commit was pinned from `/healthz/deep`: `8a278cb`, release 18. The Deploy run updated last succeeded, and none is unfinished. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required This PR changes only the changelog text, one README line 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 19 would just see no new release. - **Does the release before it still work with that?** Yes. If this release misbehaves, roll back to `8a278cb4eb93b2867594a7b19e28811e2cc1c231` (release 18). Made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
## What changed Patchy MCP has been live in production since release 17, but the product doc, the glossary map and the MCP glossary still called it specified or being built. They now describe what runs, and where the build settled a detail differently from the spec, the spec now says what the code does. Production acceptance (#861) hasn't run: the section says so, and claims about particular clients are framed as what the build was designed for. Part of #862. This is everything in #862's "What to do" except "What remains takes acceptance's findings", which waits for #861. ## Look at **Status and pointers.** Each of these now reads as built: - `docs/product.md`: the "Built and live" intro line names Patchy MCP; the Patchy MCP section opens "Built, and live since release 17", links #833 and says #861 hasn't run. - The same file's tier 2 sentence, `agent/` pointer, Companies (admins, deactivation), Who's who and Bounds' admission rule. - `GLOSSARY-MAP.md`: Auth and Patchy MCP. - `packages/mcp/GLOSSARY.md`. - `README.md`: the layout, plus one sentence on tier 2. - `AGENTS.md`'s tier 2 line. - `docs/OPERATIONS.md`: request events. **Spec details the build settled differently.** Each claim was checked against main: | Claim in the doc | What main does | Where | | --- | --- | --- | | A forwarded host is trusted from Patchy's proxy | The door never believes a forwarded host and refuses two `Host` fields | `packages/mcp/src/RequestTrust.ts:7-10` | | `Host` gates the OAuth endpoints too | Only `/mcp` is Host-gated; a dev instance serves every route on `127.0.0.1` | `packages/mcp/src/Door.ts:372`, `packages/auth/src/OAuthEndpoints.ts:19-20` | | An unknown method is `404` | `404` on 2026-07-28, `200` on legacy, where 404 means session ended | `packages/mcp/src/Door.ts:356-363` | | An `unknown_outcome` always resolves on retry | Only until a few minutes before 24 h; then `key_expired` | `packages/mcp/src/ChangeKeys.ts:116-123`, `Calls.ts:339-347` | | An action's key never runs again | Unless Runtime refused the first try before it started | `packages/mcp/src/ChangeKeys.ts:60-64`, `Calls.ts:409-419` | | `resource` is bound through exchange and refresh | Optional; must name the door wherever sent | `packages/auth/src/Consents.ts:203-205, 345-348` | | Consent re-asks after an account switch | Also re-asks an Allow after the client's name changes | `packages/auth/src/OAuthEndpoints.ts:423-436` | | With agent access off, consent names the admins | To members; an admin is told to turn it on | `packages/auth/src/OAuthEndpoints.ts:182-185` | | "logged as Jordan via Claude" | The person's full name: "Jordan Lee via Claude" | `packages/auth/src/OAuthEndpoints.ts:151-162` | | The docs say how to reconnect by hand | Not written; Connect an app gives first-time steps only | no such doc in `docs/`, `skills/`, `packages/sdk/skills` | | Publish's warning points at `<instance>/company` | `<instance>/company/agent-access` | `packages/patches/src/PatchesApi.ts:454` | | The instance names a duplicated tool | It can't: inspection drops the bundle's message; only the CLI names it | `packages/execution/src/inspection.ts:12-16` | | A read-only action's writes are type errors | Table and file writes are; Pidgeon writes typecheck and the callback gate refuses them | `packages/patchy/src/server.ts:247-262`, `packages/runtime/src/CallbackGateway.ts:107-111` | | `dev.log` names the person | It writes their id: `usr_dev via patchy dev …` | `packages/patchy/src/devLog.ts:23-27` | | New repos include `agent` | Tier 1 and 2 repos do | `packages/patchy/src/initProject.ts:207` | | The MCP request event says whether its binding is agent-only | Only the binding event carries `agentOnly` | `packages/analytics/src/WideEvents.ts:228` | | An in-flight slot is held after the client disconnects | A client gone before dispatch gives it back | `packages/mcp/src/Admission.ts:13-17` | | The week-unused note opens "Not used since 2 Oct." | It opens "If you reconnected …" | `packages/auth/src/MachinesPage.ts:178` | | "today a person types everything into them" | Agents now find, read and change patches too | the section itself | | Pages "get phone checks when built" | They were checked at 390 px in their PRs' screenshots (#871 #876 #882 #885 #931 #932) | — | ## How it was verified - Four read-only passes went claim by claim through the Patchy MCP section against main at 2f9f7c1. I re-read the code for every finding before changing a line. The table lists each change. - **Findings left as they are:** - "the one secret Patchy keeps recoverable": the context is the connection's tokens. - "each change gets a fresh change key" in `patchy dev agent`: the code's own comment says the same. - The lists of which outside clients can connect: these are facts about those clients, and the code offers no dynamic registration. - `pnpm check`: format, lint, typecheck and synth passed. Two test files failed under load average 19, a 5 s timeout in `PgliteCompanyDatabases.test.ts` and a worker SIGKILL in `devExecution.test.ts`. Both passed when rerun alone. Neither touches docs. - **Not done here:** `packages/sdk/skills/patchy-server/SKILL.md:415` and `packages/sdk/src/sdkCapabilities.ts:107` say a patch's tools fit in 64 KiB, but the check allows 60 KiB of that answer. Those files belong to another lane, so they're left for a follow-up. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Docs only. - **What does a revert leave behind?** Nothing; the docs go back to calling Patchy MCP specified. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (xhigh) in Claude Code on T3 Code; reviewed and accepted by GPT-6.1-Sol (xhigh). --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed
Your machines opened with a long tutorial, so a returning person scrolled past setup steps to find what was connected, and a lost laptop meant hunting for the rows. Disconnect everything ended every credential in one click with no check, and nothing said what a revoke had done.
The page is now Your agents, and it lists what acts as you first:
?agent=link, so links from released CLIs and skills still land on the steps."Your machines" becomes "Your agents" on the device-login and consent pages, in the CLI's logout warning, in the skills and in the glossary. Routes, query values and fragments are unchanged.
Addresses F01, F02, F04, F05, F10 and F13 from the dashboard heuristic evaluation.
Look at
Records first. Before (main), then after, for an admin with a computer and two apps connected:
Nothing connected. Both disclosures open, with the setup line and Claude's steps:
Disconnect everything is confirmed first, and leaves a receipt.
GET /machines/revoke-allcounts what ends and mutates nothing. Its form posts the viewer's id, and the POST refuses a missing id or another account's (409, nothing revoked). The existing same-origin check and the atomicrevokeAllare unchanged.Phone (390px):
How it was verified
vitest run packages/auth(22 files, 240 tests), plus the auth socket tests,packages/patchy/src/cli.test.ts,skillLock.test.tsandpackages/sdk/src/SdkApi.test.ts. All pass.?agent=value, including unknown ones.no-store, and that it mutates nothing.turbo run typecheck typecheck:testsfor auth and the CLI,tsc -p tsconfig.test.json(which coversscripts/andtest/browser/), plus eslint and prettier on the changed files.pnpm dev shot, a Playwright pass at 390px, and a click-through of Disconnect everything showing the receipt.test/browser/patchy-login.spec.tsruns only in the live Clerk tier (pnpm test:clerk). It now also expects the "Revoked …" receipt./machines(live release) or on the confirm page (this one).pnpm verify, which the orchestrator runs once for the stack.Release impact
The routes are unchanged. The one behaviour change is that
POST /machines/revoke-allnow requires auserfield equal to the viewer. Only first-party pages post it, and a page cached from the previous release gets a refusal that says to open Your agents again./machinesposts revoke-all withoutuser, which it doesn't require.Made by Claude Opus 5.5 in Claude Code (T3 Code).