Skip to content

feat: add workflow-safe signed tool approvals to WorkflowAgent - #19976

Merged
gr2m merged 1 commit into
mainfrom
feature-implementation-19964-20260828222331036788
Aug 31, 2026
Merged

feat: add workflow-safe signed tool approvals to WorkflowAgent#19976
gr2m merged 1 commit into
mainfrom
feature-implementation-19964-20260828222331036788

Conversation

@ai-sdk-factory

Copy link
Copy Markdown
Contributor

Background

WorkflowAgent consumers need authenticated approval replay so client-supplied message history cannot forge or alter approvals for sensitive tools.

Summary

Added constructor- and stream-level experimental_toolApprovalSecret support using an environment-variable reference. WorkflowAgent signs and verifies approvals inside durable steps, binds signatures to approval and tool-call details, preserves signatures through stream transformations, and never serializes the raw secret.

Testing

Added runtime and type tests covering signed issuance, valid replay, missing and tampered signatures, changed IDs, tool names and inputs, unsigned compatibility, UI transformation, reconnect replay, and cross-workflow resumption.

End-to-end Validation

  • Added and successfully ran a deterministic signed-approval example, plus Workflow runtime integration validation across separate issue and resume runs.

Documentation

Updated the tool approval guide, WorkflowAgent guide, and API reference with configuration, precedence, security, persistence, key availability, and rotation guidance.

Related Issues

Fixes #19964

Co-authored-by: NathanColosimo <110621881+NathanColosimo@users.noreply.github.com>
@gr2m
gr2m merged commit 11109ae into main Aug 31, 2026
63 checks passed
@gr2m
gr2m deleted the feature-implementation-19964-20260828222331036788 branch August 31, 2026 19:03
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Published in:

Package Version
ai 7.0.86 github npm
@ai-sdk/angular 3.0.86 github npm
@ai-sdk/azure 4.0.55 github npm
@ai-sdk/code-mode 1.0.43 github npm
@ai-sdk/gateway 4.0.70 github npm
@ai-sdk/harness 1.0.95 github npm
@ai-sdk/harness-acp 1.0.33 github npm
@ai-sdk/harness-claude-code 1.0.99 github npm
@ai-sdk/harness-cline 1.0.22 github npm
@ai-sdk/harness-codex 1.0.97 github npm
@ai-sdk/harness-cursor 1.0.8 github npm
@ai-sdk/harness-deepagents 1.0.95 github npm
@ai-sdk/harness-fx 1.0.8 github npm
@ai-sdk/harness-grok-build 1.0.32 github npm
@ai-sdk/harness-opencode 1.0.97 github npm
@ai-sdk/harness-pi 1.0.97 github npm
@ai-sdk/langchain 3.0.86 github npm
@ai-sdk/llamaindex 3.0.86 github npm
@ai-sdk/otel 1.0.86 github npm
@ai-sdk/policy-opa 1.0.86 github npm
@ai-sdk/react 4.0.89 github npm
@ai-sdk/rsc 3.0.86 github npm
@ai-sdk/sandbox-just-bash 1.0.95 github npm
@ai-sdk/sandbox-vercel 1.0.95 github npm
@ai-sdk/svelte 5.0.86 github npm
@ai-sdk/tui 1.0.87 github npm
@ai-sdk/vue 4.0.86 github npm
@ai-sdk/workflow 2.0.16 github npm
@ai-sdk/workflow-harness 1.0.95 github npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WorkflowAgent should support signed tool approvals

2 participants