Stream current design vision (26 November 2026)

Stream current design vision (26 November 2026)

Babb

Created by: OpenAI Codex

Source: docs/overview/current-design-vision.md

Design synthesis, 2026-11-26. This describes the direction developed in the recent owner dialogue. It is a design reference, not a declaration that the existing Rust kernel implements the unfolding model or that every proposed construction is ratified.


STREAM aims to provide a compact, durable record of work across people, agents, machines, and applications. The record preserves identities, relationships, authority, evidence, and resource effects. Applications and task contexts become views of an identified history, interpreted under explicit definitions.


The current foundational direction is a small fixed reader that acquires executable vocabulary through recorded, checked, and authorized definitions. Later expressions become meaningful because earlier accepted expressions established the relationships and operations they invoke. The log can preserve both the work and the development of the rules used to interpret that work.


What remains fixed and what unfolds


The reader begins with an explicit ability to read expressions, identify occurrences, resolve references, match typed operands, evaluate bounded rules, and commit accepted changes. These are genuine supplied capabilities. They are not created from literal nothing.


Within that machinery, definitions can acquire stable identities before activation. The reader can check a proposed definition using current knowledge, record an outcome, and activate it for later positions under the applicable governance rule.


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

The reader/kernel dialogue is this structured exchange. A separate autonomous kernel process is not required. Concepts such as principal, book, role, and grant may be represented through later definitions rather than native categories in the first interpreter.


An inactive definition, an active rule without matching premises, a derived conclusion, and an executed action are different states. A principal may become recognizable when identity evidence satisfies a rule; that classification does not automatically grant authority. Applicability does not automatically dispatch an external action.


Structure and change supply relational meaning


Enclosure is a candidate construction for primitive structure. If immediate parent relationships form a finite acyclic tree, strict containment is the nonempty ancestor relation. Transitivity follows from that construction. More general organizational membership requires its own declared topology.


Occurrence identity is distinct from equal shape, equal content, location, or label. A creation address can remain stable while an entity moves or is renamed. Two equal assertions can remain separate occurrences.


For membership m_B(x,S) in boundary B, an event from S to S' has signed effect:


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


Entry gives +1, exit gives -1, and unchanged membership gives zero. For an additive quantity event with effect vector delta_e and a selector b for disjoint accounts within B:


[
\Delta_B(e)=b^{\mathsf T}\delta_e.
]


An internal transfer can be a loss at one endpoint, a gain at another, and zero net change within a containing boundary. This connects containment, directed effects, and the relativity of data through a calculable relationship.


The owner's original Pairs interpretation contributes past/future (<, >) and gain/loss (+, -). The later implementation adds typed account relationships. Current obligations and future settlement remain distinct: a presently binding obligation is not merely hypothetical because its discharge lies ahead.


Four relation families and their operands


babb-table/1
[["Family", "Intended contribution"], ["IN", "Membership, containment, scope, and temporal participation"], ["IS", "Typed attributed claims, definitions, observations, and supersession"], ["MAY", "Authority for an authenticated actor to perform an operation within scope"], ["TO", "Directed effects and paired postings under declared quantity laws"]]
Family | Intended contribution
IN | Membership, containment, scope, and temporal participation
IS | Typed attributed claims, definitions, observations, and supersession
MAY | Authority for an authenticated actor to perform an operation within scope
TO | Directed effects and paired postings under declared quantity laws

One candidate operation model is a guard G and update U:


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


Composition can build richer operations from existing ones, with explicit preconditions, failure behavior, and effect boundaries. Conserved transfers have paired exact updates; copying information and delegating authority obey different typed rules.


The four proposed fact roles remain subject, object, kind, and measure. Their candidate computational interpretation is operands plus an interpretation and typed parameter. Full sufficiency for multiparty events, evidence, and atomic bundles is still a design obligation.


A finite language can support an expanding vocabulary


The current seed proposal uses eight forms: relation, rule, action, activate, invoke, fresh, emit, and retire. They are definition and execution machinery, not aliases for the eight bootstrap acts or the matrix's coordinates.


Inference may derive relationships among existing values but cannot automatically create fresh referents or manufacture an unbounded sequence of values. With a finite active domain and fixed predicate arities, positive inference reaches a finite closure. Accepted actions introduce new occurrences explicitly.


Guards use completed pre-state knowledge. Effects are staged atomically and checked against registered constraints. Refusals advance audit history without changing domain projections. An action cannot use a grant that it creates in that same invocation to satisfy its pre-state authority check.


Absence can support a conclusion only within an explicitly complete scope. Partial knowledge is not proof of absence. Evaluation limits, unknown evidence, false predicates, and explicit denial need distinct outcomes.


The matrix and compact encoding


The 128-position model organizes context and operator coordinates. The later proposed stored fact type has six bits:


relation 2 | direction 1 | modality 1 | phase 2

Frame/world, sign/substance, and self/other are proposed derived context coordinates. Their deterministic recovery remains to be established for the supported domain. Including two phase bits with the seven full position bits describes a nine-bit semantic coordinate, not a claim that nine independent bits are all written in the compact form.


ASCII provides a finite alphabet; typed operands and composition provide breadth of expression. A 128-coordinate map is not automatically a printable byte protocol. The canonical semantic representation, compact spelling, binary framing, and integrity commitments need explicit correspondence.


The grid's crossings between rows deserve executable definitions. Anticipation constructs a forecast from evidence and assumptions; realization connects an earlier possibility to an observed result. Sensing, actuation, recording, and enactment require their own mappings and evidence. They are not merely unexplained bit toggles.


Pairs' fourteen financial pairs plus two controls and STREAM's later sixteen universal archetypes are related source models requiring reconciliation. Their code widths do not establish identical meanings. Domain packs should identify exact mappings, units, interpretations, and versions.


Human and agent work


The intended record distinguishes what was proposed, authorized, attempted, observed, accepted, and consumed. A successful tool response, an accepted claim, and verified external completion establish different things.


An agent should be able to resume from a task-specific view naming its history prefix, active definitions, applicable authority, current artifacts, unresolved conflicts, and evidence. A model-generated summary remains an attributed artifact rather than an assumed deterministic view.


External effects need dispatch, idempotency, receipts, and reconciliation. Replay reconstructs state without repeating those effects. Files retain their own storage and retention requirements while the log records content identity, versions, provenance, and acceptance.


Independent organizations may govern separate logs. Cross-log causality, partial views, receipts, resource reservations, and conflicting claims require explicit contracts. The single-log fold is a foundation within a scope, not a completed federation design.


Predictive work at a named position


The same state can support three questions:



  1. Which actions are currently enabled by authority, dependencies, and resources?

  2. Which outcomes are reachable through a bounded sequence under declared assumptions?

  3. Which outcomes and completion times are likely under a predictive model?


The first two draw on transition logic. Likelihood and duration require additional evidence and models. Forecast records should identify the starting prefix, assumptions, model version, horizon, and uncertainty. Later outcomes allow assessment of those forecasts without replacing their original basis.


Cost assessment should include execution, review, rework, and recovery per accepted outcome. Unlike units remain separate until an explicit valuation rule is applied. Human disagreement, correction, consent, and access boundaries remain part of the system's usefulness.


History remains interpretable as definitions evolve


Let K_n be active definitions, B_n active base facts, and C_n their derived closure. Activation changes K; accepted ordinary effects change B; C can be rebuilt from both. History preserves the events producing those changes.


Each record uses the definitions effective at its position. A final bootstrap review may add retrospective checks, but later rules cannot retroactively authorize earlier actions. Supporting-fact retirement or definition activation can change derived conclusions and therefore requires correct cache invalidation or recomputation.


Initial trust, authentication, canonical bytes, and integrity profiles remain explicit contracts. A hash binds bytes; it does not establish that an external claim is true.


Reading order and open work


Read the foundational synthesis for the mathematical progression, the seed proposal for the detailed candidate, and the codeable plan for the broader architecture and validation sequence.


The coverage audit identifies which recent concepts were missing from older overviews and which obligations remain unresolved. Existing implementation behavior is documented by code and spec/; the current vision guides further design work without silently changing that implementation.

Report Page