Roadmap
What is next, in order. This file holds no history and no open questions.
What was built and ruled, by date: CHANGELOG.md.
What waits on Kyle, each with an example: DECISIONS.md.
The long design notes: notes/.
Where we are
Steps 0, 1 and 2 are done. Kyle closed step 2 on 2026-11-20:
loopsemits, reads and folds for one person, signed, over.loops/.Step 4 (ticks) is done. Kyle closed it on 2026-11-22:
loops tick <spec>writes a tick,loops tick --check <id>checks one, and a tick written on one machine checkssameon a second. A tick can cover a cut, by time or by ids, and a write can state a tick as its base. Boundaries, markers and the runner were never part of the step and are not built.Lean (the model) and Rust agree on every vector; the JavaScript on every vector from before ticks (649 files). From ticks on, a piece is built in Lean and Rust; the JavaScript is frozen at what it has, as a trial for step 4 (ruled 2026-11-21). Kyle ruled on 2026-11-23 that it stays frozen, as the rule (W3b).
One outside user: rex-tools, a chat room over the
loopsCLI. It found a slow read path (fixed 2026-11-21) and a gap in--values(fixed the same day).The old Python
loopsis still first onPATHon Kyle's machine, and his day-to-day stores are still the old ones.
The evidence and its counts are kept where they are made: the law index, vectors, the fuzz report, the mutation report and Rust boundaries. The changelog entry of 2026-11-21 has them as they stood on that day.
Now
Adoption is the step in hand. It is done when loops is first on PATH for daily work, and the homelab repository, the first daily user, reads and writes through it.
| Order | Work | State | Waits on |
|---|---|---|---|
| 1 | The CLI's own pieces: loops ls, a scan by the start of a name, --fields, the plain view with relative times, --version, the cache of checked segments. | Built (changelog, 2026-11-22). | Nothing |
| 2 | Reads across several stores: a spec's from names stores; the read takes their union first. | Ruled 2026-11-23 (AD1): a per-user list, an optional list kept with a group of stores, and --store <name>=<dir>. Built 2026-11-23 for read and fold (changelog). | Nothing. The release binary on main waits for rex-tools to pass --store |
| 3 | The shadow import: the old stores copied into new ones, read beside the old tool. | Ruled (AD2 to AD4) and built. The six homelab stores are imported (2026-11-23, changelog): each thing reads as the old tool shows it, references included. | Nothing |
| 4 | loops first on PATH. | Done on the workbench (2026-11-23); the six homelab stores are cut over to the new tool. Kyle's Mac is left for later. | Nothing |
| 5 | The homelab repository converted. Its agent instructions and skills emit with the new tool into the live stores; its readers (the changelog generator, the session-start hook, the SRE agent's history search) read the live stores. | Built 2026-11-23 (changelog): gruel.network !9 to !11, in that order, and the SRE agent's history search in the bench. estate.py and atlas_materialize.py stay on the archive until an audit next writes the audit store. | Kyle: the three merges. The live stores have no backup: the workbench has none, and they are no longer in git |
| 6 | What a store says about its kinds, and what the CLI does with it: .loops/store.json, the shorthand for a declared key, the stop on a key slip and --root, --add-about and --drop-about, loops describe, ls --active, ls --refers-to, and a store by name on every verb (--in, --group). | Ruled 2026-11-24 (SD1 to SD4); --in settled the same day (the store descriptions note, section 3). Built 2026-11-24 (changelog), as ST1 settles it: a store by name (--in, --group), the description file and the plain views that use it, ls --active, describe, ls --refers-to, the emit shorthand with its key rule and its stops, and --add-about and --drop-about. No live store has a description file yet, so nothing in daily use has changed; writing one is the next act, and it is the store owner's. | Nothing |
| 7 | One written form for a reference at the import (AD5). | Deferred by Kyle on 2026-11-24, after he said he would rebuild stores and pick from the originals: its plumbing is built and changes nothing; the rest waits until a store is picked from by its reference fields. The homelab is not cut over a second time. | Nothing |
Beside these: the old .vertex files of real stores described kinds (reference fields, lifecycle, key formats) and held one fold, by name. The descriptive half comes forward now as a plain file (rows 6 and 7, ruled 2026-11-24). What a store enforces of it stays with standing. The opening input was the store descriptions note.
Next
The order Kyle set on 2026-11-10 is: step 4 (ticks, done), then step 3 (standing) together with step 5 (sharing). Kyle ruled on 2026-11-21 for one step between ticks and standing, adoption, with its CLI-only pieces built beside the tick work (W1).
| Order | Step | Builds | Done when |
|---|---|---|---|
| now | Adoption | The old stores imported as a shadow; ls, a scan by name prefix, relative times and a plain-text view; reads across several stores; a cache of checked segments | loops is first on PATH for daily work |
| then | 3, standing | Declarations, admission, stances, grants, presence key, retire through; then name tables and resolve-by | A strict store rejects visibly; a steward's changeset takes effect |
| with it | 5, sharing | The git layout, then segment-list sync | Two clones converge |
| later | 6 | Index and search, SQLite segments, collectors, lenses, serve | Something is slow, or a surface needs it |
Standing matters once records cross between people: sharing through git repositories across teams, and over HTTP. Everything wanted before that runs on one machine under one trust root. Retiring still follows ticks, as the Trust walk found. Left out of step 4 and wanted by nothing yet: boundaries and markers, the runner, and what verifying a deep tick tree costs. Each step extends the model's laws, computes protocol vectors, then implements Rust.
Small pieces, any time
None needs a ruling. Each is built when it is the cheapest useful thing to do.
A verb that shows a result's hash without writing a tick. Today the hash is read from a tick, which carries it.
All steps
| Step | Builds | Done when |
|---|---|---|
| 0, done | The Lean spike: Count and LatestBy, one lens combinator, 23 vectors | The first laws are proved |
| 1, done | Protocol and vectors for layer 0: canonical bytes, salt and commitment, id, signature | The model and the JS writer agree on every vector; Rust checks all fixture families and external standards |
| 2, done | Emit, read, fold for one person: JSONL segment, JSON spec, the two fold families, "follow": "prev", by, a signing key, signing by default. of names a record's one thing, an id or a natural key; about only mentions. D8a, D8b and D8c are built: sets in the envelope, every slot that follows keys, the slice laws for one keyed thing and for a spec with a keyed slot, and the writer's anchor rule. | It does the old CLI's workable job, signed |
| 3 | Standing: declarations, admission, stances, grants, presence key, retire through; then name tables and resolve-by | A strict store rejects visibly; a steward's changeset takes effect |
| 4, done | Ticks: the tick record, its check, a tick over a cut, a write against a base. Boundaries and markers were left out | A content tick recomputes to the same hash on two machines |
| 5 | Sharing: the git layout, then segment-list sync | Two clones converge |
| 6 | Index and search, SQLite segments, collectors, lenses, serve | Something is slow, or a surface needs it |
The step numbers are names, not the order. Steps 3 to 6 are proposals.
Later work, by value
Costs are S, M, or L for relative effort, not schedules. None of these is scheduled.
| Work | Value | Cost | Dependencies and blocking choices |
|---|---|---|---|
| Integrate a workbench page | Readers build scenarios and try vector presets | M: UI, validation, browser tests | Use the Rust core compiled for the browser (ruled 2026-11-21) and scenario-vector presets; version localStorage drafts; never treat them as canonical storage |
| Turn horizons into Lean scenario vectors | Tests concrete compositions and exposes missing premises | L: model and scenario work | Start with minimal compositions of existing core; mark new boundary, tick, and service premises unimplemented before proof claims |
| Prove binary64 roundtrip, then shortest | Strengthens assurance beyond sampled standard cases | L: formal number reasoning | Existing canonical formatter; neither proof blocks the settled standard choice |
| Bridge source and fold records to hashes | Connects text, record bytes, IDs, and fold outputs | L: byte-level model and evidence | Defined source and writer boundaries; do not assume SHA correctness from bounded IDs |
| Model the place | Gives the product slice laws: segments as a set | M: model and vectors | The choices in rust/PLACE.md; a second reader of the layout. The payload half of this row is built (2026-11-21) |
| Build standing, routing, key management, and sync | Supports more than one writer | L: architecture and security work | Step 3; explicit service contracts and key decisions; safe-wrapper versus raw access choice |
| Expand malformed-input fuzz and standards coverage | Finds more boundary and adapter differences | M: generators, triage, and regression pins | The settled D1–D5 boundaries; explicit contract before broadening raw extrema |
| Complete browser, accessibility, and link validation | Checks the reader experience and published references | M: browser and accessibility checks | Workbench and generated pages; validate anchors and external links separately |
"Ask without a hand-written spec" (a scan by name prefix, ls, relative times) left this table: it is part of the proposed adoption step.
Reference
Why Rust. Small writers can use JSON in any language. Phones and browser extensions need embedded readers, and Rust runs there without a server. Exhaustive enums expose missing cases, and Lean's closed types map directly to enums. This is design rationale; no bindings exist.
A reader reaches the core in three proposed ways. All three speak the same JSON shapes.
Local server: a browser, LSP or MCP client speaks JSON-RPC to
loops serve, which reads.loops/on disk. This suits a laptop and keeps keys out of the browser.WebAssembly:
loops-wasmruns inside the page or extension, over browser storage or files the reader picks. This suits an annotation extension, static hosting and an offline web app.Native bindings:
loops-ffi, through UniFFI, runs inside a Swift or Kotlin app, over the app's own storage. This suits a phone.
Standards to stand on
The record rows are settled; see R1–R6 in the changelog and record rules. Index, keys and provenance export are proposals.
| Concern | Choice |
|---|---|
emitted | Canonical UTC instant, with at most nine fractional digits |
occurred | A span: dates, instants and intervals from ISO 8601 and EDTF Level 1; the grammar is closed in protocol/record.md |
| Canonical bytes | RFC 8785 (JCS): ECMAScript-exact numbers, no NaN |
| Hash | SHA-256 |
| Id text | Typed prefix plus lowercase unpadded base32hex (r:, st:, sl:, …); algorithm changes go through the version label |
| Signatures | RFC 8032 (Ed25519) over loops/record/v1: + id |
| Specs | JSON (RFC 8259), defined by protocol/spec.md; declaration and config shapes are proposals |
| Index, search | SQLite with FTS5 through rusqlite, bundled; the CLI only, never the core |
| Keys | The OS keychain behind a Signer trait, with a file fallback |
| Provenance export | W3C PROV or PREMIS mapping, undecided |
The premises and domains that the laws keep are in retained boundaries.