Skip to content

fix(kanban): promote blocked tasks when parent dependencies complete - #24018

Closed
bradhallett wants to merge 1 commit into
NousResearch:mainfrom
bradhallett:fix/kanban-recompute-blocked-dependencies
Closed

fix(kanban): promote blocked tasks when parent dependencies complete#24018
bradhallett wants to merge 1 commit into
NousResearch:mainfrom
bradhallett:fix/kanban-recompute-blocked-dependencies

Conversation

@bradhallett

Copy link
Copy Markdown
Contributor

Problem

recompute_ready() only scanned todo tasks for promotion to ready. Tasks in blocked status whose parent dependencies had since completed were never re-evaluated — they stayed stuck in blocked forever unless manually unblocked.

Fix

Expand the recompute_ready query to also include blocked tasks. When all parent dependencies are done/archived, blocked tasks are promoted to ready with failure counters reset (consecutive_failures = 0, last_failure_error = NULL) — equivalent to an automatic unblock.

Files Changed

  • hermes_cli/kanban_db.py — Updated recompute_ready() to scan both todo and blocked tasks; blocked promotions also reset failure counters
  • tests/hermes_cli/test_kanban_db.py — Added test_recompute_ready_promotes_blocked_with_done_parents regression test

Test Results

4 passed, 79 deselected in 0.53s

recompute_ready only scanned 'todo' tasks for promotion, ignoring
'blocked' tasks entirely. When a task was blocked (e.g. by the circuit
breaker) and its parent dependencies later completed, the task stayed
stuck in 'blocked' forever unless manually unblocked.

Now recompute_ready also scans 'blocked' tasks. When all parents are
done/archived, the blocked task is promoted to 'ready' with failure
counters reset — equivalent to an automatic unblock.

Includes a regression test for the blocked-parent-done promotion path.
@alt-glitch alt-glitch added type/bug Something isn't working comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have labels May 11, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #28377 (cherry-picked onto current main with your authorship preserved via rebase-merge — commit 40c1dec). Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants