What problem does it solve? Long-running background work often outlives a single prompt or detached run, leaving no single place to track owner context, progress, waits, and child tasks. TaskFlow gives that work one durable job identity with revision-safe state so it can be inspected, resumed, or cancelled cleanly. ## Core Features & Use Cases - Managed flow lifecycle: Create flows, run linked child tasks, set waiting states, resume, finish, fail, or cancel through api.runtime.tasks.flow. - Persisted state and waits: Store minimal resumable state in stateJson and structured wait metadata in waitJson across restarts. - Revision-checked mutations: Every mutation after creation is conflict-checked via expectedRevision, preventing lost updates. - Use Case: An inbox-triage plugin creates a managed flow, runs a detached classifier subagent, waits on a Slack reply, then resumes and finishes with an end-of-day summary. ## Quick Start Ask the assistant to create a managed TaskFlow for your multi-step background job, linking its detached subagent tasks and persisting state between steps.