agent-ops#597 and #598 still carry the incident's `blocked:needs-refinement` projection, so TD-PPagop-26082305's fix cannot reach the two items it was written for
Id: TD-PPagop-26082602 · Status: resolved · Filed: 2026-08-26 · Resolved: 2026-09-23 · Ref: #1780
TD-PPagop-26082305 (PR #805) stops the Refiner manufacturing the deadlock
agent-ops#670 described: an item it judges already adequately specified is now
refined (re-affirmation, requirement 39c) rather than a needs-refinement
decline whose block projects the very label its unblock_condition names.
That is a fix to the shape. The two original instances are still standing.
What is still true on 2026-08-26
Section titled “What is still true on 2026-08-26”Both issues remain open and still carry blocked and
blocked:needs-refinement:
- #597 —
blocked+blocked:needs-refinementapplied 2026-08-21T12:45:10Z; the hand-flagneeds-refinementlabel that block was raised over was removed 2026-08-21T19:25:18Z. - #598 — the same pair applied 2026-08-21T12:45:07Z; its hand-flag
needs-refinementremoved 2026-08-22T00:11:03Z.
Both escalations asking for exactly this cleanup — #660 (for #597) and #666 (for #598) — are closed, and agent-ops#670’s own “Out of scope” section records the retroactive cleanup as “already done by hand”. The label history says otherwise: five days after the hand-flag came off, the block projection is still on both issues.
Why it matters
Section titled “Why it matters”Requirement 39a excludes a blocked item from Refiner candidacy, and the selection walk excludes it too. So for as long as the projection stands, the re-affirmation path PR #805 adds is unreachable for #597 and #598 — the fix prevents new instances of the deadlock without releasing the two that prompted it. Nothing in the pipeline is expected to notice: from its side these are two ordinary blocked items.
Two possibilities, and which one holds decides the fix:
- The block is still open in the shared log. Then the labels are an
accurate projection and what needs clearing is the block itself — which,
per requirement 34c, is a human’s line appended to
state_dir/log.jsonl, or an Enablerunblockedverdict. - The block cleared and the projection did not come off. Then
label_own_stale_applications’ removal path did not run, or ran and failed, for these two — and that is a defect in the projection’s own cleanup worth pinning with a test, not just a hand cleanup.
Distinguishing them needs a read of the fleet’s log.jsonl, which is not
available from a review clone; that read is the first step of whatever fix
this item gets.
Suggested fix
Section titled “Suggested fix”Read the shared log for open needs-refinement blocks naming
Poetic-Poems/agent-ops items 597 and 598. If they are open, clear them by
the requirement 34c interface and let the projection come off on its own,
confirming it does. If they are already closed, treat the standing labels as
the bug: find why the stale-removal path left them, fix it, and pin it.
Either way, finish by confirming both issues re-enter the Refiner’s candidate set and that a re-affirmation (requirement 39c) is what they get — which is the end-to-end verification of agent-ops#670 Part 2 that PR #805’s unit-level replay could not perform against live state.
Noticed while reviewing https://github.com/Poetic-Poems/agent-ops/pull/805.
Determined 2026-08-26: possibility 2, and it is wider than two items
Section titled “Determined 2026-08-26: possibility 2, and it is wider than two items”The read this record said it needed — the fleet’s log.jsonl — was done on
the workstation, over ockham-container’s own state directory plus the three
peer trees state-sync.sh fetch materialises under .agent-ops-peers
(poetic-1, poetic-2, ockham-2). Possibility 2 holds: the blocks are
closed and the projection did not come off. Branch 1 of the suggested fix
above is therefore closed out — no human log.jsonl line under requirement
34c is needed for either issue.
Both blocks cleared, and are recorded as cleared. #597: unblocked,
by: label-removed, at 2026-08-21T19:54:24Z (ockham-container) and
2026-08-21T20:21:54Z (poetic-1). #598: the same pair at
2026-08-22T00:36:54Z and 2026-08-22T01:11:23Z. Each follows the hand-flag
removal this record’s opening section dates.
Seven issues are stuck, not two. Of the 14 open Poetic-Poems/agent-ops
issues carrying blocked:needs-refinement on 2026-08-26, six have a block
still open in the log and are projected correctly (#595, #596, #599, #600,
#601, #603). Seven do not: #597, #598, #602, #604, #606, #613, #640 —
#597 and #598 cleared by: label-removed, the other five by: enabler. A
fifteenth, #810, carries the pair with no block event in any node’s log at
all; it is newer than the rest and is left out of the count here rather than
guessed at.
The pipeline’s own record says the projection is what excludes them, in as
many words: every issues-excluded event since names all seven with the
reason blocked-label — e.g. 2026-08-25T06:24:37Z ockham-container 20 issue(s) excluded: … #597 (blocked-label), #598 (blocked-label), #602 (blocked-label), … #640 (blocked-label).
Why none of the seven can self-heal. Not one carries an
own-label-action for blocked or blocked:needs-refinement in any node’s
log; the only label actions recorded against them are for the
needs-refinement hand flag. The pair was applied on 2026-08-21T12:45 by
scripts/sweep-legacy-refinement-assignees.sh, which records no event of its
own — the consequence refinement_blocked_label_targets’ own comment already
names (“the sweep has no event of its own to record which of added/
present actually happened … a legacy block’s blocked_label field can
never be filled the way a fresh block’s is”). Requirement 38b’s every-cycle
reconciliation (lib/candidate-gather.sh, via
refinement_blocked_label_stale) then keys strictly on a logged
own-label-action add: “a logged own-label-action add with no later
remove is proof enough on its own that a removal is ours to retry”. No
add, no retry. So the backstop written for exactly this
permanently-stuck-hold class is structurally blind to every label that sweep
applied — not for these seven only, but for any item it ever touched.
And for the by: label-removed half, nothing even tried.
release_refinement_label is called from three sites, all of them in
lib/enabler.sh. The hand-flag clear in lib/candidate-gather.sh logs its
unblocked and attempts no blocked-label removal at all — which is the whole
of what happened to #597 and #598.
#602 shows a third face of it. Its block cleared at 2026-08-21T07:52:09Z
(unblocked, by: enabler) and the sweep projected a label onto it at
12:45 — five hours after the block it was projecting had already gone.
What is left to fix
Section titled “What is left to fix”- The one-off cleanup: seven issues, not two, and both labels on each. The
generic
blockedkeeps its documented over-hold (blockedis a human’s own control, so the code will not remove it on a legacy block), so a hand removal has to take the pair. - The defect, which is what makes this more than a cleanup: either the sweep
records its own applications so
refinement_blocked_label_stalecan see them, or the reconciliation stops requiring a logged add for the compoundblocked:<reason>label — which, unlikeblocked, no human ever applies by hand, asrefinement_blocked_label_targetsalready argues in the course of treating it as unconditionally the sweep’s own. Whichever, pin it with a test. - The sweep should not project onto a block that has already cleared (#602).
The end-to-end confirmation this record already asks for is unchanged: that the affected issues re-enter the Refiner’s candidate set and that a re-affirmation (requirement 39c) is what they get.
Migrated to https://github.com/Poetic-Poems/agent-ops/issues/994.