App settings
An app settings record holds values that every client of one app honours in this collection, such as how new files are named. The values change client behaviour, never what another record means.
Location and identity
A collection-scope record lives at _mdbase/settings/<app>.md, where <app> is
the record’s app field. Clients read it by that path, without a query.
A collection set up before 2.0.0 may hold the record at _settings/<app>.md, the
1.0.0 location. A client that finds no record at _mdbase/settings/<app>.md reads
_settings/<app>.md, and saves back to the record it read. Clients never move a
record between the two paths. When both exist, the _mdbase/settings record is
used.
Each implementing type declares collection.unique on app with scope: type,
so a collection holds at most one collection-scope record per app.
The record’s type field names the app’s own settings type, not a shared value.
Generic tools find every settings record through this contract.
Reserved fields
app: the app id.scope:collection, oruserfor one person’s overrides.user: a link to anmdbase.personrecord, present only whenscopeisuser.settings_version: the version of the app’s settings schema that last wrote the record.
Every other frontmatter field belongs to the app and is described by the app’s own settings contract. The body is free Markdown for people; apps never parse it.
Client behaviour
- A missing record means every setting has its default. Clients never create the record on read.
- A missing or invalid field takes its default; valid fields are used as written. The record is not rewritten until someone saves.
- A save patches the record it read, only the fields it changes, guarded by the
record’s revision. When there is no record, the save creates it at
_mdbase/settings/<app>.md. - A client that finds a
settings_versionnewer than it understands treats the settings as read-only and uses them as written.
Authority
This artifact is passive. A settings record grants nothing and must never hold secrets: anyone who can read or write records can read or edit it.