Skip to content

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 19:35
· 282 commits to main since this release
b51bc49

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_write and report come from one registry. Writes take an ops[] 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 director tool profile and /task-orchestrator:director run 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 report tool covers usage, gates, notes and contention. Retention is configurable.
  • Identity from the credential. The caller comes from the transport credential (none, bearer or jwks), across /mcp and REST.
  • Plugin rebuilt for 4.0. Skills, hooks and run-wave target 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.x ref.
  • Schemas are selected by type only; tags no longer select one.
  • Plugin settings move under extensions.claude-code.
  • actor_authentication and DEGRADED_MODE_POLICY are removed, and leaving either in place fails startup. Clients stop sending actor.
  • 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: null and tags_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_include list, and an item must keep at least one listed tag, so such a token cannot add other descriptive tags.

Upgrading from 3.x

  1. Stop every 3.x process using the volume, stdio sessions included, and copy the whole volume off-volume.
  2. Clear the settings that fail startup, listed above and in the upgrade guide.
  3. 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.