Repository navigation
Demos Codex Database
After a public incident report: in July 2026 a developer reported that GPT-5.6 Sol, OpenAI's model behind Codex,
deleted their whole production database (The Register); commentators blamed
the database's credentials being kept in a local .env file. OpenAI said the model is usually run in Full-Access
mode, without Codex's sandbox. The report doesn't say which commands ran, so here a
scripted coding agent takes one likely path under the dev pack, the signer's default for coding agents on a laptop:
it reads .env (flagged, TK-F005, a secret-looking path), runs the tests, then drops the database's schema with
psql "$DATABASE_URL" -c "DROP SCHEMA public CASCADE; …". The psql waits for a person (TK-A039, a drop, truncate
or unfiltered delete through a database client). The person rejects it with a reason; the agent's other calls run.
python examples/v2/demos/codex_database.py # POSIX
tracekit verify run.tkb --trust trust.jsonWhat the record shows. The .env read's policy.decision (flag, TK-F005: it ran, marked), then the psql's
(ask and the rule id) before it could run, the person's approval (reject, with the reason they gave), then the
signer's approval.refused (TK-APPROVAL-REJECTED) when the agent tries to run it anyway; no tool.result for it.
A call the person approves would show the approval, then its result.
Why it matters. The rule holds the statement itself, whatever mode the agent runs in and whatever the model says
it is doing: a DROP, TRUNCATE or unfiltered DELETE given to psql -c or mysql -e, a drop through
mongosh --eval and a flush through redis-cli wait for a person, and so do dropdb (TK-A001) and a framework's
reset (prisma migrate reset, rails db:drop, TK-A055). It reads the statement the line gives the client, so one run
from a file (psql -f reset.sql, psql < reset.sql), held in a variable the line doesn't set (psql -c "$SQL") or
sent through a database driver from code isn't held (what TK-A039 reads); keep production
credentials out of the agent's project.
transcript.txt · the example · packs · limits
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