- add a partial index on verificationExpiresAt alone; the expiry sweep
scans by deadline across all teams, which the team-prefixed index
cannot serve
- broadcast documents.verify and documents.unverify over WebSockets as
a document update so open clients merge the changed verification
fields without a reload
- render a readable in-app notification for an expired verification,
subject-first with a warning icon, instead of the raw event name and
an unknown actor
- skip the expiry notification when the team no longer holds the
DocumentVerification entitlement; the audit event still records the
expiry
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mb5McXaNbEDyyCZXPAdGAY