- Trace the three-page cursor chain and count records.
- Test a repeated cursor and a permitted empty intermediate page.
- State how changes during collection could affect completeness.
An automation that processes the first page successfully may still omit most records. Pagination is part of the correctness contract, not only an API convenience. Use a fictional three-page inventory to reason about coverage and changes during collection.
Read the provider pagination contract
The fixture response contains items and nextCursor. A missing cursor marks completion; a full page alone does not prove another page exists or that the scan is finished. Preserve the cursor chain and record page counts. Distinguish a provider-issued opaque cursor from an arithmetic offset. Do not ask an assistant to invent a cursor by incrementing characters unless the API explicitly documents that behavior.
Keep identity and ordering stable
If records are inserted or deleted while an offset-based scan runs, later pages can shift. Decide whether the task requires a snapshot, a stable ordering key or a documented best-effort collection. Deduplicate by the appropriate record identity without hiding legitimate updates. A row count matching yesterday’s total is not proof that the same population was visited. Preserve skipped or failed page requests so the final report does not confuse partial collection with complete processing.
Test the stopping and repetition cases
The local fixture has pageA pointing toB, BtoC and Cto no cursor. Verify that every page is processed once and that a repeated cursor produces a controlled error instead of an infinite loop. Include an empty page that still has a next cursor if the contract permits it. Ask AI to identify a completeness invariant, then check it against the page fixtures. Report the collection boundary and any live-change uncertainty explicitly.
Fictional worked example — Cursor chain
Supplied input
Cursors: A→B, B→C, C→null; page item counts2,2,1
Example result to inspect
Three pages, five records; stop only after C
The terminal cursor state, not the first full page, establishes the fixture collection boundary.
This is an authored teaching example, not a recorded live provider run or an independent performance test.
Make the idea concrete.
- Trace the three-page cursor chain and count records.
- Test a repeated cursor and a permitted empty intermediate page.
- State how changes during collection could affect completeness.
What a useful outcome looks like
The documented terminal cursor state defines completion for the supplied contract.
Ask for reasoning you can verify.
Use fictional or permitted data. This is a copyable brief for a separate approved model; no model is called from this article.
Help me review this fictional reliable ai automations exercise: Track cursors, stable ordering and a clear stopping condition. I will supply the original input, my expected result and the actual transformation. Explain record coverage, identify unsupported assumptions about live-change uncertainty, and propose one bounded negative control. Keep observations separate from hypotheses; do not invent output or act on external systems.
Turn reading into a reviewed checkpoint.
Complete the manual exercise, review each item, then answer the evidence question. This records self-study, not independent assessment of expertise.
Review the checklist and pass the question to save this lesson.
Primary references
References support further checking; cited organizations do not endorse AgentX. This guide is original AI-assisted educational content with illustrative examples. Read the editorial policy or report a correction.
Continue with a related task.
Specify the trigger before connecting an action
Define eligible events, payload versions and exclusions for an automation.
Make repeated delivery safe
Use an operation identity to prevent duplicate effects.
Retry only failures that can benefit from another attempt
Separate transient conditions from permanent input and authorization errors.