Reading and acting are two different systems
The design splits the agent's world in two. On one side the agent reads, reasons and proposes. On the other side, code and people decide, and a separate service acts.
Nothing the agent writes crosses that line as a command. It crosses as a proposal. A proposal is a structured request that code can check, and that a person can approve or decline.
The split answers two risks from OWASP's 2026 list for LLM applications. Prompt injection is LLM01: text the agent reads changes what it does. Excessive agency is LLM03: the agent can do more than its job needs. You cannot fully stop the first, so you design out the second.
- AlertIntake opens or joins a case.
- ReadThe agent calls read-only tools. Each result records its coverage.
- ProposeThe agent writes a finding and a proposal in a fixed shape.
- CheckCode applies the policy and the catalogue. The default is deny.
- ApproveA signed-in person approves the exact action. It expires.
- ActThe action service runs it under its own short-lived token.
- VerifyA separate read-only identity reads live state.
- RecordEvery step goes to the append-only audit log.
Eight components and what each one owns
Every component should answer three questions. What state does it own? Which identity does it run as? What does it do when it fails? The table answers them for the reference design.
| Component | Job | State it owns | Identity | When it fails |
|---|---|---|---|---|
| Intake and case store | Turns alerts into cases and joins repeats to the same case. | Cases, their status history and the deduplication key. | The intake service's own identity. No access to response tools. | Queues alerts and acts on nothing. |
| Investigation tools | Answer the agent's questions with bounded, read-only queries. | Nothing. Each result goes to the evidence store with its coverage. | A read-only identity for the agent, scoped to the data it needs. | Records the gap as missing evidence. |
| Agent and model boundary | Reads evidence, writes findings and proposes actions. | Nothing durable. Its prompt, model and tool list are versioned configuration. | The same read-only identity. No standing write credential. | Writes a failed finding. A failure never becomes an action. |
| Policy check | Decides whether a proposal may go forward and which gate it needs. | The response policy and the action-class catalogue, both versioned. | Runs as code in the response service. The model cannot edit it. | Denies. |
| Approval gate | Shows a signed-in person the exact action and records the decision. | Approvals bound to a digest of the action, with an expiry. | The approver's own sign-in, with strong authentication. | No approval, no action. An expired approval counts as none. |
| Action service | Runs one approved action and nothing else. | Attempt records, written before each call. | Its own identity, with a short-lived token scoped to one action class and one target. | Marks the attempt uncertain and reconciles before any retry. |
| Verification | Reads live state to confirm the action had its effect. | Read-back results linked to the attempt. | A read-only identity, separate from the action service. | Leaves the case open as unverified. |
| Audit log | Keeps every tool call, proposal, decision, approval, action and check. | Append-only events, each chained to the one before. | Written by the services. No one edits it, the agent included. | Stops new actions until the log is writing again. |
Two rules follow from the table. A component that fails stops acting, and it never guesses. And no identity both reads evidence for the agent and changes systems.
Read-only investigation tools
Give the agent tools, not raw access. A tool is a named function with fixed inputs, such as idp.. It runs a bounded query under the agent's read-only identity and returns rows with their event ids.
Each result also states its coverage. Coverage says what was asked, what came back, whether rows were cut off, and which sources were not connected. "No endpoint data" is a finding about your visibility. It is not evidence that the host is clean.
- Bound every query by time window, row limit and fields.
- Return event ids, so that findings can cite them.
- Mark truncation and missing sources in the result.
- Keep the tool list short. The lesson Excessive agency: an assistant with too much power shows what eleven tools and one administrator key did at Meridian.
The proposal is a request in a fixed shape
The agent's output is a finding and, when it thinks something should change, a proposal. A proposal names one action class, one target, its parameters and the events it relies on. An action class is one kind of change, such as revoking every session of one account.
Treat the proposal as untrusted input. OWASP lists improper output handling as LLM10 in its 2026 list: model output that reaches another system without checks. A proposal with an unknown class, two targets or an unexpected field is rejected, not repaired.
{
"action_class": "identity.revoke-sessions",
"target": "ctr-0417",
"parameters": {},
"evidence": ["evt-9012", "evt-9013", "evt-9020"],
"policy_version": "rp-7"
}Policy checks run in code
The policy check is ordinary code. It reads the response policy and the action-class catalogue. Both are versioned files that the model cannot edit. The check gives one of three answers: deny, allow on policy alone, or require approval.
- The class is in the catalogue, and the agent may propose it.
- The target is not protected, or its protection sets a stricter gate.
- The proposal has one target and cites enough events.
- The case is under its proposal limit, and the hour is under its action limit.
The default is deny. A class missing from the catalogue, or a check that errors, ends as a denial with a reason in the audit log. This is the same idea as the policy decision point in NIST SP 800-207: each request is decided on its own, by a component the requester does not control.
An approval gate a person can trust
An approval is a record, not a chat reply. A signed-in approver with strong authentication sees the exact class, target and parameters, not the model's summary of them.
The approval binds to a digest of those fields and expires. A digest is a hash: change one character of the proposal and the digest changes. If the proposal changes after approval, the approval no longer matches and is void. The digest also covers the case and the proposal id, and each approval is used once: the action service marks it spent before it calls the target system.
The approver must find it easy to say no. The lesson Human approval that means something covers automation bias, the habit of trusting a suggestion because a machine made it. Show the evidence and the gaps next to the buttons, and treat a decline as a normal result.
Action tools run under their own identity
The action service is the only component that changes systems. It runs under its own identity, never the agent's. For each approved action it gets a short-lived token scoped to one class and one target.
The token names the approver as the person the service acts for, so the target system's log shows both. The lesson Whose authority does an agent use? explains this pattern with OAuth token exchange.
Least privilege applies per class. The identity that revokes sessions cannot disable accounts unless that class is approved. Before each call, the service writes an attempt record. If the call times out, the outcome is uncertain. The service then reads live state to settle it, and it never retries blind.
Audit and verification close the loop
Every component writes to one append-only audit log. Each line names the actor, the case, the versions in force and the hash of the line before it. A chain of hashes makes a silent edit visible, because every later hash stops matching.
Verification is separate from the action. A different read-only identity reads live state after each action: the session count, the factor list, the host's isolation state. An action that reported success but fails the read is not done.
The lesson Contain, then prove it worked makes this case with a 504 that hid a live session. The worked example shows the whole architecture on one alert.
Risk The potential for harm, assessed using what could happen, how likely it is, its impact, and what remains uncertain.
Control A process, configuration, or technology meant to reduce a named risk or detect a named failure.
Identity The record an organization uses for a person, device, or workload that can be authenticated.
Authentication The act of verifying a claimed identity with authenticators such as passwords, passkeys, or certificates.
Least privilege Granting each identity only the actions, objects, and time window required for the current job.
Session State linking multiple requests; an authenticated session associates later requests with a previously authenticated identity until it expires or is revoked.
Log A record emitted by a system that something happened, which may later be used as evidence.
Alert A notification that a rule or model wants a human to look at one or more records.
Evidence A record you are willing to cite in a decision, with enough provenance to explain what it can prove.
Prompt injection An attack that inserts instructions into model input so the model follows attacker text instead of the developer’s policy.
Excessive agency A model-using application can cause harm because its tools, credentials, or freedom to act are broader than the task, so unexpected or manipulated model output becomes a real change.
Coverage An explicit statement of which sources, time windows, and rows were actually collected, including truncation.
OAuth A delegated-access framework: a client presents an access token so a resource server can allow a limited action. The token is not proof of who the human is, and it does not grant every action the API could perform.