Skip to content
Console
Browse documentation
Reference

Agent evidence pagination

Continue agent evidence lists without ambiguous cursors or accidentally restarting a page.

On this page

Use cursor and limit to page through agent evidence. A cursor is opaque: use the continuation returned by that endpoint, preserve its value, and URL-encode it as one query parameter.

Lists covered by this contract

The single-cursor rule applies to these REST lists:

GET /api/v1/fleet
GET /api/v1/agent-events
GET /api/v1/action-receipts
GET /api/v1/agent-sessions
GET /api/v1/agent-turns
GET /api/v1/assets
GET /api/v1/assets/{assetId}/versions
GET /api/v1/memory-item-labels
GET /api/v1/authority-edges
GET /api/v1/review-signals

The agent run list also requires at most one cursor. An endpoint's required project and evidence selectors still apply on every page.

Request the first or next page

Omit cursor, or send it once with an empty value, to start the first page. For a continuation, send exactly one non-empty cursor. Do not append a new cursor to a URL that already has one; replace the existing value instead.

For example, this request is invalid even when first and second are individually valid cursors:

GET /api/v1/agent-events?project_id=your-project&run_id=your-run&cursor=first&cursor=second

It returns HTTP 400 before the evidence query runs:

{"error":"invalid_request","message":"cursor must be provided at most once"}

Identical duplicates, two empty values, and an empty value followed by a continuation are also rejected. The API does not pick a first or last value and does not silently restart at page one.

A single non-empty value is passed unchanged to the endpoint's cursor validation. Being supplied once does not make an expired, malformed, or otherwise invalid cursor acceptable to that endpoint. Keep the same project, selectors, filters, and explicit time bounds when continuing a list. Paging is not a promise of a frozen snapshot: evidence can still arrive or be removed between requests.

Encode values and limits correctly

Malformed URL query syntax is rejected rather than partially interpreted. Use a URL query builder so characters within a cursor, such as +, &, and ;, are encoded as %2B, %26, and %3B. An encoded & inside one cursor is part of its value, not a second parameter.

limit is optional and may appear at most once. When supplied, it must be a non-empty unsigned 32-bit integer. Omission preserves the endpoint's default; explicit 0 preserves that endpoint's zero-limit behavior. Each endpoint still applies its own page-size default and maximum.

This rule does not prohibit repeated filters. Parameters documented as repeated or comma-separated filters keep that behavior. See the REST API reference for the selectors and filters supported by each list.

A program you host that reads a paged list to the end follows the same rules: identical selectors on every page, the cursor sent back verbatim, a bounded number of pages and duplicates removed by ID. The nightly report example does exactly that, and Polling, retries and refusals states the rules.

Other collection lists

The same duplicate-cursor and malformed-URL refusals also apply to bounded collection lists such as API keys (/api/v1/account/api-keys), alert silences (/api/v1/alerts/silences), and notification channels (/api/v1/notifications/channels). These query-shape errors are refused before the collection is read, including when a page-size limit would otherwise be defaulted or clamped. Those collections keep their own documented limit behavior and response shape; do not substitute an agent-evidence cursor for a cursor returned by a different list.

Person and account timelines

Person and account timelines return at most the requested limit. Many occurrences can share one timestamp; a full page can end inside that tie. The opaque continuation records the last returned occurrence's timestamp, source family and stable source key, so the next page reaches the remaining tied occurrences before moving to older timestamps. Events and flag exposures share one source family. Ties at the inclusive start_time remain pageable.

This applies to REST person and account timelines, MCP get_person_timeline and get_account_timeline, and CLI persons timeline --before and accounts timeline --cursor. Echo the returned cursor unchanged and keep the same project, subject, signal filter and time bounds. Continue while has_more is true; an empty next cursor ends the traversal. Do not construct a cursor from a timestamp or item_id.

Returned timeline cursors fit the 4096-character continuation limit, including events with maximum-length captured keys. Preserve the complete value; do not truncate it.

Each row carries item_id, an opaque occurrence identity, plus its source project_id. Use these to distinguish separately captured occurrences with identical times and content. A session row also carries recording_id; its application session_id is a navigation pivot and can be shared by several recordings. Error groups and traces are navigation pivots too; they do not identify individual errors or log lines. Event occurrence IDs remain stable when content is withheld. Trace and agent-run occurrence IDs identify their grouped records.

The cursor preserves occurrence time precisely. Paging order is deterministic but does not prove a causal order between equal-time observations. It also does not freeze the evidence: late arrivals, changed grouped records or removals can affect later requests. A partial page means a source did not answer; preserve that limitation in your investigation. Old timestamp-only or malformed cursors are rejected; restart the read to obtain a current cursor.

Observed reliability rankings

Reliability results preserve whole-source totals and exact eligible and excluded subject counts. page_count and envelope returned_count count only the current page. Continue with the complete next_cursor and the same normalized selection, including its absolute window and exclusions. The cursor is a platform continuation token; copy it unchanged. A changed selection, invalid signature or changed person-history interval refuses continuation. These are live reads, so late arrivals, identity changes and erasure may reorder later pages. A cursor is not a saved audience.

Latency qualification uses valid duration samples, independently of outcome classification. Exact observed counts and approximate percentiles remain separate qualities. Detail operations and representative measuring requests have their own criteria, read times, caps and omissions. A missing detail leg has unknown omitted totals. A complete aggregate is not proof that its bounded representative requests enumerate the population. A fully expired window is outside_history, distinct from a measured zero and from unavailable history authority.

Person links open the current story. Trace links open current evidence for the identified measuring span, potentially partial or erased. Neither link freezes a percentile calculation; account aggregates have no aggregate viewer link.

Account objectives and original triggers

get_account_slo_burn is a fresh single-rule read at one UTC instant, with complete same-revision objective, controls, actual policy and requested and effective intervals. It has no cursor or hypothetical overrides. get_account_objective_alert_evidence follows an alert UUID to its immutable original revision and measurement; later rule edits and traffic do not replace it. Null decisions mean not evaluated. Current source permissions, policy, ownership, privacy and history lifetime govern both reads. Withheld history retains permitted receipts without account measurements. Neither response has an aggregate proof URL or invented person or trace samples. Ordinary exact person and trace links are contextual current evidence and may be partial or erased.

Declared account value reads

Financial impact and value triage preserve complete owner totals, denominators and exact remainders before their output limit. Their derived evidence identifies the re-runnable absolute query, with aggregation and population descriptors. Current identity and business snapshots are separate provenance; they are not one global snapshot. Unknown incoming completeness or account allocation is disclosed with its effect on the conclusion.

Money and large nano-USD figures are decimal strings. Customer account types, exact keys, plan and tier labels cross the shared untrusted-data boundary. A whole argument value is separate from its display label; never copy a shortened display label into an account selector. A single issue may have a live proof link. Unanchored unions and account spend have no account or list proof page. A proof baseline is non-content comparison metadata, not permission or an immutable saved amount. See Account business declarations.

Financial source coverage and live proofs

Financial result citations identify derived totals and their real population, requested and effective window, current identity and account snapshots and validation pointers. Incident citations use the nested impact population and retain the separate local incident version and link mapping. A citation to a full total does not make a capped account row list complete. Keep exact buckets, coverage, unshown totals, attribution gaps and unknown ingestion; never sum display rows. Optional account-profile and technical-impact enrichment has no combined monetary total.

Scope or policy refusal, required-source failure, outside-retention and unsupported-only incident insufficiency supply no measured money. A complete retained empty cohort differs from those states. Exact jobs exceeding a bound fail as a whole; no successful partial amount follows. Issue and incident proof links open a live read under current authority. Their exact absolute selectors and clock-independent baseline compare only equal query identities and versions. They neither restore an earlier amount nor provide immutable financial evidence. Account declaration and model-cost reads have rerunnable query evidence, with no invented account proof URL.

Pictures of person timeline pages

Charts in chat owns the one-page picture contract, count and selection limits, project boundary and image fallback. Use the evidence and pagination rules above for the underlying timeline read.