Teknium
f5729bb014
refactor(gateway,tui-gateway): one settlement rule for batch clarify in both registries
...
Main's sidecar (tui_gateway/server_requests.py) and the session owner
(gateway/session_sudo_prompt.py) each computed a batch clarify's terminal
{answers, outcome} in their own code, and the owner's copy had already
drifted twice (Esc reported as submitted, timeout dropping locked
answers). Both now call tools.clarify_batch.settle_batch(locked,
frame_result, ended=...), a pure function: the last lock, a timeout or an
interrupt/cancel keep the locks with that outcome; a closing frame with
an answers dict lays them over the locks; anything else is a cancel-all
that keeps the locks as cancelled.
One sidecar change comes with it: a closing frame that names its own
outcome (ClarifyResult documents timed_out for the classic CLI's own
deadline) now keeps it, where the sidecar used to overwrite it with
submitted. The owner already honoured it.
Test: tests/gateway/test_clarify_batch_settlement_parity.py drives both
real registries through the same six endings after one lock (red: no
module, then the sidecar's frame_names_its_outcome case; green).
Review finding by @alt-glitch on #140472
Refs #134889 (TUI-18)
Refs #140337
2026-10-17 08:03:51 -07:00
..
2026-10-10 15:20:13 +02:00
2026-10-16 14:21:39 -07:00
2026-10-16 14:31:11 -07:00
2026-10-16 19:42:34 -07:00
2026-10-14 00:29:11 +05:30
2026-09-29 12:25:29 -05:00
2026-10-16 19:42:20 -04:00
2026-10-06 14:22:13 -07:00
2026-10-16 21:35:53 +00:00
2026-10-08 17:22:54 +02:00
2026-10-07 06:48:09 -07:00
2026-10-16 15:21:07 -04:00
2026-10-08 12:07:00 -07:00
2026-10-16 19:42:20 -04:00
2026-10-13 11:35:14 -04:00
2026-10-10 15:20:13 +02:00
2026-10-16 17:42:48 -04:00
2026-10-16 07:09:45 -07:00
2026-10-08 19:54:07 +02:00
2026-10-01 16:18:46 +05:30
2026-10-16 07:19:04 -07:00
2026-10-09 10:24:04 -07:00
2026-10-08 12:09:24 -07:00
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 22:12:28 +02:00
2026-10-09 02:04:29 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-06 14:24:24 -07:00
2026-10-08 17:22:54 +02:00
2026-09-24 11:50:30 -04:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:25:53 -07:00
2026-10-15 09:25:53 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:25:53 -07:00
2026-10-15 09:25:53 -07:00
2026-10-12 03:18:48 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 13:29:32 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-17 08:03:51 -07:00
2026-10-09 17:31:26 -07:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-16 17:49:54 -04:00
2026-10-09 17:31:52 +02:00
2026-10-11 16:53:57 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 05:44:47 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-16 22:10:26 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 05:44:47 -07:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:29:11 +05:30
2026-10-12 16:55:20 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 05:44:47 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-09-29 12:25:29 -05:00
2026-10-05 16:46:53 -05:00
2026-09-28 10:21:41 -07:00
2026-10-12 13:41:29 -04:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-17 04:23:04 -07:00
2026-10-17 04:23:04 -07:00
2026-10-13 16:27:55 -04:00
2026-10-17 04:23:04 -07:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 21:38:54 -07:00
2026-10-17 04:23:04 -07:00
2026-09-28 10:21:41 -07:00
2026-10-12 13:41:29 -04:00
2026-10-08 19:54:07 +02:00
2026-10-05 01:15:16 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 15:36:14 -04:00
2026-10-08 17:22:54 +02:00
2026-10-07 11:19:10 +05:30
2026-10-02 20:24:01 -05:00
2026-09-29 15:08:07 +05:30
2026-10-13 01:35:42 +05:30
2026-10-13 01:35:42 +05:30
2026-10-14 00:32:21 +05:30
2026-10-08 21:38:05 +02:00
2026-10-03 10:26:12 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-12 18:25:59 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 14:19:55 -07:00
2026-09-28 02:03:42 +05:30
2026-10-14 05:52:49 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 19:17:14 -04:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 14:09:29 -07:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-12 18:25:59 -07:00
2026-10-08 17:22:54 +02:00
2026-10-14 05:52:49 -07:00
2026-10-12 19:13:09 -07:00
2026-10-13 01:04:38 -07:00
2026-10-09 17:34:38 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-12 13:41:29 -04:00
2026-09-28 10:21:41 -07:00
2026-10-11 04:37:57 -07:00
2026-10-11 04:37:57 -07:00
2026-09-28 10:21:41 -07:00
2026-10-11 19:31:36 -07:00
2026-10-06 00:00:57 -04:00
2026-10-16 20:25:10 -07:00
2026-10-08 19:08:59 -07:00
2026-10-10 15:20:13 +02:00
2026-10-17 04:35:05 -07:00
2026-10-07 10:57:33 -07:00
2026-10-17 04:35:05 -07:00
2026-09-24 03:52:03 -05:00
2026-09-28 10:21:41 -07:00
2026-10-10 15:20:13 +02:00
2026-09-29 12:25:29 -05:00
2026-09-29 12:25:29 -05:00
2026-09-28 10:21:41 -07:00
2026-10-14 14:09:29 -07:00
2026-10-13 11:35:14 -04:00
2026-10-07 01:03:03 +05:30
2026-10-16 07:09:45 -07:00
2026-10-16 19:42:34 -07:00
2026-10-16 19:42:34 -07:00
2026-10-09 10:24:04 -07:00
2026-10-13 23:55:10 +05:30
2026-10-14 00:06:58 +05:30
2026-10-09 17:34:36 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-09 17:34:38 +02:00
2026-10-12 13:41:29 -04:00
2026-10-09 17:34:36 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-11 04:37:57 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 13:58:16 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-15 22:12:28 +02:00
2026-10-09 13:58:16 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 14:25:07 -07:00
2026-10-15 21:01:31 +02:00
2026-10-15 21:01:31 +02:00
2026-10-12 22:48:29 -07:00
2026-10-17 08:03:50 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 10:24:04 -07:00
2026-10-11 16:53:57 -07:00
2026-10-17 04:23:31 -07:00
2026-09-26 18:27:10 -05:00
2026-10-17 04:23:31 -07:00
2026-10-11 16:53:57 -07:00
2026-10-02 22:42:55 -05:00
2026-10-08 19:42:29 +02:00
2026-10-05 20:08:11 +05:30
2026-10-17 04:23:31 -07:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-11 17:21:07 +05:30
2026-10-08 17:22:54 +02:00
2026-10-16 15:03:56 -07:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-13 01:35:42 +05:30
2026-10-07 01:02:34 +05:30
2026-10-07 01:02:34 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-05 12:37:46 -04:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-09-30 23:02:33 -05:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 02:34:03 -07:00
2026-09-28 10:21:41 -07:00
2026-10-08 17:22:54 +02:00
2026-10-01 01:50:16 -05:00
2026-10-08 21:29:48 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:14 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:36 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 07:09:45 -07:00