MinBot check deadlocks on open Codex threads from an older head (platform #576, #586)

Open
#150 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github, python
Domain
devtools, testing

Research direction

Start by reading advance.codex_decision, codex_clean, Advance.resolve_addressed, and Advance.full_check; compare their treatment of open Codex threads from older commits with hr-gate's open_thr logic near line 1708. Trace how minbot_pass and back_to_rework handle those threads. Done means a PR with a clean head and an open, not outdated thread from an older head passes MinBot and the thread is resolved.

Written by the indexing model from the issue text.

Description

Seen 2026-11-18 on the platform board (swarmbot, after MethBot relayed Michal's 8:41 PM ET question). Platform PRs #576 (head 7bae3053) and #586 (head e987ffa4) sat in Auto Review for more than 5 hours with Codex clean on the head and CI green. Every swarm-advance --minbot N ran (the gate queue drained; it was not dead) and ended with "#N stays in Auto Review: ... 3 Codex clean on head: 0 Codex finding review(s) on head, 1 (or 2) open Codex thread(s)".

Cause: the open threads were Codex P2 threads from older heads (#576: d785b9dd; #586: f3cbde0f) that are not outdated, because the commented lines did not change. The two readers disagree about them:

  • advance.codex_decision / codex_clean (tangentswarm) ignores an open thread from an older head once Codex is clean on the head, and Advance.resolve_addressed resolves such threads, but only after a pass (apply_pass).
  • Advance.full_check runs hr-gate evaluate(), whose row 3 counts every open, not outdated Codex thread, whatever its commit (open_thr in ~/bin/hr-gate, near line 1708).
  • back_to_rework only acts on threads on the head (head_threads), so it does not send the PR back either.

So the PR can never pass: the pass that would resolve the threads is blocked by those threads. Nothing logs it as stuck beyond the per-run "stays in Auto Review" line.

swarmbot checked that the head fixes each finding (#576: c2104907 queues the group re-render for every paint attribute; #586: 37100dfe keeps the inline height across collapse and expand, with tests), resolved the three threads, and re-ran swarm-advance --minbot 576 and --minbot 586 at about 8:55 PM ET. Both passed to Ready.

Fix: one definition of "open Codex thread that blocks" for both readers. Either hr-gate row 3 ignores threads whose original commit is not the head once Codex is clean on the head (the codex_decision rule), or minbot_pass resolves the addressed threads before full_check. Test: a PR with Codex clean on its head and an open, not outdated thread from an older head passes the MinBot check and has the thread resolved.

Dominant language
Python
Stars
3
Forks
0
Avg merge
5h 57m
Merged PRs (30d)
60

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tangentcode/tangentswarm

All issues in tangentcode/tangentswarm

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.