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
  Seal:     sealed at record 2

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.5.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.5.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.5.0
File Size Uploaded Provenance Actions
rootsign-0.5.0.tar.gz 8.8 MB With provenance Details for rootsign-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 9.0 MB

Release files / rootsign-0.5.0.tar.gz

Download URL rootsign-0.5.0.tar.gz
Size 8.8 MB
Tags Source
SHA-256 checksum
How to use checksums
a3642392799dcbd8bfa370e7912af51c5d0f048faa6bfa001376f692f12f5c96
BLAKE2b-256 checksum
How to use checksums
3f2189edc3d5b4a3d14e2b0fe1252e5703c8aa61119be5828a6946cc4f4e4223
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 29, 2026.

Transparency log

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

Download URL rootsign-0.5.0-py3-none-any.whl
Size 226.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b891f6f695aa68fa47f1f712cb11a25bc868b01d619c29b265f241dc0e094f6e
BLAKE2b-256 checksum
How to use checksums
17b56e5eb66d8d5c542ab94eab991bdd799938575b19ac49fab98353a9dd8fc8
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 29, 2026.

Transparency log

Security for rootsign 0.5.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.5.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 29, 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