Skip to main content

Tasks, schedules and groups

Source-reviewed API reference

This reference was reconciled against current development source on 2026-11-08. Historical public-source links below remain pinned to their stated revision; they are not proof that a public mirror or your installation has caught up. Start with the current operator guide for installation. This is static source review, not a live API compatibility test.

BURROW exposes several work surfaces with different state models. The task board, scheduled jobs, group channels and retained Workbench compatibility API are not interchangeable task queues.

Task board​

Create a project with {name}. Create a task with at least projectId and title; optional state, priority, description and assigned-agent fields are validated by the store. Read available statuses/priorities rather than inventing identifiers. List filters are projectId, status, priority and assignedAgentId.

POST /api/task-board/tasks/{id}/execute launches work through the assigned agent after awaiting the task/project lookups and execution record. Verify the returned outcome and then inspect the terminal execution receipt. Its response is not final task completion, and execution does not automatically move the task through board columns. The current UI creates tasks in To Do; the API/store default is Backlog. The status catalog includes parked alongside backlog, todo, in_progress, review, done and cancelled. Parked tasks remain stored but cannot execute; change to an eligible status before dispatch. Scheduled task targets still require To Do.

Task responses also expose derived archived and archivedAt. A task in done becomes archived after 48 hours from its terminal timestamp (with updated/created fallback for old records). This is a reversible completion projection, not a new status, deletion or expiry of history. Changing out of Done clears that projection; unchanged Done edits preserve the completion boundary. List responses still carry these fields so clients can separate active and archived work.

Task history is available through GET /api/task-board/tasks/{taskId}/history with limit and before. Task document attachments have separate list/upload/download/delete endpoints; their bytes and audit metadata are stored in PostgreSQL. These are distinct from chat attachment artifacts.

A conversation can bind an active project. GET/DELETE use agentId and optional sessionId (default default); PUT additionally requires projectId. The binding supports continuity and task context, not filesystem confinement. See Task semantics

Scheduled jobs​

Always supply agentId and a nonblank name. New jobs default to jobKind: "prompt", scheduleKind: "cron", and disabled unless enabled: true is supplied. Scheduling uses the operator timezone; legacy per-job timezone input is accepted but ignored. List can filter agentId and enabled; detail, PATCH, DELETE and run history use the job ID.

TargetRequired fields and behavior
jobKind: "prompt"Nonblank prompt (up to 20,000 characters); optional sessionId and contextMode: "continue" or "fresh". Fresh requires a named non-default session.
jobKind: "task"taskId assigned to agentId and in todo when choosing a new target. Uses that task's saved instructions plus optional extraInstructions (up to 20,000 characters), not a replacement schedule prompt. Core normalizes execution to session default and context mode continue.
scheduleKind: "cron"Five-field cron; returned runAt is null.
scheduleKind: "once"runAt; returned cron is null. A consumed job requires a new runAt to rearm.

runAt accepts an offset ISO datetime or offsetless YYYY-MM-DDTHH:mm[:ss] in the operator timezone. Nonexistent DST wall times are rejected; repeated offsetless times choose the first occurrence. Supply an explicit offset to select the second. Enabled one-time jobs cannot be newly scheduled in the past. Optional model overrides require a complete modelConnectionId/model pair.

At execution, task targets must still exist, be assigned to the selected agent and remain To Do. Missing, reassigned or other-state targets produce skipped receipts without moving the task's status. A one-time schedule is consumed and disabled on its due occurrence or manual trigger, even when the task is skipped; it is not a retry-until-eligible loop.

POST /api/scheduled-jobs/{jobId}/trigger returns 202 admission/skipping, not completion. Inspect /runs and optional lastRun in job reads for status/error/completion. Per-job overlap is skipped; missed downtime occurrences are recorded, not replayed. Restart reconciles exact terminal task receipts where available, otherwise interrupted work is recorded rather than automatically rerun. To request cancellation while execution is active, POST /runs/{runId}/cancel with optional reason; a non-active/finalizing run returns 404. Cancellation does not undo completed tools or reverse task status.

Validate execution, not only scheduling

The current scheduler receives the composed stores; the old missing-store wiring defect is resolved. Saving a cron job or receiving a trigger acknowledgement still does not establish successful unattended execution. Inspect terminal receipts and try a harmless job before relying on it.

GitHub workflow completion events​

This is a distinct durable inbound trigger for ordinary agent execution. The standing watch instruction and existing agent grants authorize the work; webhook text/logs/artifacts are evidence, not fresh authority. It is not an outbound GitHub credential or automatic permission to modify repositories.

MethodPathPurpose
GET, POST/api/events/settingsRead/patch receiver configuration through normal UI authentication
GET, POST/api/events/watchesList or create/update watches through normal UI authentication
DELETE/api/events/watches/{id}Delete a watch; accepted event snapshots remain
GET/api/eventsRetained event rows; optional agent filter and limit (default 50, maximum 500)
POST/api/events/githubHMAC-authenticated GitHub workflow_run receiver, not UI-token authentication

Receiver POST partially patches deliveryUrl, secret, and clearSecret. Omission preserves values; blank secret preserves stored bytes; clearSecret: true clears only the stored secret and cannot accompany a nonblank replacement. Secrets are encrypted/write-only, at most 8192 UTF-8 bytes with no CR/LF/NUL. Optional BURROW_GITHUB_WEBHOOK_SECRET overrides the stored value. Reads report source/override/configured/readiness flags, never plaintext. Readiness only establishes local signature-verification readiness, not public connectivity or a successful agent run.

A delivery URL is optional metadata, not routing configuration: it must be HTTP(S), path exactly /api/events/github, with no credentials/query/fragment. Configure the actual GitHub webhook separately with application/json, the same secret and Workflow runs events. Stored settings take effect per request; changed process environment needs restart.

Watch POST takes repository: "owner/repo", exact case-sensitive workflow name (not YAML filename), enabled agentId, operator-written instruction, optional sessionId (default ci-releases) and enabled (default true). Optional conclusions is a nonempty, duplicate-free array drawn from success, failure, neutral, cancelled, skipped, timed_out, action_required, startup_failure and stale. New watches default to failure, timed_out, startup_failure and action_required; omission on update preserves the stored selection. The upgrade migration applies these failure-oriented defaults to existing watches. Omit id to create a UUID; provide it to update. Use a dedicated session when this work should not mix with ordinary chat.

The receiver verifies X-Hub-Signature-256 over exact raw bytes, with a 256 KiB ceiling. Missing effective secret returns 503; invalid signature 401; oversize body 413. Signed ping returns 200; irrelevant events/actions return 202 with no accepted entries. Completed workflow deliveries must match validated repository/run/workflow identities, enabled watches and each watch’s selected conclusions. Filtering happens before a durable dispatch event is created; success and cancellation do not wake the agent by default. Changing a watch affects future events, not already accepted event snapshots.

A 202 receipt is durable acceptance, not agent success. It returns only accepted/duplicate counts and {id, accepted} per watch. Deduplication binds repository, run ID, attempt and watch ID; a distinct attempt is new work, conflicting snapshots return 409. States progress from pending to running and succeeded/failed; owner interruption remains inspectable rather than blindly rerunning side effects. Read retained events and terminal evidence to establish completion. Management responses can include operator instructions and execution details; keep them private.

Board-free continuation​

Public Burrow 2026.11.27 includes the native workflow_wait, mod_wait, and workflow_wait_status tools in supported private operator conversations. They are not a new webhook route, board entry, or standing watch. See the operator guide.

  • workflow_wait binds one exact repository, workflow display name, run ID, attempt and head SHA, plus a credential-free checkpoint. Public 2026.11.27 resumes from an exact signed completion. A match can arrive before or after registration.
  • mod_wait takes {id, checkpoint}, using the passive waitReceiptId returned by the owning mod in the current run as id. Invoke it alone. Resuming work does not deliver a standalone mod notification.
  • workflow_wait_status takes the exact saved receipt ID and reads retained trigger, continuation and outcome evidence; it does not initiate polling.

In Development 2026.11.28.1, Core can check the exact GitHub attempt during registration and again for persisted waiting targets. Verified API completions have github_api provenance on that wait; they are not inserted as signed deliveries or dispatched to watch/task consumers. A ready receiver is still required to register an unfinished wait. Recovery applies durable per-target and provider-wide cooldowns; signed deliveries bypass these HTTP gates. The operator can optionally set BURROW_GITHUB_ACTIONS_READ_TOKEN on the Burrow service for exact private-repository lookups, scoped to the intended repositories with Actions: Read. This is not an agent credential or tool argument and is not required for signed webhook delivery.

Group channels​

Create with name and a nonempty participantAgentIds array. The browser asks for at least two agents; the server boundary permits a nonempty participant list. Read channel detail for the newest page of up to 500 turns plus active runs. Continue with the returned olderCursor as the before query value; each page keeps chronological display order. A single response is not the whole group transcript.

POST messages with message and optional agentIds. Explicit targets win; otherwise recognized @ mentions select participants; without targets/mentions the message is broadcast. Unknown mentions fail validation. The server launches private per-agent group-<channelId> sessions and returns 202 with run IDs. Participants keep their own identity, tools and memory scope while receiving shared room context; the visible transcript is not a single merged agent identity.

Cancel through the group run endpoint. Poll detail for final visible messages; there is no group NDJSON contract here.

DELETE /api/group-channels/{channelId} cancels that channel's active runs and deletes its shared display transcript and channel metadata. It does not delete participant agents' individual sessions or undo prior tool side effects. A missing channel returns 404; invalid channel IDs return 400. Deletion and new group admissions share a channel gate. A database deletion failure leaves metadata available for retry.

Legacy Workbench compatibility​

/api/tasks and /api/workbench remain isolated compatibility routes for work items and planning/step/continuation. They are distinct from /api/task-board/tasks, the current Tasks UI and Minion execution. Do not build new task-board clients by treating the names as aliases.

Endpoint inventory​

Methods are significant. Braced segments are placeholders; URL-encode identifiers. See the contract and conventions for artifact limitations.

MethodPathPurpose
GET/api/task-board/statusesList task statuses
GET/api/task-board/prioritiesList task priorities
GET/api/task-board/projectsList projects
POST/api/task-board/projectsCreate a project
GET/api/task-board/tasksList tasks
POST/api/task-board/tasksCreate a task
GET/api/tasksList work items
POST/api/tasksCreate a work item
GET/api/tasks/{id}Read a work item
POST/api/tasks/{id}/stepRun one work-item step
POST/api/tasks/{id}/continueContinue a work item
POST/api/tasks/{id}/archiveArchive a work item
POST/api/workbenchPlan a workbench turn
POST/api/workbench/runRun a workbench step
GET/api/scheduled-jobsList scheduled jobs
POST/api/scheduled-jobsCreate a scheduled job
GET/api/scheduled-jobs/{jobId}Read a scheduled job
PATCH/api/scheduled-jobs/{jobId}Update a scheduled job
DELETE/api/scheduled-jobs/{jobId}Delete a scheduled job
GET/api/scheduled-jobs/{jobId}/runsList scheduled job runs
POST/api/scheduled-jobs/{jobId}/triggerTrigger a scheduled job
GET/api/group-channelsList group channels
POST/api/group-channelsCreate a group channel
GET/api/group-channels/{channelId}Read a group channel page
DELETE/api/group-channels/{channelId}Delete the channel and shared display transcript, retaining participant sessions
POST/api/group-channels/{channelId}/messagesPost a group-channel message
POST/api/group-channels/{channelId}/runs/{runId}/cancelCancel a group-channel run
POST/api/task-board/tasks/{id}/executeExecute task-board task
POST/api/scheduled-jobs/{jobId}/runs/{runId}/cancelCancel scheduled job run
PATCH/api/task-board/projects/{projectId}Update task-board project
DELETE/api/task-board/projects/{projectId}Delete task-board project
GET/api/task-board/tasks/{taskId}Read task-board task
PATCH/api/task-board/tasks/{taskId}Update task-board task
DELETE/api/task-board/tasks/{taskId}Delete task-board task
GET/api/task-board/tasks/{taskId}/historyRead task audit history
GET/api/task-board/tasks/{taskId}/attachmentsList task document attachments
POST/api/task-board/tasks/{taskId}/attachmentsUpload a task document attachment
GET/api/task-board/tasks/{taskId}/attachments/{attachmentId}Download task document bytes
DELETE/api/task-board/tasks/{taskId}/attachments/{attachmentId}Delete a task document attachment
GET/api/task-board/conversation-projectGet the conversation active project
PUT/api/task-board/conversation-projectSet the conversation active project
DELETE/api/task-board/conversation-projectClear the conversation active project

Targeted source review​

The full page was reconciled on 2026-11-08 against Backend commit 6b682eae6cd0dc6efa79e173b7d819fb219443b3. No live API or provider calls were performed. The links below are retained historical public references, not links to the current development source.

26 October delta review​

Updated against Backend 4df4b424e2b2856cb2c25c8464da7f806eb661e0 on 2026-10-26. This is a focused source comparison since the full review above, not a new application or provider test pass.

27 October delta review​

Changed contracts checked statically against Backend 32ff99dfc0317635f5c7aa53b4c9ec18266d4c09 on 2026-10-27. This does not recertify unchanged historical sections or report live API/provider tests.

Scheduler outcome reconciliation​

Checked 7 November 2026: the scheduler stages the exact terminal result before completing a run receipt. Restart reconciliation can use that staged result, an exact task terminal, or matching committed chat continuity, runtime receipt and assistant turn. Answer wording or a different session's latest result is not completion proof, and receipt-write failures do not turn a committed successful chat into a new execution failure. Without matching evidence, work is marked missed rather than automatically rerun. An invalid or unresolvable stored schedule is disabled with a failed schedule receipt so other jobs can continue; inspect and repair its schedule deliberately.

Agent scheduler pagination​

Checked 12 November 2026: The native agent tools scheduled_jobs_list and scheduled_job_runs return nextCursor, hasMore, resultCount and totalCount. Jobs default to 50 entries (maximum 100), ordered by immutable ID ascending; runs default to 50 (maximum 200), ordered by scheduled time, creation time and ID descending. Opaque cursors are bound to their agent/filter or job scope; mismatches fail as cursor_invalid.

These are live keyset pages, not a frozen multi-page snapshot. Deleting an anchor does not invalidate continuation, but insertions before the cursor require restarting to see them; totals describe each query. This is the native agent-tool contract, not a change to the separate mod scheduler facade or operator HTTP routes. GET /api/scheduled-jobs still returns jobs plus activeRuns without keyset cursors. HTTP /runs accepts limit and returns a runs array, not the native tool's pagination envelope.

15 November 2026 static API reconciliation​

Reviewed this page against Backend 29ca7b6cec378700503a587703adc1d82e9d6f6d and UI 171b19da7ce074fbcb19fa1ed20dfd58e9133cb5, including mounted routes and their relevant stores/UI callers. Corrections above describe implementation, not a live API, database or provider test. Earlier dated receipts remain historical.