a wave is settlingengine working on #5membrane waiting at #5

Wave 2 · record #5domain.factnote.answered

#5 · the world answers, and the machine is quiet

Nothing was told to hear note.answered, so when the engine takes it nothing changes; the membrane passes it, and the machine is quiet. The request and the answer stand side by side, joined by note.ask#1.

Came fromthe worldThe world answered through the membrane — the controller controller.schema.double, the deterministic class's stand-in. step 34

Read as

when the engine took #5

  1. 35The engine takes #5ENGINE.CURSOR · propagate

    a wave is settlingengine: working on #5membrane: waiting at #5

    The log
    1. #0a listener
    2. #1a doer that asks
    3. #2a note
    4. #3readiness
    5. #4a request
    6. #5the answerengine · workingmembrane
    7. end of the log
    The engine
    Whatbeforeafter
    pointer — the next record to take#5#6

    The engine moves on to #5, the answer. Nothing was told to hear note.answered, so nothing changes — and the engine has reached the end.

    Where it happens takeNextTuple()Vol. 02 §4.1

    The engine's step: take the record under its pointer and move the pointer on — or stop, if the pointer has reached the end.

    Specification
    Vol. 02 §4.1
    Code
    takeNextTuple() in core/registers/take-next-tuple.ts, line 15: at the end of the log, the engine stops
    Journal
    #5 · ENGINE.CURSOR · propagate · offset: 5 · by engine
    Picture
    pointer — the next record to take: #5 → #6
    core/registers/take-next-tuple.ts · build 043cc8b
    1. // ENGINE.CURSOR advance (Vol. 02 §4.1) — the machine's instruction pointer:
    2. // returns the tuple at the cursor and moves it forward exactly once, or null
    3. // at quiescence. Advancing IS the context switch: the ambient wave context
    4. // moves to the propagated tuple in the same movement, so every transition
    5. // journalled during its propagation is attributed to it — the cube's spine.
    6. // The cursor never rewinds.
    7. import type { WaveTuple } from "../wave/gate";
    8. import type { RegisterFile } from "./register-file";
    9. import { recordTransition } from "./record-transition";
    10. import { setDriver, setWaveContext } from "./set-wave-context";
    11. export function takeNextTuple(file: RegisterFile): WaveTuple | null {
    12. const engine = file.registers.engine;
    13. if (engine.cursor >= engine.base + engine.window.length) return null;↑ at the end of the log, the engine stops
    14. const tuple = engine.window[engine.cursor - engine.base];
    15. engine.cursor += 1;↑ the engine's pointer moves on by one
    16. setWaveContext(file, { offset: tuple.offset, phase: "propagate" });
    17. setDriver(file, "engine");
    18. recordTransition(file, "engine", "ENGINE.CURSOR", "propagate", { offset: tuple.offset });↑ the change is written into the journal
    19. return tuple;
    20. }

    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 6730f58 (2026-09-13)

when the membrane passed #5

  1. 36The membrane passes #5MEMBRANE.CURSOR · sweep

    a wave is settlingengine: at the endmembrane: passing #5

    The log
    1. #0a listener
    2. #1a doer that asks
    3. #2a note
    4. #3readiness
    5. #4a request
    6. #5the answermembrane · passing
    7. end of the logengine
    The membrane
    Whatbeforeafter
    pointer — the next record to pass#5#6

    The answer asks nothing more of the world. The membrane reaches the end of the log.

    Where it happens sweepNextTuple()Vol. 02 §4.6 · Vol. 07 §3

    The membrane's step: pass over the record under its pointer and move the pointer on — exactly once per record.

    Specification
    Vol. 02 §4.6 · Vol. 07 §3
    Code
    sweepNextTuple() in core/registers/sweep-next-tuple.ts, line 16: the membrane's pointer moves on by one
    Journal
    #5 · MEMBRANE.CURSOR · sweep · offset: 5 · by membrane
    Picture
    pointer — the next record to pass: #5 → #6
    core/registers/sweep-next-tuple.ts · build 043cc8b
    1. // MEMBRANE.CURSOR advance (Vol. 02 §4.6, Vol. 07 §3): the membrane's own
    2. // reading of the one log — the second reception of one publication, never a
    3. // second truth. The cursor advances exactly once per offset per machine:
    4. // the exactly-once discharge guarantee lives in this movement.
    5. import type { WaveTuple } from "../wave/gate";
    6. import type { RegisterFile } from "./register-file";
    7. import { recordTransition } from "./record-transition";
    8. import { setDriver, setWaveContext } from "./set-wave-context";
    9. export function sweepNextTuple(file: RegisterFile): WaveTuple | null {
    10. const engine = file.registers.engine;
    11. const membrane = file.registers.membrane;
    12. if (membrane.cursor >= engine.base + engine.window.length) return null;
    13. const tuple = engine.window[membrane.cursor - engine.base];
    14. membrane.cursor += 1;↑ the membrane's pointer moves on by one
    15. setWaveContext(file, { offset: tuple.offset, phase: "sweep" });
    16. setDriver(file, "membrane");
    17. recordTransition(file, "membrane", "MEMBRANE.CURSOR", "sweep", { offset: tuple.offset });↑ the change is written into the journal
    18. return tuple;
    19. }

    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 6730f58 (2026-09-13)

Choose a step in the stack — or press →.

A fact: the world's answer

What came back through the membrane, written under the type the doer asked for and carrying the doer's name and the intention's name, so that the request and the answer stay joined in the log. It is the world's record, not the doer's.

#5domain.factnote.answered the world

envelope
offset5Its place in the log — the only address a record has. The engine gives it when the record is added, the next free number, and it never changes.
kinddomain.factWhich of the four kinds of record the machine knows. The kind decides what the payload holds.
keyfragment-one-crossing-detThe lane of the request: the answer comes back on the lane it was asked on.
payload
factTypenote.answeredThe type the doer asked for.
payload.data
bindIdnote.askThe doer whose request this answers.
uidnote.ask#1The intention's name, returned — note.ask#1. It is how the answer finds its request.
payload.data.result
answer«[deterministic class] answer · from: Is a request to the world a record of the log, or something outside it?»The answer, in the shape asked for. The stand-in writes what it is and what it answered from.

end · #5

In the specificationVol. 03 §1Vol. 03 §4Vol. 03 §5Vol. 04 §5.3Vol. 07 §4.2

Names it shares with other records

The record as the machine keeps it
{
 "offset": 5,
 "kind": "domain.fact",
 "key": "fragment-one-crossing-det",
 "payload": {
  "factType": "note.answered",
  "data": {
   "bindId": "note.ask",
   "uid": "note.ask#1",
   "result": {
    "answer": "[deterministic class] answer · from: Is a request to the world a record of the log, or something outside it?"
   }
  }
 }
}