English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Español · Português · Deutsch · Français
Truquence
Check supplied workflow runs against explicit expectations, capture local hook events, and verify a receipt ledger offline.
Install
Python 3.10+. Recorder commands require POSIX; native hook setup also needs /usr/bin/cc.
python -m pip install truquence
truquence --help
truquence-recorder --help
Core and Recorder use the standard library. Add MCP:
python -m pip install 'truquence[mcp]'
truquence-mcp --help
For the unreleased 0.3.0 candidate, install its local wheel. PyPI 0.2.0 has no MCP or Recorder entry point.
Record a synthetic event
printf '%s\n' '{"hook_event_name":"PreToolUse","session_id":"example-session","cwd":"/example","tool_name":"Bash","tool_use_id":"example-call","tool_input":{"command":"echo hello"}}' | truquence-recorder hook
truquence-recorder verify
The hook prints {}. Verification reports integrity: SELF_CONSISTENT; authenticity and completeness remain UNKNOWN. This writes to your local ledger. Recorder setup and limits.
For AI agents
Start truquence-mcp over stdio. Call truquence_accept with contract_json, execution_json and source (n8n or make). Each JSON text is limited to 1 MiB. Runnable MCP example and schemas.
Read status and gateBlocked. FAIL and UNKNOWN block acceptance; PASS concerns supplied records only. No command authorizes a retry or proves an external action happened.
Evidence levels: passive capture describes hook collection, hook assertions are self_reported, and supplied workflow exports are imported. None is independent observation.
Metadata
Release files for truquence 0.3.0
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 | |
|---|---|---|---|---|
| truquence-0.3.0.tar.gz | 95.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| truquence-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 148.6 kB
Release files / truquence-0.3.0.tar.gz
| Download URL | truquence-0.3.0.tar.gz |
|---|---|
| Size | 95.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cc5d144e71ca4bba887df7ebe695e52c059ccb93aa2fa1365bdf6b630f824bb
|
|
BLAKE2b-256 checksum How to use checksums |
a77ed5539cc6d2dca14a5174d7feca8423c7549a8b2595b88d7553c208d3cd1f
|
| 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 Oct 21, 2026.
Transparency logRelease files / truquence-0.3.0-py3-none-any.whl
| Download URL | truquence-0.3.0-py3-none-any.whl |
|---|---|
| Size | 52.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22ef520a912b0881b494cd62288f8166ab542ee49a24effe6aa14185b9964dd9
|
|
BLAKE2b-256 checksum How to use checksums |
bd826b90df2dcc0c4f156bbccfa415e7f252edbad7b9ac3a398e28e76842e9d5
|
| 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 Oct 21, 2026.
Transparency logSecurity for truquence 0.3.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for truquence-0.3.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 Oct 21, 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.