Skip to content

fix(agent): bind kanban worker guidance to dispatched tasks - #102857

Open
jayleaton wants to merge 1 commit into
NousResearch:mainfrom
jayleaton:wt/t_44009c63
Open

jayleaton wants to merge 1 commit into
NousResearch:mainfrom
jayleaton:wt/t_44009c63

Conversation

@jayleaton

Copy link
Copy Markdown

Summary

  • gate dispatcher-only Kanban lifecycle guidance on a nonempty task binding and canonical dispatcher ownership
  • keep configured orchestrators able to inspect explicit task IDs without telling them to orient a nonexistent current task
  • cover unbound cron final responses, real workers, inherited worker context, and explicit task-id inspection

Verification

  • scripts/run_tests.sh tests/agent/test_system_prompt.py tests/tools/test_kanban_tools.py tests/cron/test_cron_kanban_env_isolation.py -q (106 passed)
  • ruff check on all changed Python files
  • python -m compileall -q on all changed Python files
  • independent review: PASS, no blocking security or logic findings

Rollout

No gateway process was replaced or restarted. Activation remains deferred while the existing cumulative gateway verification window is active.

@alt-glitch alt-glitch added type/bug Something isn't working comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint P3 Low — cosmetic, nice to have labels Sep 4, 2026
@alt-glitch

Copy link
Copy Markdown

This was generated by AI during triage.

Related: #64186 (earlier fix, same files) and #95857 both gate KANBAN_GUIDANCE for the same problem. This PR adds a stricter gate (task binding + dispatcher-ownership check, fail-closed) and drops the tool-presence fallback in system_prompt.py, so it is broader than #64186 rather than a duplicate. Reviewers may want to pick one of the three.

This branch has not been deployed

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

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint 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