Adds a verification lifecycle to documents, rebuilt on top of the new
main history. A user with admin-level access to a document (document
admin membership or team admin) can mark it as verified, vouching that
its content is accurate. Verification carries an optional expiry
deadline derived from a re-verification interval resolved through a
document → collection → team preference inheritance chain.
- documents.verify / documents.unverify API endpoints, gated by new
verify/unverify abilities
- the feature requires the new DocumentVerification plan entitlement,
included in the Business and Enterprise plans, and remains limited to
cloud hosting
- verificationInterval override on documents.update and a collection
default on collections.update (team admin only), plus a team-wide
default via the verificationInterval team preference
- daily VerificationExpirySweepTask emits idempotent
documents.verification_expired events without mutating documents;
expiry is derived from the materialized verificationExpiresAt deadline
- notification and email to the verifier when their verification lapses;
suppressed when the verifier is deleted, suspended, or lost access
- verification state excluded from duplicates and public shares; the
interval override is carried over when duplicating
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mb5McXaNbEDyyCZXPAdGAY