Repository navigation
feat(portal): Your agents and Settings get their own addresses - #1334
Conversation
50c074c to
7099dff
Compare
cac16c5 to
d8f9cf1
Compare
1ba862b to
d8cd509
Compare
d8f9cf1 to
1f9f234
Compare
Acceptance: PASS with notesChecked Round 2 scope: Done means
Golden journeys
Rollback answers: match the diff. No schema or row-shape change, but the newly shipped URLs in skills, CLI/API hints and bookmarks stop working on the earlier release. The required Not run
Notes
All instances from this check are down. Text evidence only; no PR code, branch, body or labels changed. |
|
Ok from the gist of it it looks like we changed a lot of places where shit is. The gist of it is that everything is now in settings. Ony issue I kind of have is with this old : GET /company, GET /settings new : /settings/people. Only real issue is that when I implement access control, we want it to be settings/ company/ people and settings/ company/ people because that makes it easier to manage, but that can come later ig. |
|
Thanks, Srikar. (Fermy, Allison's agent.) Agreed it can come later, and it stays cheap when it does: every moved address lives in one map, For now everything under Settings is company-scoped (People, Integrations, Agent access), so a |
c9d57a0 to
3839d4f
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1f9f234 to
ae7cd47
Compare
Stacked on #1334; part of #1315. Merge the stack together, not alone. ## What changed `PortalPages.ts` held every portal route and handler, so the five page rebuilds that come next would all have edited one file. Each portal surface now has its own routes module, registered from one list. The portal also gets a **call summary**: calls and failed calls per patch over the last 24 hours. Before this, a patch nobody called looked the same as one called all day without a failure. People see no change. Closes #1319 ## Look at **One module per surface, registered from one list.** `PortalPages.ts` is now only that list: | Surface | Routes module | Renders with | Tests | | --- | --- | --- | --- | | Home and the guide | `HomePages.ts` | `home.ts`, `guide.ts` | `HomePages.test.ts` | | All patches | `AllPatchesPages.ts` | `allPatches.ts` | `AllPatchesPages.test.ts` | | A patch's card: tabs, log, confirmations, forms | `PatchPages.ts` | `render.ts`, `log.ts` | `PatchPages.test.ts` | | Share dialog forms, Remove… on a shared patch | `SharePages.ts` | `share.ts` | `SharePages.test.ts` | | People lifecycle (deactivate, reactivate) | `UserLifecyclePage.ts` (gains its `layer`) | itself | `UserLifecyclePage.test.ts` | | What's new | `WhatsNewPages.ts` (now in the list) | itself | `WhatsNewPages.test.ts` | | Core's scripts under `/assets/` | `Assets.ts` | none | `Assets.test.ts` | | Switcher list | `SwitcherList.ts` (now in the list) | itself | `SwitcherList.test.ts` | Each module starts with a two-line comment saying what it owns. Modules share code only through `shared/`: - `shared/presentation.ts` holds pure helpers: patch paths, menus, search, `isNew`, confirmation parts (`hidden`, `refusal`, the acknowledgement) and the old page layout CSS every portal page still carries. It moved byte for byte from `render.ts` and `allPatches.ts`. - `shared/handlers.ts` holds the request context, error wiring (`errors`, `pageErrors`, `errorPage`), patch-name guards, `staleNotice`, the Share dialog over a page and its way back (`Sharing`, `asked`, `behind`, `pagePath`, `shareOverlay`), and reads that several pages make (`callSummary`, `turnedAway`, `prewarm`). It also defines the shared types: `PortalServices` (the requirement list `PortalPages.layer` spelled out before), `Routes` (the layer type each surface declares, so an unhandled failure or an unprovided service is a type error in that module), and `Page`. - This is two files rather than one. A single module would form an import cycle with `share.ts`: the overlay needs that renderer, and the renderer needs the pure helpers. - A refused Share form draws the page it opened over again (Home, All patches or the card). `SharePages` gets those pages as a `PagesBehind` argument from the list instead of importing three other surfaces. **The call summary** (second commit). `InvocationLog.calls` replaces `InvocationLog.failures`. For each patch it returns the top-level calls since a time and how many of them failed (as the log's Failed filter counts them). It is one query over the same `runtime_invocations_top_level_recent` index. In `shared/handlers.ts`, `callSummary` gives each live tier 2 patch the viewer manages `{ calls, failures }` for the last 24 hours, `{ 0, 0 }` when nobody called it, and nothing for a member who manages none. Home and All patches read their failure counts from it, so their output is unchanged. The new glossary entry is in `packages/portal/GLOSSARY.md`. Reviewing the move: `git show --color-moved=dimmed-zebra --color-moved-ws=allow-indentation-change 8b79520`. Almost everything shows as moved. The changes are in imports, span names, `SharePages` taking `pages`, and the `Routes`/`Page` annotations. ## How it was verified No screenshots: no page changes, and the response comparison below is stricter than a picture. - **Same responses, before and after.** I recorded every response the portal suite requests (528 requests across 97 tests) on the base and on the move commit, and compared them per test after normalising per-file id counters, the avatar colour derived from those ids, and random setup-line tokens and device codes. All 97 match exactly (status, `Location` and body). Three tests asserted on several surfaces. Each is now split so its assertions sit with their surface, and every response in the new tests appears in the original test's. - `pnpm --filter @patchy/portal test`: 11 files, 121 tests (the 99 portal tests, plus four from the splits, the call summary test, What's new and the renderer tests). `packages/runtime/src/InvocationLog.test.ts` covers `calls`: pending and overdue calls count as calls but not failures; nested calls and calls older than the window are left out; a patch whose only calls are old is absent. - `pnpm check`: format, lint, typecheck and synth pass for this change. Format fails on `packages/core/src/html.test.ts`, which this PR doesn't touch: it is already unformatted on the base, so CI's `lint` job fails here exactly as it does on #1334. The fix belongs on #1334, the branch that introduced it. The offline tests had 52 failures across 23 files: CLI tests that see a stray `GET /` on this machine's local ports, and timeouts under shared-machine load. The non-CLI failures (`InvocationLocal`, `PatchesApi`, `SdkApi`, `DevReads`) pass when run alone. CI runs the full suite. - Not run locally, per the lane brief: `pnpm verify` and the browser suites. CI runs them. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — internal refactor. The one service method renamed (`InvocationLog.failures` → `calls`) is read only by the portal; the CLI's `patchy dev` stub, which answers it with nothing, follows - **What does a revert leave behind?** Nothing: no schema, data or contract change. One comment in a migration's source changed, not its DDL. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy. Co-authored-by: Claude Opus 5.5 <[email protected]>
…s, with New patch (#1341) Stacked on #1334; part of #1315. Merge the stack together, not alone. ## What changed The sidebar listed Home, All patches and Your agents, then a "Company" group of People, Integrations and Agent access, and nothing in it started a patch. Now it is Home, All patches, Your agents and **Settings**, which opens on People and shows People, Integrations and Agent access under it while one of them is open. **New patch** sits under the search and opens Home at `/?new` (P1 draws its dialog; until then `/?new` is Home). Below 1024px, the sidebar folds into a top bar with the company, a search and a Menu that works without script and holds New patch, the places and the foot. What's new shows up to five headlines and See all changes, and the account menu gains Your agents. App pages are titled "Heading – Place – Company". Copy that named the old group now names People or Settings ("Back to People", "Turn it on in Settings"). Closes #1321 ## Look at **1. One list for the sidebar and the switcher: `packages/core/src/places.ts`.** Settings is a place with `children`, and a page's `section` is still one of the six it had, so no page changed to light the right place. ⌘⇧K's switcher reads the same list: it now also lists Agent access, People and Integrations keep their own names, and People also answers to "settings", because the sidebar's Settings opens it (derived from the list, not a second one). Places rank below a patch or its pages that match as well, so "set" on a patch still finds its own Settings first (`rows.test.ts`). **2. The phone top bar: one search form, one nav.** The search waits as its icon, which is its `<label>`, so a press focuses the field and it opens across the bar until focus leaves. The Menu is the same popover markup the desktop sidebar shows in place, so it works without script; its button reads Close while it is open. This differs from the prototype's open Menu, which repeats the search field: here the search stays in the bar. Home's own search moved with the breakpoint (900px → 1024px), as lane F deferred. Open Menu (People as admin, Settings open; Your agents as a member; What's new over it), before and after:  <details><summary>Before</summary>  </details> What's new and the account menu on a wide window, after then before:  <details><summary>Before</summary>  </details> <!-- patchy-dev:compare:allison --> #### Before and after, as Allison Mahmood (admin) Before is `7099dff` (--base origin/ui/u-addresses) and after is `7293502` (ui/n-shell), both on the `brightline` scenario, from `pnpm dev compare`. Every page answered 200 with no browser errors. ##### `/settings/people` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/patches/new-business` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /patchy-dev:compare:allison --> <!-- patchy-dev:compare:priya --> #### Before and after, as Priya Shah (member) Before is `7099dff` (--base origin/ui/u-addresses) and after is `7293502` (ui/n-shell), both on the `brightline` scenario, from `pnpm dev compare`. Every page answered 200 with no browser errors. ##### `/settings/integrations` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/agents` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /patchy-dev:compare:priya --> ## How it was verified - `pnpm check`: format, lint, typecheck and synth pass. Offline tests pass in every package this touches (core, auth, companies, portal, integrations, server). The failures were in `patchy` CLI, `execution`, `company-database` and `primitives` tests under a load average of 47 from other worktrees, and none of them touch these files; CI decides. - New `test/browser-tier1/shell.spec.ts`, run locally: as an admin and as a member, a Settings page opens Settings with its three pages and lights the right one, the H1 and `<title>` name it, and elsewhere the four places show with New patch to `/?new`. At 390px with touch and **script off**, Menu opens to New patch and the places, Settings navigates, and pressing the search icon focuses the field across the bar and searches. A third case closes a dialog opened from a sidebar link and checks focus returns to that link while the sidebar shows in place, and to Menu while it is folded; it fails with the enhancer fix removed. `ui.spec.ts` (run locally) now finds the gallery's New patch inside `main`, since the sidebar has one too. - `html.test.ts` covers the places off and on a Settings page, New patch under the search, one nav and one search form, titles, five headlines, and the bell's `data-through` and script. Spec §10 states for the frame, kept: - **Who sees what (3):** members get the same map (shell test, both roles). Lit place, receipts, the overlay making the frame inert and the switcher tag are unchanged. - **What's new (18):** the seen marker works as before. The panel keeps `id="whats-new"`, `data-through`, `.whats-new-dot` and `.whats-new-bell`, which `/whats-new/bell.js` reads, and the page still advances the marker. - **Overlays and menus (15):** the foot menus are native popovers of links and buttons, anchored above their button, centred where anchor positioning is missing (the shared `.menu` fallback). - **Phones (12):** 16px padding below 640px, 44px targets on touch (the Menu's places get them through `--h-sm`). **Core changes:** - `ui/icons.ts`: home, grid, bot, gear, bell, menu, chevronRight, chevronUpDown, logout. These are additions. - `places.ts`: the list's new shape, with `Place` and `pagePlaces`. - The app-shell chunk is rewritten, and the panel CSS it replaces is gone from the What's new chunk. - One enhancer change, a fix: focus return now takes a link that is in view before falling back to its menu's button. Sidebar links sit inside the Menu's popover, shown in place on a wide window, so closing New patch's dialog could never refocus New patch. `shell.spec.ts` covers it. **Left for later lanes:** - Feedback: #1227 isn't on main, so the foot has a marked slot between What's new and the account. - The prototype's Keyboard shortcuts item in the account menu waits for the shortcut sheet. - What's new headlines are text until P9's permalinks exist. - A patch's title still carries " · Brightline Studio", so its `<title>` names the company twice until P3 strips the suffix. - The sidebar search still lands on Home (`/?q=`). Spec §2 sends it to `/patches?q=`, but Home carries the no-results line for an agent and All patches doesn't yet. P2 (with P1's Home search states) moves the action and that no-results line together. **For the integrator:** two one-line string changes land in lane R's `PortalPages.test.ts` (3281, 4021), and `render.ts`/`UserLifecyclePage.ts` get the "Company" copy. `scenarios/README.md` and a comment in `scripts/dev/src/scenario.test.ts` still say "at Company"; I left them to lane S. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required The page frame and copy change; there are no new routes, and the API, CLI and schema are unchanged. - **What does a revert leave behind?** Nothing. It is markup, CSS and copy. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy. Co-authored-by: Claude Opus 5.5 <[email protected]>
Stacked on #1334; part of #1315. Merge the stack together, not alone. ## What changed The dev scenarios couldn't show most states the rebuilt pages must keep: Brightline had four patches, all Allison's, and no integrations. `pnpm dev up dense` now builds Brightline Studio at full size, with the prototype's people and patches, offline and with no keys, so every page in the overhaul has a person and a URL for each of its states. Closes #1320. **Why a new scenario rather than a bigger `brightline`.** `pnpm dev eval` stages brightline's patches into every run (and refuses a scenario that declares connections), and the rollback rehearsal seeds brightline at the live release and opens every patch four times. Densifying it would slow both and break the evals. `dense` keeps Brightline's company, handle and people, and publishes New Business, Spend, Kudos and the kickoff brief from brightline's own sources (`from`), so nothing is copied. **What it holds** (about 3½ minutes the first time): - 13 live patches, 9 tools and 4 pages, owned by five people, with versions, opens, ages, log entries (Failed, Refused, Running and Unknown included), New Business failing twice today and a patch new to Allison of each kind; Pitch Library reads Brand asset finder's shared table; a retired tool and a page deleted 26 days ago (gone for good in 4). - People: Allison (admin) with two computers and three apps, one of each ended; Jordan, Marcus and Sofia with agents; Priya with none; Rowan, deactivated, whose page is still live; three invitations, one pending, one expired, one whose mail didn't send. - Taylor at Cedar Works, a guest of Kudos; Dana at Harbor & Pine Coffee, who shares Moodboard and a since-retired Rebrand review with Allison and Priya; Sam alone at Fresh Studio. - 14 connections, written offline: every integration connected and paused, Attio's writable key, IMAP's refused login and Pidgeon's leftover key needing attention, a Pidgeon test key, one that keeps guests off Client onboarding (shared with Taylor), and connection calls in the logs. **How the runner does it.** Scenarios gain fields (documented in `scenarios/README.md`): - On patches: `owner`, `from`, `versions`, `age` and `updated`, `opens`, `calls` (optionally through a declared connection), `reads` (shared tables, declared with `patchy add shared-table`), `retired` or `deleted`. Guests are now people at another company than the patch's owner. - On people: `deactivated`, `computers`, `apps`. On the scenario: `invitations`. - Connections with a `state` are offline: `up` writes them as connect saves one, display and snapshot encoded through the integrations' own schemas (so an invented one that breaks a filter fails), credentials sealed with the instance's keys. They're saved connected before patches publish, so patches can declare them, and left in their state after. Test, Reconnect and Replace on one send its invented credentials to the integration, which refuses them; the README says so. `up` publishes each patch as its owner with a machine token it lends them and revokes once it's done, then writes the history in one transaction (`scripts/dev/src/history.ts`): dates, opens, log entries through `InvocationLog` and `RuntimeLog`, people's agents, invitations, deactivation through `Users.deactivate`, and connection states (`connections.ts`). Nothing reaches the network. Sharing is recorded in the manifest (sharing again is refused once a connection keeps guests off), a patch an interrupted `up` already retired or deleted skips sharing and ending, and the offline connections are saved with their snapshots in one transaction, so `up` resumes from any step. A CLI step the instance's per-address API limit refuses runs again after 20 seconds; seventeen patches outrun 60 a minute. Nothing changes for the other scenarios: their patches keep the dates they were published with. ## Who shows what Committed in `scenarios/README.md`, so later lanes and acceptance read it there: Sign in as the person with `pnpm dev shot <person> <path>` or `pnpm dev open <person>`. A connection's page is `/settings/integrations/conn_env_brightline_<integration>_<handle>`, written `…/<integration>_<handle>` below. Everything answers 200 to its person except the last-admin refusal, 409. | State | Person | Path | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | | Home: a failing tool, Your usual, new to you, an unread page, Shared with you with an unavailable one | `allison` | `/`, `/?q=brand`, `/?q=zebra` | | What needs an admin: connections needing attention, an ended app and computer, a deactivated owner, a deletion 4 days from gone | `allison` | `/`, `/patches?show=attention` | | A member with no agent: the Final step, then Home after Later | `priya` | `/`, `/guide` | | A guest at an empty company: Shared with you, one blocked by its connection | `taylor` | `/` | | An empty company, its creator | `sam` | `/` | | A new viewer with no opens (Popular), through an invitation | `[email protected]` | `/join`, then `/` | | Share: a tool with a guest, one whose connection blocks guests | `allison` | `/?share=new-business`, `/patches?share=kudos`, `/patches?share=client-onboarding` | | All patches and its filters, as an admin and a member | `allison`, `priya` | `/patches`, `?show=tools`, `pages`, `yours`, `attention`, `off` | | A failing tool: agent tools, 3 versions, log with failed, refused, Running and Unknown calls, via apps | `allison` | `/patches/new-business`, `/log`, `/versions`, `/settings` | | Retire naming the patch that reads its shared table; Delete | `allison` | `/patches/brand-assets/retire`, `/patches/new-business/delete` | | A patch as a member who doesn't own it | `priya` | `/patches/new-business` | | A page; a tool that declares connections and reads a shared table | `allison` | `/patches/harbor-pine-kickoff`, `/patches/pitch-library` | | Restoring a patch whose shared-table source is off asks for a review: retire Brand asset finder, ticking its acknowledgement, then Pitch Library, then open Pitch Library's Restore… (restore Brand asset finder first to undo) | `allison` | `/patches/brand-assets/retire`, `/patches/pitch-library/retire`, `/patches/pitch-library/restore` | | Retired; deleted and 4 days from gone; its address | `allison`, `marcus` | `/patches/holiday-rota`, `/patches/summer-party`, `/brightline/holiday-rota` | | Owner deactivated, Reassign | `allison` | `/patches/office-playlist`, `/reassign` | | Your agents, with and without | `allison`, `priya` | `/agents`, `/agents/connect?app=claude`, `/agents/computer`, `/agents/disconnect-all` | | People: invitations pending, expired and unsent, deactivated, guests, invite, deactivate, reactivate | `allison` | `/settings/people`, `?show=…`, `?invite=1`, `/settings/people/users/usr_env_brightline_marcus/deactivate`, `…/usr_env_brightline_rowan/reactivate` | | The last admin can't be deactivated | `allison` | `/settings/people/users/usr_env_brightline_allison/deactivate` | | People, Integrations and Agent access as a member | `priya` | `/settings/people`, `/settings/integrations`, `/settings/agent-access` | | Integrations: 14 connections, controls, Needs attention; the catalogue and each connect flow | `allison` | `/settings/integrations`, `?view=attention`, `/settings/integrations/connect`, `/connect/<integration>` | | Connected and used, with calls (one Running for an hour after `up`, one Unknown); connected and unused | `allison` | `…/postgres_warehouse`, `…/attio_crm`, `…/pidgeon_hello`, `…/posthog_website`, `…/imap_invoices` | | Needs attention: Attio's writable key, IMAP's refused login, Pidgeon's old key; a Pidgeon test key | `allison` | `…/attio_partners`, `…/imap_applications`, `…/pidgeon_billing`, `…/pidgeon_sandbox` | | Paused, each integration, one declared only by a retired patch | `allison` | `…/postgres_old-warehouse`, `…/posthog_client-sites`, `…/attio_archive`, `…/pidgeon_newsletter`, `…/imap_old-inbox` | | Agent access, the switch | `allison` | `/settings/agent-access` | Test, Reconnect and Replace on an offline connection send its invented credentials to the integration, which refuses them; the connect flows' own refusals and Pidgeon's address steps need a real key, in the `attio`, `pidgeon` and `imap` scenarios. ## Look at Captures from a fresh `pnpm dev up dense`, on today's pages (this PR changes no page). <details open><summary>Captures</summary> **Allison's Home: a failing tool, Your usual, a new tool, an unread page, and Shared with you with a retired one**  **Priya, a member with no agent: the Final step (local address and setup code hidden)**  **Taylor, a guest at Cedar Works: an empty company, with patches shared from Brightline behind the Final step**  **Sam at Fresh Studio: an empty company**  **All patches, Retired and deleted: a retired tool and a page gone for good in 4 days**  **New Business's log: a Running call, failures via Claude with their log lines, across versions (address hidden)**  **Retiring Brand asset finder names Pitch Library, which reads its shared table**  **Restoring Pitch Library while Brand asset finder is retired asks for a review (after the README's steps)**  **Integrations: 14 connections across five integrations, with controls and Needs attention**  **attio/partners: a Test found the key writable**  **imap/applications: the mail server refused the login during a patch's call**  **pidgeon/billing: an old key Patchy couldn't revoke**  **People: invitations pending, expired and unsent, and a deactivated member**  **Allison's agents: a computer expiring soon and two apps (the ended ones aren't listed today)**  </details> ## How it was verified - A fresh `pnpm dev down && pnpm dev up dense` on this commit: it finished in 1 min 20 s on a warm pnpm store (about 3½ minutes cold); one share met the API limit and went through on the retry. Then, with the manifest edited to forget Rebrand review's retirement and marked incomplete, `up` resumed, skipped its sharing and finished. - Every row above, signed in as its person: 83 URLs answer their status (200, the last-admin refusal 409). The script and its output: <details><summary>check-urls.sh and its output</summary> ```sh #!/usr/bin/env bash # Signs in as each row's person on a `pnpm dev up dense` environment and checks the row's URL # answers its status (200 unless the row says) to them. Rows are `person|path[|status]`. # Usage: check-urls.sh <environment URL> <rows file> set -u url=$1 rows=$2 failed=0 jar=$(mktemp -d) while IFS='|' read -r who path want; do [ -z "$who" ] && continue cookies="$jar/$who" [ -f "$cookies" ] || curl -s -c "$cookies" -o /dev/null "$url/dev/sign-in?as=$who&return=/" code=$(curl -s -b "$cookies" -o /dev/null -w '%{http_code}' "$url$path") printf '%s %-28s %s\n' "$code" "$who" "$path" [ "$code" = "${want:-200}" ] || failed=1 done < "$rows" rm -rf "$jar" exit $failed # Rows, person|path[|status]: # [email protected]|/ # [email protected]|/ # [email protected]|/guide # [email protected]|/ # [email protected]|/ # [email protected]|/?share=new-business # [email protected]|/?q=brand # [email protected]|/patches # [email protected]|/patches?show=tools # [email protected]|/patches?show=pages # [email protected]|/patches?show=yours # [email protected]|/patches?show=attention # [email protected]|/patches?show=off # [email protected]|/patches?share=kudos # [email protected]|/patches # [email protected]|/patches/new-business # [email protected]|/patches/new-business/log # [email protected]|/patches/new-business/log?outcome=failed # [email protected]|/patches/new-business/versions # [email protected]|/patches/new-business/settings # [email protected]|/patches/new-business/retire # [email protected]|/patches/new-business/delete # [email protected]|/patches/new-business # [email protected]|/patches/new-business/versions # [email protected]|/patches/harbor-pine-kickoff # [email protected]|/patches/holiday-rota # [email protected]|/patches/summer-party # [email protected]|/patches/office-playlist # [email protected]|/patches/office-playlist/reassign # [email protected]|/brightline/new-business # [email protected]|/agents # [email protected]|/agents/connect?app=claude # [email protected]|/agents/computer # [email protected]|/agents/disconnect-all # [email protected]|/agents # [email protected]|/settings/people # [email protected]|/settings/people?show=admins # [email protected]|/settings/people?show=invited # [email protected]|/settings/people?show=deactivated # [email protected]|/settings/people?show=guests # [email protected]|/settings/people?invite=1 # [email protected]|/settings/people/users/usr_env_brightline_marcus/deactivate # [email protected]|/settings/people/users/usr_env_brightline_rowan/reactivate # [email protected]|/settings/people # [email protected]|/settings/people?show=guests # [email protected]|/settings/integrations # [email protected]|/settings/integrations?view=attention # [email protected]|/settings/integrations/connect # [email protected]|/settings/integrations/connect/postgres # [email protected]|/settings/integrations/connect/posthog # [email protected]|/settings/integrations/connect/attio # [email protected]|/settings/integrations/connect/pidgeon # [email protected]|/settings/integrations/connect/imap # [email protected]|/settings/integrations/conn_env_brightline_postgres_warehouse # [email protected]|/settings/integrations/conn_env_brightline_postgres_old-warehouse # [email protected]|/settings/integrations/conn_env_brightline_posthog_website # [email protected]|/settings/integrations/conn_env_brightline_posthog_client-sites # [email protected]|/settings/integrations/conn_env_brightline_attio_crm # [email protected]|/settings/integrations/conn_env_brightline_attio_partners # [email protected]|/settings/integrations/conn_env_brightline_attio_archive # [email protected]|/settings/integrations/conn_env_brightline_pidgeon_hello # [email protected]|/settings/integrations/conn_env_brightline_pidgeon_billing # [email protected]|/settings/integrations/conn_env_brightline_pidgeon_sandbox # [email protected]|/settings/integrations/conn_env_brightline_pidgeon_newsletter # [email protected]|/settings/integrations/conn_env_brightline_imap_invoices # [email protected]|/settings/integrations/conn_env_brightline_imap_applications # [email protected]|/settings/integrations/conn_env_brightline_imap_old-inbox # [email protected]|/settings/integrations/conn_env_brightline_postgres_warehouse/disconnect # [email protected]|/settings/integrations/conn_env_brightline_postgres_old-warehouse/delete # [email protected]|/settings/integrations # [email protected]|/settings/integrations/conn_env_brightline_attio_crm # [email protected]|/settings/agent-access # [email protected]|/settings/agent-access # [email protected]|/whats-new # [email protected]|/?q=zebra # [email protected]|/patches/timesheets # [email protected]|/settings/people/users/usr_env_brightline_allison/deactivate|409 # [email protected]|/brightline/kudos # [email protected]|/join # [email protected]|/brightline/holiday-rota # [email protected]|/patches/brand-assets/retire # [email protected]|/patches/pitch-library # [email protected]|/patches?share=client-onboarding # ./check-urls.sh http://<label>.localhost:<port> rows.txt ``` ``` 200 [email protected] / 200 [email protected] / 200 [email protected] /guide 200 [email protected] / 200 [email protected] / 200 [email protected] /?share=new-business 200 [email protected] /?q=brand 200 [email protected] /patches 200 [email protected] /patches?show=tools 200 [email protected] /patches?show=pages 200 [email protected] /patches?show=yours 200 [email protected] /patches?show=attention 200 [email protected] /patches?show=off 200 [email protected] /patches?share=kudos 200 [email protected] /patches 200 [email protected] /patches/new-business 200 [email protected] /patches/new-business/log 200 [email protected] /patches/new-business/log?outcome=failed 200 [email protected] /patches/new-business/versions 200 [email protected] /patches/new-business/settings 200 [email protected] /patches/new-business/retire 200 [email protected] /patches/new-business/delete 200 [email protected] /patches/new-business 200 [email protected] /patches/new-business/versions 200 [email protected] /patches/harbor-pine-kickoff 200 [email protected] /patches/holiday-rota 200 [email protected] /patches/summer-party 200 [email protected] /patches/office-playlist 200 [email protected] /patches/office-playlist/reassign 200 [email protected] /brightline/new-business 200 [email protected] /agents 200 [email protected] /agents/connect?app=claude 200 [email protected] /agents/computer 200 [email protected] /agents/disconnect-all 200 [email protected] /agents 200 [email protected] /settings/people 200 [email protected] /settings/people?show=admins 200 [email protected] /settings/people?show=invited 200 [email protected] /settings/people?show=deactivated 200 [email protected] /settings/people?show=guests 200 [email protected] /settings/people?invite=1 200 [email protected] /settings/people/users/usr_env_brightline_marcus/deactivate 200 [email protected] /settings/people/users/usr_env_brightline_rowan/reactivate 200 [email protected] /settings/people 200 [email protected] /settings/people?show=guests 200 [email protected] /settings/integrations 200 [email protected] /settings/integrations?view=attention 200 [email protected] /settings/integrations/connect 200 [email protected] /settings/integrations/connect/postgres 200 [email protected] /settings/integrations/connect/posthog 200 [email protected] /settings/integrations/connect/attio 200 [email protected] /settings/integrations/connect/pidgeon 200 [email protected] /settings/integrations/connect/imap 200 [email protected] /settings/integrations/conn_env_brightline_postgres_warehouse 200 [email protected] /settings/integrations/conn_env_brightline_postgres_old-warehouse 200 [email protected] /settings/integrations/conn_env_brightline_posthog_website 200 [email protected] /settings/integrations/conn_env_brightline_posthog_client-sites 200 [email protected] /settings/integrations/conn_env_brightline_attio_crm 200 [email protected] /settings/integrations/conn_env_brightline_attio_partners 200 [email protected] /settings/integrations/conn_env_brightline_attio_archive 200 [email protected] /settings/integrations/conn_env_brightline_pidgeon_hello 200 [email protected] /settings/integrations/conn_env_brightline_pidgeon_billing 200 [email protected] /settings/integrations/conn_env_brightline_pidgeon_sandbox 200 [email protected] /settings/integrations/conn_env_brightline_pidgeon_newsletter 200 [email protected] /settings/integrations/conn_env_brightline_imap_invoices 200 [email protected] /settings/integrations/conn_env_brightline_imap_applications 200 [email protected] /settings/integrations/conn_env_brightline_imap_old-inbox 200 [email protected] /settings/integrations/conn_env_brightline_postgres_warehouse/disconnect 200 [email protected] /settings/integrations/conn_env_brightline_postgres_old-warehouse/delete 200 [email protected] /settings/integrations 200 [email protected] /settings/integrations/conn_env_brightline_attio_crm 200 [email protected] /settings/agent-access 200 [email protected] /settings/agent-access 200 [email protected] /whats-new 200 [email protected] /?q=zebra 200 [email protected] /patches/timesheets 409 [email protected] /settings/people/users/usr_env_brightline_allison/deactivate 200 [email protected] /brightline/kudos 200 [email protected] /join 200 [email protected] /brightline/holiday-rota 200 [email protected] /patches/brand-assets/retire 200 [email protected] /patches/pitch-library 200 [email protected] /patches?share=client-onboarding ``` </details> - `scripts/dev/src/history.test.ts`: dense's connections save as connect does and read back through the real `ConnectionStore` in each state, a resumed save changes nothing, and every snapshot decodes; over published New Business, Holiday rota and Timesheets rows, versions and the description are dated from `age` to `updated`, opens and visits land, failures today count 2 (not yesterday's refusal, the Running or the Unknown call), the Running call is pending at its connection too, and a retirement is the patch's last change; a history write interrupted after a call begins leaves nothing, and the next writes it whole; people get their live and ended computers and apps, invitations expire, and a deactivated person stays deactivated across a restart's seed. `scenario.test.ts` loads `dense` and its sources from another scenario, and refuses a Postgres connection that needs attention. - `pnpm check`: format fails only on `packages/core/src/html.test.ts`, which this branch doesn't touch (the base #1334's lint fails on it too); lint, typecheck and synth pass; the offline tests pass except 16 in CLI, request-event and local-task suites that this machine's port probes break (stray `GET`s into their stub servers), which CI runs clean. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required The dev runner and scenario files only: no server, API, schema or CLI change. - **What does a revert leave behind?** Nothing outside dev environments. A running `dense` environment keeps its data until `pnpm dev down`. - **Does the release before it still work with that?** Yes. Core additions: none. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy. Co-authored-by: Claude Opus 5.5 <[email protected]>
…d once (#1376) ## What changed This adds release 41's What's new entry, written from `a25a9c5`. It covers everything merged since release 40's `through` (`08e1fd9`), and sets the `patchy` release to `0.41.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. It ships the UI overhaul together with #1204, the terms prompt, as one release, at Allison's word. | Change | PRs | | --- | --- | | Improved: Patchy has a new look | #1332, #1336, #1338, #1343, #1353, #1354, #1369, #1372 | | New: Accept updated terms once | #1204 | | Improved: Settings holds People, Integrations and Agent access | #1334, #1341 | | Improved: Home starts with what needs you | #1344, #1353 | | New: A blue dot marks patches you haven't opened | #1370 | | Improved: A patch's page has one header and tabs | #1345 | | Improved: Search lands on All patches | #1346, #1353 | | Improved: Inviting and deactivating people is clearer | #1349 | | Improved: Your agents shows what's connected | #1352 | | Improved: Integrations use plain words | #1347, #1351 | | Improved: Agents and integrations show their own logos | #1371 | | Improved: What's new goes by month | #1350 | | Fixed: ⌘⇧K works on your company's public patches | #1339 | | Fixed: Saving works after a patch stops being public | #1339, #1375 | | Behind the scenes: every page built from one set of parts, with a check | #1338, #1354 | | Behind the scenes: agents know a once-public page's refusals mean reload, and retries wait and stop | #1374 | | Patch changes: a kept public page reloads into the company page; check retries wait and stop | #1375, #1374 | #1337 is release 40's own entry. #1340 (routes split, plus the call summary Home and All patches show) and #1342 (the `dense` dev scenario) need no line of their own: the call summary is part of the Home and All patches changes, and the scenario is tooling. The overhaul makes no patch changes. Running patches keep their own styles, which #1332 pins, and the only SDK change is the wording of two error messages' admin addresses. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `d3d32da` (release 40) to this PR's merge:** - **#1334 is `one-way`.** Your agents and Settings moved to `/agents` and `/settings/…`. Old addresses redirect forward, but release 40 serves none of the new ones. This release's CLI hints, the `patchy` skill on `main`, and the API, MCP and publish hints all name the new addresses, so on release 40 they'd answer 404. - **#1372 needs the private font bucket**, and that's done. Its deploy step fetches the pinned Cabinet Grotesk file and checks it before recording anything. The bucket was created on 2026-11-10 and holds the pinned bytes. A rollback to a commit from before #1372 pins no font and builds as before. - **#1204** adds migration `0036_terms_acceptances`, an additive table that release 40 never reads. Release 40 doesn't prompt, and coming forward again asks only people who hadn't accepted. Not `one-way`. - **#1375** changes only the public shell's script, and #1374 is skill text. Release 40 renders its own shell and serves its own skills. - **#1370 and #1339** add rows to the existing `patch_opens` table (a guest's opens, and members' opens of public patches). Release 40 reads them like any other open. - **Everything else** is pages, styles, copy and docs: no migrations, and no API, `--json` or configuration changes. - **patchy-web #53**, the website line #1371's logos needed, is merged (771e6d9). **Rollback line:** Rolling back past #1334 would break every `/agents` and `/settings/…` link that this release's CLI, skill and hints hand out, because release 40 answers them with 404. Fix forward instead. ## How it was verified - **Tests:** the `packages/core` What's new test passes (5), the `packages/api` suites pass (64), and the three files are formatted. - **The range.** Each of the 22 overhaul PRs was: - reviewed by GPT 6.1 Sol at xhigh, with every finding fixed or declined in writing on the PR; - accepted on its final head by an agent that didn't write it; - merged green, by a merge train that rebuilt each PR's accepted tree on main's tip and checked that main's tree matched it after every merge. - **#1339, #1375, #1374 and #1204** were each Sol-reviewed and accepted, and merged on their own: #1339 before the train, the other three after it. #1204's acceptance was rerun on the new sign-in pages. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required The changelog entry and the release version only. - **What does a revert leave behind?** Nothing. CLIs installed from this release report `0.41.0` and are told to match the server, as at every release. - **Does the release before it still work with that?** Yes. Changes made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
Stacked in the UI overhaul (#1315) after F2; merge the stack together, not alone.
What changed
Your agents lived at
/machinesand company management at/company/…. They now have the addresses the new sidebar names: Your agents at/agents, with Connect an app at/agents/connect?app=<app>and Add a computer at/agents/computeras pages of their own, and People, Integrations and Agent access at/settings/people,/settings/integrationsand/settings/agent-access(/settingsopens People). Released skills, CLIs and bookmarks carry the old addresses, so every one of them keeps working. No page is restyled; later lanes rebuild them.Closes #1318
Look at
1. One map, by method and path:
apps/server/src/Moved.ts. Each entry is an old route exactly as the last release registered it, found with Effect's ownFindMyWayunder the router's default rules, so any letter case, trailing slash, repeated slash or percent-encoding the router accepted before still works. A GET answers 308 to the new URL with the query as sent; a browser carries the fragment across on its own. A POST, from a form left open across the move, is handed to the router under its new URL before routing, so the new route answers it with every check it makes (same-origin, admin-only, ownership). That is the patternservingHeadersalready uses for HEAD. Anything else under the old prefixes stays a 404.GET /machines/agentsGET /machines?agent=<app>/agents/connect?app=<app>(other parameters kept)GET+POST /machines/revoke-all/agents/disconnect-allPOST /machines/:id/revoke/agents/computers/:id/disconnectPOST /machines/agents/:id/disconnect/agents/apps/:id/disconnectGET /company,GET /settings/settings/peoplePOST /company/invites[/:id/{revoke,resend}],POST /company/users/:id/role/settings/people/invites…,/settings/people/users/:id/roleGET+POST /company/users/:id/{deactivate,reactivate},/company/guests/:id/remove/settings/people/users/…,/settings/people/guests/…GET+POST /company/agent-access/settings/agent-access/company/connections…: index, catalogue, connect pages and posts, Pidgeon's Find addresses, a connection, its five acts and six confirmations/settings/integrations…, same shapeapps/server/src/Moved.test.tsboots the whole server and walks the map: every old GET (signed in and out) answers 308 with?show=a%20b&q=x+y&emptykept byte for byte and no fragment, and its target is a real route. For every old POST, another site's form gets the same 403 as at the new address, and a member's request for what isn't theirs gets the identical status, location and page. Two old forms change what the new routes change: revoking a computer and turning agent access on. Spellings the router accepted (/company/,/COMPANY?…,/%63ompany,//machines//revoke-all) redirect or post as before;?%61gent=codexand?app=claude&agent=codexland on Codex's steps, as the old page showed. Unknown URLs under the old prefixes still 404. With the rewrite taken out, the POST tests fail.2. Your agents' "add" disclosures became links to their own pages, because the old
?agent=link now needs a destination of its own. The links keep the ids old/machines#add-a-computerand#connect-an-agentlinks name;test/browser-tier1/moved.spec.tsfollows both old links in a browser. Screenshots below come frompnpm dev compareon throwawaybrightlineinstances. Before opens the old address on the base; after opens the same old address on this head, which follows the redirect.How it was verified
pnpm check: format, lint, typecheck and synth pass. In the offline tests, the only failures were the CLI stub tests that a local tool's strayGET /breaks on this machine (a different handful each run, none touching these paths) and load-sensitive execution tests. Each passes alone; CI runs the full suite.pnpm dev up imap: the dev runner connectedimap/invoicesthrough the moved connect page and its new URL wait, then published.agentshandle (Companies.test.ts, and/joininAuthPages.test.ts).settingswas reserved already.moved.spec.ts) and live Clerk (login-door,patchy-loginnow open/settings/peopleand/agents).agentshandle. That's left to the orchestrator before release.Surfaces it follows through to: every href, form action, receipt redirect and refusal link; the dev personas hint; device-login and consent links (their routes don't move); hints agents read from the API, MCP door, publish warnings, SDK generation and the CLI; the global
patchyskill (skills-lock.jsonrefreshed) and its onboarding reference; the project skills underpackages/sdk/skills;docs/API.md(regenerated),docs/product.md, ADR-0004, README, DEVELOPMENT, OPERATIONS, the auth glossary and the acceptance skill; the dev runner's connect URLs and URL waits. The rollback rehearsal drives the live release as well as this head, so it opens People and Disconnect everything at the old addresses (both releases answer them) and accepts either form address. Past What's new entries hold no old paths. Seeds and scenarios don't change.Left for later lanes: copy that names the old Company group ("Back to Company", "Turn it on at Company", the sidebar's group label) goes to N and the page lanes, and Revoke → Disconnect to P4. No core additions. Core's sidebar place list changes only its hrefs.
Release impact
Every old address keeps answering: GETs redirect permanently, POSTs are served where they were. No schema, API shape or configuration changes; hint strings name the new addresses.
patchyskill onmainsends people to/agents, this release's CLI hints name/settings/integrations,/settings/peopleand/settings/agent-access, and the API, MCP and publish hints it served say the same, as do bookmarks people make./agents…or/settings/…, so every one of those links and hints answers 404 until production rolls forward again. Nothing else breaks: no data or schema changes. Labelledone-way.Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.
Before and after, as Allison Mahmood (admin)
Before is
0a78106(where this branch left main) and after is529f6be(ui/u-addresses), both on thebrightlinescenario, frompnpm dev compare./machines1280px, after
1280px, before
/machines?agent=codex1280px, after
1280px, before
/agents/computer1280px, after
1280px, before
Failed to load resource: the server responded with a status of 404 (Not Found).Failed to load resource: the server responded with a status of 404 (Not Found)./company1280px, after
No visible change at 1280px.