Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/adr/0027-metadata-authoring-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,21 @@ production DDL later, collaboration last.
| **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 |
| **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 |

> **Note (2026-11-24, [#36511](https://github.com/objectstack-ai/objectstack/issues/36511) of epic
> [#36510](https://github.com/objectstack-ai/objectstack/issues/36510)).** Row M2's "explicit, batched publish" is no longer
> how a person's edit goes live. The maintainer on the epic (2026-11-22), verbatim:
> 「studio目前的设计是不是太技术,通常每个元数据修改完直接点保存不就行了吗?除了AI会批量改,人类通常是改一个确认一个,是否建议调整」.
> In Studio's designers a person's Save writes the item's draft and then publishes that one item
> (`POST /api/v1/meta/:type/:name/publish`), so the edit is live at once
> (`ui/packages/app-shell/src/views/studio-design/studioSaveBar.tsx#publishSavedItem`; PRs
> [#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)). Drafts and the package's batch publish
> (`POST /api/v1/packages/:id/publish-drafts`) remain, for an AI's changes. Studio's generic item page still has its
> own Save and Publish; [ADR-0146](./0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md)
> D1's amendment of 2026-11-24 declares its move to the same model. The table is left as written; read row M2 with
> this note.

**Recommended MVP cut:** **M0 + M1 + M2** is the smallest end-to-end product —
it delivers the whole "edit → stage → preview → publish → live" loop a low-code
user expects, defers all the genuinely hard parts (cross-env promotion,
Expand Down
2 changes: 2 additions & 0 deletions docs/adr/0037-live-canvas-draft-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ Discussion after the proposal surfaced the integration question: the AI's design

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

> **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.

**Boundary rules (each one is a "we will NOT build"):**

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.
Expand Down
6 changes: 5 additions & 1 deletion docs/adr/0050-form-layout-vs-presentation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ADR-0050: Form layout vs presentation — split the overloaded `FormView.type`

**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.
**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.
**Deciders**: ObjectStack Protocol Architects
**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)
**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.
Expand Down Expand Up @@ -43,6 +43,10 @@ So `drawer`/`modal`/`split` *as `FormView.type` values* are **redundant with —

> **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.

> **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.

> **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.

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.
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`.

Expand Down
27 changes: 27 additions & 0 deletions docs/adr/0052-audit-is-not-the-activity-feed.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,33 @@ for genuinely semantic events that a field diff can't express.
from becoming change-noise. Enforce-or-remove (ADR-0049) is satisfied: the
flag now has a runtime consumer.

> **Note (2026-11-24, [#36290](https://github.com/objectstack-ai/objectstack/issues/36290),
> ruling record [`7076513167`](https://github.com/objectstack-ai/objectstack/issues/36290#issuecomment-7076513167)).**
> The opt-in default above is reversed. The maintainer's choices on the card, verbatim:
> 「默认显示,可逐个关闭」 and 「能看这个字段的人」. A changed field's old and new values now show on
> the record's activity timeline by default, on every object, with no flag. One rule decides it
> (`packages/spec/src/data/field-history-default.ts#resolveFieldHistory`):
>
> - An object turns the values off for all its fields with `enable.fieldHistory: false`.
> - A field turns its own off with `fieldHistory: false`. `trackHistory: false` is not an off
> switch: it reads as unset.
> - A credential field never shows them.
> - A type whose value has no one-line text, such as media, an embedded structured value, a
> vector or a signature (`FIELD_HISTORY_DEFAULT_OFF_TYPES`, same file), shows them only when
> the field opts in with `fieldHistory: true` or the older `trackHistory: true`.
>
> The object's `enable.trackHistory` keeps its meaning, the ledger view on the record page and
> the derived `history` verb, and turns no values off. A member sees the entries of every record
> they can open, and an entry serves a field's values only to a reader who is served that field
> (`packages/plugins/plugin-audit/src/activity-field-redaction.ts#redactActivityRows`). The audit
> ledger (`sys_audit_log`) is still not granted to members. Built by
> [#36399](https://github.com/objectstack-ai/objectstack/pull/36399),
> [#36580](https://github.com/objectstack-ai/objectstack/pull/36580),
> [#36613](https://github.com/objectstack-ai/objectstack/pull/36613),
> [#36641](https://github.com/objectstack-ai/objectstack/pull/36641) and
> [#36661](https://github.com/objectstack-ai/objectstack/pull/36661). Item 1 is left as written; read
> its opt-in sentence with this note.

2. **Object-level milestone templates (P1, declarative).** For semantic events a
raw diff can't name — *"Deal won — {name} ({amount})"* when `stage` enters
`closed_won`, *"Case resolved — {subject}"* when `status` enters `resolved`.
Expand Down
Loading
Loading