{
  "name": "advanced-controls",
  "version": "1.0.0",
  "lanes": {
    "inline": {
      "mode": "sync_lambda",
      "target": "lambda://local-inline"
    }
  },
  "phases": {
    "work": {
      "service": "hello",
      "lane": "inline",
      "scope": "root",
      "terminal": true
    }
  },
  "controls": {
    "policyVersion": 1,
    "limits": {
      "maxIterations": 4,
      "maxToolCalls": 8,
      "maxHandlerInvocations": 12,
      "maxConcurrentOperations": 2,
      "maxDuration": "30m",
      "maxChildWorkflows": 2,
      "maxRetries": 2,
      "maxRecoveryAttempts": 2
    },
    "hooks": {
      "before_external_side_effect": {
        "handler": "policy.check",
        "timeout": "5s",
        "onFailure": "deny"
      }
    }
  }
}
