STREAM’s derivation vs its operation — a table-led answer to one question: for each piece of math in the Genesis / kernel story, does it run in the kernel, or does it justify the design?
The question. The kernel is a small machine: it reads a log, checks each entry, and folds it into state. Genesis is a thirteen-step derivation that says why the kernel’s vocabulary — four relations, 128 positions, seven bits — is the right one. This page separates the two. Five pieces run. Five justify. One is not built yet. One is supplied from outside.
Twelve pieces: 5 run, 5 are design time, 1 is not yet built, 1 is supplied.
The brief described the v1 type byte’s 6 bits as “R 2 + D 1 + M 1 + 2 more”. That layout is not in the sources. The v1 type byte is phase << 6 | code, where code is 6 bits holding a verb index (0–63) in ZAKO’s 64-verb codebook — it carries no relation / direction / modality decomposition at all. The six bits R 2 | D 1 | M 1 | phase 2 belong to a different, proposed encoding (E3, the unfolding model’s stored fact type) — see row 8. Row 2 below gives the verified v1 byte; row 8 gives the proposed E3 form. They are not the same thing, and no migration between them is approved.
| Piece of math | What it is | Where it lives | What breaks if it turns out wrong |
|---|---|---|---|
| 1. The fold In plain words: read the log one entry at a time, update the state, repeat. That loop is the whole operation. |
S = fold(step, S₀, L) The kernel’s core loop. The sources state it two ways: the unfolding kernel as |
Runs | If the step function is wrong, every state after the first bad entry is wrong — but the fold itself is not a claim that can be “wrong” in the way a derivation can. It is the machine. A wrong fold definition means the kernel computes a different machine, not that a justification fails. |
| 2. The type byte (v1) In plain words: one byte per entry; the top two bits say which phase, the low six say which verb. |
type = phase << 6 | code The verb’s stored identity in the v1 kernel: 2 bits of phase (instant / begin / end / sample) and a 6-bit verb code, 0–63, over ZAKO’s 64-verb codebook. Implemented in the Rust kernel ( Checked, with a wrinkle: the sources record a divergence — the architecture document says the task code is 6 bits; the C headers say a 4-bit category. The byte layout above is the architecture-document / Rust side. |
Runs | If the codebook mapping is wrong, verbs decode to the wrong act. But the byte itself is a spelling, not a theorem: re-mapping the codebook changes labels, not the fold. Nothing in the derivation depends on this byte, and nothing in this byte depends on the derivation. |
| 3. Admission In plain words: before an entry counts, three checks — is the verb real, is the actor allowed, is the seal intact? |
Entry checks at read / apply time, against the verb table and the Register — not against the derivation. The verb must exist as a position (Stage C: verb names recovered without labels, 75/75); permission ( Honest caveat: admission runs, but its genesis half is currently holey in the v1 Rust kernel — a log whose first entry isn’t genesis opens with no complaint, and a second genesis later in a file silently replaces the root while verify doesn’t notice. |
Runs | A bad admission check lets an unauthorised act, a non-existent verb, or a forged segment into state — and from there into every fold that follows. The failure mode is silent acceptance, which is why the two known genesis holes matter more than any derivation gap. |
| 4. Books conservation In plain words: every quantity that leaves one place must arrive somewhere else. The books must sum to zero. |
Tested: Stage C rebuilt the Books from flow facts alone and got a result identical to today’s rules — the strongest result in the audit. But it covers only the 13 positions exercised in the corpus, and |
Runs | If a |
| 5. The seal chain / hash linkage In plain words: each sealed segment is chained to the last by a hash, so tampering after the seal can be detected. |
Seals and a hash chain close segments; the seal check is one of the items the seed itself holds. Segment 0 is closed by a seal whose hash is its identity. SHA-256 is a chosen constant of the system, stipulated, not derived. |
Runs | A broken link means tampering after the seal is undetectable — “append-only” becomes an assertion instead of something checkable. Note the limit: the chain checks integrity, not genesis uniqueness — it does not catch the second-genesis hole in row 3. |
| 6. The 128 derivation (steps 1–9) In plain words: the argument that the table of positions is complete — no missing slots, no extra ones. |
|{c}| = 2⁴ × 4 × 2 = 128 Four binary context axes (modality, frame, sign, self/other) × 4 relations × 2 directions. Graded by the sources themselves: steps 1–5 and 10 forced; steps 6–8 strong; step 9 (self/other, via |
Design time | If step 9 falls, the count is 64, not 128: the self/other axis goes, and the 64 positions that carried O = 1 lose their addresses. But the kernel keeps running on the same verb table — what changes is the claim of completeness, not the operation. Phase (step 10) would still multiply whatever positions remain by 4, giving 512 fact-forms from 128, or 256 from 64. |
| 7. The coordinate In plain words: every position has a number, and the number is the address — so you can filter by arithmetic instead of reading the payload. |
c = 64F + 32S + 16M + 8O + 2R + D F frame/world, S sign/substance, M fact/possible, O self/other, R relation (in 0, is 1, may 2, to 3), D into/out of. A lens is masking, not a search: all Limit, stated in the sources: “A unique address does not give a unique meaning. Meaning additionally needs typed operands, active definitions, a frame and evidence.” |
Design time | If the bit assignment is wrong, lenses select the wrong facts — a board, a balance or a timeline built on the coordinate would be silently mis-filtered. But the stored facts themselves are unchanged: the coordinate is a map, not the territory, and a corrected map re-reads the same log correctly. |
| 8. The 6-bit stored form (E3) In plain words: store six bits and work out the other three at read time — a bet that the context is recoverable from the kind, the roles, and the log frame. |
stored: R 2 | D 1 | M 1 | phase 2 derived: F, S, O The unfolding model’s proposed spelling: six stored bits, with frame, sign and self/other derived by a total, deterministic |
Design time | If the F/S/O derivation never works, the stored form changes — keep the full 7-bit coordinate plus phase (E2) and give up the compactness claim — but the semantics survive via the verb table. Nothing in the log’s meaning depends on the 6-bit claim; only the wire form does. Note 12’s own rule: until proven, retain the full context in the reference AST and do not freeze the 6-bit wire form. |
| 9. The step-4 naming (in / is / may / to) In plain words: the count of four cells is forced; which cell gets which name is a choice. |
Step 4 combines direction × assertion: 2 × 2 = 4 is forced, but that the four cells are in/is/may/to is interpretive — a naming choice attached by a table. A second candidate 2×2 (thing/change × membership/evaluation) yields the same four relations. Steps 5–9 do not revisit the naming; they vary it, 32 ways. |
Design time | A wrong pairing propagates into all 128 positions, because the 128 are the step-4 grid varied 32 ways — every position’s name would be wrong. But the count survives any renaming, and the naming map is a separate label pack, so it can be corrected without changing the kernel’s fingerprint. The numbers do not determine the meanings. |
| 10. The 11→12 gap (roles from crossing) In plain words: the derivation says crossings give you roles, but never shows how. The link is asserted, not derived. |
Step 11 crosses each context line and lists five crossing kinds (sensing, actuating, realising, anticipating, recording) — a list, not a derivation: four axes give eight directed crossings, not five. Step 12 is the same combine as step 4, applied inside a fact, giving four roles (subject, object, kind, measure) — the naming stipulated, as at step 4. Nothing in 11 yields four roles; nothing in 12 needs 11. What closing it would require (the four conditions): every crossing decomposes into exactly (who, what, what-kind, how-much); the same four roles hold for all five crossing kinds; kind and measure are always separable; and the decomposition coincides with the combine. The sources already report three cases where the four-role shape strains: |
Design time | If it never closes, roles stay a second combine, not a consequence of crossing. The derivation keeps a presentation-order illusion — two adjacent steps that look connected but are not — and the four-role fact shape stands as a design choice, not a derived necessity. The kernel is unaffected: it reads roles from the fact shape as given, and never asks where the shape came from. |
| 11. The seed text and the seed-and-activation dialogue In plain words: the short text the kernel is supposed to unfold itself from. Designed on paper, not yet written or run. |
Does not exist yet. What the sources specify: the seed holds the primitives as operations, the meaning of each type bit, the fact shape and what each role holds, the four step rules, a small evaluator, the seal check, and one plain-text spelling — no verb names, field names, units or rules. Recommended form: a short text plus test vectors, both hashed. The Lab’s open question is whether a small fixed reader can learn its vocabulary from the record at all. Not to be confused with the inherited v1 kernel descriptor (68 lines, named by SHA-256) — that exists, but it is the old kernel, not the unfolding seed. |
Not yet built | Nothing runs on it yet, so nothing breaks — but every claim about the kernel unfolding itself from the seed is currently a design statement, not a demonstrated run. If the seed text, once written, cannot in fact teach a fixed reader its vocabulary, the unfolding story fails at its first step and the kernel stays a hand-built reader with a Genesis preface. |
| 12. Authority (MAY, delegation, roots) In plain words: who is allowed to do what is handed to the kernel from outside. The kernel enforces it; it does not derive it. |
“Not established; trust is supplied.” Root trust is a declared convention at the seed boundary, not a theorem of the distinction algebra. The kernel enforces recorded permissions — |
Supplied | If the supplied root is wrong or compromised, every permission decision downstream is wrong, and no derivation can detect it — the failure is invisible from inside the system. The defence is outside the math: independent implementations, and people agreeing (as a log’s authority ends in its root). The v1 second-genesis hole (row 3) is this risk in miniature: a replaced root, unnoticed. |
The operation leans on three things, and none of them is the derivation. It leans on the verbs and their stored bit identities — relation, direction, modality, phase, carried in the type byte (v1) or the proposed six stored bits (E3). It leans on the fold, which turns those bits, entry by entry, into structure, Register, authority and Books. And it leans on admission, conservation and the seal chain, which keep bad entries out, keep quantities honest, and keep tampering detectable.
The Genesis math is doing justificatory work around those three things. It tells you why relation, direction, modality and phase are the right bits — because they are the axes the derivation produces, graded step by step, forced where forced, interpretive where interpretive. It tells you what the missing three bits (frame, sign, self/other) would mean if the 6-bit derivation ever worked. And it tells you what the table’s completeness amounts to — 128 positions, no more, no fewer, if step 9 holds.
If the derivation turned out wrong in its details, the kernel would keep running on the same verb table and the same fold. A wrong step-4 pairing would rename positions, not stop the machine. A fallen step 9 would halve the claimed count, not the log. A failed 6-bit derivation would change the wire form, not the semantics. What would change is the address system — the coordinate, the lenses, the 6-bit claim, and the story about completeness. The operation would survive; the map would need redrawing.
The gold is the address system, and the address system depends on Genesis, not the operation.