Merge origin/master into feat/antigravity-swarm-command

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* origin/master:
  refactor(plugin-sdk): remove archivedState from the resume result (#22443)
  refactor(runner): let the provider decide whether a released Runner relaunches (#22442)
  fix(connections): drop MCP wording and the MCP guide link from Google Workspace setup (#22793)
  fix(ui): defer the Connectors announcement until a return visit (#22790)
  fix(connections): show only the privacy policy link in the Google Workspace picker (#22795)
  Add count, newest-first and lean run reads to customer-success inspection (#22781)
  fix(connections): keep a finished setup checklist on screen when the app refreshes queries (#22715)
  perf(ci): Phase 2 PR CI under 4 minutes (dynamic workers, fast E2E boot, typecheck overlap, test-budget gate) (#22729)
  fix(plan-mode): open the plan review card when a Plan-mode run settles without one (#22732)
This commit is contained in:
DottaandClaude Opus 5.5 committed 2026-11-24 13:21:12 -06:00
commit 3cbfa500f4
142 files changed
+5552 -11636

No files matched your search

+7
View File
@@ -257,6 +257,13 @@ period. A hidden tab clears the card; becoming visible fetches fresh dismissal
state before showing anything, even if that lookup takes longer than three
seconds.
The Connectors promotion (`2026-09-14-connectors`) also waits for
the user's second visit. In this browser, returning to Paperclip or interacting
with it after 30 minutes of inactivity starts that visit. The board records
first-visit activity per account across tabs and companies, including time in
the onboarding wizard and the agent chat. Once eligible, the browser remembers
that the account has returned. Clearing site data starts the visit history over.
The instance caches the feed for an hour, deduplicates concurrent fetches, and
uses conditional requests. Failed requests have a fifteen-minute cooldown; no
card appears for unavailable/invalid/incompatible content. Each request has a
+19 -2
View File
@@ -1,7 +1,7 @@
# Cloud customer-success inspection support
Paperclip exposes `/api/customer-success/v1/run-authority`, `/run-liveness` and
`/read` for the coordinated Cloud inspection broker. This foundation supports one registered
Paperclip exposes `/api/customer-success/v1/run-authority`, `/run-liveness`,
`/read` and `/read-v2` for the coordinated Cloud inspection broker. This foundation supports one registered
Paperclip agent; bot creation, scheduling, scoring and reporting are separate.
The authority endpoint is disabled unless
@@ -67,6 +67,23 @@ pass through Cloud; ranges cap at 1 MiB, JSON at 2 MiB, and lists at 100 rows.
Remote or unsnapshotted resources report unavailable; large content requires
pagination or download ranges. No storage credentials or bypass URLs are issued.
Summary reads keep a fleet-wide refresh cheap:
- `count` takes a catalogued `resource`, `companyId` and optional `parentId`,
and returns `{total, byStatus}`: counts grouped by the reader's `status`
column, or `byStatus: null` when it has none. No row content is read out.
- `order` (`list` only) is `newest` or `oldest` by creation time, with the table's
primary key as tie-breaker so offset pages never repeat or skip rows. Without it, lists keep their original id order.
- `view: "summary"` (`list`/`get` on `runs` only) returns an allowlist of ids,
status, error code, retry counters and timestamps plus a computed
`durationMs`, and leaves out the large JSON columns (result, usage, context
snapshot, runner profile). `RUN_SUMMARY_COLUMNS` is the allowlist.
Queries that use `count`, `order` or `view` are served only on `/read-v2`
(`inspectionReadPath` picks the path); `/read` refuses them. A tenant that
predates them answers 404 on `/read-v2`, so Cloud fails closed with
`tenant_inspection_version_unsupported` instead of misreading the query.
Existing config/event/run redactions and path/symlink/secret-file/size restrictions
remain in use. Authentication account/session, secret, private-key/encrypted-key
and raw provider-trace tables/readers are excluded. Identity-enabled trace
+2 -1
View File
@@ -482,7 +482,8 @@ profiles.
5. Choose the services and sign in with Google.
Google's guide:
[Configure Google Workspace MCP servers](https://developers.google.com/workspace/guides/configure-mcp-servers).
[Create an OAuth client ID](https://developers.google.com/workspace/guides/create-credentials#oauth-client-id).
The setup screen links to the same guide.
An unverified Google app shows a warning screen and has a user cap; only you
can decide whether to submit your own app for Google's verification.
+2 -1
View File
@@ -49,13 +49,14 @@ Last updated: November 23, 2026 (evening).
| Nov 23 | **Security lab: TAC Security (recommended, not yet engaged)** | Google's discounted Tier 2 partner. Plan about $2,000 for year one including a retest. Confirm with a quote; Google assigns the tier. |
| Nov 23 | **A tool refuses an argument it does not know** | All 36 tools fail before any request to Google and name the accepted arguments. Found live: `list_threads` ignored a filter and returned unfiltered mail. |
| Nov 23 | **A cancelled or abandoned first sign-in leaves no connection** | Cancel removes the draft; a closed tab leaves a hidden draft that the next attempt reuses. Applies to every sign-in connector. |
| Nov 24 | **The service picker shows no explanatory text, only the privacy policy link** | Owner decision. This removes the in-product data-use disclosure added on Nov 17 ([#21998](https://github.com/paperclipai/paperclip/pull/21998)). Risk noted by the coordinator: Google's user data policy may expect an in-product disclosure before consent; if a reviewer asks, restore a short statement above the link. |
## What has shipped
| PR | What it does | Merged commit |
| --- | --- | --- |
| [#21996](https://github.com/paperclipai/paperclip/pull/21996) | Plan docs: this file, the production checklist and the code-fix plan. | `12cb18e17d` |
| [#21998](https://github.com/paperclipai/paperclip/pull/21998) | Data-use disclosure in the service picker, shown just before Google consent. Every Google Workspace sign-in start goes through the picker, including four sign-in paths on the app page (Reconnect, Connect as me, Connect organization identity, dedicated-agent connect). The Gmail read & write line says Google's screen also mentions sending and that Paperclip does not send. | `b124ad0674` |
| [#21998](https://github.com/paperclipai/paperclip/pull/21998) | Data-use disclosure in the service picker, shown just before Google consent. Every Google Workspace sign-in start goes through the picker, including four sign-in paths on the app page (Reconnect, Connect as me, Connect organization identity, dedicated-agent connect). The Gmail read & write line says Google's screen also mentions sending and that Paperclip does not send. Removed on Nov 24 by owner decision (see "Decisions"); the picker keeps the privacy policy link. | `b124ad0674` |
| [#21999](https://github.com/paperclipai/paperclip/pull/21999) | Prompt-injection screening now also covers resource reads through a named gateway, the one path that was not screened. Applies to every connector, not only Google. | `65eac24876` |
| [#22001](https://github.com/paperclipai/paperclip/pull/22001) | Scope lock. `GOOGLE_WORKSPACE_SUBMITTED_SCOPES` is the hand-written list of 14, and `workspace.all` uses it. Paperclip-managed Google methods outside the 14 (Gmail archive, Chat, People, Workspace Search) are no longer offered for new setup or reconnect through Paperclip's Google app; saved ones keep refreshing and running. | `66ac5d7aa0` |
| [#22000](https://github.com/paperclipai/paperclip/pull/22000) | REST tool set part 1: the folder `server/src/google-workspace-rest-tools/` with Gmail `get_message`, `search_threads` and `create_draft`. Nothing calls it yet; the switch comes in a later PR. | `a29658b5b7` |
@@ -17,7 +17,7 @@ change in fix 2, the deploy order is app first, then broker (see fix 10).
| # | Fix | Size | Blocks submission | Status |
| --- | --- | --- | --- | --- |
| 1 | Data-use disclosure in the picker | Small | Yes | Done, [#21998](https://github.com/paperclipai/paperclip/pull/21998) |
| 1 | Data-use disclosure in the picker | Small | Yes | Done, [#21998](https://github.com/paperclipai/paperclip/pull/21998); removed Nov 24 by owner decision |
| 2 | Lock the managed scope set to 14 | Small to medium | Yes | Done in the app, [#22001](https://github.com/paperclipai/paperclip/pull/22001) |
| 3 | Take `gmail.modify` off the Paperclip-managed client | Small | Yes | Done, [#22001](https://github.com/paperclipai/paperclip/pull/22001) |
| 4 | Confirm injection screening on Google results | Check, then small | Yes | Done, [#21999](https://github.com/paperclipai/paperclip/pull/21999) |
@@ -36,6 +36,9 @@ four sign-in paths on the app page. The Gmail read & write line says Google's
screen also mentions sending and that Paperclip does not send. The plan below
is kept for reference.
**Removed** (Nov 24) by owner decision. The picker keeps only the privacy
policy link, which names Google's Limited Use requirements.
**Confirmed gap.** `ServicePicker` in
`ui/src/features/connections/GoogleWorkspaceServices.tsx` shows three service
rows and Cancel / Continue. Its only description is screen-reader text. Google
@@ -59,8 +59,12 @@ Decisions and the details behind them are kept in the
## 2. Product and code (see the code-fix plan)
- [x] Data-use disclosure shown in the picker immediately before Google consent
(Nov 17, [#21998](https://github.com/paperclipai/paperclip/pull/21998)).
- [ ] Data-use disclosure in the picker immediately before Google consent.
Added Nov 17 ([#21998](https://github.com/paperclipai/paperclip/pull/21998)),
then removed on Nov 24 by owner decision. The picker now shows only the
service rows and a link to the privacy policy and its Limited Use
statement. If a Google reviewer asks for an in-product disclosure,
restore a short statement above the link.
- [ ] Limited Use statement published and linked from the picker.
- [x] Help page: how to disconnect and how to delete stored Google data
(Nov 17, [#22010](https://github.com/paperclipai/paperclip/pull/22010):
+17 -18
View File
@@ -201,13 +201,16 @@ this field, the provider must:
- Move the source Runner state (`runner-state.json`) out of the Runner state
directory into an archive, so that the Runner creates new state.
- Start the Runner as the claimant identity with the fresh `bootstrapTicket`.
- Return `runner: { version, digest }` and `archivedState` (the archived Runner
state) on the `resumed` result.
- Return `runner: { version, digest }` on the `resumed` result.
Core accepts the archived state only when it is the source's settled cut: the
`suspended` lifecycle, or the `ready` lifecycle with an empty outbox, every
event acknowledged and no command in progress. Core then sends one ordinary
`run.attach` with no authority hand-off. A retry with the same source, ticket
The provider is the authority on whether a park exists. It relaunches only from
the source's settled cut, and Core does not check that cut again. That cut is the
`suspended` lifecycle, or the `ready` lifecycle with an empty outbox, every event
acknowledged and no command in progress. Core resumes on the assumption that the
source parked. When the task has no park of that source, return `unavailable`
once nothing runs for the task, and Core starts a fresh task from the saved
session. Otherwise Core sends one ordinary `run.attach` with no authority
hand-off. A retry with the same source, ticket
and `runner` must return the original result and must not start a second
Runner. Without `runner` on `resume`, keep the claimant handover above.
@@ -274,18 +277,14 @@ turn replay. A known `unavailable` result still requires ordinary physical
cleanup. Transparent cold fallback remains a separate qualification requirement.
A normal Core cache timeout detaches only Core's quiet local owner. The host
keeps its retained resources under its own retention policy. Core's existing
completed-session record stores only the confirmed source, physical task and a
digest of the selected account, credential revision and workspace scope. The
transport returns the exact source after the host's release receipt; Core does
not infer it from a local checkpoint marker, which may still name an older run.
An invalid source receipt or failed proof write keeps cleanup under the same
owner until physical retirement finishes. Later
cache adoption validates that Core-authored proof before claiming or
reconnecting. A stale or missing proof never licenses a claim. A changed
selection remains blocked until guarded retirement/recovery; it does not imply
that a cold launch is safe. Confirmed claim or physical cleanup clears only the
matching proof. Raw tickets are never stored in this record.
keeps its retained resources under its own retention policy. Core keeps no
record of a release beyond that owner. The transport returns the exact source
after the host's release receipt. Core checks it against the attached run,
session, Runner and lease, and only then marks its owner released. An invalid
source receipt keeps cleanup under the same owner until physical retirement
finishes. A later run resumes the source Core restores from its controller
checkpoint, on the lease's current task only, and the provider answers from its
own park record. Raw tickets are never stored.
When graceful host eviction has saved a suspended session and Core has recorded
physical stop, a later allocation can use ordinary `resumeFrom` recovery. Core