An agent system wrapped in the production machinery required to ship safely: gateway, policy, observability, evaluation, caching and security.
How a production agent stops an unsafe action before it runs
Step 1 of 5
Gateway
The request arrives at the gateway, which authenticates the user, applies rate limits and checks the cache for an identical earlier answer. A cache hit never reaches the agent.
Step 2 of 5
Agent
On a cache miss the orchestrator runs the agent. For this request it proposes a tool call: delete every record for a customer.
Step 3 of 5
Policy layer
Before any tool runs, the policy engine checks the action against the caller's role. This user can read records but not delete them, so the action is denied and the denial is logged.
Step 4 of 5
Tools
Approved actions run through the tool registry with validated arguments and a timeout. The blocked deletion never gets here.
Step 5 of 5
Trace and score
Every step, including the denial, is written to the trace and audit log, and a sample is scored by online evaluation so a pattern of denials shows up on a dashboard.
The agent can propose anything; the policy layer decides what is allowed to execute.
User
Gateway
Agent
Caching
Policy layer
Tools
Observability
Evaluation
APIs
clientservicemodeldatabaseagentexternal
Explanation
Every agent action passes through a policy layer that enforces authorisation, rate limits and safety. The gateway handles auth, caching and routing. Every step is traced for observability and scored for evaluation.