Created by: AI service unspecified
Exported from the shareable document of the same name, 2026-11-24. Written 2026-11-23.
STREAM is one append-only log of acts by people, machines and AI agents, together with what each act consumed. Balances, boards, traces, reports and the applications themselves are functions of that log. A one-page kernel says how to read it, packs set it up, views read it, and caches make reading fast. Only the log is authoritative.
Overview
Work runs on limited time, energy and compute, and demand on all three keeps growing. The people running a factory, a farm, a company or a fleet of AI agents need to see where those resources went. With that, they can hold output steady on less input, or find the surplus that would let it grow. Today the picture is split across task trackers, time clocks, meters, invoices and logs that don't agree.
STREAM records every act once, in one log, with what it consumed. Everything else is read from that log:
flowchart LR
P[Packs<br/>setup and apps] -- adopted --> L[Log<br/>the only truth]
L -- read by --> V[Views<br/>pure functions]
V -- saved to --> C[Caches<br/>disposable]
V -. published results, signed .-> L
K[Kernel<br/>fixed, one page] -- defines how every entry is read --> L
- The kernel says how to read the log.
- Packs declare its units, accounts, pools, prices and views in bulk.
- Views compute answers.
- Caches keep those answers fast.
Only published results flow back into the log, as signed estimates. Everything in the log, including its own vocabulary, has a time, an author and a history.
The relativity of data
STREAM rests on six postulates. Every component below is a consequence of one of them.
- The record is invariant. Every reader sees the same log. Readers differ only in the views they apply.
- Encodings are equivalent. Any spelling that decodes to the same canonical entries is the same record.
- 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.
- 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.
- Conserved quantities are invariant; value is not. Energy, CPU time, tokens, material and money balance in every frame. Prices and efficiency are views.
- 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 master formula says that any state is a fold over the log:
S = f_\theta(L) = \mathrm{fold}(\mathrm{step}_\theta,\ S_0,\ L)
Here L is the log, θ is the versioned rules a view applies, and S₀ is the empty state. The two sides must always agree. The left side is the definition. The right side is how an implementation computes it: one step per entry, resumable from any verified checkpoint. Indexed by time, the same idea reads:
S(T) = \sum_{t_i \le T} e_i \qquad \frac{dS}{dT} = \varepsilon(T)
The state at time T is everything recorded up to T, and its rate of change is the flow of acts. Power, utilisation and throughput are rates of that kind. Each entry costs only the information its frame does not already supply:
\mathrm{size}(e) \approx H(e \mid \text{Codebook}, \text{Register}, \text{session}, \text{run})
The kernel
The kernel is the fixed set of rules needed to read a log from its first entry. It fits on one page, and the log's first entry names it by hash. Everything else is built up from entries. A competent engineer should be able to write a reader that checks any log's structure and seals from the kernel alone.
| Kernel part | What it fixes |
|---|---|
| Entry grammar | One canonical spelling: time, type, object, payload. How a line splits into fields. |
| Primitive types | Integer time with optional microseconds, decimal string, identifier, address (segment:seq), hash |
| Canonical form | One exact byte form per entry: field order, sorted keys, no spare whitespace. Hashes are taken over these bytes. |
| Seal rule | Each segment ends in a seal that chains its hash onto the previous seal |
| Core rules | Append-only. An entry is valid if it is well formed and its author's authority traces back to genesis. |
| Interpretation rule | An entry is read under the Codebook and Register as they stood at its position, never as they stand when it is read |
| Bootstrap verbs | The eight below |
The eight bootstrap verbs come from the Identity, Structural and Exchange blocks of the shared verb list, so the kernel and the Codebook can never disagree:
| Verb | Code | Kernel meaning |
|---|---|---|
| CREATE | 0x0C | Declare a thing: object, actor, unit, account, pool, verb definition, profile, view |
| BIND | 0x0D | Attach one thing to another: a key to an actor, a pack to the log |
| GRANT | 0x08 | Give an actor authority over a class of entries |
| REVOKE | 0x09 | Withdraw that authority |
| AMEND | 0x16 | Supersede an earlier entry, which stays in the log |
| OPEN | 0x10 | Begin a segment or session, stating its Codebook version and clock |
| COMMIT | 0x15 | Seal a segment, or close a period by hash |
| ACK | 0x1A | Receipt for a submission. A rejection is an ACK carrying a refusal. |
The first entry, genesis, fixes the kernel, the log's identity, its root authority and its first clock. Every later grant descends from that root.
OPEN log:<id> kernel=<hash> root=actor:<founder> clock=<source> tz=<zone>
The kernel changes only by an AMEND from root authority, and the change takes effect at the next segment. Old segments are always read under the kernel they name.
Entries
An entry records one act, or one end of an act. An act is a span of time in which an actor did something to an object, and possibly consumed resources. The entry says:
- when, and by whose clock;
- which kind of act, from its type;
- on what object;
- how much, and drawn from which pool;
- how the value is known: measured, estimated or claimed.
The type byte. A type is one byte: a 6-bit verb and a 2-bit phase. The verb is one of 64 universal acts in eight blocks of eight: System, Identity, Structural, Exchange, Work, Observe, Schedule, Learning. The phase says where in the act the entry falls.
[ p p | b b b | i i i ] phase (2) | verb = block (3) + index (3)
00 instant 01 begin 10 end 11 sample
ATTEND begin 01 110 110 = 0x76 operator clocks on
QUERY end 10 111 000 = 0xB8 a model call returns
MEASURE sample 11 101 100 = 0xEC one reading in a series
FINISH instant 00 100 011 = 0x23 a work item completes
The verbs are the same everywhere, so an operator, a pump and an agent doing comparable things are comparable in every view. Phase takes over the job that words like start and stop do today. A presence interval (ATTEND, begin and end) no longer gets confused with finishing a job (FINISH).
The meaning stack. Each fact is stated at the widest scope where it holds, and stated once:
| 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 |
A note key that keeps recurring is promoted into the Codebook or the Register. The load each entry carries therefore falls as the vocabulary matures.
Profiles. The single letters (T for tasks, B for presence, F for state changes, D for derived signals, A for notes) are profiles. A profile is a local dialect of a universal verb. It adds the rules that verb needs in that setting: how begin and end pair, which fields are required, what is private. New meaning goes into verbs first. A letter is added only for a genuinely local rule set.
Three spellings. Each of these decodes 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
In the trial, a reading costs 110 bytes in canonical form, 4 in run form, and under 1 in packed binary over a thousand readings. A mixed workload shrinks by about half in run form.
What every entry must be able to say:
| Obligation | Usually stated |
|---|---|
| When, by whose clock | Session |
| Which act, its layout, its replay behaviour | Codebook |
| On what: a declared object | Register |
| Which version it was based on, if the object has several writers | Entry |
| How much, from which pool, balanced | Amounts on the entry; pool per run |
| How it is known: measured, estimated or claimed | Verb and run |
| What class of resource did it | Register; on the entry only if it differed |
| If derived: by whom, how, from what | The deriving entry |
Packs and the Register
The Register is the set of things a log has declared: objects, actors, units, accounts, pools, clocks, profiles, prices, grants and views. It is not a file. It is the result of folding the log's CREATE, BIND, AMEND, GRANT and REVOKE entries, so it can answer what was true of any machine, account or price at any past position.
Packs declare things in bulk. A pack is a set of declarations stored by its hash. A log adopts it with a single entry:
BIND pack:<hash> to log name=farm-basics@1 author=<actor> sig=<signature>
From that position onward, the log reads as though every declaration in the pack had been entered there. A single entry gives four properties:
- Atomic. A setup is adopted whole or not at all. An ordinary batch can't promise that, because each entry in it is accepted on its own.
- Compact. Hundreds of declarations cost one line.
- Shareable. Every log that adopts
si-units@1means exactly the same thing by kg. - Traceable. The log records who adopted what, when, and under whose signature.
Packs stack like the meaning layers: a standard pack (the 64 verbs and their behaviour), then domain packs (units and profiles for energy, farming, manufacturing, agent operations), then an organisation pack (its own machines, accounts, pools, prices and views). A pack can build on other packs by hash. Local changes are explicit AMENDs. If two packs define the same code differently, adoption is refused until one explicitly supersedes the other. A log can adopt a pack at creation, or at any later position. An upgrade is a new version, and entries written before it are still read under the old one.
An abridged farm pack:
CREATE unit m3 dimension=volume conserved (1 m3 = 1000 L)
CREATE pool water-licence unit=m3 capacity=12000/season
CREATE pool labour unit=h per=actor
CREATE account field:north role=activity
CREATE profile I irrigation verb=ACT pairs-by=run use={m3, L, h}
CREATE price diesel 1 L = 1.42 USD from=2026-03-01
CREATE view water-per-kg reads=I,MEASURE(kg) method=<hash> shows=chart
Software composed from the log. When packs declare views as well as definitions, the application is itself declared data. A generic shell renders it:
| The log declares | The software shows |
|---|---|
| A verb's payload layout | An entry form with exactly those fields, in the right units |
| Register items | Menus and pickers: machines, fields, accounts, people |
| Views and their presentation | Screens: boards, timelines, ledgers, charts |
| Grants | Which forms and screens each person or agent can use |
| Profiles | Local behaviour, such as how clock-on pairs with clock-off |
The fit between views and data is checked, not assumed. Each view declares its inputs, for example ATTEND and MEASURE in joules from an energy pool. A view whose inputs are not declared shows as unavailable and names what is missing. It never shows a wrong number. Because the application's definition lives in the same log as the data, you can ask exactly what the software looked like on any date.
Views and caches
A view is a pure function of the log. It reads only entries up to a position, plus its declared parameters. It never reads the clock, random numbers or the network. Anything that needs the outside world is an estimate, not a view. A view is declared like anything else:
CREATE view water-per-kg@1
reads = profile I, MEASURE in kg, pools of unit m3
params = season, field
method = blob:<hash> runtime = <hash>
output = table(field, season, m3/kg)
shows = chart(line by season)
The method and its runtime are pinned by hash, so an old result can be reproduced after a software upgrade. A new version is an AMEND with a reason, and the old version stays. Purity gives every result an exact identity, which is also its cache key:
result = view(hash) with parameters θ over the log up to address A
Most views sum by account, unit and period, pair begins with ends, or group and count. A small declarative view language should cover those cases, so they can be checked and ported. Code remains available for the rest.
Results are computed, not recorded, with one exception. When someone publishes a result that others will rely on (a monthly figure, an energy allocation, a quoted cost), it enters the log as an attributed estimate. The estimate names the view, the parameters and the address it was computed up to:
ESTIMATE kpi:water-per-kg:north q=41.7 u=m3/kg
view=water-per-kg@2 θ={season:2026} upto=14:882 result=<hash> by=actor:agronomist
Anyone can rerun the view and compare the hash. A later revision supersedes the estimate, so entries that arrive after 14:882 never silently change a published figure. A decision based on the figure cites it, for example an allotment posting with basis=[address of the estimate]. The log then records what happened, what was known when the decision was made, how it was computed, and who acted on it.
Caches hold view results and indexes for speed, for example the current Register, balances and search indexes. They are never authoritative. Each is keyed by its result identity, checked against period seals, and rebuilt on demand. Speed comes from the fold:
- Running totals. Each entry updates only the accounts or objects it touches, so cost follows the entry, not the length of the log.
- Checkpoints. State at any point is the last verified checkpoint plus the entries since. Replay covers the open period, not all of history.
- Partitioning. Sums give the same result in any order and grouping, so work splits by account, segment or period and merges. A late entry simply adds to the right total.
- Deltas. A correction updates totals by minus the old value plus the new one.
A full replay happens only after a rule change, for an audit, or to check a suspect cache. It is linear in the size of the log, can be parallelised, and can start from the last trusted seal. Views such as medians and distinct counts don't merge like sums, so they need period-level summaries built for that.
The Books
The Books record where every conserved quantity came from and where it went. That covers money, and also energy, CPU time, tokens, material and people's hours. A balance is kept per book, account and unit. A book is a boundary of accountability, such as an entity, a site or a project. Accounts have roles: sources and pools, activities, stocks, outputs, and parties.
The Books follow five rules:
- Entries carry movements, never balances. Balances, remainders and rates are computed.
- Each transaction balances on its own, per unit. Two errors in one upload can't cancel out. Units never convert implicitly.
- Conversion is not pricing. A conversion stays within one dimension and always holds (1 kWh = 1000 Wh), so it belongs in the Register. A price crosses dimensions and is contingent (an hour is worth $50), so it belongs in a view. Changing the price never touches the Books.
- A Close commits by hash. A COMMIT seals a period with a fixed-size hash of the whole balance table, plus the period and a record count. It doesn't restate the balances. Anyone can replay the period and check the hash. If the table is hashed as a tree, one account's balance can be proven without revealing the others.
- Corrections append. An AMEND supersedes a posting and points back to it. The original stays.
\sum_{\text{legs}} q(u, b) = 0 \qquad B(a,u,T) = \sum_{e \in L,\ t_e \le T,\ e\ \text{not superseded}} q_e(a,u)
Explicit and implied movements. An explicit posting is an entry whose whole claim is a transfer: buying material, paying an invoice, allotting a budget. Consumption is implied instead. When an act closes with use: 33.1 CPU-s, ~480 J 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 by far the most frequent movement, so this keeps it at zero extra bytes.
How a value is known stays visible in every balance. A value is measured (a meter, a cgroup counter, an API token count), estimated (marked ~, such as a run's share of host energy), or settled (confirmed by a counterparty, such as an invoice). When an invoice arrives it supersedes the provisional charge, and the difference shows as a correction.
Capacity. People's hours, machine uptime and an agent's budget are conserved capacity. They flow from the actor's pool into the work clocked against it. Wall time is not conserved: time that elapsed is not the same as time spent from someone's capacity.
Allotment. A budget is an explicit posting from a pool to an allotment account. Consumption draws against it. Three views follow directly:
- Variance: what was allotted against what was used, per unit and per activity.
- Headroom: the capacity left in each pool. This is the surplus available for growth.
- Efficiency: output per unit of input, such as good product per kilogram of raw material, results per thousand tokens, or deliverables per kilowatt-hour.
These are the figures that let the people running an undertaking keep output steady on less input, or put surplus to work.
AI agents
An agent given one task may make dozens of model calls and tool calls. Each tool call hides hundreds of system actions, and those hide millions more. STREAM records an agent the way it records a factory: as acts with identities, parents and resource use, down to a declared depth.
Spans. Each unit of work is an interval with its own identity and parent: a task, a model call (QUERY, begin and end) or a tool call (ACT, begin and end). Sub-second timing is kept, so overlapping calls stay distinct. The host records on the agent's behalf under a grant. The entry therefore carries both who acted (the agent) and who wrote it down (the host).
Use. When a span closes, its entry carries what it consumed, stated as independent evidence:
- Tokens, measured from the model API's usage report, by class: input, output, cache read, cache write.
- CPU time, measured from the operating system's per-process counters.
- Host energy, measured at the host. A span's share of host energy is an estimate (
~) with a declared method. - Remote model energy, an estimate unless the provider supplies evidence.
- The model or machine class that served the call, recorded only when it differed from what was declared, for example after a fallback.
Depth and remainder. Each stream declares how deep it records. Below that depth, the parent's use carries the totals, plus a count of sub-acts not recorded one by one. For every conserved quantity:
U_{\text{parent}} = \sum U_{\text{children}} + R, \qquad R \ge 0
If R is negative, the children claim more than the parent used, and the view reports over-attribution. Wall time is the envelope and doesn't add up across parallel work, so it is reported as ratios. Utilisation is CPU time over wall time. Parallelism is total child wall time over parent wall time.
A worked task from the trial:
| Span | Wall | CPU | Energy | Tokens in / out |
|---|---|---|---|---|
| Task k42 (measured at host) | 60 s | 41.0 s | 610 J | 18,000 / 2,400 |
| ↳ model call m1 | 4.2 s | 12,000 / 900 | ||
| ↳ tool call t1 (412 sub-acts unrecorded) | 35.5 s | 33.1 s | \~480 J | |
| ↳ model call m2 | 3 s | 6,000 / 1,500 | ||
| ↳ tool calls t2, t3 in parallel | 8 s, 10 s | 5.4 s | \~75 J | |
| Remainder: the agent's own overhead | 2.5 s | \~55 J | 0 / 0 |
Every token is accounted for. 2.5 CPU-seconds and about 55 joules fell between the recorded steps, and that is now a number rather than an unknown. Utilisation was 0.68. Priced views turn the same token counts into cost under any tariff without changing the log. When the invoice arrives, it settles the estimate.
This answers the question the allotment problem keeps asking: did a step need the large model, or would a cheaper resource class have done? The class of resource is recorded, so the answer can be computed instead of guessed.
Text and wire
ASCII has 128 codes. STREAM gives each of its two halves one job:
- The 95 printable characters are the alphabet of what the log says. Each one costs a full byte, so text carries at most about 6.5 bits of meaning per byte. Text saves space by leaving things out, through the meaning stack. Clever characters don't save it. Character class carries role in the run form: uppercase letters are profiles, punctuation marks the phase (
(begin,)end), lowercase letters are keys and unit codes, and digits are values. - The 33 control characters are the grammar for sending, receiving and confirming entries. A control character never adds a second meaning. It is either a structural boundary, or a one-byte spelling of an existing verb, and it keeps its ASCII meaning wherever it has one.
| Group | Characters | Job |
|---|---|---|
| Framing | FS, GS, RS, US, SOH, STX/ETX, ETB, EOT | Segment, run, entry and field boundaries; a header start; enclosed text; a seal; end of session. Content never needs escaping. |
| Conversation | ACK, NAK, ENQ, SYN, DC1/DC3 | Receipt, rejection, status request, clock sync, resume and pause of a producer |
| Meaning shifts | SO/SI, ESC, DLE | Switch to a profile or local dictionary and back; an extended code follows; the next byte is literal |
| Corrections | SUB, CAN | Supersede an entry; cancel one before it is committed |
| Left as text | HT, LF, CR | Keep their text meaning, so readable forms work in every tool |
| Reserved | DEL | Its historical job was erasing, and an append-only log never erases |
Split bytes. In binary, fields take exactly the bits they need, and several can share a byte. The type byte is one example: a 2-bit phase and a 6-bit verb. The C0 enhancement byte is another: three flags (priority, acknowledgement requested, continuation) and a 5-bit control code. A pictograph byte holds two 4-bit symbols from a declared codebook, and can carry a category such as a rejection reason after a NAK.
Once its flag bits are set, a control byte can equal a printable character: ACK with the acknowledgement-requested flag set is 0x46, which is F. With the priority flag set, it falls in the C1 range, which is also UTF-8 continuation bytes. So flagged bytes appear only in binary frames, at positions the frame declares. Plain control bytes (0x00 to 0x1F) are unambiguous in any stream.
Where each layer pays off:
- Device and wire frames: a single byte can replace a whole entry for receipts, alerts and flow control. This is where control characters pay most.
- Framed exchange between machines: separators remove quoting and JSON syntax, so values can contain anything.
- The readable log: stays printable, using only LF and HT. Control characters are invisible in editors, break line tools, and are untested on AI readers.
Lineage
Many of STREAM's views and rules are named for the people whose inventions they extend. A concept enters STREAM in one of three ways:
- As an obligation that changes how entries are made. There are few of these, and the set is closed.
- As a Codebook entry that lets something be captured. These grow slowly.
- As a view. These are unbounded, and never change the log.
The test that sorts them: does the concept need information that exists only at the moment of the act? If it does, it shapes the entry. If not, it is a view.
Pacioli: the Books
Luca Pacioli's Summa de arithmetica (Venice, 1494) gave the first printed account of double-entry bookkeeping: every amount recorded twice, as a debit and a credit, so that the books balance. Its deeper idea is that a business's present state is derived from a record of transactions, never kept as a separate fact.
STREAM takes two obligations from Pacioli. Every quantity is a movement between accounts, and each transaction balances on its own, per unit. The log is append-only, and state is a fold over it. STREAM extends double-entry from money to every conserved quantity. A period close commits to the balances by hash instead of restating them. The Pacioli view is the balance view.
Hollerith: declared layouts
Herman Hollerith's punched-card tabulator processed the 1890 United States census. His company, founded in 1896, later became part of IBM. The essential step was not the holes. It was that the card layout and the category codes were fixed before any card was punched, so machines could count by column.
STREAM takes the declared layout. Each type's payload positions are defined in the Codebook, and each object is declared once in the Register, so entries carry values, not names. Time-sorted storage is not adopted, because append order is the address. The Hollerith view is a grid of time against object.
Bundy: trusted time and intervals
Willard Bundy, a jeweller in Auburn, New York, patented a time recorder in 1888. Each worker had a numbered key, and turning it in the clock printed their number and the time on a paper tape. The worker supplied the act, and the clock supplied the time.
STREAM takes three things from this:
- Interval identity: an interval has an identity from its beginning, so overlapping intervals stay distinct.
- Clock provenance: each session declares which clock supplied its times, with precision and timezone. A time a person supplies is marked as a claim.
- The presence verb: ATTEND, with begin and end phases.
The Bundy view reports worked intervals.
Dey: continuous signals
Alexander Dey patented a dial time recorder around 1888. A worker swung an arm to their number on a dial, and the machine printed the time against it. The project's notes cast Dey as the model for continuous rather than discrete recording. The Dey view is a continuous behavioural signal: intensity, stability and fragmentation over time.
STREAM takes the sampled series: a declared cadence, with gaps marked. It adds a rule from the Dey view's history. A derived index is recorded as an estimate, with its method, version and window, and a signal that describes a person is restricted by its verb or domain.
Frick: state transitions
The project's notes credit Frederick W. Frick's mechanical recorders with emphasising instantaneous marks, meaning state changes rather than durations. I have not been able to verify these historical details, and they should be checked before publication.
In STREAM the Frick view is the transition graph. The Codebook defines each object kind's states. A change to an object with several writers carries the version it was based on, so missed or conflicting transitions are detected rather than hidden.
Burroughs: the listing tape
William Seward Burroughs patented an adding and listing machine in 1888. It printed each entry as well as the total, so every sum arrived with its proof. A hydraulic governor made the result the same however hard the handle was pulled.
STREAM has two counterparts. Provenance is the tape: every figure names the entries it came from. Safe retry identity is the governor: resubmitting the same entry never changes the result. The Burroughs view is the raw accumulation of entries.
Baldwin: deltas and reversibility
Frank S. Baldwin patented a pinwheel calculator in 1875 that subtracted by reversing the crank. He later co-founded the Monroe calculator company.
STREAM takes the delta. A mutation carries the version it was based on, and corrections update totals by minus the old value plus the new one. Snapshots, which bound how much must be replayed, are caches and never part of the record.
Grant: derived metrics
George B. Grant built calculating machines, including a difference engine shown at the 1876 Centennial Exhibition in Philadelphia.
In STREAM, Grant names derived metrics, such as the second difference, or acceleration, of activity. Metrics stay views. One that is published for a period enters the log only as an attributed estimate.
Felt: density as rate
Dorr E. Felt patented the Comptometer in 1887. It was key-driven: each keystroke added immediately, with no crank. That made entry as fast as the operator.
In STREAM, Felt names density. Event counts depend on how deeply a process is recorded, so the primary Felt measure is the rate of a conserved quantity: power, utilisation, tokens per second. Event-count density is kept as a secondary measure, labelled with its recording depth.
Cooper: the radial field
The Cooper view maps time of day to an angle and intensity to a radius, giving a day's work a shape. The project's notes do not record which historical Cooper the name honours. That should be confirmed or the view renamed.
STREAM requires one thing of Cooper. The angle comes from local time in the session's declared timezone, never from UTC.
Babbage: class of resource
Charles Babbage designed the Difference Engine, which computed tables by adding differences, and the Analytical Engine, with its store and mill. His On the Economy of Machinery and Manufactures (1832) set out what became known as the Babbage principle. Dividing work by the skill each part requires lowers cost, because each part is paid for only at the level it needs.
STREAM takes three things from Babbage:
- An obligation: record what class of resource performed each act (a model, a machine class, a labour grade), declared per actor and noted per act when it differed. Without it, the question of whether a cheaper resource would have done the job can't be answered.
- An encoding: a smooth series is cheapest as a starting value plus differences.
- The architecture: a store that is read without being changed, and programs that operate on it, which are the log and its views.
Lovelace: no power to originate
Ada Lovelace's notes on the Analytical Engine (1843) included what is widely regarded as the first published algorithm, for computing Bernoulli numbers. They also argued that the engine could manipulate any symbols whose relations could be expressed, not just numbers. She wrote that the engine "has no pretensions whatever to originate anything".
STREAM takes three rules from her:
- Views never write facts. A view's result enters the log only as a published estimate with an author, a method and a basis.
- Every verb declares its replay behaviour. Symbols with defined relations are what let universal views work on universal verbs.
- Supersession applies to every claim. Her successive approximation becomes estimates that are refined over time, each superseding the last.
Erlang: waiting
Agner Krarup Erlang, an engineer at the Copenhagen Telephone Company, published the first queueing analysis of telephone traffic in 1909. The unit of traffic intensity, the erlang, is named after him.
The proposed Erlang view analyses waiting: queues, blocked and deferred work, and lead time split into waiting and working. Its prerequisite is capture. Entering and leaving a queue must be recorded, because waiting is where most elapsed time goes, and it is invisible today.
Gantt: plan against actual
Henry Gantt developed his charts in the 1910s to compare scheduled work with work actually done, and they were used widely in wartime production.
The proposed Gantt view compares commitments with outcomes. Its prerequisite is that plans and promises are entries too: due dates, orders and agreements, recorded with schedule and agreement verbs.
Shewhart: variation
Walter Shewhart, at Bell Telephone Laboratories, introduced the control chart in 1924. It separates the normal variation of a process from variation that signals a real cause.
The proposed Shewhart view applies control limits to measurements. Its prerequisite is a Register declaration: the specification each measured thing is judged against.
Gilbreth: the smallest acts
Frank and Lillian Gilbreth's motion studies broke work into about eighteen elemental motions, which they called therbligs. Among them are search, grasp, transport, inspect, plan, avoidable delay and unavoidable delay.
The therbligs are the closest historical precedent for STREAM's universal verbs: a small shared vocabulary of acts, built to find wasted time. Their split between avoidable and unavoidable delay informs how waiting should be recorded.
Baudot, Murray and ASCII: the control characters
Émile Baudot's printing telegraph of the 1870s used a fixed five-unit code. Donald Murray adapted it around 1901 for keyboard operation, adding control functions such as carriage return and line feed. Its successors led to ASCII in 1963, whose 33 control characters (acknowledge, negative acknowledge, synchronous idle, the four information separators) were designed for the conversation around a message, not its content.
STREAM uses them for exactly that role: framing, receipts, flow control and meaning shifts on the wire, each keeping its ASCII meaning. The split-byte grammar adds three flag bits to the five bits a control code needs.
Telegraph codebooks: the Codebook
Commercial telegraph codebooks of the late nineteenth and early twentieth centuries replaced whole phrases with short code words. Both parties held the same book, so a cable cost less to send. Bentley's Complete Phrase Code of 1906 is one example.
STREAM's Codebook does the same job and takes its name from them: agreed meanings, held by both writer and reader, so that each entry carries only what is new.
Open decisions
Each decision has a recommended default, so an implementer can proceed without waiting for it.
| Decision | Recommendation | Why |
|---|---|---|
| Is phase its own 2-bit part of the type? | Yes. Paired verbs such as START and FINISH remain instant lifecycle claims. | It separates "an interval ended" from "the work finished", and fits verb and phase in one byte. |
| Do today's letters become profiles mapped onto verbs? | Yes. Letters stay as profiles and as view names. | It keeps existing logs and views working, and puts universal meaning in verbs. |
| How is a type spelled in readable form? | Verb names in the canonical line; phase marks in the run form. Letters are not reused as block letters. | Each letter keeps one meaning. Names cost bytes only in the readable form, which is not the compact one. |
| Is the canonical line keyed by numeric codes or names? | Names, with codes in binary. | The canonical line is for people and tools. Binary is for size. |
| Which hash function? | SHA-256, with a hash-agility rule in the kernel | A conservative, widely implemented default. A replacement can be introduced by AMEND. |
| One root authority at genesis, or several? | Allow several, with a threshold to act as root | Shared undertakings need shared authority from the first entry. |
| Are consumption postings implied or written? | Implied: derived from use and the run's pool | Consumption is the most frequent movement. Implying it costs zero extra bytes and loses nothing. |
| Late entries for a closed period? | Post an adjustment in the open period that references the closed one | The seal stays intact, and the correction is still visible. |
| Overlapping capacity: one person clocked onto two machines at once | Flag as over-attribution; split only by a declared rule | Splitting silently invents an allocation. Flagging makes someone decide. |
| Must views be pure? | Yes. Anything else is an estimate. | Reproducible results, exact cache keys, verifiable publications. |
| Is there a declarative view language? | Yes, for sums, pairing, grouping and counting, with code as the escape hatch | Most views are simple. Declared logic can be checked and ported. |
| Do pack conflicts refuse adoption? | Yes, unless one pack explicitly supersedes the other | Silent precedence makes meaning depend on install order. |
| Is viewing a view recorded? | No, by default. Recording it is a per-view grant where an audit requires it. | Privacy. Looking is not an act on the work. |
Status
Demonstrated in a reference trial, with 34 tests passing:
- receipts and safe retries;
- per-recorder gap detection and late entries;
- overlapping intervals kept distinct, with sub-second spans;
- per-transaction balance in each unit;
- corrections that never erase;
- all state rebuilt from the log alone;
- tamper detection by seal;
- byte-for-byte round trips between canonical, run and packed binary forms;
- resource remainders across a cascade.
On the same data, the existing tooling merged two overlapping shifts into one 10-minute interval and silently dropped a third worker's punch. Every change from the existing specifications is traced, term by term, to the source line it changes. The trace is checked automatically.
Unproven:
- token cost and native processing cost for each spelling;
- whether the 64 verbs cover domains beyond those tried;
- the pack and view runtime, including the declarative view language;
- the control-character grid for wire framing, which existing device specifications define three different ways and must be reconciled first.
Next:
- Write the one-page kernel, and a reader that validates structure and seals from it alone.
- Build a pack runtime with pure, declared views, and a generic shell that renders forms and screens from them.
- Measure tokens for each spelling, using the model provider's token-counting interface.
- Run one domain end to end, such as a farm or an agent fleet, using only packs and views.