
Amazon Web Services is adding temporal policies to Amazon Bedrock AgentCore, giving developers a way to authorize an AI agent’s current action based on what it did earlier in the same session. The control is designed for workflows where an individual tool call may look safe but becomes risky because of the sequence that preceded it.
The change addresses a gap in conventional access control. Traditional application permissions often evaluate requests independently, while AI agents choose tools, arguments, and execution order at runtime. AWS says its new approach can enforce required workflow steps, preserve data integrity between tool calls, limit cumulative financial exposure, and require human approval before sensitive actions.
AWS describes temporal policies as a stateful extension to the existing policy controls in Bedrock AgentCore. Instead of asking only whether a principal may call a particular tool, the policy engine can inspect the agent’s recent trajectory and decide whether the current request is authorized in that context.
For example, an agent might use a customer lookup tool, receive one account number, and then pass a different number to a funds-transfer tool. Both calls could satisfy stateless permissions. A temporal policy could require the transfer argument to match the earlier tool output, blocking the request if the agent altered or fabricated the value.
Other examples in the AWS Machine Learning Blog include requiring a portfolio lookup before a trade, ensuring that a data query occurred recently enough to support a decision, and stopping a session after cumulative trading exposure reaches a defined limit. AWS also describes controls for preventing contradictory actions, such as an agent approving and denying the same insurance claim in quick succession.
The feature is part of Amazon Bedrock AgentCore, AWS’s set of services for building and operating AI agents. Its enforcement point is AgentCore Gateway, which routes supported model, tool, and agent-to-agent traffic through a central endpoint.
A request evaluated by a temporal policy carries an x-amzn-bedrock-agentcore-policy-session-id header. That identifier connects the request to a trajectory containing relevant prior actions, inputs, and outputs. Application teams decide whether a session represents a conversation, a multi-step task, or a longer-running workflow.
AWS recommends keeping sessions relatively narrow because only one authorization request can be active per session at a time. The service combines the session identifier with the end user’s identity, so two users presenting the same identifier are still evaluated against separate trajectories. AWS says the look-back window is limited to 24 hours, after which older events are deleted automatically.
Temporal policies run at the gateway rather than inside the agent’s own code. That architecture is important: an agent cannot rewrite the policy logic or directly manipulate the state used for authorization. AWS says the engine returns a deterministic allow-or-deny result, records the decision context, denies by default, and gives precedence to prohibitions when permit and forbid rules conflict.
The controls are not an orchestration layer. They do not transform requests, analyze data, or decide which tool an agent should call. Their role is narrower: determine whether a gateway-routed request is allowed given the observed history.
The primary evidence for the change is AWS’s own technical post, which provides the feature description and a worked example involving a private-banking agent. In that scenario, the agent retrieves client information, loads portfolio holdings, obtains market prices, performs analysis, and executes trades on behalf of financial advisers.
AWS says the example uses Amazon Cognito for identity, JSON Web Tokens for inbound authentication, and MCP tools exposed through AgentCore Gateway. The policy language used in the example is Dogwood, which AWS describes as an open-source governance language for agents and their tools. According to AWS, Dogwood can evaluate existing Cedar policies while adding support for temporal conditions, allowing customers to retain current Cedar rules rather than migrate them.
The source does not provide independent test results, customer adoption figures, or evidence that the controls prevent all classes of agent failure. Claims about bypass resistance and operational behavior are AWS’s product and architecture claims. The available media item repeats the announcement title but does not add independently reported detail.
There are also operational constraints for teams evaluating the feature. A missing session header can cause AgentCore to generate a new session, which means the policy engine sees an empty trajectory rather than the intended history. AWS says policy changes invalidate existing sessions so that subsequent decisions use the current policy set and expected event schema. Those behaviors make session management and policy deployment part of the security design, not merely configuration details.
For AI builders, temporal policies provide a control point for a problem that is difficult to solve reliably with prompts or application-side checks: maintaining invariants across a sequence of model-selected actions. A policy can require that a tool call use an earlier verified output, that a high-impact action follow a defined procedure, or that a human approval event precede execution.
For enterprises, the main value is consistency at the boundary where agent traffic reaches tools and models. A shared gateway can apply rules across MCP calls, model inference calls, and agent-to-agent interactions when those requests pass through AgentCore Gateway. That could reduce the need for every individual agent implementation to reproduce workflow controls, although teams still need to design the policies, identity model, session boundaries, and approval process.
The approach may also help with bounded financial or operational risk. A stateless rule can limit the size of one trade, for example, but it cannot by itself determine how much exposure has accumulated across a session. Temporal state makes that type of cumulative constraint expressible. The trade-off is added dependence on accurate event capture and carefully scoped trajectories. A new session can also eliminate the history that a policy expected to inspect.
This positions AgentCore more directly against agent platforms that emphasize runtime governance, tool permissions, and human-in-the-loop controls. The available evidence is not sufficient to compare AWS’s implementation with competing products on latency, policy expressiveness, or deployment cost.
The next signals will be practical rather than promotional. Builders should look for broader documentation on Dogwood and its temporal semantics, examples beyond the banking workflow, and details about policy evaluation latency and logging at production scale.
Enterprise buyers should also examine how teams can test trajectory-dependent rules, recover from failed or abandoned sessions, and manage policy changes without disrupting legitimate workflows. Independent customer reports would help establish whether gateway-level enforcement reduces incidents or implementation effort compared with controls embedded in agent code.
The scope of supported traffic will matter as well. AWS says temporal policies can govern model, MCP tool, and agent-to-agent calls routed through the gateway; adoption will depend on how much of an organization’s agent architecture can use that path without creating a bottleneck.
AWS is responding to a real weakness in agent security: authorization decisions often need memory. The most consequential risk is not always a prohibited tool call, but a permitted call made after an untrusted lookup, stale data retrieval, missing approval, or excessive prior activity.
Temporal policies do not make agents reliable by themselves. They create a stronger enforcement boundary around agent behavior, provided developers define trustworthy session identities, capture the right events, and test policies against failure sequences. For teams moving agents into financial, customer-service, or other high-impact workflows, that distinction—policy enforcement rather than model compliance—could be the more meaningful development.
AWS adds trajectory-aware temporal policies to Bedrock AgentCore, giving builders gateway-level controls for sequencing, approvals, freshness, and exposure.