Engineering/AI documentation
Task Kanban Board
Tasks presents project work as a Kanban board for tracking research operations, agent work, and review handoffs.
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.tsxfrontend/src/components/common/ToastNotification.tsxfrontend/src/lib/taskProgressToast.tsfrontend/src/stores/taskStore.tsbackend/app/api/routes/tasks.pybackend/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.tsxand the UI navigation path recorded in the inventory. - Task list reads are active-project scoped:
/api/tasksrequiresproject_idfor every role, including global admins, and verifies project visibility before returning cards. frontend/src/stores/taskStore.tsclears 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.idandTask.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
activeProjectIdthrough the task store instead of relying on globally unique task ids. - Quick-create uses
lock_for_editso 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 terminaltask_progressandtask_queue_updateevents 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
outcomeseparate from numeric progress. Verified work usesready_for_review; failed self-verification usesverification_failed. The toast layer renders those asReady for ReviewandTask Needs Attentionrespectively, and never infers successful completion from an unclassified 100% event. - Legacy verification-failure messages are also classified as warnings, and backend
agent_status: warningevents remain visible asAgent Needs Attentioninstead 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.pytests/test_project_scope_contracts.pytests/test_websocket.pyfrontend/src/lib/taskProgressToast.test.tsfrontend/src/lib/taskRealtime.test.tsfrontend/src/stores/taskStore.test.ts
Related Features
Related Concepts
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.