From 2e7d6f25767b0fc9bf5ebd913634fea9452c3d53 Mon Sep 17 00:00:00 2001 From: Roman Buryan Date: Fri, 6 Nov 2026 00:40:31 +0300 Subject: [PATCH] =?UTF-8?q?[SPRINT-V1][E]=20L2-=D0=B0=D0=B2=D1=82=D0=BE?= =?UTF-8?q?=D0=BD=D0=BE=D0=BC=D0=B8=D1=8F=20=D0=B2=D0=BA=D0=BB=D1=8E=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20(dry=5Frun=3Dfalse),=20=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=D0=B0=20L3+=20=D0=BF=D0=BE=D0=BD=D0=B8=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=B4=D0=BE=20L1=20=D0=BF=D0=BE=20=D1=80?= =?UTF-8?q?=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D1=8E=20=D0=B2=D0=BB=D0=B0=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D1=86=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ops/hermes/policy.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ops/hermes/policy.yaml b/ops/hermes/policy.yaml index 89e9a1a..7482e1c 100644 --- a/ops/hermes/policy.yaml +++ b/ops/hermes/policy.yaml @@ -12,7 +12,7 @@ defaults: alert_on: give_up # уведомлять только когда сдались budget_per_hour: 20 # не более 20 действий в час на хост dedup_window: 1h # одинаковое событие = одно уведомление - dry_run: true # глобально: сначала только «что бы сделал» + dry_run: false # L2 разрешён владельцем 05.11; L3+ понижены до L1 # ── Kill-switch ─────────────────────────────────────────────────── # Создание этого файла мгновенно останавливает все авто-действия. @@ -59,7 +59,7 @@ rules: match: "docker.ping fails for 5m" action: "systemctl restart docker && start_containers_by_dependency" verify: "docker.ping ok and critical containers up" - level: L3_domain_auto + level: L1_dry_run # понижено: разрешён только L2 cooldown: 30m - id: exporter-down @@ -87,20 +87,20 @@ rules: match: "radarr.queue_stalled for 6h" action: "restart_qbittorrent() and retry_search()" verify: "queue.progress > 0" - level: L3_domain_auto + level: L1_dry_run # понижено: разрешён только L2 cooldown: 6h - id: import-missing match: "download.completed and not imported for 1h" action: "trigger_downloaded_movies_scan()" verify: "movie.hasFile" - level: L3_domain_auto + level: L1_dry_run # понижено: разрешён только L2 - id: cert-expiring match: "cert.days_left < 14" action: "certbot_renew()" verify: "cert.days_left > 30" - level: L3_domain_auto + level: L1_dry_run # понижено: разрешён только L2 cooldown: 24h # ── Что НИКОГДА не автоматизируется (только L4_confirm) ───────────