a wave is settlingengine working on #40membrane waiting at #36

Wave 5 · The return · record #40domain.factrepresent.requested

#40 · the request to present again crosses

The membrane hands it to controller.represent, which answers once; the note enters the log as #41.

Came fromthe machineThe machine wrote it while the engine took #39: the return doer wrote its one fact. step 212

Read as

when the engine took #40

  1. 213The engine takes #40ENGINE.CURSOR · propagate

    a wave is settlingengine: working on #40membrane: waiting at #36

    The log
    1. #0a listener
    2. #1a doer
    3. #2listener: the charter
    4. #3doer: the author
    5. #4listener: charter seen
    6. #5listener: blueprint seen
    7. #6doer: the planner
    8. #7listener: assess · charter
    9. #8listener: assess · result
    10. #9doer: the evaluator
    11. #10the charter wanted
    12. #11the blueprint
    13. #12readiness
    14. #13readiness
    15. #14a request: a charter
    16. #15the charter proposed
    17. #16the charter defined
    18. #17readiness
    19. #18readiness
    20. #19a request: a Cell
    21. #20the seed
    22. #21the Cell is open
    23. #22inner listener
    24. #23inner doer
    25. #24the Cell's context
    26. #25return listener
    27. #26return doer
    28. #27the return address
    29. #28the person's words
    30. #29readiness
    31. #30the private result
    32. #31the result, marked
    33. #32readiness
    34. #33a request: assess
    35. #34assessment proposed
    36. #35the Cell assessed
    37. #36the decisionmembrane
    38. #37the Cell sealed
    39. #38the export
    40. #39readiness
    41. #40a request: present againengine · working
    42. end of the log
    The engine
    Whatbeforeafter
    pointer — the next record to take#40#41

    The engine moves on to #40, the request to present again. Nothing at root re-reads the log for it.

    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
    #40 · ENGINE.CURSOR · propagate · offset: 40 · by engine
    Picture
    pointer — the next record to take: #40 → #41
    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 #40

  1. 218The membrane passes #40MEMBRANE.CURSOR · sweep

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

    The log
    1. #0a listener
    2. #1a doer
    3. #2listener: the charter
    4. #3doer: the author
    5. #4listener: charter seen
    6. #5listener: blueprint seen
    7. #6doer: the planner
    8. #7listener: assess · charter
    9. #8listener: assess · result
    10. #9doer: the evaluator
    11. #10the charter wanted
    12. #11the blueprint
    13. #12readiness
    14. #13readiness
    15. #14a request: a charter
    16. #15the charter proposed
    17. #16the charter defined
    18. #17readiness
    19. #18readiness
    20. #19a request: a Cell
    21. #20the seed
    22. #21the Cell is open
    23. #22inner listener
    24. #23inner doer
    25. #24the Cell's context
    26. #25return listener
    27. #26return doer
    28. #27the return address
    29. #28the person's words
    30. #29readiness
    31. #30the private result
    32. #31the result, marked
    33. #32readiness
    34. #33a request: assess
    35. #34assessment proposed
    36. #35the Cell assessed
    37. #36the decision
    38. #37the Cell sealed
    39. #38the export
    40. #39readiness
    41. #40a request: present againmembrane · passing
    42. end of the logengine
    The membrane
    Whatbeforeafter
    pointer — the next record to pass#40#41

    #40 is a request: the membrane's pointer moves past it, and the membrane looks for someone in the world who will take it.

    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
    #40 · MEMBRANE.CURSOR · sweep · offset: 40 · by membrane
    Picture
    pointer — the next record to pass: #40 → #41
    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)

  2. 219The request is handed to the worldDISCHARGE.TABLE · track-discharge

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

    The log
    1. #0a listener
    2. #1a doer
    3. #2listener: the charter
    4. #3doer: the author
    5. #4listener: charter seen
    6. #5listener: blueprint seen
    7. #6doer: the planner
    8. #7listener: assess · charter
    9. #8listener: assess · result
    10. #9doer: the evaluator
    11. #10the charter wanted
    12. #11the blueprint
    13. #12readiness
    14. #13readiness
    15. #14a request: a charter
    16. #15the charter proposed
    17. #16the charter defined
    18. #17readiness
    19. #18readiness
    20. #19a request: a Cell
    21. #20the seed
    22. #21the Cell is open
    23. #22inner listener
    24. #23inner doer
    25. #24the Cell's context
    26. #25return listener
    27. #26return doer
    28. #27the return address
    29. #28the person's words
    30. #29readiness
    31. #30the private result
    32. #31the result, marked
    33. #32readiness
    34. #33a request: assess
    35. #34assessment proposed
    36. #35the Cell assessed
    37. #36the decision
    38. #37the Cell sealed
    39. #38the export
    40. #39readiness
    41. #40a request: present againmembrane · passing
    42. end of the logengine
    The runtime

    No register changed its value.

    controller.represent claims #40 — the world's station that carries a committed value to a new address as a fresh fact. The runtime notes the hand-out and waits.

    Where it happens trackDischarge()Vol. 02 §4.6 · Vol. 08 §3

    Notes, at the membrane, that a record has been handed to the world, and keeps it among those the machine still waits on.

    Specification
    Vol. 02 §4.6 · Vol. 08 §3
    Code
    trackDischarge() in core/registers/track-discharge.ts, line 19: the hand-out gets the next number
    Journal
    #40 · DISCHARGE.TABLE · track-discharge · id: 1, controller: controller.represent, offset: 40 · by runtime
    Picture
    no register changed its value
    core/registers/track-discharge.ts · build 043cc8b
    1. // DISCHARGE.TABLE entry (Vol. 02 §4.6, Vol. 08 §3): an in-flight discharge
    2. // joins the table under a fresh slot id. The defect path is part of the
    3. // entry's own movement: a rejected discharge leaves the table as the
    4. // rejection propagates, so the machine stays usable for the next wave
    5. // (refimpl 06 §1; host ADR-011 finding 2).
    6. import type { WaveEmission } from "../wave/gate";
    7. import type { RegisterFile } from "./register-file";
    8. import { recordTransition } from "./record-transition";
    9. import { setDriver, setWaveContext } from "./set-wave-context";
    10. export function trackDischarge(
    11. file: RegisterFile,
    12. claim: { controller: string; offset: number },
    13. discharge: Promise<readonly WaveEmission[]>
    14. ): void {
    15. setWaveContext(file, { offset: claim.offset, phase: "sweep" }); // attribute to the claimed tuple
    16. setDriver(file, "runtime");
    17. file.ephemeral.nextDischargeId += 1;↑ the hand-out gets the next number
    18. const id = file.ephemeral.nextDischargeId;
    19. file.ephemeral.inFlight.set(↑ it is kept among those still out in the world
    20. id,
    21. discharge.then(
    22. (emissions) => ({ id, controller: claim.controller, offset: claim.offset, emissions }),
    23. (defect: unknown) => {
    24. file.ephemeral.inFlight.delete(id);
    25. recordTransition(file, "runtime", "DISCHARGE.TABLE", "discharge-defect", { id, ...claim });↑ the change is written into the journal
    26. throw defect;
    27. }
    28. )
    29. );
    30. recordTransition(file, "runtime", "DISCHARGE.TABLE", "track-discharge", { id, ...claim });↑ the change is written into the journal
    31. }

    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 world answered

  1. 220The world answersDISCHARGE.TABLE · resolve-discharge

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

    The log
    1. #0a listener
    2. #1a doer
    3. #2listener: the charter
    4. #3doer: the author
    5. #4listener: charter seen
    6. #5listener: blueprint seen
    7. #6doer: the planner
    8. #7listener: assess · charter
    9. #8listener: assess · result
    10. #9doer: the evaluator
    11. #10the charter wanted
    12. #11the blueprint
    13. #12readiness
    14. #13readiness
    15. #14a request: a charter
    16. #15the charter proposed
    17. #16the charter defined
    18. #17readiness
    19. #18readiness
    20. #19a request: a Cell
    21. #20the seed
    22. #21the Cell is open
    23. #22inner listener
    24. #23inner doer
    25. #24the Cell's context
    26. #25return listener
    27. #26return doer
    28. #27the return address
    29. #28the person's words
    30. #29readiness
    31. #30the private result
    32. #31the result, marked
    33. #32readiness
    34. #33a request: assess
    35. #34assessment proposed
    36. #35the Cell assessed
    37. #36the decision
    38. #37the Cell sealed
    39. #38the export
    40. #39readiness
    41. #40a request: present againmembrane · passing
    42. end of the logengine
    The runtime

    No register changed its value.

    The controller returns one answer: the export's result, carried as it is into the field text of a note.given — a structure stays a structure. The discharge closes.

    Where it happens resolveDischarge()Vol. 08 §3 · Vol. 03 §3.3

    Notes that the world has answered: the hand-out is closed, and what came back is ready to enter the log.

    Specification
    Vol. 08 §3 · Vol. 03 §3.3
    Code
    resolveDischarge() in core/registers/resolve-discharge.ts, line 14: no longer waiting on the world
    Journal
    #40 · DISCHARGE.TABLE · resolve-discharge · id: 1, emissions: 1, controller: controller.represent, offset: 40 · by runtime
    Picture
    no register changed its value
    core/registers/resolve-discharge.ts · build 043cc8b
    1. // DISCHARGE.TABLE settlement (Vol. 08 §3): the earliest completed discharge
    2. // leaves the table and its answers re-enter the wave as the next run's
    3. // seeds. Earliest completion wins; consumers rely on correlation, never
    4. // adjacency (Vol. 03 §3.3).
    5. import type { RegisterFile } from "./register-file";
    6. import { recordTransition } from "./record-transition";
    7. // The resolution names the claim it answers (controller · the swept tuple)
    8. // and is journaled under THAT tuple's wave context, so the tuple's own
    9. // journal states which discharge answered it (ADR-004 d17); the answer's
    10. // emissions are then appended under the same attribution.
    11. export function resolveDischarge(file: RegisterFile, id: number, emissionCount: number, claim?: { controller: string; offset: number }): void {
    12. file.ephemeral.inFlight.delete(id);↑ no longer waiting on the world
    13. recordTransition(file, "runtime", "DISCHARGE.TABLE", "resolve-discharge", { id, emissions: emissionCount, ...(claim ?? {}) });↑ the change is written into the journal
    14. }

    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 de79653 (2026-09-11)

  2. 221A note enters the log as #41LOG · append

    a wave is settlingengine: next: #41membrane: waiting at #41

    The log
    1. #0a listener
    2. #1a doer
    3. #2listener: the charter
    4. #3doer: the author
    5. #4listener: charter seen
    6. #5listener: blueprint seen
    7. #6doer: the planner
    8. #7listener: assess · charter
    9. #8listener: assess · result
    10. #9doer: the evaluator
    11. #10the charter wanted
    12. #11the blueprint
    13. #12readiness
    14. #13readiness
    15. #14a request: a charter
    16. #15the charter proposed
    17. #16the charter defined
    18. #17readiness
    19. #18readiness
    20. #19a request: a Cell
    21. #20the seed
    22. #21the Cell is open
    23. #22inner listener
    24. #23inner doer
    25. #24the Cell's context
    26. #25return listener
    27. #26return doer
    28. #27the return address
    29. #28the person's words
    30. #29readiness
    31. #30the private result
    32. #31the result, marked
    33. #32readiness
    34. #33a request: assess
    35. #34assessment proposed
    36. #35the Cell assessed
    37. #36the decision
    38. #37the Cell sealed
    39. #38the export
    40. #39readiness
    41. #40a request: present again
    42. #41a note, from the Cellnewenginemembrane
    43. end of the log
    The log
    Whatbeforeafter
    records in the log4142
    #41—a note, from the Cell · note.given

    The answer is written as #41 — a note.given, written not by a person but by the controller, with where it came from stamped in it.

    Where it happens appendEmissions()Vol. 02 §4.1 · Vol. 03 §1

    The only function that adds records to the log. Each new record gets the next free number, at the end.

    Specification
    Vol. 02 §4.1 · Vol. 03 §1
    Code
    appendEmissions() in core/registers/append-emissions.ts, line 14: the new record gets the next free number
    Journal
    #40 · LOG · append · offset: 41, kind: domain.fact · by engine
    Picture
    records in the log: 41 → 42
    core/registers/append-emissions.ts · build 043cc8b
    1. // The one LOG writer (Vol. 02 §4.1, Vol. 03 §1): emissions become tuples by
    2. // receiving the next dense absolute offset — `base + window.length` — and
    3. // nothing else ever grows the log. Each append is journalled under the
    4. // ambient context, so a batch born of a propagated tuple carries that
    5. // tuple's offset as its cause — the cube's provenance line (ADR-002).
    6. import type { WaveEmission, WaveTuple } from "../wave/gate";
    7. import type { RegisterFile } from "./register-file";
    8. import { recordTransition } from "./record-transition";
    9. export function appendEmissions(file: RegisterFile, emissions: readonly WaveEmission[]): void {
    10. const engine = file.registers.engine;
    11. for (const emission of emissions) {
    12. const tuple: WaveTuple = { ...emission, offset: engine.base + engine.window.length };↑ the new record gets the next free number
    13. engine.window.push(tuple);↑ it is added at the end of the log
    14. recordTransition(file, "engine", "LOG", "append", {↑ the change is written into the journal
    15. offset: tuple.offset,
    16. kind: tuple.kind
    17. });
    18. }
    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 f36e70d (2026-08-18)

Choose a step in the stack — or press →.

A fact: a request to present again

What the return doer writes: present this answer again, at this address, as a fresh fact. A controller of the world carries it; nothing at root re-reads the log.

#40domain.factrepresent.requested the machine

envelope
offset40Its 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-cellThis session's lane.
payload
factTyperepresent.requestedThe type the return doer writes.
payload.data
triggeredBy×1The listener whose readiness made the doer write.
payload.data.understanding
addresscellRef · slot · as · mode · exportType · session · seat · levelWhere to present it, and as what.
exportcellRef · charterRef · assessmentOffset · reviewOffset · resultWhat to present: the export.

end · #40

In the specificationVol. 03 §1Vol. 03 §5Vol. 04 §3.1Vol. 06 §2Vol. 07 §2

Names it shares with other records

The record as the machine keeps it
{
 "offset": 40,
 "kind": "domain.fact",
 "key": "fragment-one-cell",
 "payload": {
  "factType": "represent.requested",
  "data": {
   "triggeredBy": [
    "return.cell-20.gate"
   ],
   "understanding": {
    "address": {
     "cellRef": "cell@20",
     "slot": {
      "bind": "note.echo",
      "knot": "note.gate"
     },
     "as": {
      "factType": "note.given",
      "field": "text",
      "where": []
     },
     "mode": "answer",
     "exportType": "knowledge.l1.accepted",
     "session": "fragment-one-cell",
     "seat": "l1.seeking",
     "level": "l1.seeking"
    },
    "export": {
     "cellRef": "cell@20",
     "charterRef": "charter@15",
     "assessmentOffset": 34,
     "reviewOffset": 36,
     "result": {
      "text": "A Cell is a bounded study the machine opens when a slot needs more than a fact: it has its own charter, its own knots and binds, and a result that is assessed and reviewed before anything returns."
     }
    }
   }
  }
 }
}