Sync artifacts across your computers
Read this before you turn sync on. Sync copies artifact versions to a store you own, so another computer running Octant can import them. It stays off until you turn it on in Settings › Sync. Above the switch, Settings states the same fact this page does: the storage provider can read the files, which are signed but not encrypted.
What turning sync on does in this preview
You can choose a store and turn sync on, and Test connection writes its probe file there. Copying starts only once this computer also belongs to a replica: it set one up, or it asked to join one, in Settings › Sync. On a computer that has done neither, turning sync on lets Octant reach the store and copies nothing.
On a computer that belongs to a replica, with sync on:
- Each new artifact version, and each deletion, is copied out as soon as it is committed, whichever part of Octant made it. If the store cannot be reached, the copy waits on this computer, even across a restart, and goes out later in the order it was made. A copy that fails never undoes the version on this computer; Octant records why it failed. Versions committed before this computer belonged to a replica are not copied automatically.
- Other computers' versions are read in when Octant starts, every few minutes, and whenever a pull is requested on this computer. Each one is checked first: the signature, that its writer is one of your computers, that its content matches, and that it carries no credential, secret-shaped text, or absolute path. Octant records what each entry did - imported, already here, a second version beside one from the same parent, a deletion, or refused and why.
- An imported artifact is listed under the Project name and the computer it came from, in the library's From your other computers section. It is not filed in a Project or thread on this computer until you open it here.
- Comments on a Canvas travel too, once that Canvas has been copied out or read in: each comment, reply, resolve, and deletion is copied out like a version, and read in on your other computers. A comment from another computer shows that computer's name beside it, such as You · Studio Mac, and replies always appear after the comment they answer. Comments on a Canvas that never left this computer stay here.
- Decision-form answers travel too, on any Canvas carried by the replica: each saved answer, note, and clear is copied out with its author and time and reconciled on your other computers. If two computers answer the same question before syncing, they settle deterministically to the same answer, and a later answer that saw the earlier one wins. An answer to a question whose wording changed still travels and shows as stale (Earlier answer) rather than answering the new wording. Answers on a local-only Canvas stay here, and purging a thread drops its queued answers.
- A Canvas made in a Chat thread filed under no Project belongs to that thread and has no Project to file under, so it is never copied out.
- A Code thread in Plan mode copies nothing out, and with sync off Octant neither writes to the store nor reads from it.
Restore your library on a new computer
When a new or wiped computer joins, its first sync brings in every artifact in the store with its full version history, comments, and decision-form answers. Settings › Sync shows Restore library with how many entries it has read so far. The newest versions arrive first, so every artifact shows up in the library early and older versions keep arriving in the background.
- Stop pauses it after the batch it is reading. While it is stopped, Octant reads nothing from the store, even after a restart: background sync waits, and Check the store, Approve…, and Revoke… stay off until you resume. Versions you make on this computer are still copied out.
- Resume carries on where it stopped. Nothing it already read is read or imported again, and the same is true if Octant quits or the computer restarts in the middle.
A restore does not bring back threads, Projects, or settings. Restored artifacts are listed under the computer and Project they came from until you open them here.
Synced artifacts in the library
Every artifact card in the library says which computer wrote the version it shows, once this computer belongs to a replica: Written on Studio Mac. Versions… on a card, or selecting a card under From your other computers, lists every version with the computer that wrote it.
- Open it on this computer. Choose a thread and select Open. Only a thread that can take it is offered: an active thread in the same mode (Chat, Work, or Code), in an active Project, whose folder or checkout is available, and not in Plan mode. The thread's own access applies; the artifact brings none from the computer that made it. Its content joins the thread as content from another computer, the same way a web page or an issue would, so the thread asks again before anything it cannot undo. A link to a file or thread on the other computer stays a link to that computer and cannot be refreshed or opened here. When no thread here can take it, the library says so and names the mode to start a thread in (for a Chat artifact it offers to start one), or you can keep it in the library. Once it is open here, later versions from your other computers that build on the one you have are added to it on the next sync.
- Two versions. When two computers changed it from the same version, its card shows Two versions. Choose… shows both side by side, each with the computer that wrote it. Keep this one makes the version you chose the current one on all your computers: Octant writes a new version, with both as its history, and nothing is overwritten. Merge opens a new version made from both in a thread: every block of each, and where both changed the same block, both sides one after the other, so you can edit it down. A block that links to a source the merged version does not have is left out, and the library says how many.
- Deleted on another computer. When a deletion on another computer is all that is left of an artifact, its card shows Deleted on Studio Mac with Restore. Restore writes a new version over the deletion, so the artifact is back on all your computers; the deletion stays in its history.
Keep this one and Restore send a version to your other computers, so they need sync on. If the store cannot be reached, the version waits on this computer and goes out later, and the library says so. Deleting an artifact locally, and erasing a thread or Project, stay on this computer.
Publish older versions deliberately
Open a local artifact's Versions… and review Publish existing versions. The dialog names the destination and shows each local version's size and whether it is eligible, excluded, queued or published. Select up to 24 versions, review the disclosure and check the consent box, then choose Publish selected versions. Only those versions leave; unselected older history stays here. The storage provider and anyone with access to the destination can read the selected artifact text, previews, Project name and computer identity. Threads, credentials and files are excluded. Plan tasks and unavailable Project/thread authority cannot publish.
Progress counts versions actually published. Stop publication stops after the current upload and stays stopped across a restart; Resume publication retries the same selection. Offline uploads wait here, and pending membership is named. A changed destination, identity or artifact history needs a fresh review.
Delete from the synced library
In Versions…, use the separate Delete from synced library action and confirmation. This sends a deletion for currently known versions to your other computers. It preserves local history and does not erase provider copies. A concurrent revision stays visible until you resolve it. Deletion stops a pending historical publication, including a deletion learned from another computer. Choose Restore artifact in the stopped publication when you want to keep its local revision. Wait for that explicit restore to publish before resuming; a restore still queued offline does not lift the stop. The review survives a restart, but a later deletion needs a fresh restore. Local erasure never sends a synchronized deletion.
Set up a store
Open Settings › Sync on the computer that runs Octant. A paired phone or browser cannot change it. Choose one store:
- Synced folder. Choose a folder with Octant's folder browser, such as one your Dropbox, iCloud Drive, or OneDrive client already watches. Octant writes only inside an
Octant Syncfolder in it. The folder must be inside your home folder. - S3-compatible bucket. Enter the connection details described below, then Save. Entering a new access key and secret later replaces the saved ones. Changing the endpoint, bucket, or addressing needs the access key and secret again, so a key you entered for one provider is never sent to another. A bucket needs your computer's Keychain or Secret Service; where Octant cannot reach one, Settings says so and refuses to save the bucket.
- None. No store, and nothing is reachable. Settings asks you to confirm first: sync stops, and a bucket's access key and secret are removed from this computer. Cancel leaves everything as it was.
Changing the store turns sync off, so you read the fact above the switch again for the new store before you turn it back on. Saving a bucket with the same settings, such as only a new access key and secret, keeps sync as it was. Choosing a different store also removes a bucket's access key and secret from your Keychain or Secret Service.
Once this computer belongs to a replica — it set one up or asked to join one — its store can't be changed until it leaves that replica. Settings › Sync says so and turns off the store controls. You can still turn sync off and on, and enter a new access key and secret for the same bucket.
What leaves this computer
Readable artifact versions, and a tombstone when you delete one. Each entry is a plain JSON bundle, the same shape as an export, signed by the computer that wrote it. You can open the files. The storage provider can read them. Octant does not encrypt them. Credentials, secret-shaped text, and absolute file paths in that text are refused before an entry is written: such a version stays on this computer and is not copied. A copy this computer imported is not written out again. A later edit here is a new version.
Comments and decision-form answers on a Canvas that was copied out leave the same way, as plain JSON signed by the computer that wrote them; any comment, reply, or decision-form answer or note with a credential, secret-shaped text, or an absolute file path is not copied, and a deleted comment or cleared answer is recorded as a deletion or clear entry rather than a removed file. Threads, settings, and credentials do not leave this way. Joining another computer can import the versions, comments, and decision-form answers in the store. It does not bring back threads, Projects, or settings.
Where it goes
A synced folder you set up, or an S3-compatible bucket you set up. Octant does not operate a store, and it does not run a relay. Another computer running Octant imports those entries as new versions of its own. It does not replace a version you already have.
If two computers revise the same artifact from the same parent, the library shows both. You pick one, or you merge them into a new version. Nothing is chosen for you. A deletion and a revision from the same parent are both kept. The revision stays visible. When the deletion is the only version left, the library shows the artifact as deleted, and you can restore it. See Synced artifacts in the library.
The mirror and the export are separate. They still write plain files for you and for other tools, and they never push to git. Pointing a sync client at the mirror folder is not this sync.
An S3-compatible bucket
An S3-compatible bucket needs its endpoint address, region, bucket name, an optional folder prefix, and whether the provider uses path-style or virtual-host addressing. Virtual-host addressing needs an endpoint with a DNS name; use path-style for an endpoint written as an IP address. The access key and secret are kept in your computer's Keychain (macOS, under the service app.octant.replica-store-credentials.v1) or Secret Service (Linux, under the service attribute octant.replica-store-credentials.v1). Your model provider credentials and this computer's signing key live in other entries and cannot read, replace, or delete them. The bucket's other settings are kept in Octant's journal. Octant never writes the access key or secret to a store entry, to your journal, or to a log. It contacts only the endpoint you configured, and only while sync is on. The endpoint must be an https address; a plain one is refused, and no credential is sent on it. A link-local address, such as 169.254.169.254 where cloud servers answer metadata requests, is refused too. A bucket server on this computer or your local network, such as MinIO, is allowed.
Once sync is on, Test connection proves the setup by writing one small probe file: under .octant-probe/ in the bucket, or in the folder's Octant Sync/.octant-probe/. It deletes nothing, and the app ignores that file when it reads the store. Octant does not delete objects from your bucket or files from your folder on your behalf. With sync off, Test connection calls nothing.
Setting up sync and joining another computer
Once a store is chosen and sync is on, Settings › Sync offers two things under This computer, each under a computer name you can change first:
- Set up sync on your first computer. It becomes the computer that set up the replica, and it can revoke any other.
- Ask to join on each other computer. It writes a request into the store, signed with a key kept in its own Keychain or Secret Service, and lists the computers that already sync with the code each one will show for it.
On a computer that already syncs, select Check the store. The request appears under Join requests with its six-digit code. Select Approve… and approve only if the new computer shows the same code. Then select Check the store on the new computer and Confirm join. Octant reads the store only when you select Check the store or act; opening the page reads nothing from it. The code is a quick consistency check that both screens mean the same two computers, the same key on the approving one, and the same computer that set up the store. A store someone tampered with usually shows a different code, but six digits are short: someone who can write to the store could search offline for a substituted request that shows the same code. The signatures on every record, not the code, are what Octant trusts. The code is not a password, and nothing secret passes through the store.
The new computer then confirms. It signs a record saying which approval it accepted, so the computer that approved it is the one that brought it in, and nobody else can claim that place later.
Before it signs, confirming reads the store, newest entries first, and Reading the store under This computer shows how many entries it has read. Select Stop to cancel; the computer does not join. Select Confirm join again to carry on where it stopped, also after Octant quits or the computer restarts. Nothing it already read is read again before it joins; the restore that follows reads your artifacts.
Revoking a computer writes a signed record that marks the last of its entries you accept. You can revoke a computer that yours brought in, directly or through others; the computer that set up the store can revoke any of them. To revoke a computer another one of yours brought in, revoke it from that computer, or from the one that set up the store. A computer you revoke cannot remove the computer that brought it in.
Computers lists every computer in the replica, who approved it, and whether it was revoked or left. Revoke… appears only on computers yours brought in. Before it revokes, your computer reads the store, so what the revoked computer already signed - artifact versions and approvals alike - keeps counting and the computers it brought in stay. Counting stops at the first place it skipped, so it cannot fill that gap later. The revoke screen lists those computers, so you can revoke them in the same step, for example when the computer was stolen, and it lists the revocations the computer already wrote. You can also stop counting before the first of those revocations; computers it approved after that point then join again. If the store cannot be read first, the screen says so. If one of the revocations in a step cannot be written, the screen says which computers were not revoked, so you can try them again. After your other computers read the record, they ignore anything the revoked computer wrote after that point.
A revoked computer, or one that lost its place because the computer that approved it was revoked before that approval, joins again as a new computer, with a new key. If the computer that set up the store is lost, set up a new store and join your computers to it.
If someone with write access to the store fills the places where one of your computers writes next, that computer stops publishing and says so. Remove those files with your storage provider's own tools, change the store's access keys, or move to a new store.
Leave a replica
To stop syncing this computer, or to move it to another store, select Leave… under Leave replica in Settings › Sync and confirm. Only the Octant app on the computer itself can do this; a paired phone or browser cannot.
- Your other computers see that it left. This computer first writes one signed record into the store saying so, and your other computers list it as Left once they read it, not as revoked. Everything it copied out before stays in the store and keeps counting on them.
- This computer stops syncing. It forgets the replica, removes its signing key from your Keychain or Secret Service, and turns sync off. It reads nothing from the store and writes nothing to it from then on. Versions it had not copied out yet stay on this computer and are not sent.
- Your artifacts stay. Every artifact and its history, including versions read in from your other computers, stays in the library here.
- Computers it approved stay in the replica. Only the computers that brought this one in can revoke them afterwards; if it set up the store, none can.
Afterwards you can choose another store, or the same one, and set up sync or ask to join there. It joins as a new computer with a new key.
If the store cannot be reached, or sync is off, leaving stops and nothing changes, so you can try again once the store is back. If the store is gone for good, Leave without telling them… leaves without writing the record; your other computers then keep listing this computer until one of them revokes it, or for good if it is the computer that set up the store. A computer that only asked to join, or that was revoked, writes nothing when it leaves.
Sync status
Sync status shows the last time the store refused this computer, could not be reached, or held a file where this computer writes next. Last publish, last pull, and the queue say Not available yet: Settings does not show them in this preview, although versions are copied. A paired phone or a browser on another device sees this status and the list of computers, read-only. Setting up sync, joining, approving, revoking, and leaving happen only in the Octant app on the computer itself.
Turning sync off
Turn off Sync artifacts in Settings › Sync. Turning sync off stops this computer writing to the store and reading from it. Copies already in the store stay there. Versions already imported stay in the library. A copy that fails does not undo a version you already committed on this computer.