Skip to content

fix(kanban): align failure diagnostics with retry limit#27868

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-6df71afb
May 18, 2026
Merged

fix(kanban): align failure diagnostics with retry limit#27868
teknium1 merged 1 commit into
mainfrom
hermes/hermes-6df71afb

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of #25591 from @qWaitCrypto onto current main.

The dispatcher defaults kanban.failure_limit: 2 (auto-block after 2 consecutive non-success attempts), but kanban_diagnostics.py defaulted failure_threshold: 3 and the user-facing detail text mentioned a stale "default 5". Net effect: a task auto-blocks before the repeated-failure diagnostic ever fires.

  • New config_from_kanban_config() translates runtime kanban config → diagnostics config.
  • CLI + dashboard both pass the active kanban config to diagnostics.
  • Default repeated-failure threshold derived from kanban.failure_limit unless kanban.diagnostics.failure_threshold (or legacy spawn_failure_threshold) is set explicitly.
  • Diagnostic detail now reports the actual configured failure limit, not stale "default 5".

Aligned with the new auto-decompose path (#27572): failure_limit gates ALL kanban tasks regardless of how they got created, so auto-decomposed children inherit the same behavior.

Original PR: #25591.

Validation

  • All 35 test_kanban_diagnostics.py tests passing.

@teknium1 teknium1 merged commit d9fef0c into main May 18, 2026
16 of 17 checks passed
@teknium1 teknium1 deleted the hermes/hermes-6df71afb branch May 18, 2026 08:22
@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-6df71afb vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8779 on HEAD, 8779 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4616 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@alt-glitch alt-glitch added type/bug Something isn't working comp/cli CLI entry point, hermes_cli/, setup wizard comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have labels May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard 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