# Versioning (/docs/concepts/versioning)



Publishing creates an **immutable version**. Critically, publishing also **pins every
dependency**: the exact table versions and sub-decisions it uses, and the project constants.

```jsonc
// DecisionVersion.refs
{ "tables": { "customer-risk": { "version": 1, "tableVersionId": "..." } }, "decisions": {} }
```

Every called decision — sub-decision, for-each, each parallel branch — is pinned the same way.

## Why it matters [#why-it-matters]

A published decision keeps evaluating the table version it was published with, so **editing a
shared table can never change a decision that is already serving traffic**. Picking up the new
table means republishing the decision, which produces a new version.

The same applies to project constants: editing one never changes a version already in service.

## Rollback [#rollback]

Rolling back publishes old logic as a **new** version — history is never rewritten, which is the
only reason the audit trail is worth anything. Any two versions, or a version and the working
draft, can be compared to see exactly what changed.

See [Publishing](/docs/guides/publishing) for the workflow.
