AWS ML ★ 85 4 min

Control agent behaviors and cost beyond a single action: new capabilities in Amazon Bedrock AgentCore

Amazon Bedrock AgentCoreAnnouncements

🔗 https://aws.amazon.com/blogs/machine-learning/control-agent-behaviors-and-cost-beyond-a-single-action-new-capabilities-in-amazon-bedrock-agentcore/

📌 【Amazon Bedrock AgentCore】超越單一動作的管控:如何透過時序策略解決 AI Agent 的安全與成本風險

TL;DR:Amazon Bedrock AgentCore 推出時序策略與流量限制,解決 Agent 序列行為難以預測的安全與成本問題。

隨著 AI Agent 趨向自主化,企業面臨的挑戰已不再是「單一動作是否合法」,而是「一系列動作加起來是否安全」。McKinsey 研究指出,約 80% 的組織已遇到 AI Agent 的風險行為,這已成為規模化 Agentic AI 的主要障礙。

🤔 當「合法的請求」組合出「錯誤的結果」

傳統的防護欄(Guardrails)多針對可預測的軟體設計,但 Agent 的行為是動態決定的。這會導致以下情境:

  • 隱蔽的風險:Agent 查詢客戶帳戶,接著轉帳到不同帳號。單看兩步都是合法操作,但組合起來卻是違規。
  • 預算失控:Agent 執行一系列金額皆低於審核門檻的訂單,但總額已大幅超出預算。
  • 資源耗盡:Agent 因工具錯誤陷入無止盡的重試迴圈,消耗掉所有 Token 預算。

這些問題的共同點是:問題不在於單一請求,而在於「模式(Pattern)」。

🧩 Amazon Bedrock AgentCore:將控制權移至基礎設施層

為了應對上述挑戰,Amazon Bedrock AgentCore 提出一個核心原則:安全控制應屬於基礎設施層(Infrastructure layer),而非寫在每個團隊各自開發的應用程式碼中。

AgentCore 的閘道(Gateway)作為完全託管的無伺服器入口點,負責路由所有 AI 流量(包含 MCP 伺服器、LLM、Agent 與知識庫)。因為所有請求都必須經過閘道,這讓「在行為發生前進行攔截」成為可能。

🚀 Dogwood 與時序策略:從「單點檢查」進化到「序列監控」

為了實現對 Agent 序列行為的精準管控,Amazon 推出了新功能:

  • 時序策略(Temporal policies):不再僅僅判斷單一請求的權限,而是會檢查 Agent 在該工作階段(Session)中已經做過什麼。例如:要求轉帳目標值必須與前一個步驟回傳的值一致,或是當總預算達到上限時直接攔截下一個購買動作。
  • Dogwood 開源語言:這是專為 AI Agent 設計的新型策略語言。它建立在 Cedar 的基礎之上,並加入了處理 Agent 治理所需的時序建構式,包含速率限制、時間窗口、前置步驟與升級觸發機制。目前 Dogwood 已以 Apache 2.0 授權開源。

📊 解決 Agentic AI 的成本隱憂

Forrester 研究發現,Agentic AI 難以規模化的主因之一就是成本。由於 Agent 會根據任務需求決定步驟數量,其 Token 消耗與呼叫次數具有不可預測性。

AgentCore 透過閘道提供速率限制(Rate limiting),讓開發者能針對使用者、工具、模型或 Agent 設定上限:

  • 請求量(Request volume):針對重試迴圈導致的頻繁呼叫。
  • Token 數量:針對推理密集型任務的消耗。
  • 連線時間(Connection duration):針對長時間研究任務佔用的連線。

透過對每秒或每分鐘的窗口進行限制,平臺團隊可以設定容量配置,而無需修改任何 Agent 的程式碼。

🎯 實務啟示

對於工程師與架構師而言,這代表了從「開發者自律」轉向「平臺強制執行」的典範轉移。將安全性與成本控制從應用層(Application code)抽離,放入基礎設施層,能確保即使 Agent 表現出非預期行為,邊界(Boundary)依然穩固,且具備可追蹤、可驗證的決定性(Deterministic)控制能力。

🔗 來源

#AI #AgenticAI #AmazonBedrock #AWS #MachineLearning #Dogwood #Cybersecurity #LLM #AIGovernance #CloudComputing

原始資料 AWS ML · 收集於 2026-08-07
來源原標題
Control agent behaviors and cost beyond a single action: new capabilities in Amazon Bedrock AgentCore
作者
Madhu Parthasarathy
原始標籤
Amazon Bedrock AgentCore · Announcements
原始連結
https://aws.amazon.com/blogs/machine-learning/control-agent-behaviors-and-cost-beyond-a-single-action-new-capabilities-in-amazon-bedrock-agentcore/

摘要原文

Agents are becoming more autonomous and teams are running more of them, but trust and security have not kept pace. According to McKinsey, roughly 80% of organizations have already encountered risky behavior from AI agents. As a result, security and risk concerns are the leading barrier to scaling agentic AI (McKinsey’s State of AI Trust in 2026, and Trust in the age of AI agents 2026). That makes trust the pacing factor for agent innovation and adoption. Earning it takes control across a wide surface, including identity, access, observability, evaluation, and traceability. We believe that investment in trust and security will accelerate agent adoption in enterprises. When guardrails are dependable, approving a new agent stops being a one-off negotiation and becomes something the platform handles at scale. The challenge is that most guardrails today were designed for software that behaves predictably. Agents decide their own path as they go, so every step can pass on its own while the shape of the whole goes unexamined. An agent looks up a customer’s account, then transfers money to a different account number, because each call was judged on its own. An agent places a series of orders that each sits under the approval threshold, because nothing is tracking the total against the budget. An agent hits a failing tool and retries through the night, running through the token budget, because nothing capped how much it could consume. Every one of those requests was legitimate. The problem appears only in the pattern, and the agent is the last thing you would rely on to catch it. We built Amazon Bedrock AgentCore to give teams what they need to build, connect, and optimize agents at scale without assembling the infrastructure themselves. One principle has guided it from the start: security controls belong in the infrastructure layer, enforced consistently across every agent, rather than in application code where each team implements them differently. AgentCore’s gateway is where that idea becomes concrete. The gateway is a fully managed, serverless entry point for AI traffic, routing requests to Model Context Protocol (MCP) servers, large language models (LLMs), agents, and knowledge bases. Because every call passes through it, the gateway is the natural place to apply limits that hold no matter how an agent behaves. Today we are advancing that work with new capabilities: temporal policies, powered by Dogwood , a new open source policy language purpose-built for AI agents, and rate limiting in the gateway. Policies in AgentCore today give teams deterministic control over agent behavior, checking every action before it runs to evaluate who can call which tool and under what conditions. Those checks are stateless by design. Each request is judged on its own merits, quickly and provably, which is what authorization has always required. As agents take on longer tasks with less supervision, another question arises: whether its actions, taken together, add up to something that should be allowed. That is only visible when you look at the sequence of actions, not only individual ones. Temporal policies extend the policies in AgentCore to close that gap. Rather than judging a request in isolation, the policy engine also looks at what the agent has already done in that session, then permits or denies the call based on that sequence of actions. The transfer that used the wrong account number can be blocked by a policy requiring that a value passed into one call match what an earlier call returned. A policy can tally what an agent has spent in a session and block the next purchase once the budget is reached, even if that purchase is under the individual limit. Teams can also require that the steps happen in a set order, or that a significant action needs a recorded human approval. Permissions can narrow automatically when a person is no longer engaged. Temporal policies are enforced at the gateway layer, outside the agent’s own code. The agent does not see the policy logic and cannot reason around it, regardless of how it is prompted or whatever defects it carries. For security leaders being asked to approve autonomous systems, this is the distinction that matters. It is the difference between trusting an agent to behave and knowing the boundary holds over the course of its actions. Decisions are deterministic, deny by default, and logged with the full context behind them. A reviewer can see not only that a call was blocked but why. Powering temporal policies is Dogwood, a new policy language purpose-built for AI agents. Built on the foundation of Cedar, Dogwood was designed to address a new dimension of agent control: evaluating whether a sequence of agent actions conforms to a policy as it unfolds. Dogwood embeds Cedar and adds temporal constructs for agent governance including rate limits, time windows, prerequisite steps, and escalation triggers. Dogwood is available as an open source specification and reference implementation under Apache 2.0. This gives customers full visibility into how their policies are evaluated and allows the broader ecosystem to build supporting tooling. AI cost is its own governance question, and with agents it starts with how fast they consume tokens and calls. An agent takes as many steps as it judges necessary, so what a task costs depends on how it chooses to work rather than on a predetermined rate. Left unbounded, a retry loop or an unusually heavy session consumes at whatever speed the agent decides. That unpredictability is a real constraint on approval. Forrester found that the reasons agentic AI rarely reaches scale starts with cost ( The State Of Agentic AI In 2026 ). Teams need a ceiling that holds regardless of how an agent behaves. Available today, you can set those ceilings directly on AgentCore’s gateway. Rate limiting lets teams cap consumption per user across every tool, model, and agent behind the gateway, using the identities they already manage through OAuth or IAM. Limits can cover how many requests someone makes, how many tokens a model processes for them, and how long they hold connections open. Having all three matters because agents run up cost in different ways. A retry loop shows up as request volume, a reasoning-heavy task shows up as tokens, and a long research session shows up as a connection held open while very little traffic moves. Any single measure leaves a way to exhaust a service without tripping a limit. Limits apply in per-second and per-minute windows, which is what contains the failure mode teams actually hit: an agent consuming at a rate nobody intended, discovered after the fact. Rate limits take effect once they are configured, with no changes to agent code. Capacity allocation becomes something platform teams configure rather than build. Different users, teams, tools, and models can carry different ceilings, without throttling logic written into any of them. Models keep improving, and that progress is what makes agents worth deploying. It also raises what is at stake, because a more capable agent takes more consequential actions with less supervision. What an enterprise earns from better models depends on whether it can run those agents with the same discipline it applies to everything else in production. Trust in an agent is not really a judgment about the model. It is a judgment about the system the model runs inside, and whether that system holds when an agent behaves unexpectedly. Building that system is a young discipline, and the questions customers bring us now are noticeably more sophisticated than the ones they brought a year ago. We expect to keep moving quickly here, alongside continued investment in identity, observability, evaluation, and traceability. Every control that moves out of application code and into the platform is one fewer thing that must be rebuilt, reviewed, and trusted separately for each agent.

tencent/hy3:free 自動生成