Task defaults and project state
Status: Ready
Truth label: Current
Audience: Fleet operator
Reader outcome: Use task defaults and project state in Cortex, with every control, its verification, and its limits stated.
Last verified: 2026-09-13
Open Manage Cortex > Manage task defaults. See Cortex management for search and keyboard access.
Cortex can edit operator and project defaults, preview a task's resolved settings, and show the choices stored with a created task. HTTP and Brain-created tasks, scheduled runs, and pipeline stages use the same Central validation and resolution service.
Manage defaults
Open New task > Manage task defaults, or Edit project > Task defaults for this project. Choose operator defaults or a project, then load its saved version. Check a field to override it at that level. Unchecked fields inherit. An enabled empty skills list means no skills; it does not load the standing workflow.
Save creates a version with an optimistic revision check. History restores into the editor for review and a new save. Clear overrides removes them in the editor; saving returns those fields to inheritance. Export includes the saved values and history. Import copies values into the selected destination's editor and needs a save before it applies. Existing tasks retain their original settings.
Resolution order is explicit request, template or pipeline stage, project defaults, operator defaults, then system defaults. The project's existing supervision mode is itself a project-level setting, so it takes precedence over operator supervision. An explicit task override wins. Pipeline-defined review, permission, skills, persona, execution consent, and engine-default model remain stage choices. Schedules inherit omitted fields when each occurrence is created.
Null skills and null supervision from older clients mean inheritance. Empty skills selects none. In a defaults editor, null means remove the override. Blank engine/model values request the worker/engine default. Execution consent, file access, and review mode remain separate controls. Workers still apply their own supported model, effort, and permission limits; the creation preview describes the saved request, not a promise that an unidentified worker supports every setting.
For Antigravity, an omitted model with no configured override resolves to the CLI default, with origin engine default. Explicit and inherited model choices reach AGY unchanged for native validation, including its Claude and GPT-OSS options. If the engine is chosen later by the worker, retained provenance can identify and omit an unedited generic system model. See AGY parity for the exact boundary and checks.
Agent turns are always unlimited for every engine. Turn limits cannot be configured in tasks, defaults, queued execution settings, or schedules. Older max_iterations values are ignored on load and import, including pending tasks and future retries or continuations. Historical records retain their original evidence. Timeouts, context budgets, cancellation, verification retries, and the legacy no-progress guard retain their behavior.
Claude uses its documented unlimited default when --max-turns is omitted. See the Claude CLI reference.
Restart Central and all workers after updating the code, then reload Cortex. A CLI process already running keeps the flags it was launched with.
Create and inspect work
New task uses saved defaults by default. The custom execution controls are disabled while that choice is checked. Uncheck it to choose the task's execution settings. Worker, session, parent, title, and description remain task-specific in either mode. Retry and same-session follow-up forms use explicit settings so inherited defaults do not silently replace the previous run's choices.
Edit context budgets for all agents opens the shared context-budget editor without discarding the task. Set a total limit, check the available input, and apply the limits to all profiles before saving when every engine should use them. Budgets are separate from task defaults and are loaded at the start of each worker attempt.
Selecting a worker narrows the engine list to that worker's installed engines. If this changes the engine, Cortex refreshes the model and effort controls together. Effort choices come from the selected engine's adapter: Claude Code includes xhigh and max; Codex includes minimal and xhigh; AGY offers low, medium, and high. Codex OSS exposes no effort control. A compatible effort selection is retained when switching engines; an incompatible one returns to the engine default. These lists are not discovered per model or installed CLI version.
Preview effective task settings resolves and validates without enqueueing a task. The preview shows values, their origins, project path, and defaults revisions. Creating the task resolves the current settings again in a transaction. A preview is advisory if defaults change before creation. Open the task drawer's Task settings and inherited defaults to inspect the actual saved result.
Cortex retains a request ID while retrying the same submitted body after an uncertain response. Central returns the existing task for the same ID and body, even if defaults or project status later change. Reusing that ID for different content returns a conflict. A deleted task returns Gone rather than recreating work. Reloading the form starts a new browser submission; other API callers should persist their own request IDs when retrying.
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.
Pause, archive, and scope
Paused and archived projects reject new task creation and pipeline instantiation. Their pending tasks are omitted from polling, and a direct claim rechecks the project inside the same transaction as the claim. Work already assigned or running can finish. Cancelling that work remains a separate action.
A due schedule on a paused project records the reason and advances to its next occurrence without enqueueing work. This does not create a catch-up backlog. Queued follow-up messages remain saved until the project becomes Active; reactivation releases eligible completed-parent continuations. Running task history, artifacts, and reviews remain available.
Clearing a project's client label in Cortex now saves an explicit null and returns the project to internal scope. Omitting the field preserves it. Invalid project status and supervision values return a validation error.
Storage, value, and limits
forge.sqlite3 stores current/default history rows in task_settings and request receipts in task_requests. Tasks carry creation_context with explicit settings, effective settings, and default revisions. Existing database backups include these tables. History and receipts are retained; future retention work must preserve retry guarantees rather than silently expiring IDs.
These controls prevent entry-point defaults from drifting and make pause behavior observable. They do not yet provide structured acceptance criteria, editable task revisions, an entire workflow editor, portable worker locations, recurrence overlap/timezone policy, or complete deliverable capture. Those remain in the feature plan. The original assessment documents retain their earlier baseline descriptions.
Verification lives in tests/test_unlimited_turns.py, tests/test_task_creation.py, the workflow/scheduler/pipeline/routing suites, and tests/browser/task-defaults.mjs and tests/browser/task-effort.mjs against tests/task_browser_server.py. The browser fixture uses a private data root and never dispatches a real worker. The effort checks cover worker-driven and direct engine changes, compatible and incompatible selections, absence of turn-limit controls, a saved Codex xhigh task, and task-to-schedule handoff.
Turn-cap removal was checked with 207 focused Python cases, a 106-turn fixture, and four Cortex browser workflows. A full WSL run with unavailable embeddings completed with 1,591 passes and 3 skips; its cache-version and retired-control failures passed after focused corrections. The embedding-dependent search case passed separately on Windows. The full suite was not repeated after those corrections.
Defaults can also select a managed method and optional exact revision. A blank method ID explicitly selects legacy persona/skills; removing that override inherits. A managed method checks task-kind applicability and owns its skill order. The effective revision is pinned when the task is submitted.