Version: 0.1b, working draft, 2026-12-02 (revised round 14: §10.1 items 17–18 decided by the owner — F3 anchors-only, F4 acknowledgement via a new acknowledges evidence kind (proposals p-009–p-010 adopted); the anchor-authority rule is open (item 19, d-038); §9 expected T1 encodings and state hashes added. Revised round 13: §10.1 items 12–16 accepted by the owner; F1/F2 rules and hardening vectors H01–H03 adopted (proposals p-001–p-008); F3 and F4 added as proposed items 17–18. Revised round 12: authority is checked on the target; time rules tightened. Round 11 findings from the reference build are included) · Status: the baseline for the first v0.1b build of the kernel and a reference reader. Not frozen. Home: spec/versions/v0.1b.md in the Stream repository, shown on the Spec tab of the Stream section of the website. The version register spec/versions/index.json records its state, lab, release, issues and discussions. Drafted in lab 2026-11-30-v0-1b-direction-claude; the authority rules of §5.6.1 come from lab 2026-12-01-v0-1b-reader-authority-fix-claude; the F3/F4 rules come from lab 2026-12-02-f3-f4-probe-muse.
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/1 and 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.
Time rules. A time anchor must not be earlier than the previous anchor: the log is refused with error 203. A permission with a validity window (valid) is not live until the log knows the time, that is, until its first time anchor. Time for authority comes only from time anchors (d-020, decided round 14). An entry's delta orders entries but does not move the authority clock; the clock moves only when an anchor line is read. Who may write an anchor is open (d-038): as written, a framing line names no recorder and the reader applies no authority check to it.
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 (30 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 | 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. The delta records the gap between entries; it does not move the authority clock (§2.1, d-020).
3.2 Text form T1 (stored)
- Open (§10, item 11): the short header has no room for check bits. The fields above total 30 bits, which fill the five symbols. The reference build (lab
2026-12-01-v0-1b-reference-reader-claude) follows v0.1: no check in the short header; the segment seal detects damage. The alternative is a 12-bit delta plus two parity bits (bit A = XOR of even-numbered bits, bit B = XOR of odd-numbered bits). - 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. Kinds: records, actuates, anticipates, realises, under, acknowledges (§5.5) |
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). outside is a reserved kind: a book kind whose books belong to the roots and may go negative. A name is a principal because of the slot it fills (a may holder, rec, for, src), not because of its prefix: in actor:alice, actor is an ordinary kind name; the principal owns itself. 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, and never outlasts or out-uses it (§5.6.1) |
| 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, and c ⊕ c_cited has no bits outside {1, 8, 16}, with bit 16 set only from pending to committed (600–602). An end cites an in-progress begin with the same c (603). - Evidence (
ev): each kind's contract (build-specs.md §5; 610, 611). Acknowledges (acknowledges, d-021, decided round 14): the cited entry is a live establishment; the acknowledger is its actor or holds a grant over what it moves (its s or o); it is recorded once (a second acknowledgement of the same entry is refused 611); it posts nothing -- it does not move the books. The contract as probed is loose (any grant over s or o qualifies as a party); tightening it is an implementation detail of the selected option, not a further decision. - Retire (
retire): closes a pending or in-progress item without effect. The entry must have the same position and the same subject as the item it closes (601), and its actor must be the item's actor, the item's owner, or a root (705).
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.6.1 Authority is checked on the target
The header bit O says who the line is about: it follows the holder, and it flips when the other party records a settlement. O describes meaning. It never decides authority. Every guard that needs authority checks it against the object the act targets, whoever the holder is. A recorder who grants a permission to itself (O = 0) gets no shortcut.
- Granting (
may, committed, D = 0): the actor must be a root, own the object, or hold a live grant over it (705). A grant may not exceed what the granter holds: actions, limit (707). A holder who is not a root or the owner records the grant it was made under; revoking that parent ends the child. - Re-granting under a grant needs the action
grant (12) in the granter's own grant (707). The new grant may not carry more uses than the parent has left, and its valid window must lie inside the parent's (707). Its uses are carved out of the parent's: the parent's count falls by the child's, so delegation never multiplies uses. uses is a positive whole number and valid is {from, until} in whole seconds (704). - Joining a boundary (
in, D = 0): putting any member into a boundary the actor does not own needs that boundary's authority, even when the member is the actor itself (705). - Revoking a grant (
may with undo): only the granter, the object's owner or a root (705). - Reversing a transfer (
to with undo): the actor must be a root, own the book the money leaves, or hold a live grant over it with the action pull (705). A reversal paid for by a grant spends one of its uses. - Undo and settle (any continuation) must name the same subject, object and kind as the entry they cite (601), so a reversal of a transfer names the same books and unit. A settlement of a
to posts exactly the amount that was held (601). - Issuers: only a root may declare a book an issuer (
is with property issuer, 705). Resource units can never have an issuer. - Uses: a grant with
uses is spent by one act under it (under, or a pull); at zero it is no longer live. An act marked under must name a live grant held by the actor (610).
The rule that O flips when the other party records applies to settlements only.
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);
roots must not be empty (212); seed must 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); 203 (a time anchor goes backwards: a log error, not an entry refusal). Codes 705 (no authority) and 707 (exceeds the granter) apply as set out in §5.6.1.
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. The expected T1 encodings and state hashes are in spec/conformance/t1-expected.jsonl, produced by the reference reader (r3) in lab 2026-12-02-f3-f4-probe-muse (27 vectors, 0 failures); every later implementation must reproduce them. Each row names its vector file in source, because the ids are not unique across the two files (core H01/H02 and hardening H01/H02 are different vectors). The state hash is the SHA-256 of the canonical JSON of {books (auth), observed (obs), reserved, reg (auth), members (auth), in-progress (live positions), grants (live), time}, with decimals as strings and keys sorted. One vector, X01, has no T1 line: it is the delta-overflow vector and its line is unencodable (302).
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. Each choice is recorded with its alternatives in the Decisions log (spec/decisions/, decisions d-001–d-011).
| # | Choice | Section |
| 1 | Phase written as (opens, closes) bits in the v0.1b header | §3.1 (d-001) |
| 2 | T1 check bits: two parities, even and odd bit positions. Superseded by item 11. | §3.2 (d-002) |
| 3 | Kernel bookkeeping as framing lines (STREAM/1 …): segment open, seal, time anchor, bind, refusal | §2.1 (d-003) |
| 4 | Refused entries take a position; their refusal line records it | §2.3 (d-004) |
| 5 | Batches marked by a shared batch field; all or nothing | §2.4 (d-005) |
| 6 | Closing a pending or in-progress item by a retire field on an entry of the same position | §4.1 (d-006) |
| 7 | Unknown body keys refused; sig reserved | §4.1 (d-007) |
| 8 | Value types for is (string, integer, decimal string) and the form of may's action list | §4.2 (d-008) |
| 9 | GENESIS as an entry with c = 0 and no role bits | §6 (d-009) |
| 10 | Maximum line length 65,536 bytes | §2 (d-010) |
| 11 | Open, found by the reference build: with the 14-bit delta the header is 30 bits and has no room for check bits. Choose: 14-bit delta and no short-header check (as v0.1, and as built), or 12-bit delta plus two parity bits. | §3.1–3.2 (d-011) |
10.1 Accepted in round 13 (2026-12-02); items 17–18 decided in round 14 (2026-12-02); one further choice open
Found by automated security review of the reference reader and fixed in lab 2026-12-01-v0-1b-reader-authority-fix-claude (40 tests and all 24 vectors pass). They are written into §2.1 and §5.6.1 as the baseline. The owner accepted items 12–16 on 2026-12-02 (proposals p-001–p-005 adopted into v0.1b@13; decisions d-012–d-016). The F1/F2 rules and hardening vectors H01–H03 were adopted with them (proposals p-006–p-008; decisions d-017–d-019). Two further choices from the hardening record were proposed in round 13 and decided in round 14, on the probe lab's evidence (lab 2026-12-02-f3-f4-probe-muse; proposals p-009–p-010 adopted into v0.1b@14; decisions d-020–d-021): F3 (item 17) and F4 (item 18). One further choice from the F3 decision is open: who may write a time anchor (item 19, d-038).
| # | Choice | Section |
| 12 | Authority is checked on the target of the act, independently of O; O flips for settlements only | §5.6.1 (d-012) |
| 13 | Time anchors cannot go backwards (203); a validity window is not live until the log knows the time | §2.1 (d-013) |
| 14 | Re-granting needs the grant action and is capped by the parent's uses and validity; child uses are carved out of the parent | §5.6.1 (d-014) |
| 15 | Only a root may declare an issuer | §5.6.1 (d-015) |
| 16 | Reversals and revocations need authority over the thing they undo; a reversal spends a use | §5.6.1 (d-016) |
| 17 | Decided in round 14: the authority clock. Time for authority comes only from time anchors; entry deltas order entries but do not move it. Who may write an anchor is open (item 19). | §2.1 (d-020) |
| 18 | Decided in round 14: an authorised other-side line is an acknowledgement and posts nothing. The record form is a new evidence kind, acknowledges (§5.5). | §5.5 (d-021) |
| 19 | Open: who may write a time anchor. Anchors-only moves the clock's trust to whoever writes anchors, and a framing line names no recorder. Options in the Decisions log. | §2.1 (d-038) |