Strange LoopsGrammarLawsEvidenceDecisions

Rendered from notes/2026-11-23-store-descriptions.md in the repository.

On this page

Store descriptions: what the first two conversions asked for

Written 2026-11-23, at Kyle's request, as the opening input for the question being prepared in DECISIONS.md: what a store says about its kinds, without enforcing it, and what of the old .vertex and .loop files comes forward. Nothing here is ruled or put to Kyle. (On 2026-11-24 the questions of sections 2 and 5 were put, as SD1 to SD3, and ruled the same day with SD4 and AD5. The entries as put are in the kinds and references note.)

It draws on two pieces of work done that day.

1. What moved from the store to the command

The old tool kept much of what it knew in the store's .vertex file: the store's name, which field keys each kind, which fields are references, who writes there. The new tool keeps none of it, by design: a record's of names its thing, and a reader needs no vertex. The cost moved to the writer. One write from the repository's instructions, before and after:

sl emit <store> observation topic=<topic> message="..." rel=relationship/<agent>          (80 characters)

loops -C ~/.local/share/loops/<group>/<store> emit observation --of observation:<topic> \
  topic=<topic> message="..." --about observer:<me> --about relationship:<agent>         (166 characters)

The 86 more characters say four things the vertex used to say.

WhatThe old toolThe new toolSection
Which field keys the kindThe vertex's fold--of observation:<topic>, and the key again as topic=<topic>2
Where the store isA nameA path, in every instruction3
Who writesThe store's observerAn observer:<me> mention, by convention4
What it refers to, and as whatrel=, a field that names its roleA mention, which names no role5

2. What a kind is: its key, its references, what to show, its lifecycle

What happened. Every write states its key twice, in --of and as a field, and nothing checks that the two agree: --of deploy:$slug name=$slug. A slip makes a second thing, silently. The repository's CLAUDE.md now carries a table, copied by hand from the old vertices, of each kind's key field: topic for decisions, observations and feedback, trigger for intentions, agent for relationships, name for most others, none for seals and change logs. That table is a description of the store's kinds, written as prose.

It is not the only one. Each reader keeps its own:

Proposed (Kyle and Neon; the conversion agrees). A store describes each kind: its key field, its reference fields and the kinds they name, the fields to show first, and a lifecycle field with its values. The description only describes. Before standing, nothing is refused for breaking it. The writer uses it as shorthand: loops emit deploy name=<slug> fills in --of deploy:<slug>, and the reference fields add mentions (section 5). of is still written in full in the envelope, so a reader of the records never needs the description. loops ls and a viewer take their defaults from it.

Open for the discussion.

3. A store found by name, on every verb

What happened. Since AD1, read and fold find the stores a spec names, through --store, a group's stores.json or the user's list. Every other verb takes only -C <dir>: emit, ls, of, get, tick, check, export. So every instruction, skill and script carries a full path. The changelog generator grew --stores DIR, and the hook reads GRUEL_LOOPS_STORES, so that tests can point each one elsewhere.

Proposed (Kyle and Neon). Every verb takes a store name and resolves it through the same lists. A name bound to nothing is refused with the existing store-unknown, so no new refusal code is needed, and no record changes.

Open. How it is spelled. If -C takes a name too, a name and a relative directory of the same spelling are ambiguous. A flag of its own avoids that.

Settled on 2026-11-24, to be built with SD1 to SD4 (Kyle asked for it in the same pass; the coordinator, Neon, margins-claude and Astra agreed the form in the room). Under W7 it needs no ruling: no record changes and no refusal code is new.

4. Who wrote it, and the --about hazard

What happened. Every agent on the workbench signs with the one workbench key, so observer in the envelope is the same on every record. The conversion names the author with a mention, --about observer:<name>, as the import did for the old observers. Two things then go wrong.

The prototype met the first (Kyle and Neon). A collector's refresh of an item's tags would have wiped links a person had added by hand. The fix was to split the kinds so the two never write the same thing: an item the collector owns, and an annotation a person writes.

Proposed (Kyle and Neon), in two parts.

5. Roles on references

What happened. The old tool wrote a reference in two ways: a field with a role and its _ref twin (owner=person/potter, plus owner_ref holding the old fact's id), and a list with no roles in ref. AD4 made both into mentions and took the _ref fields and ref out of the imported payloads. The role field (owner: person/potter) was kept, so role and target are still there as text, in the old kind/key form. The mention carries the target without the role.

estate.py and atlas_materialize.py are the two readers that care about roles. They find edges by the _ref suffix, read against their schema file, and the imported records no longer have that suffix. That is the real reason they stay on the archive. Moving them means finding edges by the role fields the schema names, and turning kind/key into kind:key. A new path to the store is not enough.

Proposed (Kyle and Neon). about stays a flat set. E1 (2026-11-21) already says that one target under a role is a text field: runs_on=asset:vm/media. The kind's description (section 2) lists its reference fields, and the writer adds each one's value to about. A fold of what mentions asset:vm/media then finds the record, and a reader that wants the role reads the field. A relation with facts of its own stays an edge thing, as E1 rules.

Open. When a revision changes runs_on from one asset to another, the shorthand should drop the old target from about and add the new one, or the mentions only ever grow. That is the same work as --drop-about in section 4.

6. One time to sort by

What happened. The import gave every record the import's emitted, with the old time in occurred. New writes have only emitted. The changelog generator, the hook and the history search each sort by "occurred, else emitted": three copies of the rule, in two languages.

Proposed (Kyle and Neon). Reads show a computed when, occurred or else emitted, in --values, ls --fields and of. It is never stored in a record.

Open.

7. Writing in batches, and what replaced .loop

What happened. The prototype has no .loop file. A script reads the outside source and pipes JSONL into loops emit -, and that worked cleanly, except for revisions. Plain emit - writes each line as given, so a revision there must state its own prev. emit - --fill works out prev and the copied mentions, but its cost grows with the square of the batch. The prototype splits new items (emit -) from revisions (emit - --fill, in chunks) (Kyle and Neon).

Measured on main's binary in a fresh store: N new things with plain emit -, then one revision of each with emit - --fill.

Nemit -emit - --fill
2500.01 s0.11 s
5000.02 s0.41 s
1,0000.05 s1.57 s
2,0000.07 s6.67 s

Each doubling of N takes about four times as long. The cause is in fill::changeset_with_base (rust/place/src/fill.rs). For each row it builds things::realm over everything the store holds and every row prepared so far, and then uses only that row's thing. With a base, fill_base does the same for each row, over the selection.

Proposed (Kyle and Neon). Keep each thing's live state through the batch, updated as each row is prepared. Then script | loops emit - --fill is a whole collector's sink at any size.

Conditions.

The change is in place code and the CLI only.

8. What the old setup hid

The conversion turned up faults the old setup had covered. None of them is about descriptions. They are here because a shared or checked store would have caught each one.

9. What works well

10. What each proposal touches

Under W7 (2026-11-21), a choice comes to Kyle only if it changes a record's bytes or id, a result's bytes or hash, a refusal code, or what a spec answers.

ProposalSectionWhat it changesComes to Kyle under W7
Kind descriptions: key, references, what to show, lifecycle2Store metadata and the CLINot by W7: no record changes. Its form is worth his word, since standing's declarations may grow from it
Store names on every verb3The CLINo: it reuses store-unknown
A key for each agent4Configuration (LOOPS_KEY_FILE)No: it changes who signs, not how
--add-about and --drop-about4The CLINo
Reference fields added to about5The CLI, through the descriptionNo
A computed when6What reads showOnly if a fold can use it
--fill that keeps state through a batch7rust/placeNo: the bytes stay the same
Named authors, lineages and grants4Step 3Yes, with standing
Sharing, and a backup of the live stores8Step 5, and the workbenchThe backup is his to choose now

None of the first seven changes a record's bytes, an id, a law or a vector. Only named authors (step 3) and sharing (step 5) reach later steps.