CursorProof
Check that cursor pagination returns the correct stream, not just successful pages.
Every request can return 200 OK while the traversal loses or duplicates records, or
enters a cursor cycle. CursorProof checks the complete traversal and can compare it
with an independent oracle.
Install
Requires Python 3.13 or newer.
pipx install cursorproof
# or
python -m pip install cursorproof
Try the demo
Install from the checkout with uv:
uv sync
To install the checkout as an isolated CLI tool instead, run uv tool install ..
Start the demo API in one terminal:
uv run python examples/demo_api.py
In another terminal, run the broken example:
uv run cursorproof run examples/broken.yml
Replay its saved trace offline with:
uv run cursorproof replay cursorproof-repro.json
The demo has 40 records with repeated sort values. /broken continues using only
the timestamp and skips records at page boundaries despite successful responses.
CursorProof reports CP003 MISSING_ITEMS and differences between limits. The
/correct endpoint also uses the unique ID; try it with:
uv run cursorproof run examples/correct.yml --format json --repro correct-repro.json
Validate a configuration without making requests with:
uv run cursorproof check examples/correct.yml
See uv run cursorproof --help for all commands.
Configure your API
CursorProof accepts YAML and JSON configurations. The user guide covers response paths, ordering, defaults, and validation.
An independent oracle lets CursorProof detect missing and unexpected records. Without one, CursorProof can check internal consistency and ordering, but cannot establish completeness. See Oracle for HTTP and command examples.
Checks and safety
CursorProof supports static traversals, snapshots, live keyset checks, mutation hooks, boundary testing, and cursor binding. These checks can make real requests or execute configured commands. Review the user guide before using mutation or boundary commands against data you care about.
The guide also documents findings and exit codes and trace replay and privacy.
Development
uv sync --locked
uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run mypy
uv build
The core analyzer has no network I/O. The runner extracts observations and the CLI renders reports. Tests use HTTPX transports and Hypothesis, plus a local demo API.
Metadata
Release files for cursorproof 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cursorproof-0.1.1.tar.gz | 43.9 kB | With provenance | Details for cursorproof-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cursorproof-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for cursorproof-0.1.1-py3-none-any.whl |
Total release size: 76.1 kB
Release files / cursorproof-0.1.1.tar.gz
| Download URL | cursorproof-0.1.1.tar.gz |
|---|---|
| Size | 43.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fc9c6ab4c14980c34432756780a063691137e8ef0fc713a7a00afa7c3ed4e43
|
|
BLAKE2b-256 checksum How to use checksums |
c7accc6be86d6bb316ca84c089e533e476d8af78eee0887de8a3c4f39feae81b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logRelease files / cursorproof-0.1.1-py3-none-any.whl
| Download URL | cursorproof-0.1.1-py3-none-any.whl |
|---|---|
| Size | 32.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d7e55265efeaa279f631714ee1c6c5efa763317f81252f5c3f6384b5567f740
|
|
BLAKE2b-256 checksum How to use checksums |
f7e6ffac64f73c036e1db16de18c0e0014880134d34280aeb3f5188c16e92c52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logSecurity for cursorproof 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cursorproof-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.