Skip to content

Remove MCP subscriptions when their exact OAuth grant is revoked - #443

Merged
asselstine merged 1 commit into
mainfrom
codex/prune-revoked-event-subscriptions
Nov 25, 2026
Merged

asselstine merged 1 commit into
mainfrom
codex/prune-revoked-event-subscriptions

Conversation

@exe-dev-github-integration

Copy link
Copy Markdown
Contributor

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.

@asselstine
asselstine merged commit 94b5947 into main Nov 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant