Skip to content

Autonomy

Explicit operator control, coordinator handoff, task leases, review gates, and safe spawn.

For people running agent work7 pages in this section

Autonomy in CompozyOS lets managed agent sessions discover work and delegate bounded child sessions. The daemon owns task state, leases, review verdicts, and spawn authority.

In this section

The MVP flow

StepWhat happensStarts execution?Starts a coordinator?
compozy task create or API createStores durable task intent. The task can be draft, blocked, or ready.NoNo
compozy task publish, compozy task start, compozy task approve, UI start, or equivalent APIEnqueues a durable task run.YesYes, if coordinator auto-start is enabled and no healthy workspace coordinator exists
compozy task nextA managed agent session atomically claims one eligible queued run and receives a safe lease summary.Claim only; start separatelyNo
compozy spawnA validated parent session asks the daemon to create a bounded child session.Creates a child session onlyNo coordinator child sessions in the MVP

The durable execution boundary is the run enqueue boundary, not task creation. The same boundary is used by manual operator starts, publish/approval flows, automation approvals, and coordinator-created follow-up tasks.

Which command owns what

The autonomy surface is exposed both as the dedicated compozy__autonomy tool family and as the parallel compozy task CLI. Both routes call the same task service writers.

SurfaceUse it forDo not use it for
compozy me and compozy me contextInspect the caller session, workspace, capabilities, and active leases.Claiming or changing task-run state.
compozy__task_run_claim_nextClaim and start the next eligible worker run, including dedicated-session handoff when required.Listing arbitrary tasks or writing progress notes.
compozy task nextClaim the next eligible run for an operator-managed explicit start flow.Assuming execution has started or a worktree was materialized.
compozy__task_run_heartbeat, compozy__task_run_complete, compozy__task_run_fail, compozy__task_run_releaseExtend or finish the current session-bound claim by run_id.Conversation, review requests, or handoffs.
compozy spawnCreate a narrowed child session with TTL and lineage.Starting a second coordinator or widening parent permissions.

Manual and autonomous work coexist

Operators can still create tasks, start sessions, prompt sessions directly, and run counter-checks without involving autonomy. User-started sessions are normal root sessions. They may claim work when their capabilities match, but they can also be prompted directly through the session surface.

Coordinator sessions and spawned worker sessions are normal managed sessions with additional lineage and TTL metadata. They do not bypass task-run leases, hooks, permissions, workspace boundaries, or configured execution policy.

What is not in the MVP

The autonomy docs describe only the implemented local MVP. They do not promise:

  • cross-daemon swarm coordination or leader election
  • autonomy dashboards, lease dashboards, or spawn lineage trees in the web UI
  • eval/replay harnesses
  • a separate autonomous task queue
  • relaxing the one-active-lease-per-session invariant
  • Task CLI Reference lists exact task commands and flags for the parallel CLI surface.
  • Tool CLI Reference documents the operator commands that inspect the registry and the compozy__autonomy tool family.
  • Sessions explains session types, state, stop behavior, and persistence.
  • config.toml documents [roles.coordinator] and [task.orchestration].
  • Task Execution Profiles documents the typed task-owned overlay used for coordinator guidance, worker selection, reviewer routing, participant policy, and worktree selection.
  • Review Gate documents the post-terminal review gate, reviewer routing, verdict semantics, and continuation runs.
  • Notification Cursors documents task-status projection progress and SSE resume seeding.
  • Hook Event Catalog lists coordinator.*, task.run.*, and spawn.* hook events.

On this page