Tractorbeam 0.22.0 - Secret versions, storage format 3, faster Queries
Secret values keep a version for each Branch, storage format 3 makes reads cost the same however often documents change, and Queries no longer slow down as Functions change.
Secret values are versioned: each Branch uses its own version of a Secret or main’s, so you can test a new credential on a Branch and roll back on main. The Console gets a Secrets page to set and delete values.
Storage format 3 keeps the newest version of each document first, so reads cost the same however often documents change. An Account manager upgrades each Workspace when it’s ready.
Calls of a Query or a Mutation no longer slow down as a Workspace applies new versions of its Functions.
Secret values are versioned
Setting a Secret’s value records a numbered version and makes it the version of the Branch you set it on. A Branch without its own version uses main’s.
To test a new credential on staging, set it there; main, and every Branch following it, keeps its version.
tractorbeam secret set stripe-key --branch staging --file stripe-key.json
tractorbeam secret list --branch staging
List a Secret’s versions, then roll main back to an earlier one:
tractorbeam secret list-versions stripe-key
tractorbeam secret set-branch-version stripe-key --branch main --version 3
Rolling main back rolls back the Branches following it, not those with their own version. clear-branch-version has a Branch follow main again. delete-value records a deletion as the Branch’s own version, so having the Branch use the version before it undoes the deletion. A version list shows who wrote each version and when, and which Branches use it, never the value.
Over the HTTP API, GET /api/v1/secrets lists each Secret’s name, ID, value schema, hasValue, version, and ownVersion, and needs secrets:read. PUT /api/v1/secrets/:secret/value returns { "version": n }, and sending the value the Branch already uses answers with that version, so a retried write is safe. Past 100 versions, Tractorbeam drops the oldest version no Branch uses.
In the Console, Ontology → Secrets lists each Secret with the version the Branch uses. A Secret’s name opens its details in a panel, with Set value, Delete value, and its history, where Use on switches the Branch you’re on to an earlier version.

Storage format 3
Storage format 3 keeps the newest version of each document first. A read of a Table’s documents, a View’s rows, or a Projection’s entries skips older versions, so it costs about the same however often its documents changed.
A Workspace keeps serving in format 2 after this release, and its storage reads UPGRADE_AVAILABLE until an Account manager upgrades it, from Settings → Account → Upgrade storage in the Console, or the CLI:
tractorbeam storage get --workspace acme
tractorbeam storage upgrade --workspace acme
storage upgrade starts the upgrade and waits for it to end, showing how much is done. POST /api/v1/workspace/storage/upgrade starts it too, and needs account:manage. GET /api/v1/workspace/storage reads the format, the latest format, and the storage’s state.
Until the upgrade ends, the Workspace serves nothing but its storage. Its Apps, MCP Servers, Queries, Mutations, Actions, and schedules stop, and their requests answer 503 with the code WORKSPACE_UPGRADING. Schedules due during the upgrade run after it ends. The upgrade rewrites every version of every document, so it takes longer the longer the Workspace’s history is. An upgrade stopped part way resumes where it stopped; a failed one reads UPGRADE_FAILED with a reason in storage.failure, and resumes when an Account manager starts it again.
Every Console page of the Workspace shows the upgrade’s progress in its place while it runs, and comes back when it ends:

App code can tell an upgrade from any other failure:
import { workspaceUpgrading } from "@tractorbeam/sdk/client";
const storage = workspaceUpgrading(error);
// The Workspace's storage while it upgrades, otherwise undefined.
An App’s Query collections read again until the upgrade ends, and an MCP Server’s tool call returns an error result with the code WORKSPACE_UPGRADING.
Queries no longer slow down as Functions change
Each Apply changing a Function used to make every later call of a Query or a Mutation a little slower, up to most of a second per call. A call now reads only its own Project’s definitions, so it takes the same time however many versions of its Functions the Workspace has applied.
Connectors report their status
GET /api/v1/connectors reports each Connector’s status, canConnect, and, for a personal Connector, members with connected and total: how many of the Workspace’s active members have connected their own account. GET /api/v1/connectors/{connector}/connections lists a Connector’s connections: a member reads their own, and connectors:write reads every member’s.
A provider’s setup moved to GET /api/v1/providers/{provider}, with how it takes a connection, its OAuth 2.0 app, and canConfigure. The connection from GET /api/v1/connectors/{connector}/connection no longer has authMethods or oauthApp. So tractorbeam connect needs this release’s CLI.
See Connectors
Deleting a Branch frees its history
Deleting a Branch removes its Commits outside every other Branch’s history, and keeps those a merge brought into another Branch. A read at a removed Commit answers NOT_FOUND, as for a missing Commit, and a merge of one is refused the same way. Every 30 minutes, a Workspace in format 3 deletes the View rows, index entries, Projection output, and Object builds read only at those Commits, while a Table keeps every version of every document.
See Workspaces
Also in this release
- Tables: a Table document’s creation time is a field Tractorbeam keeps for itself, so
#names are reserved. - Console: Settings → Account shows the Workspace’s storage format.