Repository navigation
Remove MCP subscriptions when their exact OAuth grant is revoked - #443
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behavior\nExplicit owner revocation removes subscription rows for only that workspace, owner and grant under the existing grant lock. Delivery rows cascade; Events and their occurrence history are retained. A bounded scheduled pass removes historical leftovers only when a matching durable Factorize revocation tombstone proves revocation. No provider listing or delivery diagnostic is treated as permanent proof; legacy rows without a tombstone remain untouched. Other grants for the same client, other workspaces and intentionally stopped subscriptions on unrevoked grants are preserved.\n\n## Verification\nRan the documented image smoke and npm run test:local on the isolated exe.dev validation VM. Passed: 267 API tests, 41 Playwright tests, actual Worker runtime, and all static checks. Real local PostgreSQL regressions cover the browser owner revocation endpoint, MCP delivery and re-enrollment, exact connection and workspace isolation, scheduled cleanup with transient provider failure, idempotence, and Event/occurrence retention. No production data operations.