A lead waiting on a delegation that is open and not late is not stopped for checks without a verdict

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-11-24 13:32:13 -07:00
1 parent 85b9f1489d
commit 6a5ed356a2
3 files changed
+27 -1

No files matched your search

+1 -1
View File
@@ -208,7 +208,7 @@ def gate(p, for_subagent=False):
from . import retro
retro.record(s, cwd, {}) # every check passed and nothing changed: the work closes itself
return 0
reason = OPEN % "; ".join(unsaid) if unsaid else GATE if worked else FAILED % ", ".join(failed) if failed else ""
reason = "" if unsaid and models.waiting(s) else OPEN % "; ".join(unsaid) if unsaid else GATE if worked else FAILED % ", ".join(failed) if failed else ""
if not reason or s.get("blocks", 0) >= 2:
return 0
s["blocks"] = s.get("blocks", 0) + 1
+5
View File
@@ -141,6 +141,11 @@ def overdue(s):
return [(w, min(old(v))) for w, v in (starts.items() if isinstance(starts, dict) and type(mins) in (int, float) else []) if old(v)]
def waiting(s):
"""A delegation of this piece of work is open: started and not yet judged."""
return isinstance(s.get("starts"), dict) and any(isinstance(v, list) and v for v in s["starts"].values())
def out(r, skip, bad, today):
"""Why this worker is off the wheel, "" when it is on."""
until = [d for d in re.findall(r"out until (\d{4}-\d{2}-\d{2})", " ".join(r).lower()) if d > today]