Skip to content

Commit e1dee7a

Browse files
docs(adr): dated notes bring 15 ADR passages in step with main (week of 2026-11-21) (#37045)
<!-- claude-projects-attribution: {"github_login":"huangyiirene"} --> _Requested by **Irene** · [project thread](https://claude.ai/code/project/chan_01TJXtQ1tVD26ecLDZxFS67x?thread=cmsg_01TJXtQ1tVD26ecLDZxFS67x8Be2AAcUBhodBsvnWLd3Xs)_ Fixes #36086 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;十二份内部设计记录在与现行代码不一致的地方各加一条注明日期的补注,原决定文字不动,只有访客模型里一句已被裁决撤回的接口说明照裁决改掉。 - 为什么做:这是本周的设计记录修订合集;AI 席位改代码前会读这些记录,这十五处已与上线代码不一致,会把 AI 带偏。 - 出错会怎样:只改说明文字,不动代码和功能;补注若写错,读记录的 AI 和人会拿到错误说明,整个合并可以直接撤回。 - 要你做什么:审阅后批准一次(设计记录必须由你亲手批)。 ## What changes Seventeen append-only dated notes, for the 15 rows of this week's card whose code is on `main`, in twelve records. Each note sits directly under the passage it amends, says what `main` does now, and links its card and its landing PR. One clause is rewritten, in ADR-0138, as its row and the ruling on it ask. No other decision text is rewritten, struck or reordered. Six records whose header indexes their amendments gain a pointer entry there (ADR-0050, 0066, 0090, 0138, 0151, 0158). | # | ADR · section | What it said | What `main` does | Landing PR | Note location | |:--|:--|:--|:--|:--|:--| | 1 | ADR-0158 · Open item 12 | Which aggregates count as "raw" is left to the aggregate card | `sum`, `avg`, `min` and `max` over a `record`-mode quantity are refused unless the query groups by the quantity's own `unitField`: ObjectQL aggregate `INVALID_FIELD` / 400, `summary` field `INVALID_METADATA` / 422, cube measure `INVALID_FIELD` / 400 on each query. `count`, `count_distinct`, a `fixed`-mode quantity and a plain number are not judged. No error code is added | #36060 | under Open item 12; status entry | | 2 | ADR-0066 · D2 ⑧ | View All and Modify All are the bits that vote on every field of an object | A set may carry `viewAllFields`: a read vote, never an edit vote, on every field of the object. The set's own `readable: false` row beats it. It grants no object access, no record and no admin posture | #36085 | under D2 ⑧, after the 2026-11-15 note; status entry | | 3 | ADR-0090 · D5 | The high-privilege list refused on an `everyone` binding | The list gains `viewAllFields` on any object entry | #36085 | under D5; status entry | | 4 | ADR-0090 · D12, condition (a) | No `viewAllRecords` or `modifyAllRecords` on `'*'` | Condition (a) also refuses `viewAllFields` on `'*'`; the bit on a named object stays inside the boundary | #36085 | under D12's 2026-10-17 amendment | | 5 | ADR-0151 · D3 | The bits the agent ceiling removes | The clamp also clears `viewAllFields` on every object entry; assigning a set that carries it to an account is refused by name | #36085 | under D3; header entry | | 6 | ADR-0050 · Decision 2, the 2026-10-20 note | "a per-list open mode, if ever wanted, is the list's existing `navigation.mode`" | On an object's list `navigation.mode` is deprecated and no longer picks how a record opens: the name opens the full page, the hover icon the side panel. `none` still means the rows open nothing. A page block still honours every value | #35910 | under Decision 2, after the 2026-10-20 note; status entry | | 7 | ADR-0050 · the same note | The create form is chosen by convention from the object's form views | The console's record create and edit forms are the object's own, laid out by `fieldGroups`, less a `showOnCreate: false` field on a create. An internal form view steers nothing there. A public form and a named form an action opens keep their own definition | #36543 | second note under Decision 2 | | 8 | ADR-0052 · section 5b, tier 1 | "Opt-in (like Feed Tracking) keeps the stream from becoming change-noise" | Old and new values show by default. Off per object with `enable.fieldHistory: false`, per field with `fieldHistory: false`. An entry serves a field's values only to a reader who is served that field | #36399, #36580, #36613, #36641, #36661 | under tier 1 | | 9 | ADR-0146 · D1 | Studio is where metadata is edited | A workspace administrator also edits in the running app: the menu and the pinned header actions in design mode, a dashboard on its page, a report on its builder page, a view's settings on the view. Each save is one item's draft and publish, and writes nothing over a pending draft | #36397, #36437, #36629, #36405, #36644, #36411, #36848 | end of D1, after the 2026-11-24 amendment's table | | 10 | ADR-0146 · D5 (two card rows) | The bridge draws on the app switcher row and the app bar entry | From 768 px up the entries are two rows of the app-name menu. "Design layout" turns on design mode. "Edit app" opens Studio, and reads "View in Studio" for a read-only package. The page header draws neither | #36437, #36621, #36789 | under D5 | | 11 | ADR-0146 · D10, the 2026-11-22 note | An extension places only what it brings; the base's arrangement stays the base's | The App's paired `.custom` package may declare whole `fieldGroups` and `relatedLists`. Each key it writes replaces the folded result whole. Any other package is refused and prescribed `place` | #36517 | under D10, after the 2026-11-22 note | | 12 | ADR-0146 · D10, the same note | (the same) | `actionLayout` is the third such key. Only the paired `.custom` package writes it on an extension. Each arm it writes replaces the served arm whole. The server refuses the shape; the reference is refused by design mode's Save and by the CLI rule only | #36629 | second note under D10 | | 13 | ADR-0138 · D2, the 2026-11-20 amendment | The restriction profile is served on the unscoped route "and its environment-scoped twin" | Only the unscoped route is mounted. A request to the twin gets the host's ordinary not-found answer. A server that mounts the scoped base alone serves no profile | #36531 | the clause is rewritten in place; a dated amendment under it; status entry | | 14 | ADR-0149 · D3, rules 4 and 5 | Both rules apply to an unknown word beside a grouping word; the record did not say which governs | Rule 4 governs the unknown word: the labelled fallback, nothing asked. Rule 5 is the rule for a question that names no number. Beside a fallback the note ends with one conditional sentence | #36509 | under D3, after the 2026-11-19 note | | 15 | ADR-0027 · roadmap row M2 | "explicit, batched publish" | In Studio's designers a person's Save writes the draft and publishes that one item at once. Drafts and the package's batch publish remain for an AI's changes | #36597, #36634, #36652 | under the roadmap table | | 16 | ADR-0037 · the product-boundaries amendment | "Publish remains the single commit gate shared by every surface" | The publish is the item's own, issued by the Save itself. The top bar's Publish is drawn only while a draft is pending | #36597, #36634, #36652 | under that sentence | | 17 | ADR-0085 · section 2 | `relatedLists` is "the one place" where the re-arrange rejection yields | `actionLayout` is the second: a ruled exception (the maintainer's ruling on #36635), on the object, with a `list` arm and a `record` arm | #36629, #36815 | under section 2, after the 2026-11-22 note; dated 2026-11-23 | The 15 card rows are the 17 lines above: the `viewAllFields` row is lines 2 to 5, and the two ADR-0146 D5 rows are line 10. **Rows not carried** - ADR-0085, the `fieldGroups[].collapse` row: already on `main` through #36817. The record carries "Addendum (2026-11-22): on the synthesized record page the reader folds every titled group", which says what the row asks for. Nothing is added. No `scripts/adr-anchors/**` entry moves. No `**Status**:` line changes in the part the index projects, so `docs/adr/README.md` stays current. ## Why AI seats read the ADRs before they change code in governed territory (AGENTS.md Prime Directive #13). These passages say something `main` no longer does, so a seat that trusts them is steered wrong. This is the week's rolling ADR revisions card: its rows land together as one governed `docs/adr/**` PR and one approval, on the maintainer's word of 2026-11-20 (「adr接受你的建议」). ## Tests Docs-only diff: no package, test or build input is touched, so no package test or typecheck applies, and nothing a test pins changes. ## Acceptance notes - Every row was read against the code on `main` at `a73edb3cd`, not against PR state. Each landing commit is an ancestor of the branch, and each note names the file or symbol that makes it true. `main` has moved once since (`9c57bd283`); that commit touches no `docs/adr/**` file and no file a note names. - Where a row's claim is not what `main` does, the note states what `main` does: - **ADR-0052.** The row gives the per-field switch as `trackHistory: false`. On `main` it is `fieldHistory: false`; `trackHistory: false` reads as unset. - **ADR-0146 D1.** Three sentences of the row are not written. "The fate of Studio's Interfaces pillar is still open": the 2026-11-24 amendment of D1, already on `main`, retires the pillars. "Studio is not changed by this batch": the same amendment changes it. "Each of these writes the same paired package": a report's save and a change to an existing view's settings name no package, and the menu, the action arrangement and a dashboard go to the item's own package when it is writable. The note says where each save lands. It does not repeat what that amendment already says about dashboards and reports opening in the app. - **ADR-0146 D5.** Both card rows describe a state #36789 has since replaced: the row of #36437 has the page header's button enter design mode, and the row of #36621 has the app-name menu's "Edit app" enter it. On `main` the entry into design mode is "Design layout", and "Edit app" opens Studio. The two rows are written as one note that states the end of that sequence. - **ADR-0027.** The row says later PRs will move the other Studio editors. They have landed (#36634, #36652) and the note cites them. It quotes the maintainer's own sentence on the epic, not the epic's summary line. - **ADR-0037.** The row says a pending draft now means an AI's draft. Studio's generic item page still saves a person's drafts (its move is declared by D1's amendment and not built), and the note says so. - **ADR-0085.** The row says the row menu is queued and not built. #36815 built it, and it follows the `record` arm; the note says so. The `list` arm still has one reader. - Header entries: added where a record's header indexes its amendments (ADR-0050, 0066, 0090, 0138, 0151, 0158). Not added to ADR-0146: its status block lists only the maintainer's in-place amendments, its 2026-11-22 note under D10 has no entry there, and open PR #36957 edits that block. Not added to ADR-0027, 0037, 0052, 0085 and 0149, whose headers hold no such list. - Dates: every note is dated 2026-11-24, except ADR-0085's, dated 2026-11-23 as its row sets (that record dates its notes by ruling). ADR-0138's amendment is dated 2026-11-24 and names the ruling's date, 2026-11-22. - ADR-0151 is `Proposed`; its note follows the form of the dated notes it already carries. - The spec docblock sentence the ADR-0085 row mentions landed with #36629, so nothing outside `docs/adr/**` is owed. - Noted, not filed (read-only observations, nothing was run to exercise them): - A report's save, and a change to an existing view's settings, from the running app name no package. For an item of an installed package whose stored rows are not bound to exactly one package, the server then addresses the package-unbound row, not the paired `.custom` package ADR-0146 D2 points customizations to. Whether a door refuses that write was not measured. - Two source comments still say design mode is entered from "Edit app" (the page-actions module header and the design-mode module's gate paragraph). Comments only. - Landing tier: Tier H (`docs/adr/**`, governed; the maintainer approves). The diff is +243 / -5 over 12 files. ## Verification Read first, by risk: 1. `docs/adr/0138-guest-model-anonymous-principal-doors-grants-and-organization.md`, the D2 hunk: the one place earlier text is rewritten. 2. `docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md`, the note at the end of D1: the widest claim, where each in-app save lands. 3. `docs/adr/0066-unified-authorization-model.md`, the note under D2 ⑧, with its ADR-0090 D12 twin: permission semantics. Two-minute check: `pnpm check:adr-symbol-anchors` prints a green line that starts `check-adr-symbol-anchors: 3904 anchors across 160 records`, and `git diff origin/main...HEAD --stat` shows 12 files, 243 insertions and 5 deletions. <details><summary>Gate readings on e5c60bf</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived the same 21 families on `8c705bc2c` and on `e5c60bff0`. The readings below are the second run, on `e5c60bff0`, each exit captured before any pipe: ```text node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:adr-anchors :: exit 0 pnpm check:adr-index :: exit 0 pnpm check:adr-symbol-anchors :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-prior-rulings :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` On the first run `check:doc-formula-expressions` answered 3, prerequisite not met, until `formula` and `lint` were built under `os-verify-lock` (VERDICT command-exit 0, 5 of 5 tasks). `--ran` reconciliation: 21 derived, 21 run, 0 NOT-MEASURED (a derived zero). `node scripts/adr-index.mjs --check`: exit 0, the README is current. `check-commit-card-trailers --range origin/main..HEAD`: exit 0, 2 commit messages. `overlap-check`: `origin/main` and #36957 both merge cleanly, VERDICT clean exit 0. `check-governed-merges --branch`: GOVERNED, 12 of 12 paths on the register, Tier H. Control-byte scan of the twelve files: 0 hits. </details> ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No schema touched.) - [x] 2. Every name I added uses the casing for its kind. (No name added.) - [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran. `pnpm lint` was not run locally on this Markdown-only diff; CI judges it.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (Publishes nothing: `skip-changeset`.) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (Not touched.) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [ ] The *Before Submitting* list in CONTRIBUTING.md is done. (Not walked item by item; the derived gates above are what ran.) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01J8VVAoUbebHyRXKT4GxBTV --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent cdfb7da commit e1dee7a

12 files changed

Lines changed: 243 additions & 5 deletions

‎docs/adr/0027-metadata-authoring-lifecycle.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,21 @@ production DDL later, collaboration last.
398398
| **M4 — Advanced migration & DX** | Zero-downtime prod changes; full surface parity | expand-contract migrations · data backfill expressions · drift detection / health checks · CLI/AI/Git surface parity · marketplace dependency resolution | high (zero-downtime correctness) | additive to M2 executor |
399399
| **M5 — Collaboration** | Multi-author teams | edit locks → branch + merge → concurrent drafts; **retire §9 flat `package_id` rows** (migrate to version-bound) | high (merge semantics) | final consolidation |
400400

401+
> **Note (2026-11-24, [#36511](https://github.com/objectstack-ai/objectstack/issues/36511) of epic
402+
> [#36510](https://github.com/objectstack-ai/objectstack/issues/36510)).** Row M2's "explicit, batched publish" is no longer
403+
> how a person's edit goes live. The maintainer on the epic (2026-11-22), verbatim:
404+
> 「studio目前的设计是不是太技术,通常每个元数据修改完直接点保存不就行了吗?除了AI会批量改,人类通常是改一个确认一个,是否建议调整」.
405+
> In Studio's designers a person's Save writes the item's draft and then publishes that one item
406+
> (`POST /api/v1/meta/:type/:name/publish`), so the edit is live at once
407+
> (`ui/packages/app-shell/src/views/studio-design/studioSaveBar.tsx#publishSavedItem`; PRs
408+
> [#36597](https://github.com/objectstack-ai/objectstack/pull/36597),
409+
> [#36634](https://github.com/objectstack-ai/objectstack/pull/36634) and
410+
> [#36652](https://github.com/objectstack-ai/objectstack/pull/36652)). Drafts and the package's batch publish
411+
> (`POST /api/v1/packages/:id/publish-drafts`) remain, for an AI's changes. Studio's generic item page still has its
412+
> own Save and Publish; [ADR-0146](./0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md)
413+
> D1's amendment of 2026-11-24 declares its move to the same model. The table is left as written; read row M2 with
414+
> this note.
415+
401416
**Recommended MVP cut:** **M0 + M1 + M2** is the smallest end-to-end product —
402417
it delivers the whole "edit → stage → preview → publish → live" loop a low-code
403418
user expects, defers all the genuinely hard parts (cross-env promotion,

‎docs/adr/0037-live-canvas-draft-preview.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ Discussion after the proposal surfaced the integration question: the AI's design
129129

130130
All write paths converge on the same draft rows; **Publish remains the single commit gate** shared by every surface.
131131

132+
> **Note (2026-11-24, [#36511](https://github.com/objectstack-ai/objectstack/issues/36511) of epic [#36510](https://github.com/objectstack-ai/objectstack/issues/36510); built by [#36597](https://github.com/objectstack-ai/objectstack/pull/36597), [#36634](https://github.com/objectstack-ai/objectstack/pull/36634) and [#36652](https://github.com/objectstack-ai/objectstack/pull/36652)).** A person's Save in Studio's designers still writes the item's draft row, and the item still goes live only through a publish. That publish is now the item's own, issued by the Save itself (`ui/packages/app-shell/src/views/studio-design/studioSaveBar.tsx#publishSavedItem`): a person editing sees no separate Publish step. The top bar's Publish, the package's batch gate, is drawn only while a draft is pending: an AI's draft, or a person's from Studio's generic item page, which still saves drafts until [ADR-0146](./0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md) D1's amendment of 2026-11-24 is built. So Publish remains the commit gate for those drafts, and is no longer a step of a person's edit in a designer. The sentence above is left as written; read "the single commit gate shared by every surface" with this note.
133+
132134
**Boundary rules (each one is a "we will NOT build"):**
133135

134136
1. **One truth.** The canvas has NO store of its own — no "AI workspace" parallel repository. It renders the same `sys_metadata` rows Studio edits.

‎docs/adr/0050-form-layout-vs-presentation.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ADR-0050: Form layout vs presentation — split the overloaded `FormView.type`
22

3-
**Status**: Accepted (2026-10-28, letter A′ on #27032, ruling record 6464210455) — cutover card #27155 (spec) + #27159 (renderer); the 2026-10-20 amendment stands · **Amended** (2026-10-20, letter B′ on [#24692](https://github.com/objectstack-ai/objectstack/issues/24692), ruling record [`6281834942`](https://github.com/objectstack-ai/objectstack/issues/24692#issuecomment-6281834942), maintainer 「同意」) — the list add-record open mode is no longer declared on `addRecord`; see the note under Decision 2.
3+
**Status**: Accepted (2026-10-28, letter A′ on #27032, ruling record 6464210455) — cutover card #27155 (spec) + #27159 (renderer); the 2026-10-20 amendment stands · **Amended** (2026-10-20, letter B′ on [#24692](https://github.com/objectstack-ai/objectstack/issues/24692), ruling record [`6281834942`](https://github.com/objectstack-ai/objectstack/issues/24692#issuecomment-6281834942), maintainer 「同意」) — the list add-record open mode is no longer declared on `addRecord`; see the note under Decision 2. · **Amended** (2026-11-24, [#36086](https://github.com/objectstack-ai/objectstack/issues/36086)) — two dated notes under Decision 2: on an object's list `navigation.mode` is deprecated and no longer picks how a record opens ([#35910](https://github.com/objectstack-ai/objectstack/pull/35910)), and the console's record create and edit forms are the object's own, no longer an internal form view ([#36543](https://github.com/objectstack-ai/objectstack/pull/36543)). Decision 2 and its 2026-10-20 note are left as written.
44
**Deciders**: ObjectStack Protocol Architects
55
**Builds on**: [ADR-0014](./0014-record-form-field-type.md) (record form field type), [ADR-0017](./0017-object-has-many-view.md) (object-bound views), [ADR-0049](./0049-no-unenforced-security-properties.md) (declared ≠ enforced discipline)
66
**Consumers**: `@objectstack/spec` (`ui/view.zod.ts` `FormViewSchema`), `@object-ui/plugin-form` (`ObjectForm` + `TabbedForm`/`WizardForm`/`SplitForm`/`DrawerForm`/`ModalForm`), `@object-ui/app-shell` (`RecordFormPage`, `AppContent`, `useActionModal`), examples + templates form views.
@@ -43,6 +43,10 @@ So `drawer`/`modal`/`split` *as `FormView.type` values* are **redundant with —
4343

4444
> **Note (2026-10-20, ruling record [`6281834942`](https://github.com/objectstack-ai/objectstack/issues/24692#issuecomment-6281834942)):** the list add-record open mode is no longer declared on `addRecord` — `addRecord.mode` and `addRecord.formView` were retired (ADR-0049 enforce-or-remove); the create form is chosen by convention (`formViews.create` when declared, else `form` / `formViews.default`), how it opens stays the renderer's, and a per-list open mode, if ever wanted, is the list's existing `navigation.mode`, never a second enum.
4545
46+
> **Note (2026-11-24, [#35854](https://github.com/objectstack-ai/objectstack/issues/35854), ruling record [`7039654214`](https://github.com/objectstack-ai/objectstack/issues/35854#issuecomment-7039654214), maintainer 「废弃」; built by [#35910](https://github.com/objectstack-ai/objectstack/pull/35910)):** the note above names the list's `navigation.mode` as where a per-list open mode would live. On an object's list (a list view, an object's `listViews`) that key is now deprecated and no longer picks how a record opens. The console has one rule there for every reader: the record's name opens the full page, and the icon shown beside the name while the row is hovered opens the side panel (`ui/packages/app-shell/src/views/objectViewOpenAsPage.tsx#OpenInSidePanelButton`). On such a list `drawer`, `page` and `new_window` still parse and change nothing. `none` still means the rows open nothing (`preventNavigation: true` is the preferred spelling), and `openNewTab: true` still opens the page in a new tab. A page block that carries `navigation` (a list block, the timeline, an embedded view) still honours every value. The 2026-10-20 note is left as written; read its last clause with this note.
47+
48+
> **Note (2026-11-24, [#36425](https://github.com/objectstack-ai/objectstack/issues/36425); built by [#36543](https://github.com/objectstack-ai/objectstack/pull/36543)):** the 2026-10-20 note says the create form is chosen by convention from the object's form views. The console no longer chooses one. Its record create and edit forms (the New and Edit dialog, the full-page form, and a create or edit an action opens) are the object's own: they list the object's fields, less a `showOnCreate: false` field on a create (`ui/packages/app-shell/src/utils/recordFormFields.ts#recordFormFieldNames`), laid out by the object's `fieldGroups` and following the rules on its fields. An internal form view (`formViews.create`, `form`, `formViews.default`) still installs and steers nothing there. A form view still decides its own form in two places: a public form (`sharing.enabled: true`), and a named form a `form`-type action opens. The 2026-10-20 note is left as written; read its convention clause with this note.
49+
4650
3. **Remove `split` from `FormView.type`.** Master-detail is already `subforms` (single-record parent/child) + the list's `NavigationMode:'split'` (list+detail). A form-level `split` is a third, redundant spelling.
4751
4. **`ObjectForm` drops its `drawer`/`modal`/`split` branches** (`DrawerForm`/`ModalForm` become caller-supplied containers; `SplitForm` retires in favour of `subforms`). It keeps `simple`/`tabbed`/`wizard`.
4852

‎docs/adr/0052-audit-is-not-the-activity-feed.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,33 @@ for genuinely semantic events that a field diff can't express.
289289
from becoming change-noise. Enforce-or-remove (ADR-0049) is satisfied: the
290290
flag now has a runtime consumer.
291291

292+
> **Note (2026-11-24, [#36290](https://github.com/objectstack-ai/objectstack/issues/36290),
293+
> ruling record [`7076513167`](https://github.com/objectstack-ai/objectstack/issues/36290#issuecomment-7076513167)).**
294+
> The opt-in default above is reversed. The maintainer's choices on the card, verbatim:
295+
> 「默认显示,可逐个关闭」 and 「能看这个字段的人」. A changed field's old and new values now show on
296+
> the record's activity timeline by default, on every object, with no flag. One rule decides it
297+
> (`packages/spec/src/data/field-history-default.ts#resolveFieldHistory`):
298+
>
299+
> - An object turns the values off for all its fields with `enable.fieldHistory: false`.
300+
> - A field turns its own off with `fieldHistory: false`. `trackHistory: false` is not an off
301+
> switch: it reads as unset.
302+
> - A credential field never shows them.
303+
> - A type whose value has no one-line text, such as media, an embedded structured value, a
304+
> vector or a signature (`FIELD_HISTORY_DEFAULT_OFF_TYPES`, same file), shows them only when
305+
> the field opts in with `fieldHistory: true` or the older `trackHistory: true`.
306+
>
307+
> The object's `enable.trackHistory` keeps its meaning, the ledger view on the record page and
308+
> the derived `history` verb, and turns no values off. A member sees the entries of every record
309+
> they can open, and an entry serves a field's values only to a reader who is served that field
310+
> (`packages/plugins/plugin-audit/src/activity-field-redaction.ts#redactActivityRows`). The audit
311+
> ledger (`sys_audit_log`) is still not granted to members. Built by
312+
> [#36399](https://github.com/objectstack-ai/objectstack/pull/36399),
313+
> [#36580](https://github.com/objectstack-ai/objectstack/pull/36580),
314+
> [#36613](https://github.com/objectstack-ai/objectstack/pull/36613),
315+
> [#36641](https://github.com/objectstack-ai/objectstack/pull/36641) and
316+
> [#36661](https://github.com/objectstack-ai/objectstack/pull/36661). Item 1 is left as written; read
317+
> its opt-in sentence with this note.
318+
292319
2. **Object-level milestone templates (P1, declarative).** For semantic events a
293320
raw diff can't name — *"Deal won — {name} ({amount})"* when `stage` enters
294321
`closed_won`, *"Case resolved — {subject}"* when `status` enters `resolved`.

0 commit comments

Comments
 (0)