identity: delegated grant-verification cache with generation invalidation (Phase 3 complete, +9)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 55s

cache.sx — a process wrapping the token registry, memoising introspect.
Revocation stays real via generation invalidation: any revoke/refresh bumps
a generation counter, so every cached positive instantly becomes a miss and
re-validates against the live registry. A revoked token never reads valid
out of cache, not for a millisecond. stats() exposes hits/misses. New
tests/cache.sx. 101/101.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 01:03:57 +00:00
parent dc00ed9786
commit 785faf2441
6 changed files with 151 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# identity-on-sx Scoreboard
**Total: 92 / 92 tests passing**
**Total: 101 / 101 tests passing**
| | Suite | Pass | Total |
|---|---|---|---|
@@ -11,6 +11,7 @@
| ✅ | oauth | 17 | 17 |
| ✅ | sso | 10 | 10 |
| ✅ | membership | 17 | 17 |
| ✅ | cache | 9 | 9 |
Generated by `lib/identity/conformance.sh`.