config/schema: add serde default to AutonomyConfig (#3691)

Co-authored-by: Argenis <theonlyhennygod@gmail.com>
This commit is contained in:
Marijan Petričević 2026-03-17 18:40:18 +01:00 committed by Roman Tataurov
parent 0fa37f178c
commit d86fd55a82
No known key found for this signature in database
GPG Key ID: 70A51EF3185C334B

View File

@ -3451,6 +3451,7 @@ impl Default for WebhookAuditConfig {
/// Controls what the agent is allowed to do: shell commands, filesystem access,
/// risk approval gates, and per-policy budgets.
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
#[serde(default)]
pub struct AutonomyConfig {
/// Autonomy level: `read_only`, `supervised` (default), or `full`.
pub level: AutonomyLevel,