Synthetic fixtures computed locally. No model, database or production service is contacted.
Experiment workspace
Decision trace
The question this experiment answers
An agent that reads several tools one after another sees each record at a different moment. When a transaction that touches all of those records commits in between, the plan is built on a combination of versions that never existed. Set the number of cases, the cross-record commit rate, the number of tool reads, the gap between them and the agent planning time, then choose how reads are made and whether the write checks the version. The model counts plans built on mixed versions, stale writes applied, writes rejected, cases sent to a person and tool reads.
Change one assumption at a time
Start from the separate reads preset and move one control. Turn on the atomic case-level version check to reject changed cases, including mixed views; the mixed-read count remains visible because the inconsistent read already happened. Switch to validate and re-read to see mixed plans disappear at the cost of extra reads. Switch to one snapshot and see mixed plans drop to zero while stale writes rise, then add the version check. Raise the commit rate to 60 per minute in the busy preset, and widen the read window with five tools 3 seconds apart.
Expected outcomes
With 200 cases, 6 commits a minute, 3 tools 800 ms apart and 4 seconds of planning: separate reads give 16 mixed plans (8.0%), 40 stale writes and 600 reads. Adding the version check rejects all 56 changed cases: the 16 mixed views and 40 other stale writes. No mixed-view write is applied. Validate and re-read gives 0 mixed, 41 stale and 651 reads. One snapshot gives 0 mixed and 56 stale; with the check, 56 rejected. Busy: 49 rejected and 151 sent to a person after two re-reads, 1,551 reads. Slow tools: 120 mixed plans (60.0%).
Read the metrics and the table
Mixed final read sets counts cases whose final reads span a commit, even if later rejected. Mixed-view writes applied counts the unsafe actions allowed from those sets. Stale writes applied counts other changed cases applied without a check. Writes rejected counts changed cases stopped atomically using the case version from the first read. It should lead to a re-plan. The mixed-read count overlaps outcomes; the five outcome counts sum to the case count. Sent to a person counts cases whose re-read budget ran out. Tool reads shows the cost of re-reading. Each table row is one case: commits after the basis, re-reads, whether the view was mixed, when the write happened and the outcome.
What to take back to a real system
Give the agent one consistent view: one joined query or an appropriate repeatable-read transaction, or a snapshot token that later tools honour. Put a version check on every write, because consistent reads do not prevent staleness. Log the versions each plan used so mixed plans can be counted in production. Keep re-read budgets small and make exhaustion a visible outcome. Shorten the read window where you can; both window length and commit rate affect exposure.
Limits
Commit times are synthetic, with uniform gaps between commits, and every commit touches every record the agent reads; real systems mix single-record and multi-record writes. The version check covers every record through one shared case version and is atomic with the write; a last-record ETag check is weaker. Tool latency is fixed, the agent never changes which tools it calls, and no database or model is contacted. Rejected writes are counted, not re-planned. The figures show how the designs differ, not the rates any real system will see. Export the JSON to keep the inputs with the result.
Views are my own and do not represent any employer, past or present.