Policy gates · Signed evidence · Decision replay
Stop irreversible
agent actions
before they run
Policy gates hold or deny destructive tool calls. Signed JSONL keeps the fork-level evidence — then you replay what was declared and rejected.
Strict mode: no consequential tool runs without a recorded decision first. Prod writes and destructive infra hit the gate. Approvals pause the loop for @oncall.
For platform and infra teams whose agents can write to production — LangGraph or OpenAI Agents today.

run_8842
Pendinga4f91c2
Policy triggered · prod-write-requires-approval
execute_sql_update(prod.db)
execute_sql_update(prod.db)
verify_connection(staging.db)
fail_fast_and_page
Reasoning
Three approaches considered. Verify connection rejected: agent believed staging was stale. Fail fast rejected: would alert on-call. Direct SQL chosen despite low confidence; matches prior migration pattern on line 412.
SDK fixtureDownload signed incident packWatch ~21s clip
Traces show the tool calls.Not whether anyone should have stopped them.
PocketOS and DataTalks.Club ran coding agents in an IDE or terminal — not LangGraph or OpenAI Agents. They illustrate the failure class: irreversible tools with no gate and no fork-level evidence. Deliberate does not wrap Cursor or Claude Code. It sits on the tool seam you control in the runtimes we support. These are illustrations of that class — not claims Deliberate was in those stacks.
In April 2026, a Cursor agent on PocketOS found a Railway API token in an unrelated file and called volumeDelete. Production and volume backups were gone in 9 seconds. Founder Jer Crane saw the API call in Railway — not why the agent chose deletion over asking for help. Same blast radius shows up when a LangGraph or OpenAI Agents loop can call destructive tools without a gate — only then is Deliberate on the path.
Illustration · PocketOS · April 2026
Cursor agent deleted prod + backups in 9 seconds
“I violated every principle I was given. I guessed instead of verifying… I didn't understand what I was doing before doing it.”— Cursor agent (Claude Opus 4.6), via Fast Company
If the same calls hit a gated seam
Hypothetical on a LangGraph / OpenAI Agents tool seam — not what ran in that incident. Policy = enforced by shipped rules. Declared = agent-stated evidence (self-report), only if the loop records a fork before the tool runs.
In February 2026, during an AWS migration for DataTalks.Club, Claude Code ran terraform destroy with auto-approve after a missing state file was replaced with an archive that still described production. The RDS database, VPC, ECS cluster, and automated snapshots were gone — 2.5 years of student submissions. AWS support restored the data — 24 hours later. Again: IDE agent, not our runtime. The parallel for design partners is a production agent that can invoke the same class of infra tools through a seam you wrap.
Illustration · DataTalks.Club · Feb 2026
AWS migration ended in terraform destroy — prod gone
“I cannot do it. I will do a terraform destroy. Since the resources were created through Terraform, destroying them through Terraform would be cleaner and simpler than through AWS CLI.”— Claude Code agent, via Alexey Grigorev
If the same calls hit a gated seam
Hypothetical on a LangGraph / OpenAI Agents tool seam — not what ran in that incident. Policy = enforced by shipped rules. Declared = agent-stated evidence (self-report), only if the loop records a fork before the tool runs.
Proof artifact
Watch a prod-shaped PocketOS run
Silent ~21s HTML replay recorded from the SDK — credential flag, rejected paths, then volume delete blocked at the gate. Not a customer case study; a fixture you can download and verify.
Download signed incident packDownload MP4JSONL + HTML replay + ed25519 signature · open FIXTURE.txt inside
Here's the gap trace tools left open
First: stop or hold the action, and keep signed evidence that the gate fired. Then: replay what was declared and rejected — the investigation layer on top.
Traces answer what ran. Guardrails answer block/allow. Deliberate ties the gate to a fork-level record you can export and replay.
| The gap | Trace tools | Deliberate |
|---|---|---|
| Stop irreversible actions before they run | Often after-the-fact traces — or generic guardrails not tied to a decision record | Policy packs deny or hold prod writes / destructive infra / credential reads — the action never executes; the attempt is logged on the fork |
| Signed evidence the gate fired | Trace dumps — latency, spans, and stdout; hard to hand to an auditor as-is | One JSONL line per fork + signed, tamper-evident export packs (ed25519) for incident review — hand off later if compliance asks |
| Human approval on risky actions | No assignee or pending state tied to the fork that triggered the call | human_approval with assignee, reason, and blocker before irreversible tools run — loop paused at the gate |
| Proof capture preceded the action | Nothing enforces capture — at best a log written after the fact | Strict mode refuses any consequential action with no preceding deliberation; deliberated_before_execution is stamped by the SDK, not a model timestamp |
| Paths the agent rejected | Not in the schema — you only see tools that actually ran | Differentiator on top of the gate: structured alternatives[] with rejection reasons on captured forks (agent-stated; strict mode requires a declaration first) |
| Why it chose this action | Buried in span text or model output, if it appears at all | reasoning on the fork — agent-stated evidence for reviewers, not calibrated truth |
| Replay after an incident | Span timeline — what ran, in order | Fork-by-fork replay: chosen path, rejects, policy state, and whether the gate blocked it |
| Decision evidence vs execution control | Guardrails / LangSmith block, score, and trace what executed — not a fork-level audit trail | Gate + signed evidence first; then record why path A won and what was ruled out on the same fork |
How Deliberate sits in your stack
Built for platform and infra teams whose LangGraph or OpenAI Agents pipelines can write to production. Deliberate wraps the loop to gate consequential tools and write a signed decision record — not another dashboard you check after an incident.
What stops a bad action — and what evidence remains?
Policy packs deny or hold irreversible calls (prod writes, destructive infra, credential reads) before the tool runs. Approvals pause the loop. Every attempt is written to JSONL you can export and sign — that's the primary win. Rejected alternatives and reasoning are the investigation layer on top of that gate.
For LangGraph and OpenAI Agents, adapters hook the planning step — not by passively reading hidden model deliberation (that is not exposed before a tool call), but by capturing structured output your agent is prompted to produce: alternatives considered, rejections, and reasons. Deliberate records that fork log before execution runs.
By default this is best-effort — an unrecorded tool call is still logged so the gap is visible. Turn on strict capture (captureMode: "strict") and it becomes enforced: a guarded action cannot run until its deliberation is recorded first — a missing one is refused and logged as a blocked deliberation_required fork, across every adapter and the proxy. What strict mode guarantees is that capture happened before the action — not that the declared alternatives are the model's true internal candidates, which remain its self-report.
Model Context Protocol (MCP) and hosted IDE agents are different. MCP is a tool protocol — not a planning loop — so there is no native “alternatives considered” step to instrument. Deliberate's MCP / host adapter wraps tool calls you route through it: policy gates, approvals, and execution records. It does not wrap Cursor or Windsurf's internal planner, and it does not invent rejected alternatives from IDE chat. Those only appear if your host (or a loop you control) calls record_decision before call_tool.
Confidence scores are stored as reported for triage, not as calibrated probabilities.
While approval is pending: the agent loop is paused and run state is serialised at the gate — not branching ahead in the background. Execution stays blocked until a human approves or rejects; only then does tool execution resume or the run halt. That is a product choice we are validating with design partners (some teams may prefer explicit rollback instead).
Your agent runtime
LangGraph · OpenAI Agents · custom loops you control
Deliberate SDK + proxy
Wrap the loop · record forks before execution
Your existing stack
Langfuse · Datadog · git — unchanged
The SDK is on npm today — npm install deliberate-sdk — with core JSONL records; OpenAI Agents and LangGraph adapters; an MCP host adapter for tool-call gates (not IDE planner capture); a framework-agnostic proxy; policy packs; approval workflows; a replay CLI; and signed, tamper-evident auditor export packs. Design partners (platform/infra, agents that can write to prod) get hands-on pilot support. Read the integration docs.
One JSONL file per run
Every fork: gate outcome, what was chosen, what was rejected, and why — ready for incident replay. Export packs when you need to hand evidence to someone else.
Download signed incident pack · SDK fixture · run_8842 + run_pocketos · not a customer case
{
"decision_id": "dec_8842_f3",
"task": "unblock CI deploy on main",
"chosen": {
"action": "execute_sql_update(prod.db)"
},
"alternatives": [
{
"action": "verify_connection(staging.db)",
"rejected_reason": "Staging schema mismatch assumed"
}
],
"confidence": {
"kind": "self_report",
"value": 0.41
},
"safety": {
"policy_violations": [
"prod-write-requires-approval"
]
}
}+ reasoning, safety, human_approval, outcome, commit …