Skip to main content

Tasks

Status: Ready

Truth label: Limited

Audience: Fleet operator

Reader outcome: Create a task that reaches the intended worker with the intended authority, then read its evidence without opening the repository.

Last verified: 2026-09-13

Full guides: System manual, Queued execution settings, Task briefs and acceptance, Runbook

Create a task​

A task requires a project, a title, and a description. Everything else has a default resolved through the chain in Task defaults.

ControlMeaning
priority1 is highest, 10 is lowest by convention
supervision modeautonomous, checkpoint, or supervised
enginerequested worker backend
permissionsafe, write, or yolo, clamped by the worker ceiling
effortreasoning depth, offered per engine: Claude Code low to max, Antigravity low to high, Codex minimal to xhigh, Codex OSS none
assigned worker idpin to one worker
required capabilitiestags the worker must advertise
managed methoda pinned method package, replacing persona and skills
worker typelegacy persona such as developer, architect, QA, or PM
skillsextra legacy skill packages, capped during prompt assembly
verification commandindependent post-engine argument list
automatic retryretry a machine or verification failure
session idgroup related work
parent task idblock until the dependency completes

The request field for a worker pin is assigned_worker_id. Unknown request fields are currently ignored, so verify the returned task contains assigned_worker after creating a pinned task.

Agent turns are always unlimited. There is no turn setting in task creation, defaults, queued execution settings, or recurring templates. Claude Code runs without --max-turns, and the in-process agentic loop runs until completion or an existing stop condition. An older max_iterations value is accepted and ignored. Timeouts, context budgets, cancellation, verification retries, and the legacy no-progress guard keep their behavior. Central and every worker must restart to pick this up after an upgrade, and Cortex must reload.

Selecting a worker narrows the engine list to that worker's installed engines. If that changes the engine, Cortex refreshes the model and effort controls together. A compatible effort selection is retained across an engine change; an incompatible one returns to the engine default. The effort lists come from each engine's adapter, not from the installed CLI version, and a worker drops a level its engine does not offer rather than passing a flag the binary would reject.

Edit context budgets for all agents on the new task form opens the shared context budget editor without discarding the task. Budgets are separate from task defaults and are loaded at the start of each worker attempt.

Do not use yolo for a repository you do not fully trust. Treat safe as a best-effort engine mode, not an operating system sandbox.

Write a brief​

Open Task brief and criteria from the new task form or a task drawer.

A brief contains a goal, a task kind, constraints, acceptance criteria with stable ids and expected evidence, requested relative output filenames, and source references. It travels alongside the task's execution settings and writing context.

Source references are pointers to inspect. They do not override source eligibility or grant access to excluded material.

Requested output paths must name files inside the project. The worker includes explicitly named ignored files in baseline and final capture, subject to existing dependency, build, and size exclusions. That supports ignored draft folders while keeping capture bounded. External files remain outside capture, and declared filenames also participate in change detection.

Save a new brief into the task form, then create the task to persist it. A pending task permits versioned brief edits with stale-save protection. History can be inspected, exported, imported into the editor, or restored as a new revision.

After assignment, that attempt's frozen brief is immutable. If a task returns to pending, editing its next brief does not rewrite earlier attempts.

BoundValue
Entries per brief list30
Serialized brief characters40,000
Criterion and expected-evidence wording2,000 characters each

Edit a queued task​

Open a task and select Execution settings.

Pending tasks support title, priority, review mode, provider and model, engine, permission, effort, managed method id and revision, legacy persona, ordered skills, worker assignment, required capabilities, resume session, specification path, verification command, and retry settings. The separate brief editor owns the goal and criteria. Older execution exports can still be imported; their max_iterations field is ignored and earlier attempt history stays intact.

Preview the changes before applying them. A save creates a revision. Restore and import populate the editor for another preview. Export retains settings and history. A concurrent save or claim returns a conflict and preserves the unsaved editor. Project pause continues to block claims even when its pending requests are edited.

Rules worth remembering:

  • Edits affect the next claim. Creation defaults, provenance, and earlier attempt settings are unchanged.
  • Assigned, running, held, completed, and cancelled requests are read only here.
  • Resume engine, worker, or method changes require clearing the old resume session first.
  • Managed method revisions are pinned at submission. Clearing the revision in this editor previews an explicit upgrade to the current version.
  • Workflow-owned method, review, and verification fields require editing the template for future runs.
  • The claim snapshot distinguishes the requested worker pin from the worker that actually claimed. It describes requested settings before supervision stage overrides. Actual adapter flags remain in execution evidence.

Monitor a task​

Task data includes the lifecycle status, the assigned worker, the current run id and attempt number, live logs, result or error, verification result, changed files, engine metadata and token usage, cost when the provider reports it, checkpoint and pipeline fields, and creation, start, and completion times.

The status follows one machine, whatever created the task:

A retry keeps the task id and creates a new run id and attempt number. A result from a stale attempt is rejected, because Central checks the fence before applying state. A failed pipeline stage is held as a failure checkpoint rather than ending the pipeline, so the operator can retry it, override the gate, or fail it deliberately.

Use Cortex for routine monitoring. Opening a run puts its detail in the inspector column, beside the Overview list it came from above 1100px and as an overlay below, and writes the run into the URL fragment (#tab=overview&run=<id>) so the view can be shared or returned to. API clients can use:

GET /tasks/{id}
GET /tasks/{id}/logs?after=<sequence>
GET /tasks/{id}/runs
GET /runs/{run_id}/trace
GET /runs/{run_id}/diff

Detail-tier worker log lines are shipped by default and Cortex can hide them behind a toggle. Turn SE_MANAGER_VERBOSE_TASK_LOGS off on a worker where the log traffic itself is the cost.

Task traces contain the full task result inside the outcome object. Treat the trace API as sensitive.

Sessions and dependencies​

A session groups tasks for one project and provides completed task context to later tasks. Parent-task dependencies are stricter: a child is not offered until its parent completes.

Keep a session inside one client scope. Pipeline sessions are single project by construction. The API should reject cross-scope task attachment, but do not use sessions as a confidentiality boundary. See Security boundaries.

Sessions share the Forge transaction with their workflow tasks. On first access, valid legacy session JSON records import once, preserving ids, status, and timestamps. The original file is retained unchanged and does not overwrite later edits or resurrect deleted sessions.

Cancel, retry, and follow up​

ActionEndpointEffect
CancelPOST /tasks/{id}/cancelStops a pending or running task
DeleteDELETE /tasks/{id}Removes the task record
Follow-upPOST /tasks/{id}/followupsQueues a continuation message

Queued continuation messages retain the completed parent's execution settings and writing snapshot. They carry a continuation provenance record and bypass new default resolution, because they resume existing work. The project pause check still applies.

Retry and same-session follow-up forms use explicit settings so inherited defaults do not silently replace the previous run's choices.

Automatic retry covers a machine failure or a verification failure. Human revision at a checkpoint does not consume that budget.

Scheduling and workflows​

To run a task on a cadence, see Recurring tasks. To run an ordered chain of stages, see Methods and workflows.