In Lab 1 every agent received only the messages its connections carried to it. This lab shows a different way for agents to work together: a shared whiteboard. Every agent reads everything every other agent wrote, and builds on it.
That makes a team able to solve problems that no member could solve alone. It also makes the team harder to predict: what each agent writes depends on what the others wrote first.
Read this first: the puzzle, and who knows what
A cake vanished from the kitchen between 3 and 4 this afternoon. It was certainly one of four people: Ann, Ben, Cal or Dee, and nobody else.
Three detectives investigate. Each is an LLM agent, and each holds one piece of evidence that no other detective sees:
A fourth agent, Judy the judge, sees no evidence at all. She reads what the detectives wrote and gives the verdict.
Look at what each detective can work out alone. Each piece of evidence clears exactly one person, and leaves three:
| Ann | Ben | Cal | Dee | |
|---|---|---|---|---|
| Pip (door log) | cleared | |||
| Quinn (receipts) | cleared | |||
| Rae (fridge notes) | cleared | |||
| All three together | cleared | cleared | Cal | cleared |
No piece of evidence mentions Cal. Nobody can name Cal from their own evidence; the answer appears only when all three pieces are put together. That is what the whiteboard is for.
The whiteboard does nothing on its own. It changes only when a detective writes on it, and every change goes out to the detectives. There are no rounds, and nobody waits for anybody.
unknown.unknown.Notice what nobody does. No detective sends anything to another detective, and nobody decides who should read what. Everything written goes to everyone. In Lab 1 you drew every connection yourself and knew exactly what each agent would receive. Here you know only that each agent will receive everything, and you cannot know in advance what that will be: the three detectives think at the same time, and whichever finishes first writes first. The detective who writes second has read the first note; the one who wrote first has not. Run the same office twice, on the same evidence, and the board can fill up in a different order, with different notes.
Twenty seconds to run; twenty minutes to read
Copy the office into a folder of your own, check it, and run it:
dsl init cake_room lab2 cd lab2 dsl check . dsl run .
A run makes about fifteen model calls and takes about twenty seconds.
Judy's verdict, with the whole board, goes to report.jsonl.
To read it note by note:
python show.py
Here is one run on claude-haiku-5-5, with each note cut to
its gist. Yours will not be the same: that is Step 3.
| # | By | Suspects | Gist | show.py marks |
|---|---|---|---|---|
| 1 | Quinn | unknown | The shoe-shop camera clears Ben. | |
| 2 | Pip | unknown | The door log clears Dee. | stale read: note 1 |
| 3 | Rae | unknown | The garden camera clears Ann. | stale read: notes 1–2 |
| 4 | Quinn | unknown | Read Pip: Dee is out too. Ann or Cal. | stale read: note 3 |
| 5 | Pip | unknown | Read Quinn: Ben is out, “if it holds”. Ann or Cal. | stale read: notes 3–4 |
| 6 | Rae | cal | Read both: each of the other three is cleared. | changes its mind; stale read: notes 4–5 |
| 7 | Quinn | cal | Read Rae: “my earlier note … is superseded.” | changes its mind; stale read: notes 5–6 |
| 8 | Pip | cal | “I had not yet read Rae’s note.” Cal, by elimination. | changes its mind; stale read: notes 6–7 |
Verdict: Cal. Every detective started at unknown,
and every one reached Cal only after reading the others. That is the
collaboration this lab is about, and you can point to the exact note
where it happened for each detective.
read: how many
notes were on the board when its writer was sent it. If notes landed
after that, while the detective was still thinking, it wrote without
them. In the run above, seven of eight notes are stale. The three
detectives think at the same time and a model call takes seconds, so
the board nearly always moves on while someone is writing. Nobody
waits; that is the price of not waiting.python show.py.