Files
buryan-infra/ops/policies/APPROVALS.md
T
root b39b4182c1
lint / hygiene (push) Failing after 1m52s
standard / check (push) Successful in 8s
[P0] Human approvals: 202 pending -> Matrix approve/reject -> watcher выполняет; AGENTS policy
2026-11-18 13:03:53 +03:00

39 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Approvals и лимиты write-инструментов
Дата: 18.11.2026 · P0 · human-approval
## Поток
1. Агент вызывает write-инструмент с `confirm=true`.
2. Tool Gateway **не выполняет** его сразу, а создаёт `tool_approvals` (pending)
и присылает в «Секретарь-Бета»:
`🔐 Подтверждение #N ... approve N / reject N`.
3. Человек отвечает `approve N` или `reject N`.
4. `approval-watcher` (Hermes, 30 с) выполняет approved-строку и присылает
результат в Matrix.
Проверено:
```
ha.call confirm → 202 approval_pending #5
approve 5 → выполнено, tool_approvals #5 = done
```
## Что требует подтверждения
| Инструмент | лимит |
|---|---|
| `ha.call` | 5/60 с |
| `hub.notify` | 10/60 с |
| `media.request` | 5/60 с |
| `calendar.create` | 10/60 с |
## Журнал
`hermes.tool_approvals`: `id, ts, actor, tool, args, decision (pending/approved/rejected/done/failed), result`.
Просмотр: `approvals.recent`; общий аудит — `tool_audit`/`audit.recent`.
## Ограничение
Агент получает `approval_pending`; он должен сказать пользователю
`approve <id>`, а не повторять вызов. Повторный вызов создаёт новый pending.