dreamteamer 0.32.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/collections/agents.collection.yaml +41 -32
- package/collections/collections.collection.yaml +68 -230
- package/collections/command-bindings.collection.yaml +37 -43
- package/collections/commands.collection.yaml +50 -35
- package/collections/mixins.collection.yaml +49 -0
- package/collections/modules.collection.yaml +76 -122
- package/collections/repos.collection.yaml +53 -56
- package/collections/skills.collection.yaml +32 -21
- package/collections/ui-views.collection.yaml +57 -46
- package/mixins/docs.mixin.yaml +21 -0
- package/mixins/entity.mixin.yaml +22 -0
- package/package.json +5 -3
- package/scripts/migrate-descriptors-v2.mjs +795 -0
- package/skills/using-dreamteamer/SKILL.md +27 -24
- package/skills/using-dreamteamer/references/agents.md +1 -1
- package/skills/using-dreamteamer/references/before-you-build.md +1 -5
- package/skills/using-dreamteamer/references/collections.md +450 -348
- package/skills/using-dreamteamer/references/commands.md +49 -35
- package/skills/using-dreamteamer/references/data-modeling.md +342 -319
- package/skills/using-dreamteamer/references/extensions.md +8 -5
- package/skills/using-dreamteamer/references/getting-started.md +6 -4
- package/skills/using-dreamteamer/references/records.md +43 -34
- package/skills/using-dreamteamer/references/skills.md +4 -3
- package/skills/using-dreamteamer/references/ui-components.md +30 -32
- package/skills/using-dreamteamer/references/ui-views.md +122 -124
- package/src/api.d.ts +22 -2
- package/src/api.js +16 -1
- package/src/check.js +55 -40
- package/src/checkout.js +14 -13
- package/src/cli.js +118 -71
- package/src/collections-cli.js +136 -144
- package/src/commit.js +9 -8
- package/src/compile-collections.js +346 -0
- package/src/compile.js +232 -1068
- package/src/descriptor-v2.js +165 -0
- package/src/descriptor.js +90 -0
- package/src/doctor.js +57 -0
- package/src/events.js +11 -10
- package/src/extensions.js +48 -10
- package/src/field-values.js +7 -6
- package/src/fields.js +254 -0
- package/src/filter.js +45 -1
- package/src/fractional-index.js +2 -2
- package/src/harnesses.js +80 -52
- package/src/history.js +3 -3
- package/src/init.js +74 -46
- package/src/namespace.js +23 -9
- package/src/placement.js +26 -16
- package/src/presentation.js +153 -299
- package/src/record-commands.js +12 -12
- package/src/records-api.d.ts +106 -7
- package/src/records-api.js +2 -1
- package/src/records.js +20 -14
- package/src/ref.js +3 -39
- package/src/relations.js +23 -24
- package/src/runtime.js +12 -35
- package/src/schema-ops.js +1181 -1275
- package/src/store.js +212 -82
- package/src/template.js +100 -24
- package/src/temporal.js +11 -3
- package/src/views.js +176 -0
- package/src/workspace.js +14 -0
- package/src/yaml.js +66 -5
- package/collection-templates/docs.collection-template.yaml +0 -17
- package/collection-templates/entity.collection-template.yaml +0 -20
- package/collections/collection-templates.collection.yaml +0 -20
|
@@ -4,7 +4,8 @@ The user states a requirement — "track the clinic's visits", "stop losing lab
|
|
|
4
4
|
a data architect. This reference is what stands between that sentence and a model: it turns the
|
|
5
5
|
requirement into collections, fields and relations that are searchable, filterable, legible in any
|
|
6
6
|
surface, cheap to keep, and still right a year in. Method and judgment live here; mechanics (the
|
|
7
|
-
system and field verbs, namespaces,
|
|
7
|
+
descriptor's keys, the system and field verbs, namespaces, mixins, registering an existing folder)
|
|
8
|
+
live in `collections.md`.
|
|
8
9
|
|
|
9
10
|
It is long on purpose. It is the reference for the single highest-leverage act in a dreamteamer
|
|
10
11
|
workspace — a model outlives every skill and command written against it — and the reader is usually
|
|
@@ -93,17 +94,17 @@ The useful half of object orientation maps cleanly onto a workspace; the inherit
|
|
|
93
94
|
| OO idea | its shape here | its non-shape |
|
|
94
95
|
|---|---|---|
|
|
95
96
|
| an object owns its state | a record owns its fields; the collection is the class | fields about X scattered on Y "for convenience" |
|
|
96
|
-
| methods | **command-bindings**: verbs bound to a collection, gated on field state (`
|
|
97
|
-
| interfaces / mixins | **`
|
|
97
|
+
| methods | **command-bindings**: verbs bound to a collection, gated on field state (`available_when`/`done_when`) — `dt next <ref>` lists what applies to a record right now | a workflow engine; procedures copied into descriptions |
|
|
98
|
+
| interfaces / mixins | **`mixins`** — a shared field set merged into consumers at compile | copy-pasting the same four fields into six descriptors |
|
|
98
99
|
| encapsulation | **module ownership** — a concept's fields live with the module that owns the concept | the module that happened to need the field first |
|
|
99
|
-
| polymorphism | a **union reference** (`
|
|
100
|
-
| subclassing | **don't.** Two collections + a shared
|
|
100
|
+
| polymorphism | a **union reference** (`type: [meetings, visits]`) or the open-world `type: reference` for evidence/source fields | a `kind` field plus fields that only apply to some rows |
|
|
101
|
+
| subclassing | **don't.** Two collections + a shared mixin, or one collection + an enum — decided by the triage test below | `overlay: true` as taxonomy — it exists for adding fields to another module's collection, not for "is-a" |
|
|
101
102
|
|
|
102
103
|
**The triage test, for "is this one collection with a `kind`, or two collections":** do the members
|
|
103
104
|
get triaged on the same questions, by the same person, in the same pass? A lead being sold and a
|
|
104
105
|
client being delivered are the same record at two funnel stages — one shape, two collections,
|
|
105
106
|
because the *questions* differ ("which should I chase" vs "which is at risk") even though the
|
|
106
|
-
fields barely do; a shared
|
|
107
|
+
fields barely do; a shared mixin carries the common fields. Conversely, prescriptions for
|
|
107
108
|
tablets and for physiotherapy are one collection with a `kind`, because every one gets the same
|
|
108
109
|
review. A `kind` enum whose values route to different reviews, different states, or different
|
|
109
110
|
required fields is two collections wearing one name — split it.
|
|
@@ -111,11 +112,12 @@ required fields is two collections wearing one name — split it.
|
|
|
111
112
|
### 5. The surface is downstream of the descriptor
|
|
112
113
|
|
|
113
114
|
The engine names no component, no route, no pixel. It projects each descriptor into a presentation
|
|
114
|
-
contract — types,
|
|
115
|
+
contract — types, roles, choices — and any surface that honours the contract renders any model
|
|
115
116
|
this method produces (the full table is Part VII §29). The consequence for modeling: **you design
|
|
116
117
|
the UI by choosing field shapes, not by asking for widgets.** "I want a dropdown" is not a request
|
|
117
118
|
to a UI team; it is `enum:` — or better, nothing, because a low-cardinality free string already
|
|
118
|
-
becomes a dropdown through `dt values`. "I want chips" is
|
|
119
|
+
becomes a dropdown through `dt values`. "I want chips" is `many: true`. "I want a page" is
|
|
120
|
+
`body: true`.
|
|
119
121
|
When the rendering is wrong, the fix is almost always in the descriptor, and a fix in the
|
|
120
122
|
descriptor fixes every surface at once.
|
|
121
123
|
|
|
@@ -136,11 +138,11 @@ and the answers genuinely diverge. Most requirements answer eight of the twelve
|
|
|
136
138
|
2. **The question.** Name the question each collection exists to answer and write it into
|
|
137
139
|
`description`. The **grain** — what one record IS — is the largest unit that answers the
|
|
138
140
|
question without unpacking (Part IV §13).
|
|
139
|
-
3. **One record.** What is its identity? `
|
|
141
|
+
3. **One record.** What is its identity? `ids.from` builds it from creation-time values the
|
|
140
142
|
record OWNS — the domain's own date, never `created` (a back-dated import would file a June
|
|
141
|
-
visit under
|
|
142
|
-
admit `/`. And which field says two records are the *same* thing — that is what `
|
|
143
|
-
for, on the
|
|
143
|
+
visit under October); a `YYYY/MM/` prefix when growth is unbounded, and `ids.pattern` must then
|
|
144
|
+
admit `/`. And which field says two records are the *same* thing — that is what `unique: true`
|
|
145
|
+
is for, on the field that must not be claimed twice.
|
|
144
146
|
4. **Lifecycle.** What states, what moves a record between them, and what "done" is. `status` is
|
|
145
147
|
the field a board groups by and a command-binding gates on. End of life is a **state**
|
|
146
148
|
(`archived`, `dropped`), not `rm` — `rm` refuses while anything points at the record, and a
|
|
@@ -150,15 +152,15 @@ and the answers genuinely diverge. Most requirements answer eight of the twelve
|
|
|
150
152
|
history, never a second record** — one dossier per patient, superseded text visible in
|
|
151
153
|
`git log`, not `dossier-v2`.
|
|
152
154
|
6. **Who points at whom, from which side.** The foreign key lives on the many side; scalar or
|
|
153
|
-
|
|
154
|
-
field. Declare the
|
|
155
|
+
`many` follows cardinality; the far side is one generated mirror away, never a hand-maintained
|
|
156
|
+
field. Declare the mirror when "which X have no Y" will be asked; skip it when only "this Y's
|
|
155
157
|
X" will (Part VI §25).
|
|
156
158
|
7. **The forcing field.** One required field whose absence makes the record write-only: `evidence`
|
|
157
159
|
on a defect, `done_when` on a goal, `dose` on a prescription. It is the difference between a
|
|
158
160
|
record and a wish. A collection with no conceivable forcing field is a list — model it as one
|
|
159
|
-
(a `tags`
|
|
161
|
+
(a `tags` list, a body bullet) and say so in the proposal.
|
|
160
162
|
8. **Units and time.** A number without its unit is a latent bug: `amount` + `currency`, `value` +
|
|
161
|
-
`unit`, or the unit in the name (`duration_min`). An instant is `
|
|
163
|
+
`unit`, or the unit in the name (`duration_min`). An instant is `datetime` with its offset; a
|
|
162
164
|
day is `date`; never store an instant in a day field because "it sorts fine today". One
|
|
163
165
|
operator over git: **ownership and permissions are not modelled** — invent no `owner`,
|
|
164
166
|
`created_by`, `assignee` unless multiple humans genuinely write the workspace, and even then
|
|
@@ -166,11 +168,11 @@ and the answers genuinely diverge. Most requirements answer eight of the twelve
|
|
|
166
168
|
9. **Volume and write rate.** Roughly how many records in a year, and what writes them — a human
|
|
167
169
|
occasionally, a command per event, a sync every fifteen minutes? Ten records need no id prefix
|
|
168
170
|
and no namespace; ten thousand machine-written records need a time-sharded id, a lean
|
|
169
|
-
frontmatter, and a hard look at every
|
|
171
|
+
frontmatter, and a hard look at every mirror that would concentrate writes into one hot file
|
|
170
172
|
(Part VIII §36).
|
|
171
173
|
10. **The list.** What columns would the user scan — which four to six fields identify, order, and
|
|
172
|
-
triage a record at a glance? That is `
|
|
173
|
-
wrong (Part VII §30).
|
|
174
|
+
triage a record at a glance? That is `display.list.columns`, and if you cannot fill it, the
|
|
175
|
+
fields are wrong (Part VII §30).
|
|
174
176
|
11. **The module.** Which module owns the *concept* (Part III §8)? In the first hour the answer is
|
|
175
177
|
"the workspace module" and that is correct; the question still gets asked, because the answer
|
|
176
178
|
decides where a later extraction cuts.
|
|
@@ -192,7 +194,7 @@ The interview's output is **not prose**. Show, before anything is written:
|
|
|
192
194
|
3. The **system verbs** (`dt add collections`, `dt add-field`, …) (or the hand-written descriptor when the collection is
|
|
193
195
|
module-owned or carries comments worth keeping).
|
|
194
196
|
4. The **"deliberately not modelled"** list, each with its one-line reason.
|
|
195
|
-
5. For each relation: which side owns, whether
|
|
197
|
+
5. For each relation: which side owns, whether a mirror is declared, and the answer to "which X
|
|
196
198
|
have no Y" that justifies it.
|
|
197
199
|
|
|
198
200
|
Then stop. The operator decides what enters their workspace (`before-you-build.md`). After a yes:
|
|
@@ -213,23 +215,22 @@ alone in a bare workspace.** Everything else follows from that.
|
|
|
213
215
|
collections; a field encoding one workspace's enrichment convention belongs in that workspace's
|
|
214
216
|
own module as an overlay. Asking "who owns the concept" per field is what keeps a later
|
|
215
217
|
extraction a `git mv` instead of a surgery.
|
|
216
|
-
- **Self-containment is structural, not aspirational.**
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
- **Self-containment is structural, not aspirational.** Never list a mixin another module ships —
|
|
219
|
+
compile accepts it, and the module stops being copyable. A shared field set is duplicated per
|
|
220
|
+
module under a scoped id
|
|
221
|
+
(`clinic-provenance`, `billing-provenance`) precisely so each module stays copyable. This is the
|
|
222
|
+
most expensive boundary mistake known: a module whose descriptors listed a field set living in
|
|
220
223
|
the *consuming* workspace could not compile anywhere else, and nothing said so until someone
|
|
221
224
|
tried.
|
|
222
|
-
- **A cross-module relation is a declared dependency.**
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
- ⚠ **The workspace module
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
module
|
|
231
|
-
other overlay does. Measured 2026-09-01 — and the reason the two read as one exemption is that
|
|
232
|
-
they are both "the workspace module is special", which it is, in exactly one of the two places.
|
|
225
|
+
- **A cross-module relation is a declared dependency.** A mirror on another module's collection
|
|
226
|
+
lives in an `overlay: true` descriptor of it, and compile refuses the overlay unless its module
|
|
227
|
+
depends on the owner or names the collection in `peer_collections` — a module may not grow
|
|
228
|
+
fields on a stranger silently.
|
|
229
|
+
- ⚠ **The workspace module is special in two places, and only two.** Its fields may reference any
|
|
230
|
+
installed collection without declaring the module, and `type: reference` (any collection) draws
|
|
231
|
+
no warning there — elsewhere it is an unverifiable cross-module surface. It is **NOT** exempt from
|
|
232
|
+
the overlay gate: an overlay in the workspace module on another module's collection needs that
|
|
233
|
+
module in `dreamteamer.dependencies`, exactly as any other overlay does.
|
|
233
234
|
- **Start in the workspace module; extract on the second consumer, not the first hunch.** The
|
|
234
235
|
system verbs default to the workspace module (`--module <m>` names another), and that is the
|
|
235
236
|
right first home for everything. A module is
|
|
@@ -259,53 +260,51 @@ sane:
|
|
|
259
260
|
owned by a "meeting" namespace).
|
|
260
261
|
- Declare the namespace before the first collection compiles — an id is also a slash path, so an
|
|
261
262
|
undeclared prefix is ambiguous and compile refuses it rather than guessing.
|
|
262
|
-
- Namespacing an existing collection later is `dt rename collections/<old>
|
|
263
|
-
|
|
263
|
+
- Namespacing an existing collection later is `dt rename collections/<old> <ns>/<old>` — one
|
|
264
|
+
commit, every inbound reference rewritten, safe at any point. Cheapest early, though: the
|
|
264
265
|
rewrite is O(records × files), measured at ~3 minutes for a 2,291-record collection — tolerable
|
|
265
266
|
for a one-time migration, not free. So do not agonise up front; just decide sooner rather than
|
|
266
267
|
at ten thousand records.
|
|
267
268
|
|
|
268
|
-
### 10.
|
|
269
|
+
### 10. Mixins vs overlays vs copy
|
|
269
270
|
|
|
270
271
|
Three ways to share shape, in strictly descending order of preference:
|
|
271
272
|
|
|
272
273
|
| mechanism | what it is | use when | never for |
|
|
273
274
|
|---|---|---|---|
|
|
274
|
-
| `
|
|
275
|
-
| `
|
|
276
|
-
| copy | duplicating fields into a second descriptor | crossing a module boundary (each side owns its copy, scoped name), or when two shapes are about to diverge | "saving time" inside one module — that is
|
|
275
|
+
| `mixins` | a live shared field set, merged at every compile; a field the descriptor also declares is an error | the same field group on several collections in ONE module — provenance, funnel fields, address blocks | reaching across modules |
|
|
276
|
+
| `overlay: true` | a descriptor adding fields to another module's collection | a workspace or module extending a collection it installed | taxonomy ("a lead is-a engagement"); removing inherited fields (impossible by design) |
|
|
277
|
+
| copy | duplicating fields into a second descriptor | crossing a module boundary (each side owns its copy, scoped name), or when two shapes are about to diverge | "saving time" inside one module — that is a mixin |
|
|
277
278
|
|
|
278
279
|
The instinct to resist is building a type hierarchy. When two collections share most fields, the
|
|
279
|
-
model wants a shared **
|
|
280
|
+
model wants a shared **mixin** plus two thin descriptors — or a reference between them — never a
|
|
280
281
|
base collection that exists only to be extended. An abstraction with one concrete consumer is a
|
|
281
282
|
roadmap, not a model; wait for the second consumer.
|
|
282
283
|
|
|
283
|
-
### 11. Where records live: `data/`,
|
|
284
|
+
### 11. Where records live: `data/`, formats, shapes
|
|
284
285
|
|
|
285
286
|
- **`data/` is where records go.** `storage.path` is free-form, so a collection can be pointed
|
|
286
287
|
anywhere in the workspace, but the answer is `data/<collection>` unless you have a reason you can
|
|
287
288
|
state.
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
rows nobody opens individually) · a real collection, if and only if you will genuinely list,
|
|
294
|
-
filter and read the things one at a time.
|
|
295
|
-
- **`codec: md` whenever a human reads a body; `yaml` when nobody does.** A record that is all
|
|
289
|
+
- **Do not model machinery as records at all.** In descending order: a field on a record that
|
|
290
|
+
already exists · a line appended to a gitignored `.cache/*` file (right for thousands of
|
|
291
|
+
append-only rows nobody opens individually) · a real collection, if and only if you will
|
|
292
|
+
genuinely list, filter and read the things one at a time.
|
|
293
|
+
- **`format: md` whenever a human reads a body; `yaml` when nobody does.** A record that is all
|
|
296
294
|
fields and no prose (a lab value, a transaction, a cursor) is `yaml` — the body would only ever
|
|
297
295
|
be empty. `json` exists for tool-written records.
|
|
298
|
-
- **`
|
|
299
|
-
Fields are derived (`ext`, `bytes`), writes go through `add --from <path>`, and
|
|
300
|
-
`max_bytes` (default 200 KB). A big binary is not a record: it lives outside the vault under a
|
|
296
|
+
- **`format: binary` makes the record an opaque file** — an icon, a logo, an image the UI draws.
|
|
297
|
+
Fields are derived (`ext`, `bytes`), writes go through `dt add <c> <id> --from <path>`, and
|
|
298
|
+
`check` guards `storage.max_bytes` (default 200 KB) and `storage.accept`. A big binary is not a record: it lives outside the vault under a
|
|
301
299
|
declared var, with an ordinary record carrying the `${env:...}` template that points at it.
|
|
302
300
|
- **`shape: folder` when a record is intrinsically several files** (a skill with references beside
|
|
303
301
|
it), or when OTHER collections' records should live inside it — see the next bullet. Otherwise
|
|
304
302
|
prefer one file until the record itself demands companions.
|
|
305
303
|
- **`storage.under` when people browse a parent as a unit** — a company folder holding that
|
|
306
|
-
company's meetings, a
|
|
307
|
-
(`under: {
|
|
308
|
-
|
|
304
|
+
company's meetings, a patient folder holding their lab values. It is declared on the CHILD
|
|
305
|
+
(`under: { parent: company, subfolder: meetings }`), the collection stays ONE collection with the
|
|
306
|
+
same references, and the owner field is what moves a file (`collections.md`). `under.id: nested`
|
|
307
|
+
is for a child whose id already leads with its parent's. Choose ONE
|
|
309
308
|
physical owner and leave every other relationship a plain reference; keep conventional storage
|
|
310
309
|
when no single owner is sensible, when the owner is usually unknown, or when nobody would open
|
|
311
310
|
the folder. It organises files; it grants nothing.
|
|
@@ -363,18 +362,20 @@ what is true at creation and stays true:
|
|
|
363
362
|
- **Creation-time values the record owns.** The domain's own date plus a slug of the name is the
|
|
364
363
|
workhorse: `{{ date | date }}--{{ name | slug }}`. Never write-time (`created`) for domain
|
|
365
364
|
events, never a mutable field (a title that gets edited), never an external id that might be
|
|
366
|
-
re-keyed.
|
|
365
|
+
re-keyed. `date` renders a value in its own offset (`…T23:30:00+03:00` is 23:30 on that day on
|
|
366
|
+
every machine), so the id does not change with the machine's zone.
|
|
367
367
|
- **A time prefix for unbounded growth**: `{{ date | date:YYYY/MM }}/…` shards the folder by
|
|
368
368
|
month, keeps `ls` fast and scannable, and files the record where a human would look. The
|
|
369
|
-
`
|
|
369
|
+
`ids.pattern` must then admit `/`.
|
|
370
370
|
- **A subject prefix when the collection partitions by an anchor**: `<patient>/<date>--<analyte>`
|
|
371
|
-
puts everything about one patient
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
puts everything about one patient together — right when the dominant access is "all of X for
|
|
372
|
+
this person", wrong when it is time-global. When the anchor is also the folder the records live
|
|
373
|
+
in, that is `storage.under` with `id: nested`.
|
|
374
|
+
- **`ids.pattern` must accept everything `ids.from` can produce.** Non-latin names slug to a
|
|
374
375
|
deterministic short hash, so `[a-z0-9-]` holds; test with a real awkward title before shipping.
|
|
375
|
-
- **Sameness is a
|
|
376
|
-
`
|
|
377
|
-
|
|
376
|
+
- **Sameness is a field property, not an id property.** "One summary per meeting" is
|
|
377
|
+
`unique: true` on the summary's `meeting` reference — refused at write and reported by `check`,
|
|
378
|
+
naming both records — not a convention about ids that nothing enforces.
|
|
378
379
|
|
|
379
380
|
### 15. Lifecycle — states as data
|
|
380
381
|
|
|
@@ -389,10 +390,10 @@ needs attention" is a filter over it. Design it deliberately:
|
|
|
389
390
|
unreadable. Two enums, each honest, beat one that lies.
|
|
390
391
|
- **Terminal states, not deletion.** `archived`/`dropped` keep the record filterable and its
|
|
391
392
|
inbound references valid. `rm` is for mistakes, not lifecycle — and it refuses while anything
|
|
392
|
-
points at the record (`
|
|
393
|
+
points at the record (`on_delete: restrict` is the default for exactly this reason).
|
|
393
394
|
- **The transition is a verb.** When moving between states has steps, that is a command bound to
|
|
394
|
-
the collection with `
|
|
395
|
-
prose in the description hoping to be followed.
|
|
395
|
+
the collection with `available_when`/`done_when` gates on the fields — not a fatter enum, and
|
|
396
|
+
not prose in the description hoping to be followed.
|
|
396
397
|
- **Never enum against data that already violates it.** Declaring `enum:` over a field whose
|
|
397
398
|
records hold other values makes `check` fail on every one; clean first, then narrow (Part IX).
|
|
398
399
|
|
|
@@ -405,7 +406,7 @@ Three recurring shapes, each with a rule:
|
|
|
405
406
|
the patient record — destroys both: the entity's diff becomes noise and the events lose their
|
|
406
407
|
grain. The stable record carries only what is *currently true*; everything dated hangs off it.
|
|
407
408
|
- **The singleton-per-subject document.** One living dossier per patient, one page per engagement:
|
|
408
|
-
enforce it with `
|
|
409
|
+
enforce it with `unique: true` on the subject reference, edit in place, and let git hold every
|
|
409
410
|
superseded version. The alternative — dated versions as records — is right only when versions
|
|
410
411
|
are *compared* as data ("what changed between Q1 and Q2 reports"), which is rare.
|
|
411
412
|
- **Documents vs entities.** A brief, a report, an analysis is a *document*: its value is the
|
|
@@ -452,15 +453,14 @@ reach for it* · *what does this value mean*. So:
|
|
|
452
453
|
- A **field's** `description` says what the value MEANS, names the source when the value is copied
|
|
453
454
|
from elsewhere, and states the convention an agent must follow ("empty means unmatched — the
|
|
454
455
|
matching command's queue").
|
|
455
|
-
- A field whose valid value has a non-obvious SHAPE carries an `examples:`
|
|
456
|
-
|
|
457
|
-
into the collection's `write:` line in the orientation block beside the required fields and closed
|
|
456
|
+
- A field whose valid value has a non-obvious SHAPE carries an `examples:` list — passed to the
|
|
457
|
+
validator, and its first value rendered into the collection's `write:` line in the orientation block beside the required fields and closed
|
|
458
458
|
enums — so the canonical value lives in the contract, not in whichever record a writer happens to
|
|
459
459
|
open, and a session sees it before its first write. Two or three, real-looking
|
|
460
460
|
and synthetic: a `${env:…}` path template, a `key:value` tag, an RRULE, a composite id.
|
|
461
461
|
- Descriptions are the cheapest UX in the system: the same line is the tooltip in every surface,
|
|
462
462
|
the agent's guidance, and the future maintainer's note. Budget a real sentence per field.
|
|
463
|
-
- Compile WARNS on a module, collection or
|
|
463
|
+
- Compile WARNS on a module, collection or mixin with no description — each renders
|
|
464
464
|
as a bare name in the block otherwise — and on a `use_when` that restates its description (content
|
|
465
465
|
words shared ≥ 0.5): name the situation, do not delete the clause. It does not warn on a missing
|
|
466
466
|
`use_when`, because it cannot tell a considered omission from a forgotten one; that judgement is
|
|
@@ -476,11 +476,11 @@ For every value, walk down until a rung holds. The measurements are two commands
|
|
|
476
476
|
|
|
477
477
|
| the value… | model as | the measure |
|
|
478
478
|
|---|---|---|
|
|
479
|
-
| has fields of its own, a lifecycle, or is opened alone | a **collection**, pointed at with `
|
|
480
|
-
| is one of a small set the domain itself defines and closes | **`enum`** | `dt values <c> <f>` shows ≤ ~10 distinct values AND their counts sum to ≥ 80 % of the records — `values` reports distinct counts (never fill; compute fill against the record count), and echoes a declared enum verbatim without counts |
|
|
479
|
+
| has fields of its own, a lifecycle, or is opened alone | a **collection**, pointed at with `type: <collection>` | — |
|
|
480
|
+
| is one of a small set the domain itself defines and closes | **`enum`** (a list, or a map carrying labels and colours) | `dt values <c> <f>` shows ≤ ~10 distinct values AND their counts sum to ≥ 80 % of the records — `values` reports distinct counts (never fill; compute fill against the record count), and echoes a declared enum verbatim without counts |
|
|
481
481
|
| is a vocabulary the workspace grows as it goes | **free string** — `dt values` derives the dropdown from the data, so a moving set needs no schema change and `check` never fails on a new value | the set is still moving, or predates any enum |
|
|
482
|
-
| is a loose label with no attributes | **`tags`** —
|
|
483
|
-
| repeats inside one record and is never referenced from outside | **nested** `
|
|
482
|
+
| is a loose label with no attributes | **`tags`** — `type: string, many: true`. The moment labels read like `key:value`, that is a field wanting to exist: promote it | — |
|
|
483
|
+
| repeats inside one record and is never referenced from outside | **nested** — `type: object, many: true` with `fields`, and `item_title` so rows get a label; `type: map` for key → value | the costs are real: not filterable across records (a non-operator filter key means a reference hop, so a nested key narrows to nothing), skipped by `dt values`, unusable as a list column — the form and the body are its only readers |
|
|
484
484
|
|
|
485
485
|
Two hard "nevers": never declare an `enum` against records that already violate it (§15), and
|
|
486
486
|
never create a `tags` *collection* — a label with no attributes does not earn records, and the day
|
|
@@ -491,32 +491,34 @@ enum by declaration once the vocabulary settles; a tag becomes a field; a nested
|
|
|
491
491
|
collection **only by a one-shot migration script**, which is why question 1 of the interview errs
|
|
492
492
|
toward collections whenever cross-record questions are conceivable.
|
|
493
493
|
|
|
494
|
-
### 20. Every field
|
|
494
|
+
### 20. Every field key, and what it does downstream
|
|
495
495
|
|
|
496
|
-
|
|
496
|
+
Field order matters: **it is the form order**, and the body field goes last. The closed key list
|
|
497
|
+
is `collections.md`; the judgment per key:
|
|
497
498
|
|
|
498
|
-
|
|
|
499
|
+
| key | decide by | what it drives downstream |
|
|
499
500
|
|---|---|---|
|
|
500
|
-
| `type`
|
|
501
|
-
| `title` | authored only when title-casing the name reads wrong (`
|
|
501
|
+
| `type` | `date` vs `datetime` honestly (§21); `markdown` for prose a person reads | the control every surface picks |
|
|
502
|
+
| `title` | authored only when title-casing the name reads wrong (`ui_views` → `UI Views`) | the label everywhere |
|
|
502
503
|
| `description` | §18 | tooltip + agent guidance |
|
|
503
504
|
| `required` | the forcing field and identity inputs, nothing else (§17) | the asterisk; a write missing it is refused before disk |
|
|
504
|
-
| `enum` | the ladder | a dropdown; `check` enforcement |
|
|
505
|
-
| `default` | what is true when unstated — not what is common |
|
|
506
|
-
| `
|
|
507
|
-
| `
|
|
508
|
-
| `
|
|
509
|
-
| `
|
|
510
|
-
| `
|
|
505
|
+
| `enum` | the ladder | a dropdown; `check` enforcement; with a map, labels, icons and band colours |
|
|
506
|
+
| `default` | what is true when unstated — not what is common | filled in on create; documents the neutral value |
|
|
507
|
+
| `type: <collection>` | Part VI | the record picker, labelled by the target's `record_title`; `check` and `rename` follow it |
|
|
508
|
+
| `mirror_of` · `unique` · `on_delete` | Part VI | the generated mirror; cardinality; delete behaviour |
|
|
509
|
+
| `body: true` | the ONE long prose field | the markdown body; rendered as the page, last |
|
|
510
|
+
| `item_title` | rows of a `many` object need a human label | the row label in the list editor |
|
|
511
|
+
| `display` | only where the shape's default drawing is wrong — a unit, a direction, a field locked after create | the surface; never the data |
|
|
512
|
+
| `mixins` (collection level) | a field set shared within the module | identical fields across collections, maintained in one file |
|
|
511
513
|
|
|
512
514
|
What is deliberately absent: computed fields (a skill or command keeps a denormalized key, §3),
|
|
513
|
-
field-level permissions (one operator over git), validation beyond
|
|
514
|
-
|
|
515
|
+
field-level permissions (one operator over git), validation beyond the field keys and
|
|
516
|
+
`constraints` (a rule they cannot express belongs in the writing command's gate, where it can
|
|
515
517
|
refuse with a sentence).
|
|
516
518
|
|
|
517
519
|
### 21. Time, money, measures
|
|
518
520
|
|
|
519
|
-
- **`
|
|
521
|
+
- **`datetime` for instants, `date` for days, never one in the other.** The engine compares
|
|
520
522
|
date-times across offsets correctly; a day stored as midnight lies about precision and breaks
|
|
521
523
|
"same day" filters across timezones.
|
|
522
524
|
- **Denormalized date keys are the sanctioned copy** (§3): a child record carrying the parent's
|
|
@@ -525,96 +527,99 @@ refuse with a sentence).
|
|
|
525
527
|
- **Money is `amount` + `currency`**, always, even when "it's all one currency today" — the first
|
|
526
528
|
foreign invoice is not the moment to migrate. Same for measures: `value` + `unit`, or the unit
|
|
527
529
|
in the field name (`duration_min`, `weight_kg`) when it is genuinely fixed.
|
|
528
|
-
- **Timestamps the engine already keeps are not fields.** `
|
|
529
|
-
|
|
530
|
-
*domain* time (the visit's date, not the record's).
|
|
530
|
+
- **Timestamps the engine already keeps are not fields.** `created` (stamped at `dt add`) and
|
|
531
|
+
`last_modified` (from git) are injected into every collection. Author a date field only when it
|
|
532
|
+
carries *domain* time (the visit's date, not the record's).
|
|
531
533
|
|
|
532
534
|
### 22. Naming
|
|
533
535
|
|
|
534
536
|
Names are read hundreds of times per write; optimize for the reader:
|
|
535
537
|
|
|
536
538
|
- **Collections: plural, hyphenated, the word the user says** — `lab-values`, `visits`. The
|
|
537
|
-
record suffix
|
|
539
|
+
record suffix and the CLI's singular derive from the inflector (`<id>.lab-value.md`,
|
|
540
|
+
`dt add lab-value`); where it is wrong (`people`), author `singular: person` and
|
|
541
|
+
`storage.suffix: person`. A collection is for what *recurs*;
|
|
538
542
|
a one-off is a record in some existing collection, not a new box.
|
|
539
|
-
- **Fields: `snake_case`; a reference named for the target's singular**
|
|
540
|
-
mirror for the owner's plural (`visits`). Name the **role, not the instance**: `person`, not
|
|
543
|
+
- **Fields: `snake_case`; enum values kebab-case; a reference named for the target's singular**
|
|
544
|
+
(`visit`, `doctor`), the mirror for the owner's plural (`visits`). Name the **role, not the instance**: `person`, not
|
|
541
545
|
`staff-member`; `source_account`, not the bank's name.
|
|
542
546
|
- **No abbreviations the user does not say aloud.** `qty` saves three characters and costs every
|
|
543
547
|
future reader a beat.
|
|
544
548
|
- **Confusable pairs get contrasting names AND contrasting descriptions** — `expense_transactions`
|
|
545
549
|
vs `reimbursement_transactions`, each saying which it is not.
|
|
546
|
-
- **Rename early.** A wrong name compounds daily
|
|
547
|
-
|
|
548
|
-
|
|
550
|
+
- **Rename early.** A wrong name compounds daily. `dt rename collections/…`, `dt rename-field` and
|
|
551
|
+
`dt rename-value` each rewrite every position in one commit, and each costs O(records) — cheapest
|
|
552
|
+
the day the name is wrong.
|
|
549
553
|
|
|
550
554
|
---
|
|
551
555
|
|
|
552
556
|
## Part VI — relations
|
|
553
557
|
|
|
554
|
-
### 23. The model: one owner, a generated mirror, declared
|
|
558
|
+
### 23. The model: one owner, a generated mirror, declared on the far side
|
|
555
559
|
|
|
556
560
|
A relation has exactly one **owning field** — the foreign key, on the many side — and optionally a
|
|
557
|
-
**generated mirror** on the far side. The
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
+
**generated mirror** on the far side. The store maintains the mirror's values in the same write as
|
|
562
|
+
every change to the owner, **refuses direct writes to it** naming the field to set instead, and
|
|
563
|
+
`check` reports one fallen behind as stale with the repair command. You author the owner and
|
|
564
|
+
declare the mirror; the values are kept.
|
|
561
565
|
|
|
562
|
-
|
|
566
|
+
There is one spelling: `mirror_of`, written on the far side, naming the owner's field:
|
|
563
567
|
|
|
564
568
|
```yaml
|
|
565
|
-
#
|
|
566
|
-
|
|
567
|
-
|
|
569
|
+
# on health/visits — the owner, a plain reference:
|
|
570
|
+
doctor:
|
|
571
|
+
type: health/doctors
|
|
572
|
+
required: true
|
|
573
|
+
description: Who saw the patient.
|
|
568
574
|
|
|
569
|
-
#
|
|
570
|
-
# collections/health/doctors.collection.yaml
|
|
575
|
+
# on health/doctors — the mirror:
|
|
571
576
|
visits:
|
|
572
|
-
type:
|
|
573
|
-
|
|
574
|
-
|
|
577
|
+
type: health/visits
|
|
578
|
+
many: true
|
|
579
|
+
mirror_of: doctor # health/visits.doctor
|
|
575
580
|
description: Every visit this doctor has seen — generated; set `doctor` on the visit.
|
|
576
581
|
```
|
|
577
582
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
composes with shared templates: when the owning field comes from a `templates:` set used by
|
|
582
|
-
several collections, an `x-inverse` on the template would generate the same mirror name from each
|
|
583
|
-
consumer and collide — B declares each mirror on its own target, touching no shared file.
|
|
583
|
+
The mirror keeps a hand-written `description` in the file a reader opens, which the orientation
|
|
584
|
+
block renders. When the far side belongs to another module, the mirror goes in an
|
|
585
|
+
`overlay: true` descriptor of it, in the module that owns the foreign key (`collections.md`).
|
|
584
586
|
|
|
585
587
|
Cardinality closes from the shapes, and one-to-many is **never authored** — it is always the
|
|
586
588
|
mirror of a scalar:
|
|
587
589
|
|
|
588
|
-
| owning field |
|
|
590
|
+
| owning field | mirror | kind |
|
|
589
591
|
|---|---|---|
|
|
590
|
-
| scalar
|
|
591
|
-
| scalar + `
|
|
592
|
-
|
|
|
592
|
+
| scalar reference | `many: true` | many-to-one |
|
|
593
|
+
| scalar reference + `unique: true` | scalar (no `many`) | one-to-one |
|
|
594
|
+
| `many: true` reference | `many: true` | many-to-many |
|
|
593
595
|
|
|
594
|
-
A
|
|
595
|
-
|
|
596
|
+
A scalar mirror REQUIRES `unique: true` on the owner, and a `many` mirror of a unique owner is
|
|
597
|
+
refused: compile names both fields and stamps nothing. `unique` is a value constraint on its own
|
|
598
|
+
too — on an email, a national id — enforced at write and by `check` whether or not anything
|
|
599
|
+
mirrors it.
|
|
596
600
|
|
|
597
|
-
`
|
|
598
|
-
refuses the `rm` and names them; `set-null` clears the foreign keys — refused at compile
|
|
599
|
-
|
|
600
|
-
records.
|
|
601
|
+
`on_delete` says what removing a *target* does to records pointing at it: `restrict` (default)
|
|
602
|
+
refuses the `rm` and names them; `set-null` clears the foreign keys — refused at compile on a
|
|
603
|
+
`required` reference or a `many` one with `minItems` above one, because a delete must not
|
|
604
|
+
manufacture invalid records.
|
|
601
605
|
|
|
602
606
|
### 24. Choosing the shape — a decision table
|
|
603
607
|
|
|
604
608
|
| the relationship, in a sentence | model |
|
|
605
609
|
|---|---|
|
|
606
|
-
| each visit has one doctor; a doctor has many visits | scalar `doctor` on visits (+
|
|
607
|
-
| each meeting has at most one summary, ever | scalar `meeting` on summaries + `
|
|
608
|
-
| an analysis covers several meetings; a meeting may be analysed repeatedly |
|
|
610
|
+
| each visit has one doctor; a doctor has many visits | scalar `doctor` on visits (+ a mirror when §25 says yes) |
|
|
611
|
+
| each meeting has at most one summary, ever | scalar `meeting` on summaries + `unique: true` — a second is refused, `check` names both |
|
|
612
|
+
| an analysis covers several meetings; a meeting may be analysed repeatedly | `many: true` on the analysis (+ mirror) — many-to-many with no junction |
|
|
609
613
|
| the link itself has fields (a dosage, a role, a start date) | a **junction collection**: an ordinary collection with two references and the edge's own fields. Only when the edge genuinely carries data |
|
|
610
|
-
| the field may point at one of several collections | a union: `
|
|
611
|
-
| evidence/source pointing anywhere | `
|
|
614
|
+
| the field may point at one of several collections | a union: `type: [meetings, visits]` — the stored value's prefix disambiguates |
|
|
615
|
+
| evidence/source pointing anywhere | `type: reference` — open world, `check` verifies existence only, **no mirror possible** |
|
|
616
|
+
| a name that may not have a record yet ("referred by Dr. X") | `soft: true` on the reference — it names the collection, and a missing record is tolerated |
|
|
612
617
|
| an org's parent org | self-reference — legal, mirrors and all (`parent` → `subsidiaries`) |
|
|
613
618
|
| A and B reference each other with different meanings | two independent relations — never one field doing double duty |
|
|
614
619
|
|
|
615
|
-
### 25. Direction — when to declare the
|
|
620
|
+
### 25. Direction — when to declare the mirror, when to skip it
|
|
616
621
|
|
|
617
|
-
The
|
|
622
|
+
The mirror is cost-free to *maintain* (the engine keeps it) but not free to *have*: it is lines in
|
|
618
623
|
every target record, churn in the target's diff whenever an owner changes, and a write to the
|
|
619
624
|
target's file on every link change. Decide per relation:
|
|
620
625
|
|
|
@@ -633,10 +638,10 @@ target's file on every link change. Decide per relation:
|
|
|
633
638
|
purpose; past a few hundred the file is majority-mirror and every reader pays for it;
|
|
634
639
|
- **the owning side is machine-written on every sync** — each sync write also touches the target,
|
|
635
640
|
making it a hot file under concurrent sessions (Part VIII §36);
|
|
636
|
-
- the target is a `
|
|
637
|
-
the mirror anyway, with the reason.
|
|
641
|
+
- the target is a `format: binary`, runtime, bodyless-`md` or other-repo collection — compile
|
|
642
|
+
refuses the mirror anyway, with the reason.
|
|
638
643
|
|
|
639
|
-
Leaving a reference one-way is not a compromise; for evidence fields, `
|
|
644
|
+
Leaving a reference one-way is not a compromise; for evidence fields, `type: reference` fields, and
|
|
640
645
|
high-fan-in event streams it is the design.
|
|
641
646
|
|
|
642
647
|
### 26. Denormalized keys vs mirrors
|
|
@@ -661,15 +666,16 @@ body readable from the child is what the reference is for.
|
|
|
661
666
|
Design against the enforcement that exists, not the enforcement you wish existed:
|
|
662
667
|
|
|
663
668
|
- `check` verifies: every reference resolves; mirrors agree with owners (else `stale`, naming
|
|
664
|
-
`dreamteamer relations rebuild <collection>`); `
|
|
665
|
-
enums, requireds, id patterns.
|
|
666
|
-
- The store maintains mirrors on `add`/`set`/`rm`/`revert`; refuses writes to mirrors
|
|
667
|
-
|
|
669
|
+
`dreamteamer relations rebuild <collection>`); `unique` collisions (naming both claimants);
|
|
670
|
+
enums, requireds, id patterns, placement.
|
|
671
|
+
- The store maintains mirrors on `add`/`set`/`rm`/`revert`; refuses writes to mirrors, to
|
|
672
|
+
`created` and to virtual fields; refuses a `unique` value already taken; `rm` honours
|
|
673
|
+
`on_delete`, detaches its own mirrors, and refuses on unmanaged inbound references.
|
|
668
674
|
- a RECORD-scoped commit pairs a relational write with the mirror partners it dirtied, so one
|
|
669
675
|
logical change is one commit — and refuses to publish half of a pair; the collection form
|
|
670
676
|
publishes what it names and prints the partners it left pending. The scoping rules live in
|
|
671
677
|
`records.md`.
|
|
672
|
-
- Schema ops clean up after themselves: dropping
|
|
678
|
+
- Schema ops clean up after themselves: dropping a mirror clears the generated values it
|
|
673
679
|
orphans; removing a populated field clears its values, reporting the count, with the previous
|
|
674
680
|
version in git.
|
|
675
681
|
|
|
@@ -682,30 +688,31 @@ What no machine holds: the discipline of a denormalized key (§26), the honesty
|
|
|
682
688
|
|
|
683
689
|
### 28. The contract
|
|
684
690
|
|
|
685
|
-
The engine emits, per
|
|
686
|
-
|
|
691
|
+
The engine emits, per collection, a row — title, `nav`, `list`, `record`, `form`, the
|
|
692
|
+
`record_title`, the position field — and per field a row: the authored type name, label,
|
|
693
|
+
description, `role`, `kind`, `editable`, `hidden`, the choices, the `display` keys. A surface
|
|
687
694
|
renders the contract; the model *is* the UI design. This is what keeps the engine detached from
|
|
688
|
-
any particular
|
|
695
|
+
any particular surface while still letting a modeler decide how things will look.
|
|
689
696
|
|
|
690
697
|
### 29. Shape → projection — the full table
|
|
691
698
|
|
|
692
699
|
| descriptor shape | the engine emits | any surface shows |
|
|
693
700
|
|---|---|---|
|
|
694
|
-
| `
|
|
695
|
-
| scalar `
|
|
696
|
-
|
|
|
697
|
-
|
|
|
698
|
-
| `
|
|
699
|
-
|
|
|
700
|
-
|
|
|
701
|
-
| object
|
|
702
|
-
| `
|
|
703
|
-
|
|
|
704
|
-
| `
|
|
705
|
-
| `description` | `
|
|
701
|
+
| `body: true` | `role: body` | the record's page, rendered last |
|
|
702
|
+
| scalar `type: <collection>` | `role: reference` | a record picker, values labelled through the target's `record_title` |
|
|
703
|
+
| `many: true` reference | `role: reference_many`, `many: true` | a multi-picker; chips |
|
|
704
|
+
| `mirror_of` | `role: mirror`, `kind: mirror`, `editable: false`, `mirror_of` | read-only chips; **never an editable control, the create form included** |
|
|
705
|
+
| `created` · `id` · `last_modified` | `kind: derived` · `kind: virtual`, `editable: false` | read-only values, never on the form |
|
|
706
|
+
| `enum` | `editor_options.choices`: `label`, `value`, and the map's decoration | a dropdown; board lanes in enum order |
|
|
707
|
+
| `type: string, many: true` | `type: string`, `many: true` | chips |
|
|
708
|
+
| `type: object, many: true` | `editor_options.fields`, `item_title` | a repeating-row editor |
|
|
709
|
+
| `type: object` · `type: map` | the sub-fields · the open map | a sub-form · key/value rows |
|
|
710
|
+
| any other type | the authored type name (`date`, `datetime`, `number`, `url`…) | its matching control |
|
|
711
|
+
| `display.*` on a field | `editable`, `hidden`, `unit`, `unit_field`, `direction`, `width`, `placeholder`, `form_section`, `editor`/`viewer` | exactly what it says — the one place a descriptor names a widget |
|
|
712
|
+
| `description` | `description` | the tooltip |
|
|
706
713
|
| low-cardinality free string | *(no schema mark)* — `dt values` supplies the vocabulary | a dropdown of observed values, most-used first |
|
|
707
714
|
|
|
708
|
-
Three consequences worth designing with: a **mirror is knowable by its
|
|
715
|
+
Three consequences worth designing with: a **mirror is knowable by its `role`**, so a surface can
|
|
709
716
|
disable the control with a reason instead of letting a write bounce; a **free string is already a
|
|
710
717
|
dropdown** wherever the surface asks `values`, so enums are for *closed* sets, not for getting a
|
|
711
718
|
picker; and everything here degrades to plain text gracefully, because the record is plain text —
|
|
@@ -713,32 +720,34 @@ the projection adds affordances, never meaning.
|
|
|
713
720
|
|
|
714
721
|
### 30. Lists — the record's row
|
|
715
722
|
|
|
716
|
-
`
|
|
717
|
-
the name, the sort key, the status, the relation you filter by.
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
silently, so check the descriptor's real names when writing views.
|
|
723
|
+
`display.list.columns` is the model's answer to "what does a scanning human need": **four to six
|
|
724
|
+
columns** — the name, the sort key, the status, the relation you filter by. More columns is not
|
|
725
|
+
more information; it is a horizontal scrollbar. A field that would usually be empty in a list, and
|
|
726
|
+
any body or nested table, does not go in one. A ui-view's `display.list.columns` **replaces** the
|
|
727
|
+
collection's, and a column naming a field the collection lacks is a compile error naming it.
|
|
722
728
|
|
|
723
|
-
### 31. The record's face: `
|
|
729
|
+
### 31. The record's face: `record_title`, icons, order
|
|
724
730
|
|
|
725
|
-
- `
|
|
726
|
-
lists, links. Authored once on the collection,
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
731
|
+
- `record_title` is how a record is labelled *everywhere it is referenced* — pickers, chips,
|
|
732
|
+
lists, links. Authored once on the collection, used by every reference field pointing at it.
|
|
733
|
+
Compile derives one from `title`/`name`/`subject`; **a derivation to `{{ id }}` is a smell**
|
|
734
|
+
meaning no name-like field exists — add one, because ids make terrible chips.
|
|
735
|
+
- `display.nav.icon` and `display.nav.order` place the collection in any nav; the nav groups by
|
|
736
|
+
owning module, and `display.nav.section` partitions further. Cheap and worth setting — an
|
|
737
|
+
unnamed generic glyph in a tree of twenty collections costs a glance every time.
|
|
738
|
+
- `display.record.subtitle`, `badge` and `color_by` are the record header: a template line, a
|
|
739
|
+
field drawn as a chip, and an enum whose map colours tint rows and cards.
|
|
733
740
|
|
|
734
741
|
### 32. Forms — property order is the design
|
|
735
742
|
|
|
736
|
-
The form is the
|
|
737
|
-
the record), then state (status and its
|
|
738
|
-
|
|
743
|
+
The form is the field order, top to bottom — or `display.form.sections`, which groups it. So:
|
|
744
|
+
identity first (name, date, the references that file the record), then state (status and its
|
|
745
|
+
axes), then detail, then the body last — which a mixin respects by inserting its fields before
|
|
746
|
+
the body. Progressive disclosure is
|
|
739
747
|
achieved by what you *don't* make a field (§2: read-once information belongs in the body) and by
|
|
740
|
-
defaults (a field with a good default is a field nobody has to touch)
|
|
741
|
-
|
|
748
|
+
defaults (a field with a good default is a field nobody has to touch), and by
|
|
749
|
+
`display.hidden: [form]` for what only a script writes. Required-field discipline (§17) is form
|
|
750
|
+
design: every asterisk is friction at capture time.
|
|
742
751
|
|
|
743
752
|
### 33. Views — when a `ui-view` earns existence
|
|
744
753
|
|
|
@@ -746,7 +755,7 @@ A named ui-view exists to be *different* from the default rendering, and it earn
|
|
|
746
755
|
it encodes a **recurring question**, when a different layout genuinely fits the data's axis, or
|
|
747
756
|
when a filtered slice is someone's daily surface — one view per recurring question, never one per
|
|
748
757
|
mood. The model side of the decision is that the question must already be a one-hop filter (§34);
|
|
749
|
-
everything else about views — anatomy,
|
|
758
|
+
everything else about views — anatomy, scopes, layouts, the filter and options traps — is
|
|
750
759
|
`ui-views.md`.
|
|
751
760
|
|
|
752
761
|
### 34. Searchable and filterable — the model side of "find it"
|
|
@@ -756,9 +765,9 @@ everything else about views — anatomy, targets, layouts, the filter and option
|
|
|
756
765
|
semantics. They do not reach inbound (that is what mirrors are for) and never two hops (that is
|
|
757
766
|
what denormalized keys are for). Model so every recurring question lands within one hop.
|
|
758
767
|
- The operator set is rich (`_eq`…`_between`, `_contains`, `_starts_with`, case-insensitive
|
|
759
|
-
variants, `_empty`/`_nempty`, `_regex`, `_and`/`_or`)
|
|
760
|
-
|
|
761
|
-
|
|
768
|
+
variants, `_empty`/`_nempty`, `_regex`, `_and`/`_or`), and two value tokens stand for the
|
|
769
|
+
moment: `$today` and `$now`. A view's or a binding's field names are checked at compile, but in
|
|
770
|
+
`--where` **an unknown key or a dangling reference narrows to nothing** rather than erroring.
|
|
762
771
|
- **Grep is the other search engine.** Qualified references make every relation greppable
|
|
763
772
|
(`grep -r 'health/doctors/dana-levi'` finds every record pointing at her); prose wikilinks
|
|
764
773
|
(`[[collection/id|label]]`) keep body mentions findable too. A model whose links are bare names
|
|
@@ -792,14 +801,15 @@ consequences:
|
|
|
792
801
|
- **A mirror concentrates writes.** Every link change on an owner also writes the target's file. A
|
|
793
802
|
target with hundreds of inbound links, or owners written by a fifteen-minute sync, makes that
|
|
794
803
|
one target file a contention point *and* a churn magnet in history. That is the §25 rule from
|
|
795
|
-
the performance side: skip the
|
|
804
|
+
the performance side: skip the mirror on machine-written high-fan-in relations, or hang a small
|
|
796
805
|
stats record beside the anchor instead.
|
|
797
806
|
- **Event streams append; entities update.** An append-only collection (one new file per event)
|
|
798
807
|
has no hot files at all — which is why the stable/volatile split (§16) is also the concurrency
|
|
799
808
|
design.
|
|
800
|
-
- **Do not renumber.** Manual order
|
|
801
|
-
by `dt
|
|
802
|
-
list is a multi-file commit against
|
|
809
|
+
- **Do not renumber.** Manual order is a `type: position` field holding a fractional key per
|
|
810
|
+
record, written by `dt reorder <collection>/<id> --after|--before <id> | --top | --bottom` (and
|
|
811
|
+
`--init` for records that have none), because renumbering a list is a multi-file commit against
|
|
812
|
+
git for no information.
|
|
803
813
|
|
|
804
814
|
### 37. Growth — sharding and splitting
|
|
805
815
|
|
|
@@ -821,7 +831,7 @@ No indexes to design, no query plans to hint, no caches to invalidate — do not
|
|
|
821
831
|
mirrored count field is a denormalized key nobody asked for; a nightly "rebuild" script is a smell
|
|
822
832
|
that the model, not the machinery, is wrong. When something is actually slow, measure which pass
|
|
823
833
|
is slow (`time` the command) before modeling around it — the honest fixes are usually "shard the
|
|
824
|
-
folder", "lean the frontmatter", or "drop the unread
|
|
834
|
+
folder", "lean the frontmatter", or "drop the unread mirror", in that order.
|
|
825
835
|
|
|
826
836
|
---
|
|
827
837
|
|
|
@@ -830,8 +840,8 @@ folder", "lean the frontmatter", or "drop the unread inverse", in that order.
|
|
|
830
840
|
### 39. Additive first
|
|
831
841
|
|
|
832
842
|
Widening is always safe and needs no ceremony: a new optional field, a new enum value, a new
|
|
833
|
-
collection, a new
|
|
834
|
-
every
|
|
843
|
+
collection, a new mirror on an existing reference (declare it, then `relations rebuild` backfills
|
|
844
|
+
every value in one command — no script). Ship the widening, backfill opportunistically, narrow
|
|
835
845
|
later if ever.
|
|
836
846
|
|
|
837
847
|
### 40. Narrowing — clean, then declare
|
|
@@ -847,15 +857,14 @@ useless until the flood is drained.
|
|
|
847
857
|
every inbound reference in one commit. Safe, and cheapest early — the rewrite is
|
|
848
858
|
O(records × files), measured ~3 minutes at ~2,300 records — so do it the day the name is wrong,
|
|
849
859
|
not the year after.
|
|
850
|
-
- **Fields**: `dt rename-field <c> --name <f> --to <g
|
|
851
|
-
|
|
852
|
-
`
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
and takes `--dry-run`.
|
|
860
|
+
- **Fields**: `dt rename-field <c> --name <f> --to <g>` — one commit, rewriting the key in every
|
|
861
|
+
record and every position that names the field by name: columns, sort, badge, sections,
|
|
862
|
+
templates, `ids.from`, constraints, `storage.under.parent`, a mirror's `mirror_of`, a ui-view's
|
|
863
|
+
filter and display, a binding's conditions. A position it cannot rewrite is refused by name;
|
|
864
|
+
`--dry-run` lists each. When the values themselves must CHANGE shape, the sequence is add-new,
|
|
865
|
+
script the values, `rm-field` the old.
|
|
866
|
+
- **Enum values**: `dt rename-value <c> <field> <old> <new>` — the enum, its default, constraints,
|
|
867
|
+
view filters, binding conditions and every record, in one commit.
|
|
859
868
|
- **Values** (an id, a reference target): `dt rename <collection>/<old> <new>` rewrites inbound
|
|
860
869
|
references. Prose wikilinks are followed in both spellings — `[[collection/id]]` always, and a
|
|
861
870
|
bare `[[id]]` when that basename names exactly ONE record in the workspace; when something else
|
|
@@ -865,8 +874,7 @@ useless until the flood is drained.
|
|
|
865
874
|
|
|
866
875
|
### 42. Migrations are scripts, run once, committed with their effects
|
|
867
876
|
|
|
868
|
-
There is no migration framework
|
|
869
|
-
removed. A shape change across existing records is a one-shot script: written, run, verified with
|
|
877
|
+
There is no migration framework. A shape change across existing records is a one-shot script: written, run, verified with
|
|
870
878
|
`check`, committed together with the records it rewrote and a commit message saying what it did.
|
|
871
879
|
The message is the only ledger, so write it like one. Before any of it: does the change actually
|
|
872
880
|
need a migration, or is it additive (§39) plus a `relations rebuild`?
|
|
@@ -881,11 +889,11 @@ Each smell, with its fix. These are lint-shaped on purpose.
|
|
|
881
889
|
|---|---|---|
|
|
882
890
|
| a string field with ≤ 10 distinct values, ≥ 80 % fill, no enum | a vocabulary that has settled | declare the enum (after §40's cleaning) |
|
|
883
891
|
| a field at 0 % fill after fifty records | modelling an intention, not a practice | delete it, or find why writers skip it |
|
|
884
|
-
|
|
|
885
|
-
| `
|
|
886
|
-
| two collections sharing most fields, no reference between them | a hidden relation or a false split | reference,
|
|
892
|
+
| a string whose values look like `<collection>/<id>` | a relation the machine cannot see | `type: <collection>` — `check` and `rename` start working |
|
|
893
|
+
| `record_title` derived to `{{ id }}` | no name-like field | add one; ids make terrible chips |
|
|
894
|
+
| two collections sharing most fields, no reference between them | a hidden relation or a false split | reference, mixin, or merge — decided by the triage test (§4) |
|
|
887
895
|
| a `kind` enum whose members are triaged on different questions | two collections wearing one name | split |
|
|
888
|
-
| a scalar reference with fan-in > 1, no
|
|
896
|
+
| a scalar reference with fan-in > 1, no mirror, and a saved view asking "which have none" | the question exists, the mirror doesn't | declare the mirror |
|
|
889
897
|
| a body used as a list column | prose where a field belongs | extract the field the column actually wanted |
|
|
890
898
|
| a number with no unit beside it | a latent unit bug | `value` + `unit`, or the unit in the name |
|
|
891
899
|
| a nested object someone tries to filter on | grain too coarse (§13) | promote it to a collection |
|
|
@@ -916,61 +924,63 @@ because the dominant access is per-person. Lifecycle: prescriptions are the only
|
|
|
916
924
|
collection (`active / stopped / completed`); visits are events, done the moment they are written.
|
|
917
925
|
Stable/volatile: `patients` stable, everything else events pointing at it. Relations: all the
|
|
918
926
|
event collections point at `patients`; visits also at `health/doctors`; prescriptions at the
|
|
919
|
-
visit that issued them.
|
|
927
|
+
visit that issued them. Mirrors: `patients.visits` yes ("patients not seen this year" is a real
|
|
920
928
|
question) — but **not** `patients.lab_values`: fan-in measured in the hundreds per patient would
|
|
921
|
-
drown the record, and the per-person question is already answered by
|
|
922
|
-
|
|
923
|
-
of visits a week — `YYYY/MM` sharding on visits and prescriptions, patient
|
|
924
|
-
none on patients. Module: `clinic`, namespace `health`, commons untouched.
|
|
929
|
+
drown the record, and the per-person question is already answered by storing lab values inside the
|
|
930
|
+
patient's folder, their ids leading with the patient. Forcing fields: `dose` on a prescription; `value` + `unit` on a lab value. Volume: tens
|
|
931
|
+
of visits a week — `YYYY/MM` sharding on visits and prescriptions, nested under the patient for
|
|
932
|
+
lab-values, none on patients (one folder each, `shape: folder`, so they can hold their lab values). Module: `clinic`, namespace `health`, commons untouched.
|
|
925
933
|
|
|
926
|
-
**The proposal** (
|
|
934
|
+
**The proposal** (three of the five descriptors — the ones that carry the lessons):
|
|
927
935
|
|
|
928
936
|
```yaml
|
|
929
937
|
# modules/clinic/collections/health/lab-values.collection.yaml
|
|
930
938
|
name: health/lab-values
|
|
931
939
|
description: >-
|
|
932
|
-
ONE measured value — one analyte, one patient, one date.
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
storage:
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
940
|
+
ONE measured value — one analyte, one patient, one date. A panel is a filter on patient+date, a
|
|
941
|
+
timeline a filter on patient+analyte. Not a visit's in-room vitals.
|
|
942
|
+
use_when: a lab report arrives, or a trend is asked for — one record per analyte per date
|
|
943
|
+
storage:
|
|
944
|
+
format: yaml
|
|
945
|
+
under:
|
|
946
|
+
parent: patient
|
|
947
|
+
subfolder: labs
|
|
948
|
+
id: nested
|
|
949
|
+
ids:
|
|
950
|
+
from: '{{ patient | basename }}/{{ date | date }}--{{ analyte | slug }}'
|
|
951
|
+
pattern: '^[a-z0-9-]+/\d{4}-\d{2}-\d{2}--[a-z0-9-]+$'
|
|
952
|
+
fields:
|
|
953
|
+
patient:
|
|
954
|
+
type: health/patients
|
|
955
|
+
required: true
|
|
956
|
+
description: Whose blood. The id begins with it, and the record lives in the patient's folder.
|
|
957
|
+
date:
|
|
958
|
+
type: date
|
|
959
|
+
required: true
|
|
960
|
+
description: The draw date — the lab's own, never the filing date.
|
|
961
|
+
analyte:
|
|
962
|
+
type: string
|
|
963
|
+
required: true
|
|
964
|
+
description: What was measured, lowercase (ldl, vitamin-d) — a vocabulary, not an enum; `dt values` is the dropdown.
|
|
965
|
+
value:
|
|
966
|
+
type: number
|
|
967
|
+
required: true
|
|
968
|
+
description: The number alone — the unit is beside it, never inside it.
|
|
969
|
+
unit:
|
|
970
|
+
type: string
|
|
971
|
+
required: true
|
|
972
|
+
description: mg/dL, mmol/L, % — from the lab report, verbatim.
|
|
973
|
+
flag:
|
|
974
|
+
type: string
|
|
975
|
+
enum: [low, normal, high]
|
|
976
|
+
description: The lab's own flag when printed; empty when the report shows none.
|
|
977
|
+
ordered_by:
|
|
978
|
+
type: health/doctors
|
|
979
|
+
soft: true
|
|
980
|
+
description: Who ordered the test — often a doctor outside the clinic, so the record may not exist.
|
|
981
|
+
display:
|
|
982
|
+
list:
|
|
983
|
+
columns: [patient, date, analyte, value, unit, flag]
|
|
974
984
|
```
|
|
975
985
|
|
|
976
986
|
```yaml
|
|
@@ -980,82 +990,95 @@ description: >-
|
|
|
980
990
|
One drug prescribed once — what, how much, and whether it is still running. "What is this
|
|
981
991
|
patient currently on" is a filter (patient + status=active), which is why status is a field and
|
|
982
992
|
not a sentence in the body.
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
pattern:
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
date
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
icon: pill
|
|
993
|
+
use_when: a drug is prescribed, renewed or stopped — write it here; asked what a patient is on, filter here
|
|
994
|
+
ids:
|
|
995
|
+
from: '{{ date | date:YYYY/MM }}/{{ date | date }}--{{ patient | basename }}--{{ drug | slug }}'
|
|
996
|
+
pattern: '^\d{4}/\d{2}/\d{4}-\d{2}-\d{2}--[a-z0-9-]+--[a-z0-9-]+$'
|
|
997
|
+
fields:
|
|
998
|
+
drug:
|
|
999
|
+
type: string
|
|
1000
|
+
required: true
|
|
1001
|
+
description: Generic name, lowercase — a vocabulary.
|
|
1002
|
+
patient:
|
|
1003
|
+
type: health/patients
|
|
1004
|
+
required: true
|
|
1005
|
+
description: Who takes it.
|
|
1006
|
+
visit:
|
|
1007
|
+
type: health/visits
|
|
1008
|
+
on_delete: set-null
|
|
1009
|
+
description: >-
|
|
1010
|
+
The visit that issued it — empty for a renewal issued between visits, which is itself the
|
|
1011
|
+
signal that a renewal happened outside a consult.
|
|
1012
|
+
dose:
|
|
1013
|
+
type: string
|
|
1014
|
+
required: true
|
|
1015
|
+
description: 'The forcing field: a prescription without a dose is a rumour. As written — "20mg once daily".'
|
|
1016
|
+
date:
|
|
1017
|
+
type: date
|
|
1018
|
+
required: true
|
|
1019
|
+
description: Issued when — also the id's filing date.
|
|
1020
|
+
status:
|
|
1021
|
+
type: string
|
|
1022
|
+
default: active
|
|
1023
|
+
enum: [active, stopped, completed]
|
|
1024
|
+
description: Observable states only — stopped is a decision, completed is the course run out.
|
|
1025
|
+
notes:
|
|
1026
|
+
type: markdown
|
|
1027
|
+
body: true
|
|
1028
|
+
description: Why prescribed, reactions, the story — read within one record, never filtered.
|
|
1029
|
+
display:
|
|
1030
|
+
list:
|
|
1031
|
+
columns: [patient, drug, dose, status, date]
|
|
1032
|
+
sort: -date
|
|
1024
1033
|
```
|
|
1025
1034
|
|
|
1026
1035
|
```yaml
|
|
1027
|
-
#
|
|
1028
|
-
#
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1036
|
+
# modules/clinic/collections/health/patients.collection.yaml — the parent and the far sides. A
|
|
1037
|
+
# mirror needs somewhere to live beside the prose, so the collection declares a body field.
|
|
1038
|
+
name: health/patients
|
|
1039
|
+
description: A person under the clinic's care — the anchor every visit and prescription hangs off. Not a doctor.
|
|
1040
|
+
use_when: a person is named in a visit, a referral or a lab report — find or create them here first
|
|
1041
|
+
storage:
|
|
1042
|
+
shape: folder
|
|
1043
|
+
entry: patient.md
|
|
1044
|
+
fields:
|
|
1045
|
+
name:
|
|
1046
|
+
type: string
|
|
1047
|
+
required: true
|
|
1048
|
+
description: Full name, as on the health-fund card.
|
|
1049
|
+
visits:
|
|
1050
|
+
type: health/visits
|
|
1051
|
+
many: true
|
|
1052
|
+
mirror_of: patient
|
|
1053
|
+
description: Every consult, generated — set `patient` on the visit. Empty means never seen.
|
|
1054
|
+
prescriptions:
|
|
1055
|
+
type: health/prescriptions
|
|
1056
|
+
many: true
|
|
1057
|
+
mirror_of: patient
|
|
1058
|
+
description: Everything ever prescribed, generated. "Currently on" is this filtered to active.
|
|
1059
|
+
notes:
|
|
1060
|
+
type: markdown
|
|
1061
|
+
body: true
|
|
1062
|
+
description: The patient's running file.
|
|
1040
1063
|
```
|
|
1041
1064
|
|
|
1042
1065
|
**One sample record, seeded before declaring** — the step that catches the unit nobody mentioned:
|
|
1043
1066
|
|
|
1044
1067
|
```
|
|
1045
1068
|
dt add health/lab-values --patient health/patients/dana-levi --date 2026-07-02 --analyte ldl \
|
|
1046
|
-
--value 138 --unit mg/dL --flag high
|
|
1047
|
-
→ data/health/
|
|
1069
|
+
--value 138 --unit mg/dL --flag high
|
|
1070
|
+
→ data/health/patients/dana-levi/labs/2026-07-02--ldl.lab-value.yaml (id dana-levi/2026-07-02--ldl)
|
|
1048
1071
|
```
|
|
1049
1072
|
|
|
1050
1073
|
**Deliberately not modelled:** appointments (the calendar owns scheduling; a visit is written when
|
|
1051
1074
|
it *happens*) · symptoms as fields (read within one visit — body prose) · a `patients.lab_values`
|
|
1052
|
-
|
|
1075
|
+
mirror (fan-in; the patient's folder already files them per person) · a `doctors.patients` relation (it
|
|
1053
1076
|
is derivable through visits and would be a copy with no keeper) · invoices (a different module's
|
|
1054
1077
|
concept — declared out of scope rather than half-modelled).
|
|
1055
1078
|
|
|
1056
1079
|
Why this model holds up, checked against the parts: every recurring question is a one-hop filter
|
|
1057
1080
|
(I §2, VII §34) · the grains differ per collection and each was chosen by its question (IV §13) ·
|
|
1058
|
-
the one risky
|
|
1081
|
+
the one risky mirror was measured and refused (VI §25) · every number carries its unit (V §21) ·
|
|
1059
1082
|
the statuses are observable (IV §15) · the module compiles alone and touches no commons (III §8).
|
|
1060
1083
|
|
|
1061
1084
|
---
|
|
@@ -1066,12 +1089,12 @@ the statuses are observable (IV §15) · the module compiles alone and touches n
|
|
|
1066
1089
|
|
|
1067
1090
|
- [ ] every collection's `description` names its question and its confusable neighbour
|
|
1068
1091
|
- [ ] grain chosen per collection by the two-question drill, stated in the description when non-obvious
|
|
1069
|
-
- [ ] ids from creation-time owned values; patterns admit what
|
|
1070
|
-
- [ ] each relation: owner side chosen,
|
|
1092
|
+
- [ ] ids from creation-time owned values; patterns admit what `ids.from` produces; time-sharded where unbounded
|
|
1093
|
+
- [ ] each relation: owner side chosen, mirror declared-or-refused *with the reason*, `on_delete` stated
|
|
1071
1094
|
- [ ] forcing field per collection — or the collection declared a capture pile on purpose
|
|
1072
|
-
- [ ] units beside every number; `date` vs `
|
|
1073
|
-
- [ ] `
|
|
1074
|
-
- [ ] module ownership stated; no cross-module
|
|
1095
|
+
- [ ] units beside every number; `date` vs `datetime` honest
|
|
1096
|
+
- [ ] `display.list.columns` scannable at 4–6 columns; `record_title` never `{{ id }}`
|
|
1097
|
+
- [ ] module ownership stated; no cross-module mixin; overlays only behind a dependency; namespace == module
|
|
1075
1098
|
- [ ] the deliberately-not-modelled list exists
|
|
1076
1099
|
- [ ] one sample record per collection, shown as its `dt add`
|
|
1077
1100
|
|