The pagination design must treat a client cursor as an untrusted capability constrained by the current request. Use an opaque authenticated token, preferably authenticated encryption because ordinary signed base64 payloads reveal their contents. Bind the token to a domain separated purpose, version, authenticated principal or tenant, a keyed digest of the thread, a keyed digest of canonicalized effective filters, backward direction, an immutable snapshot marker, and the exclusive ordering position. On every paginated request, derive scope from the authenticated route and normalized request filters rather than from cursor claims, authenticate the token before using its contents, compare every binding in constant time, and reject any mismatch with one generic invalid cursor response. Keep the initial snapshot unchanged while advancing only the oldest returned position. A high water mark excludes later messages but does not by itself freeze deletions, edits, or backdated inserts; strict repeatability needs database snapshot or versioned history semantics.
Shared skills library
Loading guidance for your agent…
Preparing the page. No content is being changed.