Description
Category
behavioral (reporting) — source-control-babysit-resolve-thread
Observed
Resolving a single Bot-authored review thread with --resolve --include-human returned:
{
"includeHuman": true,
"humanThreadsActed": 1,
"eligibleCount": 1,
"resolvedCount": 1,
"humanThreads": 0,
"threads": [
{ "author": "chatgpt-codex-connector", "authorType": "Bot", "botOnly": false, "action": "resolved" }
]
}humanThreadsActed: 1 and humanThreads: 0 are inconsistent, and the one acted thread is authorType: "Bot". No human-authored thread existed or was resolved.
Expected
humanThreadsActed should count only threads whose opening comment is human-authored. For a Bot-authored thread it should be 0. As-is, the counter appears to increment for any thread acted on while --include-human is set, regardless of the opening author.
Impact
Cosmetic/reporting only — the per-thread action: "resolved" and authorType are correct, so the trusted signal is intact. But an operator or automation reading humanThreadsActed to audit "did I force-resolve a human's thread?" would get a false positive, undermining the human-thread safety-rail's own telemetry.
Suggested fix location
The counter increment in source-control-babysit-resolve-thread (0.9.0 bin/) — gate the humanThreadsActed bump on the resolved thread's opening authorType == "User" (or __typename != "Bot"), the same author check already used for the --include-human eligibility decision.
Context
Surfaced while babysitting PR #494 (resolved the Codex P1 inline thread). Distinct from #484 (bare wrapper not on PATH).
Work-class: C3 (bug-fix-shaped) — attended triage 2026-07-23, operator-ratified. 🤖
Activity
kyle-sexton commentedon Jul 19, 2026
This was generated by AI during triage. · Category: behavioral (reporting bug) · Priority:
priority: high(source-control north-star; it undermines a safety-rail's own telemetry — rule 5 lifts it above cosmetic). Self-labeled severity: cosmetic/reporting (per-threadaction/authorTypecorrect, trusted signal intact) — noted for sub-sort. Routedstatus: ready.Plan (single site)
source-control-babysit-resolve-thread(0.9.0bin/) incrementshumanThreadsActedfor ANY thread acted on while--include-humanis set, regardless of the opening comment's author — so resolving a Bot-authored thread reportshumanThreadsActed: 1alongsidehumanThreads: 0(inconsistent).Fix: gate the
humanThreadsActedincrement on the resolved thread's openingauthorType == "User"(equivalently__typename != "Bot") — the SAME author check already used for the--include-humaneligibility decision. Bot-authored thread →humanThreadsActedstays 0.Acceptance
--include-humanreturnshumanThreadsActed: 0;humanThreads/humanThreadsActedare consistent.humanThreadsActed: 1.action/authorTypeoutput is unchanged (already correct).Restores the human-thread safety-rail's telemetry so "did I force-resolve a human's thread?" audits don't false-positive.
Decision defaulted: gate the counter on opening
authorType == "User", reusing the existing--include-humaneligibility author check — veto before mergerefactor(source-control): one shared babysit authorship/finding/appro…
kyle-sexton commentedon Jul 21, 2026
kyle-sexton commentedon Jul 21, 2026
Investigated by the work lane — already resolved, no PR needed.
Verified:
plugins/source-control/skills/babysit-prs/scripts/babysit_resolve_thread.py'shumanThreadsActedcounter (lines ~473-477) is already correctly gated onnot is_bot(r["author"], r["authorType"]), and a dedicated regression test (test_babysit_resolve_thread.py) already asserts the exact scenario this issue reports: Bot-authored/botOnly:false→humanThreadsActed == 0; human-authored →1; mixed →1. Both landed together in commit3f428074(refactor(source-control): one shared babysit authorship/finding/approval classifier + golden fixtures (#534) (#634)), whose changelog explicitly names this issue among the folded-in fixes.Ran the test locally: 3/3 passing.
No code change needed here — this lane doesn't close issues (that's a human/triage action), but flagging for closure: fixed by #634, safe to close as already-resolved.
fix(source-control): invoke babysit mutation wrappers by bin/ path, n…
kyle-sexton commentedon Jul 24, 2026
This was generated by AI on operator direction.
Superseded — this item was already ratified and should not have been queued.
The earlier first-drain ratification request on this issue was raised in error. The admission gate dispatches a C3 bug-fix-shaped item when it carries either its own recorded ratification or a completed first drain — and this issue already carried recorded ratification in its body from attended triage on 2026-07-23. The drain cycle applied the blanket first-drain rule without first reading bodies for an existing ratification, so it queued an item that was already admitted.
Restored to the autonomous frontier:
agent-readyre-applied,needs-humanremoved. No human action is required, and this issue no longer appears in the attended queue's ratify view.kyle-sexton commentedon Jul 25, 2026
This was generated by AI during autonomous work-lane execution. 🤖
Closing as already-resolved — verified against current
main, no PR needed.The work lane picked this item, ran the Step 4 staleness pre-check, and independently re-verified
the fix rather than re-deriving it from the earlier investigation comment. All four checks pass:
1. The fix is present in current
main.plugins/source-control/skills/babysit-prs/scripts/babysit_resolve_thread.py:473-480gates thecounter on the opening author, exactly as this issue's Agent Brief specified:
The gate reuses the shared
is_botauthorship classifier — the same author check the--include-humaneligibility decision uses, which is what the brief asked for.2. The fix commit is an ancestor of
origin/main.3f428074— refactor(source-control): one shared babysit authorship/finding/approval classifier +golden fixtures (#534) (#634). Confirmed via
git merge-base --is-ancestor 3f428074 origin/main.3. A golden regression test pins all three acceptance criteria, and passes.
plugins/source-control/skills/babysit-prs/scripts/tests/test_babysit_resolve_thread.py— 3/3 OK:test_bot_opened_thread_with_human_reply_is_not_a_human_thread→humanThreadsActed == 0(the exact reported scenario:
authorType: "Bot",botOnly: false)test_human_opened_thread_counts→humanThreadsActed == 1test_mixed_counts_only_the_human_opener→humanThreadsActed == 14. The CHANGELOG documents it (
plugins/source-control/CHANGELOG.md), naming the precise rootcause this issue reported —
botOnlywas the wrong gate, since a bot-opened thread carrying a laterhuman reply is
botOnly: falseyet was never a human's thread.A repo-wide
humanThreadsActedgrep found no second implementation; every hit outsideplugins/source-control/is a stale local worktree copy, not tracked code.Why this needed a close rather than another investigation comment
This is the second lane to reach this conclusion. The earlier lane (2026-07-21) verified the same
facts but declined to close, and a later ratification-correction comment then re-applied
agent-ready, returning an already-fixed item to the autonomous frontier. Leaving it open guaranteesa third pick. Closing is the loop-breaking action and is what the
/work-items:workStep 4 stalenesspre-check instructs for work already done.
Fixed by #634. Reopen if any of the four checks above does not hold on your read.
fix(source-control): require a BOT OPENER for botOnly, not a bot anyw…