STREAM v0.1b specification (coding baseline)
Version: 0.1b, working draft, 2026-12-01 · Status: the baseline for the first v0.1b build of the kernel and a reference reader. Not frozen.
Home: this page is written for the Spec tab of the Stream section of the website and the v0.1b entry in the design register. It is drafted in lab 2026-11-30-v0-1b-direction-claude and moves to docs/ and the site once the owner affirms it. Later updates to the Design page and the Handbook are taken from it.
When the build disagrees with this page, the disagreement is settled in writing here first.
Normative sources, in order of precedence:
- this page;
kernel-descriptor-v0.1b.txt(the kernel text whose hash is the kernel's identity);build-specs.md(#12–17: roles, names, quantities, refusal codes, evidence contracts, policy pack);master-design-note.md§1–§12, §3.4–§3.7, §15 (decisions), §18 (kernel minimalism);vectors/core-v0.1b.jsonl(24 conformance vectors).
Informative: system-overview.md, design-rationale.md, mathematics.md, glyph-primitives.md, glyph-sets.md, technical-work-plan.md.
The words must, must not and may are used in their usual specification sense.
1. Scope
v0.1b defines: the log file, the header, the line body, names and quantities, the kernel's checks and effects, GENESIS and setup policies, refusals, and a trace. It does not define: views and glyphs (readers' view packs), words for positions (label packs), signatures (reserved, §4.9), the seed language (later), or conversion of v1 logs (later; v1 logs stay under v1).
2. The log file
- UTF-8, no byte-order mark, lines ended by LF. A line must be at most 65,536 bytes.
- Two kinds of line:
- framing lines start with
STREAM/1and are not entries (§2.1); - entry lines are
<header> <body>(§3, §4). - Line 1 is the preamble. The first entry line is GENESIS.
2.1 Framing lines
| Line | Form | Meaning |
|---|---|---|
| preamble | STREAM/1 kernel=sha256:<64 hex> |
names the kernel; must be line 1 |
| segment open | STREAM/1 segment prev=<64 hex> |
opens a segment, citing the previous chain value |
| seal | STREAM/1 seal hash=<64 hex> chain=<64 hex> |
closes a segment |
| time anchor | STREAM/1 time t=<integer seconds since 1970-01-01T00:00Z> |
absolute time; the next entry's delta counts from it |
| bind | STREAM/1 bind pack=sha256:<64 hex> rec=<name> |
adopts a pack; rec must be a root or hold the action bind over the log |
| refusal | STREAM/1 refused pos=<n> digest=<64 hex> code=<n> |
journals a refused entry (sticky; a retry with the same digest gets the same receipt) |
Framing lines are covered by seals like any other bytes. Hex is lowercase.
2.2 Seals and chain (unchanged from v1)
hash = SHA-256 of every byte of the segment before the seal line (preamble included, for the first segment). chain = SHA-256(hex(previous chain) ‖ hex(hash)), with the first previous chain = 64 zeros.
2.3 Positions and digests
- An entry's position counts entry lines from 1 (GENESIS = 1). Refused entries take a position (their refusal line records it).
- An entry's digest = SHA-256 of its line bytes without the LF.
2.4 Batches
Consecutive entries with the same batch field (§4) form a batch. A batch commits only if every entry is accepted; otherwise every entry in it is refused, with the first failing entry's code. Each entry in a batch is typed against the state before the batch.
3. The header
3.1 Fields (28 bits, in this order, most significant bit first)
| # | Field | Bits |
|---|---|---|
| 1 | change | 1 |
| 2 | c (the position) | 7 |
| 3 | extended-follows | 1 |
| 4 | phase as (opens, closes) | 2 |
| 5 | role presence: subject, object, kind, measure | 4 |
| 6 | estimate | 1 |
| 7 | time delta | 12 + 2 = 14 |
(That is bytes 1 and 2 of design note §1.3.1, followed by the 14-bit delta.)
- Phase bits are (opens, closes): sample = 00, begin = 10, end = 01, instant = 11. Decided (§10, item 1): the v0.1b header is a new layout with new vectors, so writing the bits directly costs nothing that the earlier "lookup table for now" decision was avoiding.
- Delta is in the GENESIS
time-unit. A gap that doesn't fit must be preceded by a time-anchor line (§2.1), else refusal 302.
3.2 Text form T1 (stored)
- The 28 bits are followed by 2 check bits: bit A = XOR of the 14 even-numbered bits, bit B = XOR of the 14 odd-numbered bits (bits numbered 0–27 from the most significant).
- The 30 bits are cut into five 6-bit groups, most significant first, and each group is written as one symbol of the v0.1 alphabet, in this order:
A–Z a–z 0–9 - _(index 0 =A, 63 =_). - Extended header: when extended-follows = 1, five more symbols follow, carrying the v0.1 extended fields: absence code per role (4 × 3 bits), object/kind index (12 bits), check (6 bits, XOR fold over the whole header, as in v0.1 §5).
- An entry line is the 5 (or 10) symbols, one space, then the body.
3.3 Stored and derived bits
The header stores all seven bits of c. The reader must derive F, S and O (§5.2) and must refuse a line whose stored bits differ (500).
4. The body
Canonical JSON, v1 rules: keys in byte order, no duplicate keys, no whitespace, integers only (no floats), quantities as decimal strings.
4.1 Fields
| Key | Type | Meaning |
|---|---|---|
rec |
name | who wrote the line; required |
for |
name | the actor, when different from rec |
s o k m |
see §4.2 | the four slots; present exactly when the header's role-presence bit is 1 |
src |
name | source of a reported line (F = 1) |
cites |
integer | a continuation link: the cited entry's position |
ev |
object | evidence links: {"records":[41]}; values are lists of positions, sorted |
valid |
object | {"from":t,"until":t} in seconds since 1970 (either may be absent) |
uses |
integer | use count of a permission |
adjust |
boolean | on a records link: the amount differs from the observation |
reason |
string | for an undo, an adjustment, or closing a pending item |
outcome |
string | on an end: completed or failed |
model horizon |
string | on an anticipates link |
batch |
string | batch id (§2.4) |
retire |
integer | closes the pending or in-progress item at that position (void, timeout, decline, withdraw), with reason; the entry is otherwise the same position as the item it closes |
genesis |
object | only in GENESIS (§6) |
sig |
— | reserved for signatures; must not appear in v0.1b |
Unknown keys are refused (101).
4.2 The slots, per relation
| R | s subject |
o object |
k kind |
m measure |
|---|---|---|---|---|
| in | member (name) | boundary (name) | member's kind (name) | location (name) |
| is | bearer (name) | property (name) | value's kind (name) | value: string, integer, or decimal string |
| may | holder (name) | object or scope (name) | action: list of positions (integers) or action words (record, bind), sorted |
limit: decimal string in the object's unit, if any |
| to | from book (name) |
to book (name) |
unit (name, written bare) | quantity (decimal string) |
4.3 Example
<5 symbols> {"k":"EUR","m":"120.00","o":"book:acme","rec":"actor:owner","s":"book:ops"}
5. Kernel
5.1 Names and quantities
As build-specs.md §2–§3: [kind:]local; NFC; exact, case-sensitive comparison; bare names take the role default; units are names of kind unit; outside:<unit> books belong to the roots. Quantities are positive decimal strings; a unit's scale widens to the finest amount seen, up to 18 places; arithmetic in at least 128-bit integers.
5.2 Derivation
actor = for, else rec
affected = s
F = [src present]
S = [class(kind(s)) = resource]
O = [owner(s) ≠ actor]
Owners and classes are read from the state before the entry, plus the entry's own births.
5.3 Births
A name not yet known is born by the entry: owner = actor (a principal owns itself; outside: books belong to the roots); kind = the named kind, else the role default; a kind's class is fixed at birth (pack, else resource if first placed with a location or first moved, else record). Seed kinds: principal, boundary, kind, pack, book, thing, unit (records); item (resource). Births are discarded if the entry is refused. Strict-mode policies refuse births (401).
5.4 Operations and laws
| R | Operation | Law |
|---|---|---|
| in | enclose | containment is transitive and irreflexive; a resource is in one place |
| is | call | the same value twice changes nothing; one value per property |
| may | self-apply | authority is the least fixed point of the grant rules; every chain ends at a root; a grant never exceeds its granter |
| to | cross | legs sum to zero per unit; a reverse posts the exact inverse |
The reader must check the move laws (μ, ν, σ on all 128 positions) and these four laws on a sample state at start-up.
5.5 Links
- Continuation (
cites): the cited entry is live and not already undone or settled, andc ⊕ c_citedhas no bits outside {1, 8, 16}, with bit 16 set only from pending to committed (600–602). Anendcites an in-progressbeginwith the same c (603). - Evidence (
ev): each kind's contract (build-specs.md§5; 610, 611). - Retire (
retire): closes a pending or in-progress item without effect.
5.6 Guards, in order
workbook validity (700) · source (701) · resource one place (702) · no negative balance except issuer and outside books (703) · relation precondition (704) · authority path (705) · write right to the log (709) · record grant for for (706) · attenuation (707) · step limit (708) · policy (800).
5.7 Effects
| Phase | in | is | may | to |
|---|---|---|---|---|
| instant, end | open or close membership | set or withdraw (⊥ after withdraw) | open or close a grant | post both legs, or the inverse |
| begin | open an in-progress item | same | same | same |
| sample | add a reading | add a reading | add a reading | add a reading |
| pending (M = 1) | open a pending item | same | same | reserve on the from book |
Reported entries (F = 1) write the observed state; enacted entries write the authoritative state. Guards read the authoritative state.
5.8 Pipeline
bytes (1xx) → chain (2xx) → header (3xx) → names and births (4xx) → derive (5xx) → links (6xx) → guards (7xx) → effect → commit, or a refusal line. Submission and replay (open) run the same pipeline.
6. GENESIS and setup
- GENESIS is the first entry line: c = 0, phase instant, role-presence bits 0000. Its body is
{"genesis":{"clock":…,"log":…,"policy":"sha256:<hex>","roots":[…],"seed":"sha256:<K>","time-unit":…,"tz":…},"rec":<a root>}. Its effect: the log boundary is born, owned by the roots, and the roots enter it with every permission on it. - Accepted only as the first entry (210, 211);
rootsmust not be empty (212);seedmust equal K; the policy pack named by hash must state every policy (213). - The kernel has no default policy values. A reader supplies a starter profile (
build-specs.md§6) and writes it as the policy pack.
7. Refusal codes
build-specs.md §4, with these additions in v0.1b: 709 (no right to write to the log).
8. Trace
Every step emits an event {"ev": name, "pos": n, …data}. Baseline vocabulary (to be finished with the first build):
| Stage | Events |
|---|---|
| start-up | descriptor.load, descriptor.hash, tables.build, laws.moves.check, laws.ops.check, state.init, preamble.check |
| per entry | bytes.check, chain.check, header.decode, name.resolve, name.birth, derive, link.continuation, link.evidence, guard (with its code), effect, commit, refuse |
| framing | segment.open, seal, time.anchor, bind |
A paced runner advances one event at a time. Pacing must not change any result.
9. Conformance
A v0.1b reader must pass every vector in vectors/core-v0.1b.jsonl. Expected T1 encodings and state hashes are added once the reference reader produces them, and then checked by every later implementation.
10. Choices made on this page
These were not settled in earlier rounds. This page proposed them so the first build could start, and the owner accepted all ten on 2026-12-01. Each can still change before the freeze.
| # | Choice | Section |
|---|---|---|
| 1 | Phase written as (opens, closes) bits in the v0.1b header | §3.1 |
| 2 | T1 check bits: two parities, even and odd bit positions | §3.2 |
| 3 | Kernel bookkeeping as framing lines (STREAM/1 …): segment open, seal, time anchor, bind, refusal |
§2.1 |
| 4 | Refused entries take a position; their refusal line records it | §2.3 |
| 5 | Batches marked by a shared batch field; all or nothing |
§2.4 |
| 6 | Closing a pending or in-progress item by a retire field on an entry of the same position |
§4.1 |
| 7 | Unknown body keys refused; sig reserved |
§4.1 |
| 8 | Value types for is (string, integer, decimal string) and the form of may's action list |
§4.2 |
| 9 | GENESIS as an entry with c = 0 and no role bits | §6 |
| 10 | Maximum line length 65,536 bytes | §2 |
STREAM v0.1b direction: master design note
Lab: 2026-11-30-v0-1b-direction-claude · Started: 2026-11-30 · Iteration: 10 (see §17 for how iterations are recorded)
Status: Working draft. Nothing here is decided. Every item is a proposal for the owner, unless it says Decided with a date.
Builds on: the unfolding-replies lab, Stage C, derive_context v2, the direction-bit and Option 9 reports, the Reader A/B reports, and the verb-table work of 2026-11-29.
This note collects the new direction and the elements of a v0.1b kernel in one place. It will be revised in place; the changelog at the end records each iteration.
0. Summary
- Each of the seven position bits gets one meaning, the same for every relation.
- F, S and O are derivable from the entry and the reader's state by functions the kernel defines. By default they are also stored: the header carries the full 7-bit position, and the reader checks stored = derived. Header-only filtering on every bit keeps working (§1.2).
- Direction (D) means establish vs undo. The way something moves lives in the
from/toroles, so the header keeps a 1-bit direction field. - Positions are linked by three bit operations (undo, view from the other side, settle), which form an 8-element monoid. Citations between entries are checked with one or two bit operations.
- Anything an entry names is born at its first mention, owned by the acting principal. Strict modes turn this off.
- Kinds are classified by how they are used (a trait bitset), not by a list declared up front. Packs may declare; the plainest entry still works.
- One entry per transfer. The Books post both legs; holds use reserved balances; reversal is an undo.
- A log needs exactly two lines to start: preamble and GENESIS. Everything else depends on the use and is set by setup policies.
- The four relations are established as four operations, each with a law that can be tested (enclose, call, cross, and self-application of the log's distinctions). Behaviour follows from the laws instead of being written out per relation (§3.4).
- Phase is two bits, (opens, closes), separate from c. D closes a relation's standing; phase brackets the act; M marks uncommitted; the absence code marks a missing piece (§3.6).
- Two kinds of link between lines. A continuation link continues the same act (undo, the other side's record, settle) and obeys the 8-element monoid. An evidence link says a new act is based on an earlier one (recorded from, forecast from, outcome of) and has its own contract per kind (§3.7).
1. The position and its bits
c = 64F + 32S + 16M + 8O + 2R + D 0 ≤ c ≤ 127 phase: 2 bits, outside c
| Bit | 0 | 1 | Question it answers | Stored or derived |
|---|---|---|---|---|
| F | frame | world | Does the entry enact the act, or report something seen outside? | derivable: has a source role? Stored and checked by default. |
| S | sign | substance | Is the affected thing a record (many places; an issuer may exist) or a resource (one place at a time; never issued)? | derivable: the kind's class (§7.3). Stored and checked by default. |
| M | fact | possible | Committed, or pending until a later fact cites it? | stored |
| O | self | other | Is the affected party someone other than the principal acted for? | derivable: owner lookup. Stored and checked by default. |
| R | in · is · may · to | membership · standing of a property · permission interval · quantity flow | stored (2 bits) | |
| D | into | out of | Establish, or undo an earlier entry (cited)? | stored |
1.1 The header's type bits: v0.1 against v0.1b
The v0.1 short header (docs/compact-header/bitpack-header-draft-v0.1.md §4) spends 11 bits on type: Position 7, Phase 2, Modality 1, Direction 1. If Position is the coordinate c, then Modality and Direction repeat bits M and D that are already inside it.
| Option | Type bits | Bits freed from the 30-bit short header |
|---|---|---|
| v0.1 as written | 7 + 2 + 1 + 1 = 11 | — |
| v0.1b, 7 bits checked | c (7) + phase (2) = 9 | 2 |
| v0.1b, 6 bits | R (2) + D (1) + M (1) + phase (2) = 6 | 5 |
Freed bits could widen the 12-bit time delta, which is where the open overflow question (X06, freeze gate G5) comes from: +2 bits gives 0–16,383 units, +5 bits gives 0–131,071. The extended header's 12-bit object/kind index is already the back-reference idea of §10 point 3.
1.2 Filtering cost: why the default stores all seven bits
Iteration 3. If F, S and O were only computed (the 6-bit option), every filter on them would need the reader's state:
| Where filtering happens | 6 bits, computed | 7 bits, stored and checked |
|---|---|---|
| Header-only scan of a raw log (the v0.1 draft's main reason for the header: "skip the payload unread") | F, S, O cannot be filtered; R, D, M, phase can | every bit can, one AND per line |
| A running reader with indexes | same cost: c computed once at append, kept in a sidecar index | same cost |
| Tools, shards or archives with no Register snapshot | must rebuild state first | filter directly |
| Writing a line | derive F, S, O (lookups already done) | derive F, S, O, then compare with the stored bits |
Proposed default: wire.type = 7 bits checked. The header carries c; the writer's reader derives F, S, O and refuses any line whose stored bits disagree. This changes the claim from "three bits are not stored" to "three bits can't lie". It still frees 2 bits from the v0.1 short header, because v0.1 stores M and D twice. The 6-bit form stays available as a compact profile for constrained links, where every reader keeps state.
Stored O is relative to whoever wrote the line, which is what notifications and the counterparty rule (§3.2) need.
1.3 The type in one byte
Iteration 4. v1's type is one byte (phase << 6 | code). The 128 positions were designed so that a position is one 7-bit ASCII code. Position plus phase is 9 bits, so they can't share one byte. The options:
| Option | The byte holds | Phase | F, S, O | Header-only filtering |
|---|---|---|---|---|
| A | c (7 bits) + 1 spare bit: a position is one ASCII code | its own 2-bit field, as in the v0.1 header | stored in c, checked | every bit |
| B | S M O R R D + phase (2) = 8 bits | in the byte | S, O stored and checked; F read from the source role (no state needed, but not header-only) |
every bit except F |
| C | R R D M + phase (2) + 2 spare | in the byte | all derived (needs state) | not on F, S, O |
Proposed: A. The type is c, which is one byte and one ASCII character; phase is a separate aspect field, as the v0.1 header already lays it out. The 9-bit (c, phase) value exists only as a query key in indexes and filters. It is never stored as one field. B is the fallback if phase must live inside the type byte. If source became one of the header's role-presence slots, B would also keep header-only filtering on F. Owner decision (§15 Q11).
1.3.1 Option A in full: two bytes, "what" and "shape"
Iteration 5. The v0.1 short header, without its duplicated Modality and Direction, fits two bytes exactly, plus the time delta:
byte 1 [ change | F S M O R R D ] what changes: the position c
byte 2 [ ext | opens closes | r0 r1 r2 r3 | estimate ] how the record is shaped
time 12-bit delta (or 14, using the 2 bits saved)
| Field | Bits | From v0.1 |
|---|---|---|
| change (high bit, byte 1) | 1 | Change |
| c | 7 | Position (Modality and Direction were duplicates of bits inside it) |
| extended-follows (high bit, byte 2) | 1 | Extended-follows |
| phase (opens, closes) | 2 | Phase |
| role presence | 4 | Role presence |
| estimate | 1 | Estimate |
| time delta | 12 | Time delta |
| total | 28 | v0.1: 30 |
- No new fields. Every v0.1 short-header field is kept; two duplicated bits are removed; the rest is byte-aligned.
- Two ways of reading the log. Byte 1 gives the relation views (transfers, permissions, undos, pending). Byte 2 gives the lifecycle and completeness views (open acts, records with missing roles, estimates, readings). One mask per byte, or both together.
- Compared with v1 (one byte: phase 2 + verb code 6, 64 verbs, meaning in a verb table): one more bit for the type and phase together buys 128 positions whose bits carry meaning.
- Printability is open (§15 Q12). A 7-bit value can be a control character (0–31). As binary that is fine; as text it needs either the reconciled control-character definitions or a printable mapping such as the v0.1 64-symbol alphabet.
1.4 Text form of the header: options
Iteration 7. Open (§15 Q12). Logs are text lines, so the 28 header bits need a printable spelling. Only one spelling can be canonical, because the seal hashes bytes; the others are views that decode to the same bits.
| Option | Spelling of the 28 bits | Length | Resilience | Best for |
|---|---|---|---|---|
| T1 v0.1 alphabet | 64 symbols, 6 bits each | 5 characters (2 spare bits) | the seal covers it; the spare bits could carry a 2-bit check | the canonical on-disk form: compact, already specified, vectors exist |
| T2 Crockford base-32 | 32 symbols, no I, L, O or U; case-insensitive | 6 characters (2 spare) plus an optional check character (mod 37) | built for people copying by hand: no look-alike characters, case doesn't matter, the check catches a wrong or swapped character | copying, reading aloud, support tickets |
| T3 hex pairs | 16·4A·0FA0 |
10 characters | survives any text channel; easy to inspect | debugging, conformance output |
| T4 spelled out | to D0 M1 O0 · begin · s,o,k,m · est · Δ4000 |
variable | readable without tools; parses back exactly | terminals and teaching |
Proposed: T1 canonical on disk; T2, T3 and T4 as reader-side views that any reader can produce and parse. The 2 spare bits in T1 become a header check (as the extended header already has), so a damaged header is caught before the seal is checked.
1.5 Time delta
Iteration 7. Decided (owner). The 2 bits saved go to the delta: 14 bits, 0–16,383 units.
- The unit is fixed in GENESIS (for example 1 s, 100 ms or 1 min); at 1 s, 14 bits cover about 4.5 hours.
- Overflow is refused. When the gap since the last line is too long, the writer first inserts a time anchor (a line carrying an absolute time), then continues. This answers X06 (freeze gate G5).
- Alternatives considered: a variable-length delta using the extended-follows bit (unbounded but irregular), or a larger unit (coarser). Both remain possible later through the unit policy.
Affected party, per relation: in → the member; is → the bearer of the property; may → the holder of the permission; to → the source book (from).
Actor: actor(e) = the for principal if present, otherwise the recorder. O compares against the actor. The recorder separately needs a record grant from for whenever rec ≠ for.
2. Derivation of F, S and O
F(e) = [ source ∈ roles(e) ] reads: the entry body only
S(e) = [ class(kind(affected(e))) = resource ] reads: the kind's birth record
O(e) = [ owner(affected(e)) ≠ actor(e) ] reads: the object's owner at this position
c(e) = 64F + 32S + 16M + 8O + 2R + D
- Every lookup reads the state before the entry, plus this entry's own births (§6).
- With the default wire (7 bits checked, §1.2), the reader compares stored and computed bits and refuses on a mismatch. With the 6-bit profile, the computed bits are used directly.
2.1 Resolving names
An entry names things in its roles: from: book:ops, member: invoice:2041, unit: EUR. Resolving a name means finding the reader's record for that thing as of this position: whether it exists, who owns it, its kind and class, whether it is live, its balance. The reader hashes the canonical name and looks it up in the symbol table (§10).
It must happen for every name, because nothing else in the pipeline can run without it:
- O needs the owner; S needs the class.
- Guards need current state: membership, balance, live grants, open pending items.
- Effects must update the right record.
- A lookup that finds nothing is how the reader knows the thing is being born (§6).
v1 already resolves names this way, for declarations in force and for rec/for authority. v0.1b adds no new lookups; it reuses them.
2.2 What a single line tells you
- With the default wire: the whole position, from the header. Checking that S and O are right needs the state as it stands at that position; reading them doesn't.
- With the 6-bit profile: R, D, M and phase from the header; F from the body; S and O need the state. v1 already needs that state to know what most verbs do.
3. Laws
3.1 Bit laws (arithmetic on c)
mirror μ(c) = c ⊕ 1 undo ↔ establish
view ν(c) = c ⊕ 8 the same act, recorded by the other side
settle σ(c) = c ∧ ¬16 pending → committed (= c − 16 when M = 1)
μ∘μ = id ν∘ν = id σ∘σ = σ μ, ν, σ commute pairwise
They generate an 8-element monoid, {id, μ, ν, μν} × {id, σ}. Every legal link between two entries is one of those eight. The structure mirrors Spencer-Brown's two axioms: crossing twice returns (μ, ν), and calling twice is calling once (σ). This is a parallel worth recording, not a derivation.
3.2 Citation checks
undo: D(c) = 1 → cites t, t live, c = μ(c_t)
settle: t pending and open, c = σ(c_t) if actor(e) = actor(t)
c = ν(σ(c_t)) if actor(e) ≠ actor(t)
3.3 State laws
| Law | Statement |
|---|---|
| Once | Every pending item and every live establishment is used up at most once (Open-items set). |
| Zero | A frame to entry's legs sum to zero per book and unit, by its form. |
| Single value | is holds one value per property. A new DECLARE replaces the old one; WITHDRAW leaves ⊥ (withdrawn). |
| Attenuation | A granted permission ≤ the granter's (actions ⊆, scope ⊆, validity ⊆, depth <). |
| Root | Every permission path ends at a genesis root. |
| Position | Type, guard and effect read only the state before the entry (plus its births). |
3.4 The four relations as four operations
Iteration 3. Stage 0 no longer lists the relations as a given set with a separately written effect for each. It defines four primitive operations, each with one law. A relation is the name of an operation's effect, and it earns the name by passing the law.
| Relation | Operation | Law (checked) | State structure it builds | Grade |
|---|---|---|---|---|
| in | enclose: draw a boundary with an inside | containment is transitive and irreflexive (nothing is inside itself); a resource has one place | a partial order (Struct) | law: checkable; the mark-boundary experiment already derives it from enclose |
| is | call: give a thing a value under a name | idempotent: calling the same value twice changes nothing; one value per name | an override map (Reg) | law: checkable |
| to | cross: move a measure from one side to the other | involution: crossing back returns (reverse = −δ); what leaves one side enters the other (legs sum to zero) | an abelian group (Books) | law: checkable |
| may | apply the log's distinctions to its own later lines | least fixed point: authority is the smallest set closed under the grant rules; every chain ends at a root | a closure over grants (Auth), read by guards | law: checkable; the name of the operation is open (§15 Q9) |
Two operational cuts give the 2×2 (DIGEST §3's grid, now as properties of the effects):
| builds structure (chains compose by closure) | attaches values (folded per key) | |
|---|---|---|
| a thing and its place or value | in | is |
| between two parties (granter→holder, from→to) | may | to |
The effect-law self-check runs next to the bit-law check at start-up, and in the conformance suite:
is : set(x,p,v); set(x,p,v) ≡ set(x,p,v)
to : post(t); post(reverse t) ≡ no change; Σ legs = 0 per unit
in : enclose(a,b); enclose(b,c) ⇒ a inside c; never a inside a
may : closure(grants) = T(closure(grants)), and is the least such set; every chain ends at a root
The order they unfold in from genesis (each needs the one before):
GENESIS mark log boundary L; inside = this log, outside = everything else; roots inside (trust supplied)
in enclose boundaries and members inside L
is call things inside get values
to cross measures cross between enclosed books; outside:<unit> is the outside of L
may self-apply the log's distinctions applied to its own later lines; GENESIS supplied the first
The other bits, read operationally:
| Bit | Reading |
|---|---|
| D | cross back: close the effect from this position on (exit, withdraw, revoke, inverse) |
| O | an in question: is the affected thing inside the actor's ownership boundary? |
| S | a record is a name that can be called in many places; a resource is an occupant enclosed in one |
| F | whose distinction it is: drawn by this log, or by another observer (the source) and reported in (§3.5) |
| M | indicated but not yet crossed: no effect until a fact settles it |
What stays stipulated: that these four operations exist (the kernel's primitives, note 05), trust in the roots, measure (units and quantities), and time (the clock). The words in, is, may, to are names given after the behaviour is established.
3.5 Observed and authoritative state
Iteration 3. F is made operational by where a line writes:
- Frame lines (F = 0) write the authoritative partition of the state: what this log enacts.
- World lines (F = 1) write the observed partition: what outside sources report, each tagged with its source.
- Drift is the difference between the two for the same object and property. Reconciliation is a frame line that cites the observation it accepts or rejects.
Guards read the authoritative partition. Views can show either, or both side by side.
3.6 Phase
Iteration 4; corrected in iteration 5. Direction approved by the owner 2026-12-01; the questions in §15 Q10–Q12 stay open.
What phase is. Two yes/no answers about the act itself, not about the relation:
| closes an interval: no | closes an interval: yes | |
|---|---|---|
| opens an interval: no | sample | end |
| opens an interval: yes | begin | instant |
An instant opens and closes at once. A sample does neither: it is a point inside something already open. The shape (four values from two questions) is forced; time itself comes from the clock supplied at genesis. That resolves DIGEST's "forced" grading of step 10 against notes 05 and 06: they were describing different things.
Separation rule. Each mechanism answers one question, so no event can be written two ways:
| Mechanism | Answers | Example |
|---|---|---|
| D = 1 | this established relation no longer holds from here | leaving a group: in, D=1, instant |
| phase begin/end | the act took time: it started here and finished there | a VM migration: in, D=0, begin … in, D=0, end |
| validity role | how long an established permission (or other standing) lasts | a grant valid Dec 1 → Dec 31 |
| use count | how many times a permission can be used | a single-use grant: uses: 1 |
| M = 1 | not committed; may never happen | a hold |
absence not-yet |
one piece of this record will come later | an amount known only at the end |
When the effect lands:
| Phase | Effect on the relation's state |
|---|---|
| instant | lands at this line |
| begin | none yet; opens an in-progress item (a committed fact that the act started) |
| end | lands here; cites its begin, same c, and uses it up (the use-once rule, as for settling) |
| sample | none on the relation; adds a reading to a series (observed partition when reported) |
A begun act that fails ends with an outcome role, or its begin is undone if it was recorded by mistake.
Laws. μ, ν and σ act on c and leave phase unchanged. The pairing check: end.c = begin.c, begin in progress, end cites begin. If phase codes follow the bits (sample 00, begin 01, end 10, instant 11), then begin ∨ end = instant and p_end = p_begin ⊕ 11. That numbering differs from v0.1's (instant 0, begin 1, end 2, sample 3): owner decision (§15 Q10); a lookup table gives the same reading without renumbering.
Phase and relation. Iteration 5 correction. Iteration 4 marked may × {begin, end, sample} invalid (96 of 512 fact-forms). That was wrong. Applying the separation rule evenly, every relation has acts that take time and states that can be read:
| Relation | begin / end (the act takes time) | sample (a reading inside something ongoing) |
|---|---|---|
| in | a move or migration | presence readings |
| is | an assessment or measurement process; the value lands at end | signal readings |
| to | a settlement or a flow over time | meter readings (running totals) |
| may | a grant or revocation that takes time to take effect (access spreading across systems; staged rollout). Committed, not usable until end. | access scans and reviews, usually reported from outside (F = 1) |
Iteration 4's is example ("a value that holds while an activity runs") was standing, not an act, and belongs to D.
What phase is not for:
- Permission spans are the permission's standing: GRANT (D = 0) with a validity role, closed early by REVOKE (D = 1) or ended by the validity role with no line needed. Putting spans in begin/end as well would give one span three spellings.
- One-off permissions are a use count, used up by the act done under the grant (the use-once rule). "Instant" describes the granting act, not the permission's life.
No fact-form is invalid in advance. All 512 are allowed by the kernel; the Stage A workbook decides per position which are meaningful, and may mark individual cells invalid.
ACT end. Completion of an act is D = 0, phase end. That agrees with the corpus, and preset QToB4's D = 1 would read as reversing an ACT. This supports settling D-02 the corpus's way; the decision stays with the owner (§14).
Naming. Verbs are named per c (128). Phase renders as aspect on the same verb (started, completed, reading). The label pack may carry optional phase-specific names, which is where ZAKO's 13 phase-variant verbs belong.
3.7 Links between lines: continuation and evidence
Iteration 6.
In plain terms. A line can point back at an earlier line for two different reasons:
- Continuation: "I am continuing that same act": undoing it, completing it, or the other party's record of it. Like a ledger's correcting entry, it must mirror the original.
- Evidence: "I am a new act, and that earlier line is my basis": accepting a bank-statement line into the books, a forecast built from past facts, the outcome of a command. Like a supporting document, it is a different kind of thing, and one document can support many entries.
Why this is needed. The continuation check (§3.2) only allows D, O and M to differ between the two lines. Accepting a reported line into the authoritative books (§3.5) links a world line (F = 1) to a frame line (F = 0), so the continuation check refuses it. Without a second kind of link, the log had no legal way to say "I accepted that reading". The record had already named these links (DIGEST step 11, relations-and-matrix.md "What happens across row boundaries?", note 16, note 19 §9) and said that flipping a bit supplies none of the evidence they need.
The two families:
Continuation (cites) |
Evidence | |
|---|---|---|
| Meaning | the same act, continued | a different act, based on another |
| Bit rule | only D, O, M may differ: the 8-element monoid (§3.1) | a stated constraint per kind (below) |
| Order matters? | no: the moves commute | yes (note 19: sensing then acting ≠ acting then sensing) |
| Uses up its target? | yes: undone or settled at most once | no, except where a kind says so |
| Shape | at most one continuation of each kind per item | many-to-many: a web of support |
The evidence kinds and their contracts:
| Kind | From | To | Bit constraint | Must carry | Used up? |
|---|---|---|---|---|---|
records |
a world line | a frame line | F 1 → 0; same R and S | accept or adjust, with reason | once per book (no double-posting) |
actuates |
a frame intent (pending or begin) | a world outcome | F 0 → 1; same R | authority used; dispatch id | the intent's outcome, once |
anticipates |
one or more facts | a forecast | the forecast has M = 1 | model, assumptions, horizon | no |
realises |
a pending line, plus an observation | its outcome | σ on the pending line (a continuation) plus an evidence link to the observation | the observation | the pending item, through σ |
senses |
a source | a world line | F = 1 | source, method | — (this is the source role; checked with F) |
under |
a grant, mandate or rule | an act done under it | R may differ | — | only if the grant has a use count (checked by g_O) |
senses and under add no new checks: they are the existing source role and the grant that g_O already finds. Only records, actuates, anticipates and the evidence half of realises add work.
Rejected alternative. Extending the monoid with a move that flips F (16 elements, then 24 with a move that sets M, then moves on R for under) would make one uniform check, but it weakens the check with each move, asserts that crossings commute (false, note 19), cannot be both use-once and reusable, and still needs the same contracts. Flipping F stays available as a filter for drift (positions c and c ⊕ 64), not as a link.
Cost. The check runs only on lines that carry an evidence link, in pipeline step 7 with the continuation check: one array lookup of the cited line's two header bytes, one XOR and one AND per link, and for records and actuates one used-set lookup. It needs no Register access. Most lines carry no evidence link and pay nothing. Replay runs the same step; reading never re-checks.
Open: the exact roles each contract requires are written in the operator workbook (work plan WP09b).
4. Reading pipeline (every line after GENESIS)
1. bytes canonical form
2. position seal chain / segment
3. header R, D, M, phase
4. resolve each named identifier → existing id, or birth (§6)
5. derive F, S, O
6. assemble c; compare with stored c if present
7. links continuation checks (§3.2), evidence checks (§3.7), begin/end pairing (§3.6)
8. guards §5, cheapest first
9. effect Δ from the prior state
10. commit state ⊕ births ⊕ Δ, atomically; on refusal, journal a refusal receipt and discard the births
open replays every line through the same pipeline. There is one code path for submission and replay, so stored data cannot have skipped a check.
5. Guards
guard(e) = laws ∧ g_P ∧ g_F ∧ g_S ∧ g_R ∧ g_D ∧ g_M ∧ g_O ∧ record-right ∧ policy
| Guard | Passes when |
|---|---|
| g_F | F = 1 → a source role is present |
| g_S | S = 1 → one place at a time (in), never negative (to). S = 0 → may be in many boundaries; a book may go negative only if declared issuer. |
| g_R | the relation's own precondition (member present for exit, property set for withdraw, interval live for revoke, units match for to) |
| g_D | D = 1 → target live, not already undone |
| g_M | settling → target pending and open; M = 1 → no committed effect |
| g_O | O = 0 → actor owns the affected object. O = 1 → an authority path exists (grant, mandate, or evidence plus attribution for is). |
| g_P | the fact-form (c, phase) is not marked invalid in the workbook; end → cites an in-progress begin with the same c |
| record-right | rec ≠ for → a record grant from for to rec covers c |
| policy | every rule from packs in force holds |
The guard is a conjunction, so the order doesn't change the result; it fixes which refusal reason is reported. Packs can only add conditions. Authority comes only from grant facts, never from loading a pack. A refusal is journaled; retries return the same receipt (v1 behaviour).
6. Births by first mention
for each identifier x named in e with lookup(x) = ⊥:
owner(x) := actor(e) principals: owner(x) := x (self-owned)
kind(x) := the kind e names, or the role default
born(x) := position of e
- Births are deterministic (entry + prefix), are recorded as part of the entry's effect, and are discarded if the entry is refused.
- Refusals are left only for real conflicts: a conflicting redeclaration, a use the kind doesn't allow, or strict mode (§12).
- A principal born by mention exists but cannot record until it has a credential and a record grant.
6.1 Role defaults
| Role | Default kind |
|---|---|
from, to on a to entry |
book |
boundary in in |
boundary |
member in in placed with a location role (at) |
item (a resource) |
member in in otherwise; bearer in is |
thing |
holder in may |
principal |
source |
principal |
| the unit on a quantity | unit |
7. Kinds: class and traits inferred from use
7.1 Units come from the plainest entry
People write amounts with a symbol or letters before or after them: 120 EUR, €120, 5 kg, 3h, 2 GB. The symbol is the quantity's kind. It is born at first mention as a unit, like any other name. No unit pack is needed to write or read a quantity. Packs may later supply dimensions, conversions and aliases (€ = EUR).
7.2 How quantities enter a log: intake from outside
Most holdings, money included, enter a log as a plain declaration of what someone holds: "book:ops holds 500 EUR". That is modelled as a handover from outside the log:
to D=0 from: outside:EUR to: book:ops q: 500 unit: EUR
outside:<unit>is a boundary book, born at first mention, that stands for everything beyond this log. It is the only kind of book, besides a declared issuer, that may go negative. Its balance is minus the total brought in, which is a useful figure in its own right.- Conservation still holds: the legs sum to zero.
- The intake is a frame entry (F = 0) when the actor simply asserts the holding on their own authority. It is a world entry (F = 1) when it carries a source, such as a bank statement or a meter, and then it is reconciled against later reports.
- The same entry shape covers an opening balance, a deposit, a delivery and a reading. Only the roles differ.
7.3 Record or resource: what the class changes, and how it is set
Iteration 2 correction. Iteration 1 inferred the class from how a quantity first enters. That was wrong: money and kWh both usually enter by intake from outside, so their origin cannot tell them apart.
What the class actually changes:
| Relation | Record (S = 0) | Resource (S = 1) |
|---|---|---|
in |
may sit in many boundaries at once | in exactly one place at a time |
to |
conserved, one book at a time; an issuer book may be declared | conserved, one book at a time; no issuer can ever be declared (you cannot record kWh into existence) |
| copying | can be referenced or copied freely | cannot be duplicated, only moved |
On to the difference is small: it is only whether an issuer may exist. On in it is large.
class(k) = declared class if a pack or DECLARE gave one (packs win)
resource else if k is first placed with a location role (`at`)
or first moved by an atomic exit-and-enter
record otherwise (the default)
The class is fixed at birth and stored. Later entries read it and never re-infer it. A later conflicting declaration needs an explicit reclassification entry with its own guard.
Known limit: a physical thing first declared without a location ("I bought a chair") is a record until something says otherwise. The cost is only that the "one place at a time" guard doesn't apply to it yet.
7.4 Traits: a kind's role signature
Each kind keeps a small bitset of the roles it has filled. It is updated at commit with one OR, and conflicts are checked with one AND.
| Trait | Set when the kind… |
|---|---|
| T0 container | is the boundary in an in |
| T1 member | is the member in an in |
| T2 bearer | is the subject of an is |
| T3 holder | holds a permission in may |
| T4 book | is from or to in a to |
| T5 observer | is a source |
| T6 durative | is used with begin/end phases |
| T7 sampled | is used with the sample phase |
| T8 located | is placed in one place at a time (S = 1) |
Candidate classes of kind, as trait masks:
| Class | Mask | Examples |
|---|---|---|
| book / account | T4 | wallets, ledgers, stock bins |
| place / container | T0 (+T8 on members) | warehouse, host, room |
| group / tag | T0, members S = 0 | team, label, folder |
| item / asset | T1 + T8 | device, pallet, chair |
| record / document | T2 only | invoice, profile, setting |
| principal / agent | T3 | person, service, agent |
| observer / sensor | T5 (+T7) | meter, registry, feed |
| activity / process | T6 | job, shift, deployment |
| signal / metric | T7 + T2 | temperature, latency |
These are names for patterns, not new kernel types. A view can group by them.
7.5 Tags and groups in a log entry
A tag or group isn't a new construct. It is a boundary whose members are records, so they can sit in many at once:
in D=0 member: invoice:2041 boundary: tag:urgent → filed under "urgent"
in D=0 member: invoice:2041 boundary: team:billing → also in a team boundary
in D=1 member: invoice:2041 boundary: tag:urgent → untagged (cites the first)
Both boundaries are born at first mention. Because invoice:2041 is a record, being in two boundaries passes g_S. A resource (S = 1) placed in a second boundary without leaving the first is refused, or the entry is read as a move if policy allows.
8. Transfers
- One entry per transfer:
from,to,q,unit, and an optionalcites. The Books post−qonfromand+qonto. - Push vs pull = O, derived from the owner of
from. A pull needs a mandate. - Two-phase = M. A hold adds to
reserved[from]; posting cites the hold; void and timeout retire it.available = posted − reserved. - Reversal = D. It posts the exact inverse of the cited entry.
- Exchange = two linked transfers committed together.
- Issuing is explicit: only a book declared
issuermay go negative. - Conservation holds by construction for frame entries. World entries are reconciled against frame entries, not posted blindly.
9. Ownership given to someone else
When an entry creates something and names an owner other than the actor, the recorder may lose control of it at once. Candidate forms:
| Form | Log shape | Recorder afterwards |
|---|---|---|
| A. Assign | birth with for: X; the recorder needs a record grant from X |
no control |
| B. Offer | birth owned by the actor, plus a pending ownership transfer (M = 1) to X. X accepts (settles, so ⊕8 applies) or declines (retire). | full control until X accepts |
| C. Assign and retain | A plus a GRANT back to the recorder (custodian or manager scope), in the same atomic batch | scoped rights |
| D. Standing acceptance | X holds a policy "accept assignments from Y" | as A, without a per-item grant |
An unsolicited assignment (no grant, no offer, no standing acceptance) is either refused or turned into form B. That choice is a setup policy (§12).
9.1 Notification classes come from the bits
Notify every principal named in an entry, other than the actor, who owns an object in any of its roles. The bits then say what kind of notice it is:
| Bits | Notice |
|---|---|
| M = 0, D = 0 | something was done to something of yours (inform) |
| M = 1 | something awaits your response (accept, decline, pay) |
| D = 1 | something earlier was undone |
| settles your pending item | your request or offer was answered |
| F = 1 | an outside source reported something about yours |
This is a view, not a kernel feature. It is computed from c and the roles, with no extra state.
10. Indexes and compute cost
Question: once births happen by first mention, do the growing numbers of objects, books, kinds and subjects need scans or routine jobs to keep indexes current?
Proposed answer: no. Each index is a function of the log prefix, kept up to date at commit, and the check for "is this new?" is the lookup the reader must do anyway.
- Birth costs nothing extra. Step 4 resolves every named identifier, so it hashes and looks it up regardless. A miss is the birth. There is no separate existence check.
- Symbol table. Each birth gets the next dense integer id (its birth ordinal). The table is append-only: a hash map from name to id, plus an array from id to record (owner, kind, class, traits, born). An insert costs O(1) amortised.
- Optional wire saving. After first mention, an entry may refer to an identifier by its id or by the position of its birth, instead of by name. That skips hashing on read, the way a compressor reuses an earlier string.
- Secondary indexes (by kind, owner, unit, c, boundary) are append-only posting lists. Each commit appends to the lists its entry touches: O(1) per index per entry.
- Traits and classes are bitsets updated with one OR. Conflict checks are one AND.
- Counts (how many kinds, objects, books) are the birth counters. Reading them is O(1).
- Checkpoints at each seal. The seal summary records that segment's births and index additions, plus a root hash over the symbol table and indexes. A restart loads the last checkpoint and replays at most one segment. A reader can confirm an index by comparing its root hash at a seal.
- Full scans happen only on a cold rebuild, which is a replay: O(n), once.
- At large scale, the symbol table moves to sorted runs on disk (LSM-style), with a Bloom filter in front. A filter miss means "definitely new", so the birth needs no disk read.
11. Stage 0: kernel constants and start-up
Everything in this section is fixed before line 1, in the kernel descriptor, whose SHA-256 is the kernel's identity.
D1 sets B = {0,1}; Phase = {instant, begin, end, sample};
Id = canonical strings; Q = decimal strings; ⊥ distinct from 0, ∅ and withdrawn
D2 positions C = B⁷, c = 64F+32S+16M+8O+2R+D; bit projections; type = c (one byte, §1.3)
phase P = B² read as (opens, closes) (§3.6); query key (c, p), 9 bits; wire: two bytes (§1.3.1)
D3 operations μ, ν, σ and their laws (§3.1)
D4 state S = (Struct, Reg, Auth, Books, Open, Sym, n, h)
Sym = symbol table (§10); Reg reserved properties: owner, kind, class, traits, issuer, born
D5 initial S₀ = (∅, ∅, ∅, ∅, ∅, ∅, n = 0, h = 0²⁵⁶)
D6 seed kinds principal, boundary, kind, pack, book, thing, unit (record); item (resource)
D7 order permission order ⪯ (§3.3 Attenuation)
D8 actor actor(e), affected(e) per relation (§1)
D9 births §6 and role defaults §6.1; intake §7.2; class rule §7.3; traits §7.4
D10 derivation F, S, O (§2)
D11 links continuation checks (§3.2); evidence-link contracts (§3.7); begin/end pairing (§3.6)
D12 guards §5
D13 operations enclose, call, cross, self-apply, each with its law (§3.4); the relation of a line
(in, is, to, may) names the operation its effect applies. Writes go to the
authoritative or observed partition by F (§3.5). Open ±; Sym +
D14 step births → derive → laws → guards → effect → commit, or refusal receipt
D15 seals seg_hash = sha256(segment bytes); h' = sha256(hex(h) ‖ hex(seg_hash))
D16 identity K = sha256(descriptor)
Start-up sequence a reader runs:
0.1 load descriptor; compute K
0.2 build the constants and tables (D1–D14)
0.3 check the bit laws over all 128 values of c (128 × 6 comparisons)
0.3b check the four effect laws (§3.4) on a fixed sample state
0.4 state := S₀
0.5 require line 1 = "STREAM/1 kernel=sha256:" ‖ hex(K), else open refuses
0.6 read line 2 as GENESIS (§12)
11.1 Printing the start-up (a bootstrap transcript)
Option: begin a log by printing every Stage 0 operation.
- It costs very little: Stage 0 is constant-sized (a few hundred lines, microseconds of compute).
- It adds no information to the log. Stage 0 is a deterministic function of K, which the preamble already names. Anyone can regenerate the same transcript from the kernel.
- It would also not be a performative act. These lines report what the reader computed; they don't establish anything. GENESIS is the first act.
Proposed: publish the Stage 0 transcript once per kernel version as a conformance artifact: the canonical bootstrap transcript, which note 17 lists as missing. Decided 2026-12-01 (owner): printing the start-up into a log is an audit option, verbose-genesis, off by default. When on, it writes the transcript into segment 0 as non-fact trace lines covered by the first seal.
12. Opening entries and setup policies
12.1 Required lines
| # | Line | Effect |
|---|---|---|
| 1 | preamble STREAM/1 kernel=… |
binds the log to this kernel (not a fact) |
| 2 | GENESIS(log_id, roots, clock, tz, seed_hash, policy_hashes) |
Type fixed by kernel law; allowed only here. Log boundary born, owned by the roots. Roots hold every permission on it (trust is supplied here). Fixes clock, timezone and setup policies. |
After line 2 a root can write ordinary entries at once.
12.2 Conditional setup lines
| Needed for | Lines |
|---|---|
| others writing | principal (by mention or DECLARE) + record GRANT + credential |
| acting for another | record GRANT from for to rec |
| pulls | mandate GRANT from the source owner |
| issuing sign quantities | DECLARE issuer on a book |
| shared vocabulary, policies, labels | BIND packs, one line each |
12.3 Setup policies (fixed in GENESIS policy_hashes; may be tightened later by a policy pack)
| Policy | Values | Reader's starter profile (§18: the kernel has no defaults) | Strict mode |
|---|---|---|---|
births.objects |
allow / declare-first | allow | declare-first |
births.books |
allow / declare-first | allow | declare-first |
births.kinds |
allow / pack-only | allow | pack-only |
births.units |
allow / pack-only | allow | pack-only |
births.principals |
allow / declare-first | allow (they can't record without a grant) | declare-first |
class.inference |
location / pack-only | location (§7.3) | pack-only |
ownership.for-without-grant |
refuse / offer | offer (form B) | refuse |
resource.second-place |
refuse / treat-as-move | refuse | refuse |
issuer |
declared only | declared only | declared only |
wire.type |
6 bits / 7 bits checked | 7 bits checked (§1.2) | 7 bits checked |
verbose-genesis |
off / on | off | on, for audit |
Policies tighten only. A pack may move a value toward strict, never away from it. This matches the guard rule that packs only add conditions.
13. Consequences for the kernel's mathematics
| Area | v1 | v0.1b direction |
|---|---|---|
| What carries meaning | 8 verbs; the rest declared | four operations with laws + bit rules + phase |
| Entry type | in the entry | the entry plus the state before it |
| Conservation | checked | built into the entry's form |
| Links between entries | conventions | citation checks with the μ, ν, σ monoid; use-once rule |
| State | one fold | Books: a group (sums, fast balances) · Register and membership: last-writer-wins maps · authority: a derived closure |
| Seed logic | positive Datalog | positive + stratified negation over each entry's own roles + time-indexed ownership |
| Direction field | disputed meaning, Option 9 would widen | 1 bit, establish/undo; no widening |
13.1 Proof obligations
- Totality: every admitted entry gets F, S and O, or a stated refusal.
- Determinism: the pipeline reads only the prior state plus births; the batch rule is fixed (each entry in a batch is typed against the state before the batch).
- Conservation, by induction over frame
toentries. - Citation laws and the use-once rule.
- Involution and idempotence (§3.1), checked at start-up.
- Stored c = derived c, when 7 bits are stored.
- Closure terminates under stratified negation; incremental upkeep agrees with recomputation, including under REVOKE.
- Replay on
open= submission.
14. Effects on open decisions
| Item | Effect of this direction |
|---|---|
| D-01 direction | Option 9's four modes map onto existing fields (normal = D 0, reversal = D 1, edge = phase, compound = linked entries). No widening. |
| D-02 ACT end | Closing is phase's job, so an ACT end entry establishes: D = 0. This agrees with the corpus; preset QToB4 (D = 1) would read as an undo. Round 4's separation rule (§3.6) supports this. Decided 2026-12-01 (owner): ACT end = D 0, phase end. Preset QToB4 is re-read accordingly when the vectors are regenerated. |
| D-03 6-bit claim | Honest: 6 stored bits, with three context bits computed by kernel-defined functions. No verb-table lookup. |
| D-05 depth re-check | Removed by replaying through admission on open. |
| D-11 book key | Unit = the quantity's kind (§7.1), so the key is (boundary, unit), and unit symbols can't collide across kinds. Revisit with §7.2–7.3. |
15. Decisions and open questions
Iteration 7. On 2026-12-01 the owner accepted the proposals overall. Status of each question:
| # | Question | Status |
|---|---|---|
| 1 | F = enacted vs reported; O = is the affected party not the actor? | Decided (owner): accepted as written |
| 2 | Class rule (§7.3) and intake from outside:<unit> (§7.2) |
Decided (owner): accepted |
| 3 | Trait set (§7.4) | Open; optional before the first build |
| 4 | Ownership forms (§9): kernel or policy? | Decided (owner): the kernel knows assign (A) and offer (B); retain (C) and standing acceptance (D) are policy |
| 5 | Wire: 7 bits checked by default, 6 bits as a compact profile | Decided (owner) |
| 6 | Batch typing rule | Decided (owner): each line in a batch is typed against the state before the batch |
| 7 | resource.second-place |
Decided (owner): refuse |
| 8 | Bootstrap transcript | Decided (owner): published per kernel; printing into a log is an audit option, off by default |
| 9 | Name of may's operation |
Decided (owner): "self-apply"; DIGEST's grid kept (may is about a crossing, works by self-application) |
| 10 | Phase numbering | Decided (owner): a lookup table now; renumbering to (opens, closes) considered at the freeze, when the vectors are regenerated anyway (§3.6) |
| 11 | Type layout | Decided (owner): option A, two bytes "what" and "shape" (§1.3.1) |
| 12 | Text form of the header | Decided (owner, round 9): T1 stays the stored form; readers offer compact (T4c) and complete (T4f) text headers alongside T2, T3 and the glyph sets (glyph-sets.md §6) |
| 13 | Time delta | Decided (owner): 14 bits; the unit is fixed in GENESIS; overflow is refused and the writer inserts a time anchor (§1.5) |
| 14 | ACT end (D-02) | Decided (owner): D 0, phase end (§14) |
| 15 | v1 logs (Stage H) | Decided (owner): v1 logs stay under v1 for now; a converter comes later |
16. Lineage: what earlier notes already said, and what is new
Iteration 3. Checked against the earlier record so restatement isn't presented as discovery.
| Idea in this note | Already in the record | What v0.1b adds |
|---|---|---|
| Relations as operators with laws | note 08: each relation an operator on a shared state; in = inclusion order, is = evaluation, may = restricts admissible transitions, to = conserved weighted delta (incidence matrix); the type dispatches the operator; the log is a composition of operators | Laws become start-up and conformance checks (§3.4), answering note 08's question 9. The 2×2 is restated as two operational cuts. |
| Calling idempotent, crossing involutive | note 08 ("idempotent and involutive reductions"); note 16 §9 (typed interpretations needed; executing twice need not undo; idempotence doesn't collapse evidence) | Tied to bit operations: μ and ν are involutions, σ is idempotent, checked over all 128 positions. Undo is a distinct cited line, not double execution, which is what note 16 §9 required. |
| The 2×2 of relations | DIGEST §3: how things stand (in, is) / crossing (may, to); logic table (transitive part–whole; one value per property; traces to a root; conserved) | The same grid, as structure-vs-value and thing-vs-two-parties properties of the effects. |
| Containment derived from enclose | mark-boundary experiment; note 16 (enclose and beside as supplied constructors) | Placed first in the unfolding order after GENESIS. |
| Re-entry and fixed points | note 16 §9 (re-entry as recurrence; positive inference reaches a fixed point); note 06 (re-entry and recording the frame in force); DIGEST (re-entry → frame/world, phase) | The authority closure as a least fixed point; open question on naming may's operation (§15 Q9). |
| Direction per operator | note 08 table (enter/leave, assert/supersede, allow/withhold, into/out of) | Changed: one meaning for D in every relation (establish / undo). |
| External generation and boundary crossing | note 08 ("external generation, loss or boundary crossing must be represented explicitly") | outside:<unit> as the outside of the genesis mark (§7.2). |
| Incremental projections, identical across readers | note 08 questions 8 and 9 | Segment summaries, checkpoints and root hashes (§10). |
New in v0.1b, not found in the earlier record: derived and checked F/S/O with functions defined by the kernel; O relative to the actor, and the ⊕8 counterparty rule; the μ/ν/σ monoid as citation checks; births by first mention, role defaults and seed kinds; kind classes and traits from use; the trim transfer model with holds and intake from outside; setup policies with strict modes; observed and authoritative partitions.
17. How this lab records iterations
Iteration 3. The lab is revised in rounds. Each round may touch one element or several, and the documents aggregate elements. The record has to show both: the lab's iteration number, and each element's own history.
- Elements have stable ids. Each piece of the design being iterated has an id (table below). An id never changes, even if the element moves to another section or into its own file.
iterations.csv(in this folder) has one row per element changed per iteration:iteration, date, element, change, summary, decided_by, refs.changeis one ofadded,changed,corrected,withdrawn,decided.decided_byisowneronly when the owner decided; otherwise empty.- Lab iteration vs element iteration. The lab iteration is the round number (this note's header). An element's iteration count is the number of rows for that element. The CSV gives both.
- Sections carry the round. A section changed in a round starts with an italic line such as Iteration 3. The changelog below summarises each round.
- Snapshots. When a round closes, the tabbed page is frozen as
artifacts/iteration-NN.htmlwithrecord.py lab attach … --as artifact. Rounds 1 and 2 were not snapshotted; snapshots start at round 3. - Commits. One commit per round on the lab branch,
docs(lab): v0.1b direction, iteration N, made when the owner asks. Git history then gives line-level differences between rounds. 6b.exchanges.mdrecords each owner question or challenge and its outcome, in order, so the reasoning between rounds is kept, not only the results. - The tabbed page has an Iterations tab built from
iterations.csv: by round, and by element. - Machine-readable for the site.
iterations.csvis plain CSV so the Labs page tooling being built for babb-home can show it without parsing prose.
| Element id | Covers |
|---|---|
| EL-bits | §1: one meaning per bit |
| EL-wire | §1.1–1.3: header type bits, filtering cost, wire.type, the type byte |
| EL-derive | §2: derivation of F, S, O; resolving names |
| EL-laws | §3.1–3.3: bit laws, citation checks, state laws |
| EL-relops | §3.4–3.5: relations as operations; observed and authoritative state |
| EL-links | §3.7: continuation and evidence links; the six evidence kinds |
| EL-phase | §3.6: phase as (opens, closes); separation rule; effect timing; invalid forms |
| EL-pipeline | §4: reading pipeline |
| EL-guards | §5: guards |
| EL-births | §6: births by first mention; role defaults |
| EL-kinds | §7: units, intake, class, traits, tags |
| EL-transfers | §8: transfers |
| EL-ownership | §9: ownership forms; notifications |
| EL-indexes | §10: indexes and cost |
| EL-stage0 | §11: Stage 0 and start-up; bootstrap transcript |
| EL-setup | §12: opening entries; setup policies |
| EL-kernel-math | §13: consequences and proof obligations |
| EL-decisions | §14–15: effects on decisions; open questions |
| EL-lineage | §16: lineage |
| EL-principle | §18: the kernel is deliberately close to unusable on its own |
| EL-buildprep | §19: design work before the first build |
| EL-views | §20, glyph-primitives.md and glyph-sets.md: T1–T5; glyph primitives; the 128 as an inflected verb system |
| EL-modal | §21: the kernel activation window (flag) and the trace it needs |
| EL-buildspec | build-specs.md, kernel-descriptor-v0.1b.txt, vectors/ |
| EL-inputs | inputs/: Clay v2 and its conflict table |
| EL-process | §17: this section; exchanges.md, the record of owner questions and outcomes |
| EL-workplan | technical-work-plan.md |
| EL-overview | system-overview.md |
| EL-rationale | design-rationale.md |
| EL-math | mathematics.md |
18. The kernel is deliberately close to unusable on its own
Iteration 7. Principle stated by the owner, 2026-12-01.
The kernel should be ultra-reduced, and therefore reliable. On its own it is almost unusable: it defines only the bits and their meanings, the laws, the four operations, the checks, the seed kinds and the names and allowed values of setup policies. Everything that makes a log usable comes from outside it:
- readers (or a person who knows how to build one): parsing, spellings (§1.4), views, indexes, defaults;
- GENESIS, which must state every setup policy explicitly; the kernel ships no default values. A reader offers a starter profile (the "proposed defaults" in §12.3) and writes it into GENESIS;
- packs, for vocabulary, units, aliases and policies;
- the log itself, through births by first mention.
Consequence for the build: the kernel descriptor stays small enough to read in one sitting, and two readers built separately from it must agree byte for byte.
19. Design work before the first build
Iteration 7. Items still to be drafted, then reviewed by the owner:
| # | Item | Status |
|---|---|---|
| — | Round 8: all eight items drafted, approved by the owner 2026-12-01. See build-specs.md (#12–17), kernel-descriptor-v0.1b.txt (#18) and vectors/ (#19). |
done (draft) |
| 12 | Roles into the four header slots. The slots exist: subject, object, kind, measure (DIGEST step 12; v0.1 test vectors). What is missing is how v0.1b's relation roles fill them, and where the actor, source, cites, evidence links, at and validity live. Proposed: subject = the affected party (member, bearer, holder, from); object = boundary, property, the thing permitted over, to; kind = the member's kind, the value's kind, the action, the unit; measure = location, value, limit, quantity. The actor (rec, for) stays in the line's framing, as in v1. Everything else goes in the payload. Conflict to settle: the v0.1 FAIL preset says "actor withheld", which reads the subject slot as the actor. |
to draft |
| 13 | Canonical identifiers: case, Unicode normalisation, kind:name prefixes, allowed characters |
to draft |
| 14 | Unit scale set by the first amount written, and what happens when a finer amount arrives | to draft |
| 15 | Refusal codes: a stable numbered table | to draft |
| 16 | Evidence-link contracts: the exact fields per kind | to draft |
| 17 | Setup-policy format: a small hashed policy pack named in GENESIS, every value explicit (§18) | to draft |
| 18 | The v0.1b kernel descriptor text | to draft |
| 19 | The first conformance vector set | to draft |
20. Views: five spellings of one line
Iteration 8. The owner wants to view lines in different ways at any time. Only T1 is stored; every other view decodes the same bits and body, and a reader can switch between them freely.
| View | What it is | Where |
|---|---|---|
| T1 | 64-symbol alphabet, 5 characters: the stored form | §1.4 |
| T2 | Crockford base-32 with a check character: for copying by hand | §1.4 |
| T3 | hex pairs: debugging and conformance | §1.4 |
| T4c | compact text: to+pend i sokm d4000 |
glyph-sets.md §6.1 |
| T4f | complete text: every field as key=value |
glyph-sets.md §6.2 |
| T5a | glyph Set A, combinatory: operator plus marks, three densities | glyph-primitives.md, glyph-sets.md §2 |
| T5b | glyph Set B, impressions: one Braille cell per byte, so the position is one character and the two-byte header is two (⠖⡾) |
glyph-sets.md §3 |
Round 9. Glyph sets, text forms and label packs are held by readers as hashed view packs and label packs, never by the kernel. A log may name a preferred pack for information only. Label packs hold 8 roots, inflection templates and optional idioms, resolved idiom-for-(c, phase), then idiom-for-c, then the regular reading (glyph-sets.md §4–5). The bulla and token practice of early Mesopotamia turns out to match STREAM's structure closely (envelope, impressed exterior as header, kind and number apart, seals, breaking as settlement); Set B takes its one literal lesson, the impression (glyph-sets.md §1).
T5 follows the principle zero is unmarked: each 1 bit adds one mark to one of four mathematical operators (∈ ≡ ⊢ →), so the plain act is drawn plainly and every departure is visible. The three moves become glyph edits (strike, dagger, diamond). The same analysis reads the 128 positions as one inflected verb system: 8 roots, and F, S, M, O as evidentiality, register, mood and person, with phase as aspect (glyph-primitives.md §5).
21. Flag: the kernel activation window
Iteration 8. Owner's intention; to be designed after the kernel runs. A small window that shows the kernel's real work as it starts and reads its first lines, drawn with the T5 primitives, with one animation per kernel operation, and able to lead the pace (the kernel takes its next step when the last animation completes). What the first build must already provide: a trace of events for every Stage 0 and pipeline step; a step-by-step runner where pacing changes timing only, never results; one event vocabulary shared by the trace, verbose-genesis and the window (glyph-primitives.md §8).
Changelog
| Iteration | Date | Change |
|---|---|---|
| 10 | 2026-12-01 | spec-v0.1b.md: the consolidated specification and coding baseline, for the Stream section's Spec tab and the design register; it lists ten choices for the owner to confirm. handoff-braille-view-pack.md for further work on the Braille view pack. |
| 9 | 2026-12-01 | glyph-sets.md: bullae and tokens compared with STREAM (mostly already shared); Set A (combinatory) and Set B (impressions: U+2800 + byte, so a position is one character and the header two) for all 128; optional family badges; glyph sets as reader-held view packs; label pack structure decided (roots, inflection templates, idioms; resolution order); text headers T4c and T4f; Q12 decided. |
| 8 | 2026-12-01 | Glyph primitives rethought from the kernel's mathematics (glyph-primitives.md): zero is unmarked; operators ∈ ≡ ⊢ →; marks for 1 bits; phase corners; the moves as glyph edits; the 128 as an inflected verb system (8 roots × evidentiality, register, mood, person, plus aspect); all 128 tabulated. Clay v2 added as an input with its conflict table. Views T1–T5 (§20). Kernel activation window flagged with its trace requirements (§21). Build specs #12–17, descriptor draft #18, 24 conformance vectors #19, all approved by the owner. |
| 7 | 2026-12-01 | Owner accepted the proposals overall: Q1, 2, 4–11, 13–15 decided, including ACT end = D 0 end (D-02) and v1 logs staying under v1 for now. Text-form options for the header (§1.4, still open); time delta 14 bits with anchors (§1.5); the kernel-minimalism principle (§18); design work before the first build, with the role-slot finding (§19). |
| 6 | 2026-12-01 | Two families of link (§3.7): continuation links keep the 8-element monoid; evidence links (records, actuates, anticipates, realises, senses, under) each get a contract. Extending the monoid with an F-flip rejected, with reasons; F-flip kept as a drift filter. Cost: only lines with evidence links are checked, in step 7. Owner approved. |
| 5 | 2026-12-01 | Corrected round 4 after the owner's challenge: may takes every phase (grants that take time to take effect; access scans), so no fact-form is invalid in advance; permission spans stay standing (validity role, grant, revoke) and one-off permissions are a use count (§3.6). Corrected the is begin/end example. Option A set out in full as a two-byte "what + shape" layout carrying every v0.1 short-header field in 28 bits (§1.3.1). Q12 added. Exchange log added (exchanges.md). |
| 4 | 2026-12-01 | Phase analysed and set out (§3.6): (opens, closes), the separation rule against D, M and not-yet, effect timing, begin/end pairing, 96 invalid fact-forms, ACT end. Owner approved the direction. Type-byte options (§1.3); proposed: c in one byte, phase separate. g_P guard; Stage 0 D2/D11 and pipeline step 7 updated. Open: phase numbering (Q10), type byte (Q11). |
| 3 | 2026-12-01 | Renamed the direction v0.2 → v0.1b (owner). Default wire changed to 7 bits checked, with the filtering-cost reasoning (§1.2). Relations established as four operations with laws, an effect-law self-check, the unfolding order, and operational readings of every bit (§3.4); observed and authoritative partitions (§3.5). Stage 0 D1/D13 rewritten. Lineage against notes 06, 08, 16, DIGEST and mark-boundary (§16). Iteration recording (§17, iterations.csv). |
| 2 | 2026-12-01 | Added seed kind item (a resource) as the role default for members placed with a location role (§6.1), so location can classify an unnamed kind. Corrected the class rule: origin cannot separate money from resources (§7.3). Added intake from outside for declared holdings (§7.2), resolving names (§2.1), and the v0.1 vs v0.1b type-bit budget (§1.1). Owner decided that printing the start-up is an audit option, off by default (§11.1). Added companion documents: work plan, system overview, design rationale, mathematics. |
| 1 | 2026-11-30 | First version. Collects: single-meaning bits, derived F/S/O, the μ/ν/σ laws, the pipeline, guards, births by first mention, role defaults, unit symbols as kinds, class by origin, kind traits, tags as boundaries, transfers, ownership forms and notification classes, index efficiency, Stage 0, opening entries, setup policies with strict modes, kernel consequences, effects on D-01/02/03/05/11. |
STREAM v0.1b: technical work plan
Lab: 2026-11-30-v0-1b-direction-claude · Date: 2026-12-01 · Status: working draft, for the owner to approve, amend or reject per section.
Design source: master-design-note.md (this lab). Section numbers written as "note §n" point there.
Companions: system-overview.md, design-rationale.md, mathematics.md.
This plan covers building the kernel and the system around it: encoding, log, reader, Books, authority, packs, setup, indexes, the seed language, the 128-position table, interfaces and migration. It is language-agnostic. Appendices A–C say how to approach it in assembly, C and Python. The existing Rust v1 kernel (crates/) stays the running reference for v1 and a source of tested parts; Appendix D says how it relates.
0. Ground rules for the build
- Specification first. Every work package (WP) starts by writing its rules as text plus test vectors. Code follows. A disagreement between code and text is a bug in one of them, and gets fixed in writing.
- One reference implementation, then a second. Build a small, readable reference first; Python suits this (Appendix C). A second, fast implementation (C, Rust, or C with assembly for hot paths) must then agree with it on every vector. That agreement is freeze gate G1 in the v0.1 header draft, applied to the whole kernel.
- Determinism. No wall clock, randomness, floating point, hash-map iteration order, locale or thread timing may affect any result. Quantities are decimal strings or scaled integers; times come only from entries.
- One code path. Submission and replay (
open) run the same pipeline (note §4). - Pure core, thin shell. The kernel core is pure functions over
(state, entry) → (state', result). Storage, network, CLI and clocks live outside it. - Everything refused is explained. Each refusal has a stable code and a short reason, and is journaled.
- Gated decisions stay gated. A WP that depends on an undecided item (§9) implements it behind a named parameter, with every candidate value covered by tests, until the owner decides.
1. Architecture
Layers, lowest first. Each layer depends only on the layers below it.
L13 Views and applications boards, balances, timelines, notifications, drift
L12 Interfaces CLI, library API, text spelling, service endpoints
L11 Indexes and lenses posting lists, masks, folds, checkpoints
L10 Seed language (unfolding) relation · rule · action · activate · invoke · fresh · emit · retire
L9 Packs and policies BIND, label packs (the 128 table), policy packs, strict modes
L8 Authority closure delegation reachability, attenuation, goal-directed evaluation
L7 Pipeline and log store step, batches, refusal receipts, segments, open/replay
L6 Kernel core births, derivation, laws, guards, effects
L5 State containers Struct · Reg · Auth · Books · Open · Sym
L4 Symbol table names → ids, births, back-references
L3 Entry model roles, quantities, cites, absence codes
L2 Header codec v0.1 bitpack and the v0.1b type field
L1 Hashing and seals SHA-256, segment hash, chain
L0 Bytes and canonical form canonical JSON (v1), ASCII header alphabet
Data flow for one line: bytes (L0) → header + payload (L2, L3) → names resolved or born (L4) → F, S, O derived, c assembled, laws, guards, effect (L6) → committed to state (L5) and log (L7) → indexes updated (L11) → views refresh (L13).
2. Data model (language-agnostic records)
Field types: u8/u16/u32/u64 unsigned integers; id = dense symbol-table integer; pos = log position (u64); hash = 32 bytes; dec = canonical decimal string or scaled integer with a declared scale; bits = bitset.
| Record | Fields |
|---|---|
| Header | type field (6 or 7 bits + phase 2), role presence (4), estimate (1), change (1), time delta (n bits), extended-follows (1); extended: absence kind × 4 (3 bits each), object/kind index (12), check bits (6) |
| Entry | pos, header, rec (id), for (id or none), roles: map role → (id or literal), quantity (dec, unit id) or none, cites (pos or none), source (id or none), payload hash |
| Symbol | id, canonical name, kind (id), owner (id), class (record/resource), traits (bits), issuer (bool), born (pos), live (bool) |
| Kind | a Symbol whose kind is kind; plus declared class (optional), unit dimension (optional, from packs) |
| Membership | member (id), boundary (id), opened (pos), closed (pos or none) |
| Property | bearer (id), property (id), value or withdrawn, set at (pos) |
| Grant | id, holder, granter, actions (set of positions or a position mask), scope (set of ids or a boundary), validity (pos or time interval), depth (u8), granted (pos), revoked (pos or none), kind: record / mandate / permission |
| Book | book id, unit id, posted (dec), reserved (dec), issuer (bool), outside (bool) |
| OpenItem | pos, c, kind: establishment / pending, consumed by (pos or none) |
| Refusal receipt | pos, digest of the submitted line, code, reason, failing guard |
| Checkpoint | segment number, chain value, state root hash, symbol count, index roots |
| Pack | hash, name, version, declarations (kinds, units, classes, labels, policies) |
| Setup policy | name, value (note §12.3), source (genesis or pack pos) |
3. Work packages
Each WP lists: purpose · depends on · deliverables · method · tests · exit.
WP01 Canonical bytes (L0)
- Purpose: byte-exact parse and serialise, so that "canonical" is checkable.
- Depends: none.
- Deliverables: canonical JSON writer and reader (v1 rules: keys in byte order, no duplicates, no whitespace, integers only, quantities as decimal strings); the ASCII 64-symbol header alphabet codec; line framing.
- Method:
canonical(bytes) ⇔ serialise(parse(bytes)) == bytes. - Tests: v1 conformance case 04 (non-canonical); round-trip of all v0.1 header vectors; fuzzing for crashes and non-idempotence.
- Exit: every v1 conformance case gives the expected open result at the byte level.
WP02 Hashing, seals and chain (L1)
- Purpose: v1 seal semantics, unchanged.
- Depends: WP01.
- Deliverables: SHA-256; segment hash over all bytes before the seal line;
h' = sha256(hex(h) ‖ hex(seg_hash)); genesis chain 0²⁵⁶; segment OPEN carryingprev. - Tests: v1 cases 02, 03, 06; NIST SHA-256 vectors.
- Exit: byte-identical chain values to the Rust v1 kernel on every conformance log.
WP03 Kernel descriptor and Stage 0 (L1–L6 constants)
- Purpose: the kernel as data, plus start-up (note §11).
- Depends: WP02.
- Deliverables: the v0.1b descriptor text (D1–D16); its hash K; constant tables (bit projections, μ/ν/σ, seed kinds, role defaults, guard order, refusal codes); the start-up self-check (128 × 6 bit-law comparisons, plus the four effect laws on a sample state, note §3.4); the canonical bootstrap transcript generator; the
verbose-genesiswriter (off by default). - Tests: the self-check passes; the transcript is byte-identical across implementations; the preamble check accepts the matching K and refuses others (v1 case 05).
- Trace (round 8): every Stage 0 step emits a trace event from one shared vocabulary (also used by
verbose-genesisand the future activation window, note §21). - Exit: two implementations produce the same K and the same transcript.
WP04 Header codec (L2)
- Purpose: encode and decode headers, v0.1 and v0.1b.
- Depends: WP01.
- Deliverables: v0.1 short and extended header exactly as drafted; v0.1b type field with
wire.type= 7 bits checked (default) or 6 bits (compact profile) (note §1.1–1.2), with the freed bits assigned to the time delta; the stored-versus-derived check on write; typed absence codes 0–6 (7 reserved, refused); check bits; header-only filter function; the two-byte "what + shape" layout (note §1.3.1, option A, pending owner) alongside the v0.1 layout; printable spelling per Q12; phase read as (opens, closes) through a table, so either numbering works (note §3.6, Q10). - Gated by: X06 overflow rule (D-09), the
wire.typechoice, versioning in the first field (G4). - Tests: v0.1 vectors V01–V10 decode; X01–X08 refuse as specified; property test: decode(encode(h)) = h for all valid h; every single-character corruption of an extended header is caught.
- Exit: all published vectors pass in two implementations.
WP05 Entry model and text spelling (L3)
- Purpose: the structured entry and its plain-text form.
- Depends: WP01, WP04.
- Deliverables: role set and role order (kernel slots); quantity parsing with unit symbols before or after the amount (
120 EUR,€120,5 kg,3h), producing (dec, unit name);cites,source,for; absence per role. - Tests: a unit-symbol corpus (prefix, suffix, glued, spaced, multi-character); decimal edge cases (scale, sign, leading zeros refused); missing versus absent-by-code.
- Exit: text spelling ⇄ structured entry ⇄ canonical bytes round-trips.
WP06 Symbol table and births (L4)
- Purpose: resolve names; births by first mention (note §2.1, §6, §10).
- Depends: WP05.
- Deliverables: append-only table name → id (dense, birth ordinal) and id → Symbol; provisional births (discarded on refusal); role defaults; principals self-owned; back-references by id or birth position; per-segment birth lists.
- Method: a miss during resolution is the birth; no separate existence check.
- Tests: births are deterministic across replays; refused entries create nothing; strict-mode policies refuse instead of birthing; back-references resolve to the same id as names.
- Exit: replaying any log twice gives an identical symbol table hash.
WP07 State containers (L5)
- Purpose: the six containers with their algebra (
mathematics.md§5). - Depends: WP06.
- Deliverables: Struct (membership intervals; single-place rule for resources); Reg (last-writer-wins map with ⊥ and
withdrawndistinct); Auth (grant store); Books (posted, reserved, issuer, outside); Open (live establishments and pending items); Sym (from WP06). Each has: apply-delta, undo-delta, root hash, segment summary. Struct, Reg and Books are split into authoritative and observed partitions by F (note §3.5). - Tests: composing segment summaries in any grouping equals sequential application (associativity); Books summaries in any order equal (commutativity); ⊥ is never confused with 0 or withdrawn.
- Exit: state root hash is identical across implementations after every conformance log.
WP08 Derivation, actor and affected party (L6)
- Purpose: F, S, O and c (note §2).
- Depends: WP07.
- Deliverables:
actor(e),affected(e)per relation;F,S,O; assembling c; the stored-versus-derived check when 7 bits are stored. - Tests: a table-driven suite covering every (R, role pattern, owner relation, kind class, source presence) combination; the 75-entry corpus re-read with the mismatch report (feeds WP21).
- Exit: totality: every admitted entry gets F, S, O, or a stated refusal code.
WP09 Laws and citation checks (L6)
- Purpose: the bit laws and the use-once rule (note §3).
- Depends: WP08.
- Deliverables: μ, ν, σ; undo and settle checks; begin/end pairing (end cites an in-progress begin with the same c, and uses it up); Open-items consumption, including in-progress items; refusal codes for each failure.
- Tests: property tests over all 128 values (involution, idempotence, commuting); scenario tests: double settle, double reverse, undo of the wrong type, counterparty settle with ⊕8, settle by the same actor without ⊕8.
- Exit: no sequence of entries can consume an open item twice (fuzzed).
WP09b Evidence links (L6)
- Purpose: links between different acts (note §3.7).
- Depends: WP09, WP16 (the per-position header summary).
- Deliverables: the six kinds (records, actuates, anticipates, realises, senses, under); a written contract per kind (required roles, bit constraint, used-up rule); the per-position summary of header bytes plus used flags; refusal codes; the evidence graph as an index for views (audit trails, "what supports this balance").
- Tests: a reported line can be recorded into a book only once; an outcome can't be recorded for an intent twice; a forecast can't cite a pending line as a fact; senses and under add no work beyond g_F and g_O; evidence links never use up targets unless their kind says so; the drift filter (c ⊕ 64) pairs frame and world lines without any link.
- Exit: reconciliation of a bank-statement feed and a meter feed runs end to end, with every accepted line traceable to its observation.
WP10 Guards (L6)
- Purpose: the conjunction of guards in fixed order (note §5).
- Depends: WP09, WP13 for g_O.
- Deliverables: g_F, g_S, g_R, g_D, g_M, g_O, record-right, policy; a stable refusal code table; a "why" explanation per refusal; the rule that packs only add conditions.
- Tests: one positive and one negative test per guard per relation; ordering tests (the first failing guard is the one reported); policy packs cannot weaken a kernel guard.
- Exit: every refusal in the conformance suite has the expected code.
WP11 Effects (L6)
- Purpose: the four operations behind the relations, each with its law (note §3.4, mathematics §5.5): enclose (in), call (is), cross (to), self-application (may).
- Depends: WP10.
- Deliverables:
in: open or close membership; resources move atomically between places.is: set, replace or withdraw a property.may: add or close a grant.to: post both legs, or reserve (M = 1), or invert a cited entry (D = 1);outside:<unit>books; issuer books.- All relations: update Open-items.
- Tests: the four effect laws as property tests; conservation (sum of all books per unit = 0 after every frame entry);
available = posted − reservednever below zero for non-issuer, non-outside books; a hold followed by post, void or timeout leaves the correct balances. - Exit: conservation holds over fuzzed logs of 10⁶ transfers.
WP12 Pipeline, batches and log store (L7)
- Purpose: the ten-step pipeline and durable storage (note §4).
- Depends: WP03–WP11.
- Deliverables:
step(state, entry); atomic batches (each entry typed against the state before the batch, unless the owner decides otherwise); refusal receipts with sticky retries (same digest → same receipt); segment management;open= replay through the pipeline; crash recovery (a torn final line is detected and truncated, never half-applied). - Tests: replay = submission (metamorphic test); kill-and-restart at random points; v1 retry semantics.
- Trace and pacing (round 8): every pipeline step emits a trace event; a step-by-step runner advances one event when told to. Test: a paced run and an unpaced run reach identical state.
- Exit: a log written by one implementation opens with identical state in the other.
WP13 Authority closure (L8)
- Purpose: may-paths, attenuation and revocation (note §3.3, §5).
- Depends: WP07.
- Deliverables: reference semantics = Reader A (finite relational closure, positive rules plus stratified negation); goal-directed evaluation (magic sets or tabling) for per-query cost; incremental maintenance that handles REVOKE (delete-and-rederive or counting); Reader B kept as a comparison machine; the D2 (branching delegation) and D5 (seeded bad edge) probes from the discriminator.
- Tests: A and B agree on all forest-shaped probes; A admits branching delegation; incremental results = full recomputation after every entry; seeded bad edges cannot exist because
openreplays through admission. - Exit: per-query cost within budget (§7) at 10⁵ grants.
WP14 Genesis, setup and policies (L7, L9)
- Purpose: the opening of a log (note §12).
- Depends: WP12.
- Deliverables: GENESIS (atomic; first and only; roots; clock; timezone; seed hash; policy hashes); the setup-policy registry with defaults and strict values; "policies only tighten"; the readiness predicate per principal; the
stream initflow with a root name and a public key (ed25519), and named-trust logs labelled as such. - Tests: the conformance vectors from prep file 05 (first entry not GENESIS; second GENESIS; recorder not a root; seed mismatch; empty roots; broken seal chain together with a genesis failure); every strict-mode setting refuses what it should.
- Exit: a two-line log is valid and lets a root write at once; strict-mode logs refuse births.
WP15 Packs (L9)
- Purpose: BIND and pack content.
- Depends: WP14.
- Deliverables: pack format and hashing (
blobs/<sha256>); one BIND line per pack; conflict rules (identical redeclaration accepted, conflicting refused); kinds with declared class; units with dimension, aliases (€=EUR) and conversions; policy packs; label packs. - Tests: binding a pack twice; conflicting packs; a pack that tries to loosen a policy (refused); aliases resolve to one symbol id.
- Exit: existing
packs/content loads, or a conversion note says what changes.
WP16 Indexes, lenses and checkpoints (L11)
- Purpose: fast reading with no scans (note §10).
- Depends: WP12.
- Deliverables: posting lists by c, kind, owner, unit, boundary and principal; header-only filters; a running-total structure for balances at any position (Fenwick tree or a per-segment prefix); checkpoints at seals with root hashes; cold rebuild = replay.
- Tests: an index equals a brute-force recomputation on random logs; a restart from a checkpoint gives the same state as a full replay.
- Exit: budgets in §7 met at 10⁷ entries.
WP17 Seed language (L10)
- Purpose: the unfolding kernel (note 15's eight forms).
- Depends: WP13, WP16.
- Deliverables: relation, rule, action, activate, invoke, fresh, emit, retire; the three kinds of state (definitions K, base facts B, derived closure C); termination under positive rules plus stratified negation over each entry's own roles; the activation dialogue (propose → check → record → activate → invoke); the seed text v0.1 and the canonical bootstrap transcript (L:1–L:16), run in both readers.
- Tests: the bootstrap transcript passes in A and B; refusal of a definition that uses an inactive rule; closure terminates on adversarial rule sets within the step limit.
- Exit: a seed-built log and a descriptor-built log give the same state for the shared transcript.
WP18 The 128-position table (L9)
- Purpose: positions as data, names as a label pack.
- Depends: WP03, WP15.
- Deliverables:
- Position registry: a data file with 128 rows (c, the seven bits, mirror c⊕1, fact twin c−16 for pending cells, view c⊕8, cell status: named / weak / empty / invalid). Generated, never hand-typed.
- Label pack: verb names per cell from
verb-table-128-fresh.md, with the owner's review edits (the HTML review export), hashed separately so renaming never changes K. - Naming checks: every named cell's mirror is named as its undo; every pending cell's twin is named as its outcome; no two cells share a name; v1 verbs map to their cells.
- Earning tests: for every named cell, one fixture showing the calculable consequence that distinguishes it from its nearest neighbour (note 19 §7). Cells without a fixture are marked weak.
- Empty and invalid cells: a position may be empty (allowed, no name) or invalid (an entry there is refused, with a code). Fact-forms (c, phase) are checked per cell: the kernel allows all 512, and the workbook may mark individual cells invalid.
- Phase names: optional phase-specific names in the label pack (where ZAKO's 13 phase-variant verbs go).
- Tests: registry generation is deterministic; the label pack passes the naming checks; every v1 conformance entry maps to a cell.
- Exit: the owner has accepted a label pack version; empty and invalid cells are marked.
WP19 Notifications and other views (L13)
- Purpose: views computed from bits and roles (note §9.1).
- Depends: WP16.
- Deliverables: a notification feed per principal (inform, awaiting response, undone, answered, reported from outside); balances; boards (membership); timelines (phase); drift (frame·is against world·is on one property); a refusal explorer.
- Tests: each notification class is produced by exactly the bit patterns specified.
- Exit: a demo application shows all five notification classes from a scripted log.
WP19b Glyph view and the activation window (L13, later)
- Purpose: T5 rendering (
glyph-primitives.md) and, later, the kernel activation window (note §21). - Depends: WP12 trace, WP18 label pack (roots, inflections, idioms).
- Deliverables: T5 renderer with three densities and ASCII fallbacks; font tests; later, the window, driven 1:1 by trace events and able to pace the kernel.
- Exit: every conformance vector renders in compact T5 identically across implementations.
WP20 Interfaces (L12)
- Purpose: how people and services use the system.
- Depends: WP12, WP14.
- Deliverables: CLI (
init,append,batch,open,verify,show,explain <pos>,why-refused <digest>,index rebuild,transcript); a library API mirroring the pipeline; a text spelling for entries; a service endpoint for submissions with idempotent retries. - Exit: the v1 README quick-start works against v0.1b with documented differences.
WP21 Migration from v1
- Purpose: v1 logs under v0.1b.
- Depends: WP08, WP18.
- Deliverables: the v1 verb (phase << 6 | code) → (R, D, M, phase) table; a converter; a mismatch report wherever the derived F/S/O disagree with the verb's implied ones (lemmas L2, L3); the reconciliation of the three control-character definitions and the seal-code discrepancies (COMMIT 0x14 vs 0x15, seal 0x01 vs 0x02); or, if the owner chooses, the rule "v1 logs stay under v1".
- Gated by: Stage H (owner).
- Exit: every v1 conformance log either converts with a clean report or is refused with a stated reason.
WP22 Conformance suite
- Purpose: the shared truth for every implementation.
- Depends: all WPs.
- Deliverables: valid and invalid vectors per WP; the corpus (75 entries) extended with counterexample entries (note: Phase 2 of the work plan); golden logs with expected state hashes; the bootstrap transcript; an expected-refusal table.
- Exit: two implementations agree on every vector.
WP23 Performance and limits
- Purpose: budgets (§7) measured, not assumed.
- Deliverables: benchmarks at 10⁴, 10⁶ and 10⁷ entries; step limits for closure and rule evaluation; size limits (line length, roles, pack size); a regression gate in CI.
WP24 Security
- Purpose: trust and abuse resistance.
- Deliverables: ed25519 keys for roots and principals (the private key never in the log); signature checks for recorders; bounded work per entry (no entry can force unbounded closure work); refusal of oversized or deeply nested input; a dependency review of the hash and signature libraries.
WP25 Documentation and release
- Deliverables: the v0.1b specification text (from the master note once decided); a reader's guide; companion documents updated; release notes produced from the record (labs spec §15); freeze-gate status.
4. Dependency graph
WP01 → WP02 → WP03 ─────────────────────────────┐
│ │
└→ WP04 → WP05 → WP06 → WP07 → WP08 → WP09 → WP09b → WP10 → WP11 → WP12 → WP14 → WP15 → WP18
│ ↑ │ │
└──────→ WP13 ───────┘ ├→ WP16 → WP17
├→ WP19
├→ WP20
└→ WP21 (needs WP18)
WP22, WP23, WP24 run alongside from WP04 onward; WP25 closes.
5. Milestones
| M | Name | WPs | Exit |
|---|---|---|---|
| M0 | Groundwork | — | repo layout, CI, vector format, decisions in §9 recorded as parameters |
| M1 | v1 byte parity | 01, 02 | all six v1 conformance cases match the Rust kernel |
| M2 | Kernel as data | 03 | identical K and bootstrap transcript in two implementations |
| M3 | Header | 04, 05 | v0.1 vectors pass; v0.1b type field behind wire.type |
| M4 | Names and state | 06, 07 | identical symbol and state roots across replays |
| M5 | Core for in and is |
08–11 (in, is) | derivation, laws, guards, effects for membership and properties |
| M6 | Books | 11 (to) | transfers, holds, reversals, intake, issuers; conservation fuzzed |
| M7 | Authority | 13, 10 (g_O), 11 (may) | grants, mandates, delegation; A/B probes |
| M8 | A working log | 12, 14 | genesis, setup policies, strict modes, open = replay, crash recovery |
| M9 | Packs and the table | 15, 18 | packs load; label pack v1 passes naming checks |
| M10 | Fast reading | 16 | indexes and checkpoints within budget |
| M11 | Seed | 17 | bootstrap transcript runs in both readers |
| M12 | Use | 19, 20 | CLI, API, notifications demo |
| M13 | Migration | 21 | v1 logs convert or are refused with reasons |
| M14 | Second implementation | 22 | full agreement; freeze gates G1–G5 recorded |
| M15 | Release | 23–25 | performance and security gates; Version Alpha with release notes |
6. Testing strategy
| Layer | Kind of test |
|---|---|
| All | unit tests per function; vectors in a shared, language-neutral format (JSON lines: input, expected output or refusal code) |
| Bit laws | exhaustive over 128 values |
| Codec | property round-trips; fuzzing; corruption detection |
| Core | table-driven guard and effect tests; scenario scripts |
| State | algebraic property tests (associativity, commutativity where claimed) |
| Pipeline | metamorphic: replay = submission; crash and restart |
| Authority | differential A vs B; incremental vs full recomputation |
| Whole system | golden logs with expected state roots; differential testing between implementations; long fuzz runs on random valid and invalid logs |
7. Performance budgets (targets, to be measured in WP23)
| Operation | Target |
|---|---|
| Header decode and filter | O(1); about 10⁸ headers/s in a compiled implementation |
| Name resolution | O(1) expected per name (one hash, one probe) |
| Birth | O(1) amortised |
| Derivation of F, S, O | O(1) after resolution |
| Laws | O(1): one or two bit operations plus one set lookup |
| Guards except g_O | O(1) |
| g_O (authority path) | O(depth) on forest-shaped data; O(V + E) worst case with goal-directed evaluation |
| Effect and commit | O(roles) |
| Balance at any position | O(log n) |
| Restart | O(size of one segment) from the latest checkpoint |
| Cold rebuild | O(n), once |
8. Security outline
- Roots are supplied trust (a public key, or a name labelled "named trust"). Nothing in the log can create a root after GENESIS.
- Every recorder's line is signed or arrives over an authenticated channel; signatures are checked before the pipeline runs.
- Bounded work per entry: closure and rule evaluation run under a step limit; exceeding it is a refusal, never a stall.
- Inputs are bounded: line length, role count, pack size and nesting depth.
- Secrets never enter the log, a pack, a refusal reason or an index.
9. Decisions that gate work
| Decision | Gates | Where |
|---|---|---|
| F, S, O meanings | WP08 onward | note §15 Q1 |
| Class rule and intake from outside | WP06, WP11 | note §15 Q2 |
| Trait set | WP06, WP19 | note §15 Q3 |
| Ownership forms | WP10, WP14 | note §15 Q4 |
wire.type (6 bits or 7 checked) |
WP04 | note §15 Q5 |
| Batch typing rule | WP12 | note §15 Q6 |
resource.second-place |
WP10 | note §15 Q7 |
| X06 delta overflow; versioning (G4, G5) | WP04 | D-09 |
| ACT end reading (D-02) | WP18, WP21 | D-02 |
| Migration of v1 logs (Stage H) | WP21 | Stage H |
| Label pack version | WP18 exit | owner review of the 128 table |
| Licence | WP25 | release blocker |
10. Risks
| Risk | Mitigation |
|---|---|
| Derived bits disagree with existing data | WP21's mismatch report makes every disagreement visible before migration |
| Authority closure is too slow at scale | goal-directed evaluation; measured in WP23; Reader B kept as a fallback for forest-only deployments |
| Births by first mention create clutter from typos | aliases in packs; strict mode per deployment; a "rename" view (a new name declared equal to an old id) |
| Two implementations drift | shared vectors; differential tests in CI on every change |
| Scope grows in every direction | each WP's exit is fixed; one milestone at a time |
Appendix A: approach in assembly
Use assembly only where measurement shows it pays, behind a C ABI. Keep a portable C fallback for every routine.
- Good fits: the header alphabet codec (table lookups and shifts); bit-field extraction and the law checks (single instructions:
xor,and,shr); SHA-256 through the CPU's extensions (x86 SHA-NI, ARMv8 crypto) or a vectorised multi-buffer form for seal verification; header-only filtering over a block of headers with SIMD compares (AVX2 or NEON), producing a bitmap of matching lines. - Poor fits: parsing, symbol tables, the closure, policies. Write those in C.
- Practice: pick the targets (x86-64 System V and AArch64) and the assembler (NASM, or GAS syntax). No heap allocation and no global state in assembly routines; the caller passes buffers. Constant-time handling is not needed (no secrets are processed), but determinism is: no floating point. Test each routine against the C fallback on every vector and on random input.
Appendix B: approach in C
A good fit for the fast second implementation, and for embedding in other systems.
- Language and build: C17,
-std=c17 -Wall -Wextra -Werror, with sanitizers (address, undefined) in CI;stdint.hfixed-width types everywhere; no undefined behaviour (no signed overflow, no type punning outsidememcpy). - Memory: arena allocators per segment and per batch; the symbol table as an open-addressing hash map plus a growable array; no allocation inside the pure core beyond the arena handed to it.
- Numbers: quantities as 128-bit scaled integers (two
uint64_t, or__int128where available) with a declared scale per unit; overflow is a refusal. - Errors: functions return a status code; refusal codes are an
enumshared with the vector format. - Hashing and signatures: a vetted library (for example libsodium for ed25519) and a small, tested SHA-256 (or the platform's).
- Testing: a small test framework (Unity or Criterion); libFuzzer or AFL++ harnesses for the codec, canonical parser and pipeline; differential tests against the Python reference through the shared vector files.
- Structure: one header file per layer; the pure core in its own translation units with no I/O.
Appendix C: approach in Python
The reference implementation and the oracle for differential tests.
- Version and style: a current CPython 3; standard library only for the core (
hashlib,json,decimal,dataclasses,enum); type hints throughout, checked with a type checker. - Clarity over speed: frozen dataclasses for records; pure functions
step(state, entry) -> (state, result); state as immutable maps (or copy-on-write dictionaries) so earlier states stay available for debugging. - Numbers:
decimal.Decimalwith a fixed context; neverfloat. - Testing:
unittest(as the repo already uses) plus Hypothesis for property tests (bit laws, codec round-trips, algebraic laws, conservation); the shared vector files as the source of expected results. - Role: generates the position registry (WP18), the bootstrap transcript (WP03) and golden logs (WP22). Every other implementation is checked against it.
- Running untrusted inputs: run with
-Iand keep fixtures in their own directories, as the repo's lab rules already require.
Appendix D: the existing Rust kernel
The v1 kernel in crates/ (21 tests, 6 conformance cases) stays as it is: the reference for v1 logs. Its canonical form, seals and chain code are candidates for reuse in WP01–WP02 because the rules are unchanged. A Rust second implementation of v0.1b would follow Appendix B's structure, with #![forbid(unsafe_code)] in the core. The choice of language for the second implementation is an owner decision.
STREAM v0.1b: how the whole system works
Lab: 2026-11-30-v0-1b-direction-claude · Date: 2026-12-01 · Status: working draft; explains the direction in master-design-note.md, which nothing here overrides.
This is the plain-language account. design-rationale.md explains why each choice was made, and mathematics.md sets out the formal model.
1. What STREAM is
STREAM is a way of keeping a record that services, people and agents can all write to and trust. Everything that happens is written as a line in a log. Nothing is ever changed or deleted. Balances, boards, permissions and timelines are not stored anywhere; they are worked out from the log by reading it from the start.
Applications built on STREAM (a ledger, a task board, an inventory, a permissions screen, a notification feed) are different ways of reading the same log.
2. The parts
| Part | What it is |
|---|---|
| Log | An append-only file of lines, split into sealed segments. Each seal is a hash of the segment, chained to the previous one. |
| Line (entry) | One recorded act or report: a short header plus a body naming the things involved. |
| Kernel | A fixed description of how lines are read: the meaning of each header bit, the checks, and the effects. Its hash is its identity, and every log names it in its first line. |
| Reader | The program that reads the log line by line and keeps the current state. Writing a line and reading it back go through the same steps. |
| State | What the reader knows so far: things and their owners, memberships, property values, permissions, book balances, open items. |
| Packs | Optional bundles of shared vocabulary (units, kinds, verb labels) and policies, adopted by one line each. |
| Views | What applications show: balances, boards, notifications, drift between what was set and what was seen. |
3. Four kinds of relationship
Every line changes one of four kinds of relationship:
| Relation | What it records | Examples |
|---|---|---|
| in | membership: something is inside a boundary | a task on a board, a device on a host, an invoice tagged "urgent" |
| is | the value of a property | a status, a setting, a price, a measured temperature |
| may | a permission | who may record, approve, spend or use something |
| to | a quantity moving between books | a payment, a stock movement, energy used |
4. The six questions every line answers
A line's position is the answer to six questions. Each has exactly two answers, except "which relation", which has four.
| Question | Answers |
|---|---|
| Does the line perform the act, or report something seen outside? | enact / observe |
| Is the thing a record or a resource? | record / resource |
| Is it committed, or pending until a later line settles it? | fact / possible |
| Is the affected party the one acting, or someone else? | self / other |
| Which relation? | in / is / may / to |
| Does it establish something, or undo an earlier line? | into / out of |
Together these give 128 positions. A fifth detail, the phase, says how the act sits in time. It answers two more questions: does this line open a span of time, and does it close one?
| doesn't close | closes | |
|---|---|---|
| doesn't open | sample (a reading inside something ongoing) | end |
| opens | begin | instant (a complete act at one point) |
The 128 positions are what get verb names. Phase is like a verb's tense: the same verb started, completed, or read in progress. So 128 positions × 4 phases = 512 ways a line can be typed. Every relation can use every phase: even a permission can take time to take effect (begin, end) or be read from an outside system (sample). How long a permission lasts is not a phase; it is the permission's validity, and a one-off permission is one that can be used once.
In the header, the position takes one byte and the phase rides in a second byte, together with which roles are present and whether the value is an estimate. Two bytes say what happened and how the record is shaped.
All six answers are written in the line's header, with the phase. Three of them (committed or pending, relation, establish or undo) are simply read. The other three can also be worked out by the reader, and are checked against what's written:
- perform or report: does the line name a source (a sensor, a bank statement, a registry)? If so, it reports.
- record or resource: what kind of thing is it? The kind's class was fixed when the kind first appeared.
- self or other: who owns the affected thing, and is that the party acting?
A line whose written answers disagree with what the reader works out is refused. So the meaning of a line can't contradict what the log already knows, and a tool can still filter lines by any answer from the header alone, without the reader's state. (A compact form that leaves those three out of the header exists for links where every reader keeps state.)
5. How a line is read
- Check the bytes are in canonical form and the segment's seal chain holds.
- Read the header.
- Resolve every name the line mentions: look up each thing in the reader's state. Anything never seen before is born here, owned by whoever is acting.
- Work out the three remaining answers and assemble the position.
- If the line undoes or settles an earlier line, check the link fits (§7).
- Run the guards: the checks that must all pass for the line to be accepted.
- Apply the effect: update memberships, values, permissions or balances.
- Commit. If anything failed, record a refusal instead, with the reason, and nothing is born.
5b. Four operations underneath the four relations
Each relation is the effect of one basic operation, and each operation obeys one rule that the reader checks:
| Relation | Operation | Its rule |
|---|---|---|
| in | enclose: put something inside a boundary | inside of inside is inside; nothing is inside itself; a resource is in one place |
| is | call: give a thing a value under a name | giving the same value twice changes nothing |
| to | cross: move an amount from one side to the other | crossing back undoes it; what leaves one side enters the other |
| may | apply the log's own rules to its later lines | permissions are exactly what can be traced back to a root |
They build on each other in that order, starting from GENESIS, which draws the log's boundary. That boundary's outside is where outside:EUR lives: bringing a holding into the log is a crossing of the log's own boundary.
Reports from outside (lines with a source) are kept apart from what the log itself enacts. A view can compare the two: that comparison is drift.
6. Guards
A guard is a yes/no check. A line is accepted only if every guard passes. Examples:
- A report must name its source.
- A resource can be in only one place at a time, and its books never go negative.
- To undo something, it must still be in force, and not already undone.
- If the affected thing belongs to someone else, the actor must hold a permission (a grant, or for a payment taken from someone else's book, a mandate).
- If an agent writes on someone's behalf, it needs a grant to do so.
- Every policy adopted through a pack must hold. A pack can add checks but can never remove one.
A refused line is still recorded, as a refusal receipt. Asking again with the same line gets the same answer.
7. Lines that refer to earlier lines
There are two kinds of pointing back, like the difference in a paper ledger between a correcting entry ("reverses entry 12") and a supporting document ("see bank statement, page 4").
Continuing the same act.
Two kinds of line continue an earlier act:
- An undo reverses what an earlier line established: leave a group, withdraw a value, revoke a permission, reverse a payment. It has the same position as the original with only the establish/undo answer flipped.
- A settlement completes a pending line: a request answered, a hold posted, an offer accepted. It has the same position with "pending" changed to "committed". If the other party records it, the self/other answer also flips, because it is now written from their side.
Each pending line can be settled once, and each established line can be undone once.
Based on another act. A line can also say it is a new act that rests on an earlier one:
- recorded from: accepting a bank-statement or meter line into the log's own books (each statement line can be booked into an account only once);
- outcome of: what happened after a command was sent;
- forecast from: a forecast built from earlier facts;
- realises: a pending line completed, with the observation that shows it happened.
These don't have to mirror the earlier line. Accepting a reported line produces an enacted one, which a correcting entry could never do, and one earlier line can support many later ones. Each kind has its own short list of requirements. A pending line can also simply be closed: withdrawn, declined or timed out. That leaves nothing behind except the record that it closed.
8. Money and other quantities
- One line per transfer. It names the book the quantity leaves, the book it enters, the amount and the unit. The reader posts both sides, so every transfer balances by its form.
- Units are written the way people write them,
120 EUR,€120,5 kg, and a new unit symbol is born the first time it is used. - Holdings brought into the log ("this account holds 500 EUR") are a transfer from a book named
outside:EUR, which stands for everything beyond the log. - Holds: a pending transfer reserves the amount. Posting it later cites the hold; voiding it or letting it time out releases the reservation.
- Push and pull: sending from your own book needs nothing more. Taking from someone else's book needs their mandate.
- Issuing: only a book declared as an issuer can create a quantity of a record unit (credits, points). Resource units (kWh, kg) can never be issued; they can only enter from outside.
9. Starting a log
A log needs exactly two lines to begin:
- Preamble: names the kernel by its hash.
- GENESIS: names the log, its root principals, its clock and timezone, and its setup policies. The roots are trusted because they are named here; that trust comes from outside the log.
After that, a root can simply start writing. Names are born as they are mentioned. Further setup is only needed for what the use requires: other writers (a grant each), acting on behalf of others (a grant), taking payments (mandates), issuing credits (an issuer book), shared vocabulary (packs).
Setup policies decide how strict the log is: whether names can be born by first mention or must be declared first, whether ownership can be given away without acceptance, and so on. Packs can make a log stricter later, never looser.
Optionally, for audit, a log can begin with a printout of every step the reader took to start up. It is off by default, because that printout follows entirely from the kernel hash in line 1.
10. Ownership given to someone else
When a line creates something for someone other than the actor, the actor may lose control of it at once. A log can treat this four ways: assign it outright (needs the new owner's prior grant); offer it and wait for acceptance; assign it but keep some rights; or assign it under a standing agreement. Which one applies when nothing was agreed is a setup policy.
11. What applications see
| View | Worked out from |
|---|---|
| Balances | every transfer, with holds shown separately |
| Boards and groups | memberships open at a point in time |
| Settings and status | the latest value of each property |
| Drift | a value that was set compared with the value last reported from outside |
| Permissions | grants in force, traced back to a root |
| Notifications | lines that affect something of yours that you didn't write: done to yours; awaiting your response; undone; your request answered; reported from outside |
| Timelines | phases: begin and end of activities, samples of signals |
12. A short worked log
1 preamble kernel = sha256:…
2 GENESIS log: shop · roots: actor:owner · clock: ntp · tz: UTC · policies: default
3 to from outside:EUR to book:till 500 EUR opening float (book:till born, owned by actor:owner)
4 in member mug-01 boundary shelf:A at: shop-floor the mug is placed; born as an item (a resource: one place at a time)
5 is subject mug-01 property price 12 EUR a price is set on the same mug
6 may holder agent:till-bot action: record sales for actor:owner the till agent may record sales for the owner
7 to from book:till to book:supplier pending, 200 EUR a hold for a supplier payment
8 to from book:till to book:supplier 200 EUR, cites 7 the hold is posted
9 to reverses 8 a mistaken payment is reversed
Reading line 8: committed, relation to, establish; performed, not reported; EUR is a record unit; book:till is the owner's, so "self"; it cites the hold at 7, whose position differs only in pending → committed. Guards: the owner owns the source book; available funds cover 200 EUR. Effect: the reservation is released and both sides post. Line 9 differs from line 8 only in establish → undo, so it posts the exact opposite.
Order matters for births: the mug is first mentioned with a location in line 4, so it is born as an item, a resource. Had the price come first, the mug would have been born as a generic record, and the one-place rule would not apply to it until a pack or declaration said otherwise.
STREAM v0.1b: design rationale
Lab: 2026-11-30-v0-1b-direction-claude · Date: 2026-12-01 · Status: working draft. Records why each element of master-design-note.md takes the form it does, what was tried before, and what was rejected. Nothing here is decided unless marked.
1. The problem v0.1b starts from
Work from 2026-11-26 to 2026-11-29 left four findings:
- The 6-bit stored type could not recover its three context bits.
derive_contextv2, given a kind table, an owner boundary and a frame anchor, recovered all three on 6 of 75 corpus entries. Its lemmas showed why: in the corpus, F, S and O are fixed per verb (L4), so the same stored bits carry different context (L1), the same actor is "self" for one verb and "other" for another (L2), and the same object is "frame" for one verb and "world" for others (L3). - The direction bit had no single meaning. Four uniform readings each passed only their own family's test; the per-relation reading (D1b) and Option 9's 2-bit mode each passed 4 of 5. The remaining disagreement is in the data: the corpus reads ACT end as D = 0, preset QToB4 as D = 1.
- Reader A and Reader B separate only at branching delegation (and at re-checking data seeded by the harness).
- The v1 kernel has known gaps: genesis-first and genesis-only aren't enforced, and
open()doesn't verify seals or run the entry checks.
v0.1b's direction answers 1 and 2 by changing what the bits mean, 3 by treating A and B as two evaluation strategies, and 4 by making open replay through admission.
2. Decisions and their reasons
2.1 One meaning per bit
Choice: each bit asks one question, the same for all four relations (note §1). Why: a bit whose meaning depends on the relation can't be used on its own as a filter, can't be derived from anything outside the verb, and turns every new verb into a fresh argument about what the bit means. With one meaning per bit, behaviour comes from combining bit rules (note §5), and two verbs at the same position behave the same by construction. Rejected: per-relation meanings (D1b), because the filter "all D = 0 lines" then means nothing across relations; verb-keyed tables, because they make the bits a cache of the verb.
2.2 F = enact or observe
Choice: F is 1 exactly when the line names a source.
Why: this is the line between what the system is the authority for and what it only reports. Sensor and observation standards (W3C SOSA/SSN) keep observation separate from actuation for the same reason. Kubernetes keeps desired state (spec) apart from observed state (status) and reconciles them; that pattern becomes a drift view comparing frame and world values of one property. A report can be contradicted later; an act can only be undone.
Rejected: "frame" as "about the record's own structure". It could not be read off a line, and in the corpus it tracked the verb.
2.3 O = is the affected party someone other than the actor?
Choice: O compares the owner of the affected object with the principal the line acts for (note §1, §2). Why: this is the difference that changes the guard. Acting on your own things needs ownership; acting on someone else's needs a grant, a mandate or evidence. It is also relative to who writes the line, which matches Hohfeld's correlatives: one legal relation looks like a right from one side and a duty from the other. That relativity is what lemma L2 had found in the corpus. Consequence: a counterparty's record of the same outcome flips O, so the settlement rule needs ⊕8 (note §3). Rejected: O as "the actor's identity class", which can't be computed, and O as fixed per verb.
2.4 S = record or resource
Choice: S is the class of the affected thing's kind, fixed when the kind is born (note §7.3).
Why: the class has calculable effects. On in, a resource is in one place at a time and a record may be in many. On to, an issuer may exist for a record unit but never for a resource unit.
History (iteration 2 correction): iteration 1 inferred the class from how a quantity first enters (issued means record, observed means resource). That failed because money and kWh both usually enter the same way, as a declared holding brought in from outside. The rule now defaults to record and marks a resource by a location role or a move; packs can declare either.
2.5 D = establish or undo
Choice: D = 1 means the line undoes a cited earlier line (note §1, §3).
Why: "which way something moves" is already said by roles (from, to, member and boundary). Putting it in D as well created the disagreement between readings. Undo has the same shape in every relation, and it is what the append-only rule needs: corrections are new lines that cite what they correct.
Consequences: Option 9's four modes are covered without widening the header (normal = D 0; reversal = D 1; edge = phase; compound = linked lines). ACT end establishes (D = 0) because closing is phase's job; that agrees with the corpus. Preset QToB4 would then read as an undo. D-02 remains an owner decision.
2.6 Three bits derivable, and stored and checked by default
Choice (iteration 3): the header carries the full 7-bit position; F, S and O are derived by the writer's reader and must equal what is stored (note §1.2). A 6-bit profile that omits them is kept for links where every reader holds state. Why: the three bits are total functions of the line and the state before it, so storing them adds no information, but it keeps the v0.1 header's main purpose: deciding from header bits alone whether a line can match a query. Computing them only would make every filter on F, S or O depend on the Register, which is costly for raw scans, archives and tools without state. Storing and checking means they are cheap to read and cannot be wrong. The v0.1 short header stores M and D twice, so even the 7-bit form frees 2 bits. History: iterations 1–2 defaulted to 6 bits; the owner raised the filtering cost, and the default changed in iteration 3.
2.7 Births by first mention
Choice: a name that has never been seen is born by the line that mentions it, owned by the actor (note §6). Why: the plainest use of a log (write one line about something) must work without setup. A rule that refuses unknown names makes every first use fail until someone has declared things, and pushes users into packs before they need them. Safeguards: births are deterministic, recorded as part of the line, and discarded if the line is refused. Principals are born self-owned and can't write until granted. Strict mode turns births off. Rejected: refusing unknown names (iteration 0); requiring a pack for any kind or unit.
2.8 Units are written, not declared
Choice: the symbol written with an amount is the unit, born at first mention (note §7.1).
Why: that is how people write quantities. A pack adds dimensions, aliases and conversions when they are wanted, but a log never needs one to record 5 kg.
2.9 One line per transfer
Choice: a transfer is one line naming from, to, amount and unit; the Books post both sides (note §8).
Why: transfers are the most frequent activity, so they need the leanest form. TigerBeetle stores a transfer as one record with a debit and a credit account and makes two-phase transfers out of a pending record plus a follow-up that posts or voids it. That shape maps onto STREAM's bits: push or pull is O, pending is M, reversal is D, and voiding is closing a pending item. Conservation then holds by the form of each line.
Exchanges: REA accounting pairs the two sides of an exchange (give and take) as linked events. In STREAM that is two linked transfers committed together, not a separate verb.
Rejected: separate lines per leg (two verbs for one event); a verb per transfer variant.
2.10 Declared holdings come from outside
Choice: "this book holds 500 EUR" is a transfer from outside:EUR (note §7.2).
Why: most money and most resources enter a log as a declaration, not by being issued or observed. Accounting books an opening balance against an equity account for the same reason: every amount has a source. The outside book's balance shows how much has been brought in.
2.11 Pending items, closing and duties
Choice: M = 1 lines change nothing committed. They are settled once by a fact that cites them, or closed (withdrawn, declined, voided, timed out) by the seed's retire, which needs no position of its own.
Why: the DEMO transaction pattern separates coordination acts (request, promise) from production acts (execute, state). FIPA's agent messages show that refuse and cancel leave the same state, so they share one operation. A duty (ODRL) is a pending act owed by the duty-holder, discharged by its fact. A prohibition is a guard.
2.12 Delegation and attenuation
Choice: delegation is a grant whose granter's own authority was granted, checked by an order on permissions (actions, scope, validity, depth). Why: object-capability security shows that authority can be narrowed but never widened, and that revocation works through an intermediary. W3C PROV records "acted on behalf of" as an attribute of an agent relation, not as a separate act. So DELEGATE is GRANT plus a check, not its own position.
2.13 Readers A and B
Choice: A's semantics (rules and closure) is the reference; it is evaluated goal-first so each query costs about what B's walk costs. Why: B's single-parent forest is a choice of representation, not a requirement for speed. Walking a branching delegation graph with a visited set is still linear per query.
2.14 open replays through admission
Choice: loading a log runs every line through the same pipeline as submission.
Why: it closes the v1 gap (open() doesn't verify), enforces genesis-first and genesis-only, and makes D-05 unnecessary, because no fact can exist that skipped the guards.
2.15 Setup policies only tighten
Choice: policies are fixed at GENESIS, and packs may only make them stricter (note §12.3). Why: a pack that could loosen policy could grant authority by being loaded. Keeping packs additive to guards keeps authority in grant lines only.
2.16 Printing the start-up
Decided 2026-12-01 (owner): an audit option, verbose-genesis, off by default.
Why: the start-up is fully determined by the kernel hash in the first line, so the printout adds no information; it is useful for teaching and audit. The canonical bootstrap transcript is published once per kernel version.
2.18 Relations as four operations with laws
Choice (iteration 3): Stage 0 defines four operations (enclose, call, cross, and the log applying its own distinctions to later lines), each with one checkable law. The relations in, is, to, may are the names of their effects (note §3.4).
Why: listing the relations and writing each effect separately declares them. Defining operations with laws lets behaviour follow from the laws, gives each relation a test it must pass to earn its name, and fixes an order in which they unfold from GENESIS.
Lineage: this restates note 08 (relations as operators on a common state), DIGEST §3 (the 2×2 and its logic table) and note 16 §9 (typed interpretations of cross, call and re-entry), under v0.1b's conditions: laws become start-up and conformance checks, undo is one cited operation, and outside is the outside of the genesis mark (note §16).
Open: whether may's operation is called re-entry (note §15 Q9).
2.19 Observed and authoritative state
Choice (iteration 3): lines that report (F = 1) write an observed partition; lines that enact (F = 0) write the authoritative one. Guards read the authoritative partition; drift is the difference. Why: it makes F a difference in what a line does, not only a label, and it gives reconciliation a defined place.
2.20 Phase as (opens, closes), kept apart from D, M and not-yet
Choice (iteration 4, direction approved by the owner): phase answers whether a line opens or closes a span of time. D closes a relation's standing; M marks an uncommitted act; the absence code not-yet marks a missing piece. The effect of a durative act lands at its end; the end cites its begin.
Why: before this, leaving a group could be written as in, D=1 or in, D=0, end, and a transfer in progress as a hold or a begin. Two spellings of one event make readers disagree; the ACT-end dispute (D-02) is that disagreement in real data.
Correction (iteration 5, after the owner's challenge): round 4 marked may × {begin, end, sample} invalid. Spans of permission are indeed not phases (they are standing: validity, grant, revoke), but the act of permitting can take time, and permission state can be sampled. So no fact-form is invalid in advance.
Resolves: DIGEST grades phase as forced; notes 05 and 06 say time can't come from a distinction. Both hold: the four-value shape is forced by two yes/no questions; time itself is supplied by the clock.
2.21 The type in one byte
Choice (iteration 4, proposed): the type is c, one byte and one ASCII code; phase is a separate 2-bit field, as in the v0.1 header. The 9-bit (c, phase) value is only a query key. Why: it keeps v1's one-byte type and the "a position is one ASCII character" property, and keeps naming at 128. Putting phase inside the byte (option B) would force F out of the header. Concrete form (iteration 5): two bytes, "what" (change flag + c) and "shape" (extended flag + phase + role presence + estimate). Every v0.1 short-header field fits in 28 bits instead of 30, byte-aligned for parsing and SIMD filtering. It is compression against v0.1 and one bit more than v1's byte for twice the type space. Open: owner decision (design note §15 Q11).
2.22 Two kinds of link: continuation and evidence
Choice (iteration 6, approved by the owner): a line may point back to continue an act (undo, the other side's record, settle), checked by the 8-element monoid; or to rest on an evidence link (records, actuates, anticipates, realises, senses, under), each with its own contract.
Why: the continuation check refused reconciliation, because accepting a reported line produces an enacted one (F changes), so the log couldn't say "I accepted that reading". Continuation and evidence also have different algebra: one commutes and is used up once; the other is order-dependent and reusable. A paper ledger keeps them apart the same way (a correcting entry against a supporting document).
Rejected: extending the monoid with an F-flip (16, then 24+ elements). It weakens the check with each move, claims crossings commute, which note 19 shows they don't, and still needs the same contracts.
Lineage: DIGEST step 11 (crossings between rows), relations-and-matrix.md ("What happens across row boundaries?"), note 16 (row crossings as compound operations), note 19 §9 (typed transformations; "flipping a bit supplies none of the evidence").
Cost: only lines carrying an evidence link are checked, in the existing link step, with no Register access.
2.17 Primitives stay outside the matrix
Choice: Laws of Form moves, seed forms and kernel framing (OPEN, COMMIT, BIND, ACK) are not positions. Why: the moves are the axes; the seed forms create, close and run lines; the framing structures the log that lines sit in. Giving them positions would mix the level that defines the matrix with the level it describes.
3. What this direction gives up
| Given up | In exchange for |
|---|---|
| A line that shows its full position on its own | three bits that can't contradict the state, and a smaller header |
| Per-relation shades of meaning for direction | one undo rule everywhere, and no header widening |
| Up-front declaration of everything (by default) | a log that works from its first line; strict mode keeps declaration available |
| The v1 verb list as the carrier of meaning | behaviour composed from bit rules; verb names become a separate label pack |
| v1 logs reading identically | a migration report showing exactly where they differ |
4. Sources consulted
- TigerBeetle, two-phase transfers and the transfer reference: https://docs.tigerbeetle.com/coding/two-phase-transfers/
- Resources, Events, Agents (REA): https://en.wikipedia.org/wiki/Resources,_Events,_Agents
- DEMO (Dietz): https://en.wikipedia.org/wiki/Design_%26_Engineering_Methodology_for_Organizations
- Hohfeld's legal relations: https://www.ics.uci.edu/~alspaugh/cls/shr/hohfeld.html
- FIPA communicative acts: https://www.dca.fee.unicamp.br/projects/sapiens/Resources/Agents/Platforms/FIPA/specs/fipa00037/PC00037E.html
- ODRL 2.2: https://w3.org/TR/odrl-model/
- W3C SOSA/SSN 2023: https://www.w3.org/TR/vocab-ssn-2023/
- W3C PROV-O: https://w3.org/TR/prov-o/
- Object-capability model: https://en.wikipedia.org/wiki/Object-capability_model
- Kubernetes controllers: https://kubernetes.io/docs/concepts/architecture/controller/
- In this repository:
docs/compact-header/bitpack-header-draft-v0.1.md,docs/kernel-model/DIGEST.md,spec/kernel.descriptor,spec/conformance/.
STREAM v0.1b: the mathematics
Lab: 2026-11-30-v0-1b-direction-claude · Date: 2026-12-01 · Status: working draft. Sets out the formal model behind master-design-note.md. Proofs are sketches; making them complete is work package WP22 in technical-work-plan.md.
1. Notation
| Symbol | Meaning |
|---|---|
| B = {0, 1} | bits |
| ⊕, ∧, ¬ | XOR, AND, NOT on bit vectors |
| ⊥ | undefined (never set). Distinct from 0, ∅, and w (withdrawn). |
| e, eₙ | an entry; the entry at position n |
| Sₙ | the state after entries 1…n; S₀ is the initial state |
| H | SHA-256 |
| ‖ | byte concatenation |
2. The position space
2.1 Positions are 7-bit vectors
C = B⁷ c = 64F + 32S + 16M + 8O + 2R + D, R = 2r₁ + r₀
bit i of c: 6:F 5:S 4:M 3:O 2:r₁ 1:r₀ 0:D
C is the 7-dimensional cube: 128 vertices; two positions are neighbours when they differ in one bit. Read as a vector space over GF(2) (the two-element field), ⊕ is vector addition.
2.2 Filters are subcubes
A filter fixes some bits: (c ∧ m) = v with mask m and value v (v ⊆ m). Fixing k bits selects a subcube of 2^(7−k) positions.
| Filter | m | v | Positions |
|---|---|---|---|
| all transfers (R = to) | 0000110 | 0000110 | 32 |
| all pending (M = 1) | 0010000 | 0010000 | 64 |
| pending transfers | 0010110 | 0010110 | 16 |
| all undos (D = 1) | 0000001 | 0000001 | 64 |
| world, resource | 1100000 | 1100000 | 32 |
- The intersection of two filters is a filter (combine masks; it is empty if they fix one bit to two values). So any conjunction of conditions on bits is one mask test.
- A union of filters is not a single filter in general. It needs a small set of masks, or a lookup table of 128 bits.
- Testing one line against any filter costs one AND and one compare.
2.3 Distances between related positions
| Relation | Bit change | Hamming distance |
|---|---|---|
| a line and its undo | bit 0 | 1 |
| a pending line and its outcome, same actor | bit 4 | 1 |
| a pending line and its outcome, counterparty | bits 4 and 3 | 2 |
2.4 Phase, and 512 against 128
Iteration 4. Phase is a second, separate space: P = B², read as (opens, closes).
| (opens, closes) | phase |
|---|---|
| (0, 0) | sample |
| (1, 0) | begin |
| (0, 1) | end |
| (1, 1) | instant |
Ordered by bits, P is a lattice with join ∨: begin ∨ end = instant, and sample is the bottom. The end of a begun act is p ⊕ 11.
- C (128) is what gets named: the verbs.
- C × P (512) is every way a line can be typed: each position in each of four aspects. As a query key it is a 9-bit value, and filters over it are still one AND.
- Valid forms: all 512 in the kernel. (Iteration 5 corrected iteration 4, which marked 96
mayforms invalid.) The Stage A workbook may mark individual cells invalid; there is no blanket rule per relation. - Stored: c in one byte and phase in a second byte with role presence (4) and estimate (1); the high bits of the two bytes carry the change and extended-follows flags (design note §1.3.1). 16 bits plus a 12-bit time delta = 28 bits, against v0.1's 30. The 9-bit (c, phase) value is never stored as one field.
- μ, ν, σ act on C only; phase is unchanged by them.
3. The three operations and their monoid
μ(c) = c ⊕ 0000001 (flip D) undo
ν(c) = c ⊕ 0001000 (flip O) the other side's record
σ(c) = c ∧ ¬0010000 (clear M) settle
- μ and ν are translations of the cube: bijections, each its own inverse.
- σ is a linear projection over GF(2): σ(a ⊕ b) = σ(a) ⊕ σ(b), and σ∘σ = σ. It is not invertible: it merges each pending position with its fact twin.
- Each acts on a different bit, so all three commute.
Presentation:
⟨ μ, ν, σ | μ² = 1, ν² = 1, σ² = σ, μν = νμ, μσ = σμ, νσ = σν ⟩
Elements: {1, μ, ν, μν} × {1, σ}, eight in all. These are distinct: σ ≠ 1 because it changes every position with M = 1. The monoid is the direct product of the Klein four-group {1, μ, ν, μν} and the two-element semilattice {1, σ}.
Consequence: every legal link between two lines (undo, settle, counterparty settle, and their combinations) is one of eight maps, each computed with at most two bit operations. The start-up self-check (note §11, 0.3) verifies the six defining relations on all 128 positions: 768 comparisons.
Parallel with Laws of Form: μ and ν are involutions, like crossing (cross twice = return). σ is idempotent, like calling (call twice = once). This is a structural parallel; nothing here derives the kernel from those axioms.
3.1 Reading the monoid in plain terms
Iteration 6. Each element is a way one line may point back at another to continue the same act:
| Element (u, v, s) | Link | Example |
|---|---|---|
| 1 = (0,0,0) | same act, same side | an end and its begin |
| μ = (1,0,0) | undo | SEND 6 → REVERSE 7 |
| ν = (0,1,0) | the other party's record of the same act | ATTEST 10 ↔ DECLARE 2 |
| μν = (1,1,0) | the other party undoes it | DECLARE 2 → DISPUTE 11 |
| σ = (0,0,1) | I settle my pending line | HOLD 22 → SEND 6 |
| σν = (0,1,1) | the other party settles my pending line | REQUEST 20 → GRANT 12 |
| σμ, σμν | a pending line answered by an undo | legal, rare |
Combining: undo and view by XOR, settle by OR. The monoid is the direct product of the Klein four-group {1, μ, ν, μν} (reversible moves, like crossing) and the semilattice {1, σ} (an idempotent move, like calling).
Citation check. For b citing a as a continuation, with d = c_a ⊕ c_b: legal iff (d ∧ ¬0011001) = 0, and if bit 16 is in d then a is pending and b committed. F, S and R can't change across a continuation.
3.2 Evidence links: a second, different structure
Iteration 6. Links between different acts (records, actuates, anticipates, realises, senses, under: design note §3.7) don't form a monoid of moves:
- They don't commute. Sensing after acting and acting after sensing can lead to different states (note 19 §9).
- They are many-to-many. A web of support (a directed acyclic graph over positions), not a chain of continuations.
- They are reusable, except where a kind says otherwise (
recordsonce per book,actuatesonce per intent). - Each has a bit constraint, not a bit move. For example,
recordsrequires F(a) = 1, F(b) = 0, same R and S.
Why not extend the monoid. Adding φ (flip F) gives (Z₂)³ × {1, σ}, 16 elements. Anticipation needs τ (set M), making M's part {1, σ, τ} and the whole 24. under would need moves on R. Each addition weakens the legality check, and every element of a commutative monoid commutes, which crossings don't. φ remains useful as a filter: the drift pair of a position c is c ⊕ 64.
4. Stored and derived bits
4.1 The derivation functions
Let E be the set of entries and 𝒮 the set of states.
F : E → B F(e) = [ source ∈ roles(e) ]
S : E × 𝒮 → B S(e, s) = [ class_s(kind_s(affected(e))) = resource ]
O : E × 𝒮 → B O(e, s) = [ owner_s(affected(e)) ≠ actor(e) ]
c(e, s) = 64F(e) + 32S(e,s) + 16M(e) + 8O(e,s) + 2R(e) + D(e)
s here is the state before e, plus e's own births (§7).
4.2 What "derived" means, precisely
Given the line and the state, F, S and O carry no further information: H(F, S, O | e, s) = 0. Storing them adds nothing a reader with the state doesn't already have. Storing them anyway turns them into a check: stored = derived, or refuse. That is the default from iteration 3 (7 bits checked), because it keeps filtering on every bit possible from the header alone (§2.2) without any state.
4.3 Why the earlier attempt could not work
With F, S, O fixed per verb, the map from stored bits to context was not a function: two lines with equal stored bits needed different context (lemma L1). That is a pigeonhole failure: 16 stored type cells (R, D, M) cannot name 86 distinct named positions without more information. Under v0.1b the extra information is the line's roles and the state, and the map becomes a function by construction.
4.4 Totality
The derivation is total on admitted lines when:
1. every kind has a class (guaranteed: seed kinds are classed; a new kind's class is fixed at birth);
2. every affected object has an owner (guaranteed: births assign one);
3. affected(e) names a role that is present, or the line is refused (an absence code on the affected role, other than "not-applicable", is a refusal).
5. State algebra
The state is a product: S = Struct × Reg × Auth × Books × Open × Sym. Each part has its own algebra, and that algebra decides how fast it can be read.
5.1 Books: an abelian group
Index books by pairs (book, unit). A frame transfer t = (f, g, q, u) is the vector
δₜ ∈ ℤ^(Books×Units), δₜ[f, u] = −q, δₜ[g, u] = +q, 0 elsewhere
(Quantities are integers at the unit's declared scale.)
- Zero sum: Σ_b δₜ[b, u] = 0 for every u. So δₜ lies in the subgroup Z₀ of vectors that sum to zero per unit.
- Closure: Z₀ is closed under addition and negation.
- Conservation (theorem): the balance vector after n entries, β = Σ δₜ over accepted frame transfers, lies in Z₀. Proof: induction on n; β₀ = 0 ∈ Z₀; each step adds an element of Z₀.
- Reversal is the inverse: δ_{μ(t)} = −δₜ.
- Order doesn't matter for sums: addition is commutative, so the balance after any set of transfers is independent of their order. Per-segment sums combine in any grouping.
Holds. A reservation vector ρ ≥ 0 sits beside β:
hold(f, q): ρ[f] += q
post(hold): ρ[f] −= q; β += δ
void / timeout: ρ[f] −= q
available = β − ρ
The one ordered check. For books that are neither issuer nor outside: available ≥ 0 after every line. The set {x ≥ 0} is not a subgroup (it isn't closed under negation), so this check depends on order and runs line by line. It is the only Books check that does.
Balances at any position. Keep a Fenwick tree (binary indexed tree) per (book, unit) over positions: update O(log n), prefix sum O(log n). Or keep per-segment totals: O(number of segments) + O(segment).
5.2 Register and membership: last-writer-wins maps
A Register update is a one-key map {k ↦ v}. Define override: (a ⊳ b)(k) = b(k) if k ∈ dom(b), otherwise a(k).
- ⊳ is associative: (a ⊳ b) ⊳ c = a ⊳ (b ⊳ c). The empty map is its identity. So (maps, ⊳) is a monoid.
- ⊳ is not commutative: later writes win.
- Consequence: per-segment summaries (the map of last writes in a segment) combine in a tree, and the Register at any position = checkpoint ⊳ (replay of at most one segment).
Value domain: V⊥ = V ∪ {⊥, w}. ⊥ is "key absent" and is never written; w (withdrawn) is a written value that overrides. So "never set" and "removed" stay distinct.
Membership: per (member, boundary), a state in {⊥, in, out} under the same override monoid. A resource adds a constraint: at most one boundary with state in per member. Like non-negativity, this is checked line by line.
5.3 Authority: base facts and a least fixed point
Base facts are grants, each live or revoked, held in an override map by grant id. Authority is a derived relation:
can(x, a) ⇐ root(x)
can(x, a) ⇐ grant(y, x, g) ∧ covers(g, a) ∧ held(y, g)
held(y, g) ⇐ root(y)
held(y, g) ⇐ grant(z, y, g′) ∧ g ⪯ g′ ∧ held(z, g′)
covers(g, a) holds when the act a (its position, object and time) falls within g's actions, scope and validity. held(y, g) says y holds at least g, so y may grant it.
The order ⪯ on permissions: g ⪯ g′ when actions ⊆, scope ⊆, validity ⊆, and depth strictly less. It is a partial order (a product of subset orders and the order on ℕ). Depth strictly decreases along a delegation chain, so every chain has length at most the root depth. That bounds every walk.
Fixed point. The immediate-consequence operator T of the rules is monotone on sets of facts within each stratum. By the Knaster–Tarski theorem it has a least fixed point, reached by iterating T from ∅. On a finite domain that takes at most |facts| iterations. With stratified negation (§6), strata are computed in order, each reaching its own least fixed point.
Cost. Evaluating the full closure per query is what makes Reader A expensive (294 rule applications per can query in the discriminator). Goal-directed evaluation (the magic-sets transformation, or tabling) computes only facts relevant to the query: O(V + E) for reachability, about the cost of Reader B's walk, with A's semantics (branching delegation included).
Incremental upkeep. Adding grants: semi-naive evaluation (only new consequences). Revoking: delete-and-rederive (DRed) or counting, because removing a base fact can remove derived facts that had other support.
5.4 Open items: a use-once set
Open is a set of positions. Establishing or opening a pending item inserts; undoing, settling or closing deletes. Use-once invariant: each element is deleted at most once. A second consumption finds the element absent and is refused. This is the same structure as unspent outputs in a UTXO ledger.
5.5 The four effect laws
Iteration 3. Each relation is the effect of one operation, and each operation satisfies one law. These are the algebraic facts of §5.1–5.4 restated as the defining property of each relation:
| Relation | Operation | Law | Algebraic statement |
|---|---|---|---|
| in | enclose | transitive, irreflexive | containment is a strict partial order on live memberships |
| is | call | idempotent | {k ↦ v} ⊳ {k ↦ v} = {k ↦ v} |
| to | cross | involution, zero sum | δ_{μ(t)} = −δₜ; Σ_b δₜ[b, u] = 0 |
| may | self-application | least fixed point | Auth = lfp(T); every derivation ends at a root |
The 2×2 as properties. in and may build relations whose chains compose (transitive closure). is and to attach values to keys that fold (override, sum). in and is relate a thing to its place or value; may and to relate two parties. So the grid is: {closure, fold} × {one thing, two parties}.
Self-check. At start-up and in conformance, each law is tested on a fixed sample state: set twice = set once; post then reverse = no change, and legs sum to zero; enclose a in b and b in c implies a in c, never a in a; the authority closure equals one more application of the rules to itself, and every chain ends at a root.
Partitions. The state is split by F into authoritative (frame) and observed (world) parts with the same structure. Guards read the authoritative part. Drift for a property p of x is the pair (authoritative(x, p), observed(x, p)) when they differ.
5.6 The fold
step : 𝒮 × E → 𝒮 × Result
Sₙ = π₁(step(Sₙ₋₁, eₙ))
step is total: it returns either an accepted state change or a refusal receipt (which also advances n). The log acts on states as a sequence; it is not a group action, because guards make some lines inapplicable in some states.
6. Logic of the seed language
- Positive rules with every variable bound and no
freshinside rules: least-fixed-point semantics; polynomial in the size of the data; always terminates. - v0.1b adds stratified negation over each entry's own finite set of roles (needed for F = "no source role") and the built-in ≠ (needed for O). Stratified programs have a unique perfect model and still terminate.
- Time-indexed facts: ownership and class are read "as of position n". Either the closure is evaluated over Sₙ₋₁ (the proposed pipeline), or position is an explicit argument of every predicate.
- Step limits: each evaluation runs under a fixed budget. Exceeding it is a refusal, so no line can stall the reader.
7. Births and the symbol table
- Ids are birth ordinals: the k-th name ever born gets id k. The map name → id is injective, and only grows.
- Resolution: one hash of the canonical name and one probe: expected O(1). A miss is a birth.
- Provisional births: for line e, s⁺ = s ⊕ births(e, s). If e is refused, s⁺ is discarded. So births happen exactly for accepted lines.
- Counts: the number of things of each kind is a counter updated at birth.
- Large tables: with a Bloom filter of m bits, k hash functions and n names, the false-positive rate is about (1 − e^(−kn/m))^k. At m/n = 10 and k = 7 it is about 0.8%. There are no false negatives, so "the filter says absent" means "definitely new": a birth with no disk read. Only false positives cost a lookup.
8. Kind traits
A kind's traits form a bitset T ∈ B⁹ (note §7.4). At each accepted line, T ← T ∨ t(e), where t(e) is the trait bits the line exercises.
- T only grows. Traits form the lattice (B⁹, ⊆), and the update is a join.
- A class of kinds (book, place, item, principal…) is a mask pattern on T. Testing it is one AND.
- A conflict is a forbidden pair of bits (for example a resource placed in two boundaries at once). Detecting it is one AND against a conflict mask.
9. The hash chain
seg_hashₖ = H(bytes of segment k before its seal line)
hₖ = H( hex(hₖ₋₁) ‖ hex(seg_hashₖ) ), h₀ = 0²⁵⁶
Changing any byte of segment k changes seg_hashₖ (unless an attacker finds a SHA-256 collision), and so changes hₖ and every later h. Verification recomputes every segment hash: O(total bytes).
A checkpoint at seal k records hₖ and a root hash of the state. Because the state is a deterministic function of the prefix, anyone who replays segment k from checkpoint k−1 can confirm checkpoint k.
10. Header arithmetic
The v0.1 short header is 30 bits (five 6-bit characters).
The default from iteration 3 is the 7-bit checked form.
| Type encoding | Type bits | Freed | Time delta bits | Range (units) | At 1 s per unit |
|---|---|---|---|---|---|
| v0.1 (Position 7 + Phase 2 + Modality 1 + Direction 1) | 11 | 0 | 12 | 0–4,095 | about 68 minutes |
| v0.1b, 7 bits checked (c + phase) | 9 | 2 | 14 | 0–16,383 | about 4.5 hours |
| v0.1b, 6 bits (R, D, M, phase) | 6 | 5 | 17 | 0–131,071 | about 36 hours |
| v0.1b two-byte form (iteration 5): byte 1 change + c; byte 2 ext + phase + roles + estimate | 9 | 2 | 12 (or 14) | 0–4,095 (or 16,383) | 68 min (or 4.5 h) |
The freed bits could go elsewhere; giving them to the delta answers most of the X06 overflow question.
11. Proof obligations, with sketches
| # | Claim | Sketch |
|---|---|---|
| P1 | Determinism: two readers with the same kernel and log reach the same Sₙ | Induction on n. step reads only Sₙ₋₁ and eₙ, and uses no clock, randomness, floating point or hash-map order. |
| P2 | Conservation | §5.1. |
| P3 | Use-once | §5.4: deletion from a set succeeds once. |
| P4 | Links are well-typed | Every accepted undo has c = μ(c_t); every accepted settlement has c ∈ {σ(c_t), νσ(c_t)}; both are checked before the guards. |
| P5 | Totality of derivation | §4.4. |
| P6 | Termination | Closure: §5.3 and §6. Every other step is bounded by the line's size. |
| P7 | Replay = submission | The same function step runs in both cases (note §4). |
| P8 | Packs can't grant authority | Packs add conjuncts to guards and tighten policies. can reads only grant facts. Adding a conjunct can only turn an acceptance into a refusal. |
| P9 | Bit laws | Exhaustive check at start-up over all 128 positions (§3). |
12. Cost summary
| Operation | Cost | Why |
|---|---|---|
| filter a line on header bits | O(1) | §2.2: one AND, one compare |
| check a link (undo, settle) | O(1) | §3: one or two bit operations, one set lookup |
| check an evidence link | O(1) per link; O(k) for a forecast citing k facts | §3.2: one header lookup, one XOR and one AND, plus a used-set lookup for records and actuates |
| resolve or birth a name | O(1) expected | §7 |
| derive F, S, O | O(1) after resolution | §4 |
| guards other than authority | O(1) | lookups and compares |
| authority check | O(depth) on forests; O(V + E) worst case | §5.3 |
| balance at any position | O(log n) | §5.1 |
| Register at any position | O(one segment) from a checkpoint | §5.2 |
| verify the chain | O(total bytes) | §9 |
STREAM v0.1b: glyph primitives and the 128 as one system
Lab: 2026-11-30-v0-1b-direction-claude · Round: 8 · Date: 2026-12-01 · Status: proposal. A view of the kernel, never the stored form (T1 stays canonical, design note §1.4). Every glyph choice is marked CHOICE where it isn't forced.
Input: inputs/stream-in-clay-v2.html (Muse, 2026-11-30) and its v1 system. This document rethinks the primitives from the kernel's mathematics instead of extending Clay's set; inputs/README.md lists where Clay v2 conflicts with rounds 1–7.
1. What is actually primitive in v0.1b
Listing what the kernel has, not what a record displays:
| Primitive | What it is in the kernel | Kind of thing |
|---|---|---|
| the mark | GENESIS draws the log's boundary; everything outside is outside |
the first distinction |
| the unmarked | the zero of every bit; the empty state S₀; ⊥ | the ground |
| four operations | enclose (in), call (is), self-apply (may), cross (to) | a choice of 4 (R) |
| five binary marks | F, S, M, O, D: each 0 or 1 | yes/no distinctions |
| phase | (opens, closes) | two yes/no distinctions about time |
| three moves | μ (undo), ν (other side), σ (settle) | edits on the marks |
| two link families | continuation, evidence | pointing back |
| seven absences | not-yet, unknown, withheld, not-applicable, refused, ambiguous, reserved | typed missing |
| estimate | a value given with a qualification | a modifier on a value |
| order and time | position (next) and the declared clock | supplied |
| root | trust supplied at GENESIS | supplied |
Everything else in Clay v2 (books, balances, grant chains, seals, sequence) is derived or framing: worth showing, but not primitive.
2. The governing principle: zero is unmarked
In Laws of Form the unmarked state is the void, and a mark is a distinction drawn in it. Applied to the position:
A bit that is 0 draws nothing. A bit that is 1 adds exactly one mark.
- c = 0 is the bare operator
∈: frame, record, committed, self, enter. - Every 1 bit adds one mark, so the number of marks equals the number of 1 bits among F, S, M, O, D. The glyph's visual weight is its distance from the plain act.
- The defaults the design already chose are all zeros: enacted, record, committed, self, establish. The ordinary line is the plain one; every departure is visible.
This also favours the phase renumbering (design note §15 Q10): with sample = 00, a reading is the bare operator, and begin, end and instant add corners. It doesn't force the decision; it shows what the numbering would buy.
3. The alphabet
The operators are real mathematical symbols whose ordinary meaning matches the operation. Marks are symbols whose mathematical meaning matches the bit.
3.1 The four operations (R)
| R | Operation | Glyph | Mathematical reading | ASCII fallback |
|---|---|---|---|---|
| in | enclose | ∈ |
membership: x ∈ B | in |
| is | call | ≡ |
identity, "is defined as" | is |
| may | self-apply | ⊢ |
turnstile: "entitles", as "proves" in logic | may |
| to | cross | → |
a map, a movement from one side to another | to |
3.2 The five marks
| Bit = 1 | Mark | Mathematical reading | Why this one | ASCII fallback |
|---|---|---|---|---|
| D (undo) | the operator struck: ∉ ≢ ⊬ ↛ |
negation | Spencer-Brown's crossing is negation; striking twice restores (μμ = 1) | ! prefix |
| O (other) | † after the operator |
the adjoint, the "other side" of an operator | the adjoint is an involution, A†† = A, exactly like ν | ' suffix |
| M (pending) | ◇ before |
modal "possibly" | possible, not yet actual; settling erases it (σ) | ? prefix (in absence slots ? is "unknown", so ASCII renderers use ~p: instead) |
| S (resource) | ▪ before |
a filled point: occupies one place | a resource is in one place; a record is unfilled (unmarked) | * prefix |
| F (reported) | ⟨ ⟩ around |
angle brackets: a measured quantity ⟨x⟩ | a report of what an outside source observed | <obs …> |
CHOICE: the operator glyphs and marks are chosen, not derived. What is forced is the structure: one operator per relation, one mark per 1 bit, nothing for 0.
3.3 Phase as corners
| (opens, closes) | Phase | Drawn | ASCII |
|---|---|---|---|
| (0, 0) | sample | ∶∈ (a ratio mark: a reading) |
:in |
| (1, 0) | begin | ⌜∈ |
[in |
| (0, 1) | end | ∈⌟ |
in] |
| (1, 1) | instant | ⌜∈⌟ |
[in] |
Begin and end, put together, draw instant: ⌜∈ + ∈⌟ = ⌜∈⌟. The law begin ∨ end = instant is visible.
3.4 The moves as edits
| Move | Edit on the glyph | Law, as seen |
|---|---|---|
| μ (undo) | strike or unstrike the operator | → ↔ ↛: twice returns |
| ν (other side) | add or remove † |
⊢ ↔ ⊢†: twice returns |
| σ (settle) | erase ◇ |
◇→ → →: erasing twice = once |
So every continuation link is a visible edit of at most three marks. A legal citation is one whose glyphs differ only by strike, dagger or diamond.
3.5 Links, absence, estimate
| Thing | Glyph | Note |
|---|---|---|
| continuation link | ⤺41 |
curls back to line 41: the same act, continued |
| evidence link | ⇜41 |
wavy back-arrow: a new act based on line 41; one per link, a kind letter may follow (⇜r41 records) |
| not-yet | … |
from Clay v2 |
| unknown | ? |
from Clay v2 |
| withheld | ■ |
from Clay v2 |
| not-applicable | — |
from Clay v2 |
| refused | ✕ |
from Clay v2 |
| ambiguous | ∨ |
changed from Clay's ~, which is the estimate marker; ∨ reads "one or the other" |
| reserved (refused on read) | ⊘ |
from Clay v2 |
| estimate | ≈ before a value |
approximately; the text form keeps ~ |
| the record's envelope | ⟦ … ⟧ |
kept from Clay: the bulla holds one whole record |
| genesis, the first mark | ⌐ |
the Laws of Form cross |
4. Comparison with Clay's glyphs
| Element | Clay v1/v2 | Proposed | Reason |
|---|---|---|---|
| in / is / may / to | ◯ ⊕ △ ▷ |
∈ ≡ ⊢ → |
each glyph reads as its operation in ordinary mathematics; ⊕ is XOR throughout our maths and would collide |
| F | ⟦ ⟧ / ⎊ |
⟨ ⟩ only when reported |
zero draws nothing; ⟦ ⟧ is freed for the record envelope |
| S | ▱ / ⯀ |
▪ only for resource |
⯀ has poor font coverage; zero draws nothing |
| M | ● / ○ |
◇ only for pending |
modal possibility; zero draws nothing |
| O | ⊙ / ⊸ |
† only for other |
adjoint is an involution like ν |
| D | ⤥ / ⤦ |
strike the operator | negation is crossing; μμ = 1 is visible |
| phase | · ⌜ ⌟ ∷ |
corners as (opens, closes) | instant = both corners |
| ambiguous | ~ |
∨ |
~ is the estimate marker |
| crossings | one glyph per record | link arrows only where links exist | round 6 |
Clay draws a mark for both values of every bit (ten modifiers). This proposal draws marks only for 1s (five modifiers), so the plain line is plain.
5. The 128 as one inflected verb system
Looking at the whole table at once, the 128 positions behave like one verb system with roots and inflections, the way natural languages build verb forms:
| Part | Bits | Grammatical name | Values |
|---|---|---|---|
| root | R, D | the verb itself | 8 roots: enter, exit, assert, withdraw, allow, revoke, transfer, reverse |
| evidentiality | F | did the speaker do it, or report it? | enacted / reported |
| register | S | about records or about physical things | record / physical |
| mood | M | real or not yet real (irrealis) | committed / pending |
| person | O | one's own or another's | own / another's |
| aspect | phase | point, start, finish, reading | instant / begin / end / sample |
Evidentiality, irrealis mood and aspect are real grammatical categories: many languages (Turkish, Quechua, Tibetan) mark grammatically whether the speaker witnessed something or is reporting it. STREAM's F is that category, applied to records.
What this changes:
- Naming becomes 8 roots plus rules. Every position has a regular reading built from its root and inflections ("pending transfer", "reported physical exit · another's"), computed, never missing.
- The fresh table's names become idioms: familiar words for common inflections (SEND = transfer; HOLD = pending transfer; COLLECT = transfer · another's; DISPATCH = physical transfer). A label pack carries roots, inflection templates and optional idioms.
- The 13 weak cells stop being a problem. They aren't missing verbs; they are rare inflections, and their regular reading always exists. An idiom can be added later or never.
- The glyph and the reading match one to one: the glyph's marks are the inflections.
6. Densities
| Density | Example: a hold of 120 EUR by book:ops to book:acme |
|---|---|
| compact | ⌜◇→⌟ HOLD |
| standard | ⟦⌜◇→⌟ HOLD · S:book:ops O:book:acme K:EUR M:120.00⟧ |
| audit | ⟦v0.1b ⌜◇→⌟ HOLD · S:book:ops O:book:acme K:EUR M:120.00 · rec:actor:owner · seg 3 #1042 · t 2026-12-01T10:00Z · ops: avail 380.00⟧ |
| a reported, adjusted reconciliation | ⟦⌜→⌟ SEND ⇜r41 · S:outside:EUR O:book:ops K:EUR M:500.00⟧ citing line 41, the reported statement line ⟦⌜⟨→⟩⌟ · S:outside:EUR O:book:ops K:EUR M:500.00 · src:bank-feed⟧ |
7. Font coverage and fallbacks
The operators, marks and corners (∈ ∉ ≡ ≢ ⊢ ⊬ → ↛ ◇ † ▪ ⟨ ⟩ ⌜ ⌟ ∶ ⤺ ⇜ ⌐) are in common mathematical fonts (DejaVu, Noto Sans Math, STIX, Cambria Math). Clay v2 itself flags ⯀ ⬢ ⎊ ⦾ ◬ as poorly covered. Every glyph has an ASCII fallback (§3), so a renderer can always degrade without losing information. The rendering must be tested on the machines that will show it.
8. Flag: the kernel activation window (design later)
Owner's intention, 2026-12-01. Recorded now so the kernel is built to allow it; designed after the kernel runs.
A small window that shows the kernel's real work as it starts and reads its first lines, using these primitives: ethereal, simple, provocative. Each kernel operation has one corresponding animation, and the animation can lead the pace: the kernel takes its next step when the animation of the last one completes.
What the kernel must provide, starting with the first build:
- A trace of events: every Stage 0 step (load the descriptor, hash K, build tables, check the bit laws, check the effect laws, set S₀, check the preamble) and every pipeline step per line (decode, resolve or birth, derive, links, each guard, effect, commit or refusal), each with its data.
- A step-by-step mode: a runner that advances one event at a time when told to. Pacing changes only timing, never results: times come from lines and GENESIS, not the wall clock, so a paced run and an unpaced run reach the same state.
- One event vocabulary shared by the trace, the
verbose-genesistranscript (design note §11.1) and the window, so they can't drift apart.
Glyph material for the window comes from §3: the first mark ⌐ at GENESIS; operators appearing; marks added and erased as bits are derived; strikes, daggers and diamonds as links are checked; corners opening and closing; ⟨ ⟩ drawing in when a report arrives.
9. Open questions
- Adopt the "zero is unmarked" principle and this alphabet as T5, replacing Clay's set?
- The 8 root names (enter, exit, assert, withdraw, allow, revoke, transfer, reverse)?
- Label packs as roots + inflection templates + optional idioms?
- Does the renumbering of phase (Q10) become worth doing at the freeze, given §2?
Appendix: all 128 positions
Glyphs omit phase (corners) and the record envelope. Idioms are from verb-table-128-fresh.md, with its weak-cell * marks.
| c | F S M O R D | Glyph | Reading (root + inflections) | Idiom (fresh table) |
|---|---|---|---|---|
| 0 | 0 0 0 0 in 0 | ∈ |
enter | JOIN |
| 1 | 0 0 0 0 in 1 | ∉ |
exit | LEAVE |
| 2 | 0 0 0 0 is 0 | ≡ |
assert | DECLARE |
| 3 | 0 0 0 0 is 1 | ≢ |
withdraw | WITHDRAW |
| 4 | 0 0 0 0 may 0 | ⊢ |
allow | ASSUME |
| 5 | 0 0 0 0 may 1 | ⊬ |
revoke | RENOUNCE |
| 6 | 0 0 0 0 to 0 | → |
transfer | SEND |
| 7 | 0 0 0 0 to 1 | ↛ |
reverse | REVERSE |
| 8 | 0 0 0 1 in 0 | ∈† |
enter · another's | ADMIT |
| 9 | 0 0 0 1 in 1 | ∉† |
exit · another's | EXPEL |
| 10 | 0 0 0 1 is 0 | ≡† |
assert · another's | ATTEST |
| 11 | 0 0 0 1 is 1 | ≢† |
withdraw · another's | DISPUTE |
| 12 | 0 0 0 1 may 0 | ⊢† |
allow · another's | GRANT |
| 13 | 0 0 0 1 may 1 | ⊬† |
revoke · another's | REVOKE |
| 14 | 0 0 0 1 to 0 | →† |
transfer · another's | COLLECT |
| 15 | 0 0 0 1 to 1 | ↛† |
reverse · another's | REFUND |
| 16 | 0 0 1 0 in 0 | ◇∈ |
pending enter | APPLY |
| 17 | 0 0 1 0 in 1 | ◇∉ |
pending exit | NOTICE |
| 18 | 0 0 1 0 is 0 | ◇≡ |
pending assert | PROPOSE |
| 19 | 0 0 1 0 is 1 | ◇≢ |
pending withdraw | DEPRECATE |
| 20 | 0 0 1 0 may 0 | ◇⊢ |
pending allow | REQUEST |
| 21 | 0 0 1 0 may 1 | ◇⊬ |
pending revoke | RESIGN |
| 22 | 0 0 1 0 to 0 | ◇→ |
pending transfer | HOLD |
| 23 | 0 0 1 0 to 1 | ◇↛ |
pending reverse | RECALL |
| 24 | 0 0 1 1 in 0 | ◇∈† |
pending enter · another's | INVITE |
| 25 | 0 0 1 1 in 1 | ◇∉† |
pending exit · another's | WARN |
| 26 | 0 0 1 1 is 0 | ◇≡† |
pending assert · another's | ALLEGE |
| 27 | 0 0 1 1 is 1 | ◇≢† |
pending withdraw · another's | CHALLENGE |
| 28 | 0 0 1 1 may 0 | ◇⊢† |
pending allow · another's | OFFER |
| 29 | 0 0 1 1 may 1 | ◇⊬† |
pending revoke · another's | SUNSET |
| 30 | 0 0 1 1 to 0 | ◇→† |
pending transfer · another's | PREAUTHORISE |
| 31 | 0 0 1 1 to 1 | ◇↛† |
pending reverse · another's | CREDIT-MEMO |
| 32 | 0 1 0 0 in 0 | ▪∈ |
physical enter | START |
| 33 | 0 1 0 0 in 1 | ▪∉ |
physical exit | STOP |
| 34 | 0 1 0 0 is 0 | ▪≡ |
physical assert | SET |
| 35 | 0 1 0 0 is 1 | ▪≢ |
physical withdraw | UNSET |
| 36 | 0 1 0 0 may 0 | ▪⊢ |
physical allow | ACQUIRE |
| 37 | 0 1 0 0 may 1 | ▪⊬ |
physical revoke | RELEASE |
| 38 | 0 1 0 0 to 0 | ▪→ |
physical transfer | DISPATCH |
| 39 | 0 1 0 0 to 1 | ▪↛ |
physical reverse | RETRIEVE |
| 40 | 0 1 0 1 in 0 | ▪∈† |
physical enter · another's | ATTACH |
| 41 | 0 1 0 1 in 1 | ▪∉† |
physical exit · another's | DETACH |
| 42 | 0 1 0 1 is 0 | ▪≡† |
physical assert · another's | ASSIGN |
| 43 | 0 1 0 1 is 1 | ▪≢† |
physical withdraw · another's | UNASSIGN |
| 44 | 0 1 0 1 may 0 | ▪⊢† |
physical allow · another's | LEASE |
| 45 | 0 1 0 1 may 1 | ▪⊬† |
physical revoke · another's | RECLAIM |
| 46 | 0 1 0 1 to 0 | ▪→† |
physical transfer · another's | DRAW |
| 47 | 0 1 0 1 to 1 | ▪↛† |
physical reverse · another's | RETURN |
| 48 | 0 1 1 0 in 0 | ▪◇∈ |
physical pending enter | SCHEDULE |
| 49 | 0 1 1 0 in 1 | ▪◇∉ |
physical pending exit | DRAIN |
| 50 | 0 1 1 0 is 0 | ▪◇≡ |
physical pending assert | STAGE |
| 51 | 0 1 1 0 is 1 | ▪◇≢ |
physical pending withdraw | PHASE-OUT |
| 52 | 0 1 1 0 may 0 | ▪◇⊢ |
physical pending allow | ENQUEUE |
| 53 | 0 1 1 0 may 1 | ▪◇⊬ |
physical pending revoke | YIELD |
| 54 | 0 1 1 0 to 0 | ▪◇→ |
physical pending transfer | RESERVE |
| 55 | 0 1 1 0 to 1 | ▪◇↛ |
physical pending reverse | CALLBACK* |
| 56 | 0 1 1 1 in 0 | ▪◇∈† |
physical pending enter · another's | BOOK |
| 57 | 0 1 1 1 in 1 | ▪◇∉† |
physical pending exit · another's | DETACH-NOTICE* |
| 58 | 0 1 1 1 is 0 | ▪◇≡† |
physical pending assert · another's | SPECIFY |
| 59 | 0 1 1 1 is 1 | ▪◇≢† |
physical pending withdraw · another's | WAIVE |
| 60 | 0 1 1 1 may 0 | ▪◇⊢† |
physical pending allow · another's | ADVERTISE |
| 61 | 0 1 1 1 may 1 | ▪◇⊬† |
physical pending revoke · another's | QUIT-NOTICE* |
| 62 | 0 1 1 1 to 0 | ▪◇→† |
physical pending transfer · another's | REQUISITION |
| 63 | 0 1 1 1 to 1 | ▪◇↛† |
physical pending reverse · another's | RETURN-AUTH |
| 64 | 1 0 0 0 in 0 | ⟨∈⟩ |
reported enter | LISTED |
| 65 | 1 0 0 0 in 1 | ⟨∉⟩ |
reported exit | DELISTED |
| 66 | 1 0 0 0 is 0 | ⟨≡⟩ |
reported assert | ASSERTED |
| 67 | 1 0 0 0 is 1 | ⟨≢⟩ |
reported withdraw | RETRACTED |
| 68 | 1 0 0 0 may 0 | ⟨⊢⟩ |
reported allow | ISSUED |
| 69 | 1 0 0 0 may 1 | ⟨⊬⟩ |
reported revoke | CANCELLED |
| 70 | 1 0 0 0 to 0 | ⟨→⟩ |
reported transfer | DEBITED |
| 71 | 1 0 0 0 to 1 | ⟨↛⟩ |
reported reverse | REVERSED |
| 72 | 1 0 0 1 in 0 | ⟨∈†⟩ |
reported enter · another's | DISCOVERED |
| 73 | 1 0 0 1 in 1 | ⟨∉†⟩ |
reported exit · another's | VANISHED |
| 74 | 1 0 0 1 is 0 | ⟨≡†⟩ |
reported assert · another's | REPORTED |
| 75 | 1 0 0 1 is 1 | ⟨≢†⟩ |
reported withdraw · another's | RESCINDED |
| 76 | 1 0 0 1 may 0 | ⟨⊢†⟩ |
reported allow · another's | RECOGNISED |
| 77 | 1 0 0 1 may 1 | ⟨⊬†⟩ |
reported revoke · another's | INVALIDATED |
| 78 | 1 0 0 1 to 0 | ⟨→†⟩ |
reported transfer · another's | RECEIVED |
| 79 | 1 0 0 1 to 1 | ⟨↛†⟩ |
reported reverse · another's | CHARGEBACK |
| 80 | 1 0 1 0 in 0 | ⟨◇∈⟩ |
reported pending enter | WAITLISTED |
| 81 | 1 0 1 0 in 1 | ⟨◇∉⟩ |
reported pending exit | LAPSING |
| 82 | 1 0 1 0 is 0 | ⟨◇≡⟩ |
reported pending assert | PROVISIONAL |
| 83 | 1 0 1 0 is 1 | ⟨◇≢⟩ |
reported pending withdraw | UNDER-REVIEW |
| 84 | 1 0 1 0 may 0 | ⟨◇⊢⟩ |
reported pending allow | SUBMITTED |
| 85 | 1 0 1 0 may 1 | ⟨◇⊬⟩ |
reported pending revoke | EXPIRING |
| 86 | 1 0 1 0 to 0 | ⟨◇→⟩ |
reported pending transfer | PAYABLE |
| 87 | 1 0 1 0 to 1 | ⟨◇↛⟩ |
reported pending reverse | REFUND-DUE |
| 88 | 1 0 1 1 in 0 | ⟨◇∈†⟩ |
reported pending enter · another's | NOMINATED |
| 89 | 1 0 1 1 in 1 | ⟨◇∉†⟩ |
reported pending exit · another's | DEPARTING |
| 90 | 1 0 1 1 is 0 | ⟨◇≡†⟩ |
reported pending assert · another's | FORECAST |
| 91 | 1 0 1 1 is 1 | ⟨◇≢†⟩ |
reported pending withdraw · another's | ON-WATCH* |
| 92 | 1 0 1 1 may 0 | ⟨◇⊢†⟩ |
reported pending allow · another's | CREDENTIALING* |
| 93 | 1 0 1 1 may 1 | ⟨◇⊬†⟩ |
reported pending revoke · another's | SUNSETTING* |
| 94 | 1 0 1 1 to 0 | ⟨◇→†⟩ |
reported pending transfer · another's | RECEIVABLE |
| 95 | 1 0 1 1 to 1 | ⟨◇↛†⟩ |
reported pending reverse · another's | RETRIEVAL-REQUEST |
| 96 | 1 1 0 0 in 0 | ⟨▪∈⟩ |
reported physical enter | ARRIVED |
| 97 | 1 1 0 0 in 1 | ⟨▪∉⟩ |
reported physical exit | DEPARTED |
| 98 | 1 1 0 0 is 0 | ⟨▪≡⟩ |
reported physical assert | OBSERVED |
| 99 | 1 1 0 0 is 1 | ⟨▪≢⟩ |
reported physical withdraw | CLEARED |
| 100 | 1 1 0 0 may 0 | ⟨▪⊢⟩ |
reported physical allow | UNLOCKED |
| 101 | 1 1 0 0 may 1 | ⟨▪⊬⟩ |
reported physical revoke | LOCKED |
| 102 | 1 1 0 0 to 0 | ⟨▪→⟩ |
reported physical transfer | CONSUMED |
| 103 | 1 1 0 0 to 1 | ⟨▪↛⟩ |
reported physical reverse | BACKFLOW* |
| 104 | 1 1 0 1 in 0 | ⟨▪∈†⟩ |
reported physical enter · another's | DETECTED |
| 105 | 1 1 0 1 in 1 | ⟨▪∉†⟩ |
reported physical exit · another's | LOST |
| 106 | 1 1 0 1 is 0 | ⟨▪≡†⟩ |
reported physical assert · another's | MEASURED |
| 107 | 1 1 0 1 is 1 | ⟨▪≢†⟩ |
reported physical withdraw · another's | DISCARDED |
| 108 | 1 1 0 1 may 0 | ⟨▪⊢†⟩ |
reported physical allow · another's | PERMITTED |
| 109 | 1 1 0 1 may 1 | ⟨▪⊬†⟩ |
reported physical revoke · another's | BLOCKED |
| 110 | 1 1 0 1 to 0 | ⟨▪→†⟩ |
reported physical transfer · another's | DELIVERED |
| 111 | 1 1 0 1 to 1 | ⟨▪↛†⟩ |
reported physical reverse · another's | REJECTED |
| 112 | 1 1 1 0 in 0 | ⟨▪◇∈⟩ |
reported physical pending enter | INBOUND |
| 113 | 1 1 1 0 in 1 | ⟨▪◇∉⟩ |
reported physical pending exit | OUTBOUND |
| 114 | 1 1 1 0 is 0 | ⟨▪◇≡⟩ |
reported physical pending assert | PREDICTED |
| 115 | 1 1 1 0 is 1 | ⟨▪◇≢⟩ |
reported physical pending withdraw | RECOVERING |
| 116 | 1 1 1 0 may 0 | ⟨▪◇⊢⟩ |
reported physical pending allow | ACCESS-PENDING* |
| 117 | 1 1 1 0 may 1 | ⟨▪◇⊬⟩ |
reported physical pending revoke | LOCKOUT-PENDING* |
| 118 | 1 1 1 0 to 0 | ⟨▪◇→⟩ |
reported physical pending transfer | PROJECTED |
| 119 | 1 1 1 0 to 1 | ⟨▪◇↛⟩ |
reported physical pending reverse | PROJECTED-RETURN* |
| 120 | 1 1 1 1 in 0 | ⟨▪◇∈†⟩ |
reported physical pending enter · another's | APPROACHING |
| 121 | 1 1 1 1 in 1 | ⟨▪◇∉†⟩ |
reported physical pending exit · another's | LEAVING |
| 122 | 1 1 1 1 is 0 | ⟨▪◇≡†⟩ |
reported physical pending assert · another's | ESTIMATED |
| 123 | 1 1 1 1 is 1 | ⟨▪◇≢†⟩ |
reported physical pending withdraw · another's | REVISION-DUE* |
| 124 | 1 1 1 1 may 0 | ⟨▪◇⊢†⟩ |
reported physical pending allow · another's | ACCESS-REQUESTED* |
| 125 | 1 1 1 1 may 1 | ⟨▪◇⊬†⟩ |
reported physical pending revoke · another's | ACCESS-ENDING* |
| 126 | 1 1 1 1 to 0 | ⟨▪◇→†⟩ |
reported physical pending transfer · another's | ADVISED |
| 127 | 1 1 1 1 to 1 | ⟨▪◇↛†⟩ |
reported physical pending reverse · another's | RETURN-ADVISED |
STREAM v0.1b: glyph sets for the 128, and the text headers
Lab: 2026-11-30-v0-1b-direction-claude · Round: 9 · Date: 2026-12-01 · Status: proposal. Glyph sets and text headers are views held by readers, never part of the kernel or the stored form (T1). Builds on glyph-primitives.md (round 8).
1. Bullae and tokens: what they did, and what STREAM already shares
In the Near East, from the ninth millennium BCE, small clay tokens stood for goods: their shape said what (a measure of grain, a jar of oil, an animal), and their number said how many, one token per unit. Around 3500 BCE, in places such as Uruk and Susa, tokens for a transaction were sealed inside a hollow clay ball, a bulla, and the parties rolled their cylinder seals over its surface. Often the tokens were also pressed into the outside before it dried, so the contents could be read without breaking it open. When the goods arrived, the bulla could be broken and the tokens counted against the delivery. The impressions on the outside, freed from the tokens inside, became the first numerical tablets, and around 3100 BCE number signs were written separately from the signs for goods. (This account follows Denise Schmandt-Besserat's token theory. It is widely cited, though some of its details are debated.)
STREAM already has most of this structure, without having set out to copy it:
| Bulla practice | STREAM | Status |
|---|---|---|
| a bulla holds one transaction | a line holds one entry; ⟦ … ⟧ is its envelope in glyph views |
already shared |
| the outside is impressed with the contents, readable without opening | the header can be filtered without reading the body ("skip the payload unread", v0.1 draft §1) | already shared, and the reason the header exists |
| token shape = kind of good | the unit or kind in the kind slot (EUR, kg), born at first mention |
already shared |
| one token per unit; later, number apart from kind | quantity in the measure slot, separate from the unit | already shared (the abstraction of number is built in) |
| cylinder seals of the parties | rec, for, signatures; authority traced to roots |
already shared |
| goods in transit with a sealed bulla | a hold or an actuation: committed, not yet complete | already shared (M = 1, phase begin) |
| breaking the bulla to check the delivery | settling a pending item, or recording an observation against what was declared | already shared (σ; records evidence links) |
| tokens strung together or kept in a container | membership (in) |
already shared |
So the inspiration is mostly confirmed rather than imported. Two things are worth taking deliberately:
- Impressions in a surface. A token pressed into clay leaves a mark where it was, and nothing where it wasn't. That is the principle STREAM's glyphs already follow: a 1 bit leaves a mark, a 0 bit leaves the surface untouched. Set B below takes it literally.
- The outside describes the inside. Every glyph view should be readable on its own, the way an impressed bulla was, without decoding the body.
What isn't worth forcing: commodity pictographs. In STREAM, kinds are born from use and named by people, so drawing them is a reader's or a pack's choice, not part of the position.
2. Set A: combinatory (math operators plus marks)
This is round 8's set, unchanged: an operator for the relation (∈ ≡ ⊢ →), struck for undo, and one mark per other 1 bit (⟨ ⟩ reported, ▪ resource, ◇ pending, † another's), with phase corners ⌜ ⌟. It is the set for reading and teaching: each mark says what it means, and the three moves are visible edits. Variable width (1 to 6 characters).
3. Set B: impressions (one character per position)
3.1 The idea
Unicode's Braille Patterns block (U+2800–U+28FF) has 256 characters, one for every 8-bit value: character U+2800 + n shows dot k raised exactly when bit k−1 of n is 1. A byte is a cell. So:
The glyph for position c is the character U+2800 + c. Position 0 is the blank cell
⠀: the untouched surface. Every 1 bit is a raised dot: an impression.
| Dots | Bit | Meaning |
|---|---|---|
| dot 1 (top left) | D | undo |
| dot 2 | R low bit | relation |
| dot 3 | R high bit | relation |
| dot 7 (bottom left) | F | reported |
| dot 4 (top right) | O | another's |
| dot 5 | M | pending |
| dot 6 | S | resource |
| dot 8 (bottom right) | the header's change flag | — |
D · · O relation in the left column: in = no dots, is = dot 2,
r0 · · M may = dot 3, to = dots 2 and 3; D above them.
r1 · · S context in the right column: O, M, S.
F · · change F and the change flag on the bottom row.
3.2 Why this set
- No mapping table. The glyph is the byte. Any reader can draw it with one addition; any person can read it once they know where each dot sits.
- It follows the standard exactly. Zero is unmarked (the blank cell); the number of dots equals the number of 1 bits.
- The laws are dot toggles. Undo toggles dot 1; the other side toggles dot 4; settling removes dot 5. A legal continuation differs from its target only in dots 1, 4 and 5.
- The whole two-byte header is two cells. Byte 1 (change + c) and byte 2 (extended + phase + roles + estimate) are each one Braille character, and every byte value is printable. That answers the printability question for the two-byte form (design note §15 Q12) without control characters.
- Font coverage is good: the block is in DejaVu Sans, Noto Sans Symbols 2, and the system fonts of the major platforms.
- It is literally impressions: dots pressed into a surface, the way tokens were pressed into a bulla.
Example: a hold (c = 22), instant, all four roles present, no estimate:
byte 1 = 0x16 → ⠖ byte 2 = 0x7E → ⡾ header cells: ⠖⡾
A send is ⠆, and its reverse is ⠇: one more dot.
3.3 A caution
These cells are also the characters of Braille, the writing system. A person reading with a refreshable Braille display will feel the dots, which here are exactly the bits, so the information survives; but a Braille reader may at first take them for letters (⠁ is "a"). Readers that show Set B should give a text equivalent (§6) alongside, for screen readers and for anyone the cells could mislead.
3.4 Optional family badges
For warmth in interfaces, a reader may prefix a small token-shape badge for the relation, after the plain tokens: ● in (a sphere: enclosure), ◆ is (a disc on edge: a fixed value), ▲ may (a tetrahedron: pointing to authority), ➤ to (a cone: direction). Badges carry no information the cell doesn't already have; they are decoration a reader may use.
4. Where glyph sets live
- In readers, as view packs. A view pack holds: Set A's rules and fallbacks, Set B's dot layout (fixed by the arithmetic), optional badges, and the text forms (§6). It has its own hash and version.
- Never in the kernel. The kernel's identity doesn't change when a glyph does.
- Injected after the kernel build: a reader build bundles the view pack it ships with. A log may name a preferred view pack or label pack (in GENESIS or by BIND), as information only: it changes nothing that is checked.
- Tested like any output: conformance vectors carry expected renderings for the view pack version under test.
5. Label packs: decision for this round
A label pack gives the words; a view pack gives the marks. A label pack holds:
- Eight roots for its language: enter, exit, assert, withdraw, allow, revoke, transfer, reverse.
- Inflection templates, one per category, with word order for the language: evidentiality (F: "reported"), register (S: "physical"), mood (M: "pending"), person (O: "· another's"), aspect (phase: "started", "completed", "reading").
- Idioms (optional): familiar names for particular positions or (position, phase) forms, such as SEND, HOLD, COLLECT, GRANT. The fresh 128 table is the first idiom set; ZAKO's phase-variant verbs go here as (position, phase) idioms.
Resolution order when a reader names a line: an idiom for (c, phase), else an idiom for c, else the regular reading from root and inflections. Every position always has a name. Packs are hashed and versioned like view packs, and held by readers.
6. Text headers: compact and complete
Both are plain ASCII, printable, and round-trip exactly to the 28 header bits (plus the extended fields when present). They join T1 (stored), T2 (Crockford), T3 (hex) and the glyph sets as views.
6.1 Compact (T4c)
<rel>[!][+rep][+res][+pend][+oth] <phase> <roles> [~] d<delta> [*]
| Part | Values |
|---|---|
| rel | in, is, may, to; ! = undo |
| marks | +rep (F), +res (S), +pend (M), +oth (O), in that order, only when 1 |
| phase | i instant, b begin, e end, s sample |
| roles | four characters for subject, object, kind, measure: the letter when present, - when absent |
~ |
estimate |
d |
time delta |
* |
change flag |
Examples: a hold to+pend i sokm d4000 · a send to i sokm d12 · its reverse to! i sokm d3 · a reported meter reading to+rep+res s so-m ~ d60.
6.2 Complete (T4f)
Every field named, one key=value per field, in fixed order, including the extended header:
v=0.1b c=22 F=0 S=0 M=1 O=0 R=to D=0 phase=instant roles=s,o,k,m est=0 chg=0 ext=0 delta=4000
With the extended header, absence codes and the index follow: … ext=1 absent=s:0,o:0,k:0,m:2 index=0 check=x7.
6.3 One line in every view
A hold of 120 EUR from book:ops to book:acme, instant, delta 4000:
| View | Header |
|---|---|
| T1 (stored) | 5 characters of the 64-symbol alphabet |
| T2 | 6 Crockford characters plus a check |
| T3 | 16·7E·0FA0 |
| T4c | to+pend i sokm d4000 |
| T4f | v=0.1b c=22 F=0 S=0 M=1 O=0 R=to D=0 phase=instant roles=s,o,k,m est=0 chg=0 ext=0 delta=4000 |
| Set A | ⌜◇→⌟ HOLD |
| Set B | ⠖⡾ |
7. Open questions
- Adopt Set B (impressions) as the single-character set?
- Keep the family badges as optional decoration, or leave them out?
- Is the compact text form's order (relation, marks, phase, roles, estimate, delta, change) the right one?
Appendix: the 128 in Set A, Set B and compact text
Set B shows the position cell only (byte 1 with the change flag off). Phase, roles and the rest are in byte 2.
| c | Set A (combinatory) | Set B (impression) | Compact text | Reading | Idiom |
|---|---|---|---|---|---|
| 0 | ∈ |
⠀ (blank) | in |
enter | JOIN |
| 1 | ∉ |
⠁ | in! |
exit | LEAVE |
| 2 | ≡ |
⠂ | is |
assert | DECLARE |
| 3 | ≢ |
⠃ | is! |
withdraw | WITHDRAW |
| 4 | ⊢ |
⠄ | may |
allow | ASSUME |
| 5 | ⊬ |
⠅ | may! |
revoke | RENOUNCE |
| 6 | → |
⠆ | to |
transfer | SEND |
| 7 | ↛ |
⠇ | to! |
reverse | REVERSE |
| 8 | ∈† |
⠈ | in+oth |
enter · another's | ADMIT |
| 9 | ∉† |
⠉ | in!+oth |
exit · another's | EXPEL |
| 10 | ≡† |
⠊ | is+oth |
assert · another's | ATTEST |
| 11 | ≢† |
⠋ | is!+oth |
withdraw · another's | DISPUTE |
| 12 | ⊢† |
⠌ | may+oth |
allow · another's | GRANT |
| 13 | ⊬† |
⠍ | may!+oth |
revoke · another's | REVOKE |
| 14 | →† |
⠎ | to+oth |
transfer · another's | COLLECT |
| 15 | ↛† |
⠏ | to!+oth |
reverse · another's | REFUND |
| 16 | ◇∈ |
⠐ | in+pend |
pending enter | APPLY |
| 17 | ◇∉ |
⠑ | in!+pend |
pending exit | NOTICE |
| 18 | ◇≡ |
⠒ | is+pend |
pending assert | PROPOSE |
| 19 | ◇≢ |
⠓ | is!+pend |
pending withdraw | DEPRECATE |
| 20 | ◇⊢ |
⠔ | may+pend |
pending allow | REQUEST |
| 21 | ◇⊬ |
⠕ | may!+pend |
pending revoke | RESIGN |
| 22 | ◇→ |
⠖ | to+pend |
pending transfer | HOLD |
| 23 | ◇↛ |
⠗ | to!+pend |
pending reverse | RECALL |
| 24 | ◇∈† |
⠘ | in+pend+oth |
pending enter · another's | INVITE |
| 25 | ◇∉† |
⠙ | in!+pend+oth |
pending exit · another's | WARN |
| 26 | ◇≡† |
⠚ | is+pend+oth |
pending assert · another's | ALLEGE |
| 27 | ◇≢† |
⠛ | is!+pend+oth |
pending withdraw · another's | CHALLENGE |
| 28 | ◇⊢† |
⠜ | may+pend+oth |
pending allow · another's | OFFER |
| 29 | ◇⊬† |
⠝ | may!+pend+oth |
pending revoke · another's | SUNSET |
| 30 | ◇→† |
⠞ | to+pend+oth |
pending transfer · another's | PREAUTHORISE |
| 31 | ◇↛† |
⠟ | to!+pend+oth |
pending reverse · another's | CREDIT-MEMO |
| 32 | ▪∈ |
⠠ | in+res |
physical enter | START |
| 33 | ▪∉ |
⠡ | in!+res |
physical exit | STOP |
| 34 | ▪≡ |
⠢ | is+res |
physical assert | SET |
| 35 | ▪≢ |
⠣ | is!+res |
physical withdraw | UNSET |
| 36 | ▪⊢ |
⠤ | may+res |
physical allow | ACQUIRE |
| 37 | ▪⊬ |
⠥ | may!+res |
physical revoke | RELEASE |
| 38 | ▪→ |
⠦ | to+res |
physical transfer | DISPATCH |
| 39 | ▪↛ |
⠧ | to!+res |
physical reverse | RETRIEVE |
| 40 | ▪∈† |
⠨ | in+res+oth |
physical enter · another's | ATTACH |
| 41 | ▪∉† |
⠩ | in!+res+oth |
physical exit · another's | DETACH |
| 42 | ▪≡† |
⠪ | is+res+oth |
physical assert · another's | ASSIGN |
| 43 | ▪≢† |
⠫ | is!+res+oth |
physical withdraw · another's | UNASSIGN |
| 44 | ▪⊢† |
⠬ | may+res+oth |
physical allow · another's | LEASE |
| 45 | ▪⊬† |
⠭ | may!+res+oth |
physical revoke · another's | RECLAIM |
| 46 | ▪→† |
⠮ | to+res+oth |
physical transfer · another's | DRAW |
| 47 | ▪↛† |
⠯ | to!+res+oth |
physical reverse · another's | RETURN |
| 48 | ▪◇∈ |
⠰ | in+res+pend |
physical pending enter | SCHEDULE |
| 49 | ▪◇∉ |
⠱ | in!+res+pend |
physical pending exit | DRAIN |
| 50 | ▪◇≡ |
⠲ | is+res+pend |
physical pending assert | STAGE |
| 51 | ▪◇≢ |
⠳ | is!+res+pend |
physical pending withdraw | PHASE-OUT |
| 52 | ▪◇⊢ |
⠴ | may+res+pend |
physical pending allow | ENQUEUE |
| 53 | ▪◇⊬ |
⠵ | may!+res+pend |
physical pending revoke | YIELD |
| 54 | ▪◇→ |
⠶ | to+res+pend |
physical pending transfer | RESERVE |
| 55 | ▪◇↛ |
⠷ | to!+res+pend |
physical pending reverse | CALLBACK* |
| 56 | ▪◇∈† |
⠸ | in+res+pend+oth |
physical pending enter · another's | BOOK |
| 57 | ▪◇∉† |
⠹ | in!+res+pend+oth |
physical pending exit · another's | DETACH-NOTICE* |
| 58 | ▪◇≡† |
⠺ | is+res+pend+oth |
physical pending assert · another's | SPECIFY |
| 59 | ▪◇≢† |
⠻ | is!+res+pend+oth |
physical pending withdraw · another's | WAIVE |
| 60 | ▪◇⊢† |
⠼ | may+res+pend+oth |
physical pending allow · another's | ADVERTISE |
| 61 | ▪◇⊬† |
⠽ | may!+res+pend+oth |
physical pending revoke · another's | QUIT-NOTICE* |
| 62 | ▪◇→† |
⠾ | to+res+pend+oth |
physical pending transfer · another's | REQUISITION |
| 63 | ▪◇↛† |
⠿ | to!+res+pend+oth |
physical pending reverse · another's | RETURN-AUTH |
| 64 | ⟨∈⟩ |
⡀ | in+rep |
reported enter | LISTED |
| 65 | ⟨∉⟩ |
⡁ | in!+rep |
reported exit | DELISTED |
| 66 | ⟨≡⟩ |
⡂ | is+rep |
reported assert | ASSERTED |
| 67 | ⟨≢⟩ |
⡃ | is!+rep |
reported withdraw | RETRACTED |
| 68 | ⟨⊢⟩ |
⡄ | may+rep |
reported allow | ISSUED |
| 69 | ⟨⊬⟩ |
⡅ | may!+rep |
reported revoke | CANCELLED |
| 70 | ⟨→⟩ |
⡆ | to+rep |
reported transfer | DEBITED |
| 71 | ⟨↛⟩ |
⡇ | to!+rep |
reported reverse | REVERSED |
| 72 | ⟨∈†⟩ |
⡈ | in+rep+oth |
reported enter · another's | DISCOVERED |
| 73 | ⟨∉†⟩ |
⡉ | in!+rep+oth |
reported exit · another's | VANISHED |
| 74 | ⟨≡†⟩ |
⡊ | is+rep+oth |
reported assert · another's | REPORTED |
| 75 | ⟨≢†⟩ |
⡋ | is!+rep+oth |
reported withdraw · another's | RESCINDED |
| 76 | ⟨⊢†⟩ |
⡌ | may+rep+oth |
reported allow · another's | RECOGNISED |
| 77 | ⟨⊬†⟩ |
⡍ | may!+rep+oth |
reported revoke · another's | INVALIDATED |
| 78 | ⟨→†⟩ |
⡎ | to+rep+oth |
reported transfer · another's | RECEIVED |
| 79 | ⟨↛†⟩ |
⡏ | to!+rep+oth |
reported reverse · another's | CHARGEBACK |
| 80 | ⟨◇∈⟩ |
⡐ | in+rep+pend |
reported pending enter | WAITLISTED |
| 81 | ⟨◇∉⟩ |
⡑ | in!+rep+pend |
reported pending exit | LAPSING |
| 82 | ⟨◇≡⟩ |
⡒ | is+rep+pend |
reported pending assert | PROVISIONAL |
| 83 | ⟨◇≢⟩ |
⡓ | is!+rep+pend |
reported pending withdraw | UNDER-REVIEW |
| 84 | ⟨◇⊢⟩ |
⡔ | may+rep+pend |
reported pending allow | SUBMITTED |
| 85 | ⟨◇⊬⟩ |
⡕ | may!+rep+pend |
reported pending revoke | EXPIRING |
| 86 | ⟨◇→⟩ |
⡖ | to+rep+pend |
reported pending transfer | PAYABLE |
| 87 | ⟨◇↛⟩ |
⡗ | to!+rep+pend |
reported pending reverse | REFUND-DUE |
| 88 | ⟨◇∈†⟩ |
⡘ | in+rep+pend+oth |
reported pending enter · another's | NOMINATED |
| 89 | ⟨◇∉†⟩ |
⡙ | in!+rep+pend+oth |
reported pending exit · another's | DEPARTING |
| 90 | ⟨◇≡†⟩ |
⡚ | is+rep+pend+oth |
reported pending assert · another's | FORECAST |
| 91 | ⟨◇≢†⟩ |
⡛ | is!+rep+pend+oth |
reported pending withdraw · another's | ON-WATCH* |
| 92 | ⟨◇⊢†⟩ |
⡜ | may+rep+pend+oth |
reported pending allow · another's | CREDENTIALING* |
| 93 | ⟨◇⊬†⟩ |
⡝ | may!+rep+pend+oth |
reported pending revoke · another's | SUNSETTING* |
| 94 | ⟨◇→†⟩ |
⡞ | to+rep+pend+oth |
reported pending transfer · another's | RECEIVABLE |
| 95 | ⟨◇↛†⟩ |
⡟ | to!+rep+pend+oth |
reported pending reverse · another's | RETRIEVAL-REQUEST |
| 96 | ⟨▪∈⟩ |
⡠ | in+rep+res |
reported physical enter | ARRIVED |
| 97 | ⟨▪∉⟩ |
⡡ | in!+rep+res |
reported physical exit | DEPARTED |
| 98 | ⟨▪≡⟩ |
⡢ | is+rep+res |
reported physical assert | OBSERVED |
| 99 | ⟨▪≢⟩ |
⡣ | is!+rep+res |
reported physical withdraw | CLEARED |
| 100 | ⟨▪⊢⟩ |
⡤ | may+rep+res |
reported physical allow | UNLOCKED |
| 101 | ⟨▪⊬⟩ |
⡥ | may!+rep+res |
reported physical revoke | LOCKED |
| 102 | ⟨▪→⟩ |
⡦ | to+rep+res |
reported physical transfer | CONSUMED |
| 103 | ⟨▪↛⟩ |
⡧ | to!+rep+res |
reported physical reverse | BACKFLOW* |
| 104 | ⟨▪∈†⟩ |
⡨ | in+rep+res+oth |
reported physical enter · another's | DETECTED |
| 105 | ⟨▪∉†⟩ |
⡩ | in!+rep+res+oth |
reported physical exit · another's | LOST |
| 106 | ⟨▪≡†⟩ |
⡪ | is+rep+res+oth |
reported physical assert · another's | MEASURED |
| 107 | ⟨▪≢†⟩ |
⡫ | is!+rep+res+oth |
reported physical withdraw · another's | DISCARDED |
| 108 | ⟨▪⊢†⟩ |
⡬ | may+rep+res+oth |
reported physical allow · another's | PERMITTED |
| 109 | ⟨▪⊬†⟩ |
⡭ | may!+rep+res+oth |
reported physical revoke · another's | BLOCKED |
| 110 | ⟨▪→†⟩ |
⡮ | to+rep+res+oth |
reported physical transfer · another's | DELIVERED |
| 111 | ⟨▪↛†⟩ |
⡯ | to!+rep+res+oth |
reported physical reverse · another's | REJECTED |
| 112 | ⟨▪◇∈⟩ |
⡰ | in+rep+res+pend |
reported physical pending enter | INBOUND |
| 113 | ⟨▪◇∉⟩ |
⡱ | in!+rep+res+pend |
reported physical pending exit | OUTBOUND |
| 114 | ⟨▪◇≡⟩ |
⡲ | is+rep+res+pend |
reported physical pending assert | PREDICTED |
| 115 | ⟨▪◇≢⟩ |
⡳ | is!+rep+res+pend |
reported physical pending withdraw | RECOVERING |
| 116 | ⟨▪◇⊢⟩ |
⡴ | may+rep+res+pend |
reported physical pending allow | ACCESS-PENDING* |
| 117 | ⟨▪◇⊬⟩ |
⡵ | may!+rep+res+pend |
reported physical pending revoke | LOCKOUT-PENDING* |
| 118 | ⟨▪◇→⟩ |
⡶ | to+rep+res+pend |
reported physical pending transfer | PROJECTED |
| 119 | ⟨▪◇↛⟩ |
⡷ | to!+rep+res+pend |
reported physical pending reverse | PROJECTED-RETURN* |
| 120 | ⟨▪◇∈†⟩ |
⡸ | in+rep+res+pend+oth |
reported physical pending enter · another's | APPROACHING |
| 121 | ⟨▪◇∉†⟩ |
⡹ | in!+rep+res+pend+oth |
reported physical pending exit · another's | LEAVING |
| 122 | ⟨▪◇≡†⟩ |
⡺ | is+rep+res+pend+oth |
reported physical pending assert · another's | ESTIMATED |
| 123 | ⟨▪◇≢†⟩ |
⡻ | is!+rep+res+pend+oth |
reported physical pending withdraw · another's | REVISION-DUE* |
| 124 | ⟨▪◇⊢†⟩ |
⡼ | may+rep+res+pend+oth |
reported physical pending allow · another's | ACCESS-REQUESTED* |
| 125 | ⟨▪◇⊬†⟩ |
⡽ | may!+rep+res+pend+oth |
reported physical pending revoke · another's | ACCESS-ENDING* |
| 126 | ⟨▪◇→†⟩ |
⡾ | to+rep+res+pend+oth |
reported physical pending transfer · another's | ADVISED |
| 127 | ⟨▪◇↛†⟩ |
⡿ | to!+rep+res+pend+oth |
reported physical pending reverse · another's | RETURN-ADVISED |
STREAM v0.1b: build specifications (#12–17)
Lab: 2026-11-30-v0-1b-direction-claude · Round: 8 · Date: 2026-12-01 · Status: the owner approved these proposals on 2026-12-01 ("all proposed design work solutions look good"). They are drafts for the first build; details may change as the reference reader is written.
Design note §19 lists the items. The kernel descriptor (#18) is kernel-descriptor-v0.1b.txt; the first vectors (#19) are in vectors/.
0. The line
A v0.1b log is text, one line per entry, as in v1:
<header> <body>
- header: the 28 header bits (design note §1.3.1, §1.5) in the T1 alphabet: 5 characters. The 2 spare bits carry a header check.
- body: canonical JSON (v1 rules: keys sorted by byte order, no duplicates, no whitespace, integers only, quantities as decimal strings).
- line 1 is the preamble
STREAM/1 kernel=sha256:<hex>, unchanged from v1. Line 2 is GENESIS (§7).
In conformance vectors, lines are written structurally (the fields before encoding), so they can be read before the T1 codec exists.
1. Roles and the four header slots (#12)
The header's role-presence bits name four slots: subject, object, kind, measure (DIGEST step 12; v0.1 test vectors). The subject is always the affected party, the role O is computed from.
| Relation | subject s |
object o |
kind k |
measure m |
|---|---|---|---|---|
| in | member | boundary | member's kind | location (written at in text forms) |
| is | bearer | property | value's kind | value |
| may | holder | what is permitted over (object or scope) | action (a position, or a set of positions) | limit (amount or uses) |
| to | from book |
to book |
unit | quantity |
Framing (not slots): rec (who wrote the line) and for (who it acts for; the actor). The actor is for if present, else rec. An absent actor is a refusal; a withheld actor is not allowed (the actor must be known to check authority).
Body fields outside the slots:
| Field | Meaning |
|---|---|
src |
source of a reported line (F = 1) |
cites |
a continuation link (one position) |
ev |
evidence links: {"records": [41], "anticipates": [41, 44]} |
valid |
validity window of a permission or a standing value |
uses |
use count of a permission |
reason |
free text for undo, adjust, refusal of a pending item |
outcome |
the outcome of an end (completed, failed) |
Absence: a slot that is empty carries its absence code in the extended header. The four slots have codes; framing and body fields don't (they are present or not).
The v0.1 FAIL preset ("actor withheld") is re-read as "subject withheld" when the vectors are regenerated at the freeze.
2. Names (#13)
name = [kind ":"] local
kind = [a-z][a-z0-9-]{0,31} lowercase ASCII
local = 1–256 bytes of UTF-8 in NFC; no control characters, no whitespace
may itself contain ":" (book:acme:ops)
- Comparison is exact, byte for byte after NFC normalisation, and case-sensitive.
Book:Opsandbook:opsare different names. Variants are joined by aliases declared in packs, never by folding. - A bare name (no
kind:) takes the role's default kind (design note §6.1) and is stored with that prefix:acmein atoslot becomesbook:acme. A slot with no listed default takesthing. - Writing to a log needs a record right: a
mayline granting the actionrecordover the log, from a root. Roots have it from GENESIS. - Units are names of kind
unit, written bare in the kind slot of atoline, exactly as people write them:EUR,€,kg,kWh.€andEURare two units until a pack declares an alias. outside:<unit>is reserved: the outside book for each unit (design note §7.2). It is owned by the roots, whoever mentions it first. Bringing a holding in from outside is therefore O = 0 for a root and O = 1 for anyone else, who needs a grant from a root to declare holdings.
3. Quantities and scale (#14)
- A quantity is a decimal string:
"120.50". Leading+, exponents and leading zeros (other than0.x) are refused. Negative quantities are refused: direction is given byfromandto. - Zero is refused on
tolines (a transfer of nothing). - Scale: a unit's scale is the most decimal places seen so far. The first amount sets it (
120.50 EUR→ 2). A finer amount later widens it (0.001 EUR→ 3). Widening is lossless: the Books multiply existing integers by 10ⁿ. The log stores the strings as written, so nothing already written changes. - Maximum scale: 18. Finer amounts are refused.
- Arithmetic: integers at the unit's current scale, at least 128 bits. Overflow is a refusal.
4. Refusal codes (#15)
Numbered by the pipeline step that refuses. A refusal is journaled with its code, the line's digest and a short reason; retries with the same digest return the same receipt (v1).
| Code | Step | Meaning |
|---|---|---|
| 100 | bytes | not canonical |
| 101 | bytes | not valid UTF-8 / JSON |
| 102 | bytes | line too long |
| 200 | chain | preamble names another kernel |
| 201 | chain | segment hash mismatch |
| 202 | chain | chain does not continue from the previous segment |
| 210 | genesis | first entry is not GENESIS |
| 211 | genesis | a second GENESIS |
| 212 | genesis | GENESIS states no roots |
| 213 | genesis | GENESIS policy pack missing, unreadable, or incomplete |
| 300 | header | header check failed |
| 301 | header | reserved absence code (7) |
| 302 | header | time delta overflow (a time anchor is needed first) |
| 303 | header | role presence disagrees with the body |
| 400 | names | name not valid (§2) |
| 401 | names | birth refused by a strict-mode policy |
| 402 | names | conflicting redeclaration |
| 403 | names | actor absent or unknown |
| 500 | derive | stored F, S or O disagrees with derived |
| 501 | derive | affected role absent (cannot derive O) |
| 600 | links | continuation target unknown or not live |
| 601 | links | continuation arithmetic fails (not one of the 8 elements) |
| 602 | links | target already undone or settled |
| 603 | links | end does not cite an in-progress begin with the same c |
| 610 | links | evidence link breaks its kind's contract (§5) |
| 611 | links | evidence target already used for this purpose (records once per book; actuates once per intent) |
| 700 | guards | fact-form marked invalid in the workbook |
| 701 | guards | reported line without a source |
| 702 | guards | resource in a second place |
| 703 | guards | book would go negative |
| 704 | guards | relation precondition fails (not a member; property not set; permission not live; unit mismatch) |
| 705 | guards | no authority path (affected party is another's) |
| 706 | guards | recorder has no record grant for for |
| 707 | guards | grant exceeds the granter's authority (attenuation) |
| 708 | guards | step limit reached during authority or rule evaluation |
| 709 | guards | recorder holds no right to write to this log |
| 710 | quantities | quantity invalid, zero, or scale above 18 |
| 711 | quantities | arithmetic overflow |
| 800 | policy | a policy rule from a pack fails |
| 801 | policy | a pack tries to loosen a policy |
5. Evidence-link contracts (#16)
Each evidence link appears in ev as kind: [positions]. The contract lists what the citing line and the cited lines must satisfy.
| Kind | Cited line(s) | Citing line | Required fields | Used up |
|---|---|---|---|---|
records |
one line with F = 1 | F = 0; same R and S as the cited line | reason when adjusting; for to, the quantity may differ from the cited line's only when adjust is set |
once per (cited line, book) |
actuates |
one frame line that is pending (M = 1) or a begin |
F = 1; same R | outcome |
once per cited intent |
anticipates |
one or more lines with M = 0 | M = 1 | model, horizon |
no |
realises |
an observation (F = 1) | must also cites the pending line it settles (σ or σν) |
— | the pending item, through cites |
senses |
— | the src field; no ev entry needed |
src |
— |
under |
a grant (R = may) | any; R may differ | — | only if the grant has uses |
Adjust (records): booking a different amount than observed is allowed with "adjust": true and a reason. The difference stays visible: the cited observation keeps its amount; drift views show both.
6. Policy pack (#17)
The kernel defines policy names and allowed values only, with no defaults (design note §18). GENESIS names exactly one policy pack by hash. The pack states every policy; a missing one refuses GENESIS (213).
{"policy":"stream/0.1b","values":{"births.objects":"allow","births.books":"allow", … }}
Values for each policy are ordered from loose to strict. A later pack (BIND) may move a value only toward strict (else 801).
| Policy | Values, loose → strict | Reader's starter profile |
|---|---|---|
births.objects |
allow → declare-first | allow |
births.books |
allow → declare-first | allow |
births.kinds |
allow → pack-only | allow |
births.units |
allow → pack-only | allow |
births.principals |
allow → declare-first | allow |
class.inference |
location → pack-only | location |
ownership.for-without-grant |
offer → refuse | offer |
resource.second-place |
refuse | refuse |
issuer |
declared-only | declared-only |
wire.type |
6-bit → 7-bit-checked | 7-bit-checked |
time.unit |
a duration (1s, 100ms, 1min …); fixed at GENESIS, never changed | 1s |
verbose-genesis |
off → on | off |
step.limit |
an integer, smaller is stricter | 100000 |
Kernel descriptor, v0.1b (draft)
Source: kernel-descriptor-v0.1b.txt. Its SHA-256 will be the kernel's identity once frozen.
STREAM kernel descriptor, version 0.1b (DRAFT, round 8, 2026-12-01; not frozen)
This file is the kernel. Its SHA-256 is the kernel's identity.
A log names it in line 1: STREAM/1 kernel=sha256:<64 lowercase hex>
0. Stance
The kernel defines meanings, laws and checks. It has no default values.
Everything usable comes from a reader, GENESIS, packs and the log itself.
1. Sets
B = {0,1}
Phase = (opens, closes) in B x B: (0,0) sample (1,0) begin (0,1) end (1,1) instant
Name = [kind ":"] local; kind = [a-z][a-z0-9-]{0,31}; local = NFC UTF-8, 1-256 bytes,
no controls, no whitespace; compared byte for byte
Qty = decimal string, > 0, scale <= 18
⊥ = undefined: never set; distinct from 0, the empty set, and withdrawn
2. Position
c = 64F + 32S + 16M + 8O + 2R + D, 0 <= c <= 127, R in {in=0, is=1, may=2, to=3}
F 0 enacted 1 reported (has a src field)
S 0 record 1 resource (class of the affected party's kind)
M 0 committed 1 pending
O 0 own 1 another's (owner of the affected party != actor)
D 0 establish 1 undo (an undo cites what it undoes)
Affected party: in -> member; is -> bearer; may -> holder; to -> the from book.
Actor: the for field if present, else rec.
3. Operations, one per relation, each with its law
in enclose containment is transitive and irreflexive; a resource is in one place
is call setting the same value twice changes nothing; one value per property
may self-apply authority is the least fixed point of the grant rules; every chain
ends at a root; a grant never exceeds its granter (attenuation)
to cross legs sum to zero per unit; the reverse of t posts -t
4. Moves on positions
mu(c) = c xor 1 undo
nu(c) = c xor 8 the other party's record of the same act
sigma(c) = c and not 16 settle
mu mu = 1; nu nu = 1; sigma sigma = sigma; all three commute.
The eight elements {1, mu, nu, mu nu} x {1, sigma} are the continuation links.
5. Header (28 bits)
byte 1: change(1) c(7)
byte 2: extended-follows(1) phase(2) role-presence(4: subject object kind measure) estimate(1)
delta : 14 bits in the GENESIS time unit; overflow is refused; a time anchor comes first
extended (when flagged): absence code per role (3 bits x 4), object/kind index (12), check (6)
Absence codes: 0 present 1 not-yet 2 unknown 3 withheld 4 not-applicable 5 refused
6 ambiguous 7 reserved (refused)
Text form: T1, the 64-symbol alphabet of bitpack draft v0.1, 5 characters; spare bits = check.
6. Body
Canonical JSON (v1 rules). Slots: s o k m. Framing: rec, for.
Other fields: src, cites, ev, valid, uses, reason, outcome, adjust, model, horizon.
Role meanings per relation: see build-specs section 1 (to be folded in at freeze).
7. State
S = (Struct, Reg, Auth, Books, Open, Sym, n, h), split by F into authoritative and observed.
S0: all containers empty; n = 0; h = 0^256.
Seed kinds (record): principal boundary kind pack book thing unit. Seed kind (resource): item.
Role defaults: to from/to -> book; in boundary -> boundary; in member placed with a location -> item;
in member, is bearer -> thing; may holder -> principal; src -> principal; to kind -> unit; any other slot -> thing.
8. Births
A name never seen is born by the line that names it:
owner = actor (a principal owns itself); kind = named or role default; born = position.
A kind's class is fixed at birth: declared by a pack, else resource if first placed with
a location or first moved, else record. Births are discarded if the line is refused.
9. Pipeline (submission and replay are the same)
1 bytes canonical form
2 chain segment and seal
3 header decode; check bits; presence matches body
4 names resolve each name, or birth it
5 derive F S O; compare with the stored c
6 assemble c and phase
7 links continuation (one of the 8 elements; target live; used once)
evidence (each kind's contract)
end cites an in-progress begin with the same c
8 guards in this order: workbook validity, source, resource, relation precondition,
undo target, pending target, authority, record right, policy
9 effect the operation of R; pending reserves or opens; begin opens an in-progress item;
end and instant apply; sample adds a reading; undo applies the inverse
10 commit atomically; or journal a refusal receipt (code, digest, reason)
A batch: every line is typed against the state before the batch.
10. Guards
g_P the fact-form (c, phase) is not marked invalid
g_F F = 1 requires src
g_S S = 1: one place; never negative. S = 0: negative only for an issuer or outside book
g_R the relation's precondition holds
g_D D = 1: the target is live and not already undone
g_M a settlement's target is pending and open
g_O O = 0: the actor owns the affected party. O = 1: an authority path exists
(grant, mandate for a pull, or evidence and attribution for is)
rec the recorder holds the right to write to this log (a record grant from a root);
rec != for also requires a record grant from for
pol every rule of the packs in force holds; packs only add conditions
11. Genesis
Position 1 after the preamble, and nowhere else. c = 0 (roots enter the log boundary),
phase instant. Body: {"genesis":{"clock","log","policy","roots","seed","time-unit","tz"}}.
The log boundary is born, owned by the roots; the roots hold every permission on it.
The policy pack named by hash states every policy (no defaults).
12. Seals
seg = sha256(all bytes of the segment before its seal line)
h' = sha256(hex(h) || hex(seg)); the next segment opens with prev = h'
13. Start-up
load this file; K = sha256(this file); build tables; check the move laws on all 128
positions; check the four operation laws on a sample state; state := S0;
require line 1 = preamble naming K; read line 2 as GENESIS.
Each step emits a trace event (kernel trace vocabulary, to be fixed with the first build).
14. Refusal codes: build-specs section 4. Evidence contracts: build-specs section 5.
Policy names and values: build-specs section 6.
Exchange log
Lab: 2026-11-30-v0-1b-direction-claude · Kept since: round 5 (2026-12-01), back-recorded for rounds 1–4.
Each row is one owner question, challenge or decision, in order, and what came of it. The owner's words are paraphrased. "Round" is the lab iteration the outcome went into (iterations.csv, design note §17). This keeps the reasoning between rounds, not only the results.
| # | Date | Round | Owner asked or said | Outcome |
|---|---|---|---|---|
| 1 | 2026-11-29 | — | Study the work plan and propose solutions. | Review of the plan: the 6-bit claim is really a choice between storing the coordinate and storing the verb; the seed doesn't need the wire decision first; test D-01 against both ACT-end readings; replay through admission on open. |
| 2 | 2026-11-29 | — | Review the 128-positions, Genesis and Kernel pages for design and mathematical efficiency. | F/S/O in the corpus behave as verb classes, not operand relations; masks on D alone are meaningless under per-relation direction; the conservation claim mixed type counts with quantities; fold speed-ups by container algebra; A vs B as evaluation strategy. |
| 3 | 2026-11-29 | — | Remind me what F, S, O are. | Their bits, steps and what v2 needed to recover them; lemmas L2–L4. |
| 4 | 2026-11-29 | — | Confirm understanding of the first verb table before a fresh attempt; unsure whether primitives belong in the matrix. | Model of the first attempt confirmed; drift points listed (M with three senses, O shifting with S, to cells naming legs); primitives kept out of the matrix. |
| 5 | 2026-11-29 | — | Transfers must stay trim; do web research; attempt all 128 at once. | verb-table-128-fresh.md: research (TigerBeetle, REA, DEMO, Hohfeld, FIPA, ODRL, SOSA, PROV-O, ocap, Kubernetes); one entry per transfer; O recorder-relative; F/S/O derivable. |
| 6 | 2026-11-29 | — | Explain the header changes: how it is built and read. | Derivation functions, reading algorithm, D as establish/undo, μ/ν/σ arithmetic, transfers in the header, filter costs. |
| 7 | 2026-11-29 | — | How does this affect the kernel's mathematics? | Type depends on prior state; behaviour factors by bit; the 8-element monoid; citation graph; per-container algebra; stratified negation; proof obligations. |
| 8 | 2026-11-29 | — | Kinds, subjects and objects needn't be in the kernel; ownership is a setup matter; why do F, S, O need the Register; unroll the order of operations; explain guards. | Four seed kinds; ownership via for; F needs only the line, S and O need state; Stage 0 order; guards in detail. |
| 9 | 2026-11-30 | 1 | Let a log entry name and so create objects, books and kinds; class shouldn't burden the recorder; unroll Stage 0 fully; which entries set up a log? | Births by first mention; class inferred; Stage 0 D1–D16; two required lines. |
| 10 | 2026-11-30 | 1 | Write it up as a lab design note; avoid index scans; track strict modes in setup policies; ownership given to others; more inferable kinds. Correction: amounts carry their unit symbols, so a pure entry must not need a unit pack. Unsure how tags and groups sit in a log entry; printing every kernel operation at log opening? | Lab created; master design note round 1. Unit symbols born at first mention; class by origin (later withdrawn); index cost section; setup policy table; ownership forms; kind traits; tags as boundaries; bootstrap transcript option. |
| 11 | 2026-12-01 | 2 | How do name lookups work and why? What are kind traits? Money mostly enters by declaration of ownership. Decided: printing the start-up is an audit option, off by default. Write a work plan and companion documents. | Name resolution (§2.1); intake from outside:<unit> (§7.2); class-by-origin withdrawn (§7.3); work plan, overview, rationale, mathematics. |
| 12 | 2026-12-01 | 2 | Combine the five documents into one tabbed HTML page in the lab. | v02-direction.html (later v01b-direction.html). |
| 13 | 2026-12-01 | — | Are lab page layout and population already scripted? | Partly: babb-home builds lab pages from a fixed list of four files; lab pages from the lab record are planned, not built. Another agent is building the scripts. |
| 14 | 2026-12-01 | — | Does the maths create distinctions from operations, not only declarations: how are in, is, may, to established? | As written they were declared. Proposed: four operations with laws, an unfolding order from GENESIS. |
| 15 | 2026-12-01 | 3 | Concern: computed F, S, O make bit-masking costlier. Much of "relations as operations" may repeat earlier notes; check. Decided: name the direction v0.1b, not v0.2. Plan how a lab shows a series of iterations. | Default wire changed to 7 bits checked (§1.2); lineage against notes 06, 08, 16 and DIGEST (§16), with may's operation left open (Q9); lab renamed; iteration recording (§17, iterations.csv, snapshots). |
| 16 | 2026-12-01 | — | Analyse phase and how it sits outside c. | Phase as (opens, closes); overlap with D, M and not-yet; effect timing; c for naming, (c, p) for mechanics. |
| 17 | 2026-12-01 | 4 | Explain 512 against 128. Approved the phase direction. Concern: a 9-bit type breaks the one-byte goal. | Round 4 (§3.6); type-byte options A/B/C (§1.3); proposed A. |
| 18 | 2026-12-01 | 5 | Challenge: permissions have spans and one-off forms, so may should take phases; don't agree to unneeded elements just because I raised it. Could two ASCII characters hold a fuller set of details? Is option A backwards or compression? | Spans stay standing (validity, grant, revoke); one-off = use count; but may does take every phase (grants that take time; access scans), so the "96 invalid" rule was withdrawn. The is example corrected. Option A in full: two bytes, "what" and "shape", carrying every v0.1 short-header field in 28 bits (§1.3.1). |
| 19 | 2026-12-01 | 5 | Write round 5 and back-record the evidence of progression. | This log; round 5 rows in iterations.csv; dated lab notes; snapshot artifacts/iteration-05.html. |
| 20 | 2026-12-01 | — | Explain the elemental laws and the 8-element monoid, and how they serve the system's original intentions. | Two tiers of law; the three moves; the eight elements and the one-line citation check; links to the original intentions. Found a gap: reconciliation changes F, so the continuation check refuses it. |
| 21 | 2026-12-01 | — | Explore the two options more fully. | Option A (two families of link) against option B (extend the monoid to 16, then 24+). The earlier record (notes 16, 19, relations-and-matrix) already said bit flips don't supply evidence and crossings don't commute. Recommended A. |
| 22 | 2026-12-01 | — | How often would the second check run when logs are written? | Only on lines with an evidence link, in the existing link step; two kinds add nothing; no Register access. |
| 23 | 2026-12-01 | — | Unsure; explain more simply, the purpose had got lost. | The ledger analogy: a correcting entry against a supporting document; the gap is that the log couldn't say "I accepted that reading". |
| 24 | 2026-12-01 | 6 | Approved: write it up. | Round 6: design note §3.7, maths §3.1–3.2, overview §7, rationale 2.22, work plan WP09b. Snapshot artifacts/iteration-06.html. |
| 25 | 2026-12-01 | — | Outline the remaining work before the next coding attempt, split critical and optional. | 11 decisions, 8 design gaps and 1 housekeeping item marked critical; the rest optional. |
| 26 | 2026-12-01 | 7 | What do enacted and reported mean? Phase renumbering vs lookup table? Give resilient text-form options. Time delta options? Principle: the kernel should be almost unusable alone, ultra-reduced and reliable. Decided: go with the proposals overall; convert v1 logs later; commit the lab. Surprised the four presence bits have no mapping: explain. | Round 7: decisions recorded (§15); text-form options (§1.4); time delta (§1.5); principle (§18); the role-slot finding corrected: the four slots exist, only v0.1b's roles were never mapped to them (§19). Lab committed. |
| 27 | 2026-12-01 | — | Before proceeding, give separate thoughts on my Unicode visual primitives work. | Read Clay v2 (Muse, 30 Nov): strengths (typed absence marks, view not wire, CHOICE labelling); a conflict table against rounds 1–7; placed as a fifth view with three densities. |
| 28 | 2026-12-01 | — | Confirmed the file. | — |
| 29 | 2026-12-01 | 8 | Rethink the true primitives with Unicode instead of accepting the existing ones, and examine the 128 as a whole for a unified system. Flagged a kernel activation window, animated 1:1 with real kernel operations and able to lead its pace, to design later. Decided: put everything in the lab for now; strongest items move to stream/docs later; all proposed design-work solutions approved. | Round 8: glyph-primitives.md (zero is unmarked; math operators; the 128 as an inflected verb system; all 128 tabulated); Clay v2 in inputs/; views T1–T5; window flag with trace requirements; build-specs.md, kernel-descriptor-v0.1b.txt, 24 vectors. |
| 30 | 2026-12-01 | 9 | Think through glyphs, efficient and faithful to the standard, drawing on Sumerian bullae and tokens where it helps without forcing it. Make a tab with two glyph sets for the 128: one combinatory, one from Unicode characters, held by readers or injected after the kernel build. Label packs: do what's best. Decided: a fully text-based header, readable and printable, in a compact and a complete form. | Round 9: glyph-sets.md: the bulla comparison (STREAM already shares most of the structure); Set A combinatory; Set B impressions (U+2800 + byte: a position is one character, the header two cells); view packs and label packs held by readers; T4c and T4f text headers. |
| 31 | 2026-12-01 | 10 | Decided: commit and push rounds 8 and 9. Build the spec page from whatever is being used to code the kernel and reader, as the v0.1b baseline for the register and site (then the Design page and Handbook). The Braille idea is a pack, so no decision needed? Anything left before coding; anything about line bodies? A hand-off write-up for another agent on the Braille idea. Reminder: the spec page will be posted in the Stream section. | Pushed e40d375. spec-v0.1b.md (publishable; ten choices listed for confirmation, mostly about the line body and framing lines). handoff-braille-view-pack.md. Confirmed the Braille set is a reader view pack. |
| 32 | 2026-12-01 | 10 | Decided: commit round 10; the ten choices in the spec are good; start coding. | Spec §10 marked accepted; round 10 committed; reference-reader lab started. |
Iterations
Generated from iterations.csv. One row per element changed per round. decided_by is filled only when the owner decided. How this is kept: design note §17.
By round
Round 10 · 2026-12-01
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-buildspec | added | spec-v0.1b.md: the consolidated v0.1b specification and coding baseline, written for the Stream section's Spec tab; framing lines; header bit order and T1 check bits; body fields and slot types; batches; retire; GENESIS; trace vocabulary; ten choices for the owner to confirm | ||
| EL-views | added | handoff-braille-view-pack.md for another agent; the Braille set confirmed as a reader view pack, needing no kernel decision | owner | |
| EL-process | changed | Rounds 8 and 9 committed and pushed (e40d375); exchanges.md row 31 | ||
| EL-buildspec | decided | The ten choices in spec-v0.1b.md section 10 accepted | owner |
Round 9 · 2026-12-01
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-views | added | Glyph sets for the 128: Set A combinatory and Set B impressions (Braille block, U+2800 + byte); bullae and tokens comparison; family badges optional; view packs held by readers | Schmandt-Besserat token theory | |
| EL-views | decided | Label packs: 8 roots + inflection templates + optional idioms; resolution order; held by readers | owner | |
| EL-wire | decided | Text headers: T1 stored; readers offer compact T4c and complete T4f text headers (Q12) | owner | |
| EL-process | changed | exchanges.md row 30 |
Round 8 · 2026-12-01
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-views | added | Glyph primitives rethought: zero is unmarked; operators in/is/may/to as math symbols; one mark per 1 bit; phase corners; moves as glyph edits; 128 as an inflected verb system (8 roots + evidentiality, register, mood, person, aspect); views T1-T5 | inputs/stream-in-clay-v2.html | |
| EL-inputs | added | Clay v2 copied in as an input, with its conflict table against rounds 1-7 | ||
| EL-modal | added | Kernel activation window flagged; first build must emit a trace and support a paced runner | owner | |
| EL-buildspec | added | Build specs 12-17 (roles to slots, names, quantities and scale, refusal codes, evidence contracts, policy pack); descriptor draft; 24 conformance vectors | owner | |
| EL-buildprep | decided | All eight design items approved by the owner | owner | |
| EL-workplan | changed | Trace and pacing in WP03 and WP12; new WP19b glyph view and activation window | ||
| EL-process | changed | exchanges.md rows 27-29 |
Round 7 · 2026-12-01
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-decisions | decided | Owner accepted proposals overall: F/O meanings, class rule and intake, ownership forms A/B in kernel, 7-bit checked wire, batch before, second place refused, may's operation named self-apply, phase lookup table now, two-byte layout, 14-bit delta, ACT end D0 end, v1 logs stay under v1 | owner | |
| EL-wire | added | Text-form options T1-T4 (open); time delta 14 bits with time anchors (decided) | owner | |
| EL-principle | added | Kernel deliberately close to unusable alone; no default policy values in the kernel; readers supply a starter profile | owner | |
| EL-buildprep | added | Design work before the first build (12-19), including the role-slot finding: slots exist (subject, object, kind, measure) but v0.1b roles were never mapped to them | ||
| EL-setup | changed | Setup-policy defaults reframed as the reader's starter profile |
Round 6 · 2026-12-01
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-links | added | Two families of link: continuation (8-element monoid, use-once, commuting) and evidence (records, actuates, anticipates, realises, senses, under; contracts; reusable; order-dependent). F-flip monoid rejected; kept as a drift filter. Cost: checked only on lines with evidence links | owner | DIGEST step 11; relations-and-matrix; notes 16, 19 9 |
| EL-pipeline | changed | Step 7 renamed 'links': continuation, evidence and begin/end checks | ||
| EL-stage0 | changed | D11 covers evidence-link contracts | ||
| EL-math | added | Monoid in plain terms with examples; evidence links as a second structure; why not extend the monoid; cost row | ||
| EL-overview | changed | Two kinds of pointing back: correcting entry vs supporting document | ||
| EL-rationale | added | 2.22 continuation and evidence links | ||
| EL-workplan | added | WP09b evidence links | ||
| EL-process | changed | exchanges.md rows 20-25 |
Round 5 · 2026-12-01
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-phase | corrected | Withdrew 'may x {begin,end,sample} invalid': grants can take time to take effect and permission state can be sampled; no fact-form invalid in advance; spans stay standing; one-off permissions are a use count; is example corrected | exchanges.md #18 | |
| EL-wire | added | Option A in full: two-byte 'what + shape' layout carrying every v0.1 short-header field in 28 bits | ||
| EL-guards | changed | g_P now checks the workbook per cell, not a per-relation rule | ||
| EL-stage0 | changed | D2 wire is the two-byte form; invalid-forms clause removed | ||
| EL-decisions | changed | Q11 points to the two-byte form; Q12 printability added | ||
| EL-process | added | exchanges.md: owner questions and outcomes, back-recorded from 2026-11-29 | ||
| EL-math | corrected | All 512 fact-forms allowed; two-byte storage; header table row | ||
| EL-overview | corrected | Every relation takes every phase; two bytes in the header | ||
| EL-rationale | corrected | 2.20 correction; 2.21 concrete two-byte form | ||
| EL-workplan | changed | WP04 two-byte layout; WP18 per-cell fact-form checks |
Round 4 · 2026-12-01
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-phase | added | Phase as (opens, closes); separation rule against D, M and not-yet; effect lands at instant and end; begin/end pairing; may x {begin,end,sample} invalid (96 of 512); ACT end = D0 end | owner | DIGEST step 10; notes 05, 06 |
| EL-wire | added | Type in one byte: options A/B/C; proposed A (c in one byte, phase separate) | ||
| EL-guards | changed | Added g_P (phase valid for relation; end cites an in-progress begin) | ||
| EL-stage0 | changed | D2 phase space and 9-bit query key; D11 pairing; pipeline step 7 | ||
| EL-decisions | changed | Q10 phase numbering; Q11 type byte; D-02 supported by the separation rule | ||
| EL-math | changed | Phase lattice, 512 vs 128, 416 valid forms | ||
| EL-overview | changed | Phase explained as two questions; 512 and 416 | ||
| EL-rationale | changed | Added 2.20 phase and 2.21 type byte | ||
| EL-workplan | changed | WP04 type byte and phase table; WP09 pairing; WP18 invalid fact-forms and phase names |
Round 3 · 2026-12-01
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-bits | decided | Direction renamed v0.2 -> v0.1b | owner | |
| EL-wire | changed | Default wire.type = 7 bits checked to keep header-only filtering on every bit; 6 bits kept as a compact profile | ||
| EL-derive | changed | F, S, O derivable and, by default, stored and checked | ||
| EL-relops | added | Relations as four operations with laws; effect-law self-check; unfolding order; operational reading of each bit; observed and authoritative partitions | note 08; DIGEST 3; note 16 9; note 06; mark-boundary | |
| EL-stage0 | changed | D1 no longer lists relations; D13 defines four operations; start-up step 0.3b | ||
| EL-decisions | changed | Q5 proposed default; Q8 answered; Q9 added (operation behind may) | ||
| EL-lineage | added | Lineage against notes 06, 08, 16, DIGEST and mark-boundary | ||
| EL-process | added | Iteration recording: element ids, iterations.csv, snapshots, commits, Iterations tab | ||
| EL-workplan | changed | WP03 effect-law self-check; WP04 default wire; WP07 partitions; WP11 effects as operations | ||
| EL-overview | changed | Header carries all six answers; three are checked | ||
| EL-rationale | changed | Added relations as operations, wire default, partitions; 2.6 revised | ||
| EL-math | changed | Stored-and-checked default; effect laws section; header table default |
Round 2 · 2026-12-01
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-kinds | corrected | Class by origin withdrawn: money and kWh both enter as declared holdings. Intake from outside:<unit>; class by location or move; seed kind item | ||
| EL-derive | changed | Added name resolution (2.1) | ||
| EL-wire | added | v0.1 vs new type-bit budget; v0.1 stores M and D twice | bitpack-header-draft-v0.1 | |
| EL-stage0 | decided | Printing the start-up into a log is an audit option, off by default | owner | |
| EL-workplan | added | Technical work plan: 25 work packages, milestones, assembly/C/Python appendices | ||
| EL-overview | added | System overview | ||
| EL-rationale | added | Design rationale | ||
| EL-math | added | Mathematics |
Round 1 · 2026-11-30
| Element | Change | Summary | Decided by | Refs |
|---|---|---|---|---|
| EL-bits | added | One meaning per bit, the same for every relation | ||
| EL-derive | added | F, S, O derived from roles and state; 6-bit stored type | DERIVE-CONTEXT-V2 report | |
| EL-laws | added | mu/nu/sigma bit laws, citation checks, state laws | ||
| EL-pipeline | added | Ten-step reading pipeline; open replays through admission | ||
| EL-guards | added | Guards as an ordered conjunction; packs only add conditions | ||
| EL-births | added | Births by first mention; role defaults; principals self-owned | ||
| EL-kinds | added | Unit symbols as kinds; class by origin; trait bitset; tags as boundaries | ||
| EL-transfers | added | One line per transfer; push/pull = O; holds = M; reversal = D | TigerBeetle; REA | |
| EL-ownership | added | Four ownership forms; notification classes from bits | ||
| EL-indexes | added | No scans: births are resolution misses; append-only indexes; checkpoints | ||
| EL-stage0 | added | Stage 0 definitions D1-D16 and start-up sequence | ||
| EL-setup | added | Two required lines; conditional setup; setup policies with strict modes | ||
| EL-kernel-math | added | Consequences for kernel mathematics; proof obligations | ||
| EL-decisions | added | Effects on D-01/02/03/05/11; open questions |
By element
| Element | Iterations | Rounds | Latest change |
|---|---|---|---|
| EL-bits | 2 | 1, 3 | Direction renamed v0.2 -> v0.1b |
| EL-derive | 3 | 1, 2, 3 | F, S, O derivable and, by default, stored and checked |
| EL-laws | 1 | 1 | mu/nu/sigma bit laws, citation checks, state laws |
| EL-pipeline | 2 | 1, 6 | Step 7 renamed 'links': continuation, evidence and begin/end checks |
| EL-guards | 3 | 1, 4, 5 | g_P now checks the workbook per cell, not a per-relation rule |
| EL-births | 1 | 1 | Births by first mention; role defaults; principals self-owned |
| EL-kinds | 2 | 1, 2 | Class by origin withdrawn: money and kWh both enter as declared holdings. Intake from outside:<unit>; class by location or move; seed kind item |
| EL-transfers | 1 | 1 | One line per transfer; push/pull = O; holds = M; reversal = D |
| EL-ownership | 1 | 1 | Four ownership forms; notification classes from bits |
| EL-indexes | 1 | 1 | No scans: births are resolution misses; append-only indexes; checkpoints |
| EL-stage0 | 6 | 1, 2, 3, 4, 5, 6 | D11 covers evidence-link contracts |
| EL-setup | 2 | 1, 7 | Setup-policy defaults reframed as the reader's starter profile |
| EL-kernel-math | 1 | 1 | Consequences for kernel mathematics; proof obligations |
| EL-decisions | 5 | 1, 3, 4, 5, 7 | Owner accepted proposals overall: F/O meanings, class rule and intake, ownership forms A/B in kernel, 7-bit checked wire, batch before, second place refused, may's operation named self-apply, phase lookup table now, two-byte layout, 14-bit delta, ACT end D0 end, v1 logs stay under v1 |
| EL-wire | 6 | 2, 3, 4, 5, 7, 9 | Text headers: T1 stored; readers offer compact T4c and complete T4f text headers (Q12) |
| EL-workplan | 6 | 2, 3, 4, 5, 6, 8 | Trace and pacing in WP03 and WP12; new WP19b glyph view and activation window |
| EL-overview | 5 | 2, 3, 4, 5, 6 | Two kinds of pointing back: correcting entry vs supporting document |
| EL-rationale | 5 | 2, 3, 4, 5, 6 | 2.22 continuation and evidence links |
| EL-math | 5 | 2, 3, 4, 5, 6 | Monoid in plain terms with examples; evidence links as a second structure; why not extend the monoid; cost row |
| EL-relops | 1 | 3 | Relations as four operations with laws; effect-law self-check; unfolding order; operational reading of each bit; observed and authoritative partitions |
| EL-lineage | 1 | 3 | Lineage against notes 06, 08, 16, DIGEST and mark-boundary |
| EL-process | 6 | 3, 5, 6, 8, 9, 10 | Rounds 8 and 9 committed and pushed (e40d375); exchanges.md row 31 |
| EL-phase | 2 | 4, 5 | Withdrew 'may x {begin,end,sample} invalid': grants can take time to take effect and permission state can be sampled; no fact-form invalid in advance; spans stay standing; one-off permissions are a use count; is example corrected |
| EL-links | 1 | 6 | Two families of link: continuation (8-element monoid, use-once, commuting) and evidence (records, actuates, anticipates, realises, senses, under; contracts; reusable; order-dependent). F-flip monoid rejected; kept as a drift filter. Cost: checked only on lines with evidence links |
| EL-principle | 1 | 7 | Kernel deliberately close to unusable alone; no default policy values in the kernel; readers supply a starter profile |
| EL-buildprep | 2 | 7, 8 | All eight design items approved by the owner |
| EL-views | 4 | 8, 9, 9, 10 | handoff-braille-view-pack.md for another agent; the Braille set confirmed as a reader view pack, needing no kernel decision |
| EL-inputs | 1 | 8 | Clay v2 copied in as an input, with its conflict table against rounds 1-7 |
| EL-modal | 1 | 8 | Kernel activation window flagged; first build must emit a trace and support a paced runner |
| EL-buildspec | 3 | 8, 10, 10 | The ten choices in spec-v0.1b.md section 10 accepted |