Skip to content

Commit a7c2af8

Browse files
committed
docs(spec): trackHistory names both authored blocks that show field changes, and claims no exclusivity
Claude-Session: https://claude.ai/code/session_01WGufzgaGBuahtvHVCAa4ny Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0fae485 commit a7c2af8

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

‎.changeset/27311-27312-record-page-describes.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Description text only: no key, type, default, accepted value or export moves, an
1212

1313
- **`ObjectSchema.relatedLists` and `fieldGroups[i].relatedList`.** The descriptions promised that a name matching no inbound `lookup` / `master_detail` relationship is refused. They now say exactly where. A name whose child is in the stack but has no such relationship to this object is refused everywhere. A name whose child exists nowhere is refused by `os validate` / `os build` (which leave a `sys_` / `cloud_` / `ai_` name to the runtime) and by a metadata write that names no package. A write into a package stores it, because a child outside that package may be a downstream package's object that points in; the record page places nothing for it.
1414
- **`relatedList: 'primary'`.** A primary list is a full-width table in the record's details column, after the first field section, and inside the Details tab when the page is tabbed. It no longer gets a tab of its own; a supporting list is a card in the related column (the shared Related tab when tabbed).
15-
- **`enable.trackHistory`.** The record's field changes join its one timeline stream, under the Changes filter, instead of a History tab. A page an author assigns shows a field-change history only where it places a `record:history` block.
15+
- **`enable.trackHistory`.** The record's field changes join its one timeline stream, under the Changes filter, instead of a History tab. On a page an author assigns, a `record:history` or `record:activity` block shows the record's field changes from its own activity, and neither reads this flag.
1616
- **`@object-ui/plugin-detail` README.** The wide-layout table's timeline column is the one stream (composer, discussion, activity and, with `enable.trackHistory`, field changes) rather than "Activity and History".
1717

1818
What to do: nothing.

‎packages/spec/src/data/object.zod.ts‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,16 +266,15 @@ export const ObjectCapabilities = strictObject({
266266
* the console. On the synthesized record page they join the record's one
267267
* timeline stream, beside its discussion and activity, under the stream's
268268
* Changes filter; that page has no separate History tab. A page an author
269-
* assigns is drawn as authored: it shows a field-change history only where
270-
* it places a `record:history` block, which reads the record's own activity,
271-
* not this flag (a `record:activity` block there lists field edits only as
272-
* activity lines). Pair with per-field `trackHistory: true` to select which field
273-
* diffs render as human-readable timeline summaries (ADR-0052 §5b). Audit
274-
* *capture* into `sys_audit_log` is a compliance ledger and stays on
275-
* regardless of this flag; retention is governed by data lifecycle
276-
* (ADR-0057), not by hiding the UI.
269+
* assigns is drawn as authored: a `record:history` or `record:activity`
270+
* block placed there shows the record's field changes from its own activity
271+
* (`sys_activity`), and neither reads this flag. Pair with per-field
272+
* `trackHistory: true` to select which field diffs render as human-readable
273+
* timeline summaries (ADR-0052 §5b). Audit *capture* into `sys_audit_log` is
274+
* a compliance ledger and stays on regardless of this flag; retention is
275+
* governed by data lifecycle (ADR-0057), not by hiding the UI.
277276
*/
278-
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 a field-change history 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'),
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. On an authored page, a record:history or record:activity block shows the record\'s field changes from its own activity, and neither reads this flag. Pair with per-field trackHistory to pick which field diffs are summarized; audit capture itself is always on for compliance'),
279278

280279
/** Enable global search indexing */
281280
searchable: z.boolean().default(true).describe('Index records for global search'),

‎packages/spec/src/data/record-page-describes.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ describe('[#27312] enable.trackHistory describes the one timeline stream', () =>
114114

115115
it('sends field changes into the record\'s timeline stream', () => {
116116
expect(text).toContain('join the record\'s one timeline stream, under its Changes filter');
117-
expect(text).toContain('An authored page shows a field-change history only where it places a record:history block');
117+
expect(text).toContain('On an authored page, a record:history or record:activity block shows the record\'s field changes from its own activity, and neither reads this flag');
118+
// Neither block is the only place an authored page shows changes.
119+
expect(text).not.toMatch(/only where it places/);
120+
expect(text).not.toMatch(/activity lines/);
118121
});
119122

120123
it('carries no v2 tab phrase', () => {

0 commit comments

Comments
 (0)