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 _settings/<app>.md, where <app> is the record’s app field. Clients read it by that path, without a query. 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, or user for one person’s overrides.
  • user: a link to an mdbase.person record, present only when scope is user.
  • 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 creates the record at its fixed path the first time, and otherwise patches only the fields it changes, guarded by the record’s revision.
  • A client that finds a settings_version newer 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.