AI SDK 7.0.178 closes same-response tool-policy budget bypasses and stops signing automatic denials
Vercel released AI SDK 7.0.178 on November 20. OPA tool policies now include earlier evaluated tool calls from the same model response when deciding later calls, preventing individually allowed calls from jointly exceeding a budget. The SDK also stops signing approval requests that policy denied automatically, blocking a client that controls message history from changing the denial to approval and replaying execution.
Why it matters
Generative UI often batches several tool actions in one model response and presents approval requests through a client. A budget that sees only pre-response history can approve every call separately while the batch exceeds the limit. A signed automatic denial lets the frontend rewrite policy outcome. The release aligns policy ordering, approval signatures, and the trust boundary of approval UI.
A closer look
OPA policy decisions for one response now run in call order. A later call sees earlier calls and their execution-denied results, and the second decision can only become more restrictive, ordered deny, requires-approval, no match, then allow. Each step copies the messages array returned by prepareStep so a cached array cannot conflate separate steps or concurrent runs. Automatically denied calls may still be represented in approval state, but their requests carry no signature; a client-returned approval fails with AI_InvalidToolApprovalSignatureError. The release also forwards the preliminary flag on provider-executed tool results so image previews and similar intermediate outputs are not stored as final, and adds lifecycle, runtime-context, and input/output-controlled telemetry to experimental_extract.
Who this is for
Frontend, agent-platform, and security teams using AI SDK tool approvals, OPA policy, streaming generative UI, client-controlled message history, provider-executed tools, or telemetry.
Original sources
- Vercel AI SDK 7.0.178 release and implementation commits ↗github.com
- Same-response policy ordering and step-message isolation fix ↗github.com
- experimental_extract telemetry and URL-redaction changes ↗github.com
- Automatic-denial signature fix and rotation note ↗github.com
Revisions & corrections (1)
— Official November 20 release with implementation commits, regression tests, maintainer reproduction, migration note for old signatures, and explicit policy and telemetry limits.