[ BENCHMARKS / v5.0 / TASKS / 168_linearizability_kv_b ]

Linearizability checker over KV histories in Go.

Decide, for each recorded history of a concurrent key-value store, whether it is linearizable, with crashed (pending) operations that may or may not have taken effect.

Unit
168_linearizability_kv_b
Category
Distributed / SysDesignConsistency checking
Language
Go
Difficulty
Hard900 s wall clock (15 min)
Origin
New in v5
Ranked rows passed
0/7single seed each

The prompt

The agent receives exactly this text as its task, verbatim. The harness adds its own system prompt and, in some campaign arms, guidance of its own; the harness chapter describes those. The task’s setup also writes the files its working directory starts with (a worked sample, a repository or a service, where the prompt names them); they are not reproduced here.

Prompt · 168_linearizability_kv_b
Create /tmp/eval_linz/linz.go: a linearizability checker for recorded histories of a concurrent key-value store.

STORE. Keys and values are integers. Initially every key is absent. Sequential semantics:
- PUT k v: sets k to v.
- GET k: returns the value of k, or NIL if k is absent.
- DEL k: makes k absent (no effect if already absent).
- CAS k x y: if k is present and its value equals x, sets k to y and returns OK; otherwise changes nothing and returns FAIL.

HISTORY. Every operation has an integer invocation time c, and either a response time r (c <= r) with its observed result, or no response at all (PENDING: the client crashed or timed out; its result is unknown and it may or may not have taken effect).

A history is LINEARIZABLE iff there exists a sequence L that contains every completed operation exactly once plus any subset (possibly empty) of the pending operations, each at most once, such that:
 (1) executing L in order, from the initial state, with the sequential semantics above gives every completed operation exactly its recorded result (pending operations' results are unconstrained); and
 (2) for any two operations A and B in L, if A has a response time and A.r < B.c, then A comes before B in L.
Times are compared strictly: when A.r == B.c the two operations are concurrent and may appear in either order. Otherwise the history is a VIOLATION.

INPUT (stdin). Line 1: T, the number of histories. Each history is a line N followed by N operation lines, in arbitrary order (not sorted by time). Tokens are separated by single spaces.
  c r PUT k v
  c r GET k v        (v is a value or the word NIL)
  c r DEL k
  c r CAS k x y RES  (RES is OK or FAIL)
A pending operation has the literal ? in place of r and no result token: "c ? PUT k v", "c ? GET k", "c ? DEL k", "c ? CAS k x y".
Bounds: 1 <= T <= 50; 1 <= N <= 2000; 0 <= c, r < 2^31; 0 <= k <= 999999; 1 <= v, x, y <= 10^9; at most 64 distinct keys and at most 48 pending operations per history; at any instant at most 12 completed operations are in progress (invoked and not yet responded).

OUTPUT (stdout). Exactly T lines, in input order: LINEARIZABLE or VIOLATION.

Samples: /tmp/eval_linz/sample_input.txt -> /tmp/eval_linz/sample_output.txt. The validator runs a hidden input of 40 histories (both verdicts, up to 2000 operations and dozens of pending operations each; about 0.8 MB) in a single process with a 6-second CPU limit, and every verdict must be exact.
Single file, package main, standard library only. Build: go build -o linz linz.go

What it tests and why it is in the suite

What it asks. Decide, for each recorded history of a concurrent key-value store, whether it is linearizable, with crashed (pending) operations that may or may not have taken effect.

Why it is here. A new family, ported to all six languages, in Distributed / SysDesign.

The same problem in 6 languages. Each port is its own unit and asks the same question; SOLVE counts the problem once, and LANG counts how far a solution carried across its ports.

In the suite README: evals/README.md:133

How it is graded

The validator holds its checks where the agent cannot read them, and runs them against what the agent left on disk once it stops. Its hidden cases are generated inside the validator from a seed; any worked sample the prompt names is only a sample, and no expected output for a hidden case is in the agent’s directory. Before any model ran it, the unit was proven: its reference solution passes, plausible wrong solutions fail for the reason declared in advance, an empty solution and a leak probe fail, and, where the unit is timed, a slow solution fails by the validator’s own limit. The family also went through up to three adversarial review rounds, in which an independent verifier tried to pass every unit without solving it.

Upstream: the prover’s controls · one unit’s life cycle · why v5 is built this way

How each ranked run did

One run per board row, the DGX Spark pair first, then the RTX 5090, then the gold standard. Each is a single seed: a pass or a fail on one unit is one draw, and a difference between two rows on one unit says little on its own. Claude Opus 5.5 is the unranked reference, in its own scaffold.

DGX Spark pair

One RTX 5090

Gold standard · unranked

  • Claude Opus 5.5Claude Code tools, no turn cap, 2× wallPassedPassed the validator.