Installing & managing workspaces
Install a workspace from a document file, list what your instance serves, inspect one, update it, and archive it, all at runtime, with no rebuild.
A workspace is a core.workspace.v1 record. Managing workspaces means
adding and reading those records in your instance's workspace catalog.
Nothing needs a restart. The spl workspace
commands below are the runtime surface for that.
Install a workspace
spl workspace install ./my-workspace.jsoninstall reads a core.workspace.v1 document file, checks its shape, and adds it as a record to your instance's
workspace catalog. The moment the record lands, the workspace is live.
Open it at its slug route.
If the file is not a well-formed workspace document (for example, it is
missing meta.slug, or a region is not a valid projection document), the
install is refused and nothing is emitted. See
Authoring a workspace for the
document format.
List installed workspaces
spl workspace listThis shows the latest record for each
slug: title, lifecycle, and content hash. list always shows the most recent version of
each workspace.
Add -o json for a machine-readable list.
Inspect a workspace
spl workspace show tasksshow <slug> prints the full core.workspace.v1 body of the named
workspace: meta, capabilities, regions, and lifecycle. Read the
capabilities block before you trust a workspace someone else wrote: it
is the complete list of what the surface may emit and where it may
navigate.
Update a workspace
spl workspace update tasks ./my-workspace.jsonupdate <slug> <file> re-emits a workspace under an existing slug. The
file's meta.slug must match the slug you name. Records are immutable, so
this adds a new record rather than changing the old one. The previous
version stays available, and list shows the latest.
Updating an unchanged document is a no-op: identical content produces an identical hash, and the catalog already holds that record.
The lifecycle field
Every workspace body carries a lifecycle field with one of three values:
| Lifecycle | Meaning | Listed? | Subscribable? |
|---|---|---|---|
draft | Work in progress: installed but not advertised. | No | No |
published | Ready for use, the normal state. | Yes | Yes |
archived | Retired: kept for history, not for new use. | No | Existing subscriptions keep working |
Lifecycle is just a field on the record. To move a
workspace between states, add a new record with a different
lifecycle value. The latest record for a given slug decides the state.
Archive a workspace
spl workspace archive tasksarchive <slug> re-emits the workspace's latest body with
lifecycle: "archived". This is a soft delete:
- The workspace stops appearing in
spl workspace list. - It can no longer be newly subscribed to.
- Existing subscriptions are grandfathered: subscribers keep resolving it.
- Every earlier version stays available.
To bring an archived workspace back, update it with a body whose
lifecycle is published again.
Subscribe to a workspace
spl workspace subscribe <workspace-hash>subscribe records your relationship to a workspace: it adds a core.subscription.v1 record naming the workspace by its hash.
Subscriptions carry your pin (which version you track), any permission
grants you have accepted, and your pinned-publisher choice. unsubscribe <workspace-hash> re-asserts the relationship as inactive; it never
deletes anything.
Subscriptions are namespace-local by default. Pass --federated on
subscribe to make a subscription visible to your peers.
Discovering workspaces
The workspace catalog is just records. You can query it directly without
the spl workspace commands:
curl -s -X POST http://127.0.0.1:9100/v1/records/query \
-H 'content-type: application/json' \
-d '{"filter":{"body.kind":"core.workspace.v1"}}'This is the same lookup spl workspace list performs. Filtering on
body.kind is how any tool (a browser, a script, another instance)
finds the workspaces an instance serves.
See also
- Workspaces: what a workspace is.
- Authoring a workspace: write the document you install.
- Tutorial: Build your first workspace: the happy path, end to end.
core.workspace.v1schema
Filesystem overlay (Tier 3)
Drop CSS, assets, and a small <head> allowlist at ~/.syncro/site/ and the instance picks them up on each request. The WordPress-theme-style escape hatch for full visual control.
Authoring a workspace
Write a core.workspace.v1 document (meta, regions, and capabilities), then install it. A workspace is a JSON file; this is what goes in it.