Repository navigation
Policy Guide
The signer decides every tool call with a policy. The packs Tracekit ships cover the common cases; your own policy adds the rules that are yours: a command your company never lets an agent run, a tool only your team uses. This page takes one rule from a file to a running signer. Everything it uses is in the reference.
version: '2026.11-acme-1'
description: Acme's agents
extends: packs/server.yamlextends keeps the pack's rules and adds yours. Pick the pack for where your agents run: server.yaml for agents in
your product or on servers, dev.yaml for coding agents on a laptop (the laptop default: coding.yaml plus holds on
the costly short list) (packs shipped). The path is relative to your file. The container
image and the Helm charts put the packs in /etc/tracekit/packs, so a policy at /etc/tracekit/policy.yaml extends
packs/server.yaml (deploy). Anywhere else, link the installed packs next to your file once (in system
mode, in /etc/tracekit with sudo and /opt/tracekit/bin/python -I):
ln -s "$(python -c 'import os, tracekit.policy2 as p; print(os.path.join(os.path.dirname(p.__file__), "packs"))')" packsask:
- id: ACME-A001
class: shell
pattern: '^terraform (apply|destroy)'
reason: changing infrastructure from an agent session
remedy: A person approves the held call, or runs it themselves.A rule sits under deny (the call is blocked), ask (it is held until a person approves it) or flag (it runs and
the signed record marks it). When several rules match, the strictest wins. class says which tools the rule reads
(shell, file, http, payment and the rest: classes and fields); pattern
is matched against what the call does as the signer reads it (patterns), and
unless exempts the cases you name. The id is yours; the signer's own ids (TK-HOLD, TK-SHELL-PARSE and the others
in decisions) are refused.
tracekit policy lint acme.yaml # every error at once
tracekit policy compile acme.yaml # the canonical policy and its policy_hashThe policy_hash is what every decision made under this policy will carry, so a record always says which version of
your rules decided it. A signer refuses to start on a policy that doesn't lint.
Put a new rule under flag, run it for a few days, and watch what it marks in tracekit view: each decision shows its
verdict and the rule ids that matched. When it marks only what it should, move it to ask or deny.
Past calls can't be decided again under a new rule: a signed run keeps a commitment to each call's arguments, not the
arguments themselves. tracekit policy backtest replays detection (sequences, limits and respond) over past runs,
not new deny, ask or flag rules.
-
Agents on servers: set
policy: /etc/tracekit/policy.yamlin the signer'ssigner.yaml(Helm'ssigner.policy, the compose stack'spolicy.yaml); deploy. -
Coding agents on laptops: system mode takes the file at install, root-owned so the agent can't change it:
sudo /opt/tracekit/bin/python -I -m tracekit init --v2 --user <agent user> --approver <admin> --policy /etc/tracekit/policy.yaml(deploy). -
To try it on your machine: run a signer of your own, as the next section shows. The dev signer that
tracekit upor an SDK agent starts always runs the built-in dev pack.
Restart the signer to load a change.
The dev signer is the dev pack (dev.yaml: the coding, browser, data, network, cloud, comms and core packs, two demo
rules, unmapped tools flagged), and TRACEKIT_POLICY isn't read by it: that variable is the v1 engine's. To run your
own policy, start a signer from a signer.yaml that names it. Keep the files in a folder only you can write to
(mkdir -m 700 ~/tracekit-own && cd ~/tracekit-own); paths are relative to the file, so the socket is made there:
data_dir: data
socket: signer.sock
policy: policy.yaml
content: {retain: true} # keep redacted content, so `tracekit view` and `tracekit why` can show it
approvals: {self_approval: allow} # you answer your own agent's holds; the run's assurance stays devtracekit signer serve --config signer.yaml # leave it running
export TRACEKIT_SIGNER=$PWD/signer.sock # in the shell that runs your agent: the SDK uses this signer
tracekit approvals show ID --config signer.yaml # why a call was held, from your policy (asks that signer)
tracekit approvals --signer $PWD/signer.sock approve ID # (or with TRACEKIT_SIGNER exported, without --signer)
tracekit last --config signer.yaml # export and verify the most recent finished runA configured signer refuses the user that runs the agent as the approver of its own holds unless approvals: says
self_approval: allow (or lists another identity under approvers). With TRACEKIT_SIGNER set, tracekit last
without --config reads the dev signer's store and says so.
-
tracekit viewshows each call as it is decided: the verdict, the rule ids and the reason. - A held call waits in the viewer's approvals. A person answers it there, with
tracekit approvals approve ID, or from Slack (approvals); the agent's retry then runs. - Every decision is signed with the
policy_hash, so a run's bundle shows which policy decided each call, andtracekit verifychecks it offline.
Generated from docs/ at v1.8.1. Edit the docs in the repository, not here.
Get started
- Quickstart: the v2 signer
- Quickstarts
- Spending limits and receipts for any agent
- Quickstart: Claude Agent SDK
- Quickstart: Claude Code
- Quickstart: a custom agent
- Quickstart: LangChain and LangGraph
- Quickstart: MCP client
- Quickstart: OpenAI Agents SDK
- Coding agents other than Claude Code
- tracekit doctor
- Walkthrough: Tracekit end to end
How it works
- How Tracekit works
- Overview
- The life of a tool call
- The evidence format
- Verification and assurance
- Witnesses and monitoring
- Policy
- Approvals
- Detection and containment
- Capture and completeness
- Custody
- Provenance and tracekit why
- Deployment and isolation
- Storage, durability and performance
- Integrations
- Security model
- Architecture
- tracekit why: architecture
Integrations
- Integrations
- Adapters
- Signer API reference
- OpenTelemetry
- Remote clients
- Kubernetes agent-sandbox
- agentgateway
- agentsh and Tracekit
- Browser Use
- Claude Agent SDK
- Claude Code's sandbox
- Codex's sandbox
- CrewAI
- Docker MCP Gateway
- E2B
- Falco
- Gemini CLI's sandbox
- Google ADK
- Haystack
- Hermes Agent
- Inspect AI
- LangChain v1
- LangSmith Tool Gateway
- LiteLLM
- LlamaIndex
- MCP client
- microsandbox
- Microsoft Agent Framework
- OpenAI Agents SDK
- NVIDIA OpenShell
- Pydantic AI
- sandbox-runtime's proxy on its own
- Strands Agents
- Tetragon
- Vercel AI SDK
- Wassette
Policy and approvals
- Your own policy
- Policy reference
- Approvals
- Intent grants: approve costly payments once, with limits
- PCM 0.1: proof-carrying messages
- Findings
- tracekit audit
- Reading the model's reasoning
- Incidents and containment
- Webhooks
Deploy and operate
- Deploying the signer
- The signer as a container
- The signer on Kubernetes
- The compose stack
- Identity
- Tool executor
- A2A gateway
- Latent transfers and C2C
- MCP gateway
- LLM gateway
- Egress observation
- Witnesses
- Log monitor
- Record-key issuer
- Signer observability
- Viewer
- Event Horizon
- Viewer 1.4
- tracekit why: causal investigation and replay
- Migrating
- Platforms
- Deploy the public witness
Verify the evidence
- Tracekit for auditors
- Reading a v2 verify report
- Evidence format v2
- Auditor guide
- Sample evidence bundle
- Signing
- tracekit graph: what agents did across runs
- What Tracekit guarantees
Security and privacy
- Threat model: the v2 signer
- Threat model: the v1 laptop signer
- HTTP security checklist
- Threat-model review packet
- Privacy
- What the public witness sees
- Known limits and trade-offs
- What's stable
Compliance
- Compliance mapping
- EU AI Act
- ISO/IEC 42001
- NIST AI RMF and the Generative AI Profile
- OWASP Top 10 lists for LLM and agentic applications
Evaluation
Use cases and demos
- Use cases
- Demos
- Agent approvers within bounds
- A production bucket
- A production database
- Completeness and tamper evidence
- Detection and containment
- Network coverage: an egress observer
- Guardrails: allow, deny, or ask a person
- MCP tools, gated and recorded
- A production volume
- Prompt injection held by provenance
- Why: which input caused the action
Help