docs(connections): record the reviewer decision and the live REST results on the staging tester (#22725)

## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - The built-in Google Workspace connector is going through Google
approval
> - `doc/memory/google-connector-memory.md` holds the decisions and
environment state for that work
> - On November 23 the six services moved to Paperclip's own REST tools,
and the staging tester was tested live against Google
> - The doc still says the reviewer destination is undecided and that
the REST tools were never run against Google
> - This pull request records the decisions, the tester state, the live
results and the open items
> - The benefit is that the next session starts from the true state

## Linked Issues or Issue Description

Refs #22634, #22706, #22714.

**What happened?**
The working memory and the production checklist are out of date after
the work of November 23.

**What did you expect to happen?**
The docs show the current decisions, the tester state and what is still
open.

**Steps to reproduce**
1. Read "Still open" and "Environments" in
`doc/memory/google-connector-memory.md` on master.
2. Compare them with the merged pull requests of November 23.

## What Changed

- `doc/memory/google-connector-memory.md`: four decision rows (reviewers
get the staging tester; the recommended security lab; tools refuse
unknown arguments; a cancelled sign-in leaves no connection), the tester
state, the live results, new open items and new next steps.
- `doc/plans/2026-11-17-google-workspace-production-checklist.md`:
ticked the reviewer destination and the revoke-at-Google items; noted
the lab recommendation.

## Verification

- Docs only. No code or tests changed.
- Checked that the diff has no client ids, project ids, stack ids,
passwords, codes or keys.

## Risks

- Low. Docs only. The memory doc is temporary and is deleted when the
connector is released.

## Model Used

- Anthropic Claude Fable 5.2 (`claude-fable-5-2`), in Claude Code with
tool use and browser control.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
DottaandClaude Fable 5.2 authored and GitHub committed 2026-11-24 01:26:05 +00:00
1 parent d1207c31d4
commit 37cbad2cd5
2 files changed
+99 -66

No files matched your search

+85 -60
View File
@@ -12,7 +12,7 @@ Related: [production checklist](../plans/2026-11-17-google-workspace-production-
[code-fix plan](../plans/2026-11-17-google-workspace-code-fixes.md),
[connector doc](../connections/GOOGLE-WORKSPACE.md).
Last updated: November 23, 2026.
Last updated: November 23, 2026 (evening).
## Decisions
@@ -45,6 +45,10 @@ Last updated: November 23, 2026.
| Nov 23 | **Images by public web address are allowed in Docs and Slides** | `insertInlineImage`, `replaceImage`, `createImage` and `replaceAllShapesWithImage` may use any public link. Links to Drive or Docs files stay refused (Nov 17 rule). Accepted risk: Google, not Paperclip, fetches the address, and Paperclip's own requests still go only to the allowed Google hosts. What remains is that an agent could put data in the address it chooses. Owner decision; do not restrict it. |
| Nov 23 | **Unconfirmed Google revocation is retried by the app, not Cloud** | When access must end and Google cannot be reached or confirm, the app keeps the token in `google_pending_revocations` and retries (1 minute up to 6 hours backoff, 30-day hard stop). Cloud still never stores provider tokens. Company deletion and a Cloud-removed instance queue the same way. The broker lets a removed instance sign a Google revoke (Cloud broker change, November 23). See [connector doc](../connections/GOOGLE-WORKSPACE.md), "Pending revocation". |
| Nov 23 | **Paperclip's Google sign-in is for Paperclip Cloud only** | Self-hosted instances bring their own Google OAuth client. Google's restricted-scope verification and security assessment cover Paperclip's infrastructure, so the broker does not give restricted-scope Google tokens to servers Paperclip does not run. The app hides the method on self-hosted instances and refuses to start it; the broker refuses it too (`PROVIDER_CLOUD_ONLY`). Google connections a self-hosted instance already has keep refreshing until a sunset date the owner will set on the broker; after it, the app asks the user to reconnect with their own Google client. |
| Nov 23 | **Google's reviewers get the staging tester** | `googletester.staging.paperclip.app`, on the separate Google app, pinned to a tested build. Not the production tester. |
| 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. |
## What has shipped
@@ -96,16 +100,24 @@ From the folder README (`server/src/google-workspace-rest-tools/README.md`).
## Still open
- **What we send to the reviewers.** Not decided: the new staging tester or
something else. Whatever it is must use the separate Google app (below).
- **Reviewer login on staging.** The broker now allows the scoped reviewer
password login on the staging tester host. Its secret is not set yet; no
broker change is needed.
- **AI-agent client and REST.** Whether an OAuth client marked for AI agents
may call the REST APIs rather than MCP. The tester's client is marked for
AI agents and is wired, but it has only been used through MCP. The services
are switched (Nov 23); this is the first thing the live test on the tester
answers.
- **Reviewer sign-in with the real review code.** The login is switched on
and the review code exists, but the code has not been given to Google's
reviewers and nobody has signed in with it yet. Only the owner holds it.
This test also decides whether the reviewer's `member` role can add a
Google connection or must be raised.
- **Disconnect and "Delete data" on the REST build.** Verified on the
earlier build only.
- **Company deletion race.** A late activity entry can fail a company
delete with a foreign-key error (seen once in CI on Nov 23). A fix is in
review.
- **Instance removal cleanup** starts only when an instance admin opens the
Cloud connection status page.
- **Sunset for self-hosted managed Google grants.** None is set. Count the
grants first.
- **Google Console declaration.** The app under review still declares six
scopes outside the 14: three Chat scopes, Contacts, Directory and
`calendar.readonly`. Data access is "under review"; branding is verified.
Change the declaration at submission, not before.
- **Three Gmail tools are inferred.** Google's MCP reference does not list
`get_draft`, `list_threads` and `search_messages`; their schemas copy the
sibling tools (#22014).
@@ -121,75 +133,88 @@ From the folder README (`server/src/google-workspace-rest-tools/README.md`).
at `ceaf574421`.
- **The "no review correspondence" rule.** Narrow it or keep it (see "Google
review history").
- Which security lab to use, and the budget.
## Next steps
1. Deploy the Cloud broker changes to production. They are merged and live
on staging (see "Cloud broker"); the production deploy is manual and
waits for Dotta.
2. Confirm the consent screen on the staging tester with a fresh Google
account, and set the reviewer login secret.
3. Live-test all six services on REST on the staging tester and fix forward
(switched Nov 23).
4. Revoke at Google when the last connection is removed.
5. Security scans.
6. Request revocation at Google when a company with Google connections is
deleted.
1. Owner signs in as the reviewer on the staging tester; then test connect,
an agent task, disconnect and "Delete data" as the reviewer.
2. Deploy to production on the owner's go: app first, then broker. The
production GitHub Environment already has the reviewer login switch set
to on (November 23), so no action is needed there. Without that switch,
a production deploy would turn the production tester's reviewer login
off.
3. Get a quote from the security lab.
4. Record the demo video and prepare the reply to Google.
5. Update the Console declaration to the 14 when submitting.
## Environments
| Name | Address | Notes |
| --- | --- | --- |
| Earlier tester | `googletester.paperclip.app` (company prefix `GOO`) | On **production**. Used for earlier tests. Hard to deploy to; do not build on it further. |
| New tester | `googletester.staging.paperclip.app` (company prefix `GOO`) | **Created November 18** on staging. Engineering qualification happens here. State below. |
| Staging tester | `googletester.staging.paperclip.app` (company prefix `GOO`) | **Created November 18** on staging. Engineering qualification, and **the instance Google's reviewers get** (decided Nov 23). State below. |
| Test 02 | In the private handoff | Staging stack used for the October proof. Holds Dotta's own Gmail grant, so not for reviewers. |
| Reviewer destination | Undecided | See "Still open". |
Staging tester state (November 18):
Staging tester state (November 23):
- Organization slug `googletester`; the stack id is in staging fleet admin.
Agent `Workspace Tester` runs OpenCode on DeepSeek V4.1 Flash 1017 through
a company OpenRouter connection (a dedicated key with a spending limit).
- `enableGoogleWorkspaceConnector` is on through a fleet-admin override.
- It runs an app build from before the disconnect-revoke change, because no
Cloud composition existed yet for a newer commit. Redeploy, then test
disconnect.
- **Passed, on staging's default Google client and Google's MCP transport:**
picker and disclosure, a 10-scope request, consent, connection test calls
(list labels, search, read the synthetic email in full, create a draft),
"Delete data", and a real agent task that found the synthetic email by its
marker, returned the full body and left an unsent draft (about 2 minutes).
- **On the separate Google app since November 18.** That app is External, In
Production, with the six REST APIs enabled and the staging broker callback
registered on its one web client. The staging environment lists the
tester's stack for the alternate client, for the Workspace group only, so
the per-service Gmail and Search profiles are unavailable on the tester.
After the switch the old grant asked for a reconnect, as designed; after
reconnecting, an agent task read the synthetic email again. Google did not
show a consent screen on reconnect (the account had approved this app
before), so the app name on the consent screen is still to be confirmed
with a fresh Google account.
- **Pinned** (user managed) in fleet admin, so staging-wide releases skip it.
Deploy to it directly with the Cloud repository's deploy-stack command.
Broker changes on staging still reach it. Before the pin it followed fleet
releases, which is why its build changed without a deploy.
- **On the separate Google app.** That app is External, In Production, with
the six REST APIs enabled and the staging broker callback on its one web
client. The consent screen names the app by its domain and shows one
unticked box per permission. The staging environment lists the tester's
stack for the alternate client, for the Workspace group only.
- Never set the alternate stack list before its client secret exists: the
Google bootstrap step then fails and blocks every staging deploy.
- Reviewer password login for this host is supported by the broker but its
secret is not set yet.
- **Reviewer login is switched on, not yet handed over.** The deploy owns
the switch (`CLOUD_HARNESS_REVIEWER_LOGIN_ENABLED` in the GitHub
Environment). The reviewer account is a `member` of the workspace. A
wrong review code is refused. Sign-in with the real review code is not
tested (see "Still open").
Found while testing:
Passed live on the tester, on REST against real Google (November 23):
- Google's live MCP server offered 34 of our 36 allowlisted actions on the
tester; `gmail__list_threads` and `gmail__search_messages` were missing.
`gmail__get_draft` was offered live even though Google's published
reference does not list it, so the reference and the live server differ.
- Write actions default to "Allowed" with no approval step. Decided Nov 23:
keep it (see "Decisions").
- The connection audit page shows internal tool names and raw ids.
- The REST tools have not been run against real Google yet.
- All 36 actions: Gmail (search, read, labels, drafts, list with a filter,
create and read a draft), Drive (create, search, metadata, read, copy,
recent), Docs (create, read, insert text, insert an image by link),
Sheets (create, write, read, add a row, metadata), Slides (create, read,
add a text box), Calendar (list, create, read, update, search, suggest a
time, delete). Two agent runs, 41 steps. The first run had one failure
(`list_threads`, below); after the fix every step passed.
- The connection survived the switch from Google's MCP servers with no
reconnect, and a token refresh worked after the broker began binding
grants to their instance.
- Choosing only Gmail read-only requests one scope; all read & write
requests ten.
- An unknown tool argument is refused with the accepted arguments named.
- Cancelling a sign-in leaves one connection and nothing needing attention.
- Review, Permissions and Activity show readable action names and no ids.
Reviewer login: Google's reviewers could not use our normal sign-in, so we
gave them **a custom password** for the Paperclip login. Any reviewer
environment needs that again. The password itself goes only through the review
channel.
Checked on the build before the REST switch only (test again on REST):
- Disconnect ends access at Google (the account's linked-apps list lost the
entry), and reconnect works.
Left in the owner's Google account by the tests: five files named
"Paperclip QA 1123 …" and three unsent test drafts.
Found while testing, and fixed:
- `list_threads` ignored a filter it did not know (fixed, see "Decisions").
- A cancelled sign-in left a second connection marked "Finish setup".
- The Activity feed showed gateway tool names with part of the connection id.
Reviewer login: Google's reviewers could not use our normal sign-in, so the
tester has a separate sign-in page with **a review code** (eight digits), for
one dedicated reviewer account. The production tester got one in September.
The staging tester has its own, created November 23. A review code goes to
the reviewers only through the review channel.
## Google apps (Cloud projects)
@@ -265,7 +290,7 @@ only**; production still runs the old broker.
- Revocation is on for Google profiles, with a ledger of provider grants.
- A per-stack alternate Google client exists (for the tester). It is chosen
only from the enrolled stack id.
- The scoped reviewer password login allows the production and the staging
- The scoped reviewer login (review code) allows the production and the staging
tester hosts.
Changes made in the broker (staging):
@@ -36,10 +36,11 @@ Decisions and the details behind them are kept in the
- [x] **Owner** (Nov 17): Dotta owns submission, security, privacy and release.
- [x] **Engineering test instance** (Nov 17): create
`googletester.staging.paperclip.app`.
- [ ] What we send to the reviewers (the staging tester or something else),
including the custom reviewer password.
- [x] What we send to the reviewers: the staging tester (Nov 23). Its review
code is created but not yet handed over.
- [ ] Privacy policy edits approved.
- [ ] Security lab and budget.
- [ ] Security lab and budget. (Nov 23: TAC Security recommended; quote and
budget not confirmed)
- [ ] Email the Developer Preview team asking for permission to offer the MCP
integration publicly (optional now, still cheap).
@@ -73,14 +74,17 @@ Decisions and the details behind them are kept in the
- [x] Prompt-injection screening confirmed on every Google tool result
(Nov 17, [#21999](https://github.com/paperclipai/paperclip/pull/21999)).
- [ ] Disconnecting the last Google connection revokes the grant at Google.
Seen at Google on November 23 on the build before the REST switch.
Test it again on the REST build before this is ticked.
- [x] Retention and deletion of Google content in tasks, runs and files audited
(Nov 17, [#22010](https://github.com/paperclipai/paperclip/pull/22010)
store inventory; summary in the working memory's "Where Google content
is kept"). Users can now delete it per connection. Content agents wrote
into tasks stays until the task is deleted. Task and company deletion
run the same cleanup, including run logs and saved files in storage.
- [x] REST-backed tool set for all 36 actions exists but is not switched on
(Nov 17): Gmail 9
- [x] REST-backed tool set for all 36 actions exists (Nov 17) and is switched
on (Nov 23,
[#22634](https://github.com/paperclipai/paperclip/pull/22634)): Gmail 9
([#22000](https://github.com/paperclipai/paperclip/pull/22000),
[#22014](https://github.com/paperclipai/paperclip/pull/22014)),
Calendar 9 ([#22017](https://github.com/paperclipai/paperclip/pull/22017)),
@@ -90,7 +94,11 @@ Decisions and the details behind them are kept in the
([#22028](https://github.com/paperclipai/paperclip/pull/22028)). The
per-service switch exists
([#22016](https://github.com/paperclipai/paperclip/pull/22016)).
- [ ] Each service switched to REST after a live test on the staging tester.
- [x] Each service switched to REST and tested live on the staging tester
(Nov 23). All six were switched together, then tested: 36 actions
passed against Google after two fixes
([#22706](https://github.com/paperclipai/paperclip/pull/22706),
[#22714](https://github.com/paperclipai/paperclip/pull/22714)).
- [ ] Scopes identical in the picker, the server, the Cloud broker and the
Google Console.
- [x] `googletester.staging.paperclip.app` created (Nov 18).