A still-valid block is re-read every cycle once its issue's thread has moved
Id: TD-PPagop-26072801 · Legacy-id: TD26072801 · Status: resolved · Filed: 2026-07-28 · Resolved: 2026-08-01 · Ref: https://github.com/Poetic-Poems/agent-ops/pull/149
Requirement 18a (#109) makes the Co-Ordinator re-read a blocked GitHub issue
whenever the issue’s updated_at is newer than the ts of the
attempt-failed event that blocked it. The block’s ts moves only on a
re-block, and the Co-Ordinator has no cross-cycle memory in which to record
“re-checked at T; still holds” — so once a comment lands that does not clear
the block, every later cycle that runs a Co-Ordinator re-reads the whole
thread and re-judges the same evidence, until the block finally clears. The
review on #109 flagged this as a deliberate trade-off rather than a defect:
the check fails safe (it reads too often; it never misses evidence), and the
cost is one gh issue view --comments plus the tokens to re-judge, per such
issue, per cycle that runs a Co-Ordinator at all.
Two bounds keep the loop’s population small, both worth re-reading before
pricing this higher. Cross-references do not move updated_at, so an Enabler
escalation that links to the blocked issue does not enrol it — TD26072605
ruled this out for pull requests against poetic#92, and the same holds for
issues (poetic#96 and poetic#97 each carry a latest cross-referenced
timeline event later than their updated_at, measured 2026-07-28). And the
needs-refinement projection cannot self-trip the check, because the Script
applies the label before writing the attempt-failed event, which leaves
the label’s updated_at bump behind the block’s ts. What remains is
exactly: a genuine comment that fails to clear its block.
Fix: give the next cycle a marker to compare against, the way requirement
35a’s enabler-examined bounds the Enabler. The Co-Ordinator’s work order
grows a field for “re-checked, still holds” (bare item ids, like unblocked);
the Script logs each as a recheck-clean event; the blocked extract carries
the newest such ts alongside the block’s own; and requirement 18a compares
updated_at against the later of the two. Two traps when building it: do not
re-emit attempt-failed as the marker — a fresh block moves B forward and
resets requirement 35a’s Enabler clock, so a mere confirmation would delay
escalation — and do not move the blocked entry’s existing ts for the same
reason; the marker must be a separate timestamp that only the 18a comparison
reads. The spec (requirements 18a and 20, and the work-order and
blocked-extract descriptions) travels in the same PR.
Filed 2026-07-28, from the review discussion on #109.
Resolution note (2026-08-01): the fix sketch above says “bare item ids, like
unblocked”, and the review on #149 found that shape fails in the unsafe
direction — a bare id folds into every same-numbered blocked item across
repos, and unlike an over-broad unblocked (which merely re-admits a
candidate) this marker suppresses a mandated re-read. What shipped is
{item, repo}, both off the blocked entry being re-checked; a bare id is
tolerated as a degraded fallback (requirement 33).