diff --git a/src/content/docs/docs/architecture/protocol-versions.mdx b/src/content/docs/docs/architecture/protocol-versions.mdx index c14d451..dbaf1ae 100644 --- a/src/content/docs/docs/architecture/protocol-versions.mdx +++ b/src/content/docs/docs/architecture/protocol-versions.mdx @@ -4,12 +4,13 @@ description: One number, declared in three repositories, that decides whether a --- import { Aside } from '@astrojs/starlight/components'; +import platform from '../../../../data/platform.json'; The loopback wire protocol between the game plugin and the sidecar is a **versioned compatibility contract**, not a build dependency. Nothing compiles the three sides together, so the number is what stops a mismatch from being discovered as corrupted data. -The current protocol is **4**. +The current protocol is **{platform.protocol}**. ## Three declaration sites @@ -17,8 +18,8 @@ The same number is written down in three places, and they must move together. | Where | What declares it | |---|---| -| `link/sidecar/src/main.rs` | `pub const PROTOCOL_VERSION: u32 = 4` — what the sidecar speaks | -| `servuo-plugins/overlay.toml` | `protocol = 4` — what the plugin overlay speaks | +| `link/sidecar/src/main.rs` | `PROTOCOL_VERSION`, currently {platform.protocol} — what the sidecar speaks | +| `servuo-plugins/overlay.toml` | `protocol`, currently {platform.protocol} — what the plugin overlay speaks | | The bundle manifest | Copied from `overlay.toml` by CI, so a released pair carries its own claim |