You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 710841d
Browse filesBrowse the repository at this point in the historyBrowse files
docs(skills): the data skill teaches field-change values as on by default
enable.fieldHistory replaces the trackHistory opt-in sentence in skills/objectstack-data/SKILL.md; trackHistory keeps its ledger-view row. New text is paid for by cuts in the same file.
Claude-Session: https://claude.ai/code/session_01JQwxbZeHNsF3RWcWpj7rGj
Co-authored-by: Claude <noreply@anthropic.com>
docs(skills): the data skill teaches field-change values as on by default (`enable.fieldHistory`), no longer as the `trackHistory` opt-in
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
`skills/objectstack-data/SKILL.md` still gave `enable.trackHistory`, default `false`, as the field-level audit trail. An agent following it added a flag that no longer decides anything about values, or believed history was off. The `enable` table now has a `fieldHistory` row: a changed field's old → new values show on the record's activity timeline unless the object writes `enable.fieldHistory: false` or the field writes its own `fieldHistory: false`; a media or structured field shows values only with `fieldHistory: true`, and a credential field never does. Each value is served per the reader's read rule for that field, and the audit ledger (`sys_audit_log`) keeps its own grant. The `trackHistory` row now says what the flag still does (the ledger view on the record page and the `history` API verb) and that it is not the values switch.
11
+
12
+
New text is paid for by cuts in the same file: the `aiReadable` row keeps only what an app author needs (platform objects only, refused at parse on an app object), and nine restating phrases are shortened. No metadata shape changes.
|`fields`| map | keys in `snake_case`| Field definitions |
69
-
|`sharingModel`| enum | one of the four below | Org-wide default record visibility (OWD). Zod marks it optional, but **a publish with no authored `sharingModel` is refused** with the 422 lint envelope `security-owd-unset` — absence is not a decision. Author it on every object |
69
+
|`sharingModel`| enum | one of the four below | Org-wide default record visibility (OWD). Zod marks it optional, but **a publish with no authored `sharingModel` is refused** with the 422 lint envelope `security-owd-unset`. Author it on every object |
70
70
71
71
**`sharingModel` — the four canonical values:**
72
72
@@ -77,7 +77,7 @@ same literal goes inside `ObjectSchema.create({...})`):
77
77
|`public_read_write`| everyone reads and writes |
78
78
|`controlled_by_parent`| inherited from the master record (`master_detail` children); a row with no (optional) master is its owner's |
79
79
80
-
Choose the posture from the request, not by habit: a business object a team
80
+
Choose the posture from the request: a business object a team
81
81
shares is `public_read_write` (`private` would hide every colleague's records
82
82
from everyone else); `private` fits personal or sensitive data only its owner
83
83
should see (HR reviews, pay, personal notes); `public_read` fits reference data
@@ -89,33 +89,34 @@ all (Relationship Patterns below).
89
89
90
90
| Property | Default | Description |
91
91
|:---------|:--------|:------------|
92
-
|`label`| Auto from `name`|Human-readable singular label |
92
+
|`label`| Auto from `name`|Singular label |
93
93
|`pluralLabel`| — | Plural form; author it alongside `label`|
94
94
|`icon`| — | Icon for nav, list headers and lookup pickers; give every object one |
95
95
|`color`|`gray`| Tile colour behind the white `icon`: `gray``blue``teal``green``amber``orange``red``pink``purple` (no hex). Group the app's objects into a few business families, one name each, as the platform's own objects do: people `blue`, security `purple`, approvals and work `orange`, messaging `pink`, integrations `teal`, reference data and finance `green`, audit and settings `amber`. `red` only for an alert object; one nobody opens gets none |
96
96
|`highlightFields`| derived | Ordered field keys used as a record's compact face: the columns a **related list** renders on the parent's detail page, and what a lookup picker shows. Declare it on the CHILD object (see [Relationships](./rules/relationships.md)) |
97
97
|`namespace`| — |**Not a schema key**: refused as unknown. Embed the prefix in `name`|
98
-
|`datasource`|`'default'`| Target datasource ID for virtualized data |
99
-
|`nameField`| derived (e.g. `'name'`/`'title'`) |**Canonical** record-title field — the stored field used as the record's display name. Use a single text/email field; a composite title to import, sort or search by is a stored computed field (a non-`formula` field with an `expression`); a text formula is display-only |
98
+
|`datasource`|`'default'`| Target datasource ID |
99
+
|`nameField`| derived (e.g. `'name'`/`'title'`) |Record-title field: the stored field used as the record's display name. Use a single text/email field; a composite title to import, sort or search by is a stored computed field (a non-`formula` field with an `expression`); a text formula is display-only |
100
100
|`displayNameField`| — |**Deprecated** alias for `nameField`, still read |
101
101
|`titleFormat`| — |**Refused** by a save and `os validate` (`title-format-retired`): use `nameField`|
102
102
|`enable`| — | Capability flags (next section) |
103
-
|`fieldGroups`| — | Ordered list of logical field groups for forms/detail pages (see [Field Groups](./references/examples-objects.md#field-groups-mvp)) |
104
-
|`lifecycle`|`record`semantics (permanent) | Data retention/rotation/archival contract. **Required for append-only, high-write-rate objects** (see [Data Lifecycle & Retention](./rules/lifecycle.md)) |
103
+
|`fieldGroups`| — | Ordered field groups for forms/detail pages (see [Field Groups](./references/examples-objects.md#field-groups-mvp)) |
104
+
|`lifecycle`|`record` (permanent) | Data retention/rotation/archival contract. **Required for append-only, high-write-rate objects** (see [Data Lifecycle & Retention](./rules/lifecycle.md)) |
|`fieldHistory`| on | A changed field's old → new values on the activity timeline, served per the reader's field read rule. `false`: off for the object. A field opts out with its own `fieldHistory: false`; a media or structured field (`json`, `address`, `code`…) shows values only with `true`, a credential never. `sys_audit_log` keeps its own grant |
111
+
|`trackHistory`|`false`| Ledger view on the record page and the `history` API verb; not the values switch |
111
112
|`searchable`|`true`| Index records for global search |
112
113
|`apiEnabled`|`true`| Expose via automatic REST + MCP APIs |
113
114
|`apiMethods`| all | Whitelist over the six primitives (`get`, `list`, `create`, `update`, `delete`, `bulk`); derived verbs (search/export/upsert/…) follow automatically |
0 commit comments