Files
ARTEX/server
Lenin MookiahandJwalith e9bd4cae0d fix(intercept): refuse late target approvals under the task row lock
Switching the gate off and closing the task's open requests are two
operations, so an approval landing between them (or while the close
fails, or on another instance) could still pin the target.

ResolveTargetRequest now locks the task row before the pending row (the
order task deletion uses), reads target_gate under that lock and turns an
approval on a gate-off or deleted task into a system denial: no pin, no
approver fields, the same row shape CloseTargetRequests writes. Decide
reports it as already decided and wakes local waiters with false, and a
waiter seeing that system close releases the call even if its local gate
flag lags.

Tests that approve target requests now create gate-on tasks.

The task-row lock and its test come from #808.

Co-authored-by: Jwalith <jwalith4418@gmail.com>
2026-12-02 17:43:50 +01:00
..
2026-07-26 04:27:45 -04:00
2026-11-26 23:40:10 +01:00
2026-07-26 04:27:45 -04:00
2026-08-24 14:14:15 +08:00