kshitij
ea0d54db1d
refactor: fold /simplify-code findings
...
- Single source for the approval-derived bound: public human_wait_ceiling()
in tools/approval.py; the gate's lock-timeout helper delegates to it
instead of re-deriving timeout + margin (was duplicated in two modules
and reached for a private _get_approval_timeout).
- Shared _clamped_window_seconds() for the close-time accrual and the
open-window read, so the two clamps are identical by construction.
- Gate __init__ grows session_key kwarg; tests construct via the real
constructor instead of mutating privates post-hoc.
- Gateway test resolves its pending approval via resolve_gateway_approval()
(the production /deny path) instead of hand-rolling queue-entry internals.
- Docstring accuracy: human_wait_seconds monotonicity caveat under cap
eviction; s/pre_tool_block/pre_tool_call/ hook name.
2026-08-06 17:03:10 +05:30
..
2026-08-01 21:17:51 -04:00
2026-07-25 02:30:20 +00:00
2026-07-05 13:42:46 -07:00
2026-07-24 11:45:57 -07:00
2026-08-02 00:11:50 -07:00
2026-08-05 14:08:32 -07:00
2026-07-22 10:58:22 -07:00
2026-08-05 16:35:00 +00:00
2026-08-05 16:35:00 +00:00
2026-08-04 00:12:45 +05:30
2026-07-18 20:01:55 +05:30
2026-07-16 04:23:12 -07:00
2026-08-05 14:08:32 -07:00
2026-08-02 10:02:33 -07:00
2026-07-26 23:41:54 -07:00
2026-08-05 22:40:51 -07:00
2026-07-21 13:54:11 -05:00
2026-07-23 11:45:07 -07:00
2026-07-22 18:08:59 -05:00
2026-07-29 11:53:39 -07:00
2026-07-29 11:53:39 -07:00
2026-07-05 14:00:20 -07:00
2026-08-02 11:18:41 +05:30
2026-08-05 14:08:32 -07:00
2026-07-31 22:53:20 -07:00
2026-07-29 16:41:39 -03:00
2026-07-29 15:28:15 -07:00
2026-07-26 18:06:21 -07:00
2026-08-06 02:22:08 +05:30
2026-07-23 19:44:35 -07:00
2026-07-27 22:55:18 -05:00
2026-08-05 22:32:55 -07:00
2026-08-06 02:22:08 +05:30
2026-07-24 17:10:39 -07:00
2026-07-02 13:17:41 -07:00
2026-08-04 23:33:39 +05:30
2026-07-24 17:10:39 -07:00
2026-07-28 21:36:23 +00:00
2026-07-31 22:34:57 -07:00
2026-08-03 18:21:17 +05:30
2026-08-06 03:16:26 +05:30
2026-08-02 21:48:06 -07:00
2026-08-04 19:35:57 +00:00
2026-07-17 13:49:12 -07:00
2026-07-22 04:40:07 -07:00
2026-08-05 17:21:01 -07:00
2026-07-26 20:59:16 -07:00
2026-07-29 15:28:15 -07:00
2026-07-29 15:28:15 -07:00
2026-07-23 08:32:09 -07:00
2026-08-03 18:45:43 +05:30
2026-08-02 22:15:20 +05:30
2026-07-26 12:54:45 -07:00
2026-07-14 16:47:33 +05:30
2026-07-29 11:53:39 -07:00
2026-07-01 16:25:48 -05:00
2026-07-16 07:57:51 -07:00
2026-07-23 08:19:14 -07:00
2026-07-24 13:00:53 +05:30
2026-08-03 20:35:47 +05:30
2026-07-29 12:29:39 -07:00
2026-08-03 22:43:15 +05:30
2026-07-01 04:07:46 -07:00
2026-08-04 11:08:32 +05:30
2026-07-29 19:48:37 -07:00
2026-07-20 11:05:52 -07:00
2026-07-24 17:10:39 -07:00
2026-07-22 12:10:58 -05:00
2026-08-02 15:01:11 -07:00
2026-07-29 15:28:15 -07:00
2026-07-16 01:13:43 -07:00
2026-07-05 03:14:55 -07:00
2026-08-05 13:00:47 +05:30
2026-08-01 15:39:58 +05:30
2026-07-10 05:41:59 -05:00
2026-07-28 20:04:58 +05:30
2026-08-01 15:58:25 +05:30
2026-08-02 20:10:47 -07:00
2026-08-03 13:43:17 -06:00
2026-07-27 21:10:51 -07:00
2026-07-19 08:25:35 +05:30
2026-07-29 10:13:50 -07:00
2026-07-16 04:32:23 -07:00
2026-08-02 09:59:52 -07:00
2026-08-02 16:16:36 -07:00
2026-08-02 15:01:11 -07:00
2026-07-29 12:20:34 -07:00
2026-07-29 12:20:34 -07:00
2026-07-29 15:28:15 -07:00
2026-08-06 03:16:26 +05:30
2026-07-24 15:53:38 -07:00
2026-07-02 04:51:56 +05:30
2026-07-17 18:31:09 +00:00
2026-08-02 22:15:20 +05:30
2026-08-03 20:43:34 +05:30
2026-07-22 08:11:09 +05:30
2026-08-03 23:23:39 +05:30
2026-07-16 01:07:29 +05:30
2026-06-30 17:28:33 -07:00
2026-07-29 15:28:15 -07:00
2026-08-03 22:53:32 +05:30
2026-08-06 17:03:10 +05:30
2026-07-26 21:27:45 -07:00
2026-07-11 05:41:58 -07:00
2026-07-24 11:45:57 -07:00
2026-07-14 02:59:39 +05:30
2026-07-14 02:59:39 +05:30
2026-08-06 05:00:48 +05:30
2026-07-31 23:18:12 -07:00
2026-07-31 22:31:09 -07:00
2026-07-26 17:47:51 -07:00
2026-07-29 19:48:37 -07:00
2026-07-29 18:13:09 -07:00
2026-07-30 15:20:09 -07:00
2026-07-02 06:07:56 +05:30
2026-07-14 02:59:39 +05:30
2026-07-29 15:28:15 -07:00
2026-07-06 02:42:24 -07:00
2026-07-29 15:28:15 -07:00