Skip to content

The Enabler's issue-closed eligibility keys on when the escalation was raised, so a re-block after the raise makes the human's close inert and costs a second escalation

Id: TD-PPagop-26082901 · Status: resolved · Filed: 2026-08-29 · Resolved: 2026-08-29 · Ref: https://github.com/Poetic-Poems/agent-ops/pull/939

Noticed while resolving escalations #905, #906, #910 and #911 by hand on 2026-08-29. Each of the three cycles that raised #905, #906 and #910 said “that race is being filed as a tech-debt record this cycle”, and none of the three filings landed — the shape TD-PPagop-26082804 records; td/TD-PPagop-26082840 to -42 are reservations with no file behind them.

ENABLER_ELIGIBLE_JQ (lib/cycle-state.sh) grants the issue-closed reason only when the item’s latest escalated event is later than its latest block B:

$escalation.ts > $b.ts

That compares against the escalation’s raise time. When a fresh block lands after the escalation was raised — a Co-Ordinator needs-refinement re-flag, in every observed case — B moves past the escalation, and the human’s close, whenever it comes, can no longer satisfy the rule. The item falls back to threshold, where requirement 36b’s thrash guard (refinement_second_pass_refused, whose only exemption is this very reason) refuses a second refinement without a human touch, so the only exit is a fresh escalation asking the human to say again what they already said.

Observed on three items, all re-blocked by one Co-Ordinator run on 2026-08-27 (labels applied 23:17:57–23:18:24Z; on #810 the block’s own detail read “Owner decision already settled … actionable now”):

item escalation raised closed re-block second escalation
#706 #849, 08-27T19:35:02Z 08-27T20:30:58Z 08-27T23:18:06Z #905
#779 #784, 08-24T21:35:11Z 08-25T04:27:31Z 08-27T23:18:16Z #906
#810 #813, 08-26T00:57:44Z 08-26T06:37:20Z 08-27T23:18:27Z #910

#706 is the sharpest case: the close came 2 h 47 m before the re-block, no engagement examined the item in that window, and the re-block then stranded the close. For #779 and #810 the closes were days earlier and had already been acted on (adjudicate-first unblocked both on 08-27, at 19:36Z and 19:02Z); their re-flags asked for the very decisions those closed escalations record, and the rule offered no path back to them.

Requirement 36a promises the human that closing the escalation issue is what restarts the work. Under this rule the promise holds only if nothing re-blocks the item between the raise and the next Enabler pass. A re-flag is cheap and frequent (#683, TD-PPagop-26082816), an Enabler pass runs at most once per cycle, and the loser is the human, who is asked the same question twice (#849 → #905) — the exact cost #627 exists to remove. Every such round trip also spends an Enabler engagement at Opus prices to establish that nothing changed.

Key the exemption on the human’s act, not on the raise. Two workable shapes; the first is the smaller:

  1. Compare against the block the escalation was raised for. escalated events already carry blocked_ts (lib/enabler.sh). Grant issue-closed when the latest escalation is closed and no examination has followed it, and either $escalation.ts > $b.ts (today’s rule) or the current block is a needs-refinement re-flag whose refined_before predates the escalation — the escalation was raised against the same specification the re-flag disputes, so the human’s close answers the re-flag too. The exemption grants an examination, not an unblock: the engagement still verifies the closed issue’s claim against reality (prompts/enabler.md), so nothing is released on the strength of a stale close.
  2. Read the close time. Extend the source-state digest (or the Enabler’s live read) with closedAt for issues carrying enabler_escalation_label, and grant issue-closed when closedAt > $b.ts. More faithful, but the digest is deliberately open-numbers-only, and this adds a field every consumer must tolerate.

Either way, add the #706 shape to test/enabler-eligibility.test.sh: escalation raised, closed, re-blocked, not examined → eligible with reason issue-closed.

  • lib/cycle-state.sh — ENABLER_ELIGIBLE_JQ, the issue-closed branch.
  • lib/enabler.sh — the escalated event and its blocked_ts.
  • lib/refinement.sh — refinement_second_pass_refused (requirement 36b).
  • prompts/enabler.md — what the model is told issue-closed means.
  • Escalations #905, #906, #910 (2026-08-28) — the engagements that diagnosed this and promised the record.
  • Related: TD-PPagop-26082816 (why the re-flags happen at all), TD-PPagop-26082804 (why the promised filings vanished).