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 99614da
Browse filesBrowse the repository at this point in the historyBrowse files
docs(spec): related-list describes say what is refused; primary list and trackHistory describe the v3 record page
relatedLists and fieldGroups[i].relatedList now state the enforced
boundary: a stack child with no inbound FK is refused everywhere; a child
that exists nowhere is refused by defineStack and by a metadata write that
names no package; a write into a package stores it and the record page
places nothing for it.
relatedList: 'primary' is a body table in the details column (inside the
Details tab when tabbed, with no tab of its own), and enable.trackHistory
feeds the record's one timeline stream (its Changes filter) instead of a
History tab.
Claude-Session: https://claude.ai/code/session_01WGufzgaGBuahtvHVCAa4ny
Co-Authored-By: Claude <noreply@anthropic.com>
* A child object with no list-view sort emits no ordering parameter at all,
1763
1766
* and rows fall back to record-id order.
1764
1767
*/
1765
-
relatedList: z.union([z.boolean(),z.literal('primary')]).optional().describe('Show this child collection as a related list on the parent\'s detail page (read-side mirror of inlineEdit). false = suppress; true/absent = shown as a supporting list, a side card beside the record (the shared "Related" tab on the tabbed page); \'primary\' = part of the record\'s main content, drawn in the record\'s body (the details column, after the field sections) as a full-width table (its own tab on the tabbed page). Absent on a master_detail field that sets inlineEdit, the list is \'primary\' by default; write true to keep it a side card. \'primary\' places a list and does not order it: the parent object\'s relatedLists orders the body tables and the side cards (ADR-0085). A derived related list (relatedList: \'primary\') inherits its row order from the child object\'s DEFAULT list view sort — the isDefault view, or the first declared list item when none is marked default; wire spelling is sort=<field> / sort=-<field>, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order.'),
1768
+
relatedList: z.union([z.boolean(),z.literal('primary')]).optional().describe('Show this child collection as a related list on the parent\'s detail page (read-side mirror of inlineEdit). false = suppress; true/absent = shown as a supporting list, a side card in the record\'s related column (the shared "Related" tab on the tabbed page); \'primary\' = part of the record\'s main content, drawn in the record\'s body (the details column, after its first field section) as a full-width table (inside the Details tab on the tabbed page, with no tab of its own). Absent on a master_detail field that sets inlineEdit, the list is \'primary\' by default; write true to keep it a side card. \'primary\' places a list and does not order it: the parent object\'s relatedLists orders the body tables and the side cards (ADR-0085). A derived related list (relatedList: \'primary\') inherits its row order from the child object\'s DEFAULT list view sort — the isDefault view, or the first declared list item when none is marked default; wire spelling is sort=<field> / sort=-<field>, never $orderby. A child object with no list-view sort emits no ordering parameter, and rows fall back to record-id order.'),
1766
1769
/** Optional section title for the detail-page related list (defaults to the child object label). */
1767
1770
relatedListTitle: z.string().optional().describe('Title for the detail-page related list'),
* History tracking (Audit Trail) master switch — opt-in.
264
264
*
265
-
* Contract: `true` surfaces the record History tab (audit-trail UI) in the
266
-
* console. Pair with per-field `trackHistory: true` to select which field
265
+
* Contract: `true` surfaces the record's field changes (audit-trail UI) in
266
+
* the console. On the synthesized record page they join the record's one
267
+
* timeline stream, beside its discussion and activity, under the stream's
268
+
* Changes filter; that page has no separate History tab. A page an author
269
+
* assigns is drawn as authored: it shows changes where it places a
270
+
* `record:history` block, which reads the record's own activity, not this
271
+
* flag. Pair with per-field `trackHistory: true` to select which field
267
272
* diffs render as human-readable timeline summaries (ADR-0052 §5b). Audit
268
273
* *capture* into `sys_audit_log` is a compliance ledger and stays on
269
274
* regardless of this flag; retention is governed by data lifecycle
270
275
* (ADR-0057), not by hiding the UI.
271
276
*/
272
-
trackHistory: z.boolean().default(false).describe('Show the record History tab (audit-trail UI). Pair with per-field trackHistory to pick which field diffs are summarized; audit capture itself is always on for compliance'),
277
+
trackHistory: z.boolean().default(false).describe('Show the record\'s field changes (audit-trail UI): on the default record page they join the record\'s one timeline stream, under its Changes filter. An authored page shows changes only where it places a record:history block. Pair with per-field trackHistory to pick which field diffs are summarized; audit capture itself is always on for compliance'),
273
278
274
279
/** Enable global search indexing */
275
280
searchable: z.boolean().default(true).describe('Index records for global search'),
message: 'A field group\'s relatedList is a child object name (e.g. "task") or object.field (e.g. "event.related_to"), in snake_case',
1250
-
}).optional().describe('Places a related list\'s body table at this position in the record\'s details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused, and so is a name that matches no inbound lookup / master_detail field. relatedList: false on the relationship still hides the table.').meta({title: 'Related List'}),
1258
+
}).optional().describe('Places a related list\'s body table at this position in the record\'s details column instead of a section of fields: names one inbound relationship, as a relatedLists entry does (child object, or object.field when that child has more than one relationship to this object). A group with relatedList holds no fields: a field that names it as its group is refused. The name is judged as a relatedLists entry is: refused when its child is in the stack with no inbound lookup / master_detail field, or exists nowhere (by os validate / os build, and by a metadata write that names no package); a write into a package stores it, and the record page places nothing for it. relatedList: false on the relationship still hides the table.').meta({title: 'Related List'}),
message: 'A relatedLists entry is a child object name (e.g. "task") or object.field (e.g. "event.related_to"), in snake_case',
3061
3081
}),
3062
-
).optional().describe('Business order of this object\'s related lists on its record page, most important first. Each entry is a child object name (e.g. "task"), or object.field when that child has more than one relationship to this object (e.g. "event.related_to"). Listed relationships come first in this order; unlisted ones follow in the derived order (owned master_detail children, then lookup children). An entry that matches no inbound lookup / master_detail field of this object is refused. It orders only: relatedList: false on the relationship still hides a list, and relatedList: \'primary\' still places a list in the record\'s body, so the order applies among the body tables and among the side cards.'),
3082
+
).optional().describe('Business order of this object\'s related lists on its record page, most important first. Each entry is a child object name (e.g. "task"), or object.field when that child has more than one relationship to this object (e.g. "event.related_to"). Listed relationships come first in this order; unlisted ones follow in the derived order (owned master_detail children, then lookup children). An entry whose child is in the stack but has no inbound lookup / master_detail field to this object is refused everywhere. An entry whose child exists nowhere is refused by os validate / os build and by a metadata write that names no package; a write into a package stores it, since a child outside the package may be a downstream package\'s object that points here, and the record page places nothing for it. It orders only: relatedList: false on the relationship still hides a list, and relatedList: \'primary\' still places a list in the record\'s body, so the order applies among the body tables and among the side cards.'),
3063
3083
/**
3064
3084
* [ADR-0085] Semantic role: the field that represents the record's LINEAR
3065
3085
* lifecycle (an ordered pipeline / stage progression). A string names the
0 commit comments