AI in practice from Performance Metrics

From the engine room #4: The sessions never talk to each other

Written by Thomas Petersen | Nov 23, 2026, 2:15:00 PM

A task has at least two sessions: one writes the spec, another implements (#3). Afterwards a third reads the whole story (#5). None of them can remember anything. None of them can ask the previous one. Whatever has to be passed on goes through the runner, and it only takes along what is in the right place. This part is about what the right place is, and how it came to be that way.

The finding was in the wrong place

In the first version of the runner, a task went through implementation, review, fix and test, each with its own session. On 11 September we measured what actually got passed on from one to the next.

The review session did not get to see the implementation's log. It got a link to it. The log was typically 9.5 KB and up to around 25 KB, and whether the session opened it was its own business. The fix session got only the section of the review called ## Summary. In 214 of 284 reviews that required a fix, the finding was under a different heading. The finding had been written down. It just never reached the session that was supposed to fix it.

That is not a fault a better prompt fixes. It is a fault in who decides what gets passed on. The same day, the handoff was designed and rebuilt.

Facts and intent

The design fits in one sentence: the runner owns facts, the session writes intent.

Facts are what the runner can measure itself in git, logs and telemetry: which files changed, how many lines, which commits, which commands were green. A session never writes facts. If it writes "all tests are green", that does not count. The runner measures for itself and puts the numbers in the next session's work order.

Intent is what only the session knows: what it meant to do and why, which test pins which acceptance criterion, where it sees the risk itself, and what is still open. It must be in a ## Handoff section with fixed subheadings that depend on the log's type. An implementation must write Intent, Acceptance → pinning test, Review focus and Open points. A dispute against the spec must have Disputed tests as numbered items. A spec that is upheld must write why it stands.

When the session submits its log with -SubmitLog, the runner checks the form. It rejects the log if a section is missing or empty, if it says none where something must be, if an item should have been numbered and is not, or if a section is over 8 KB. The rejection ends with the skeleton the log should have had, and the session rewrites it. An example from 6 October: a spec log was rejected because it lacked ## Handoff, and was accepted when the session submitted again.

The runner checks only the form, not the content. Whether the intent is good is the next session's judgement. But it can no longer sit somewhere nobody looks.

The work order

The next session starts with a work order that the runner writes. It is built from fixed sections: the task, the handoff from the previous phase, the locked spec, the discarded attempt if there is one, the evidence the runner has measured itself, what sibling tasks have done, a catalogue of the real names in the code, the commands the session must run, and when it must stop.

A real example from access per data type: the work order for the second attempt at a task is 189 lines and 20 KB. It points to 23 files that together come to 1.6 MB. Most of it is links, and the session is told to open only what it needs. What is in the work order directly is what the runner knows and the session cannot count on finding itself: that the task's diff is 4 files with 344 lines added and 6 deleted, which commit the spec and the fix of the spec are in, that the story so far is 20 files, what the two sibling tasks meant to do and which files they landed, and that this is attempt 2 of 2, so a red gate blocks the task. The discarded attempt is there as a patch, with a link.

That task is also the example of how fast it goes when the handoff works. From the moment the task started until the visual verifier signed off on it, 39 minutes passed, and the runner timestamped every step. The timestamps are not decoration. They are what the retrospective reads when it asks where the time goes. On 8 November a task took 7.1 minutes on average.

The first implementation raised a dispute two minutes after it started. It pointed to the test that could never go green (#3), and wrote the measured failure and a fix under Disputed tests. The spec session wrote "the dispute is right", fixed the test and measured red again: 10 failing out of 65. The second attempt built on from there.

It also shows the price. The dispute had an open point about an architecture test. But from a dispute only Disputed tests is passed on, so the point was in neither the spec session's nor the second attempt's work order. The second attempt ran into the failure itself, solved it and wrote it under Review focus, so the story review could see it. It ended well, but it shows the rule: what is not in the right place does not get passed on. That also applies when it is important.

Hermetic sessions

That the sessions cannot talk to each other is not only a question of what the runner sends along. It is also a question of what they may not bring from home.

Since 27 August every session starts hermetic. It has no machine-local memory. It reads only the project's own settings, not my personal setup. It gets none of the tool servers that I or the project have set up for interactive work, only the ones the runner itself hands it, for example a browser for a UI task. And since September it is locked to the same version of the runner that started it, so a call from the session back to the runner never hits a different version.

Before that, a fair amount of knowledge sat in the memory of whichever account the session happened to run on. It worked until the session ran on a different account. Now that knowledge has moved to a versioned file in the repo with traps that have each cost at least one real session. Every session gets it as a reference, and a change to it is a commit, like any other.

In the talk I said that the work order is everything the next session knows. That was too strong. The session still reads the repo's own instructions, the contracts and the traps file. The precise version is that nothing from earlier sessions reaches it unless the runner has put it in the work order.

The sessions run spread across three Claude accounts. The runner picks the account with the most capacity left, and an account that is used up is never picked while another has room. It never refuses to start a session. If all accounts are used up, it runs on the least loaded one.

Prompts that don't drift

The last link is what the session is told. A prompt is text, and text changes. A new field here, a rewording there, and three weeks later the sessions behave differently without anyone being able to say why.

Since 11 September, the same day as the new handoff, everything the runner sends to a session is locked in approved files: the command line, the prompt, the environment and the work order. There is one file per session type, today 37 files. A test renders each of them and compares it with the approved one. If there is a difference, the test fails on the first line that differs, until someone deliberately approves the change and reads the diff. Paths, timestamps and commit hashes are normalised, so only the content counts.

It sounds bureaucratic. But it means that I can say exactly when a session started being told something different, and who approved it.

The decision

The sessions never talk to each other. Everything goes through the runner, and the runner takes two things along: the facts it has measured itself, and the intent the session has written in a form the runner can check. Nothing else gets through, not from an account's memory and not from a prompt that has quietly changed.

It has a price. What is in the wrong place is gone. But it was before, too. The difference is that now you can see where the right place is.

The next part is about those who judge the work, and why none of them may have built it (#5).

Numbers as of 19 November 2026.

—
The code is written by AI. So is the text. The decisions are mine.