/ Stream
build 2026.12.03 · --:--:-- UTC · RSS

BabbTools for the frontier.

mascot mascot
StandardIn development

Stream design.

Architecture, the mathematics involved and the questions still open. Each section states its version, its current state and the sources it was written from. Every marked piece has its own linkable entry in the Elements index.

What changed
  • Persistent questions: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • Building applications: Loom: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • Relations, the 128 positions and the matrix: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • The unfolding kernel: a seed that acquires vocabulary: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • Integrity, replay and verification: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • The Books: conservation, capacity, attribution: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • Authority, the Register and packs: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • Verbs and phases: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • The entry and its grammar: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • The kernel and its identity: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • The relativity of data: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.
  • One log: acts, views as folds, caches: Reworded "version 1", where it meant what the Rust build does, to "the 24 November Rust build". Wording only; sources not re-reviewed.

1 The starting inquiry: logs, acts and cost

v0a

Stream began with a practical question: could one simple record show what people, machines and AI agents did, and what it cost, well enough that boards, histories and accounts could all be rebuilt from it? This section sets out what already existed, what was found to be wrong with it, and what was measured first. It matters because most later decisions answer one of these early findings.

The inquiry

The work opened as a continuation toward “an ultimate logging standard”, from an earlier study of two repositories: Workwarrior, and MobileOS, which holds the ZAKO work. The direction reached by then was a journal with Workwarrior’s readable event structure, ZAKO’s vocabulary, BitPads’ compact framing and BitLedger’s accounting discipline. A machine, person or process would write a small record, whose type determines what it claims, what context it needs and what the journal must check before accepting it.

Workwarrior’s Stream already wrote one occurrence per line:

<timestamp> <OP> <action> <object> <ctx_json>

Its lenses derived sequences, intervals, boards, transitions and densities from that one file. Three properties made it unfit as a journal of record:

Limitation Effect
Ingest deduplicated on timestamp, OP, action and object A second actor at the same second could be lost
Intervals were paired by object alone Overlapping work was reconstructed wrongly
Ingest sorted the file in place and a reset truncated it History was rewritten

BitPads contributed framing that states context once. BitLedger contributed a compact accounting component and a balance check across a group. ZAKO contributed shared meanings: a Codebook of 64 verbs in 8 blocks, domains, quantity types and account pairs.

Claims are harder than shapes

Mapping fields between these systems was easy. Mapping what they assert was not. A Workwarrior punch-out says an interval ended, while ZAKO’s FINISH says a work item was completed, and an operator can leave a machine while the job stays open. The actor is also not always the recorder: a host may record an act performed by an agent, so a record must be able to keep both.

The test set before the design

The architecture was given a failure scenario to survive: an agent or machine run with an offline recorder, a duplicate upload, a late observation, overlapping activities and one corrected posting.

Discard every projection and replay. The same history and balances must return, the overlap must be preserved, gaps accounted for, and the correction traced to its evidence. A compact form must pass the same test after decoding.

Run against the shipped Workwarrior code, the scenario showed two overlapping shifts of 20 and 40 minutes reported as one 10-minute interval, and a third operator’s punch silently dropped. The trial journal kept all three, and reported the unclosed punch as open without closing it on anyone’s behalf.

Testing also found a gap in the first draft. Rejected submissions consumed producer sequence numbers without leaving a trace, so “rejected” could not be told from “never arrived”. The rule that followed, that a rejection is itself written to the journal, survives in version 1 as an ACK entry carrying refused.

A compact form is valid only if it decodes to the canonical lines byte for byte, and its size is counted over the whole batch.

Where the bytes go

The aim was then stated more sharply: to find the smallest meaningful act, especially of an AI agent whose single instruction fans out into thousands of actions, and to understand how resources are allotted and what they cost within time. Recording everything is impossible. Before choosing an encoding, the canonical lines of the trial journal were measured:

Part of the line Share
JSON key names and syntax 26.2%
Recorder and actor identifiers, repeated on every line 13.4%
Digests, legs, reasons and other values 37.6%
Timestamp 8.3%
Object 6.6%
Action word 4.9%
Op letter 1.5%

The op letter was already as small as it could be, so a richer alphabet for it alone could not deliver the aim. The savings lay in stating context once, fixing field positions by record type so key names disappear, and writing time as a difference from the previous row. On a thousand meter readings, canonical lines took 110,728 bytes, gzip of those lines 7,514, a readable run form 3,923, that run form compressed 1,342, and a packed binary block 888. Gzip is the honest storage baseline: the run form earns its place by staying readable to people, shell tools and models without decompression.

The act

The unit worth recording is an interval with an actor, a kind, an object and a vector of resources:

\[\mathrm{act} = (t_{\text{start}},\ t_{\text{end}},\ \text{actor},\ \text{kind},\ \text{object},\ \mathrm{use}\{\text{quantity}: \text{amount}\},\ \text{evidence})\]

A point event is an act of zero length. An open and close pair is one act written in two halves, which keeps work in progress visible and makes a missing close evidence of a crash.

Time is the envelope and is not consumed. Wall time does not add under concurrency: two calls running side by side for 10 seconds took 10 seconds. Energy, CPU time, tokens, material and money do add, and they balance.

Acts nest, from project and task down to tool call, process and system call. A stream declares the deepest level it records one by one. Below it, conserved quantities roll into the parent, unrecorded acts are counted, and the remainder between a parent and its recorded children is stated per quantity. A negative remainder is reported as over-attribution and never clamped. In the trial agent task every token was accounted for, and 2.5 CPU-seconds and about 55 joules fell between the recorded steps: the agent’s own overhead, visible as a number. A ~ prefix marks an estimate, and anything mixed with an estimate becomes one.

What later work replaced

The first draft keyed record types as OP.action and added new op letters for measurement, ledger and run records. Verbs with a phase replaced both. Glyphs proposed for actions survive as phase marks and display aliases.

Open questions

Do shorter spellings cost fewer tokens? Open

A tokenizer merges common words, so start may cost one token where B( costs two. Savings probably follow the dropped keys and identifiers more than the glyphs. Measuring this needs a provider’s token-counting interface, and was not done.

What does native parsing cost? Open

The Python run-form decoder was two to three times slower than a C-backed JSON parser. A fair comparison needs native code on both sides.

Which source definition wins where specifications disagree? Open

The inherited specifications disagree on some verb numbers and on the meaning of the direction bit. Choosing one keeps compatibility with part of the earlier work; defining afresh frees the design and breaks that link.

2 One log: acts, views as folds, caches

v0a

Most systems keep several databases and try to keep them in agreement. Stream keeps one list of what happened and works everything else out from it. This section explains the four parts of that arrangement and what each may be trusted for. It matters because it decides what must be protected, what can be thrown away, and how an old answer can be checked.

Kernel, log, views and caches

Part Role If it is lost
Kernel How to read the first entry and everything after Held as a small file whose hash the log names
Log What is true Everything is lost: protect and replicate it
Views How to read it Rewrite them; the log records which version produced a result
Caches How to read it fast Rebuild them

The log is the only authoritative store. It is append-only, sealed in a hash chain, and addressed by segment and sequence.

A view is a pure function of the log. It reads only entries up to a position, plus declared parameters. It never reads the clock, random numbers or the network; anything needing the outside world is an estimate.

Everything is an entry

The question that produced this architecture was whether registers and price tables could be logs too. Almost everything can be, and each declaration then has a time, an author and a history.

Usually a separate file As entries What is gained
Register CREATE, BIND, AMEND What a thing was called, and what it belonged to, at the time of any act
Price tables and tariffs Price declarations with an effective time The price that applied then; repricing without overwriting
Grants GRANT, REVOKE, DELEGATE Authority becomes replayable
Clocks and sessions Session-open entries Clock provenance inside the record it qualifies
Budgets and commitments Allotment postings, schedule and agreement entries Plan against actual from one history
View rules A declaration naming method version and code hash Exact reproduction

Everything is an entry except the kernel, content stored by hash, and disposable caches. Nothing outside the log is both changeable and authoritative.

The Register is the set of things a log has declared: objects, actors, units, accounts, pools, clocks, profiles, prices, grants and views. It is a fold of the declaring entries, so it can answer what was true of a machine or account at any past position.

The identity of a result

Purity gives every result an exact identity, which is also its cache key:

\[\mathrm{result} = \mathrm{view}_{h}(\theta,\ L_{\le A})\]

where \(h\) is the hash of the view’s method, \(\theta\) its parameters and \(A\) the address the log was read up to.

Results are computed, not recorded, with one exception. When someone publishes a figure others will rely on, it enters the log as an attributed estimate naming the view, parameters, address and a hash of the result. Anyone can rerun the view and compare. Entries arriving after that address never silently change the published figure; a later revision supersedes it. A decision that used the figure cites it, so the log holds what happened, what was known when the decision was made, how that was computed, and who acted.

Speed comes from the fold

A cache is a saved view result. It is never authoritative, is keyed by its result identity, is checked against period seals, and is rebuilt on demand.

Running totals update only the accounts an entry touches. A checkpoint plus the entries since it gives the current state, so replay covers the open period. Sums can be split by account, segment or period and merged, and a correction applies the old value negated plus the new one. A full replay follows a rule change, an audit or a suspect cache. Medians and distinct counts do not merge like sums and need period summaries of their own.

Packs set a log up

A pack is a bundle of declarations stored by its hash, adopted with one BIND entry. From that position the log reads as though every declaration in the pack had been entered there. Adoption is atomic, compact, shareable and traceable.

Packs stack from a standard pack to domain packs to an organisation’s own. Where two packs define a code differently, adoption is refused until one explicitly supersedes the other. An upgrade is a new version, and earlier entries are still read under the old one.

What the 24 November Rust build holds v0a

The 24 November Rust build has the log with append-only segments, receipts, the Register, pack adoption, seals and verification, built-in views in the Books, and a command line and browser engine around them. The full Register and index are held in memory, there is one writer per log directory, and Closes are verified by recomputing from the start.

Software as declared data Proposed

The overview goes further. When packs declare views as well as definitions, a generic shell can render entry forms from payload layouts, pickers from Register items, screens from views, and permissions from grants. Each view declares its inputs, and one whose inputs are missing shows as unavailable instead of showing a wrong number. A small declarative view language is intended for the common cases. A WebAssembly view host with no imports is listed as the next step for the Rust code.

Open questions

How is a view declared so that it can be checked? Open

Most views sum, pair begins with ends, or group and count. A declarative language can be checked and ported but will not cover every case; code covers everything and is harder to verify.

How does state beyond one log work? Open

Independent organisations may govern separate logs. Causality between logs, partial views, receipts, reservations and conflicting claims need explicit contracts. The design vision calls the single-log fold a foundation within a scope and not a finished federation design.

3 The relativity of data

Proposed

Many people and machines read the same record of work, and they do not all read it the same way. This section states what is meant to stay identical for every reader, what is allowed to differ, and the arithmetic that connects the two. It matters because everything else in Stream is supposed to follow from these few statements, and because they are written so that they can be shown wrong.

The claim, and its status

The design conversation borrowed a name from physics: the relativity of data. The structural parallel is that every reader sees one invariant record, readers differ by their frames, and what differs between frames is connected by fixed transformations that preserve certain quantities. The sources ask for this to be presented as invariants with stated tests, not as a sweeping claim. The postulates are definitions and commitments. They are not derived from anything more basic, and two of the tests below have no evidence yet.

Six postulates

  1. The record is invariant. Every reader sees the same log. Readers differ only in the views they apply.
  2. Encodings are equivalent. Any spelling that decodes to the same canonical entries is the same record.
  3. Meaning is relative to the frame. An entry is read within a frame: the Codebook, the Register, the session and the run. The more the frame says, the less the entry needs to carry.
  4. Order is relative. There is no global now. Occurrence time, arrival order and each recorder’s clock can all differ. Time order is a view. Only an entry’s position in the log is absolute.
  5. Conserved quantities are invariant; value is not. Energy, CPU time, tokens, material and money balance in every frame. Prices and efficiency are views.
  6. The frame is recorded. Declarations, prices, grants and the Codebook are entries themselves, so the frame any past entry was written in can be rebuilt exactly.

The sixth was added when the question arose whether registers and price tables could be logs as well.

The log and the fold

A log \(L = e_1 \Vert e_2 \Vert \cdots \Vert e_n\) is a sequence of entries, where \(\Vert\) is concatenation. It grows only by appending an entry that is valid under the Codebook and the Register:

\[L_{n+1} = L_n \Vert e \quad \text{if } \mathrm{valid}(e \mid \text{Codebook}, \text{Register})\]

Any state a reader cares about is a function of that log under versioned rules \(\theta\), starting from an empty state \(S_0\):

\[S = f_\theta(L) = \mathrm{fold}(\mathrm{step}_\theta,\ S_0,\ L)\]

The two right-hand forms must always agree. The first is the definition. The second is how an implementation computes it: one step per entry, resumable from any verified checkpoint. A view is such a function. A task board, a timesheet, a meter export, an agent trace and a ledger are intended to be different choices of \(\mathrm{step}_\theta\) over one history.

Indexed by time, the sources write the same idea as

\[S(T) = \sum_{t_i \le T} e_i \qquad \frac{dS}{dT} = \varepsilon(T)\]

where \(\varepsilon(T)\) is the flow of acts at time \(T\). “Sum” here means any combination performed one entry at a time: quantities add into balances, tasks accumulate into a board, spans nest into a run tree, and seals chain into a fingerprint. It is numeric addition only in the first of those cases. Power, utilisation and throughput are rates of the same flow.

What an entry costs

Postulate 3 is stated quantitatively as

\[\mathrm{size}(e) \approx H(e \mid \text{Codebook}, \text{Register}, \text{session}, \text{run})\]

where \(H\) is conditional entropy in Shannon’s sense: an entry should cost only the information its frame does not already supply. The sources do not specify a probability model over entries, so read the formula as the target the encodings aim at, not as a quantity that has been computed.

The frame is layered, and each fact is stated once, at the widest scope where it holds:

Layer Holds Stated
Codebook Verbs, phases, units, payload layouts, replay behaviour Once for every system
Register Objects, actors, accounts, pools, clocks Once per thing
Session Recorder, clock source, timezone Once per session
Run Shared actor, object, unit, cadence Once per run
Entry Time, type, object, amounts Every entry
Notes Anything not yet foreseen Only when needed, then promoted

In the reference trial, a meter reading costs about 110 bytes in canonical form, 4 in run form, and under 1 in packed binary over a thousand readings. The run form in the 24 November Rust build is much less developed: it reaches about 3.2 times smaller than canonical, against about 28 times in the trial, and packed binary is not yet built.

Conservation v0a

Postulate 5 is where the record becomes accounting. Each posting’s legs sum to zero for every unit \(u\) and book \(b\):

\[\sum_{\text{legs}} q(u, b) = 0\]

The balance of account \(a\) in unit \(u\) at time \(T\) sums every movement up to \(T\) over entries that have not been superseded, and a Close commits to the whole balance table by its hash:

\[B(a, u, T) = \sum_{t_e \le T} q_e(a, u) \qquad C_T = \mathrm{hash}(B_T)\]

Resource use nests. A parent’s use is its children’s plus a remainder that must not be negative. With \(X\) the CPU time and \(T\) here the wall time of a span, utilisation \(\rho\) and parallelism \(\pi\) follow:

\[U_{\text{parent}} = \sum U_{\text{children}} + R, \quad R \ge 0\]
\[\rho = \frac{X_{\text{parent}}}{T_{\text{parent}}} \qquad \pi = \frac{\sum T_{\text{children}}}{T_{\text{parent}}}\]

Quantities in different units are never added. Comparing them needs a price table, which belongs to a view and is not a conversion within the record.

The 24 November Rust build implements balances from explicit legs and implied use, Close by hash, span pairing and attribution with remainders. It verifies a Close by recomputing from the start of the log, not from a checkpoint.

Later entries revise earlier ones v0a

Nothing written is changed. A later entry may refer to an earlier one, and the fold takes that reference into account, so a reading changes while the record does not. An AMEND names its target by address and gives a reason. In the 24 November Rust build, an AMEND that carries legs replaces its target’s postings, and one without legs reverses them. An entry already superseded cannot be amended again; the latest version is amended instead. OPEN, COMMIT and ACK entries cannot be amended.

A fold can therefore be bounded by a position. Writing \(L_{\le p}\) for the entries up to address \(p\), the 24 November Rust build computes balances as

\[B_p(a, u) = \sum_{e \in L_{\le p},\ e\ \text{not superseded within}\ L_{\le p}} q_e(a, u)\]

An entry counts as superseded only if the entry superseding it also lies within the bound. One of the implementation’s tests posts a transformation yielding 92 kg of product, closes the period, then amends the yield to 91 kg. Folding the whole log gives 91. Folding to the earlier position gives 92, and the Close still verifies, because the amendment came after it. Both are correct readings of one record, taken at different positions.

Order and trust v0a

Only position is absolute. Integrity therefore attaches to position: each segment is sealed, and each seal chains onto the one before.

\[s_k = \mathrm{hash}(s_{k-1} \Vert \mathrm{hash}(\text{segment}_k))\]

Two submissions are the same retry when their recorder and producer sequence number match, and a recorder’s gaps are the sequence numbers the log never received:

\[\mathrm{retry}(e_1, e_2) \iff \mathrm{rec}_1 = \mathrm{rec}_2 \wedge \mathrm{ps}_1 = \mathrm{ps}_2\]
\[\mathrm{gaps}(r) = \{1, \ldots, \max \mathrm{ps}_r\} \setminus \{\mathrm{ps}_e : e \text{ from } r\}\]

The formula is the contract

Defining a balance as a sum over the whole log does not require computing it that way. Whatever is computed must match a full replay:

  • running totals update only the accounts an entry touches;
  • checkpoints give \(B_{\text{now}} = B_{\text{close}} + \sum (\text{entries since the close})\), so replay covers only the open period;
  • a cache can be checked against the Close and rebuilt if it fails;
  • totals can be computed per account, segment or period in parallel;
  • a correction applies the old value negated plus the new value.

The costs that remain are real. A full rebuild is linear in the size of the log and is needed after a rule change, an audit or a suspect cache. Medians and distinct counts do not merge across periods and need summaries designed for them.

Where the analogy holds

In relativity In Stream
The invariant interval The log: the same facts for every reader
Frames of reference The Codebook, Register, session and run an entry is read within
Transformations between frames The three spellings, each decoding exactly to the others
No absolute simultaneity No global now: occurrence, arrival and clocks differ
Each observer’s own clock Clock provenance, declared per session
Conserved quantities The Books: quantities balance in every frame
Frame-dependent measurements Views: price, cost and efficiency depend on the rules applied

The parts are inherited: double-entry bookkeeping, event sourcing, Shannon’s information theory, Lamport’s logical clocks and log-centred data systems. What is offered as new is the combination: one vocabulary of acts across people, machines and agents; physical resources conserved alongside money; layered context; a declared recording depth with the remainder stated; and several encodings verified to decode to one another.

What would prove it wrong

The evidence column refers to the reference trial that preceded the Rust version.

If this happened, the theory would fail Postulate Evidence
A spelling fails to decode exactly to the record 2 Shown in trial: run and binary forms decoded byte for byte across mixed, cascade and meter data
A useful application cannot be expressed as a fold over the log 1 Partly shown: balances, intervals, task state, run trees, gaps and repricing rebuilt from the log alone
Acts cannot be expressed with the shared verbs unless profiles multiply without limit 1, 3 Unproven: the mapping is drafted, not tried across many domains
Moving context upward does not reduce tokens or processing for real readers 3 Unproven: bytes fall 45 to 96 percent in trial; tokens and native parse cost are not measured

Open questions

Do the shared verbs reach other domains? Open

The next step named in the sources is to map two outside domains, a farm and an invoice cycle, onto the verbs. Adding verbs keeps meaning comparable across systems but changes a shared vocabulary. Adding profiles keeps that vocabulary stable and risks the multiplication the third test describes.

Does a larger frame pay off for readers? Open

Fewer bytes are shown. Token counts per spelling and native parse cost are not measured. A run or binary spelling that saves bytes may cost tooling and legibility.

Which applications are not folds? Open

The second test is only partly shown. The sources propose building one application purely as a view. Statistics that do not merge are the known pressure point.

4 The kernel and its identity

v0a

Before a record can be read, something has to say how to read it. Stream puts that in one short page, the kernel, and identifies it by a fingerprint of its exact text. This section says what the page fixes, what it leaves to later entries, and how a log is bound to it. It matters because every later guarantee rests on two readers agreeing which rules apply.

One page, named by its hash

The kernel is the smallest fixed set of rules that lets anyone read a log from its first entry. It cannot itself be an entry, because it is needed to read entries. It becomes three things: a descriptor file, a first line naming that file’s hash, and a genesis entry written under it.

\[\mathrm{kernel} = \mathrm{SHA256}(\text{descriptor bytes})\]

For version 1 the value is sha256:fed5b36e80bad10c0545aa82ad5996175cebeb56e0af166162ddb5ff0c09202b. Changing one byte of the descriptor makes a new kernel.

STREAM/1 kernel=sha256:<64 lowercase hex>

This first line never changes form under any kernel version. Genesis follows it and fixes the log’s identity, its root authority, its first clock and its timezone:

1752300000 OPEN log:c1 {"clock":"ntp","kind":"genesis","log":"c1","rec":"actor:root","root":["actor:root"],"tz":"UTC"}

What the page fixes

Part What it settles
Entry grammar One spelling of time, type, object and payload
Canonical JSON One exact byte form for a payload
Primitive values Decimals, addresses and hashes
Type byte Verb and phase in one byte
Verb names The 64 names in eight blocks
Bootstrap verbs Eight verbs whose meaning is fixed, with required keys
Seals How a segment’s bytes are hashed and chained
Core rules What makes a log and an entry acceptable

Three core rules close the descriptor:

  1. Append only. Nothing written is ever changed or removed.
  2. An entry is valid if it is well formed, canonical, and its recorder’s authority traces to a root named in genesis.
  3. An entry is read under the declarations in force at its position.

The third rule is what lets a vocabulary grow without disturbing history. A later declaration changes how later entries read, never how earlier ones did.

What it leaves out

Only eight verbs have kernel meaning. The other 56 have names and codes in the descriptor, and their behaviour comes from declarations. Units, accounts, pools, profiles, prices and views are entries or packs. Large evidence is held by hash, and caches and software sit outside the log.

The design set a size test for this page: it should fit on one page, and a competent programmer should be able to write a validating reader from it in an afternoon.

Binding a reader to a log v0a

The 24 November Rust build has no operating-system dependencies, so the same kernel code runs on servers, in a browser through WebAssembly and on small devices. It includes the descriptor byte for byte and derives the identity from it.

Every implementation is meant to judge the conformance logs the same way:

Case Expected outcome
Minimal log Accepted
Sealed log Accepted
Altered bytes Verification reports a body hash mismatch
A line not in canonical form Refused on opening
A kernel the reader does not hold Refused on opening
A broken chain between segments Verification reports the segment does not continue the chain

Two implementations that pass the same cases agree on what a valid log is. The cases are regenerated only with a new kernel.

Open questions

How does a running log move to a new kernel? Open

The overview proposes that the kernel changes by an AMEND from root authority taking effect at the next segment, with old segments always read under the kernel they name. The descriptor says that a different byte is a different kernel, and the conformance logs refuse an unknown one. How a reader holding several kernels recognises an authorised succession is not written down in the descriptor.

Is the page sufficient on its own? Open

The size test asks for a reader written from the page alone. A second implementation run against the conformance logs is listed as future work for version 1. Writing one is the way to find what the page assumes, as the parser differences in the grammar section suggest.

5 The entry and its grammar

v0a

Everything Stream knows is written as one-line entries. This section defines exactly what counts as a valid line, why there is only one correct way to write each one, and where the first implementation is stricter than the written rules. It matters because two programs that disagree about a single line can no longer agree about the history.

The line

The grammar is part of the kernel descriptor, a page whose SHA-256 is the kernel’s identity. Every log names that hash on its first line. Changing one byte of the descriptor makes a new kernel.

entry   = time SP type SP object SP payload
time    = 1*DIGIT [ "." 1*6DIGIT ]        ; unix seconds; fraction has no trailing zero
type    = [ profile ":" ] verb [ phase ]
profile = %x41-5A                          ; one uppercase letter
verb    = one of the 64 names below
phase   = "(" / ")" / "*"                  ; begin / end / sample; absent = instant
object  = 1*( %x21-7E / UTF-8 non-ASCII )  ; no spaces or controls
payload = canonical JSON object

Lines are UTF-8 and end with a line feed. The first three spaces separate the four fields, so spaces may appear inside payload strings.

1752300000 R:ACT( task-42 {"actor":"agent:claude-07","ps":1,"run":"k42"}

An entry records one act, or one end of an act. An act that takes time has a begin and an end, and consumption is carried on the end.

Type: one byte

A type combines a 6-bit verb \(v\) and a 2-bit phase \(\varphi\):

\[\mathrm{byte} = (\varphi \ll 6) \mathbin{\text{OR}} v, \qquad v = 8 \cdot \mathrm{block} + \mathrm{index}\]
Phase Bits Mark Meaning
instant 00 none The act happened at one moment
begin 01 ( An act that takes time has started
end 10 ) That act has finished; its entry can carry use
sample 11 * One reading in a regular series

The 64 verbs form eight blocks of eight: System, Identity, Structural, Exchange, Work, Observe, Schedule and Learning. ATTEND with phase begin is 0x76; QUERY with phase end is 0xB8; MEASURE with phase sample is 0xEC.

Making the phase its own dimension separates two statements that paired words blur. An ATTEND end says an interval of presence ended. A FINISH instant says a work item was completed. The paired verbs START and FINISH remain instant claims about a lifecycle.

The readable line spells verbs by name and the binary form uses codes. Names cost bytes only in the readable form, which is not the compact one. Names are unique, and mapping to other systems is by code, never by name: the source Codebook used ASSIGN and DELEGATE twice each, so version 1 renames code 0x05 to ASSIGN_CLASS and 0x37 to DELEGATE_EVENT.

A profile letter marks a local dialect of a universal verb. It adds the rules that verb needs in one setting, such as how begin and end pair or which fields are required.

Canonical payload

The payload is JSON restricted until each value has one spelling:

  • object keys are sorted by byte order, with no duplicates;
  • there is no whitespace anywhere;
  • numbers are integers only, with no leading zeros, no + and no -0;
  • strings escape only the quotation mark, the backslash and U+0000 to U+001F, using the short forms where they exist and lowercase \u00xx otherwise; everything else is literal UTF-8.

Quantities are strings, never JSON numbers:

decimal = [ "-" ] 1*DIGIT [ "." 1*DIGIT ], optionally prefixed "~" (estimate)
address = segment ":" sequence, both >= 1
hash    = "sha256:" 64 lowercase hex, or bare 64 lowercase hex where stated

This avoids binary floating point in anything the Books add up, and keeps the stated precision. The cost is that a generic JSON tool sees text where it might expect a number. The 24 November Rust build computes with exact decimals of at most 18 fractional digits.

One fact, one byte string

The descriptor’s validity rule is that re-serialising an entry reproduces its bytes exactly. Write \(p\) for parsing and \(s\) for serialising. A line \(\ell\) is accepted only if

\[s(p(\ell)) = \ell\]

It follows that parsing is injective on accepted lines. If accepted lines \(a\) and \(b\) parse to the same entry, then

\[a = s(p(a)) = s(p(b)) = b\]

So a hash over bytes identifies an entry’s content as spelled, and no second spelling of the same content can slip past deduplication. Other spellings, such as the run form, are allowed because they decode to exactly these canonical lines. The price is strictness: a writer that emits an extra space or an unsorted key is rejected, not repaired.

Well formed is not yet valid

Parsing and the kernel’s structural rules are separate stages. Every entry carries rec, the recorder. Eight bootstrap verbs have meaning fixed by the kernel and require further keys:

Verb Kernel meaning Required keys
CREATE Declare the thing named by the object kind
BIND Attach; binding a pack to the log adopts it pack or to
GRANT Give authority to, may
REVOKE Withdraw authority to, may
AMEND Supersede an earlier entry, which remains ref, reason
OPEN Genesis or segment start kind; genesis: log, root, clock, tz; segment: prev
COMMIT Seal a segment or close a period kind; seal: n, sha256, chain; close: book, upto, balances
ACK Receipt; a rejection carries refused rec, digest

Beyond form, an entry is valid only if its recorder’s authority traces to a root named in genesis, and it is read under the declarations in force at its position.

Where the page and the 24 November Rust build differ v0a

The descriptor is the normative text, and building a reader from it surfaced choices the page does not spell out. Those differences are findings about the design. The Rust parser was run on the lines below at repository commit 3fd0deb on 28 November 2026, with the hash function stubbed out because hashing was not under test.

Input Descriptor says The 24 November Rust build does
Seconds with a leading zero The grammar allows any run of digits Rejects
Seconds larger than unsigned 64-bit No bound Rejects
Integer outside signed 64-bit No bound Rejects
Nested arrays in a payload No bound Accepts 32 levels, rejects 33
U+00A0, a non-breaking space, in the object Non-ASCII is allowed; “no spaces or controls” Rejects
A line with no rec Every entry carries one Parses, then fails the structural check

A leading zero is arguably excluded by the re-serialisation rule, but the descriptor does not define how a time is serialised. The conformance logs shipped with the repository include a non-canonical case, and are one place where a finding like this can be recorded.

Spellings and size

The overview describes three spellings of the same entries, each decoding byte for byte to the canonical line:

canonical   1752300096 M measure pdu-4.out3 {"iv":8,"ps":1,"q":"38","rec":"meter:pdu-4","scope":"host:build-01","u":"J"}

run form    @1752300096 %dt=8 %op=M= %obj=pdu-4.out3 %ps=1 iv=8 rec=meter:pdu-4 scope=host:build-01
            38J
            41J
            36J

binary      context entry once, then a packed block: 23-byte header + 6 bits per reading

That example comes from the reference trial and uses its earlier letter-and-action type, not the version 1 verb names. The 24 November Rust build has a run form; packed binary framing is still to be built.

Open questions

Where do implementation limits belong? Open

Making the 24 November Rust build raised limits the page does not mention, such as integer size and nesting depth. A second reader built from the page alone would have to choose its own, which makes this a question about what a kernel should say.

  • State the limits in the descriptor. Unambiguous, but it changes the kernel’s identity, and existing logs stay under the old kernel.
  • Pin them with conformance cases. No new kernel, but a rule then lives outside the page that is meant to be sufficient.
  • Declare them implementation-defined. Keeps the page short and gives up agreement at the edges.

Which characters are spaces? Open

The 24 November Rust build rejects any Unicode whitespace or control character in an object. The set of such characters is defined by Unicode, not by the descriptor. Listing the excluded code points fixes behaviour across Unicode versions at the cost of length. Restricting objects to ASCII is simplest and excludes names in most writing systems.

How will other spellings be framed on the wire? Open

Existing device specifications define the control-character grid in three different ways, and these must be reconciled before wire framing is chosen.

What replaces SHA-256? Open

The recommended default is SHA-256 with a rule in the kernel allowing a later hash to be introduced by AMEND. The descriptor writes hashes as sha256, so the mechanics of that transition remain to be specified.

6 Verbs and phases

v0a

To compare what people, machines and agents do, Stream names every act from one shared list and marks whether it is a moment, a start, a finish or a reading. This section explains that choice, what it replaced, and the role left for the single letters used before. It matters because sums across very different workers only mean something if the words for their acts are the same.

State meaning once, at the widest scope

The governing principle is to state each piece of meaning at the widest scope where it holds. Per-entry context is only what nothing upstream already says. ZAKO’s codebooks are the widest scope available: agreed once for every system, and free per entry. The more of a record’s meaning its type carries, the less each record has to carry.

A type therefore implies its claim and how it is validated, the shape and order of its payload, its unit, whether it is measured or estimated, the direction of a transfer, its privacy rules, and which views use it. The journal’s own acts are verbs too, so the log describes itself in its own vocabulary.

Each fact is stated at the widest scope where it holds, and a recurring note is promoted upward into the Codebook or the Register.

Separating two meanings

Workwarrior’s op letters mixed which subsystem wrote a record with what kind of act it was. The type separates them. A verb says what kind of act, universally. A phase says where in the act the entry falls. The domain is declared per run.

\[\tau = (\varphi \ll 6)\ \mathbin{\text{OR}}\ v \qquad \varphi \in \{0,1,2,3\},\ v \in \{0,\ldots,63\}\]

Four phases over 64 verbs give 256 types, exactly one byte. The verb is itself structured as \(v = 8 \cdot \mathrm{block} + \mathrm{index}\).

Block Covers Verbs
000 System Machines and power POWER_CHANGE, MODE_CHANGE, GATE, RESTORE, CALIBRATE, ASSIGN_CLASS, SUSPEND, RESUME
001 Identity Who and what exists, and authority GRANT, REVOKE, DELEGATE, EXPIRE, CREATE, BIND, ATTEST, VERIFY
010 Structural The record itself OPEN, CLOSE, JOIN, LEAVE, REMOVE, COMMIT, AMEND, DISPUTE
011 Exchange Dealings between parties SEND, RECEIVE, ACK, INVOICE, PAY, QUOTE, AGREE, COMPLETE
100 Work Jobs and tasks ASSIGN, START, PROGRESS, FINISH, INSPECT, REPORT, EXPENSE, TRAVEL
101 Observe Noticing and measuring OBSERVE, NOTE, JOURNAL, CAPTURE, MEASURE, ESTIMATE, COMPARE, ALERT
110 Schedule Time and plans SCHEDULE, RESCHEDULE, CANCEL, REMIND, TRIGGER, RECUR, ATTEND, DELEGATE_EVENT
111 Learning Agents and automation QUERY, RESPOND, ACT, DEFER, LEARN, TEACH, RECOMMEND, AUTOMATE

Why the phase earned its own dimension

The phase resolved a concrete failure. A punch-out ends an interval of presence; it does not complete a work item. With a phase, presence is ATTEND with a begin and an end, and neither half claims FINISH. A model call is QUERY begin and end, a tool call is ACT begin and end, and a meter reading is a MEASURE sample.

ZAKO’s own paired verbs, START and FINISH, OPEN and CLOSE, are kept as instant claims about a lifecycle.

An end-phase entry says an interval finished. It does not say that the work item succeeded or was completed; that is a separate claim.

What universality buys

Because every act carries the same verb axis, one view can total energy, CPU time, tokens and wall time by verb across people, machines and agents: energy spent on QUERY against ACT, or time on ATTEND against PROGRESS. The codebook serves as an instrument for studying efficiency as much as for compression.

Letters become profiles

Once verbs carry what an act is and phases carry how it sits in time, single letters lose four jobs: naming the kind of act, marking open or close, setting the domain and defining the payload. They keep the role of a profile: a local dialect of a universal verb, declaring pairing rules, required details, privacy, a state machine or the view it feeds. ATTEND means one thing for a punch clock and another for a meeting.

A profile is a single uppercase letter that adds local rules to a universal verb.

Letter Becomes
T Profile for work items
B Presence: ATTEND paired by interval
F State changes against a declared state machine
D Derived signal series, restricted
A NOTE
H, S Retired; their jobs pass to the log’s own verbs

The recommendation followed is one meaning per letter. A printable block-letter code for verbs was proposed and then argued against, because it would give letters a second meaning. New meaning goes into verbs first, and a letter is added only for a genuinely local set of rules.

The 24 November Rust build v0a

The Rust kernel implements the byte as phase << 6 | code and the type token as an optional profile letter, a colon, the verb name and a phase mark. ZAKO’s Codebook uses ASSIGN and DELEGATE twice each, so 0x05 is ASSIGN_CLASS and 0x37 is DELEGATE_EVENT, and mapping to ZAKO is always by code.

Open questions

Do 64 verbs cover enough domains? Open

Whether the verbs cover domains beyond those tried is listed as unproven. Growing the verb list keeps acts comparable and changes a vocabulary the kernel names. Growing profiles keeps the kernel stable and risks dialects that no shared view can compare.

Which further families deserve a letter? Open

Candidates raised include waiting, commitment, power, identity, hand-off, verification and output. A family needs a claim that views select as a group, a shared replay behaviour, and context the letter implies. Several candidates rediscover ZAKO’s own blocks, which argues for a single namespace and exposes letter collisions with Workwarrior.

Should case say how a value is known? Open

One proposal used uppercase for observed and lowercase for derived at no cost in size. The kernel instead has distinct verbs such as MEASURE and ESTIMATE and a ~ marker on quantities, and its profiles are uppercase only.

7 Authority, the Register and packs

v0a

A shared record is only useful if you can tell who was allowed to write each line. In Stream, permissions are themselves lines in the record, starting from the people named when the record was created. This section explains how authority is traced, how things are declared, and how a prepared bundle of definitions sets a record up. It matters because trust in every figure depends on it.

Authority starts at genesis

Genesis names one or more root actors, and is recorded by the first of them. A core rule then makes validity depend on that start.

An entry is valid if it is well formed, canonical, and its recorder’s authority traces to a root named in genesis.

Permissions change by GRANT and REVOKE entries, each naming who (to) and what (may). Because they are entries, the authority in force at any past position can be replayed, and an entry is judged under the grants in force where it sits.

Recorder and actor

The party that did something is not always the party that wrote it down. The journal sets rec, the recorder, from the authenticated submitter. The actor, if stated, is who acted; otherwise the recorder is taken to be the actor.

\[\mathrm{actor}(e) = \begin{cases} e.\mathrm{actor} & \text{if stated} \\ e.\mathrm{rec} & \text{otherwise} \end{cases}\]

A host may record on behalf of its agents under a grant. One operator may not record for another without one.

What the 24 November Rust build enforces v0a

Submission Requirement
OPEN, ACK, or a COMMIT seal Refused: only the log writes these
CREATE, BIND, GRANT, REVOKE, COMMIT A root, or an admin grant
An entry whose actor is someone else A root, or a record grant whose for pattern matches the actor
GRANT may is admin, or record together with for
REVOKE Must match an existing grant exactly
AMEND A committed target, not already superseded, not an OPEN, COMMIT or ACK, recorded by the submitter or amended by an admin

A submission is permitted only if it passes the kernel’s structural check, claims no other recorder than its submitter, and holds the authority its verb requires.

The same checks can be run without writing, as a dry run. The state they consult is folded from committed entries by the same function whether a log is being appended to or reopened, so the two cannot disagree.

The 24 November Rust build treats every actor listed at genesis as a root.

The Register

The Register is what the log has declared: objects, actors, units, accounts, pools, clocks, profiles, prices, grants and views. It is rebuilt from CREATE, BIND, AMEND, GRANT and REVOKE entries.

Declaring an existing (kind, object) again with a different payload is refused; changing it takes an AMEND, which in the 24 November Rust build carries set, merged into the declaration. References to objects never declared are accepted and flagged.

Packs

A pack is a UTF-8 file: a header line PACK/1 name=<name>, then CREATE entries in the kernel’s own grammar whose recorder is the pack. Its identity is the SHA-256 of its bytes.

PACK/1 name=si-units@1
0 CREATE unit:J {"base":true,"conserved":true,"dimension":"energy","kind":"unit","rec":"pack:si-units@1"}
0 CREATE unit:kWh {"conserved":true,"dimension":"energy","equals":"3600000 J","kind":"unit","rec":"pack:si-units@1"}

One BIND adopts it. The bytes must already be stored under the named hash, adoption needs a root or admin grant, and any declaration that conflicts with the Register refuses the whole BIND, naming both. Declaring the same thing identically is not a conflict, so adopting a pack twice is accepted. Each declaration enters the Register at the BIND’s address, so later entries are read under it.

\[\mathrm{id}(\text{pack}) = \mathrm{SHA256}(\text{pack bytes})\]

Today a pack holds declarations of units, profiles and views. The Loom draft would compile rules, acts and screens into packs; a log can carry such declarations but nothing enforces them yet.

Open questions

Should acting as root need more than one root? Open

The recommended default is to allow several roots with a threshold to act as root, so shared undertakings need shared authority from the first entry. The 24 November Rust build lets any single listed root act. A threshold protects against one compromised key and needs a way to collect several approvals for one entry.

How is a recorder authenticated? Open

The log takes its submitter as authenticated and sets rec from it. The design vision keeps initial trust, authentication and integrity profiles as explicit contracts still to be written.

Should pack conflicts always refuse? Open

Refusal is recommended, because silent precedence would make meaning depend on installation order. It also means two useful packs cannot be adopted together until one explicitly supersedes the other.

8 The Books: conservation, capacity, attribution

v0a

The Books are Stream’s accounts. They answer where every unit of energy, computing time, material, money or working hour came from and where it went, without anyone ever writing a balance down. This section explains how movements are recorded or inferred, how periods are sealed, and how spare capacity and waste become visible. It matters because this is where the record turns into decisions.

What the Books are made of

Part What it is Declared in
Unit A kind of quantity, with a dimension and base unit Register
Account A place a quantity sits or passes through Register
Book A boundary of accountability, such as an entity, site or project Register
Pool An account that supplies: host energy, a token allowance, shift hours, cash Register, named per run
Movement A signed amount between accounts Log entries
Close A sealed period, committed by hash A log entry

A balance is kept per book, account and unit. Account roles are sources and pools, activities, stocks, outputs and parties.

Five rules

  1. Entries carry movements, never balances.
  2. Each transaction balances on its own, per unit. Two errors in one upload cannot cancel, and units never convert implicitly.
  3. Conversion is not pricing.
  4. A Close commits by hash.
  5. Corrections append.

Two kinds of movement

An explicit posting is an entry whose whole claim is a transfer, such as buying material or allotting a budget. It carries legs that balance per unit:

inv:raw −100 kg  →  inv:product +92 kg, inv:scrap +8 kg
\[(-100) + 92 + 8 = 0 \quad [\mathrm{kg}]\]

An implied posting comes from an act. When a span closes with a use map and its run declared a pool, the movement from the pool to the activity is already fully stated. The Books derive it and nothing extra is written. Consumption is the most frequent movement, so it costs no extra bytes.

For an end-phase entry with use and pool, each quantity \(q\) of unit \(u\) posts \(-q\) to the pool and \(+q\) to the activity: the entry’s account if given, else its object.

\[\Delta B(\text{pool}, u) = -q \qquad \Delta B(\text{activity}, u) = +q\]

Conversion and price

A conversion stays within one dimension and always holds, such as 1 kWh = 1000 Wh, so it belongs in the Register. A price crosses dimensions and is contingent, such as an hour being worth a sum of money, so it belongs in a view. Changing a price never touches the Books.

Each value stays marked as measured (a meter, a counter, an API usage report), estimated (~, such as a run’s share of host energy) or settled (confirmed by a counterparty, such as an invoice). An invoice supersedes a provisional charge and the difference shows as a correction. In the 24 November Rust build a balance is flagged estimated if any contribution to it was.

Closing a period v0a

A Close hashes a book’s balance table up to an address. The table is canonical text, one line per account and unit, sorted, with zero balances kept:

account<TAB>unit<TAB>[~]quantity
\[C = \mathrm{SHA256}(\mathrm{table}(\text{book},\ \text{upto}))\]

The COMMIT entry names the book, the address and that hash, and restates no balance. Anyone can replay to the address and compare. If the table were hashed as a tree, one account’s balance could be proven without revealing the others; that is a design option, not what the 24 November Rust build computes. The recommended treatment of a late entry for a closed period is an adjustment posted in the open period that references the closed one.

Spans, remainders and ratios v0a

The 24 November Rust build pairs begin and end entries into spans in occurrence order. Pairing is by run when present, otherwise by verb, object and actor, and never by object alone. A second begin on an open interval and an end with no begin are reported.

For each closed span, the view reports what its children account for, the remainder left below the recorded depth, and any quantity the children claim beyond the parent’s use. See use nests with a remainder and utilisation and parallelism.

A worked agent task from the reference trial:

Span Wall CPU Energy Tokens in / out
Task, measured at the host 60 s 41.0 s 610 J 18,000 / 2,400
Model call 1 4.2 s     12,000 / 900
Tool call 1, 412 sub-acts unrecorded 35.5 s 33.1 s ~480 J  
Model call 2 3 s     6,000 / 1,500
Tool calls 2 and 3, in parallel 8 s, 10 s 5.4 s ~75 J  
Remainder: the agent’s own overhead   2.5 s ~55 J 0 / 0

Capacity and allotment

People’s hours, machine uptime and an agent’s budget are conserved capacity, flowing from an actor’s pool into the work clocked against it. Wall time is not conserved: elapsed time differs from time spent out of someone’s capacity.

A budget is an explicit posting from a pool to an allotment account, and consumption draws against it.

\[\text{variance} = \text{allotted} - \text{used} \qquad \text{headroom} = \text{capacity left in a pool}\]

With output per unit of input, these are the figures that let the people running an undertaking keep output steady on less input, or put surplus to work. Because the class of resource is recorded, whether a step needed a larger model or machine can be computed instead of guessed.

Open questions

One person on two machines at once Open

Overlapping capacity can be split between the machines or flagged as counted twice. The recommendation is to flag it unless a declared rule says how to split, because splitting silently invents an allocation. Flagging makes someone decide, and leaves totals over-attributed until they do.

Closing without replaying everything Open

The 24 November Rust build verifies a Close by recomputing from the start of the log. Verifying from a checkpoint would bound the cost and requires the checkpoint itself to be trusted.

9 Integrity, replay and verification

v0a

A record is trustworthy if changes to it can be detected, repeated submissions do not count twice, and anything missing shows up. This section explains the seals that link each part of the log to the one before, the receipts returned to whoever writes, and the checks every program should agree on. It matters because all derived figures inherit the integrity of the log and no more.

Position is the anchor

An entry’s address is its segment and sequence number, both counted from one. It is implied by position and never stored on the line.

\[\mathrm{address} = \text{segment} : \text{sequence}, \qquad \text{segment} \ge 1,\ \text{sequence} \ge 1\]

Seals

A seal’s hash covers every byte of its segment before the seal line, the preamble included. The chain value then binds it to everything earlier.

\[d_k = \mathrm{SHA256}(\text{bytes of segment } k \text{ before its seal})\]
\[c_k = \mathrm{SHA256}(\mathrm{hex}(c_{k-1}) \Vert \mathrm{hex}(d_k)), \qquad \mathrm{hex}(c_0) = \underbrace{00\ldots0}_{64}\]

A segment after a seal begins with an OPEN of kind segment carrying prev, the previous chain value.

Changing any earlier byte changes that segment’s digest and every chain value after it, so alteration is detectable by recomputation. Detection depends on comparing against a chain value held or trusted elsewhere.

Receipts and retries v0a

Each submission gets one of three receipts:

Receipt Meaning
Accepted, with an address Written at that address
Duplicate, with the original address A retry of something already accepted
Rejected, with a reason Refused; journaled as an ACK when the submission carried a retry identity

Retry identity is the pair of recorder and producer sequence number, so two identical things that really happened twice remain two entries. Because a refusal is journaled, a retry receives the same answer and the gap view counts the number as received. See when two submissions are one retry and a recorder’s gaps.

A claim is checked only for what it states on its own, so a valid record that arrives late is accepted and views report any historical contradiction. Postings and corrections are the exceptions.

Replay

All state other than the log is derived. The 24 November Rust build rebuilds it when a log is opened, using the same function that folds each new entry, and can recompute every seal and chain value and list the problems found. The kernel interpretation rule governs replay: each entry is read under the declarations in force at its position.

\[\mathrm{state}_n = \mathrm{apply}(\mathrm{state}_{n-1},\ \mathrm{address}_n,\ e_n)\]

External effects are not repeated by replay. The design vision asks that they carry dispatch, idempotency, receipts and reconciliation, so that rebuilding state never performs an action again.

Agreement between implementations

Conformance logs fix what a correct reader reports.

Case Expected
01-minimal ok
02-sealed ok
03-tampered verification: body hash mismatch in segment 1
04-not-canonical refused on opening: not in canonical form
05-unknown-kernel refused on opening: not this kernel
06-broken-chain verification: segment 2 does not open with the previous chain

Every implementation of the kernel runs these cases. Two that pass the same cases agree on what a valid log is.

Limits of the 24 November Rust build v0a

There is one writer per log directory. The full Register and index are held in memory. Closes are verified by recomputing from the start of the log.

Open questions

Who witnesses the chain? Open

A chain shows that bytes match a chain value. Someone who can rewrite the whole log can also recompute the chain. Signing seals, publishing chain values or exchanging them between parties each add a witness, at the cost of keys or counterparties. Initial trust and integrity profiles are listed as contracts still to be written.

More than one writer Open

A single writer gives a total order for free. Several writers need either coordination before append or separate logs reconciled afterwards, which raises the questions of causality across logs.

Verifying a long history cheaply Open

Recomputing from the start is simple and complete. Checkpoints bound the work and become something that must itself be verified.

10 Text, wire and the compact header

Adopted draft Open

The same entry can be written as a readable line, as a compact block that says shared facts only once, or as tightly packed characters and bytes for machines and small devices. This section sets out those spellings, the rule that keeps them equivalent, and a new compact header that has been adopted as a working draft. It matters because size and speed decide whether detailed recording is affordable.

One record, several spellings

For any valid sequence of canonical lines \(L\), an encoding \(E\) with its decoder \(D\) must satisfy

\[D(E(L)) = L \quad \text{byte for byte}\]

Decoding is fixed. Encoding is not: any encoder whose output decodes to the original lines is valid, and size is counted over the whole batch.

Text and binary are different layers

ASCII has 33 control codes and 95 printable characters. Each costs a full byte, so printable text carries at most about 6.5 bits per character:

\[\log_2 95 \approx 6.57\]

Text saves space by leaving things out, through layered context. Binary fields take only the bits they need and can share a byte, as the type byte does with a 2-bit phase and a 6-bit verb. One printable character can hold a verb but not a verb and a phase together, so the readable form spells what binary packs into one byte.

The run form v0a

A run states shared context in a header, the first form below, then each row, the second, carries only what changes.

@<seconds>[ %ps=<n>][ <key>=<value>]…
<+|-><seconds>[.<fraction>] <type> <object>[ <json object>]
@1752300096 %ps=1 iv=8 rec=meter:pdu-4 scope=host:build-01 u=J
+0 MEASURE* pdu-4.out3 {"q":"38"}
+8 MEASURE* pdu-4.out3 {"q":"41"}

Each row’s time is the change in seconds from the previous row and may be negative, since entries are not always in time order. A row’s payload is the shared items plus its own object, its keys overriding. On a thousand meter samples the bundled encoder is about 3.2 times smaller than canonical lines. The trial reached about 28 times using positional payloads and template rows, which the format does not yet have.

Control characters

The printable characters are the alphabet of what the log says; the control characters are the grammar of how entries are sent, received and confirmed.

A control character never adds a second meaning. It is a structural boundary, or a one-byte spelling of an existing verb, and it keeps its ASCII meaning.

Group Characters Job
Framing FS, GS, RS, US, SOH, STX/ETX, ETB, EOT Segment, run, entry and field boundaries; headers; enclosed text; seals; end of session
Conversation ACK, NAK, ENQ, SYN, DC1/DC3 Receipts, rejection, status, clock sync, resume and pause
Meaning shifts SO/SI, ESC, DLE Profiles and local dictionaries; extended codes; literals
Corrections SUB, CAN Supersede an entry; cancel before commit
Left as text HT, LF, CR Keep their text meaning
Reserved DEL An append-only log never erases

A control byte with flag bits set can equal a printable character or a UTF-8 continuation byte, so flagged bytes belong only in binary frames at declared positions. Controls pay off in device and wire frames, help somewhat between machines, and are wrong for the readable log, where they are invisible and break everyday tools.

The compact header, draft v0.1 Adopted draft Open

A fixed-width header sits in front of a payload so a reader can decide from the header bits whether a line can match a query, and skip the payload unread. It is a working draft adopted on 27 November 2026 and not frozen. It is not the version 1 kernel and not a wire-format freeze.

The alphabet is A-Z a-z 0-9 - _, six bits per character, most significant bit first.

\[\underbrace{7}_{\text{position}} + \underbrace{2}_{\text{phase}} + \underbrace{1}_{\text{modality}} + \underbrace{1}_{\text{direction}} + \underbrace{4}_{\text{roles}} + \underbrace{1}_{\text{estimate}} + \underbrace{1}_{\text{change}} + \underbrace{12}_{\Delta t} + \underbrace{1}_{\text{extended}} = 30 = 5 \times 6\]

When the short header’s last bit is set, five more characters follow, carrying the kind of absence for each of four roles, a dictionary index and check bits:

\[\underbrace{4 \times 3}_{\text{absence kinds}} + \underbrace{12}_{\text{dictionary index}} + \underbrace{6}_{\text{check}} = 30\]

Absence is typed per role, among subject, object, kind and measure: present, not yet, unknown, withheld, not applicable, refused, ambiguous, with one code reserved.

Kinds of absence are not interchangeable. A balance with an unknown leg cannot close as if the leg were zero; a withheld actor is not an invitation to search harder; a role that does not apply is not a gap. A gap is closed later by appending an entry that refers to the first, so the log keeps both.

One fact has exactly one header. A different packing of the same fact would hash differently and look like a second entry.

The check bits are an XOR fold, which catches single-character errors and can miss compensating ones. Short headers carry no check and rest on the segment seal. The three reference encodings are QToB4, UpgALACAHT and I5wlhYAADe.

The header’s first field is a 7-bit position in a 128-position map, with modality, direction and role presence beside the phase. The version 1 kernel instead names one of 64 verbs with a phase. The header draft carries the vocabulary of the newer design inquiry, and how the two correspond is a live part of the design.

It freezes only after an independent Rust decoder agrees on every vector, the full vector set including invalid headers is published, a filter test runs on a real log, versioning is answered in writing, and the time unit and overflow rule are fixed.

Two directions for a successor Proposed

Both are laboratory prototypes, and no version 0.2 direction has been chosen. A paired alphabet rebuilds the 64 symbols as upper and lower case pairs so case becomes a deliberate bit, keeping fixed width and spending the digits. A parsed grammar begins with #, keeps three packed characters, and writes the time difference as a variable run in decimal, base 36 or day, hour, minute and second units, removing the 4,095 ceiling and giving up fixed width.

Either must remain canonical, filterable without decoding the payload, typed in its absences, versioned and able to detect corruption.

Open questions

What happens when the time difference overflows? Open

Twelve bits cover about 68 minutes at one second per unit. Rejecting, saturating, wrapping, extending the header, writing an absolute time in the payload or opening a new segment each trade width against simplicity.

How does a header announce its version? Open

There is no version field. Reserving bits costs capacity in every header; relying on log-level declaration saves the bits and makes a header meaningless out of context.

Which control-character grid is right? Open

Three existing definitions disagree about positions, slot counts and the room left for a control’s identity. They must be reconciled, with ASCII meanings restored, before wire framing is built.

11 People and agents recording work

Proposed

People and AI agents increasingly share work, and someone has to be able to say later who proposed what, who approved it, what was actually done and what it cost. This section sets out how that work is recorded today, how an interface could be drawn directly from the record, and the proposals for keeping approval and outcome distinct. It matters because trust between people and agents depends on those distinctions.

An agent recorded like a factory v0a

An agent given one task may make dozens of model and tool calls, each hiding many more actions. Stream records it as acts with identities, parents and resource use, down to a declared depth. Each unit of work is an interval: a task, a model call or a tool call. The host records on the agent’s behalf under a grant, so an entry carries both who acted and who wrote it down.

When a span closes its entry carries what it consumed as separate evidence: tokens from the model service’s usage report, CPU time from the operating system, host energy measured or estimated, and remote model energy as an estimate unless the provider supplies evidence.

Distinctions to keep Proposed

Review of the human and agent case argues that the strongest prospective contribution is a durable, attributable history of work across changing people, models, tools, sessions and interpretations.

Proposal, approval, dispatch, receipt, observation, acceptance and settlement are different events. An accepted record is not thereby a true claim about the outside world, and a successful tool response does not verify completion.

Authority is checked at consequential execution, against current scope and resource availability, and an approval binds the exact proposal and its constraints.

External effects need records of intent, dispatch, receipt and unresolved outcome. Replaying state never dispatches an effect again.

An agent’s context should be a view, specific to the task and principal, of a named history prefix with policy versions and supporting addresses. A summary written by a model is an attributed artifact; it is not assumed to be deterministic. Concurrent agents need explicit ordering, causal references, atomic reservations where necessary, and conflict handling. Files need content identity, versions, provenance, availability, retention and access policy, since a digest alone does not make a file available.

Three questions about the future Proposed

The same state can answer which actions are enabled now:

\[E(S, K, a) = \{\, x \mid \mathrm{authorized}(K, S, a, x) \wedge \mathrm{preconditions}(K, S, x) \,\}\]

where \(S\) is the state, \(K\) the active definitions, \(a\) the actor and \(x\) a candidate action. A second question iterates the transition relation to find what is reachable under stated assumptions and bounds. A third asks what is likely:

\[P(\text{future} \mid \text{history},\ \text{assumptions},\ \text{model version})\]

Logical admissibility alone supplies no probabilities. A stored forecast records its starting prefix, model, assumptions, horizon and uncertainty, and later its outcome, so it can be assessed without rewriting what it was based on.

Cost is judged per accepted outcome, including review, rework and recovery, with unlike units kept apart until an explicit valuation rule applies.

An interface from the primitives Proposed

Every element on screen is a primitive made visible, and nothing in the interface exists that is not in the log, the Codebook, the Register or a view.

Primitive On screen
Verb An action: button, command, gesture or voice phrase
Phase The kind of control: instant is a button, begin and end a running toggle, sample a gauge
Object A card, picker entry or row
Payload layout A form with exactly the needed fields, typed by unit
Grant What each person or agent can see and do
View A screen
Receipt Saved, already saved, or refused with a reason
AMEND A correction that visibly supersedes

The phase gives the most useful list for nothing: what is happening now is every interval begun and not ended.

People and agents share one sentence, naming who, the verb and phase, the object, the amounts and how they are known, reached by tapping, typing, voice, or an agent’s proposal that a person confirms, amends or refuses. The main risk is that 64 abstract verbs feel bureaucratic; profiles, labels and grants keep the surface in the user’s own words.

Open questions

How is an approval tied to exactly what it approved? Open

Citing an address names a proposal precisely. Binding also its resource limits and the state it assumed needs a richer reference, and a rule for what happens when that state has moved.

How do independent organisations reconcile? Open

Separate logs need causal references, partial views, receipts, reservations and a way to hold conflicting claims. The single-log fold is a foundation within one scope.

How can people contest a record about them? Open

Disagreement, correction, consent and access boundaries are named as part of usefulness. Corrections append and refer back, which preserves the disputed claim as well as the answer to it. How sensitive evidence is protected while remaining contestable is not settled.

12 The unfolding kernel: a seed that acquires vocabulary

Open

The current line of inquiry asks whether the reader could start very small and learn its own vocabulary from the record, checking and approving each new definition before it takes effect. This section sets out that idea, what it would still have to take as given, and what has and has not been shown. It matters because it could change where the boundary lies between fixed rules and recorded ones. None of it is part of the 24 November Rust build.

What is being sought

A small fixed reader that acquires executable vocabulary through recorded, checked and authorized definitions. Later expressions become meaningful because earlier accepted ones established the relationships and operations they invoke, so the log would preserve both the work and the development of the rules that interpret it.

Three beginnings stay distinct. The formal beginning is an initial expression and permitted transformations. The machine beginning is an interpreter able to represent and run them. The organizational beginning is the trust and governance under which records and activations are accepted. An empty formal state still presupposes the calculus that interprets it.

The reader supplies parsing, reference resolution, matching, substitution, equality, evaluation, admission, staging and atomic commit. These are not created from nothing.

A candidate formal beginning

\[E ::= \mathrm{empty} \mid \mathrm{enclose}(E) \mid \mathrm{beside}(E, E)\]

Both constructors are supplied; they are not derived from the existence of a mark. Nesting then makes containment inspectable in the representation itself:

\[\mathrm{in}(a, b) \iff \exists k \ge 1 : \mathrm{parent}^{k}(a) = b\]

For a finite rooted tree this relation is transitive and irreflexive. It stays so only while later updates preserve acyclicity and a single parent. It establishes tree containment and not multiple memberships or overlapping scopes.

Occurrence identity differs from equal shape, location and label: two equal enclosures remain two occurrences.

\[\mathrm{shape}(a) = \mathrm{shape}(b), \qquad a \ne b\]

Change relative to a boundary

With \(m_B(x, S)\) equal to one when \(x\) is inside boundary \(B\) in state \(S\) and zero otherwise, an event from \(S\) to \(S'\) has the signed effect

\[\delta_B(x, e) = m_B(x, S') - m_B(x, S)\]

For additive quantities with effect vector \(\delta_e\), and \(b\) selecting the disjoint accounts inside the boundary,

\[\Delta_B(e) = b^{\mathsf{T}} \delta_e, \qquad \delta_e = q(e_j - e_i),\quad \mathbf{1}^{\mathsf{T}}\delta_e = 0\]

A transfer is a loss to the sender, a gain to the recipient and zero net change in a boundary holding both. Membership change is not automatically resource transfer: copying information, permissions, quantities and claims have different laws.

Definitions that wait

definition proposal -> check -> recorded result -> authorized activation
                                                       |
                                                       v
                                      later expressions can invoke it

A definition may be recorded, checked, authorized, active, applicable and invoked, and these differ. A rule such as

\[\mathrm{principal}(x) \leftarrow \mathrm{entity}(x) \wedge \mathrm{binding\_verified}(x, c)\]

infers nothing until activated, may then apply to nothing until supporting facts arrive, and grants no capability by being true. The predicate’s name does not create authenticity.

The candidate language has eight expression forms: relation, rule, action, activate, invoke, fresh, emit and retire. Eight forms are not eight elementary instructions.

Why inference stops

Allow positive recursive rules with fixed arities, require every variable to be bound by a premise, and forbid fresh identities, generated numbers and new nested terms. With a finite set of values \(D\) there are at most

\[N = \sum_{p} |D|^{\mathrm{arity}(p)}\]

ground tuples, and each productive step adds a new one, so closure reaches a fixed point. This shows termination under those restrictions and says nothing about efficiency. Exceeding a work limit is its own outcome and is never read as false.

Guarded change

An action is described by a guard \(G_e\), which says when event \(e\) may take state \(S\) onward, and an update \(U_e\), which says what the next state \(S'\) is:

\[S \xrightarrow{e} S' \iff G_e(S) \wedge S' = U_e(S)\]

Guards read the completed state before the action; effects are staged together and accepted only if constraints hold. A grant created by an action cannot satisfy that action’s own check. A proposed unification of effects consumes exact live occurrences \(C\) and produces fresh ones \(A\):

\[B_{\text{next}} = (B_{\text{current}} \setminus C) \cup A\]

For balances consumed and produced this way, conservation follows from the paired form:

\[(x - q) + (y + q) = x + y\]

A definition activated at position \(n\) takes effect for later positions, and later rules never authorize earlier acts.

Two candidate readers

The first keeps a general finite rule engine, so recursive relations such as containment are declared as data, at the cost of fixed-point computation, dependency maintenance and complete-scope absence. The second keeps only acyclic definitions and a bounded walk over a single-parent forest. It can reproduce the worked transcript, but would not accept the same definitions: a recursive rule becomes a traversal. The first remains the reference until the narrower one is shown to suffice. No measurements compare them.

What is shown and what is not

Observation Standing in the sources
Containment laws follow from construction Deduction, for a finite tree with constraints preserved
Gain and loss are boundary-relative Deduction, for the membership or additive model
Finite positive closure terminates Argument under stated restrictions
A reader acquires vocabulary from prior definitions Constructive design within the evaluator’s fixed power
Authority and root trust arise from distinctions Not established; trust is supplied
The seed is the smallest possible Not established
The Books fit the current language Incomplete; exact aggregation needs specification

The eight worked examples are manual reasoning, not executed conformance results.

Open questions

Is recursion worth its engine? Open

General positive recursion expresses arbitrary declared relations and requires closure and retraction handling. Bounded traversal is smaller and cannot express multiple-parent membership or recursive delegation without further constructions.

When may absence support a conclusion? Open

Only within an explicitly complete scope; a partial replica must answer unknown. How completeness is declared across logs is not settled.

What is the smallest bootstrap grammar? Open

The examples use readable pseudocode. Canonical tokens, references, types, errors, limits and a complete sealed transcript are still to be written.

Which mechanisms are fixed? Open

Older descriptions preload containers, roles or meanings; the newer proposal supplies general admission machinery and defines more later. Every move of a capability into definitions may enlarge the interpreter that reads them.

13 Relations, the 128 positions and the matrix

Open

This line of work asks whether all recorded acts can be described by a few basic questions, such as where something is, what is claimed about it, who may act and what moves, combined into a table of 128 positions. This section presents that proposal, what its tests showed, and what remains assumed. It matters because it would replace a list of verbs with a structure from which meanings are calculated. It is a design inquiry and is not part of the 24 November Rust build.

Four relations

Relation Question Candidate logic A fold keeps
in Where is it? Part and whole, transitive and asymmetric, with intervals Structure
is What is it? One value per property at a position, superseded and never erased The Register
may Is it allowed to cross? Permission, transitive only if delegated, traced to a root Authority
to What actually crosses, and how much? Directed quantity with a unit; conserved units balance The Books

One candidate product explains the four from two distinctions: whether the operand is a thing or a change, and whether the question is membership or evaluation.

  Membership in a declared region Evaluation under an interpretation
Thing IN IS
Change MAY TO
\[\mathrm{IN}_B(x, S) = [\,x \in \mathrm{extent}(B, S)\,] \qquad \mathrm{IS}_k(x, v, S) = [\,\mathrm{observe}_k(x, S) = v\,]\]
\[\mathrm{MAY}_P(a, \tau, S) = [\,\tau \in \mathrm{Allowed}_P(a, S)\,] \qquad \mathrm{TO}_\tau(S, S') = [\,G_\tau(S) \wedge U_\tau(S) = S'\,]\]

The families overlap: membership can be written as a claim about a predicate, and permission as a claim. Each selects an operating question and contract, not an exclusive category. The product is offered as a candidate explanation and is not an established replacement for the earlier derivation from assertion and direction.

A derivation, graded

The inquiry derives distinctions from a boundary, succession and equality, with the character set and hash chosen as constants. Its own grading is that the steps from the mark through direction, assertion, the four relations and acts, together with phase, are forced; fact or possible, frame or world, sign or substance, the crossings between rows and the fact roles are strong; self or other is promising and newest; and the naming of the pairing that yields the four relations is interpretive. Later review holds that unique derivation of the phases, the roles and the 128 meanings is not established.

The coordinate

The model gives each position a number \(c\) calculated from six digits, F, S, M, O, R and D, which the table below defines:

\[c = 64F + 32S + 16M + 8O + 2R + D\]
Digit Values
F frame, about the record; or world, about the work
S sign, a record of something; or substance, the thing itself
M actual or possible
O self, or another party
R in, is, may, to
D into or out of

Two phase bits sit beside it in the entry head. The coordinate gives every cell a unique address.

\[|\{c\}| = 2^4 \times 4 \times 2 = 128\]

A unique address does not give a unique meaning. Meaning additionally needs typed operands, active definitions, a frame and evidence:

\[\mathrm{Meaning} = \mathrm{interpret}(\text{coordinates},\ \text{operands},\ \text{definitions},\ \text{frame},\ \text{evidence})\]

with a result that is a typed operation or claim, ambiguous, or invalid.

Each split must earn its bit: two cases alike in every other coordinate must differ in some calculable consequence. Finding two different verbs is not enough.

Filling the table

In the digest’s table, 51 ZAKO verbs sit at positions, 35 positions carry proposed names and 42 are open. Thirteen ZAKO verbs are not positions: most are the sample phase of a position, or a possible thing becoming fact.

Direction does not make mutual inverses: leaving is not always the undoing of opening, and an amendment may replace a claim without negating it. Some named activities hold more than one fact. A quote or an invoice is an actual communication carrying a possible or conditional outcome, so a single position for the whole activity can conflate layers.

An entry in this model is a bundle: one main fact from the position plus attached facts, each with its own modality, holding four roles of subject, object, kind and measure. The role decides how a value is encoded.

What the tests showed

On a corpus of 75 real entries:

Test Result
Round trip byte for byte 74 of 75; the exception is the conformance case that is non-canonical by design
Verb names recovered without labels 75 of 75
Every key given a role All, 27 of them as properties named by the key
Books rebuilt from flow facts alone against current rules Identical

The test forced changes: names belong to a position and a phase together; fact or possible belongs to each fact; and a few keys need better roles. These results concern the model and its corpus, and do not show coverage of every domain.

Where generations differ

The version 1 byte holds a verb and a phase. The model holds a 128-position coordinate and a phase. A further proposal stores six bits and derives the context. The compact header draft carries a seven-bit position. These belong to different generations, and no migration or final layout is approved. Exploring how they correspond, and what each one makes easy or impossible, is active work.

A 128-position map is a semantic coordinate. ASCII includes control codes and DEL, so it is not by itself a printable byte format.

Open questions

Can all 128 be inhabited? Open

Establishing a position needs a typed signature, a contextual interpretation, an admissibility rule, an evidence requirement and an example. An empty cell may be a meaningful restriction, but a claim of 128 usable types requires an inhabitant for each.

Can the stored bits recover the context? Open

Deriving frame, sign and self or other from six stored bits needs a stated function over a defined domain, with counterexamples and an ambiguity policy. Success on a corpus is evidence and not a proof.

What happens across row boundaries? Open

Sensing, actuating, anticipating, realising, recording and enacting connect positions. Anticipation builds a forecast from evidence and assumptions; realisation links an earlier possibility to an observed result. Flipping a bit supplies none of the evidence or authority these need.

How do Pairs’ account relations map? Open

Fourteen financial pairs plus two controls and sixteen later flow archetypes are related models whose equal code widths do not give equal meanings. Exact mappings, units and versions are needed.

14 Building applications: Loom

Proposed

If every application is a different reading of one record, there should be a way to describe an application without writing a separate program and database. Loom is a proposed small language for that: forms, screens, rules and automations that become part of the record they work on. Nothing of it is built yet. It matters because it is the route by which people other than developers could shape the tools.

One effect, pure views

Loom is meant for operators and domain people as well as developers. A program compiles to a pack, so adopting an application is one BIND entry, and the application’s definition lives in the same log as the work it shows.

A Loom program changes the world in one way only: it submits an entry, which the log accepts or refuses. A button, a form, a rule’s verdict and an automation’s reaction are all entries.

The other principles follow from the kernel: views are pure and read up to an address; the phase decides the control; units are types; values carry how they are known; an act is shown only to viewers the log would accept it from; any screen can be shown as of any position; labels are local while codes are universal; and a rule refuses or flags an entry but never rewrites history.

Six constructs

Construct What it does Compiles to
kind, unit, profile Declares vocabulary CREATE entries
view Computes something from the log A view declaration with inputs and method hash
rule Judges an entry at submission A rule: refuse or flag
act Defines a form for one verb A form bound to a verb and phase
screen Arranges views and acts A screen declaration
when Reacts by proposing or submitting an act An automation and its actor
view scrap_rate(m: machine) : ratio reads FINISH, INSPECT =
  count(INSPECT where object.machine = m and result = "scrap")
    / count(FINISH where machine = m)

rule spend_needs_approval on PAY
  when total(legs, USD) > 500 USD
  require basis is an AGREE by role "approver"
  else refuse "spend over 500 USD needs an approval"

Types are the record’s own ideas

Units of the same dimension convert exactly. Units of different dimensions never mix:

use.J + use.xs              -- error: energy + cpu-time
use.J + 2 kWh               -- ok: 7,200,000 J added exactly
use.J * price(t1, J, USD)   -- ok: money, and the result names tariff t1

Every value is measured, estimated or derived, and combining values gives the weakest. In the draft’s table the order from strongest to weakest is measured, estimated, derived, and a derived value cites its view:

\[\mathrm{known}(a \circ b) = \min(\mathrm{known}(a),\ \mathrm{known}(b))\]

Only conserved units sum across acts, so summing children’s wall time is an error; envelope and parallelism are offered instead. A view may be read as of an address. Occurrence times may be compared but not treated as an order, since order is the address. A screen that shows an act to viewers who could never submit it draws a compile warning.

From program to running screen

A program’s units, authority and view inputs are checked, it compiles to a pack, and a preview precedes the BIND. A shell then runs views over the log and draws screens. A viewer’s act becomes one entry, which the log checks against the kernel and the pack’s rules, and every answer, accepted, refused or flagged, is journaled.

The shell holds no state, and the same shell serves every pack. Where the language cannot express a view, a view names a WebAssembly module by hash, run with no imports. Elapsed time shown on screen is the only clock. It is a display function and not a view, so views stay pure.

A rule judges only entries submitted after it is adopted. Earlier entries may be flagged by a view and are never made invalid after the fact.

The draft shows a working screen from the repository, about 600 lines of JavaScript, expressed in about 30 lines, because forms, dry-run checks, receipts, retries and sequence numbers come from the kernel. That is a design estimate: the compiler does not exist.

Where this stands against the 24 November Rust build v0a

A pack today holds declarations of units, profiles and views. Rules, acts and screens could be carried as declarations, but nothing enforces them, because the log does not yet act on those kinds or run rules at submission.

Open questions

Where do rules run? Open

The recommendation is in the log at submission, using the same check as the dry run, because a rule enforced only by a screen can be bypassed by any other writer. It makes pack rules part of what every implementation must execute identically.

How much general programming? Open

The recommendation is none at first: expressions, filters, sums, counts and pairing, with a WebAssembly view as the escape. A small language can be checked completely before adoption and written safely by agents, and will meet cases it cannot say.

Who may adopt an application? Open

Anyone with an admin grant, with a preview showing every rule, automation and new act. Adopting software changes what the log accepts, so it should be seen first; how a reviewer judges the effect of a rule is the harder part.

15 Persistent questions

Open

Some questions outlast any one proposed answer. This section collects the larger ones, those that cut across the other sections, together with the recommendations already on the table. It matters because this is where outside thought can change the direction, and because a recommendation recorded here is not the same as a decision.

Recommendations that have a default

The overview records each open decision with a recommended default, so an implementer can proceed. Several are visible in the 24 November Rust build.

Question Recommendation
Is phase its own part of the type? Yes; paired verbs stay instant lifecycle claims
Do the letters become profiles? Yes
How is a type spelled? Verb names in the canonical line, phase marks in the run form
Names or numeric codes? Names, with codes in binary
Which hash? SHA-256, with a rule allowing replacement
One root at genesis or several? Several, with a threshold
Consumption postings written or implied? Implied
Late entries for a closed period? An adjustment in the open period
Overlapping capacity? Flag it; split only by a declared rule
Must views be pure? Yes; anything else is an estimate
A declarative view language? Yes, with code as the escape
Conflicting packs? Refuse adoption
Is viewing a view recorded? No by default

A recommended default lets work proceed and does not close a question.

Where design generations differ

These differences are findings of an active design. Each is a place to look harder.

Subject The difference
Seed contents Whether containers, roles and meanings are preloaded or defined later
Final replay Checking early history under completed rules is a separate act from authorizing it
Type encodings A 64-verb byte, a 128-position coordinate and six stored bits belong to different generations
Evidence and phase Whether how a thing is known is folded into the sample phase or kept apart
Containment Tree ancestry, set inclusion, multiple membership and participation over time obey different laws
Pair classifications Financial pairs, flow archetypes and engineering renderings need mapping by exact versions
Retirement and supersession Whether retiring an occurrence and correcting a claim are equivalent
Universality Neither a count of cells nor finite inference establishes coverage

Obligations not yet met

Deliverable What completion needs
Bootstrap grammar and transcript Exact bytes, references, errors, limits; every record, check, activation and seal
Operator workbook Effects, guards and invalid combinations for each supported position
Dependency accounting Explicit dependencies and a comparison of trusted complexity
Books arithmetic in the seed Exact aggregation, unit and boundary laws, overflow behaviour
Fact-role adequacy Multiparty, evidence and bundle cases without loss of meaning
Cross-log contracts Causality, completeness, conflict, reservation and federation
External effects Idempotency boundaries, unresolved outcomes, recovery and compensation
Definition migration Deprecation, dependent rules, preserved authority and replay
Predictive work Models, assumptions, calibration and evaluation against outcomes
Conformance for the new seed Independent readers and vectors

A test would need to show that a claim holds, not only that an example works. Example success, formal proof and an authorized governance decision are different kinds of evidence.

Open questions

What stays fixed? Open

Every guarantee depends on something a reader must already have. A small fixed kernel is easy to audit and slow to change. A reader that learns its vocabulary changes easily and moves trust into activation and governance.

Does one vocabulary cover real work? Open

The central bet is that people, machines and agents can be recorded in one grammar. The proposed tests are to map outside domains and to build an application purely as a view. Failure would show as domain dialects multiplying until no shared view can compare them.

Is the economy real for readers? Open

Byte savings are shown in trial. Tokens, parse cost, human review and recovery from error are the costs that matter to people and agents, and cost per accepted outcome is the proposed measure.

What does a record establish about the world? Open

Acceptance shows that an entry met the rules, not that it is true. Which claims need witnesses, signatures or confirmation by another party, and how disagreement is kept visible, bear on everything built above the log.