# Operating bill versions

How a connected AI assistant reads a bill's saved history, compares versions, and restores one — and what a restore deliberately leaves alone.

import { Aside } from '@astrojs/starlight/components';
import Term from '~/components/Term.astro';
import DocUpdated from '~/components/DocUpdated.astro';

In Assemblified, a **version** is a saved copy of what a bill's BOM looked like at one moment. A connected assistant can read that history, compare any two versions, and — with write access on the **Enhanced** plan — save a new one or put an earlier one back. Save and check a readable version before editing a bill if you may need to return to its current BOM.

Versions work the same way for a <Term def="bom">bill of materials</Term> and for an <Term def="assembly-bill">assembly BOM</Term>: the assistant names the bill and says which of the two it is.

## On this page

- What it takes
- Reading the history
- Comparing
- Saving a version
- Restoring a version
- What a restore never touches

## What it takes

**Reading is open on every plan and needs no write access.** A store that has dropped off Enhanced still sees, compares and explains the history it recorded.

**Saving and restoring need write access and the Enhanced plan.** So does the *preview* of a restore, even though it writes nothing, because it only exists to precede one.

## Reading the history

> *"When did the Oak Table BOM last change, and what changed?"*

The assistant reads a page of a bill's versions, newest first — up to 20 at a time. Each one carries the summary that was frozen onto it when it was saved: how many BOM fields, materials, per-location rules and overrides moved against the version before it, what triggered the save (you asked, the nightly snapshot ran, or a restore wrote one), and who saved it.

It can then open one version and read the whole frozen BOM.

<Aside type="note">
**A version that is still settling is counted, not hidden.** A page can report one row fewer than you just saved, alongside a count of versions that were saved a moment ago and are not readable yet. That is the answer stating its own limits, not a version going missing — ask again in a moment.
</Aside>

## Comparing

Two comparisons are available, and they answer different questions:

- **Two versions against each other** — "what would going back to March undo?" The assistant names which side is the *before*; it does not assume the older number is the before, so it can compare in either direction.
- **One version against the BOM as it stands today** — "what has changed since this version?" This one also tells you whether the bill has unsaved changes since its most recent version.

Both label every change with the names that were captured at the time, so a material you have since deleted still reads as a name rather than an id.

## Saving a version

With write access on Enhanced, the assistant can save a version of one bill, or of **every bill a selection resolves to** — the bills you named, or everything matching a search, resolved on the server so "all of them" means what the list shows you.

- **It works in pages of 25 bills.** For a big selection the assistant re-sends until it is through; it should tell you it is doing that rather than claiming a 4,000-bill save finished in one call.
- **Each bill reports its own result.** A bill whose BOM has not changed since its last version stores nothing and comes back as **skipped**, naming the version it still matches — that is not a failure, and it is why repeatedly asking for a snapshot does not fill the history with identical copies.
- A bill that fails leaves its version unfinished, and the next save of that bill (or the nightly snapshot) picks it up.

Before restoring an older version, ask the assistant to preview the restore. If you may need to preserve the bill as it stands now, also ask it to save the current BOM explicitly. Check the result for **that bill**, then open the saved version and make sure its contents are readable before proceeding. A skipped save points to an existing matching version; check that version too. A version still settling or one that cannot be opened is not yet a recovery point.

## Restoring a version

A restore makes the bill say what the version said and attempts to save the result. The result may match an existing saved version, including the one you restored from, so a restore does not always create a new version. If it is refused, the bill is unchanged. If saving the result is still pending or fails, do not count on that version for recovery; check that it can be opened before relying on it. Returning to the BOM you had before the restore requires a readable version of that earlier state.

**Ask for the preview first.** It writes nothing and it answers the two things worth knowing before you agree:

- **Blockers** — the materials, assembly BOMs and additional costs the version refers to that your store no longer has. While there are any, the restore is **refused**. You can consent to going ahead without exactly those items, and then it proceeds; the assistant cannot make that call for you.
- **What it would replace** — how many live rows in each part of the BOM the restore would overwrite, and the changes in the direction a restore would apply them.

## What a restore never touches

A version is a **BOM**, not a state of the world. Restoring one therefore leaves alone:

- the **Shopify product link** — product, variant, SKU, price and image;
- **pre-assembled stock** and every stored cost;
- **"Only sell pre-assembled"**, which is deliberately left at its current value with a warning saying so, because changing it moves stock and a saved document cannot supply the figures that would take.

Any switch the version carries that another setting now forbids is reported as a warning rather than applied quietly.

## See also

- [Versions](/features/bill-of-materials/versions/) — the same feature in the app, including the nightly snapshot.
- [Operating BOMs & assembly BOMs](/features/agent-access/operating-boms-and-assemblies/) — the edits a version protects you from.
- The version **index** is also readable over the [REST API](/features/rest-api/reference/#bill-versions); the version body and the writes stay on the agent surface.

<DocUpdated date="2026-11-19" />