Skip to content

feat(auth): Your agents shows what's connected first - #932

Merged
allisonmahmood merged 9 commits into
mainfrom
feat/dashboard-agents
Oct 25, 2026
Merged

allisonmahmood merged 9 commits into
mainfrom
feat/dashboard-agents

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

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:

  • Build patches: the computers that publish as you, each with Revoke.
  • Use patches: the apps that act as you, each with Disconnect.
  • Adding one: each section ends with a disclosure: Add a computer holds the setup line, and Connect an app holds the existing per-app tabs and steps, now plain numbered instructions. A disclosure is open while its section is empty, and Connect an app also opens for any ?agent= link, so links from released CLIs and skills still land on the steps.
  • Agent access off: with it off, the Use section says so in one line naming the admins. Admins also get Turn it on.
  • Disconnect everything is a quiet link to a confirm page that counts what ends.
  • Receipts: Revoke, Disconnect and Disconnect everything each leave one naming what ended.

"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:

Before: Your machines on main

After: Your agents with a computer and two apps

Nothing connected. Both disclosures open, with the setup line and Claude's steps:

After: Your agents with nothing connected

Disconnect everything is confirmed first, and leaves a receipt. GET /machines/revoke-all counts 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 atomic revokeAll are unchanged.

Confirm page

Receipt after Disconnect everything

Phone (390px):

Your agents at 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.ts and packages/sdk/src/SdkApi.test.ts. All pass.
  • New tests cover:
    • The two sections in order, and when each disclosure opens.
    • Every ?agent= value, including unknown ones.
    • No step lit as current.
    • Copy buttons named by target.
    • The agent-access-off line, for members and admins.
    • Receipts for Revoke and Disconnect, with no receipt for an already revoked machine.
    • The confirm page: counts, the one-kind case, no-store, and that it mutates nothing.
    • The POST refusing a missing field, a wrong field or another account's id, with nothing revoked, while a matching id revokes.
  • turbo run typecheck typecheck:tests for auth and the CLI, tsc -p tsconfig.test.json (which covers scripts/ and test/browser/), plus eslint and prettier on the changed files.
  • Looked at it on a Brightline dev instance: desktop shots via pnpm dev shot, a Playwright pass at 390px, and a click-through of Disconnect everything showing the receipt.
  • Not run:
    • test/browser/patchy-login.spec.ts runs only in the live Clerk tier (pnpm test:clerk). It now also expects the "Revoked …" receipt.
    • The rollback rehearsal, whose helper now submits the revoke-all form on /machines (live release) or on the confirm page (this one).
    • pnpm verify, which the orchestrator runs once for the stack.

Release impact

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

The routes are unchanged. The one behaviour change is that POST /machines/revoke-all now requires a user field 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.

  • What does a revert leave behind? Nothing: no schema change, and a receipt cookie lasts 60 seconds.
  • Does the release before it still work with that? Yes. Its /machines posts revoke-all without user, which it doesn't require.

Made by Claude Opus 5.5 in Claude Code (T3 Code).

allisonmahmood and others added 4 commits October 25, 2026 13:43
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]>
@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:docs Touches the docs area area:ui Portal and first-party browser pages, shared rendering and styles size:l 501-1,000 changed lines labels Oct 25, 2026
allisonmahmood and others added 3 commits October 25, 2026 14:37
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]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review: GPT 6.1 Sol (xhigh). One should-fix finding, fixed in 7b2a83f.

  1. A link to /machines#connect-an-agent left Connect an app closed for someone who already has a connection. Without ?agent=, the server can't know to open it, and a fragment naming the <details> itself doesn't expand it. That's the link released CLIs and the server skill print. Fixed: the fragment now names the disclosure's body, so the browser opens the closed disclosure natively with no script. Checked in Chromium with JavaScript disabled: a fragment-only visit opens it. The tests assert the anchor's new place.

Also in that commit, Disconnect everything uses the new quiet danger button (btn-quiet btn-danger) from #930, so it reads as destructive without page CSS. The branch merges #930's latest head. The Your agents suite passes (6 tests).

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS

Checked 7b2a83f6ad42f4145e3465b2ea53e6ddffa3a112 (base 8051b91b276d428e1a942816a2f5797290c5a435, feat/dashboard-sidebar) on fresh brightline data, by GPT-6.1 Sol in Codex (T3 Code).

Done means

No linked issue; checked the PR's What changed claims.

  • Records first and disclosures: passed. Allison's connected computer and app precede their closed setup disclosures. Priya initially has nothing connected and both disclosures open. Both disclosures toggle in the browser. Build patches precedes Use patches. At 390px the page has no horizontal overflow.
  • Individual Revoke and Disconnect: passed, as Allison and Priya, through HTTP and browser buttons. Each redirects to /machines, removes the row, and shows Revoked Acceptance … laptop or Disconnected Acceptance Codex … once. Revoked machine keys answer /api/me with 401; disconnected app tokens answer MCP initialize with 401. Cross-person disconnect returns 404, including for the admin; repeated machine revoke adds no receipt.
  • Old links with an existing connection: passed for both people. /machines?agent=codex opens Codex's commands; ?agent=another opens its address and compatibility instructions; /machines#connect-an-agent opens the disclosure and Claude instructions natively.
  • Disconnect everything: passed for both people. GET is 200, private, no-store, and leaves credentials usable. Allison sees 2 computers and 1 agent; Priya sees 1 computer and 1 agent. Allison’s Cancel preserves the rows. Missing user, a wrong field, and mismatched user each return 409, create no receipt, and leave both credential kinds usable. Posting Allison's actual confirmation user as Priya also returns 409.
  • Matching confirmation and receipts: passed in the browser for both people. Receipts read Disconnected everything: 2 computers and 1 agent and Disconnected everything: 1 computer and 1 agent; all rows disappear and both disclosures reopen. Machine/API and app/MCP then answer 401; previously approved, uncollected device logins answer 410 unknown without minting a token. Reload clears the receipt.
  • Agent access off: passed. Both roles see the line naming Allison Mahmood; only Allison gets Turn it on. Connection tabs are absent while off.
  • Wording: passed. Device confirmation says Your agents; the CLI logout suite verifies the actual courtesy-refusal output names Your agents. Consent wording, SDK skill, and global skill lock are covered by the focused passing suites.

Golden journeys

  • Log a machine in and revoke it: passed for both personas; device approval and token collection work, then revocation rejects the key.
  • Connect/use/disconnect an agent: passed with disposable dev connections; MCP initialize succeeds before ending and fails afterwards, without exposing another person's connection.
  • Focused automated checks: passed, 10 files / 118 tests: MachinesPage, AgentConnections, Endings, Receipt, DevicePages, OAuthEndpoints, AuthPages.socket, CLI, SdkApi, and skillLock. All current PR CI checks also pass, including browser, clerk-live and rollback-rehearsal.
Test Files  10 passed (10)
     Tests  118 passed (118)

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 user. Read scripts/rollback-rehearsal.ts: the helper uses the old form on /machines when present, otherwise the new confirm-page form, preserving its hidden fields and subsequent credential checks.

Not run

  • Full pnpm verify: deliberately omitted on this shared machine as requested; the combined stack already passed today, and head CI is green.
  • Local live-Clerk tier and full rollback rehearsal: not repeated; their head CI checks pass. The helper change was inspected as requested.

Notes

  • No product failures found. No tracked code, branches, PR body or labels changed; never merged. The throwaway environment was taken down after testing.

Base automatically changed from feat/dashboard-sidebar to main October 25, 2026 14:55
@allisonmahmood
allisonmahmood merged commit 0ef08c4 into main Oct 25, 2026
14 checks passed
@allisonmahmood
allisonmahmood deleted the feat/dashboard-agents branch October 25, 2026 15:17
allisonmahmood added a commit that referenced this pull request Oct 25, 2026
…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]>
allisonmahmood added a commit that referenced this pull request Oct 25, 2026
…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]>
@allisonmahmood allisonmahmood mentioned this pull request Oct 28, 2026
1 of 2 tasks
allisonmahmood added a commit that referenced this pull request Oct 29, 2026
## 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]>
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:docs Touches the docs area area:server Touches the server area area:ui Portal and first-party browser pages, shared rendering and styles size:l 501-1,000 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant