AWS Dogwood 是一种开源(Apache 2.0)策略语言,于2026年8月6日发布,旨在跨时间维度授权AI Agent的工具调用序列,而非孤立地评估单个操作。 Dogwood 扩展了 Cedar 策略语言,加入 formerly、count within、count distinct within、sum within、since、once 等时序运算符,可实现“付款前必须先创建发票”等规则。

Create a landscape editorial hero image for this Studio Global article: What is AWS Dogwood, the open-source governance language for AI agents released under Apache 2.0, how does it use temporal logic and Metric. Article summary: Here is the comprehensive answer based on the available evidence.. Topic tags: general, documentation, general web, user generated. Style: premium digital editorial illustration, source-backed research mood, clean composition, high detail, modern web publication hero. Use reference image context only for broad subject, composition, and topical grounding; do not copy the exact image. Avoid: logos, brand marks, copyrighted characters, real person likenesses, fake screenshots, UI text, readable text, watermarks, charts with fake numbers, clickbait thumbnails, icons, and tiny thumbnail layouts. Make it useful as an illustrative visual, not as factual evidence.
AWS Dogwood 填补了AI Agent治理中的一个关键安全空白:一个Agent调用的工具语法可能完全正确,每个工具的单独权限也合法,但调用的顺序却可能违反业务逻辑。例如,在创建发票之前就处理付款,即便每个操作本身都是允许的,这在逻辑上也是错误的。Dogwood 是AWS于2026年8月6日发布的一款专为此设计的开源治理语言(遵循Apache 2.0许可证),附带一个参考解释器,其核心能力是跨时间维度授权Agent工具调用序列,而非孤立地评估每个操作
。
Dogwood 建立在时序逻辑和Metric First-Order Temporal Logic (MFOTL) 之上,后者是形式数学的一个分支,能够推理事件及其在时间上的关系。MFOTL 在命题时序逻辑的基础上增加了一阶量化和度量约束(例如“在过去5分钟内”),从而能够对事件序列进行精确的运行时监控
。
在 Dogwood 中,策略的决策取决于Agent在会话中操作的历史记录,而非仅取决于当前请求。策略引擎会维护一个先前工具调用及其响应的记录,然后在允许或拒绝当前调用之前,将其与该历史记录进行比对
。
Dogwood 扩展了 Cedar 策略语言(AWS于2023年发布的现有授权语言),通过添加一个包含会话感知条件的 temporal 块来实现。关键的时序运算符包括:
| 运算符 | 用途 |
|---|---|
formerly | 检查某个条件在会话中之前是否曾经为真 |
count_within | 统计在指定时间窗口内某个条件发生的次数 |
count_distinct_within | 统计在某个时间窗口内出现的不同字段值的数量 |
sum_within | 对某个时间窗口内事件中的数字字段求和 |
since | 相对于某个事件的最后发生时间来检查条件 |
once | 检查某个条件是否曾经发生过 |
这些运算符让策略能够定义诸如“除非发票操作曾经发生过,否则禁止付款操作”,或“如果 sum_within(amount, 1h)。一个时序策略被编写为标准的
permit 或 forbid Cedar 规则,但其条件被放置在 temporal { ... }。
时序策略在 AgentCore 网关层进行强制,这位于Agent自身代码之外。该网关会实时拦截每一次工具调用,在到达目标工具之前,根据会话的完整事件历史评估策略,然后决定允许或拒绝该调用
。
由于授权决策发生在边界——即Agent无法修改的基础设施中——因此无法通过提示操纵、越狱或Agent能控制的任何代码来绕过。AWS 明确声明,策略运行在“AgentCore 网关边界,代理自身代码之外”,使其能够抵抗Agent重写自身指令的行为
。策略引擎支持两种模式:LOG_ONLY(审计而不拦截)和 ENFORCE(主动拒绝)
。
Dogwood 已作为时序策略集成到 Amazon Bedrock AgentCore 中,与网关速率限制功能一道于2026年8月6日发布。
Bedrock AgentCore 中目前已可用的功能:
sum_within 实施每会话 60,000 美元的开支上限Dogwood 语言及其参考实现现已在 GitHub 上以 Apache 2.0 许可证发布,与 Bedrock AgentCore 托管服务分开。
Studio Global AI
Use this topic as a starting point for a fresh source-backed answer, then compare citations before you share it.
AWS Dogwood 是一种开源(Apache 2.0)策略语言,于2026年8月6日发布,旨在跨时间维度授权AI Agent的工具调用序列,而非孤立地评估单个操作。
AWS Dogwood 是一种开源(Apache 2.0)策略语言,于2026年8月6日发布,旨在跨时间维度授权AI Agent的工具调用序列,而非孤立地评估单个操作。 Dogwood 扩展了 Cedar 策略语言,加入 formerly、count within、count distinct within、sum within、since、once 等时序运算符,可实现“付款前必须先创建发票”等规则。
它已集成至Amazon Bedrock AgentCore,提供时序策略、网关速率限制、会话预算及工作流排序规则,并在网关层强制执行,Agent自身无法绕过。