Strange LoopsGrammarLawsEvidenceDecisions

Grammar

Records in, folds and ticks out, lenses back to text. Thirteen nouns, thirteen verbs and six layers, each a little higher off the ground and a little more temporary. Everything said is a record on the ground; everything above it is worked out, and can be thrown away and worked out again.

proveda theorem in model/Laws, pinned by vectorssettleddecided in the design ledger, not built yet

A record is one sentence

The envelope is the grammar of a single observation: who saw, what sort of thing they saw, of what, when, and what it replaces. The core reads every word of it and nothing else.

The payload is the sentence's content. The core never interprets it, so it can be withheld or erased and the sentence still parses: its id, its place in the chain and every test on its envelope hold.

Point at or tap a word to find its field.

observersl:ada… says, of ofdecision:auth, a kinddecision, occurredmade in 2026-10, emittedwritten 2026-10-01 09:40Z, prevreplacing r:M…, eraseserasing r:A…'s payload, underon the grant r:G…: payload“Passkeys; device flow on TVs.”

{"env": {
  "emitted": "2026-10-01T09:40:00Z",
  "erases": ["r:A…"],
  "kind": "decision",
  "observer": "sl:ada…",
  "occurred": "2026-10",
  "of": "decision:auth",
  "prev": ["r:M…"],
  "under": "r:G…"
},
 "id": "r:E…",
 "payload": {"choice": "Passkeys; device flow on TVs."},
 "salt": "…", "sig": {…}}

As stored: one canonical line, members sorted at every depth. This is E from the walk below, with an occurred and a grant added to show every field. The id hashes the envelope and the payload's commitment, never the payload itself.

Nouns

Each noun has one purpose, its own state, and an operating principle: what happens, step by step, when you use it. The laws under each card are the theorems that hold it to its principle.

record

proved
Purpose
Say one thing an observer saw, so anyone can check it and nobody can change it.
State
An envelope, payload and signature. A fold reads the top-level members of a held payload object as fields: a list reads as a set, no field name is special, and nothing reads inside a nested object. Its id hashes envelope and payload commitment.
Principle
Its id hashes what it says, written canonically: spell a set another way and the id doesn't move. Erase its payload and the id, the signature and every record citing it still hold.

record.erasure record.sets write.checked payload.read

observer

proved
Purpose
Say who saw it.
State
A typed reference on every record, usually a lineage id sl:….
Principle
Nothing a record says is true; it is said, by its observer. Two observers disagreeing is two records, both kept.

Today the observer is the signing key, k:…, and every signature is checked at read. Lineages, key bindings and standing arrive in step 3.

record.refuse

thing

proved
Purpose
Give each subject its own state within a fixed admitted record set.
State
A typed reference, prefix:value, in a record's of: a record id or a natural key. Each record is of exactly one thing; a root, with no of and no prev, starts the thing named by its own id. about only mentions things.
Principle
Within a thing, an unreplaced revision is a head. Concurrent revisions form a fork. A record naming those heads can merge them.

thing.one thing.local admit.no-cross thing.mentions

store

proved
Purpose
Hold records, and nothing else: it owns no meaning.
State
A set of records, kept in places, each record one canonical line.
Principle
A store is a set. When forms agree, settling keeps the same records in any read order, once per id.

input.union settle.set

view

proved
Purpose
Let readers who hold different payloads still agree on what is current.
State
What one reader holds: each record with its payload, withheld, or erased. Envelopes are always held.
Principle
An envelope-preserving view keeps each thing's head ids. Whole-reader heads retain any record that heads at least one thing. Unread counts name unavailable fold inputs.

view.no-resurrection result.unread

spec

proved
Purpose
Write a standing question as data anyone can check.
State
vertex, the sources in from, the slots in fold.
Principle
An accepted spec's parsed form parses back to itself. A refused one names the first rule it breaks, and where.

spec.parse

source

proved
Purpose
Choose records by their envelopes alone.
State
A store, then optionally the kinds, a thing it mentions (about) and the thing it is of.
Principle
A source takes a record when its kind is listed, it mentions the thing in about, and it is of the thing in of, each when given. A view selects exactly the same records.

spec.select spec.from-thing

slot

proved
Purpose
Hold one answer.
State
A name, one fold, and optionally where, follow, limit and by.
Principle
With each id supplied once, the same record set gives every slot the same value. A slot over heads returns only records that remain heads of at least one thing, and a count, sum, min or max over heads folds every current record and nothing else. A slot with by splits what it selects into groups, each the slot's own answer over its records, and accounts for every selected record.

spec.set spec.after-supersession spec.follow keyed.select by.set by.accounting

fold

proved
Purpose
Turn a set of records into state.
State
One of six: count, sum, min, max, latest-by, collect. The first four accumulate. Latest-by runs over heads, or following keys over each thing's live setters. The others run over heads when they follow prev, over things read by their live setters when they follow keys, and otherwise over every selected record.
Principle
The read path hands each id over once. Commuting accumulators accept a new record incrementally. Over-head proofs use cached LatestBy state, not just a cached answer.

acc.set heads.set latest-by.converge

vertex

proved
Purpose
Ask a standing question over stores: select, fold, tick.
State
A spec run over what a reader holds.
Principle
Run it on the same set and it gives the same slots, each with how many records it couldn't read.

Naming a vertex by its spec's hash, and when it ticks, are settled, not built.

spec.set result.unread

tick

settled
Purpose
Fix a vertex's result at a moment, so others can cite it.
State
The vertex, the records it covers, listed exactly, and the result; an id over all three.
Principle
Anyone holding the covered records recomputes the same tick.

Ruled: a tick folds a set named outright, a part closed downward over prev or a slice of one, and its result lists ids without what the reader holds of them. The record's form is ruled too (2026-11-21, the tick record note): a tick is an ordinary record with no id but its record's. It is built: in the model with its laws and vectors, in Rust, and as loops tick, which writes one, and loops tick --check, which answers same, differs or cannot check. A tick written on one machine checks the same on a second. A tick can cover a cut, by time or by ids. Not built: boundaries, markers and the runner.

keyed.cut cut.prefix result.canonical tick.inputs tick.made tick.canonical

lens

proved
Purpose
Turn state into text people edit, and edits back into records.
State
A render, a parse and a diff by ids; the base the text came from.
Principle
With nonempty, distinct section ids, parsing a render returns the document. A dropped section keeps its old body: absence is never an edit.

Keyed-section render requires nonempty, distinct ids. Put-get additionally keeps exactly the base's ordered id list. Emitting accepted edits remains planned.

lens.round-trip lens.absence-not-edit

grant

settled
Purpose
Give standing ahead of time, with a scope.
State
A record; a record acting on it names it in under.
Principle
A record without standing stays visible but has no effect.

Verbs

Two verbs write: emit and tick. Every other verb reads, and reading never changes a store. A lens closes the loop the only way anything gets down to the ground: its edits become records.

Most of what feels like an action is a construction, an emit with a field filled in. Revising, merging and erasing are sentences, not new verbs.

Write

emitproved

Check and sign a record, and append it to a store. loops emit also fills in what a writer's tool may: the thing, the keys set, every live record of the thing, and the heads' about and occurred.

write.checked

ticksettled

Fix a vertex's result at a boundary, as a value anyone can recompute.

Any layer

refuseproved

Say no, with a code from a closed set and the path of what broke the rule. Never guess.

record.refuse batch.refuse-order

Read

settleproved

Settle consistent forms to one record per id. Keep a held payload unless a held eraser names its id.

settle.keeps settle.erased

admitproved

Refuse records not entitled to their prev. Standing joins it in step 3.

admit.set

takeproved

A source takes the records its store, kinds, mention and thing choose.

spec.select

testproved

A where test answers yes, no, or, on a payload the reader lacks, unknown. present means the member was written. On a list, is asks whether a member equals the value, and no bound holds.

where.total view.refines where.fields

foldproved

Turn what was taken into a slot's value.

acc.set heads.set

followproved

Walk prev within a thing to its heads: what nothing of it replaces. Following keys, a slot reads a thing by its live setters: for each key, the setters nothing above them replaces for that key.

latest-by.order thing.local keyed.live keyed.slots

groupproved

Split what a slot selects by a key read from each record: its kind, its observer, what it mentions under a prefix, or a payload field. A payload list puts the record in one group for each member. After settling, admission and the heads, never before.

by.after-admission by.accounting by.partition keyed.by

Text

renderproved

Render keyed sections with nonempty, distinct ids. Audience-aware views remain planned.

lens.escaping

parseproved

Read edited text back, refusing what it can't read.

lens.round-trip lens.refuse

applysettled

Turn the edits a parse found into records, emitted together.

lens.put-get

Constructions

start

emit with no prev

A new chain. Without of, the record is a root and starts a thing named by its own id.

revise

emit with prev: [x] and of

Replace x within the thing both are of. A record with prev states of (of-missing); naming one of another thing is refused, prev-unrelated.

fork

two records naming one prev

Nobody's verb: a state. The thing has two heads, both shown, the newer by content order winning.

merge

emit with prev: [x, y]

Naming all heads of a thing leaves one head, unless another concurrent head remains.

erase

emit with erases: [x]

Any kind may. x keeps its id, signature and place; only its opening goes.

withhold

hold a record without its payload

Not a write at all: a view. Envelopes still answer every test on them.

Refusals

A closed set: every code the vectors pin is here, and the build fails if one isn't.

Envelope checked in this order; a field left out or of the wrong JSON type gets its own code

envelope-field-unknown envelope-not-object kind-empty observer-not-typed emitted-not-rfc3339 occurred-not-span about-not-typed of-not-typed prev-not-record-id under-not-record-id erases-not-record-id sets-not-keys of-missing

Text after raw envelope shape, before every other check: a string or member name holding a lone surrogate

string-not-unicode

Writing after the envelope; a salt that is not base32hex text is not 16 bytes; number magnitudes must be at most 2^53 - 1, whole or not, and a number past binary64's range is out of range

salt-not-16-bytes member-duplicate number-out-of-range

Batch shape, then labels, then writing, then prev-unknown, then under-unknown, then of-not-root, then prev-unrelated

envelope-field-unknown envelope-not-object label-duplicate label-unknown label-cycle prev-unknown under-unknown of-not-root prev-unrelated

Tick check the subject kind and the declared treatment of a covered erasure

tick-kind tick-withheld-erased

Tick payload each fixture isolates one fault in the supplied payload

tick-hash-invalid tick-id-duplicate tick-id-invalid tick-ids-not-array tick-ids-unsorted tick-member-duplicate tick-member-missing tick-member-unknown tick-not-object tick-result-hash-mismatch tick-result-invalid tick-rules-invalid tick-spec-hash-mismatch tick-spec-noncanonical tick-spec-not-object tick-withheld-empty tick-withheld-outside

Spec the grammar's check order

member-duplicate spec-not-object unknown-key vertex-missing vertex-invalid from-missing from-invalid fold-invalid fold-type follow-missing follow-invalid limit-invalid by-invalid fold-argument where-invalid

Lens the base, before the text is read

base-id-duplicate

Not pinned yet named in the laws, no vector

prev-not-permitted sum-overflow

Layers

Six layers, each as high as it is temporary. The ground is what was said; nothing on it is ever edited. Each layer above is worked out from the one below it, so any of them can be dropped and rebuilt.

Every arrow up recomputes. The only arrow down is a record.

Point at or tap a layer to lift it.

Made byLastsNamed by
TextFor an audience: what a lens renders, and what people edit.renderuntil the next renderits base: tick, lens, audience
Tick settledA result at a moment, covering exactly the records folded.tickstored when citedid over vertex, covers, result
StateA vertex's slots, worked out from the set.folda cache: recomputed at willits vertex and the set
ViewWhat one reader holds, settled and admitted.settle, admituntil more arrivesnothing: it is the reader's
StoreA set of records in places. No order, no positions.holdingas long as a place keeps itits anchor
RecordThe ground. Appended, never edited; only a payload can go.emitfor goodr: content hash

A walk

One decision, nine steps: two people write, fork, merge and erase; a reader with less sees the same; a vertex ticks; a lens turns the result into text and an edit back into a record.

    store team

    spec

    {"vertex": "decisions",
     "from": [{"store": "team",
               "kind": ["decision"]}],
     "fold": {
       "current": {"latest-by": "of",
                   "follow": "prev"},
       "decisions": {"count": true}}}

    slots

    current
    decisions
    1. Emit Ada emits a decision of decision:auth. It is checked, signed and appended: the store holds one record, and the thing has one head. heads A · decisions 1
    2. Revise Ada revises it. B names A in prev and states the same of, so the revision stays within the thing. Nothing is edited: A is still there, superseded, and B is the head. heads B · decisions 2
    3. Fork Bo, holding only A, revises it too. Two records name A, so the thing has two heads: a fork, shown as a conflict. C wins by content order, its later emitted, never by which arrived first; B is still shown. heads C, B · decisions 3
    4. Merge Ada writes M naming both B and C. One head again. A merge is an emit whose prev holds two ids, not a verb of its own. heads M · decisions 4
    5. Erase A had a secret pasted in. Ada's next revision, E, also erases A. A keeps its id, its signature and its place in the chain; only its opening goes, for every reader that holds E. decisions still counts five: count needs no payload. heads E · decisions 5 · erased A
    6. Any order Deliver the same five in any order, from any place, and every slot is the same. The set decides; that is what lets late arrivals, re-sent segments and two-way syncs agree. heads E · decisions 5 · erased A
    7. Less in view Cy's place holds E without its payload. Cy sees the same head, because prev is on the envelope and every reader holds envelopes. E's payload is withheld, and the slot says so instead of guessing; the count, needing no payload, is still five. heads E · decisions 5 · erased A · withheld E
    8. Tick settled At a boundary the vertex ticks: its result, covering exactly the five records it folded. Anyone holding them works out the same tick, so it can be cited. The result and its hash are built; the tick record around them is proposed and not built: the state shown is the model's, the tick around it is not. heads E · decisions 5 · erased A
    9. Back to text A lens renders the head as a keyed section. Bo edits it; parsing finds one accepted edit, and applying it emits F, revising E. The edit is a record on the ground again: the loop closes. Applying edits as records is settled; the section round trip is proved. heads F · decisions 6 · erased A

    Where nouns meet verbs

    Rows are nouns, columns verbs. A filled cell says what the verb does to the noun. The grid is sparse on purpose: each verb has a narrow job, and the record is the one noun every verb touches.

    emitrefusesettleadmittaketestfoldfollowtickrenderparseapply
    recordwrittena bad envelope or payloadone per identitled to its prevby envelopeenv. or payloadinto slotsvia prev———what an edit becomes
    thing——————latest-by ofits heads, or its live setters————
    storeappended to—its places—named by a source———————
    view——made bymade by—unknown when withheldsame heads—————
    spec—first broken rule————————into its parsed form—
    slot—————its whereholds the value—————
    tick————————writtena base——
    lens—malformed text———————state as texttext read backedits as records

    Point at or tap a dot.

    Where this form comes from

    The words are the protocol's; the full glossary, retired words included, is in the design walk. The way of laying them out is borrowed.

    Daniel Jackson, The Essence of Software

    Every noun has one purpose, its own state and an operational principle: the card's three lines.

    Daniel Rosenberg, UX Magic

    The grammar comes first, as nouns and verbs, and the object–action matrix shows where they meet.

    Johnson & Henderson, Conceptual Models

    Objects and operations only: no file formats, commands or screens.

    Maggie Appleton, a grammar page

    The form: nouns, verbs and layers, each layer as high as it is temporary, and a walk taken step by step.