Fragment 2 · Wave 2
Wave 2 · A note, a request, an answer
One note is added at the door. The machine reacts on its own — out through the membrane and back — until nothing is left to do.
In this wave
12A new wave beginsSETTLING · enter-settle
a wave is settlingengine: at the endmembrane: at the end
The log - #0a listener
- #1a doer that asks
- end of the log
The runtime What before after a wave is settling no yes A person commits a note at the door, so a new wave starts — the same way the first one did.
Where it happens
markSettling()Vol. 02 §4.6 · Vol. 02 §4.7Marks the start and the end of a wave. The runtime settles one wave at a time.
- Specification
- Vol. 02 §4.6 · Vol. 02 §4.7
- Code
markSettling()incore/registers/mark-settling.ts, line 16: the runtime notes whether a wave is settling- Journal
SETTLING · enter-settle· by runtime- Picture
- a wave is settling: no → yes
core/registers/mark-settling.ts· build 043cc8b// SETTLING latch (Vol. 02 §4.6): one settling wave at a time — a second// concurrent settle is a caller error, not a queue. Ephemeral stratum: the// latch never survives into a snapshot; extraction asserts it clear.// Entering a wave also rewinds the discharge slot sequence: slot ids are// wave-local (the table is drained between waves and ids never reach the// log), which keeps the journal byte-identical across a snapshot/restore —// unlike INTENT.CTR, which the spec pins as never-reset (Vol. 02 §4.7).import type { RegisterFile } from "./register-file";import { recordTransition } from "./record-transition";export function markSettling(file: RegisterFile, settling: boolean): void {if (settling && file.ephemeral.settling) {throw new Error("A wave is already settling; the runtime handles one wave at a time.");}file.ephemeral.settling = settling;↑ the runtime notes whether a wave is settlingif (settling) file.ephemeral.nextDischargeId = 0;recordTransition(file, "runtime", "SETTLING", settling ? "enter-settle" : "leave-settle");↑ the change is written into the journal}
AGPL-3.0-onlyThe Lab's demonstration environment, as this fragment ran it (build 043cc8b). The code may change, and may differ from the code of a working machine.
Nest VM core, incubated in the CoAgnes garden · build 043cc8b (2026-09-21) · this file last changed in f36e70d (2026-08-18)
- #2 · a note arrives
- #3 · the listener is ready, the doer asks
- #4 · the request crosses the membrane
- #5 · the world answers, and the machine is quiet
37The wave ends — quietSETTLING · leave-settle
quietengine: at the endmembrane: at the end
The log - #0a listener
- #1a doer that asks
- #2a note
- #3readiness
- #4a request
- #5the answer
- end of the log
The runtime What before after a wave is settling yes no Nothing left to take, nothing waiting outside: the wave ends. The request (#4) and the answer (#5) stand side by side in the log, joined by the name
note.ask#1.Where it happens
markSettling()Vol. 02 §4.6 · Vol. 02 §4.7Marks the start and the end of a wave. The runtime settles one wave at a time.
- Specification
- Vol. 02 §4.6 · Vol. 02 §4.7
- Code
markSettling()incore/registers/mark-settling.ts, line 16: the runtime notes whether a wave is settling- Journal
SETTLING · leave-settle· by runtime- Picture
- a wave is settling: yes → no
core/registers/mark-settling.ts· build 043cc8b// SETTLING latch (Vol. 02 §4.6): one settling wave at a time — a second// concurrent settle is a caller error, not a queue. Ephemeral stratum: the// latch never survives into a snapshot; extraction asserts it clear.// Entering a wave also rewinds the discharge slot sequence: slot ids are// wave-local (the table is drained between waves and ids never reach the// log), which keeps the journal byte-identical across a snapshot/restore —// unlike INTENT.CTR, which the spec pins as never-reset (Vol. 02 §4.7).import type { RegisterFile } from "./register-file";import { recordTransition } from "./record-transition";export function markSettling(file: RegisterFile, settling: boolean): void {if (settling && file.ephemeral.settling) {throw new Error("A wave is already settling; the runtime handles one wave at a time.");}file.ephemeral.settling = settling;↑ the runtime notes whether a wave is settlingif (settling) file.ephemeral.nextDischargeId = 0;recordTransition(file, "runtime", "SETTLING", settling ? "enter-settle" : "leave-settle");↑ the change is written into the journal}
AGPL-3.0-onlyThe Lab's demonstration environment, as this fragment ran it (build 043cc8b). The code may change, and may differ from the code of a working machine.
Nest VM core, incubated in the CoAgnes garden · build 043cc8b (2026-09-21) · this file last changed in f36e70d (2026-08-18)
At the end of the wave Three records the machine and the world wrote on their own: the listener's readiness (#3), the doer's request (#4) and the world's answer (#5), joined to the request by the name note.ask#1. Then quiet.