B6 — Planner board: column header — queue depth + soft WIP limit #414
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#414
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As an operator,
I want each agent column to show queue depth and turn red when it exceeds a per-agent threshold,
so that I know when to spawn another instance instead of piling more on.
Each agent has a FIFO queue (
docs/reviewer-instances.md); the operator finds out an agent is saturated by spawning extras in the agents tab. This story surfaces queue depth on the column header with a soft WIP threshold.Acceptance criteria
Column header
running + queued / WIP(e.g.3 / 4).bg-error/10and the badge text turnstext-erroroncerunning + queued > WIP.reviewer-1: 2 in flight, reviewer-2: 1 queued). UseTooltipfrom the existing component library.Config
config/agents.jsonunder a new optionalwip_soft_limit?: numberfield.Backend — extend
GET /boardresponse per columnwip_soft_limit: number(resolved fromagents.json, default 4).in_flight: numberandqueued: numberaggregates (sum across instances of that type).Backend — new endpoint
GET /board/agent-instances{ <agent_type>: [{ login: string, in_flight: number, queued: number }] }for the WIP tooltip./boardcadence) so the tooltip is cheap to render.Tests
board-column.test.tsx: header shows2 / 4given response within_flight: 1, queued: 1, wip_soft_limit: 4.board-column.test.tsx: header turns red oncein_flight + queued > wip_soft_limit.board-column.test.tsx: tooltip lists per-instance counts from/board/agent-instances./boardresponse includeswip_soft_limit,in_flight,queuedper column./board/agent-instancesreturns expected shape.Out of scope
References
docs/specs/board-rework.md§5 B6 + §6.docs/reviewer-instances.md.config/agents.jsonschema:apps/server/src/domain/agents/config.ts(or wherever the loader lives).Dependencies
/board.Suggested first commit
feat(board): WIP soft limit badge on agent columns + per-instance tooltip