User Story
As an operator configuring a compute driver from the Runtimes documentation, I want the TOML snippets there to be valid on their own, so that copying one into a fresh gateway.toml doesn't stop the gateway from starting.
Problem Statement
The Docker, Podman, and MicroVM sections of docs/how-it-works/sandboxes/runtimes.mdx show snippets like this:
[openshell.gateway]
compute_driver = "docker"
[openshell.drivers.docker]
socket_path = "/var/run/docker.sock"
Put into a new ~/.config/openshell/gateway.toml (the Linux package installs none), this makes the service fail at ExecStartPre=openshell-gateway config preflight:
gateway config preflight failed: ... category=missing_version detected_version=missing;
the file was preserved unchanged; migrate it before restarting the gateway
The snippets omit [openshell] / version = 2, which configuration.mdx shows but runtimes.mdx doesn't.
Impact / Why This Matters
The error tells the user to follow the schema v2 migration steps. That's confusing for someone who never had a v1 file, and it isn't obvious that the documented snippet itself is incomplete. The gateway stays down until they find the missing key.
Acceptance Criteria
- The TOML examples in
runtimes.mdx include [openshell] / version = 2, or the page states once, before the first example, that every file needs it.
- Optional: when a file has only v2-shaped tables and no version key, the preflight message suggests adding
[openshell] version = 2 rather than pointing to a migration.
Reproduction Steps
- Linux install with no existing
~/.config/openshell/gateway.toml.
- Copy the Docker driver snippet from
runtimes.mdx into that file.
- Run
openshell-gateway config preflight. It fails with missing_version.
Environment
- OpenShell 0.1.2, gateway as a systemd user service (Debian package layout)
User Story
As an operator configuring a compute driver from the Runtimes documentation, I want the TOML snippets there to be valid on their own, so that copying one into a fresh
gateway.tomldoesn't stop the gateway from starting.Problem Statement
The Docker, Podman, and MicroVM sections of
docs/how-it-works/sandboxes/runtimes.mdxshow snippets like this:Put into a new
~/.config/openshell/gateway.toml(the Linux package installs none), this makes the service fail atExecStartPre=openshell-gateway config preflight:The snippets omit
[openshell]/version = 2, whichconfiguration.mdxshows butruntimes.mdxdoesn't.Impact / Why This Matters
The error tells the user to follow the schema v2 migration steps. That's confusing for someone who never had a v1 file, and it isn't obvious that the documented snippet itself is incomplete. The gateway stays down until they find the missing key.
Acceptance Criteria
runtimes.mdxinclude[openshell]/version = 2, or the page states once, before the first example, that every file needs it.[openshell] version = 2rather than pointing to a migration.Reproduction Steps
~/.config/openshell/gateway.toml.runtimes.mdxinto that file.openshell-gateway config preflight. It fails withmissing_version.Environment