Erosika
5bf69e963c
fix(gateway): loop guard judges the final authz verdict and reads config.yaml
...
#91483 added the guard inside the ALLOW_BOTS block. on today's authz layout
an admitted bot returns from an earlier rule before that block runs, so the
guard never tripped (its own ping-pong test passes turn 21 on this tree).
_is_user_authorized now computes the allowlist verdict first and runs every
admitted bot-authored message through the guard, so bots admitted by a chat
allowlist, allow-all, pairing or delegation are metered too. the budget stays
per conversation. settings move from HERMES_BOT_LOOP_* environment variables
to config.yaml gateway.bot_loop_guard (defaults added to config_defaults),
re-read on every call. an unauthorized bot dm no longer gets a pairing code,
so a cooldown produces no outbound traffic. tests rebuilt against real
SessionSource objects.
2026-09-10 10:27:07 -07:00
..
2026-09-10 10:27:07 -07:00
2026-09-10 12:10:39 +10:00
2026-09-07 06:10:54 -07:00
2026-09-02 19:21:46 -07:00
2026-09-10 15:32:47 +05:30
2026-09-10 10:27:07 -07:00
2026-09-10 10:27:07 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-02 19:21:46 -07:00
2026-09-03 13:46:50 -07:00
2026-09-02 19:21:46 -07:00
2026-09-07 06:10:54 -07:00
2026-09-07 06:10:54 -07:00
2026-09-07 06:10:54 -07:00
2026-09-03 09:44:26 -07:00
2026-09-02 19:21:46 -07:00
2026-09-02 20:13:08 -07:00
2026-09-07 04:46:20 -07:00
2026-09-07 06:00:05 -07:00
2026-09-04 00:15:16 -07:00
2026-09-02 22:42:55 -07:00
2026-09-03 09:44:26 -07:00
2026-09-02 19:21:46 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 00:09:14 -07:00
2026-09-03 17:13:22 -07:00
2026-09-07 05:58:52 -07:00
2026-09-04 00:15:16 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 13:48:14 -07:00
2026-09-07 14:16:57 -07:00
2026-09-04 00:15:16 -07:00
2026-09-02 19:21:46 -07:00
2026-09-05 16:09:46 +05:30
2026-09-02 19:21:46 -07:00
2026-09-02 19:21:46 -07:00
2026-09-02 19:21:46 -07:00
2026-09-04 00:15:16 -07:00
2026-09-02 19:21:46 -07:00
2026-09-03 13:46:50 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 17:13:22 -07:00
2026-09-03 09:44:26 -07:00
2026-09-02 20:13:08 -07:00
2026-09-03 13:12:50 -07:00
2026-09-10 10:27:07 -07:00
2026-09-08 17:51:35 +10:00
2026-09-02 16:11:50 -07:00
2026-09-03 14:00:59 -07:00
2026-09-07 14:16:57 -07:00
2026-09-07 14:16:57 -07:00
2026-09-07 14:16:57 -07:00
2026-09-10 10:27:07 -07:00
2026-09-09 10:55:32 -07:00
2026-09-07 00:38:37 +05:30
2026-09-07 14:16:57 -07:00
2026-09-07 22:47:33 +05:30
2026-09-10 10:27:07 -07:00
2026-09-09 12:20:51 +05:30
2026-09-07 22:47:33 +05:30
2026-09-07 06:10:54 -07:00
2026-09-09 11:14:36 -07:00
2026-09-02 21:14:22 -07:00
2026-09-04 15:41:27 -03:00
2026-09-09 10:55:32 -07:00
2026-09-02 19:21:38 -07:00
2026-09-07 06:10:54 -07:00
2026-09-07 06:10:54 -07:00
2026-09-07 14:16:57 -07:00
2026-09-03 09:44:26 -07:00
2026-09-03 09:44:26 -07:00
2026-09-07 14:11:18 -07:00
2026-09-07 07:12:06 -07:00
2026-09-03 13:46:50 -07:00
2026-09-07 08:20:09 -07:00
2026-09-03 10:00:07 -07:00
2026-09-03 17:13:22 -07:00
2026-09-07 22:47:33 +05:30
2026-09-07 22:47:33 +05:30
2026-09-07 22:47:33 +05:30
2026-09-07 22:47:33 +05:30
2026-09-09 10:54:34 -07:00
2026-09-03 17:13:22 -07:00
2026-09-02 21:14:22 -07:00
2026-09-09 09:55:52 -07:00
2026-09-03 17:13:22 -07:00
2026-09-08 17:51:35 +10:00
2026-09-02 19:19:38 -07:00
2026-09-02 19:52:43 -07:00
2026-09-08 17:51:35 +10:00
2026-09-08 17:51:35 +10:00
2026-09-04 00:15:16 -07:00
2026-09-02 20:24:52 -07:00
2026-09-09 10:59:52 -07:00
2026-09-03 17:13:22 -07:00
2026-09-07 14:11:18 -07:00
2026-09-03 13:12:50 -07:00
2026-09-09 10:55:32 -07:00
2026-09-03 08:16:44 -07:00