What the workspace says about itself
The owner's settings read, GET /v1/self/workspace, and what each block on it means, including what null means.
GET /v1/self/workspace is the read behind a person's settings page. Only the owner can call it (the credential must have admin rights). It tells you what the workspace is, whether it can answer, how much it has used and has left, who its assistants are, and whether its copy can be restored. This page describes the blocks under workspace. The assistant rows are on Working with members.
One rule holds everywhere on this read: null means not known, never zero. If the workspace can't source a number honestly, it sends null. Don't show a null as a zero.
plan and tier
plan is one of:
operator: you run the workspace on your own machine.free: a hosted workspace on the free plan, with its storage limit and no paid subscription.paid: a hosted workspace with a paid subscription, or with no storage limit.
plan_status is the subscription status when a subscription is on file, otherwise null. tier describes the credential making the read, not the plan. On a hosted workspace the owner reads as operator, so show plan to people and not tier.
usable, not_usable_reason, provider_degraded
usable is true when the workspace is set up, an AI provider is running, an assistant exists, and the model has funding. not_usable_reason names the first thing that is missing, in the order they usually clear: configuring, no_assistant, provider_starting, provider_unfunded. The last one comes from outside the workspace: on a free workspace the shared allowance is used up, and nothing can answer until the allowance is topped up. You can't fix that from inside the workspace.
provider_degraded is a warning beside usable, not a refusal. The workspace can still answer, but its last answer failed at the model. When the newest provider error mentions credit, balance, billing, quota or an authorization problem, and no later run has succeeded, it carries the error's words (at most 240 characters). It clears when a later run succeeds. A timeout does not set it.
boot
How the last successful start compared with the memory available: peak_bytes, limit_bytes, bounded_by (cgroup, machine, or null when nothing limits it), percent (null when limit_bytes is null, never 0), boot_unix, and the warning and failure thresholds (85 and 95 percent). A workspace at or past the warning level may not start again after a restart. What to do depends on bounded_by.
backup
Whether the last successful backup included the signing keys. Without them, a restore gives you a copy of your records and not the same workspace. The fields are:
identity_covered: whether the keys were included.last_covered_unix: the time of the last backup that included them, which may be older thanlast_success_unix.identity_note: a sentence explaining the state.identity_reason: a code to branch on:sealed,no_passphrase,passphrase_too_short,no_keys,unsupported,seal_failed, ornot_yet_runwhen no successful backup is on file.
See Backup and recovery.
writeback
Present when the workspace is saving its records to a repository. It is null when nothing is being saved off the machine. Its fields are the counters epoch, flushed_watermark, flushed_store_seq, open_tail_records, pending_last_tick, last_flush_unix, flush_interval_secs and mounted_repo, plus the one number that tells you how much you could lose: oldest_unflushed_age_secs, the age of the oldest record not yet saved to the repository. Keep its three states apart:
null: not measured yet.0: nothing is waiting, measured.N: that many seconds of work are at risk right now.
It is not the time since the last save, which is largest exactly when nothing is wrong. derived_records_last_refresh and derived_ceiling show how many records the last refresh of calculated data processed, against the limit at which it refuses.
restore
The workspace's own note that it was restored from a published repository, or null. Show null as "not recorded", never as "never restored", because an older restore may have left no note. When present, the fields are: record_id, restored_unix, locator, repo, namespace, scope, watermark, epoch, restored_at_watermark (the --at point, when one was used), flushed_store_seq, four record counts, tail (what happened to the newest unsaved records: status, reason, records, not_taken), previous_body_anchor (null when the home was fresh at the restore; a value means the home already held a workspace), spl_version, and restores_on_file. The restore writes this note itself, so a restore that is followed by a failed start is still recorded. A restored workspace does not inherit the restore history of the one it came from.
inference
used_usd is today's usage. remaining_usd depends on the workspace:
- Free workspace: what is left of the shared allowance.
- Paid workspace: the plan's daily cap minus today's use.
- Your own machine:
source: uncapped, which is different from not known.
See also
- Working with members for
assistants[], shape, history and revert. - Doctor for the same facts as rows you can read in a terminal while the server is down.
- Backup and recovery and Portability.
Working with members: the API
API reference for the members a person defines: defining, shaping and retiring a member, starting and reading its runs, its evaluation history, daily usage, memories, and moving it between workspaces.
Reads, budgets and cursors
What a read costs the server, the refusals it can answer, how counts and page cursors behave, and which callers can filter on which fields.