Files
Gitea-Tools/tests
sysadmin dfb5ebd0af Fix #723: Prevent poisoned role stamp during task capability denial
This fixes #723 Defect B where attempting to acquire a reviewer lease from a merger session caused the session role to be incorrectly stamped as 'reviewer', leading to downstream workspace binding exceptions.

This commit moves the preflight capability recording to only apply when the task is allowed, and adds a try/except downstream to correctly fail-closed instead of throwing RuntimeError.
2026-07-17 01:13:55 -04:00
..
2026-06-21 17:26:18 -04:00