Repository navigation
v4.0.0
Task Orchestrator 4.0 is a major release. It changes the wire contract, the database schema and the config format, so read the upgrade steps before the first start on an existing volume. The full record is in the changelog.
What's new
- One tool surface.
items_read,items_write,notes_read,notes_write,deps_read,deps_write,advance,runs_read,runs_write,config,docs_read,docs_writeandreportcome from one registry. Writes take anops[]array, requests are strict, and every answer uses one envelope with a typed error catalog. - REST and MCP run the same code.
POST /api/v1/ops/{tool}calls any tool through the dispatcher MCP uses. - Runs, seats and decisions. A run is a bounded, budgeted pass over a set of items. Seat tokens tie each write to a seat, note ownership is enforced, and a run can pause on a decision that a person or director answers.
- Director mode. The
directortool profile and/task-orchestrator:directorrun the board at altitude and delegate reads and edits to background agents and coordinators. - Stored, versioned config. Config lives in the database as append-only versions per root, with history and rollback. Items are pinned to the config they started under, so a config change does not move an in-flight item's gates.
- Durable events and observability. Events are stored, SSE is a projection of them, and the
reporttool covers usage, gates, notes and contention. Retention is configurable. - Identity from the credential. The caller comes from the transport credential (
none,bearerorjwks), across/mcpand REST. - Plugin rebuilt for 4.0. Skills, hooks and
run-wavetarget the new tools and server runs.
Breaking changes
- Every 3.x tool call shape and REST resource route is gone. The 3.x plugin does not work against a 4.0 server, so install the 4.0 plugin. To stay on a 3.x server, pin the plugin to the
release/3.xref. - Schemas are selected by
typeonly; tags no longer select one. - Plugin settings move under
extensions.claude-code. actor_authenticationandDEGRADED_MODE_POLICYare removed, and leaving either in place fails startup. Clients stop sendingactor.- In the API token file and in JWT
to_scope, only an absent scope key means unrestricted.scope: null,scope: {},root_ids: null,root_ids: [],tags_include: nullandtags_include: []now fail, and so does a repeated key. - A config document with a repeated key is refused at push, validate and boot import.
- A tag-scoped credential can only add or remove tags on its own
tags_includelist, and an item must keep at least one listed tag, so such a token cannot add other descriptive tags.
Upgrading from 3.x
- Stop every 3.x process using the volume, stdio sessions included, and copy the whole volume off-volume.
- Clear the settings that fail startup, listed above and in the upgrade guide.
- Start one 4.0 instance and wait for it to be healthy.
The first start runs the data steps (type-backfill, traits-from-properties, config-canonicalize, pin-backfill) before the readiness marker is written, and a failed step fails startup as DATA_STEPS.
The server writes a verified <db>.pre-4.0.<yyyyMMddTHHmmssZ>.bak beside the database before the first migration (default on, UPGRADE_BACKUP=false skips it), and the volume should still be copied by hand. A 3.x binary cannot open a database migrated this far, so the backup is the supported rollback.