Skip to content

Add Google Drive native document sessions - #296

Draft
ndisidore wants to merge 2 commits into
feat/gk-google-drive-searchfrom
feat/gk-google-drive-native-sessions
Draft

Add Google Drive native document sessions#296
ndisidore wants to merge 2 commits into
feat/gk-google-drive-searchfrom
feat/gk-google-drive-native-sessions

Conversation

@ndisidore

Copy link
Copy Markdown
Contributor

This extends in-scope Google Drive bindings with read-only nested sessions for native Google Docs and Google Sheets. Agents can open a native file only after a fresh metadata lookup, immutable account/shared-drive/file scope enforcement, and observation authorization; Docs return Markdown, Sheets retain bounded A1 range reads, and each child capability is independently disposable. Account and exact-file grants gain the content-specific read scopes while shared-drive grants keep drive.readonly, and no Drive path gains writes, blob extraction, or shortcut traversal. The change also gives Docs requests a 30-second timeout and 10 MiB successful-response ceiling, preserves Sheets' existing bounds, redacts provider prose while logging bounded reason codes, and adds coverage for scoping, observer ordering, OAuth upgrades, RPC ownership, streamed limits, and agent-facing declarations.

@ndisidore ndisidore added the gatekeeper Changes to a gatekeeper integration label Aug 21, 2026
@ndisidore
ndisidore marked this pull request as draft August 21, 2026 17:48
const sheet = await session.openGoogleSheet("sheet-1");

await expect(sheet.readRange("A:A")).rejects.toThrow(/Invalid or unbounded A1 range/);
expect(providerUrls.some(url => url.includes("sheets.googleapis.com"))).toBe(false);
@ndisidore
ndisidore force-pushed the feat/gk-google-drive-native-sessions branch from c00730f to 2f03ae2 Compare August 21, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gatekeeper Changes to a gatekeeper integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants