Dogwood policy language

Hand-drawn terracotta thread tied in three hatched knots, each sending a bold terracotta arc forward to a tall hatched terracotta block on the right, over flowing cream, sand, umber and moss contour lines.

Dogwood is a policy language from Amazon Web Services (AWS) that extends Cedar, AWS’s authorization language. With it, a decision about an AI agent’s tool call can depend on what happened earlier in the agent’s session. Dogwood compiles such conditions into extra data that the Cedar engine evaluates (dogwood-policy, n.d.a). Its engine judges only the events the host system sends it, and does not itself block a call (Arora et al., 2026). AWS’s automated analysis tools for Cedar do not currently cover the temporal conditions (Brooker et al., 2026). The measured evidence on stateful policies for agents comes from research prototypes tested on replays of recorded agent runs, which caught many attacks and also flagged harmless runs (Sistla et al., 2026; Kekatos et al., 2026).

Cedar’s model of a decision

Dogwood inherits Cedar’s way of deciding a single request. A Cedar request names a principal (who is acting), an action, a resource (what is acted on) and a context (other facts about the request) (Cedar, n.d.a). Policies are rules of two kinds: a permit allows a request it matches, and a forbid denies it. A matching forbid always wins, and a request that no permit matches is denied, so the default is deny (Cedar, n.d.a).

A Cedar policy that fails with an error during evaluation is skipped, and the error is reported in the diagnostics returned with the decision (Cedar, n.d.a). The calling application can read those diagnostics and decide differently. Cedar’s schemas, proofs and analysis tools are covered in Cedar policy language; the wider family of engines is in Authorization models and policy engines.

Temporal conditions over a session

A plain Cedar policy sees only the request in front of it. Dogwood adds conditions over the recorded history of the session, and lowers them to extra context that Cedar then evaluates, which is why its interface mirrors Cedar’s (dogwood-policy, n.d.a). Here an agent is a program in which a language model chooses which tools to call, and a session is the run of related calls being governed.

Dogwood records a tool invocation and the tool’s eventual result (a response or an error) as separate events. Its own verdict is not recorded as an event. Policies read events in the order the engine received them, which can differ from the order in which they happened at the source (dogwood-policy, n.d.a). A rule about “after the review returned” therefore depends on when the review’s result reached the engine.

History is not unlimited. Dogwood checks past events only within a bounded look-back window, according to the authors of a competing research system (Sistla et al., 2026).

The expressiveness has two costs that AWS states. Evaluating a temporal policy requires tracking events, and its running time can depend on the length of the event log. Temporal conditions also do not currently support the automated reasoning tools Cedar provides (Brooker et al., 2026). Those tools translate policies into queries for an automated solver, which can check, for example, whether two sets of policies give the same decision on every well-formed request (Cedar Policy, n.d.d).

The Local Engine and the host

The Dogwood Local Engine decides, but another component must enforce. AWS released it under the Apache 2.0 open-source licence in September 2026. It is a library that observes a stream of events and returns a verdict for each request. A separate enforcement layer, which AWS calls the agent’s harness, intercepts the agent’s tool call, sends its details to the engine, and then runs or blocks the call (Arora et al., 2026).

The division of work is explicit. The harness must send the engine every event, and the engine is responsible for tracking the events it receives (Arora et al., 2026). To survive a restart, the engine saves snapshots of its state to disk and, on restart, replays only the events that arrived after the last snapshot (Arora et al., 2026).

AgentCore Policy and gateway enforcement

Amazon Bedrock AgentCore, an AWS service for agents, applies policies at a gateway that sits between the agent and its tools. Every agent action that goes through AgentCore Gateway is intercepted and checked against the policies before the tool is reached (Amazon Web Services, n.d.f). Policies are written in Cedar; they can also be written as English prompts, which the service translates into Cedar and validates (Amazon Web Services, n.d.f).

Temporal policies in AgentCore are evaluated against a policy session, a sequence of gateway calls grouped under one session identifier. A condition considers only the events recorded for the same session as the request. The caller generates the identifier and sends it in a header on every request; the gateway does not create one (Amazon Web Services, n.d.j).

What can go wrong

Dogwood’s decisions are only as complete as the history it receives. A late or missing event can change a verdict, and Dogwood’s own documentation warns that this can happen even when event timestamps increase correctly (dogwood-policy, n.d.b). The engine relies on the harness to send every event, so a review result the harness never reports does not exist for a rule that requires it (Arora et al., 2026).

Session scoping creates a second gap. An AgentCore condition sees only events under the same session identifier, so a review recorded under another identifier does not count. The caller controls which identifier each request carries (Amazon Web Services, n.d.j).

The third gap is coverage. The gateway’s guarantee is stated for actions that go through it (Amazon Web Services, n.d.f). Monitors built on event history, Tether’s authors note, miss information flows that the harness does not log (Sistla et al., 2026).

Measured results for stateful agent monitors

The measured evidence on stateful policies for agents comes from two research prototypes tested on recorded agent runs, not from Dogwood. Both detected many attacks in replay, and both flagged some harmless runs.

Tether, a research prototype that monitors agents with stateful policies, blocked 344 of 344 in-scope adversarial runs in replays of two coding-agent benchmarks. It wrongly flagged 4.7% of in-scope harmless runs overall (Sistla et al., 2026). The false-positive rate was 2.3% on one benchmark and 5.0% on the other. “In-scope” means runs whose actions the system could fully trace (Sistla et al., 2026). The authors also excluded runs that needed external services they could not emulate (Sistla et al., 2026).

A separate study replayed recorded runs of GPT-4o on AgentDojo, a benchmark of attacks on tool-using agents, against generic temporal rules. The rules flagged 70.1% of the attacks that had succeeded and 29.3% of harmless runs (Kekatos et al., 2026). The second figure counts runs on which a rule fired, not lost work, since no blocked task was re-run. At that rate, the authors judge the rules suited to sorting runs for human review rather than to blocking (Kekatos et al., 2026).

Both studies replayed recorded runs rather than running agents live against an enforcement point (Sistla et al., 2026; Kekatos et al., 2026).

Other stateful policy designs

Dogwood is one of several attempts to let a policy depend on what happened before; the others add state to an existing language or study it formally.

Strobilus extends Cedar differently: instead of reading an event log, it attaches obligations to Cedar rules that update policy-related state when a decision is made (Baldo et al., 2026b). Its authors measured it on TinyTodo, Cedar’s example application, against the original Cedar version (Baldo et al., 2026b). They leave concurrent updates across several distributed enforcement points as future work (Baldo et al., 2026b).

OWSM does the same for Rego, the language of Open Policy Agent. It keeps a separate store of policy state that Rego can read during evaluation (Baldo et al., 2025). It reads state-update instructions from Rego’s output, so Rego’s syntax and engine stay unchanged (Baldo et al., 2025).

Policy automata model a stateful policy as a machine that moves between states. In that formal model, an algorithm that always terminates can settle whether a policy is well formed, whether it can ever deny, and whether one policy contains or equals another. Each result holds under stated conditions on the model, not for a deployed engine (Baldo et al., 2026a).

A different line of work accepts that some checks are uncertain. One framework computes upper bounds on the probability that an agent violates a policy, without assuming that the uncertain checks are independent of each other (Solko-Breslin et al., 2026).

Further reading

Known gaps

What this article cannot tell you yet.

  1. Dogwood and Amazon Bedrock AgentCore Policy have no published measurements, in production or on a benchmark; what is known about them comes from AWS documentation and blog posts.
  2. It is unknown whether every Cedar policy is accepted unchanged as a Dogwood policy, and the licence and repository history of the language itself, as opposed to its Local Engine, are unclear.
  3. How much Strobilus slows Cedar evaluation, and how the temporal rules perform on the STAC benchmark of the offline AgentDojo and STAC study, are missing.
  4. The results of the probabilistic-verification framework on agent workloads are missing.
  5. Tether is a recent preprint, and its results have not been independently confirmed.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 14 references