version: 2 # Политика действий агентов. # A — только чтение и метрики (сам) # B — гигиена без влияния на доступность (сам, с записью) # C — влияет на сервис → ТОЛЬКО с подтверждением владельца # D — запрещено classes: A: title: Наблюдение auto: true examples: [health_check, collect_metrics, journal_write, status_probe] limits: actions_per_hour: 60 affects_service: false B: title: Гигиена auto: true notify: journal examples: [rotate_logs, vacuum_journal, clear_cache, trim_tmp] limits: actions_per_hour: 4 actions_per_day: 12 affects_service: false C: title: Влияет на сервис auto: false approval: matrix_owner examples: [restart_container, update_container, change_config, migrate_data, delete_service, change_dns, reindex_library] note: "Любое действие, после которого сервис может стать недоступен" D: title: Запрещено auto: false approval: never examples: [delete_backup, read_secrets, disable_2fa, change_router_config, drop_database] approvals: channel: matrix ttl_hours: 24 queue: /var/lib/hub-agents/approvals.json actions_allowed: [restart_container] notifications: owner: channels: [matrix] max_per_day: 3 quiet_hours: "23:00-08:00" digest: "12:00" family: channels: [matrix] only: [personal] journal: /var/lib/hub-agents/journal safety: observe_mode: true dry_run_first_days: 14 snapshot_before_change: true auto_rollback_if_unhealthy: true max_parallel_actions: 1