# Standards and versions

> Every content file names its standard and version; old files keep working, and a new field is only refused where the file's version does not have it.

Every content file says which standard it follows and in which version, in its `schema` field. The game reads every version it has ever published, so a file that passed `alta lint` once keeps working.

*Diagram: Versions of the quest standard: a 0.1 file is read as 0.2, a 0.2 file plays as is, a 0.3 file may use the new fields. All three play in the same game.*

## One standard per kind of file

Quests, onboarding, cinematics, universes and the charts of the store each have their own standard: `alta.quests`, `alta.onboarding`, `alta.cinematics`, `alta.universe`, `alta.chart`. A file starts with its name and version, for example `"schema": "alta.quests/0.3"`. That line is how `alta lint` knows which rules to apply, and how your editor finds the JSON Schema for completion.

## Old files keep working

When a standard grows, the new version only adds. A file in an older version is read as it is, and plays the same as before: a 0.1 game file is read as 0.2, and every field that 0.3 adds is optional. Nothing you published needs rewriting when Alta moves on.

## New fields need the new version

A file is checked by the version it declares. If a quest pack says `alta.quests/0.2` and uses `inputs`, which arrived in 0.3, `alta lint` refuses it and tells you to declare 0.3. This keeps an old game from meeting a field it cannot understand, and keeps the version line honest. A fragment is checked by its own version, whatever the version of the game it joins.

## Closed lists grow with the standard

Step kinds, check types, executors and input kinds are closed lists. They grow in a new version of the standard, never from a file: a pack cannot add an executor or a check type of its own. When you need one that does not exist, the standard is what changes, documented and validated for everyone.

## What it means for you

- Start every file with its `schema` line; `alta new` writes it for you, in the current version.
- Move a file to the new version only when you need a new field.
- Read `alta help --json` (`standards`) or `alta schemas` to see every version this `alta` knows.

**Next:**

- [The standards](https://docs.altasystem.ai/reference/standards/)
- [alta schemas](https://docs.altasystem.ai/reference/cli/schemas)
- [Errors](https://docs.altasystem.ai/reference/errors)
