Skip to main content

RootSign

Tamper-evident provenance logging for production AI agents.

PyPI Downloads License: Apache 2.0 CI Stars Python 3.11+ Docs X LinkedIn

RootSign demo: pip install rootsign, two traced tool calls, rootsign verify --local reports VALID, then TAMPERED for an edited record and INCOMPLETE for a deleted one

RootSign is an open-source Python SDK that records each tool call your AI agent makes as a hash-chained record. When something goes wrong, such as a wrong refund or a leaked record, you can show what the agent did, in what order and on whose approval, and rootsign verify tells you whether anyone changed the record afterwards.

Each record carries the SHA-256 hash of the one before it, so editing a hashed field breaks the chain at that record. You add three calls around your existing code; your agent logic does not change.

RootSign is a Providex AI product: the agent capture layer of the Providex AI Agent Accountability Platform.

Documentation: docs.getprovidex.com

Quickstart

A verified hash chain in under a minute, with no database, no Docker and no API key. You need Python 3.11 or 3.12.

pip install rootsign

Save this as agent.py. The three numbered lines are the only RootSign code:

import asyncio, rootsign

rootsign.init(agent="invoice-agent", risk_tier="high")        # 1. once, at startup

@rootsign.trace()                                            # 2. per tool
async def send_invoice(customer_id: str, amount: float) -> str:
    return "sent"

@rootsign.trace()
async def log_payment(customer_id: str, amount: float) -> str:
    return "logged"

async def main():
    async with rootsign.session(objective="invoice ACME") as ctx:   # 3. per run
        await send_invoice("acme-corp", 1500.00)
        await log_payment("acme-corp", 1500.00)
    print(ctx.session_id)

asyncio.run(main())

Run it. It prints the session ID; use yours in place of the one below:

python agent.py
rootsign verify --local ~/.rootsign/sessions/88f15492-3be7-4f7e-af16-3f247b1134a9.jsonl
VALID ✓  —  2 records, chain intact
  Session:  88f15492-3be7-4f7e-af16-3f247b1134a9

Edit a record and verify reports TAMPERED with exit code 1; delete one from the middle and it reports INCOMPLETE with exit code 2. The quickstart walks through both and turns the session into an evidence bundle for a reviewer. How it works lists what verify cannot detect.

Documentation

Section Pages
Get started Introduction · Quickstart · How it works
Integrations LangGraph and LangChain · CrewAI · MCP · Any Python function
Guides Verify a session · Export an evidence bundle · Require human approval · Redact PII · Capture decisions · Run on PostgreSQL · Without init() · Batch writes · Cloud and sync (preview)
Reference Python API · Configuration · Errors · rootsign CLI · rootsign-admin CLI · Evidence bundle format · Ingest spec v1
Project Framework support · Changelog · Roadmap · Design decisions · Security and contributing

Runnable apps for each integration are in examples/.

Status

RootSign is at v0.4.0 and classified as alpha. The five calls init, session, wrap_tools, trace and verify are the stable public surface. Cloud mode is a preview: the SDK's HTTP transport and offline spool ship today, but the hosted ingest service is not live yet. See the roadmap for what comes next and the changelog for what changed.

Contributing

We welcome contributions. See CONTRIBUTING.md for development setup, coding standards and the PR process. By submitting a contribution, you agree to the CLA.

Questions, ideas and feedback from using RootSign go in GitHub Discussions. For reproducible bugs and concrete feature requests, open a GitHub issue.

License

Apache License 2.0. See LICENSE and NOTICE.

Security

To report a vulnerability, see SECURITY.md. Do not open a public GitHub issue.

Metadata

Release files for rootsign 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rootsign 0.4.0
File Size Uploaded Provenance Actions
rootsign-0.4.0.tar.gz 8.6 MB With provenance Details for rootsign-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rootsign 0.4.0
File Interpreter ABI Platform Actions
rootsign-0.4.0-py3-none-any.whl Python 3 none any Details for rootsign-0.4.0-py3-none-any.whl

Total release size: 8.9 MB

Release files / rootsign-0.4.0.tar.gz

Download URL rootsign-0.4.0.tar.gz
Size 8.6 MB
Tags Source
SHA-256 checksum
How to use checksums
990db7538aea1b5a57efdd7fb2a49d965ece92033fe2fa9fd814ec71538b1643
BLAKE2b-256 checksum
How to use checksums
0d74506ce631ee39591130957a50feb2fa27a65223ac20091f5153d5897c18b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Release files / rootsign-0.4.0-py3-none-any.whl

Download URL rootsign-0.4.0-py3-none-any.whl
Size 213.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
594aa33cea44ed588f28f27e01d5a78496af33d23aea8e47d966b71c893eed36
BLAKE2b-256 checksum
How to use checksums
99d8c106bb28701d96bbfdee03cd10e89fd3dd242bbda0a50e04994cb64c6c44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Security for rootsign 0.4.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rootsign-0.4.0.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 Nov 27, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page