How cygnux-labs/tracekit works
Tracekit instruments AI-agent tool and model activity, evaluates calls before execution, and records decisions and results in a signed, append-only run log. Users export run evidence and verify it offline; optional witness, viewing, and causal-analysis capabilities support audit and investigation. The README documents the principal workflow and product capabilities; sampled source and the SOURCE INDEX support the signer, policy, storage, and verification layers, but do not expose every runtime connection.
Main entry points: service.py Signer service · pipeline.py Record writer · bundle.py Run bundles · claude_code.py Framework hooks
Components 21
Capture and control
- Framework hooks
tracekit/integrations/claude_code.py - Python client
tracekit/sdk/client.py - Signer transport
tracekit/transport/http.py - Policy engine
tracekit/policy2/engine.py - Approval handling
tracekit/reviewer.py
Signing and storage
- Signer service
tracekit/signer/service.py - Record writer
tracekit/signer/pipeline.py - Canonical format and crypto
tracekit/format/canon.py - Record storage
tracekit/storage/postgres.py - Merkle trees
tracekit/merkle/__init__.py
Evidence and assurance
- Run bundles
tracekit/bundle.py - Python verifier
tracekit/verify/v2.py - TypeScript verifier
sdk/typescript/src/verify/index.ts - Witness service
tracekit/tlog_witness.py - Transparency anchoring
tracekit/anchor/rekor2.py
Operations and analysis
- CLI and run viewer
tracekit/cli.py - Telemetry ingestion
tracekit/ingest.py - Run explanation and replay
tracekit/why/replay.py
Other components
- Agent framework
- Operator
- External witness network
Connections 20
- Agent framework → Framework hooks: runs through
- Framework hooks → Python client: records calls
tracekit/integrations/claude_code.py - Python client → Signer transport: sends RPC
tracekit/sdk/client.py - Signer transport → Signer service: routes requests
tracekit/transport/http.py - Signer service → Policy engine: checks policy
tracekit/signer/service.py - Signer service → Approval handling: handles reviews
tracekit/reviewer.py - Signer service → Record writer: submits records
tracekit/signer/pipeline.py - Record writer → Canonical format and crypto: signs records
tracekit/signer/pipeline.py - Record writer → Record storage: appends batches
tracekit/signer/pipeline.py - Record storage → Merkle trees: maintains tree
tracekit/storage/postgres.py - Operator → CLI and run viewer: exports and views
- CLI and run viewer → Run bundles: exports run
- Run bundles → Python verifier: verifies offline
tracekit/verify/v2.py - Run bundles → TypeScript verifier: verifies offline
- Operator → Python verifier: checks evidence
- Signer service → Transparency anchoring: publishes checkpoints
tracekit/signer/service.py - Transparency anchoring → External witness network: submits checkpoints
- External witness network → Witness service: cosigns trees
tracekit/tlog_witness.py - Operator → Run explanation and replay: investigates runs
- Signer service → Telemetry ingestion: accepts telemetry