Skip to content

fix(tools): allow orchestrator profiles to see kanban tools via toolsets config#18971

Closed
shellybotmoyer wants to merge 1 commit into
NousResearch:mainfrom
shellybotmoyer:fix/kanban-orchestrator-visibility
Closed

fix(tools): allow orchestrator profiles to see kanban tools via toolsets config#18971
shellybotmoyer wants to merge 1 commit into
NousResearch:mainfrom
shellybotmoyer:fix/kanban-orchestrator-visibility

Conversation

@shellybotmoyer

Copy link
Copy Markdown
Contributor

Summary

Extends _check_kanban_mode() in tools/kanban_tools.py to also return True when the active profile has kanban in its toolsets config — not only when HERMES_KANBAN_TASK env var is set.

Problem

Orchestrator profiles (e.g., a techlead that routes work via Kanban) cannot see any kanban tools (kanban_create, kanban_link, etc.) even when they have kanban explicitly listed in their toolsets config. This is because _check_kanban_mode() only checks for the HERMES_KANBAN_TASK env var, which is only set by the kanban dispatcher when spawning a worker process.

The orchestrator then hallucinates task creation because its SOUL.md instructs it to use kanban tools that don't exist in its schema.

Fix

Add a second path to _check_kanban_mode() that checks the current config for kanban in toolsets. Uses the existing load_config() which has mtime-based caching, so this adds negligible overhead. The check_fn results are further TTL-cached (~30s) by the tools registry.

Workers continue to work via the HERMES_KANBAN_TASK env var (no change). Orchestrators now get visibility via their toolsets config.

Fixes #18968

Testing

  • Existing kanban worker behavior unchanged (env var path still checked first)
  • Orchestrator profiles with kanban in toolsets now see all 7 kanban tools
  • Profiles without kanban in toolsets continue to see zero kanban tools

…ets config

Extends _check_kanban_mode to also check if "kanban" is in the

current profile toolsets config, not just HERMES_KANBAN_TASK env var.

Orchestrator profiles that route work via Kanban were invisible to the

kanban tool check because only workers get the env var. Fixes NousResearch#18968.
@teknium1

teknium1 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Closing as duplicate of #18970. Same fix shape (_check_kanban_mode returns True when HERMES_KANBAN_TASK set OR kanban ∈ config.toolsets). Merged #19606 which used @pdonizete's commit — they submitted first and authored the underlying issue. Thanks for the quick contribution; you nailed the gate logic.

@teknium1 teknium1 closed this May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tools Tool registry, model_tools, toolsets P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kanban tools not visible to orchestrator profiles with kanban toolset enabled

3 participants