‹ all posts

Erik Rekola · updated

Four more outside reads of my TLA+ models

2026-11-29

In October I called TLA+ on my own tools, in numbers the fourth and last part of this series. It was the last part, but the reviews kept going. From 17 to 25 November my TLA+ models had four more outside reads, all of them by ChatGPT, and after each read I ran a chain of fix sessions. This post covers rounds 5 to 8. I have no ninth round planned.

What was read?

My tools are scripts that keep state on disk or do something that cannot be undone, such as sending an email or writing a shared log. I write a TLA+ model for each such tool I have got to, and TLC checks the model. For every round I built anonymized packages of models, their stored TLC runs and the code they describe, and ChatGPT read them one package at a time.

Round 5 read 9 packages with 95 models. Round 6 read 16 packages with 158 gradable models. Rounds 7 and 8 read only what had changed since the round before, in 13 packages each. Round 8 had 64 gradable models. I count that change set from file bytes and records, not from the decision label a model carries, because a label also marks models that were only acknowledged and not changed.

Each finding came back as a claim with a severity. Sonnet subagents then checked every claim against the real code, and each claim got a final level from A, the most serious, down to C.

What did the four rounds find?

RoundClaimsChatGPT highFinal AFinal BRefuted
516210070
6276170131
7248100111
81984080

For comparison, rounds 1 to 4 in October raised 68, 49, 37 and 35 claims, and their final A counts were 2, 2, 0 and 0. So rounds 3 to 8 had no final A.

Most claims were C. The prompt asked for missing runs and missing tests, and a reader that is asked for gaps finds many. In round 8, 60 of the 198 claims were missing tests and another 60 said a report or text of mine was wrong. Volume says little about severity here.

Every round also returned objects marked ok, where the reader saw nothing wrong. I had those attacked too. In round 8, 113 of 117 held, 2 gave new C findings, and 2 could not be reproduced. One attacker ran about 115 TLC runs, and every stored run it repeated gave the stored verdict.

What do the refuted claims mean?

Rounds 1 to 5 had no refuted claim at all. In round 6 the reader said a model computed something at pick time that the code took from an earlier directory walk, so the model would miss a case the code allows. That was the first refuted claim. Verification found that state already in a stored trace of the same model, with the same failing result. So the reader described the code correctly, but the claim that the model lacked that case was wrong. Round 7 refuted one more: the reader said a count in my own package README was wrong, and the count was right.

Zero refuted claims do not show that the reader was right. In October I ran a pair test with 26 confirmed claims, each with one fact changed. In 25 of them the change made the claim false. The verifiers refuted none of the 26, and they confirmed 8 of the 25 whose changed fact was false. The details are in TLA+ on my own tools, in numbers. Their check is weaker than the word confirmed suggests. I did not repeat the test for rounds 5 to 8, so the same caution applies to them.

Where did several of the faults sit?

At the edge of an earlier fix, in rounds 5, 6 and 8.

In round 5 my ship script compared one repository's state stamp after it read the deploy stamp and the other repository's only before it. The claim sat on the path next to a fix from round 4, not on the fix itself.

In round 6 the reader found that a fix from round 5 had widened a named race window in the send tool. The code comment still called it a window of microseconds. A double send still needs two runs that resolve the same reservation and two senders, so the fault stayed a B, but the sentence explaining the fix was wrong.

In round 8 the same send tool had a guard that round 7 fixed for one form of a folder name, a name starting with a dot and a slash. The guard was still case-sensitive, and Windows treats a folder name with a capital letter as the same folder. Round 7 closed the named case, and round 8 tried its neighbor. No folder on disk had a capital letter, so the fault had no trigger yet.

What went wrong on my side?

Several faults were mine, not the reader's. In round 6 two hand-written copies of returned reports differed from the originals until a hash check forced a fresh write, and my parser read 4 of 17 objects from one report because of a fence regex. Each was caught by a check of mine before verification began.

In round 7 my own summary called one TLC failure new. I had rerun it and got the same result. The library already had the same model failing with two writers, so the rerun showed only that the verdict repeats. An independent checker who read the library found it.

Round 7 also found that my last acknowledgment of drifted models had updated each file hash and left the old line numbers. The package README showed old numbers as current.

In round 8 the README said four models extended the original model. My builder wrote that sentence from a field in the model manifest, not from the EXTENDS line in the .tla file. The field was wrong on 60 rows, and 38 of them claimed an extension the .tla file did not have. A sentence derived from a field inherits the field's error, and the reader sees it as a fact.

What did the fixes change?

Each round ended in a fix chain of 6 to 10 sessions, run one after another. Some decisions changed code. The other decisions became named limits, written into comments and README text and into the models.

The model library grew from 120 models to 290. Every change to a modeled tool leaves its models drifted until I read the diff and acknowledge them, most of them by a regression run of the real code. The four chains acknowledged 115, 196, 262 and 254 drifted models, and the sixth session of round 8 acknowledged 154 more after its own changes. After round 8 none was left.

Near the end of each chain I ran the full mutation suite of my tools in 48 parallel parts: 2 011 of 2 011 caught in round 5, 2 099 of 2 099 in round 6 and 2 190 of 2 190 in round 7. In round 8 the full run caught 2 302 of 2 302 before the sixth session, and that session then reran the mutations of the four tools it touched.

What did checking cost?

Checking round 5 took 18 Sonnet subagents and 5 954 303 tokens, about 36 800 per claim. Round 6 took 6 246 108 tokens and round 7 took 5 374 939, about 22 600 and 21 700 per claim. Those two figures also include the agents around the verification, such as the ones that collected the reports or checked the summary, so they are not a clean comparison with round 5. I did not total round 8. The figures come from the subagent tool's own reports, not from a bill.

What does this not show?

TLC checks a model, and the model is an upper bound on what the code may do. When a fix only narrows what a tool does, I acknowledged its models by a regression run of the real code, without a new model check, because the new refusal is a step the model already allows. That is a reasoned shortcut, and it is the place I would look first for a mistake.

The replays ran against mocks. I did not measure the real sync client, real git, wrangler or GitHub.

A delta read covers only what changed. I have not measured whether it left an old edge unread.

The prompt and the package format changed between rounds, and rounds 7 and 8 read only changes, so the eight rounds are not one series under the same conditions.

Updated 2026-12-02. The post gained a Frequently asked section.

Frequently asked

How many outside reads were there in rounds 5 to 8?

Four, all by ChatGPT, from 17 to 25 November 2026. Round 5 read 9 packages with 95 models and round 6 read 16 packages with 158 gradable models. The last two rounds read only what had changed, in 13 packages each.

Did any of rounds 5 to 8 find a final A claim?

No. Rounds 3 to 8 had no final A, and rounds 5 to 8 ended with 7, 13, 11 and 8 final B claims. Most claims were C, because a prompt that asks for gaps finds many.

Do zero refuted claims show that the reader was right?

No. In an October pair test the verifiers refuted none of 26 claims, and they confirmed 8 of the 25 whose changed fact was false. Their check is weaker than the word confirmed suggests.

Where did several of the faults sit?

At the edge of an earlier fix, in rounds 5, 6 and 8. In round 8 a guard that round 7 had fixed for one form of a folder name was still case-sensitive, and Windows treats a folder name with a capital letter as the same folder.