Skip to content

A pull request whose only review candidate is its own author is a silent skip nothing surfaces

Id: TD-PPagop-26081001 · Status: resolved · Filed: 2026-08-10 · Resolved: 2026-08-13 · Ref: https://github.com/Poetic-Poems/agent-ops/pull/349

lib/handoff.sh’s ensure_human_reviewer (requirement 38a) returns the same bare skip for three unrelated reasons: the pull request is a draft, something is already CHANGES_REQUESTED-blocking it, or — the case this item is about — there is no legal review-request candidate left once the author is struck from both the known-reviewers list and the enabler_assignee fallback. The first two are fine to leave alone (they have their own actor and their own clock); the third is a genuine human-visibility gap scripts/sweep-human-visibility.sh reaches every cycle and can never correct — nobody is ever asked, and, because the three cases share one return value, the sweep cannot even tell this one apart from the other two to log a warning about it. It is a silent skip by design (see sweep-human-visibility.sh’s header note), and stays invisible to scripts/gather-human-visibility-hygiene.sh (requirement 38e, tech-debt/TD-PPagop-26080801.md) for exactly the same reason: that gatherer reads the sweep’s warning events back out of the log union, and this case never produces one.

Fixing it properly needs ensure_human_reviewer to distinguish “no candidate” from its other two skip reasons in its return value — skip\tno-candidate or similar — which is a change to a function with three call sites (sweep-human-visibility.sh, the Reviewer’s handoff, and the Enabler’s complete_handoff in agent-cycle.sh) and its own extensive regression coverage (test/handoff.test.sh). That is real, but separate, work: deferred here rather than folded into TD-PPagop-26080801.md’s fix, to keep that PR’s diff to the log-reading half of the problem it actually claimed.

Suggested fix: give ensure_human_reviewer a distinguishable “no candidate” return, have the sweep log a warning for it (or a dedicated event), and extend scripts/gather-human-visibility-hygiene.sh’s candidate rule to cover it — the live-reverification the gatherer already does (re-checking the pull request is still open and still has no candidate) generalises to this case without much new machinery once the signal exists to read.

Referenced from: requirement 38e, docs/IMPLEMENTATION-PIPELINE-SPEC.md.