feat(auth): add contextual OAuth workspace grants - #550
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
zpan | caf8415 | Commit Preview URL Branch Preview URL |
Aug 02 2026, 05:16 PM |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #550 +/- ##
==========================================
+ Coverage 93.50% 93.58% +0.08%
==========================================
Files 282 284 +2
Lines 15753 15907 +154
Branches 4530 4583 +53
==========================================
+ Hits 14730 14887 +157
+ Misses 1023 1020 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Preview verificationVerified the final feature on the shared Cloudflare preview: https://feat-oauth-workspace-grants-zpan.saltbo.workers.dev
Authenticated filesConsent golden pathConsent edge path |
Final local clean-room acceptanceStrict PASS from a fresh agent with no inherited context, using only the Realmroot skill and public runtime contracts.
All 13 required GitHub checks now pass, including Node and Cloudflare Workers E2E, CodeQL, Codecov project/patch, Docker, Go, and Workers build. |



What changed
zpan-cloud-sdk@2.5.2Why
Agents need standards-based, least-privilege access to a selected ZPan workspace and must be able to discover, authorize, pay for storage capacity, upload directly to S3, share, and download without source-code or database knowledge.
Validation
pnpm lintpnpm typecheckpnpm test— 257 files / 5,359 testspnpm test:cf— 18 files / 81 testspnpm buildpnpm openapi:client:checkgo test ./...incmd/— 254 testsPreview verification will be added in a PR comment after the Workers preview is ready.