Wave 2 · The opening · record #24domain.factcell.context
#24 · the Cell's context
Nothing in this run hears it, so nothing changes.
Came fromthe machineThe machine wrote it while the engine took #20, after the Cell's records. step 122
when the engine took #24
129The engine takes #24ENGINE.CURSOR · propagate
a wave is settlingengine: working on #24membrane: waiting at #20
The log - #0a listener
- #1a doer
- #2listener: the charter
- #3doer: the author
- #4listener: charter seen
- #5listener: blueprint seen
- #6doer: the planner
- #7listener: assess · charter
- #8listener: assess · result
- #9doer: the evaluator
- #10the charter wanted
- #11the blueprint
- #12readiness
- #13readiness
- #14a request: a charter
- #15the charter proposed
- #16the charter defined
- #17readiness
- #18readiness
- #19a request: a Cell
- #20the seed
- #21the Cell is open
- #22inner listener
- #23inner doer
- #24the Cell's context
- end of the log
The engine What before after pointer — the next record to take #24 #25 The engine moves on to #24, the Cell's context. It is a snapshot: nothing in this run hears it, so nothing changes.
Where it happens
takeNextTuple()Vol. 02 §4.1The 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()incore/registers/take-next-tuple.ts, line 15: at the end of the log, the engine stops- Journal
- #24 ·
ENGINE.CURSOR · propagate· offset: 24 · by engine - Picture
- pointer — the next record to take: #24 → #25
core/registers/take-next-tuple.ts· build 043cc8b// ENGINE.CURSOR advance (Vol. 02 §4.1) — the machine's instruction pointer:// returns the tuple at the cursor and moves it forward exactly once, or null// at quiescence. Advancing IS the context switch: the ambient wave context// moves to the propagated tuple in the same movement, so every transition// journalled during its propagation is attributed to it — the cube's spine.// The cursor never rewinds.import type { WaveTuple } from "../wave/gate";import type { RegisterFile } from "./register-file";import { recordTransition } from "./record-transition";import { setDriver, setWaveContext } from "./set-wave-context";export function takeNextTuple(file: RegisterFile): WaveTuple | null {const engine = file.registers.engine;if (engine.cursor >= engine.base + engine.window.length) return null;↑ at the end of the log, the engine stopsconst tuple = engine.window[engine.cursor - engine.base];engine.cursor += 1;↑ the engine's pointer moves on by onesetWaveContext(file, { offset: tuple.offset, phase: "propagate" });setDriver(file, "engine");recordTransition(file, "engine", "ENGINE.CURSOR", "propagate", { offset: tuple.offset });↑ the change is written into the journalreturn tuple;}
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 #24
134The membrane passes #24MEMBRANE.CURSOR · sweep
a wave is settlingengine: at the endmembrane: passing #24
The log - #0a listener
- #1a doer
- #2listener: the charter
- #3doer: the author
- #4listener: charter seen
- #5listener: blueprint seen
- #6doer: the planner
- #7listener: assess · charter
- #8listener: assess · result
- #9doer: the evaluator
- #10the charter wanted
- #11the blueprint
- #12readiness
- #13readiness
- #14a request: a charter
- #15the charter proposed
- #16the charter defined
- #17readiness
- #18readiness
- #19a request: a Cell
- #20the seed
- #21the Cell is open
- #22inner listener
- #23inner doer
- #24the Cell's context
- end of the log
The membrane What before after pointer — the next record to pass #24 #25 #24 asks nothing of the world. Both pointers reach the end of the log.
Where it happens
sweepNextTuple()Vol. 02 §4.6 · Vol. 07 §3The 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()incore/registers/sweep-next-tuple.ts, line 16: the membrane's pointer moves on by one- Journal
- #24 ·
MEMBRANE.CURSOR · sweep· offset: 24 · by membrane - Picture
- pointer — the next record to pass: #24 → #25
core/registers/sweep-next-tuple.ts· build 043cc8b// MEMBRANE.CURSOR advance (Vol. 02 §4.6, Vol. 07 §3): the membrane's own// reading of the one log — the second reception of one publication, never a// second truth. The cursor advances exactly once per offset per machine:// the exactly-once discharge guarantee lives in this movement.import type { WaveTuple } from "../wave/gate";import type { RegisterFile } from "./register-file";import { recordTransition } from "./record-transition";import { setDriver, setWaveContext } from "./set-wave-context";export function sweepNextTuple(file: RegisterFile): WaveTuple | null {const engine = file.registers.engine;const membrane = file.registers.membrane;if (membrane.cursor >= engine.base + engine.window.length) return null;const tuple = engine.window[membrane.cursor - engine.base];membrane.cursor += 1;↑ the membrane's pointer moves on by onesetWaveContext(file, { offset: tuple.offset, phase: "sweep" });setDriver(file, "membrane");recordTransition(file, "membrane", "MEMBRANE.CURSOR", "sweep", { offset: tuple.offset });↑ the change is written into the journalreturn tuple;}
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 Cell's context
What a Cell is given at birth, once: a snapshot it can never reach behind. Anything it needs later must be presented to it as a new fact.
#24domain.factcell.context the machine
| envelope | |
|---|---|
offset | 24Its 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. |
kind | domain.factWhich of the four kinds of record the machine knows. The kind decides what the payload holds. |
key | fragment-one-cellThis session's lane. |
| payload | |
factType | cell.contextThe fact type — cell.context. |
| payload.data | |
cellRef | cell@20The Cell it is given to. |
| payload.data.context | |
charter | ref · digest · valueIts charter. |
blueprint | version · topology · result · schemasIts blueprint. |
end · #24
In the specificationVol. 03 §1Vol. 03 §5Vol. 12 §5.2
Names it shares with other records
The record as the machine keeps it
{
"offset": 24,
"kind": "domain.fact",
"key": "fragment-one-cell",
"payload": {
"factType": "cell.context",
"data": {
"cellRef": "cell@20",
"context": {
"charter": {
"ref": "charter@15",
"digest": "sha256:d697d7f3224e3a44a0888949eb98ee5ecf54aa09b2fc4aba2addca763458ec1b",
"value": {
"title": "Seeking",
"purpose": "What are we seeking to understand, and for whom does it matter?",
"question": "What is a Cell, and why does the machine open one instead of answering in place?",
"criteria": [
{
"id": "q1",
"question": "What is this material about, and what exactly are we seeking to understand in it?",
"weight": 1,
"minimum": 0.6
},
{
"id": "q2",
"question": "Whose problem does it address, and why does it exist?",
"weight": 1,
"minimum": 0.6
}
]
}
},
"blueprint": {
"version": 1,
"topology": {
"knots": [
{
"id": "l1.seeking.gate",
"strategy": "deterministic",
"config": {
"meta": {
"title": "Seeking",
"gloss": "What are we seeking to understand, and for whom does it matter?",
"fields": [
{
"name": "text",
"label": "What is this material about, and what exactly are we seeking to understand in it?",
"kind": "text"
}
]
},
"wind": {
"collect": [
{
"as": "text",
"match_type": "context.given",
"reduce": "latest",
"field": "text",
"where": [
{
"field": "level",
"equals": "l1.seeking"
}
]
}
]
},
"condition": "text != null"
}
}
],
"descriptors": [
{
"id": "l1.seeking.release",
"operator": {
"on": "l1.seeking.gate",
"demands": [],
"service": {
"instruction": "Release the seat's answer as knowledge.l1.",
"schema": {
"type": "object"
},
"emit": {
"writes": "knowledge.l1"
},
"action": "release@1"
}
}
}
]
},
"result": {
"local_fact_type": "knowledge.l1",
"producer_bind": "l1.seeking.release",
"data_field": "result"
},
"schemas": {}
}
}
}
}
}