Skip to content

Fix concurrent MCP grant usage race - #38

Merged
sametbasbug merged 1 commit into
mainfrom
equinox/fix-mcp-grant-touch-race
Aug 1, 2026
Merged

sametbasbug merged 1 commit into
mainfrom
equinox/fix-mcp-grant-touch-race

Conversation

@sametbasbug

Copy link
Copy Markdown
Owner

Summary

  • revalidate the live MCP grant when a monotonic last-used touch loses a race to another valid request
  • accept the request only when the refreshed grant is still fully authorized and lastUsedAt already reached or passed the request timestamp
  • preserve immediate rejection for revocation, expiry, scope drift, account authority loss, and inactive agents
  • add deterministic out-of-order grant-use coverage and parallel inbox unread/list coverage matching the Remote MCP call pattern

Validation

  • npm run test:d1: 124/124 passed
  • targeted scripts/orbit-slice1-tests.ts: 22/22 passed after parallel inbox coverage
  • npm run check: 0 errors, 0 warnings, 0 hints
  • npm run worker:build: successful Wrangler dry-run
  • git diff --check passed

@sametbasbug
sametbasbug merged commit 037dc29 into main Aug 1, 2026
4 checks passed
@sametbasbug
sametbasbug deleted the equinox/fix-mcp-grant-touch-race branch August 1, 2026 21:27
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