unsupportedpastels
4e0806d5dc
fix(approval): skip the execute_code gate only while an approving viewer is attached
...
The exemption's last condition, a notifier registered for the bound session
key, holds for every gateway session turn: TurnRunner registers it whether
or not a viewer is attached. It only told side tasks apart and did not show
that anyone could answer. A viewer's queued turn that ran after the viewer
detached still skipped the whole-script gate, so non-terminal() code in the
script ran unprompted while its terminal() prompts timed out.
The attached-viewer records are reachable without a new protocol: the live
session that execute_admission binds for a viewer turn holds its
subscribers, the same records the approval resolver checks
(SessionAuthority accepts an approval answer only from an attached
subscriber holding session:approve) and the local clarify path already
reads. approval_context.is_viewer_turn_with_approver() now also requires
such a subscriber at gate time; a read-only viewer or nobody attached keeps
the whole-script gate. The notifier check stays, documented as what it is:
it tells side tasks apart, not that a human is present.
Tests: a viewer turn with nobody or only a read-only viewer attached gets the
whole-script prompt and a denied script never runs, and a viewer's turn
submitted after it detached keeps the gate in the real drain (both failed
before this change: the script ran / the gate was skipped).
Refs #134889 (T2)
Refs #139523
2026-10-16 19:42:20 -04: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 17:49:54 -04:00
2026-10-14 00:29:11 +05:30
2026-10-16 19:42:20 -04: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-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-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-09 17:31:26 -07:00
2026-10-08 17:22:54 +02: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-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-10 15:20:13 +02:00
2026-10-13 16:27:55 -04:00
2026-10-12 13:41:29 -04: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-16 15:03:56 -07:00
2026-10-12 13:41:29 -04: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-09 15:36:14 -04:00
2026-10-08 17:22:54 +02:00
2026-10-07 11:19:10 +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-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-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-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-12 13:41:29 -04:00
2026-10-11 04:37:57 -07:00
2026-10-11 04:37:57 -07:00
2026-10-11 19:31:36 -07:00
2026-10-15 00:31:20 -04:00
2026-10-08 19:08:59 -07:00
2026-10-10 15:20:13 +02:00
2026-10-07 10:57:33 -07:00
2026-10-16 17:49:54 -04:00
2026-10-10 15:20:13 +02:00
2026-10-14 14:09:29 -07:00
2026-10-13 11:35:14 -04:00
2026-10-16 07:09:45 -07:00
2026-10-16 07:09:45 -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-15 21:01:31 +02: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-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-11 16:53:57 -07:00
2026-10-08 19:42:29 +02:00
2026-10-12 03:18:48 -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-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-10 15:20:13 +02: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-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-10-08 17:22:54 +02: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