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

BabbTools for the frontier.

mascot mascot
StandardIn development

Stream.

One append-only log of acts by people, machines and AI agents, with what each act consumed. Balances, boards, traces and the applications themselves are functions of that log.

In development 6 crates · 21 tests kernel sha256:fed5b36e…
1752300002 GRANT host:build-01 {"for":"agent:*","may":"record","to":"host:build-01"} 1752300000 R:ACT( task-42 {"actor":"agent:claude-07","ps":1,"run":"k42"} 1752300060 R:ACT) task-42 {"actor":"agent:claude-07","pool":"host:build-01","ps":2,"run":"k42","use":{"J":"610","xs":"41.0"}}
As submitted in the README quick start: a grant, then the start and end of one agent task. The journal sets rec from the authenticated submitter.

An entry is one line.

The kernel fixes the grammar. An entry is valid only if re-serialising it reproduces its bytes exactly.

<time>[P:]VERB[phase]<object><canonical JSON>
timeUnix seconds, with up to six fraction digits and no trailing zero.
[P:]VERBAn optional profile (one uppercase letter) and one of 64 verb names, in eight blocks of eight.
phase( begin, ) end, * sample. Absent means instant.
object and payloadThe object has no spaces or controls. The payload has sorted keys, no whitespace and integer numbers only; quantities are strings.

Six crates make up the first implementation.

Each name opens that crate's source.

Crates

stream-kernelEntry grammar, canonical JSON, exact decimals, the 64 verbs and the phase (one type byte), addresses, hashing, seals. no_std: builds for servers, wasm32-unknown-unknown and thumbv7em-none-eabihf. Depends only on sha2.
stream-logAppend-only segments in any Store (a directory, or memory), receipts, retries by (rec, ps), journaled rejections, authority from genesis roots and grants, the Register, pack adoption, seals, verification, capture gaps.
stream-booksBuilt-in views as pure folds: balances from explicit legs and implied use, Close by hash, span pairing, attribution with remainders, utilisation and parallelism.
stream-codecRun form: shared context once, then deltas. Decodes byte for byte to canonical lines.
stream-cliThe stream command.
stream-wasmThe log's rules for the browser: the same Log over memory, behind one JSON entry point. Used by web/.

The kernel is about one page, and its hash is its identity.

Every log names that hash on its first line and is read under exactly that kernel. Three core rules apply.

append

Append only

Nothing written is ever changed or removed.

authority

Valid entries

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

position

Read in place

An entry is read under the declarations in force at its position.

The kernel, log and command line are built and tested.

Status as the repository README states it.

Built

builtKernel, log, Register, packs, Books, run form, CLI, and the browser engine.
testsThere are 21 tests, including the conformance cases. Clippy is clean.
browserweb/ has the Now and Act screens working locally, with the simulated agent.
limitOne writer per log directory.
limitThe full Register and index are held in memory.
limitCloses are verified by recomputing from the start of the log, not from a checkpoint.

Next

viewsA WebAssembly view host (wasmtime, no imports), with stream-books moving onto it.
run formPositional payloads and template rows in the run form. The trial reaches about 28 times smaller than canonical on meter data; this version reaches about 3.2 times.
framingPacked binary and control-character framing.
languageA declarative view language.
shellThe web shell.
importersImporters for Workwarrior stream.log v1, Taskwarrior, Timewarrior and hledger.
devicesA C interface for ZAKO devices.
trialThe Python trial as a second implementation, run against the conformance logs.

Where to read next.

The overview states the design as it stood when written. Where the code differs, the code and spec/ are current.

Back to Standards and Protocols