Grammar element · version
version declares an intent, not a contract
Two correct manifests, with the line and without. Walk them, then read what the key is for.
sources.yaml4 steps
What the engine does with it
The same run in both cases. That is the point of this page.
What version is
version is the first line of a manifest file. It states which shape of the language
the file was written for — a declaration of intent addressed to whoever reads the file next,
human or tool.
It is not a contract. Hydra has published one shape of the language so far, and the engine does not
branch on this key: no job parser reads it. Remove it from all four files of a working job and the
run is identical. Write "2.0" and nothing selects another grammar, because none exists.
What to do with it
- Write it anyway. A manifest without a version says nothing about its age. Cost: one line.
- Write
"1.0". It is the only shape published, and every example uses it. - Do not expect a check. Nothing verifies the value, so it cannot protect you from anything.
- Do not use it as a feature flag. Nothing in the engine branches on it.