Files
LLeMbas-CLI/harness/conformance/version.json
T

597 lines
11 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"about": "LLeMbas connection 1 (connection.md §5). One surface's version integers, judged both ways. `mine`: what this client speaks; `theirs`: what the other side lists (a list, or one number where it says one) → `{ use, verdict }`: `use` the highest in common, or null; `verdict` `ok`, `server_too_old` (update the other side) or `client_too_old` (update this product). With nothing in common the side whose highest is lower is the old one; a side that lists nothing is the one to update. Anything that is not a whole number is not listed. `kind: stdio` — `lembas serve --stdio`: `agent` the agent's `_lembas` protocol, `client` what the client said in `clientCapabilities._meta.lembas.protocol` (absent or not a whole number from 1: 1) → `{ use, told }`: both use the lower, and `told` is true when the client said a higher one than the agent has, which the agent then says in words. `kind: min` — `min_clients` (connection.md §5): `mine` this product's version, `minimum` what the server's discovery names for the product (absent: none) → `{ verdict }`, `client_too_old` when mine is below it, else `ok`. Versions are `X.Y.Z` or `X.Y.Z-<word>.N`, a leading `v` allowed; numbers compare as numbers, a pre-release is older than its release, two pre-releases of one release compare by word and then by number. A version on either side that is not of that form is no minimum: `ok`. `kind: compare` — `a`, `b` → negative, 0 or positive as a is older, the same or newer (only the sign is specified: −1, 0, 1 here), or null when either is not a version.",
"cases": [
{
"mine": [
3
],
"theirs": [
3
],
"expect": {
"use": 3,
"verdict": "ok"
}
},
{
"mine": [
3
],
"theirs": [
1,
2
],
"expect": {
"use": null,
"verdict": "server_too_old"
}
},
{
"mine": [
3
],
"theirs": [
4
],
"expect": {
"use": null,
"verdict": "client_too_old"
}
},
{
"mine": [
3
],
"theirs": [
3,
4
],
"expect": {
"use": 3,
"verdict": "ok"
}
},
{
"mine": [
3
],
"theirs": [
2,
3
],
"expect": {
"use": 3,
"verdict": "ok"
}
},
{
"mine": [
3
],
"theirs": [
2,
4
],
"expect": {
"use": null,
"verdict": "client_too_old"
}
},
{
"mine": [
3
],
"theirs": 3,
"expect": {
"use": 3,
"verdict": "ok"
}
},
{
"mine": [
3
],
"theirs": 1,
"expect": {
"use": null,
"verdict": "server_too_old"
}
},
{
"mine": [
3
],
"theirs": 4,
"expect": {
"use": null,
"verdict": "client_too_old"
}
},
{
"mine": [
2,
3
],
"theirs": [
1,
2
],
"expect": {
"use": 2,
"verdict": "ok"
}
},
{
"mine": [
2,
3
],
"theirs": [
3,
4
],
"expect": {
"use": 3,
"verdict": "ok"
}
},
{
"mine": [
1,
2
],
"theirs": [
3
],
"expect": {
"use": null,
"verdict": "client_too_old"
}
},
{
"mine": [
3
],
"theirs": [],
"expect": {
"use": null,
"verdict": "server_too_old"
}
},
{
"mine": [
3
],
"theirs": null,
"expect": {
"use": null,
"verdict": "server_too_old"
}
},
{
"mine": [],
"theirs": [
3
],
"expect": {
"use": null,
"verdict": "client_too_old"
}
},
{
"mine": [
3
],
"theirs": [
"3"
],
"expect": {
"use": null,
"verdict": "server_too_old"
}
},
{
"mine": [
3
],
"theirs": [
3.5,
2
],
"expect": {
"use": null,
"verdict": "server_too_old"
}
},
{
"mine": 3,
"theirs": [
3
],
"expect": {
"use": 3,
"verdict": "ok"
}
},
{
"mine": [
2
],
"theirs": [
2
],
"expect": {
"use": 2,
"verdict": "ok"
}
},
{
"mine": [
2
],
"theirs": [
1
],
"expect": {
"use": null,
"verdict": "server_too_old"
}
},
{
"mine": [
2
],
"theirs": [
3
],
"expect": {
"use": null,
"verdict": "client_too_old"
}
},
{
"kind": "stdio",
"agent": 3,
"client": 3,
"expect": {
"use": 3,
"told": false
}
},
{
"kind": "stdio",
"agent": 3,
"client": 2,
"expect": {
"use": 2,
"told": false
}
},
{
"kind": "stdio",
"agent": 3,
"client": 1,
"expect": {
"use": 1,
"told": false
}
},
{
"kind": "stdio",
"agent": 3,
"client": 4,
"expect": {
"use": 3,
"told": true
}
},
{
"kind": "stdio",
"agent": 3,
"client": null,
"expect": {
"use": 1,
"told": false
}
},
{
"kind": "stdio",
"agent": 3,
"client": "3",
"expect": {
"use": 1,
"told": false
}
},
{
"kind": "stdio",
"agent": 3,
"client": 0,
"expect": {
"use": 1,
"told": false
}
},
{
"kind": "stdio",
"agent": 3,
"client": 2.5,
"expect": {
"use": 1,
"told": false
}
},
{
"kind": "stdio",
"agent": 4,
"client": 3,
"expect": {
"use": 3,
"told": false
}
},
{
"kind": "stdio",
"agent": 3,
"client": 99,
"expect": {
"use": 3,
"told": true
}
},
{
"kind": "min",
"mine": "2.0.0-beta.9",
"minimum": "2.0.0-beta.10",
"expect": {
"verdict": "client_too_old"
}
},
{
"kind": "min",
"mine": "2.0.0-beta.10",
"minimum": "2.0.0-beta.9",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0-beta.10",
"minimum": "2.0.0-beta.10",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0-beta.99",
"minimum": "2.0.0",
"expect": {
"verdict": "client_too_old"
}
},
{
"kind": "min",
"mine": "2.0.0",
"minimum": "2.0.0-beta.99",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0",
"minimum": "2.0.0",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "1.9.9",
"minimum": "2.0.0",
"expect": {
"verdict": "client_too_old"
}
},
{
"kind": "min",
"mine": "2.0.10",
"minimum": "2.0.9",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.9",
"minimum": "2.0.10",
"expect": {
"verdict": "client_too_old"
}
},
{
"kind": "min",
"mine": "2.10.0",
"minimum": "2.9.0",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "10.0.0",
"minimum": "9.9.9",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "v2.0.0",
"minimum": "2.0.1",
"expect": {
"verdict": "client_too_old"
}
},
{
"kind": "min",
"mine": "2.0.0",
"minimum": "v1.0.0",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0",
"minimum": "",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0",
"minimum": "latest",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0",
"minimum": 2,
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "dev",
"minimum": "2.0.0",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0+g1234abc",
"minimum": "3.0.0",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": null,
"minimum": "2.0.0",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0-alpha.3",
"minimum": "2.0.0-beta.1",
"expect": {
"verdict": "client_too_old"
}
},
{
"kind": "min",
"mine": "2.0.0-rc.1",
"minimum": "2.0.0-beta.7",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0-beta.1",
"minimum": "2.0.0-rc.1",
"expect": {
"verdict": "client_too_old"
}
},
{
"kind": "min",
"mine": "1.0",
"minimum": "1.0.0",
"expect": {
"verdict": "ok"
}
},
{
"kind": "min",
"mine": "2.0.0-beta",
"minimum": "2.0.0",
"expect": {
"verdict": "ok"
}
},
{
"kind": "compare",
"a": "2.0.0-beta.10",
"b": "2.0.0-beta.9",
"expect": 1
},
{
"kind": "compare",
"a": "2.0.0",
"b": "2.0.0-beta.99",
"expect": 1
},
{
"kind": "compare",
"a": "2.0.0-beta.2",
"b": "2.0.0-beta.2",
"expect": 0
},
{
"kind": "compare",
"a": "1.2.3",
"b": "1.2.4",
"expect": -1
},
{
"kind": "compare",
"a": "1.10.0",
"b": "1.9.0",
"expect": 1
},
{
"kind": "compare",
"a": "v1.0.0",
"b": "1.0.0",
"expect": 0
},
{
"kind": "compare",
"a": "1.0.0",
"b": "one",
"expect": null
},
{
"kind": "compare",
"a": "2.0.0-beta.1",
"b": "2.0.0-rc.1",
"expect": -1
},
{
"kind": "compare",
"a": "3.0.0-beta.1",
"b": "2.9.9",
"expect": 1
}
]
}