OptionalallowedPrincipalKinds?: readonly PrincipalKind[]Exact principal kinds authorized for direct and durable execution.
Defaults to ['human']: an agent that does not name its automation denies
every scheduled, signal, service, and agent-delegated entry.
Exact actor roles authorized for direct and durable execution.
OptionalapplicationInputProcessors?: readonly GuardedInputProcessor[]Initial-input-only application processors.
OptionalapplicationOutputProcessors?: readonly GuardedOutputProcessor[]Stream-and-result application output processors.
Required failure-isolated audit logger for every mandatory gate.
Fixed positive step budget for every execution.
Mandatory input and output policies, evaluated in array order.
Fixed tool-selection behavior for every execution.
Construction-time configuration for a guarded Mastra agent.
Processor and execution defaults are replaced by dedicated validated fields. The factory never accepts an existing raw
Agent.