Repository navigation
30 Supervisor and Tasks
Source: docs/design/30-supervisor-and-tasks.md
This is the deep design for the dual-loop model sketched in 02-Execution.
Reply turn (supervisor): read-only, serial per (Bot, conversation), built-in engine, owns communication and scheduling (start_task / inject_task / cancel_task / list_tasks + async managed actions).
Task: full tools, parallel within caps, may use external agent engine when implemented. Writes and long work only here.
Bot↔task traffic (task_event) uses owner_bot_id on the same messages table — filtered per viewer. Shared conversation summary only includes shared rows.
Every terminal task’s result is consumed at least once by a turn: persist notify (main.db, ≤1 per task, unique index) → task terminal (runs.db) → deliver → mark consumed at turn end. Prefer duplicate wakeup over silent loss. Reaper + startup reconcile.
Expand leases to workspace keys; one write task per workdir. Git worktree / CoW isolation explicitly out of scope (breaks remote-git policy, path gate, shadow checkpoints).
Revises D2, D5, D29, D37, D56, D66, D67, D72. D92 renames task root to cwd and ties settlement wakeups to collaboration episodes. Harness additions: 43-Task-Loop-Harness. UI: 42-Task-Run-View.
KepCup
Core
- 01-Conversation
- 02-Execution
- 03-Bot
- 04-Memory
- 05-Wiki-and-Skills
- 30-Supervisor-and-Tasks
- 40-Capability-Mounting
- 43-Task-Loop-Harness
Runtime
- 06-Isolation-and-Storage
- 07-Local-Runtime
- 08-Workdir
- 09-Tech-Stack
- 10-Sandbox
- 11-Storage
- 13-Permissions
- 24-Durable-Execution
Product
- 12-UI-Layout
- 33-Narrow-Layout
- 39-Workbench
- 41-Project-Team
- 42-Task-Run-View
- 45-Bot-File-Cards
- 47-File-WebApp-Viewer
Capabilities
- 14-Models-and-Browser
- 15-Interactive-Execution
- 16-Capability-Models
- 17-MinerU-Document-Parsing
- 18-Inline-Setup
- 19-Work-Path-and-Group-Setup
- 20-Conversation-Media
- 21-Web-Search
- 22-File-Skill-Routing
- 23-MCP-and-SubAgent
- 25-Capability-Tools
- 26-Voice-Input
- 31-Sensors
- 32-Bot-Widgets
- 35-Mail-Channel
- 36-Wiki-Multimodal-Ingest
- 38-Conversational-Settings
Team & agents
- 27-Butler-and-Delegation
- 28-External-Agents-ACP
- 37-Bot-Asset-Handover
- 41-InkCop-Local-Collab
- 48-Bot-Template-Export
Cloud & remote