tibet-trail
CLI audit trail reader for TIBET provenance tokens. Reads, searches, and monitors JSONL files written by tibet-core FileStore.
Install
pip install tibet-trail
Commands
# Show recent tokens (default: 20)
tibet-trail log audit.jsonl [-n 50] [--format json|csv|text]
# Search by action/actor/time
tibet-trail search audit.jsonl --actor jis:hub --action "ping.*" --since 1h
# Trace provenance chain
tibet-trail trace audit.jsonl <token_id> [--depth 50]
# Live follow (tail -f style)
tibet-trail watch audit.jsonl [--filter-actor jis:hub]
# Verify integrity
tibet-trail verify audit.jsonl [--key <hex>]
# Statistics
tibet-trail stats audit.jsonl [--format json]
# Export to file
tibet-trail export audit.jsonl output.csv --format csv
Time Filters
The --since flag accepts relative times: 30s, 5m, 1h, 2d, 1w or ISO timestamps.
Python API
from tibet_trail import TrailReader
reader = TrailReader("audit.jsonl")
# Last 10 tokens
for token in reader.log(n=10):
print(f"{token.timestamp}: {token.action} ({token.actor})")
# Search with regex
results = reader.search(action="ping.*", actor="jis:hub", since="1h")
# Trace chain
chain = reader.trace("tibet_20241217_abc12345")
# Verify integrity
report = reader.verify()
print(f"Integrity: {report['integrity']}")
# Stats
stats = reader.stats()
print(f"Total: {stats['total']}, Actors: {stats['actors']}")
Development
pip install -e ".[dev]"
pytest tests/ -v
License
MIT
Credits
Designed by Jasper van de Meent. Built by Jasper and Root AI as part of HumoticaOS.
Stack-positie: Groep evidence · Bootstrap = OSAPI-handshake naar tibet + jis (fail → snaft-rule + tibet-pol-rapport) · ← tibet-report · See STACK.md · See demo/golden-path/ for the spine end-to-end.
Enterprise
For private hub hosting, SLA support, custom integrations, or compliance guidance:
| Enterprise | enterprise@humotica.com |
| Support | support@humotica.com |
| Security | security@humotica.com |
See ENTERPRISE.md for details.
Release files for tibet-trail 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 | |
|---|---|---|---|
| tibet_trail-0.1.1.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tibet_trail-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.0 kB
Release files / tibet_trail-0.1.1.tar.gz
| Download URL | tibet_trail-0.1.1.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d70c4dc7f2dd21c67af820d6eb1675e35ec5c1b795cca166f36ff81f5aca11c
|
|
BLAKE2b-256 checksum How to use checksums |
1007f8f9d625b8a83f12f0b75252b2feabd79ca30bb43d76ce7751dd63b2d384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / tibet_trail-0.1.1-py3-none-any.whl
| Download URL | tibet_trail-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b5a309b82ce80d8a02cad4dbe0e16e215292c5366f43871a7ac5416fe6bea4a
|
|
BLAKE2b-256 checksum How to use checksums |
3ca425b7a6b9289bbafaac4d5371d26139a0cab70e13e67f8cb3b8ff17bf5f2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|