Skip to content

fix: validate cached token scope#1725

Open
LeonRuggiero wants to merge 1 commit into
mainfrom
fix-token-cache-scope
Open

fix: validate cached token scope#1725
LeonRuggiero wants to merge 1 commit into
mainfrom
fix-token-cache-scope

Conversation

@LeonRuggiero

Copy link
Copy Markdown
Contributor

Summary

  • validate cached Vertesia tokens against every explicitly requested account and project scope
  • allow account-only and global requests to reuse valid tokens without requiring absent claims to match
  • add regression coverage for project mismatches, account-scoped reuse, and global reuse

Test Plan

  • pnpm --filter @vertesia/ui exec vitest run src/session/auth/composable.scope.test.ts (3 tests passed)
  • pnpm --filter @vertesia/ui typecheck:test
  • pnpm --filter @vertesia/ui lint
  • pnpm --filter @vertesia/ui build
  • local UI restarted under Overmind and returned HTTP 200
  • aggregate pnpm build stopped on a pre-existing @llumiverse/drivers TypeScript error in drivers/src/openai/index.ts:699: InputTokensDetails.cache_write_tokens does not exist

@LeonRuggiero
LeonRuggiero requested a review from a team as a code owner July 14, 2026 14:59
@LeonRuggiero LeonRuggiero added the bug Something isn't working label Jul 14, 2026
@LeonRuggiero LeonRuggiero self-assigned this Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant