pub struct VerifyConfig {
pub commands: Vec<VerifyCommand>,
pub on_failure: VerifyOnFailure,
pub timeout: u64,
pub default_timeout_secs: Option<u64>,
pub heartbeat_interval_secs: u64,
}Expand description
Pre-draft verification gate configuration.
Commands run in the staging directory after the agent exits but before
the draft is created. If any command fails, behavior depends on on_failure.
Supports two command formats (backward compatible):
- Flat string list:
commands = ["cmd1", "cmd2"](legacy) - Structured commands:
[[verify.commands]]withrunand optionaltimeout_secs
Fields§
§commands: Vec<VerifyCommand>Commands to run sequentially. All must exit 0 for verification to pass.
Accepts either plain strings or VerifyCommand objects.
on_failure: VerifyOnFailureBehavior when a command fails: “block” (default), “warn”, or “agent”.
timeout: u64Legacy: global timeout per command in seconds. Default: 300 (5 minutes).
Superseded by default_timeout_secs; kept for backward compat.
default_timeout_secs: Option<u64>Default timeout per command in seconds when not specified per-command.
If set, takes priority over timeout. Default: 300.
heartbeat_interval_secs: u64Heartbeat interval in seconds for long-running verification commands. A progress message is emitted every N seconds. Default: 30.
Implementations§
Source§impl VerifyConfig
impl VerifyConfig
Sourcepub fn effective_default_timeout(&self) -> u64
pub fn effective_default_timeout(&self) -> u64
Effective default timeout: default_timeout_secs if set, else legacy timeout.
Sourcepub fn command_timeout(&self, cmd: &VerifyCommand) -> u64
pub fn command_timeout(&self, cmd: &VerifyCommand) -> u64
Resolve the timeout for a specific command.
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§fn clone(&self) -> VerifyConfig
fn clone(&self) -> VerifyConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more