Sequence key order check

sequence-key-order-check · version 1.0.0 · Sequences & diffs · free, no key needed

Check an exact stable ordering claim for bounded records by a scalar key.

Use when you need to: Check an exact stable ordering claim for bounded records by a scalar key. · verify record key ordering · check keyed index certificate.

Decide before calling

Read the versioned contract and the supported scope below. Reuse sequence-key-order-check@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use sequence-key-order-check@1.0.0 for Check an exact stable ordering claim for bounded records by a scalar key.. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "source": [
    {
      "id": "b",
      "n": 2
    },
    {
      "id": "a",
      "n": 1
    }
  ],
  "claim": [
    1,
    0
  ],
  "direction": "ascending",
  "key": "n"
}

Response:

{
  "result": {
    "valid": true,
    "reference_version": "ECMA-262-2026-SameValue-relational+ISO-IEC-9899-2018-7.24.4.2"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "sequence-key-order-check",
  "version": "1.0.0",
  "input": {
    "source": [
      {
        "id": "b",
        "n": 2
      },
      {
        "id": "a",
        "n": 1
      }
    ],
    "claim": [
      1,
      0
    ],
    "direction": "ascending",
    "key": "n"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/sequence-key-order-check/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"source":[{"id":"b","n":2},{"id":"a","n":1}],"claim":[1,0],"direction":"ascending","key":"n"}'

The machine-readable contract is at /v1/tools/sequence-key-order-check/versions/1.0.0.

CLI

node cli.mjs run sequence-key-order-check 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.