Skip to content

Add pre-execution validation for tool and workflow execution #1213

@devincapriola

Description

@devincapriola

VoltAgent provides guardrails, workflows, and tool integrations that enable agents to take real actions (API calls, tool execution, etc).

It would be valuable to have a deterministic validation step at the moment of execution to ensure consistency and correctness of these actions.

Currently:

  • actions are generated and passed through workflows
  • guardrails and validation logic guide behavior
  • execution depends on the final payload produced at runtime

However, there does not appear to be a system-level validation step that verifies the exact payload at the execution boundary.

Adding validation at execution would help ensure that the final action being executed is complete, expected, and consistent with system constraints.

Suggested approach

Introduce a validation step before execution that verifies:

  • tool or workflow being executed
  • parameters (schema + expected values)
  • agent context
  • destination or external system
  • timestamp / validity window
  • optional nonce or replay protection

If validation fails → execution does not occur.

This could be implemented as a wrapper around execution functions, ensuring validation is consistently enforced across all workflows rather than relying on individual configurations.

Context

Guardrails and validation logic are valuable for guiding behavior, but a final validation step at execution helps ensure correctness at the point where actions are actually committed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions