---
title: Tractorbeam 0.22.0 - Secret versions, storage format 3, faster Queries
sidebar:
  label: 0.22.0 - Secret versions
type: changelog
date: 2026-11-27
description: 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.
changelog:
  version: 0.22.0
  category: Release
---

**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.

:::caution[Breaking changes]

**Update the CLI along with this release.** `tractorbeam connect` now reads how a provider connects from the provider's own endpoint. The connection's endpoint no longer returns it. See [Connector status](#connectors-report-their-status).

**A Table field's name can no longer begin with `#`.** Tractorbeam refuses a Table definition declaring one, and a document holding one. Rename such fields before you upgrade storage, or the upgrade stops at the first document holding one. See [Storage format 3](#storage-format-3).

**A Workspace upgraded to storage format 3 can't run an earlier release.** See [Storage format 3](#storage-format-3).

:::

## 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.

```sh
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:

```sh
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. {/* #2745 */}

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. {/* #2745 */}

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. {/* #2745 */}

![stripe-key's panel on the customer-health Branch: the Branch uses its own v3 while main uses v5, and each other version has a button to use it on customer-health](/docs/blume-assets/content/_/9a37974004583f71.png)

See [`tractorbeam secret`](/docs/cli/secret)

## 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. {/* #2817 */}

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:

```sh
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`. {/* #2814 */}

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. {/* #2814 #2817 */}

Every Console page of the Workspace shows the upgrade's progress in its place while it runs, and comes back when it ends:

![A Console page during the upgrade: 'Upgrading the Workspace's storage', 12% done, stage 1 of 2, 250 of 1,000 records](/docs/blume-assets/content/_/ce3e208b5e3433a6.png)

App code can tell an upgrade from any other failure:

```ts
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`. {/* #2814 */}

See [`tractorbeam storage`](/docs/cli/storage)

## 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. {/* #2825 */}

## 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. {/* #2813 */}

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. {/* #2813 */}

See [Connectors](/docs/concepts/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. {/* #2817 */}

See [Workspaces](/docs/concepts/workspaces#branches)

## Also in this release

- **Tables:** a Table document's creation time is a field Tractorbeam keeps for itself, so `#` names are reserved. {/* #2817 */}
- **Console:** **Settings → Account** shows the Workspace's storage format. {/* #2814 */}

## Where to go next

- [Workspaces](/docs/concepts/workspaces)
- [Connectors](/docs/concepts/connectors)
- [`tractorbeam secret`](/docs/cli/secret) and [`tractorbeam storage`](/docs/cli/storage)
- [Release notes](https://tractorbeam.ai/docs/changelog)
