Created by: OpenAI Codex
Source: docs/creation/review/01-structured-reading.md
Reader's summary
The paper proposes a second-generation STREAM model. Its aim is one append-only, integrity-checked log from which the organisation's structure, descriptions, permissions, flows, balances and user-facing views can be reconstructed. Its new thesis is that the fixed kernel can contain only a small set of reading rules and positions, not a named vocabulary. A short seed plus the log's first segment builds the rules used for later entries. A compact printable-ASCII notation then encodes facts using two type glyphs, a head letter and position-coded fields.
The conceptual chain is:
boundary + succession + equality
↓
cross / call / combine / re-enter
↓
in / is / may / to
↓
structure / Register / authority / Books
↓
views (and disposable caches)
The log is intended to be the only authority. Names, units, domains, local rules and interface definitions are declarations in the log or hashed packs adopted by it. The paper's most consequential move is to treat wording and data encoding as replaceable labels over stable logic, while keeping the canonical fact and its position in the append-only history fixed.
Abstract and introduction — one record
The opening motivates STREAM by the fragmentation of operational truth across task tools, ledgers, audit trails, permission tables and metrics. STREAM's answer is a single log. Acts, claims, permissions and flows are entries; all other state is a fold or view over those entries.
Three claims form the thesis:
- Four relations cover the model: in (containment/location), is (identity/property), may (authority/permission), and to (directed movement of a quantity).
- The kernel fixes logic and roles, while words, units and domains are data outside its fingerprint.
- A fact's meaning comes from its type and field position, rather than per-line field names or schema labels.
The initial use case is operating AI agents and machines that consume tokens, energy, CPU and money. The proposed scope is broader: farms, workshops, clinics and households should differ by packs, not by the underlying relations.
The paper explicitly separates itself from the implementation status: current Rust/wasm is called “kernel v1”, using a text descriptor and JSON lines. The paper's unfolding kernel and packed line are a proposed successor, not implemented in the repository at the time of writing. The paper reports a 75-entry corpus trial, but does not include the corpus or test harness in this repo snapshot.
Section 2 — foundations, relations, facts and entries
Primitives and operations
The three primitives are boundary (distinction, inside/outside), next (succession, counting/order/time), and same (equality/identity). Printable ASCII and SHA-256 are stipulated constants. Four operations, attributed to Spencer-Brown's Laws of Form, are named: cross, call, combine and re-enter. Recursion is presented as the generator: each distinction has its own boundary, and distinctions can be applied to other distinctions.
Four relations and containers
The paper makes the four relations both semantic categories and state destinations:
| Relation | Question | Claimed logic | State container |
|---|---|---|---|
| in | where is it? | part/whole; transitive, asymmetric, held over intervals | structure |
| is | what is it? | one value per property at a time; superseded, never erased | Register |
| may | is the crossing allowed? | permission; not transitive unless delegated; traced to root | authority |
| to | what crossed, and how much? | directed quantity with unit; conserved quantities balance | Books |
Containment affects interpretation: in is transitive; is inherits down where declared; may scopes down where stated; to rolls up. Views read these containers. Caches can save computed results but are disposable.
Fact and entry
A fact is one relation, direction and up to four roles: subject, object, kind and measure. The role determines the encoding. An entry bundles one main fact and attached facts at one moment by one recorder. Each fact is marked fact or possible; attached facts default to fact. The example of a tool call ending groups a span closure plus energy and CPU flows in one entry.
Each fact also has a phase: instant, begin, end or sample. Begin/end bracket a span; sample records an observation in an ongoing series. Time is said to emerge by re-entering the log boundary. The paper therefore treats phase as part of the fact type.
Section 3 — kernel as a fold over its own first segment
The kernel is defined as K = fold(step, S0, segment0): apply a step function to empty state over a first segment, obtaining the rulebook for later lines.
The proposed seed-level kernel contains step rules, the meaning of six stored type bits, the fact-role shape, an evaluator (equal/and/not/count/every/first/previous), seal checking, and one human-readable spelling. It explicitly excludes verb names, field names, units, domains and domain rules. Those are supplied by segment 0 and label/domain packs. The goal is to let a translated or renamed vocabulary leave the kernel hash unchanged.
The four empty state containers are structure, Register, authority and Books. Genesis is a bundle: open the log's boundary, declare its name/clock/timezone, and give the root authority inside that boundary. Subsequent permissions trace to this root; things are contained within the log boundary.
The first open design choice is where hard integrity constraints live: as data rules in segment 0 (smallest kernel), hard-coded kernel behavior (stronger fixed guardrails), or profile-specific kernels (adaptive but less common identity). The motivating current-code issue is that kernel v1 reportedly permits a non-genesis first entry and a second genesis that replaces the root; the paper says segment-0 rules or fixed kernel rules should close these gaps.
Section 4 — seed, bootstrapping and reader
The paper argues that a vocabulary-free kernel still needs a starting description. A seed is a short public text and test vectors, pinned by hash. A reader implements those seed rules. It reads segment 0, seals and self-checks it, and then uses the completed rules to read later log entries.
Before reading, it assumes physical distinction, a machine that executes steps, printable ASCII, SHA-256 and the seed hash. The sequence is: load seed; initialize four empty containers; open segment-0 boundary; declare kinds for permissions/units/segment/seal/fingerprint/count; declare rules; optionally declare spellings; verify the seal; re-read under the finished rules and check conformance; then read working-log genesis.
Rules are effective from the line after declaration. This staged rule activation is the mechanism by which segment 0 can build a rulebook that ultimately validates itself. It also creates a bootstrap trust question: what precisely is allowed before all the rules exist, and how does the final pass guarantee earlier lines were not accepted under an unsafe partial interpretation?
Three-loop pseudo-reader
The assembly-like example is explicitly illustrative, not a real ISA. It gives three nested loops:
- line loop: distinguish header, row and full entry; hold entry time;
- fact loop: read relation/direction glyph, modality/phase glyph, head bits and then fields in a fixed role order; derive context; check applicable rules; dispatch to the matching container; expand compact forms; hash canonical full line and increment count;
- field loop: accumulate five bits per letter; lowercase means continue field, uppercase ends it. Measures are decimal digits and may end in
~for estimate.
The seven correspondences emphasize that parser structure mirrors model structure; time is shared across facts in one entry; roles occur in a fixed order; relation chooses destination container; rules are declarative; compact syntax is expanded before hashing; and position labels/context are derived rather than stored.
The worked line [)SkQED>._HCX271>.OHCJ76~ is parsed as an end of an in span, followed by a CPU flow (27.1 CPU seconds) and an estimated energy flow (~76 J), all within one entry/time. The paper's explanation says subject/object/kind IDs are encoded in field letters and each flow has a measure.
Open seed choices: public text plus vectors (recommended), a fixed binary header, a node tree, or a reference implementation. A second question asks whether segment 0 should be reread only under the finished rules, reread plus conformance logs, or not self-checked.
Section 5 — positions and identities
The paper derives positions by repeated binary distinctions. Relation and direction produce four relations, then acts; fact/possible modality doubles; frame/world, sign/substance and self/other add contextual distinctions; time re-entry adds four phases. The 128-position map is derived, but only six bits are proposed as stored: relation (2), direction (1), modality (1), phase (2). Three context bits are inferred from kind and roles. Thus all 64 stored combinations should be meaningful; the larger 128 map is used to select labels and policy rather than written per fact.
Reported evidence is mixed in scope: 75/75 entries reportedly recover verb names with the full 7-bit position; whether the three context bits can always be derived is explicitly untested. A label pack maps (position, phase, kind) to words. Examples show the same glyphs can mean PAY, ACK, MEASURE, ACT begin/end, GRANT or REVOKE depending on derived context and kind. The paper says 51 ZAKO verbs map directly; remaining 13 are phase or kind variants.
Thing identity is the address of the entry/fact that created it, represented as backward distance from current line. Names are mutable is facts in the Register. Open questions concern bounded synonym sets, how much of the 128-position map to name, and whether to drop the contextual map entirely.
Section 6 — compact line grammar
The paper targets 8–25 printable characters per fact/entry versus 100–180 characters in today's JSON. Its grammar components are:
- Glyph 1 encodes relation and direction using
[ ] + - ! | < >. - Glyph 2 encodes fact/possible and phase using
. ( ) * ? { } ^. - Head character encodes full-line versus row mode in case, four role-present bits, and a more-facts-follows bit.
- Field letters encode five payload bits each; lowercase continues a field, uppercase closes it.
- Digits encode measures in declared scale;
~marks estimate. Quoted text or#hash are rare explicit values.
Fields have no separators because capitalization marks their ends; facts have no separators because glyphs mark their starts. Field order is time, subject, object, kind, measure. Time appears once, on the first fact in an entry. Recorder and references are attached facts when not covered by defaults. Words are in packs, not lines.
There are 64 combinations of the two glyphs. The table maps them to acts/phase names, with some cells deliberately unnamed. ?, {, } and ^ encode possible instant/begin/end/sample. Some table cells bundle multiple labels into one position (e.g., OPEN/JOIN; PAY/SEND/ACK); the kind and derived context disambiguate.
Full lines are standalone and canonical. Header runs state shared context once, then rows carry changes (often just a measure); _ marks a missing sample; comma can carry row-specific late time. Rows mechanically expand to full lines; only expanded form is hashed. Header use is proposed for regular world samples, work spans and within-run flows/estimates. Frame acts, most possible acts, value transfers between parties and text/hash-valued facts are full-line-only by policy.
Open choices cover glyph set, value encoding, header marker and where header policy is enforced. Size table gives estimated lengths; these are targets/claims pending independent reproduction.
Section 7 — flows and domain mapping
A to fact is a quantity of one kind moving from subject to object. The paper says one flow is both accounting legs: subject is credited, object debited, so balance is constructed by the fact's shape rather than checked across two separately written entries. It derives 16 BitLedger Universal Domain archetypes from relations, modality, containment, bundles, kinds and glyphs: source/sink, parent/child, debtor/creditor, exchange, loss/generation, escrow/repayment, transformation, distribution/aggregation, internal transfer, obligation transfer, state commit, correction and compound continuation.
Domains are is facts declared when things are created; they can be inherited from containment or inferred from units, with financial classes only where needed. A purchase is represented as a compound entry containing a goods flow and an opposite money flow, each with its own kind/domain; the whole is a mutual exchange. The paper claims one universal mechanism can print/export to finance, engineering and health domains.
The mapping table assigns each BitLedger field (value, rounding, direction, status, debit/credit, account pair, completeness, domain and quantity type) to line/register information. It claims lossless export within BitLedger limits. Open choices: fallback domain, financial pair table, and whether flows point to accounts or parties.
Section 8 — packs, Register, Books, views, interface
Packs are versioned, hashed declarations adopted by a log. The proposed categories are label, kind, domain, policy and interface. Adoption fixes which words/rules a log uses at what point. Register is the time-sensitive fold of is facts; later values supersede earlier values without erasing history. Books roll up to facts along containment, producing per-unit balances and statements; the paper reports that a model Books test matched today's Books from flow facts alone.
Views are pure computations over containers at a point. Caches are disposable. Loom is proposed as a declarative interface language whose forms write entries, views render screens, rules refuse/flag, and automations propose entries subject to grants. The paper wants app definitions themselves to be data. It leaves open whether packs are pinned by hash at adoption, by name/version, or embedded in segment 0.
Section 9 — integrity and known gaps
Canonical form is the expanded full line; all compact, spaced or binary spellings should decode to it. Hash only canonical form. Segments end with an in, out of seal containing line count and SHA-256; each seal chains the preceding seal. Segment 0's fingerprint identifies the kernel.
Verification should validate segment 0, reread it under completed rules, check working-log genesis first and unique, fold later entries against rules in force, verify seals, and recompute needed views rather than trust caches. Refusals are themselves logged as ACK entries.
The paper contrasts three kernel v1 gaps with proposed segment-0 rules: non-genesis first entries, duplicate/mid-file genesis, and verification failing to catch either. Seal frequency and canonical text-vs-binary form remain open.
Section 10 and appendix — work sequence and lineage
The proposed implementation sequence is: derive the three context bits over the corpus; freeze glyph/head layout; publish seed and vectors; specify grammar and round-trip old JSON; derive archetypes and domain packs with exporter; rebuild Rust kernel and close genesis gaps; record decisions in lineage.
The appendix points back to 17 creation-analysis docs, overview docs, handover and lineage, then summarizes 26 kernel-model phases. It explicitly says paper sections A.4 steps 27–40 are not yet in a repository and that this paper is their only written record. That means many key new decisions/claims are not currently captured by the repo's formal lineage register. The appendix's evidence summary says “74 of 75 round trip”; this does not match the main text's 75/75 verb-name recovery claim, and they may describe different tests, but the paper does not spell out the distinction.
My synthesis of the design's intended shape
I read this as a proposal to separate four things very sharply:
- Invariant record: canonical facts and append order, sealed and hash-addressed.
- Minimal reading logic: the seed/kernel determines how to parse and route facts, but should not contain words or domain concepts.
- Declared frame: segment 0, later entries and adopted packs give codes their names, units, domains and local policy at a particular log position.
- Derived presentation: views and printouts interpret the same facts for a domain or audience; they must not become a second authoritative store.
The compression scheme is not just a shorter serialization. It is meant to make the conceptual model visible in syntax: glyphs show relation/phase, role order eliminates field labels, case closes fields, and headers exploit repeated context. Likewise the “unfolding” claim is architectural: the first segment extends a generic reader into a complete, self-described rule set. Whether the logic really derives from the three primitives, whether the compact notation is unambiguous and robust, and whether the domain/accounting mappings preserve required semantics are the key proof obligations the paper itself identifies.