Skip to content

fix(kanban): tell workers not to use clarify; route to kanban_block instead (#32167)#34413

Merged
teknium1 merged 1 commit into
mainfrom
fix/kanban-worker-no-clarify-32167
May 29, 2026
Merged

fix(kanban): tell workers not to use clarify; route to kanban_block instead (#32167)#34413
teknium1 merged 1 commit into
mainfrom
fix/kanban-worker-no-clarify-32167

Conversation

@teknium1

@teknium1 teknium1 commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Kanban workers run headless — no live user is on the other side of clarify. The call times out (~120s default) and the task sits silently in running with no signal to the operator that input is needed.

Reporter (#32167) observed a real incident: a worker asked 'promote to production, or check staging first?' via clarify, the call timed out, the agent hallucinated a fallback, and the task sat 'running' for hours.

Changes

  • agent/prompt_builder.py — KANBAN_GUIDANCE ## Do NOT section gets an explicit 'do not call clarify' bullet (auto-injected into every dispatcher-spawned worker).
  • skills/devops/kanban-worker/SKILL.md — same bullet in the bundled worker skill's ## Do NOT section.
  • scripts/release.py — AUTHOR_MAP entry for @kweiner.

Both point at the right pattern: kanban_comment (context) + kanban_block(reason=...) (decision needed). The task surfaces on the board as blocked, the operator sees it, unblocks with their answer in a comment, the worker respawns with the thread.

Validation

Before After
Worker calls clarify Task stuck in running, clarify times out at 120s, agent hallucinates Worker is told (system prompt + skill) to use kanban_comment + kanban_block instead
Existing kanban tests pass pass

Closes #32167. Credit @kweiner for the report and the proposed fix locations.

Infographic

kanban-worker-no-clarify

@github-actions

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

🔎 Lint report: fix/kanban-worker-no-clarify-32167 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: 9423 on HEAD, 9423 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4891 pre-existing issues carried over.

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

…nstead (#32167)

Kanban workers run headless — no live user is on the other side of `clarify`,
so the call times out (~120s default) and the task sits silently in `running`
with no signal to the operator that input is needed. Reporter observed a real
incident where a worker asked 'promote to production, or check staging first?'
via clarify, the call timed out, the agent hallucinated a fallback, and the
task sat 'running' for hours.

Fix: explicit 'do not call clarify' bullet in two surfaces every kanban worker
sees —

- `agent/prompt_builder.py` KANBAN_GUIDANCE `## Do NOT` section (auto-injected
  into every dispatcher-spawned worker run).
- `skills/devops/kanban-worker/SKILL.md` `## Do NOT` section (the bundled
  worker skill).

Both point at the right pattern: `kanban_comment` (context) + `kanban_block`
(decision needed) — the task surfaces on the board as blocked, the operator
sees it, unblocks with their answer in a comment, and the worker respawns
with the thread.

Co-authored-by: kweiner <17778+kweiner@users.noreply.github.com>
@teknium1 teknium1 force-pushed the fix/kanban-worker-no-clarify-32167 branch from 76b5422 to 64dcb8a Compare May 29, 2026 06:42
@alt-glitch alt-glitch added P3 Low — cosmetic, nice to have type/bug Something isn't working comp/agent Core agent loop, run_agent.py, prompt builder labels May 29, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Supersedes #32183 — same fix (forbid clarify in kanban workers), salvaged onto current main with the code relocated to pt_input_extras pattern.

@teknium1 teknium1 merged commit 40217aa into main May 29, 2026
25 checks passed
@teknium1 teknium1 deleted the fix/kanban-worker-no-clarify-32167 branch May 29, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder 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.

[Bug]: Kanban workers should never use clarify — use kanban_block instead (task hangs in running)

2 participants