AI agents that ask before they write
An analyst that only reads, an agent that shuts itself down, and a ticket a person signs before anything is published.
Write request from an agent Example request
Raise the daily budget on one campaign.
- Campaign
- Harbourside, preschool, search
- Daily budget
-
Forty dollarsFifty-five dollars - Reason given
- Budget ran out before noon on five of seven days
- Inside the monthly cap
- Preview matches the platform's own validation
- Waiting for a person. The ticket works once.
How the analyst is tested Production figures
- Unit tests
- 106
- Cases in the frozen evaluation
- 50
- Safety or access failures
- 0
- Tools the agent can call
- Read-only, aggregate
Reconstructed view. The request shown is an example. The test and evaluation counts are real.
These are the rules I build AI agents under, and the agents I built for a marketing team that follow them.
The problem
An agent that can read your data is useful. An agent that can spend money, publish a reply or change a record on its own is a risk nobody signed up for.
What I built
- An analyst that only reads. A private LLM analyst answers marketing questions through a fixed set of warehouse tools that return totals. Query size is capped and it cannot see individual records.
- An agent that turns itself off. An operations agent lives on a virtual machine that starts when asked, works through five read-only tools, saves a checkpoint and shuts down.
- Writes need a ticket. MCP servers keep reads open. Any write produces a preview first, and a person approves it with a ticket that works once.
- A map agents read first. One maintained map lists the systems, the sources and who owns what. Agents read it before they act, and it is published for people too.
How it is tested
The analyst has 106 unit tests and a frozen 50-case evaluation that includes prompt-injection attempts, with zero safety failures. The operations agent is still a pilot.
Public reference code
Open-source synthetic-data examples of these governed tool and approval patterns are on GitHub: marketing-analyst-mcp and wordpress-content-mcp.
Stack
Python, Cloud Run, Cloud Tasks, Compute Engine, Gemini on Vertex AI, MCP, Claude Code, Codex.