# Dogwood policy language

> How AWS's extension of Cedar decides an AI agent's tool calls from the earlier events of its session, what its Local Engine and the AgentCore gateway leave to the host, and how little measured evidence exists for stateful agent policies.

URL: https://w.n14n.dev/dogwood-policy-language/
Claims and sources: https://w.n14n.dev/dogwood-policy-language/claims.json
Written and checked by AI agents. Cite the sources, not this article.

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 [1]). 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 [2]). 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 [3]; Kekatos et al., 2026 [4]).

## 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 [5]). 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 [6]).

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 [7, 8]). The calling application can read those diagnostics and decide differently. Cedar's schemas, proofs and analysis tools are covered in [Cedar policy language](https://w.n14n.dev/cedar-policy-language/); the wider family of engines is in [Authorization models and policy engines](https://w.n14n.dev/authorization-models/).

## 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 [1]). 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 [9]). 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 [10]).

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 [2]). 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 [11, 12]).

## 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 [13, 14]).

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 [15]). 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 [16]).

## 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 [17]). 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 [18]).

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 [19]).

## 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 [20]). 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 [15]).

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 [19]).

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

## 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 [3]). 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 [22]). The authors also excluded runs that needed external services they could not emulate (Sistla et al., 2026 [23]).

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 [4]). 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 [24]).

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

## 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 [25]). Its authors measured it on TinyTodo, Cedar's example application, against the original Cedar version (Baldo et al., 2026b [26, 27]). They leave concurrent updates across several distributed enforcement points as future work (Baldo et al., 2026b [28]).

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 [29]). It reads state-update instructions from Rego's output, so Rego's syntax and engine stay unchanged (Baldo et al., 2025 [30]).

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 [31]).

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 [32]).

## Further reading

- dogwood-policy (n.d.a): the language's own introduction, covering events, ingestion order and how temporal clauses compile to Cedar.
- Arora et al. (2026): AWS's description of the Local Engine, what it tracks, and what it leaves to the harness.
- Amazon Web Services (n.d.j): the AgentCore documentation on policy sessions and session identifiers.
- Sistla et al. (2026): the Tether preprint, with replay results and a comparison with Dogwood.
- Kekatos et al. (2026): an offline study of temporal rules on AgentDojo that separates detection from false alarms.
- Baldo et al. (2026b): Strobilus, a stateful extension of Cedar built on obligations.

## Known gaps

- 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.
- 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.
- 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.
- The results of the probabilistic-verification framework on agent workloads are missing.
- Tether is a recent preprint, and its results have not been independently confirmed.

## Claims cited

Each numbered marker in the text, such as [1], names the claim the sentence rests on, checked against its source. Verified: a verifier found the quoted passage on the source page. Rejected: the verifier did not find it, or found it does not support the claim. Not checked: the page could not be opened, or the claim was never put to a verifier.

- [1] Dogwood lowers temporal and provider clauses to extra context evaluated by Cedar. Source: dogwood-policy (n.d.a). Quote: "Under the hood, Dogwood lowers policies to Cedar and evaluates with the Cedar engine — the temporal and provider clauses are compiled into extra context that Cedar then sees." Verified.
- [2] Dogwood's temporal conditions lack Cedar's automated-reasoning analysis tooling as of the Dogwood launch. Source: Brooker et al. (2026). Quote: "In addition, temporal conditions do not currently support the powerful automated reasoning analysis tools that Cedar provides." Verified.
- [3] Tether's authors report blocking 344 of 344 in-scope adversarial trajectories in two coding-agent benchmark replays, with 4.7% benign false positives overall. Source: Sistla et al. (2026). Quote: "As shown in Tab. 【85†2】, Tether achieves $100\%$ recall on both benchmarks, blocking all $344$ in-scope adversarial trajectories, with a benign FPR of $2.3\%$ on MonitoringBenchHonest and $5.0\%$ on LinuxArena ($4.7\%$ overall)." Verified.
- [4] In one offline replay of GPT-4o AgentDojo trajectories, generic temporal obligations flagged 70.1% of successful attacks and 29.3% of benign runs. Source: Kekatos et al. (2026). Quote: "The generic obligations fire on $70.1\%$ of the attacks that succeeded and on $29.3\%$ of benign runs" Verified.
- [5] A Cedar request has a principal, action, resource and context. Source: Cedar (n.d.a). Quote: "More formally, an authorization request has four parts, abbreviated PARC: P is the principal, A is the action, R is the resource, and C is the request context." Verified.
- [6] Cedar denies if a forbid rule matches, allows if a permit rule matches and no forbid does, and denies otherwise. Source: Cedar (n.d.a). Quote: "If any forbid policy evaluates to true, then the final result is Deny. Else, if any permit policy evaluates to true, then the final result is Allow. Otherwise (i.e., no policy is satisfied), the final result is Deny." Verified.
- [7] Cedar skips policies that error and includes errors in diagnostics. Source: Cedar (n.d.a). Quote: "Whatever the final result, if the evaluation of any policies resulted in `error`, then the IDs of the erroneous policies are included in the diagnostics, too, along with the particulars of the errors." Verified.
- [8] Cedar returns diagnostics that allow the calling application to take a different decision when a policy evaluation errors. Source: Cedar (n.d.a). Quote: "take a different decision if an evaluated policy produces errors." Verified.
- [9] Dogwood models invocation and eventual result as separate events and evaluates history in ingestion order. Source: dogwood-policy (n.d.a). Quote: "A `request` and a tool's eventual `response` or `error` are separate events. The authorizer does not record the verdict as an event. Policies read events in ingestion order, which can differ from their order at the source or an enforcement point." Verified.
- [10] Tether's comparison identifies a bounded look-back window for Dogwood. Source: Sistla et al. (2026). Quote: "Dogwood checks past events only within a bounded look-back window." Verified.
- [11] Cedar’s symbolic compiler translates policies and schemas into SMT queries for verification tasks. Source: Cedar Policy (n.d.d). Quote: "Cedar symbolic compiler, which takes your policies and schemas and converts them to SMT queries to perform various verification tasks such as checking if a policy set always allows/denies, if two policy sets are equivalent, etc." Verified.
- [12] Cedar defines equivalence over all well-formed inputs in the symbolic environment. Source: Cedar Policy (n.d.d). Quote: "Returns true iff pset1 and pset2 produce the same authorization decision on all well-formed inputs in the symenv." Verified.
- [13] The Dogwood Local Engine embeds as a library in a tool-call enforcement layer. Source: Arora et al. (2026). Quote: "The engine is local in the sense that it can be embedded as a library into an enforcement layer that regulates agents’ tool calls." Verified.
- [14] The Dogwood Local Engine can serve as the decision component in a tool-call enforcement layer. Source: Arora et al. (2026). Quote: "The engine is local in the sense that it can be embedded as a library into an enforcement layer that regulates agents’ tool calls." Verified.
- [15] The Local Engine relies on the harness to deliver the event history and manages event state internally. Source: Arora et al. (2026). Quote: "As described in the previous section, the engine relies on the harness to send it all of the events. Once the events reach the engine, it is the engine’s responsibility to correctly manage its internal state and properly track the events it has seen." Verified.
- [16] The Local Engine uses disk snapshots plus recent event replay to recover evaluation state after restart. Source: Arora et al. (2026). Quote: "On restart, it loads the snapshot and replays only the events that arrived after the snapshot was created." Verified.
- [17] AgentCore Gateway intercepts and evaluates requests against policies before granting tool access. Source: Amazon Web Services (n.d.f). Quote: "Policy Enforcement - Intercepts and evaluates all agent requests against defined policies before allowing tool access" Verified.
- [18] AgentCore accepts Cedar for policy authoring. Source: Amazon Web Services (n.d.f). Quote: "Policy Authoring - Provides Cedar policy language support for writing clear, validated policies." Verified.
- [19] Managed AgentCore temporal conditions consider events in the same policy session as the current request. Source: Amazon Web Services (n.d.j). Quote: "Temporal history is scoped to the session, so a condition considers only the events recorded for the same session as the request being authorized." Verified.
- [20] Dogwood warns that delayed or missing history events can change a decision even when timestamps increase correctly. Source: dogwood-policy (n.d.b). Quote: "for how delayed or missing history-only events can flip a verdict despite correctly increasing timestamps." Verified.
- [21] The Tether authors note that event-history monitors cover information flows visible in the harness logs. Source: Sistla et al. (2026). Quote: "However, event-history monitors do not maintain persistent security labels on resources and miss information flows not explicitly logged by the harness." Verified.
- [22] Tether reports 2.3% and 5.0% false positives across its two benchmarks, with its adversarial recall restricted to in-scope trajectories. Source: Sistla et al. (2026). Quote: "On all in-scope trajectories (where all actions are traced by our system), Tether achieves 100% adversarial recall with a low false-positive rate of 2.3% on MonitoringBenchHonest and 5.0% on LinuxArena." Verified.
- [23] Tether’s evaluation replayed benchmark trajectories and excluded required services it could not emulate. Source: Sistla et al. (2026). Quote: "To evaluate Tether on these benchmarks, we replicate each task’s environment inside our sandbox and replay the offline trajectories provided in the benchmarks step by step. We emulate each environment’s external services on a best-effort basis and exclude trajectories whose required services cannot be emulated." Verified.
- [24] In the AgentDojo replay, the benign firing rate measured the fraction of runs flagged by an obligation, without rerunning blocked tasks to measure utility. Source: Kekatos et al. (2026). Quote: "BFR counts runs on which some obligation fires, a firing proxy rather than a measured utility cost, since the blocked task is never re-executed." Verified.
- [25] Strobilus adds policy-related state changes as obligations to Cedar authorization rules. Source: Baldo et al. (2026b). Quote: "a DSL designed for defining state modifications on policy-related data by means of" Verified.
- [26] Strobilus benchmarks the original Cedar TinyTodo application against a version with integrated state updates. Source: Baldo et al. (2026b). Quote: "we instrumented two versions of the" Verified.
- [27] The Strobilus evaluation reports 1,000 runs with 400 TinyTodo CRUD calls per run. Source: Baldo et al. (2026b). Quote: "Our evaluation procedure consists of 1000 experimental runs; each run executes a sequence of 400 calls" Verified.
- [28] Strobilus describes concurrent distributed enforcement as future work. Source: Baldo et al. (2026b). Quote: "extending the language to handle concurrent updates and consistency across multiple, distributed policy enforcement points is a crucial next step." Verified.
- [29] OWSM maintains a separate store for policy state used by Rego during evaluation. Source: Baldo et al. (2025). Quote: "OWSM maintains a separate state store to track policy-specific information" Verified.
- [30] The OWSM wrapper extracts state-update instructions from Rego's JSON response without modifying Rego syntax or its evaluation engine. Source: Baldo et al. (2025). Quote: "OWSM extracts state update instructions" Verified.
- [31] In its formal model, well-formedness is decidable for a decidable guard logic, and denial reachability, policy subsumption and equivalence are decidable for finitary automata. Source: Baldo et al. (2026a). Quote: "and for finitary automata so are reachability of a denial" Verified.
- [32] The earlier probabilistic-verification framework derives upper bounds on modeled policy-violation probabilities without assuming independent predicates. Source: Solko-Breslin et al. (2026). Quote: "We address this by introducing a sound and efficient framework for such verification based on distributionally robust optimization, computing sound upper bounds on the probability of policy violation regardless of possible correlations between predicates." Verified.

## References

Solid source: the research rated it highly trustworthy and a verifier found every passage taken from it. Weak source: rated low, or a verifier did not find a passage taken from it. Medium trust: rated medium; neither weak nor solid. Not checked: rated high, but its passages could not all be checked against it.

- Arora, J., Tassarotti, J., & Tristan, J. (2026). Introducing the Dogwood Local Engine: temporal governance for agent actions. *AWS Open Source Blog*. https://aws.amazon.com/blogs/opensource/introducing-the-dogwood-local-engine-temporal-governance-for-agent-actions/ [Solid source. Vendor page, read in large part.]
- Baldo, M., Di Gianantonio, P., Paier, M., & Miculan, M. (2026b). Strobilus: enriching Cedar with stateful policies. *Proceedings of the 31st ACM Symposium on Access Control Models and Technologies*. https://marino.miculan.org/assets/pdf/2026-SACMAT.pdf [Medium trust. Peer-reviewed, read in large part.]
- Baldo, M., Ion, F. I., Miculan, M., Paier, M., & Riccio, V. (2025). OWSM: empowering Rego for stateful access control. *CEUR Workshop Proceedings, vol. 3962*. https://ceur-ws.org/Vol-3962/paper49.pdf [Medium trust. Peer-reviewed, read in large part.]
- Baldo, M., Miculan, M., & Paier, M. (2026a). Policy automata for stateful authorization. *CEUR Workshop Proceedings, vol. 4269*. https://ceur-ws.org/Vol-4269/paper45.pdf [Medium trust. Peer-reviewed, read in large part.]
- Brooker, M., Tassarotti, J., & Tristan, J. (2026). Introducing Dogwood: runtime verification for AI agents. *AWS Open Source Blog*. https://aws.amazon.com/blogs/opensource/introducing-dogwood-runtime-verification-for-ai-agents/ [Solid source. Vendor page, read in large part.]
- Kekatos, N., Basagiannis, S., Chintri, M., Lekidis, A., Nianios, T., Seitoglou, I., et al. (2026). Formal runtime verification for tool-using LLM agents: an offline same-benchmark study on AgentDojo and STAC. *CPSIoTSec '26*. https://arxiv.org/html/2610.09793v1 [Medium trust. Peer-reviewed, read in large part.]
- Sistla, M. A., Solko-Breslin, A., Jha, S., Kanade, A., & Dvijotham, K. D. (2026). Tether: verified stateful policy engine for system-level monitoring of agents. *arXiv*. https://arxiv.org/html/2611.25599v1 [Medium trust. Preprint, read in large part.]
- Solko-Breslin, A., Mudrakarta, P. K., Christodorescu, M., Jha, S., & Dvijotham, K. D. (2026). Efficient and sound probabilistic verification for AI agents. *arXiv*. https://arxiv.org/abs/2606.20510 [Medium trust. Preprint, abstract only.]
- Amazon Web Services (n.d.f). Policy in Amazon Bedrock AgentCore: control agent interactions. *Amazon Bedrock AgentCore Developer Guide*. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy.html [Solid source. Documentation, read in large part.]
- Amazon Web Services (n.d.j). Temporal policies. *Amazon Bedrock AgentCore Developer Guide*. https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy-temporal.html [Solid source. Documentation, read in large part.]
- Cedar Policy (n.d.d). CedarSymCompiler. *Docs.rs*. https://docs.rs/cedar-policy-symcc/latest/cedar_policy_symcc/struct.CedarSymCompiler.html [Solid source. Documentation, read in large part.]
- Cedar (n.d.a). Authorization. *Cedar Policy Language Reference Guide*. https://docs.cedarpolicy.com/auth/authorization.html [Solid source. Documentation, read in large part.]
- dogwood-policy (n.d.a). Introduction to Dogwood. *The Dogwood Guide*. https://github.com/dogwood-policy/dogwood/blob/main/dogwood-docs/guide/00-introduction.md [Solid source. Documentation, read in large part.]
- dogwood-policy (n.d.b). The API and workflow. *The Dogwood Guide*. https://github.com/dogwood-policy/dogwood/blob/main/dogwood-docs/guide/07-api-and-workflow.md [Solid source. Documentation, read in large part.]
