For engineers shipping LLM agents inside real companies

Ship AI agents that pass security review.

An engineering playbook plus a six-file toolkit: a fail-closed authorization map, a human-approval gate contract, an ephemeral sandbox profile, a state-graph template, a tamper-evident trajectory schema, and a deployment-gate checklist. Adapt them to your stack instead of deriving them from blog posts.

One-time payment · Instant download · 14-day money-back guarantee
Works with LangGraph · LlamaIndex · CrewAI · AutoGen · custom Python / TypeScript / Go
enterprise-ai-agent-blueprint.zip
enterprise-ai-agent-blueprint/
├─ 00-enterprise-ai-agent-blueprint.md   the master playbook
├─ LICENSE-TERMS.md                      license + refund terms
└─ toolkit/
   ├─ authorization_map.yaml   tool → autonomy → gate
   ├─ hitl_gate.yaml           async human-approval contract
   ├─ sandbox.yaml             ephemeral container, per-tool egress
   ├─ state_graph.yaml         states, transitions, durable store
   ├─ trajectory.schema.json   tamper-evident audit log
   └─ deployment-checklist.md  production sign-off

Agents don't fail in demos. They fail in review.

Security and architecture reviewers ask the same three questions of every agent. Most agents can't answer any of them.

1/

"What stops it from calling the wrong tool?"

A system prompt is not a control. Without consequence classification, one prompt injection is all that separates a read-only lookup from a production write or a payment.

authorization_map.yaml
2/

"Where does the code it runs actually run?"

Shell and code tools that share your process share your network, filesystem, and credentials. You cannot allowlist egress after the fact.

sandbox.yaml
3/

"Can you replay what it did?"

Print statements are not an audit trail. When a run goes wrong you need the full trajectory to inspect, and a checkpoint to resume from rather than a restart.

trajectory.schema.json · state_graph.yaml

One playbook and six configs you can drop into a repo.

Every item is a concrete artifact: a document or a config file. No video course, no slide deck.

The Master Playbook

The three failure modes, the reference architecture, the four non-negotiables, the consequence-classifier decision table, the human-in-the-loop gate contract, and the deployment gate checklist — the spine every config file hangs off.

Authorization Map + Gate Contract

Maps every tool to a consequence class, an autonomy level, and a gate policy. Unlisted tools fail closed to mandatory_approvalrequire_explicit_registration: true. Paired with hitl_gate.yaml: the async approve / reject / modify contract, never auto-approve on timeout.

Ephemeral Sandbox Profile

A minimal base image, network default none with a per-tool egress allowlist, CPU / memory / wall-clock / output caps on every run, read-only rootfs with no host mounts, read-only secret injection redacted from logs, and a container that is destroyed on return.

Resumable State Graph

Explicit states, transitions, and a fallback policy (max_retries_per_state, on_unexpected_state, per-state timeout), with a durable store — Postgres, or SQLite/file for single-node — so a crash resumes from the trajectory instead of restarting. State names line up with the trajectory schema's enum.

Trajectory Audit Schema

One event envelope per step — model prompt preview, tool input hash, exit code, consequence class, autonomy, gate decision, gate status, approver id — with a prev_event hash field for a tamper-evident chain. Enums match the authorization map and state graph.

Deployment Gate Checklist

24 checkboxes across sandboxing, authorization, the human gate, observability, resilience, and pre-launch testing — including a blocked "disaster run" — ending in a security, compliance, and engineering sign-off.

A real excerpt, not a screenshot.

The playbook's table of contents, and an excerpt from the authorization map.

00-enterprise-ai-agent-blueprint.md
  1. 0The thesis
  2. 1The three failure modes: the demo-vs-production cliff, the spaghetti loop, the missing gate
  3. 2The reference architecture and its four layers
  4. 3The four non-negotiables: sandboxing, authorization boundaries, trajectory observability, auditability & rollback
  5. 4The consequence-classifier decision table
  6. 5The human-in-the-loop gate contract
  7. 6The observability contract (schema)
  8. 7The deployment gate checklist
  9. 8Conclusion and the offer
toolkit/authorization_map.yaml
# Authorization Map — Consequence Classifier
# Version this file. It is the single source of truth
# for agent autonomy. Every change goes through code
# review BEFORE it reaches production.

tools:
  - name: knowledge_base_query
    consequence: read_only
    autonomy: full
    gate: none

  - name: stage_env_deploy
    consequence: stage_mutation
    autonomy: conditional
    gate: reviewer

  - name: prod_env_deploy
    consequence: prod_mutation
    autonomy: none
    gate: mandatory_approval

  - name: billing_charge
    consequence: billing
    autonomy: none
    gate: mandatory_approval

# Default policy for tools NOT listed above.
default_autonomy: none
default_gate: mandatory_approval
require_explicit_registration: true

Is this for you?

Buy it if

  • You're putting an LLM agent with tools into a company system, internal or customer-facing.
  • You need to get it through a security, architecture, or compliance review, and you'd like to do that once.
  • You'd rather adapt working configs than reconstruct them from scattered posts and framework docs.
  • You work in LangGraph, LlamaIndex, CrewAI, AutoGen, or your own loop in Python, TypeScript, or Go.

Skip it if

  • Your agent is a chat interface with no tools and no side effects.
  • You want a no-code builder or a hosted platform. This is files and documentation.
  • You're looking for a video course or a step-by-step tutorial for one specific framework.
  • You want someone to build it with you. That's the Sprint tier below, not the Blueprint alone.

Written by someone who has to pass these reviews too.

Wisam Damouny

Wisam Damouny

Software Technical Leader at Qlik

I build enterprise data pipelines and human-in-the-loop AI systems that run inside large organisations, where a mis-scoped tool call is a security incident and an unlogged decision is a compliance finding.

The Blueprint is the set of documents and configs I wanted at the start: the controls that get an agent through review, written down once so you don't have to reconstruct them.

Two ways to get it.

One-time payments. Instant download. Both include an internal commercial license for your engineering team.

Blueprint

All six files. You adapt them to your stack.

$149
one-time · lifetime updates
  • The master playbook (Markdown)
  • Authorization map, gate contract, sandbox profile, state graph, trajectory schema
  • The 24-point deployment gate checklist
  • Internal commercial license for your engineering org
  • Every future version, free
Get the Blueprint — $149
14-day money-back guarantee, no questions asked.

If the files aren't what this page says they are, reply to your receipt within 14 days and you get a full refund. Full terms in the refund policy.

Members' Vault — $29/mo

For Blueprint owners: a new agent pattern or config each month, a private community, and the member rate on 1:1 sessions.

Join →

1:1 Architecture Session — $379

Members only. A 90-minute working session on your agent, without buying the Sprint bundle again.

Book →
Checkout and receipts by Gumroad
Company invoice details supported
Download link by email within seconds

Take the checklist. It's free.

The Deployment Gate Checklist — 24 points ending in a security, compliance, and engineering sign-off — is the last file in the toolkit, and the one your reviewer will actually use. Get it now, decide about the rest later.

Get the free checklist

Questions engineers ask before buying

All of them, because the files sit around your agent rather than inside it. The authorization map, sandbox profile, state engine, and audit schema are framework-neutral and work with LangGraph, LlamaIndex, CrewAI, AutoGen, or a hand-rolled loop in Python, TypeScript, or Go, talking to OpenAI, Anthropic, Google, or local models via vLLM and Ollama.
It gives you the artifacts reviewers ask for: an authorization map that proves destructive actions are gated, a sandbox profile with per-tool egress, and a tamper-evident trajectory schema that makes every decision replayable. The deployment gate checklist walks a security, compliance, and engineering reviewer through it. No document makes you compliant by itself, but these are the controls a SOC 2 or ISO 27001 reviewer asks to see.
Yes. One purchase covers your immediate engineering organisation for internal use: adapt, deploy, and modify the files across your company's own services and projects. You can't resell or redistribute the files themselves. Full terms are here.
Yes. Gumroad emails a receipt immediately, and you can add your company name, address, and VAT number to it for an invoice. Expense it the way you'd expense a technical book.
That's the case it was written for. The files are designed to be added alongside an existing system: classify the tools you already have, wrap the runtime you already use, and start emitting the audit events you're already missing. The checklist tells you what's left.
No video, no hosted service, no framework plugin, no support beyond the Sprint tier. It's documentation and configuration files you adapt yourself. If you want to work through it with me, that's what the Sprint tier is for.
When the files change, because a new failure pattern shows up or a container standard moves, you get an email with the new package. Free, for as long as the product exists.
14 days, full refund, no questions. Reply to your receipt or email [email protected] with your order number. Details in the refund policy.