Engineering/AI documentation

Task Kanban Board

Tasks presents project work as a Kanban board for tracking research operations, agent work, and review handoffs.

documented
UI Path
Tasks > Kanban
Component
KanbanBoard
Source Refs
3
Tests
1

Concepts: scr

Implementation Summary

Tasks presents project work as a Kanban board for tracking research operations, agent work, and review handoffs.

Frontend Surface

  • frontend/src/components/kanban/KanbanBoard.tsx
  • frontend/src/components/common/ToastNotification.tsx
  • frontend/src/lib/taskProgressToast.ts
  • frontend/src/stores/taskStore.ts
  • backend/app/api/routes/tasks.py
  • backend/app/api/websocket.py

State, API, And Backend Contracts

Stores

  • frontend/src/stores/taskStore.ts

API And Backend

  • backend/app/api/routes/tasks.py

Architecture Notes

  • The feature is mounted through frontend/src/components/kanban/KanbanBoard.tsx and the UI navigation path recorded in the inventory.
  • Task list reads are active-project scoped: /api/tasks requires project_id for every role, including global admins, and verifies project visibility before returning cards.
  • frontend/src/stores/taskStore.ts clears stale cards when there is no active project or when a scoped fetch fails, then filters returned rows back to the active project id as a frontend defense-in-depth check.
  • Task detail and mutation actions also carry the active project id. By-id reads, updates, moves, locking, review transitions, attachment changes, report creation, and deletion load tasks by both Task.id and Task.project_id, so a stale task id from another authorized project resolves as not found in the current board.
  • Kanban cards, assignment menus, priority menus, and drag/drop moves pass activeProjectId through the task store instead of relying on globally unique task ids.
  • Quick-create uses lock_for_edit so the backend persists the new task and its authenticated user editing lock in one transaction. The card opens in Task Editor immediately, and assigned or fallback workers skip the task until a successful editor save releases that lock.
  • Existing cards acquire the same project-scoped lock before opening. A conflicting editor receives an explicit warning instead of opening a form that cannot safely own the task.
  • Agent terminal progress now includes project_id. The board debounces terminal task_progress and task_queue_update events into a non-destructive scoped refresh, so a card moves to In Review or another terminal column without temporarily clearing the whole board.
  • Cross-project task aggregation belongs on explicit admin reporting surfaces, not on the project-facing Kanban route or store.
  • Realtime terminal progress carries an explicit outcome separate from numeric progress. Verified work uses ready_for_review; failed self-verification uses verification_failed. The toast layer renders those as Ready for Review and Task Needs Attention respectively, and never infers successful completion from an unclassified 100% event.
  • Legacy verification-failure messages are also classified as warnings, and backend agent_status: warning events remain visible as Agent Needs Attention instead of being dropped.
  • The frontmatter and manifest entries are the durable contract for agents updating this page after code changes.
  • When the referenced component, store, route, agent, skill, or test behavior changes, regenerate and validate the feature documentation.

Agents, Skills, LLM, MCP, And Permissions

  • No direct agent, skill, LLM, or MCP behavior is asserted beyond the cited source files.

Tests And Verification

  • tests/test_tasks.py
  • tests/test_project_scope_contracts.py
  • tests/test_websocket.py
  • frontend/src/lib/taskProgressToast.test.ts
  • frontend/src/lib/taskRealtime.test.ts
  • frontend/src/stores/taskStore.test.ts

Compass Evidence

  • Spec/task: CF-SPEC-60 / CF-770; CF-SPEC-73 / CF-941
  • Inventory source: docs/features/inventory.json

When To Update

  • Update this page whenever the listed UI components, stores, routes, model behavior, permissions, or tests change.
  • Regenerate the site and machine manifests with python scripts/feature_docs.py --seed-missing --generate-site --check.