hex/tests/fixtures/release-protocol/manifests.json
Dax Raad 35047c88ea feat(updater): follow the channel's current release; never compare versions
Versions are display text. The updater installs whenever the channel's current release is not the running build: Linux and Windows identify it by their executable's SHA-256 (the target file itself), macOS by its exact version. required releases install without waiting for the rollout. Builds carry the channel they were published on (HEX_BUILD_CHANNEL, stamped by Release); choosing another Update channel offers that channel's current release behind a confirmation ("Switch to Stable 2.3.1") in the sidebar, Windows tray, and macOS menu, and never switches by itself. Protocol vectors from anomalyco/release a6d2387.

This build still numbers itself 2.3.2-dev.N so installs on the older newer-only client (2.3.2-dev.29) take it; the next change moves dev builds to 0.0.0-dev-<run>.
2026-10-27 16:01:28 -04:00

41 lines
15 KiB
JSON

{
"description": "Manifests referenced by decisions.json. Each `manifest` is the exact text a client would fetch.",
"manifests": {
"base": {
"note": "2.4.0 at 25% rollout; brew current, npm lagging at 2.3.8, aur pending. revoked_versions is always [] and only for older clients.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 25,\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"revoked_versions\": []\n }\n}"
},
"required": {
"note": "2.4.0 marked required: installs take it without waiting for the rollout.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 11,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 25,\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"revoked_versions\": [],\n \"required\": true\n }\n}"
},
"halted": {
"note": "Rollout set to 0: nobody new receives 2.4.0.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 11,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 0,\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"revoked_versions\": []\n }\n}"
},
"rollback": {
"note": "2.4.0 rolled back: 2.3.8, an earlier release, is current again.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 12,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.3.8\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.3.8\",\n \"rollout_percent\": 100,\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc/example-2.3.8-macos-arm64.zip\",\n \"size\": 900,\n \"sha256\": \"cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.3.8\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"revoked_versions\": []\n }\n}"
},
"dev": {
"note": "Dev channel build 0.0.0-dev-42, OpenCode style: the run number in the version is display text.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"dev\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"0.0.0-dev-42\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 100,\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd/example-0.0.0-dev-42-macos-arm64.zip\",\n \"size\": 1100,\n \"sha256\": \"dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"revoked_versions\": []\n }\n}"
},
"legacy": {
"note": "A manifest written before 2026-10-27, with minimum_version and revoked versions, which clients ignore.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 25,\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"revoked_versions\": [\n \"2.3.9\"\n ],\n \"minimum_version\": \"2.0.0\"\n }\n}"
},
"malformed": {
"note": "rollout_percent out of range.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 101,\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"revoked_versions\": []\n }\n}"
},
"not-required": {
"note": "required must be true or false.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 25,\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"revoked_versions\": [],\n \"required\": \"yes\"\n }\n}"
},
"future-fields": {
"note": "Unknown fields, which clients ignore.",
"manifest": "{\n \"schema\": 1,\n \"app\": \"example\",\n \"artifact\": \"desktop\",\n \"channel\": \"stable\",\n \"sequence\": 10,\n \"published_at\": \"2026-10-01T00:00:00Z\",\n \"release\": {\n \"version\": \"2.4.0\",\n \"notes_url\": \"https://anoma.ly/example/releases/2.4.0\",\n \"rollout_percent\": 25,\n \"targets\": {\n \"macos-arm64\": {\n \"url\": \"/release/example/files/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/example-2.4.0-macos-arm64.zip\",\n \"size\": 1000,\n \"sha256\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n },\n \"linux-x64\": {\n \"url\": \"/release/example/files/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/example-2.4.0-linux-x64.tar.gz\",\n \"size\": 2000,\n \"sha256\": \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n }\n },\n \"distributions\": [\n {\n \"kind\": \"direct\"\n },\n {\n \"kind\": \"brew\",\n \"cask\": \"anomalyco/tap/example\",\n \"version\": \"2.4.0\",\n \"command\": \"brew upgrade --cask anomalyco/tap/example\"\n },\n {\n \"kind\": \"npm\",\n \"package\": \"@example/cli\",\n \"version\": \"2.3.8\",\n \"command\": \"npm install -g @example/cli@latest\"\n },\n {\n \"kind\": \"aur\",\n \"package\": \"example-bin\",\n \"command\": \"yay -S example-bin\"\n }\n ],\n \"revoked_versions\": [],\n \"highlights\": []\n },\n \"mirror\": \"ignored\"\n}"
}
}
}