> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canary.effectiveai.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Versions

> An RSL program meets three version numbers and one computed identity. Each one answers a different question.

Each number answers its own question, so each one changes at its own pace.

| Number | Example | Who sets it | The question it answers |
| - | - | - | - |
| RSL language version | `0.4.2` or `0.5` | You, in the source header | Which language is this file written in? |
| Release | `0.8.0` | The installed packages | Which compiler checks and runs this file? |
| Program version | `"1.2.0"` | You, in the program header | Which edition of the rating plan is this? |
| Bundle identity | 64 hexadecimal characters | The compiler, from the files | Which exact source and tables gave this result? |

## Language version

`rsl` in `spec` names the version of RSL that a file uses.
The verification path reads the 0.4 line: `"0.4"`, `"0.4.1"` and `"0.4.2"`.

* A patch only adds forms to its line. A file that declares `"0.4"` passes under 0.4.2 and gives the same results.
* A file that uses a form of a patch declares that patch, and [`E-RSL-PATCH`](https://docs.canary.effectiveai.app/rsl/reference/check-messages/header#e-rsl-patch) names the form otherwise.
* A file that declares another version gets one message, and the check stops there:

```rsl later/rater.rsl theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
spec {
    rsl: "0.9"
}
```

```sh theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
rslc check later/rater.rsl
```

```text theme={"languages":{"custom":["languages/rsl.tmLanguage.json"]}}
FAIL later/rater.rsl (strict)
error: E-RSL-VERSION later/rater.rsl:2:10: update rslc to read RSL 0.9, since this one reads up to RSL 0.4.2
```

An RSL 0.5 file starts with the line `rsl 0.5` and uses RSL 0.5 syntax. With `rslc` 0.8.0, you can format, preview-check, and export a supported RSL 0.5 rater. [Author a rater in either edition](https://docs.canary.effectiveai.app/rsl/tutorial/author-a-rater-in-either-edition.md) compares the two workflows.

## Compiler release

`rslc` is the compiler and the engine that runs a program. `relativities` is the Python library that rates with it.
Each release of `relativities` requires one exact release of `rslc`, so one install fixes both.
`rslc --version` prints the release.

A release and the language version move apart.
A release can fix a check or run faster while the language stays 0.4.2, and each file stays valid as it is.

## Program version

`version` in a `spec` block or RSL 0.5 module header labels the edition of the plan, in the form your team uses.
The compiler carries it to the exported program and leaves its meaning to you.

## Bundle identity

A bundle is a program in the form that runs: its source files, its tables and a manifest of their hashes.
Its identity, `bundle_id`, is a hash over the bundle.

* The same files give the same identity, whatever the folder or the time of the build.
* An edit to a source file, a table or a citation gives a new identity, even when the `version` label stays the same.
* A saved bundle keeps its identity, and a host checks each file against the manifest before it runs.
* A submission log records the hash of its program, and it gives a status only under that program.

Record the `bundle_id` beside each result you keep. It names the exact source and tables behind the result.

## Related

* [Versions](https://docs.canary.effectiveai.app/rsl/reference/language.md#versions) in the language reference lists what each patch adds.
* [Programs on Effective](https://docs.canary.effectiveai.app/rsl/programs-on-effective.md) releases a program and pins each call to it.
* [Bundles and exact rating](https://docs.canary.effectiveai.app/relativities/explanation/bundles-and-exact-rating.md) shows how to load a bundle by its identity.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.