Skip to content
Providex-AIPublic

About

Rootsign is an open-source tamper-evident decision and action provenance logging library for AI agents

Topics

Resources

Contributing

Security policy

Stars

13 stars

Watchers

0 watching

Forks

Repository files navigation

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

About

Rootsign is an open-source tamper-evident decision and action provenance logging library for AI agents

Topics

Resources

Contributing

Security policy

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages