[ BENCHMARKS / v5.0 / TASKS / 175_crdt_orset_rga ]
CRDT OR-Set + RGA across 3 replicas in Python.
An operation-based observed-remove set and RGA sequence held by three replicas, with causal delivery, checked exactly at many points of each scenario.
- Unit
175_crdt_orset_rga- Category
- Distributed / SysDesignCRDTs & causal delivery
- Language
- Python
- Difficulty
- Hard900 s wall clock (15 min)
- Origin
- New in v5
- Ranked rows passed
- 4/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.
Create /tmp/eval_crdt/crdt.py (Python 3, standard library only): an operation-based replicated data type for a cluster of exactly three replicas with ids 0, 1 and 2. Each replica holds two CRDTs at once, an observed-remove set (OR-Set) of strings and an RGA sequence of characters. The tests drive it only through this class:
class Replica:
def __init__(self, rid: int) # rid is 0, 1 or 2
def add(self, x: str) -> str # local ops: each takes effect at this replica at once
def remove(self, x: str) -> str # and returns the op as a str message
def insert(self, i: int, ch: str) -> str # ch is one character, 0 <= i <= len(self.text())
def delete(self, i: int) -> str # 0 <= i < len(self.text())
def deliver(self, msg: str) -> None
def elements(self) -> list[str] # the set's members, ascending
def text(self) -> str # the visible characters, in order
def pending(self) -> int
Every observation (elements(), text(), pending()) is checked exactly, at many points of each scenario, against these rules:
1. Op ids. Each add/remove/insert/delete call creates one op with id (c, r): r is the replica that created it and c = 1 + the largest c of any op that has taken effect at that replica (its own ops included), or 1 if none has. Ops that have been delivered but have not yet taken effect do not count. Ids compare as tuples: by c, then by r.
2. Delivery. The tests pass messages between replicas themselves: any message returned by any replica may be given to deliver() of any replica (including the replica that created it), any number of times, in any order, possibly much later. An op takes effect at a replica only after its own message has been delivered there, and only once every op in its causal past has taken effect there. The causal past of an op is the set of ops that had taken effect at its creating replica when it was created. A delivered op that is not ready yet is held, and takes effect automatically as soon as it becomes ready (during a later deliver() call; one delivery can release a cascade). Delivering an op that has already taken effect, or is already held, changes nothing. pending() is the number of distinct ops this replica holds.
3. OR-Set. The id of an add(x) op is a tag of x. A remove(x) op cancels exactly the tags of x that had taken effect at its creating replica when it was created (it is still an op, with an id, if it cancels nothing). x is a member iff at least one tag of x that has taken effect here is not cancelled by any remove that has taken effect here.
4. RGA. An insert(i, ch) op records an anchor: the element just left of position i in the creating replica's text(), or HEAD when i == 0. delete(i) marks the element at position i of text() as deleted. Deleted elements are never removed and stay valid anchors; deleting an element more than once is the same as once. The full sequence at a replica, over the inserts that have taken effect there, is seq(HEAD), where seq(e) = [e] followed by seq(c) for every element c anchored on e, those c taken in descending id order. text() is that sequence minus HEAD and the deleted elements.
5. Isolation. Replicas may share nothing but messages: the tests can build each replica from its own separately imported copy of your module, so module- or class-level shared state does not work. Messages are opaque to the tests, which never parse or change them.
Scale: scenarios have up to about 1500 ops, texts reach about 2500 characters, including runs of thousands of characters typed one after another. The whole hidden suite (about 60 scenarios) must finish within 10 seconds.
Sample: /tmp/eval_crdt/sample_test.py is a small scenario written as assertions; run it with: cd /tmp/eval_crdt && python3 sample_test.py. The hidden tests are much larger.What it tests and why it is in the suite
What it asks. An operation-based observed-remove set and RGA sequence held by three replicas, with causal delivery, checked exactly at many points of each scenario.
Why it is here. A new family in Distributed / SysDesign.
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.
- Time. The agent has 900 s of wall clock (hard tier) before an arm’s scaling; at the wall it is stopped and whatever is on disk is validated. Any time limit in the prompt applies to the program itself.
- Verdict. Pass or fail, from the validator alone. A unit the integrity scan finds contaminated is withheld and counts as not passed; a unit lost to infrastructure is rerun, and one still lost counts as not passed.
- Scoring. SCORE is 0.75 × SOLVE + 0.25 × LANG over the whole suite, with hard problems weighted above medium ones. Scoring and ranking
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
- DeepSeek-V4.1-Flash#1 on the boardPassedPassed the validator.
- Hy4-flash#2 on the boardPassedPassed the validator.
- GLM-5.3-Flash#3 on the boardFailedDid not pass the validator.
One RTX 5090
- Inkling 2 Mini#4 on the boardPassedPassed the validator.
- Inkling 2 Mini Derisked#5 on the boardPassedPassed the validator.
- Inkling 2 Mini SC117 abliterated#6 on the boardFailedDid not pass the validator.
- Qwen3.8 27B Uncensored MTP#7 on the boardLostLost: the run ended on an infrastructure error, such as a server error, so the board does not count it as a verdict; it counts as not passed.
Gold standard · unranked
- Claude Opus 5.5Claude Code tools, no turn cap, 2× wallPassedPassed the validator.