Skip to content

Commit e0de07b

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-5c51ya
2 parents d93cef6 + 28ce3d1 commit e0de07b

27 files changed

Lines changed: 538 additions & 104 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): teach that a save and `os validate` refuse `titleFormat`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- `objectstack-data` (object properties table) and `objectstack-formula` (template carriers) no longer call `titleFormat` deprecated: since #29499 the metadata save gate and `os validate` refuse an object that declares it (`title-format-retired`), and it moves to `nameField`. The formula skill drops the sentence that restated the template grammar cell beside it.
11+
- ADR-0079 D3 gains a dated amendment note citing ruling 6574393684 and #29499; the decision is unchanged.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/types': patch
4+
'@object-ui/app-shell': patch
5+
'@objectstack/spec': patch
6+
'@objectstack/platform-objects': patch
7+
'@objectstack/plugin-approvals': patch
8+
---
9+
10+
fix(console): an action another package places on `sys_user` at `record_header` / `record_more` draws again on the user's record page, in the drawer and on the full page (#29951)
11+
12+
Clause-②: no
13+
Metadata-protocol: none
14+
15+
- **The header reads `placedActions: true`.** `page:header`'s `placedActions` (#30018) is now drawn by the console's header renderer (`PageHeaderActions` in `@object-ui/components`): `true` draws every action of the page's object whose `locations` include `record_header` or `record_more`, in declaration order, read from the object's metadata at render time, so an action an installed package adds to the object is drawn without editing the page. Omitted or `false`, an authored `actions` list is still the whole set (#11592). A `true` beside an authored list, which the spec refuses, draws none of the object's actions and is reported once in the console.
16+
- **One placed-header reader.** `placedHeaderActions` (`@object-ui/types`) is the rule both headers read: the synthesized default record page's header in `RecordDetailView` and a `placedActions: true` header. The `page:header` registration publishes the `placedActions` input.
17+
- **The platform record pages opt in.** `sys_user_detail` and `sys_organization_detail` (`@objectstack/platform-objects`) and `sys_approval_request_detail` (`@objectstack/plugin-approvals`) set `placedActions: true` in place of the id lists #27219 froze, which dropped every header action another package places on those objects. The tab strips are unchanged, and every action the lists named is placed at `record_header` / `record_more`, so each still draws.
18+
- `@objectstack/spec`: the `placedActions` describe no longer opens with `[PLANNED — not yet rendered]`, and the `page` liveness record names the reader.

‎.claude/skills/spec-property-retirement/SKILL.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ conversion 已不再覆盖的那位。
173173
⚠ **这是三个独立义务,其中只有一个是字符串匹配。** registry 条目是门禁读的;
174174
conversion 是消费者跟的;D3 条目是升级方的 agent 读的。三个都要写。
175175

176-
- [ ] **一条 `MetadataConversion`**,在 `packages/spec/src/conversions/registry.ts`:
177-
kebab-case 的 `id` 以 `-removed` 结尾、`toMajor`、每键一条
178-
`emit({ from, to: '(removed)', path })`(用共享的 `stripKeys` helper),以及一
179-
个 `fixture`,其 `expectedNotices` 等于**键**数,不是条目数。walker
180-
(`mapCollection`、`mapFlowNodes`、`renameKey`)住在 `conversions/walk.ts`,
176+
- [ ] **一条 `MetadataConversion`**,单独一个模块 `packages/spec/src/conversions/entries/<toMajor>/<id>.ts`
177+
(文件名即 `id`,按名 `export`);手写、无生成器的 `conversions/registry.ts` 加 import 与列表项。
178+
kebab-case 的 `id` 以 `-removed` 结尾、`toMajor`、每键一条 `emit({ from, to: '(removed)', path })`
179+
(共享的 `stripKeys` 住 `entries/shared.ts`),以及一个 `fixture`,其 `expectedNotices` 等于**键**数,
180+
不是条目数。walker(`mapCollection`、`mapFlowNodes`、`renameKey`)住在 `conversions/walk.ts`,
181181
copy-on-write —— 没命中就原样返回输入引用。
182182
- [ ] **一条 `RETIRED_KEYS_BY_MAJOR` 条目**,在 `packages/spec/src/migrations/entries/retired-keys/`
183183
加一个文件(命名见 `entries/README.md`),再跑 `pnpm --filter @objectstack/spec gen:migration-registry`
@@ -213,7 +213,8 @@ conversion 是消费者跟的;D3 条目是升级方的 agent 读的。三个都
213213
- [ ] **一步 D3 链**,在 `packages/spec/src/migrations/registry.ts.template`(`registry.ts` 由
214214
`gen:migration-registry` 从它与 `entries/` 整文件生成并被 git 忽略,在 `registry.ts` 里手改不会
215215
进提交);`conversion.toMajor` **必须等于**该步的 major。**18 步**:conversion 只进
216-
`conversions/registry.ts` 的 `MAJOR_18_CONVERSIONS`,照其头注按标识符排序插入,本步 `conversionIds`
216+
`conversions/registry.ts` 的 `MAJOR_18_CONVERSIONS`:照其头注按标识符插入 `{ conversion, order }`;
217+
其 import 插在后继条目的 import 正上方(头注的「定义」拆分后即 import),本步 `conversionIds`
217218
由它派生;`rationale` 只加一个 `STEP18_RATIONALE` 片段,按其头注插在你 D3 semantic id 的排序
218219
位;尾部追加被两处头注点名的 merge 测试拒收。
219220
**更早的步**:id 加进 `MIGRATIONS_BY_MAJOR[N].conversionIds`,扩写该步 `rationale`。⚠ 没有东西
@@ -260,7 +261,6 @@ conversion 是消费者跟的;D3 条目是升级方的 agent 读的。三个都
260261
`json-schema.manifest/<category>.json`。#5837 起两者都按 category 分片 —— 门
261262
禁把整个目录读成一个集合,退役流程不变;变的只是那一行住在哪个文件。然后
262263
`gen:api-surface`、`gen:docs`;新条目跑 `gen:migration-registry`;D4 投影不提交,本地不重生成。
263-
「改了 X → 重新生成 Y」的表见 AGENTS.md。
264264
- [ ] **Forms** —— 从 `packages/spec/src/**/*.form.ts` 剪掉 `{ field: '<key>' }` 输
265265
入。未强制能力的表单输入是假合规的 UI 半边。原位留一行注释。
266266
- [ ] **i18n bundle** —— 剪掉表单输入会改变抽取出的标签:`pnpm i18n:extract` 重新生

‎content/docs/protocol/objectui/layout-dsl.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ Delete chrome). The list is the whole set the header draws: an action that
9393
declares `record_header` but is not named is not drawn there, and a header with
9494
no `actions` draws none of the object's own actions. `placedActions: true` in
9595
place of the list asks for every action placed at `record_header` /
96-
`record_more`, read live; it is refused beside a list, and the console's header
97-
renderer does not draw it yet. Declare the action, placed at `record_header`,
98-
then name it:
96+
`record_more`, read live, so an action another package places on the object is
97+
drawn without editing the page; it is refused beside a list. Declare the action,
98+
placed at `record_header`, then name it:
9999

100100
{/* os:check-yaml action */}
101101
```yaml

‎content/docs/references/ui/component.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ An any-of group: `{ or: [rule, ...] }` matches a record when ANY of its rules ma
15751575
| **subtitle** | `string \| Record<string, string>` | optional | Page subtitle |
15761576
| **breadcrumb** | `never` | optional | [REMOVED] `page:header` property `breadcrumb` was removed in @objectstack/spec 17 (ADR-0087 D2) — no renderer ever drew a trail for it: objectui drew an empty slot and nothing filled it, and the navigation trail is drawn once, by the app shell's header. Delete the key, whether it was `true` or `false`; the shell's trail is unchanged. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
15771577
| **actions** | `string[]` | optional | Action IDs the header draws, resolved against the actions declared on the page's object. An authored list is the whole set: an action that declares `record_header` (or `record_more`) in its `locations` but is not named here is not drawn, and a header with neither this key nor `placedActions: true` draws none of the object's actions. `placedActions: true` is the other way to say which actions the header draws (every one placed at `record_header` / `record_more`, read live), and the two are refused together. A named action that declares neither location renders nowhere. The host's own Edit / Share / Delete chrome is separate from this list. |
1578-
| **placedActions** | `boolean` | optional | [PLANNED — not yet rendered] Draw every action of the page's object whose `locations` include `record_header` or `record_more`, read live from the object's metadata, in place of an authored `actions` list: an action added to the object later, by any package, is drawn without editing the page. Omit it, or set false, to keep the `actions` list as the whole set. Refused as `true` beside an authored `actions` list: keep one. |
1578+
| **placedActions** | `boolean` | optional | Draw every action of the page's object whose `locations` include `record_header` or `record_more`, read live from the object's metadata, in place of an authored `actions` list: an action added to the object later, by any package, is drawn without editing the page. Omit it, or set false, to keep the `actions` list as the whole set. Refused as `true` beside an authored `actions` list: keep one. |
15791579
| **recordChrome** | `boolean` | optional (default: `true`) | Render the record chrome — the title as a record chip with its copy-id button. Set false on a non-record page (dashboard, landing) to fall back to the bare heading layout. |
15801580
| **showStar** | `never` | optional | [REMOVED] `page:header` property `showStar` was removed in @objectstack/spec 18 (ADR-0087 D2) — the reference console draws no star beside the record title, so the key switched nothing: the record's favorites entry is the header's ⋯ menu, and metadata does not control it. Delete the key, whether it was `true` or `false`; the ⋯ menu's favorites entry is unchanged. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
15811581
| **showCopyId** | `boolean` | optional (default: `true`) | Show the copy-record-id button beside the record title. Part of the record chrome — no effect when `recordChrome` is false. |

‎content/docs/ui/components/index.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ regenerates from the renderer registry. Regenerate it with
109109
| [`page:accordion`](/docs/ui/components/page#page-accordion) | `page` | 3 | [Page Structure](/docs/ui/components/page) |
110110
| [`page:card`](/docs/ui/components/page#page-card) | `page` | 4 | [Page Structure](/docs/ui/components/page) |
111111
| [`page:footer`](/docs/ui/components/page#page-footer) | `page` | 1 | [Page Structure](/docs/ui/components/page) |
112-
| [`page:header`](/docs/ui/components/page#page-header) | `page` | 7 | [Page Structure](/docs/ui/components/page) |
112+
| [`page:header`](/docs/ui/components/page#page-header) | `page` | 8 | [Page Structure](/docs/ui/components/page) |
113113
| [`page:section`](/docs/ui/components/page#page-section) | `page` | 1 | [Page Structure](/docs/ui/components/page) |
114114
| [`page:sidebar`](/docs/ui/components/page#page-sidebar) | `page` | 1 | [Page Structure](/docs/ui/components/page) |
115115
| [`page:tabs`](/docs/ui/components/page#page-tabs) | `page` | 4 | [Page Structure](/docs/ui/components/page) |

‎content/docs/ui/components/page.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Namespace `page`.
5252
| `title` | `string` \| `object` | | Supports \{field\} interpolation and inline translation maps; falls back to the record title |
5353
| `subtitle` | `string` \| `object` | | Same interpolation as Title |
5454
| `actions` | `array` of `string` | | Action IDS — the names of actions declared on the object's own metadata — rendered in the header before any host-injected system actions. An id whose action declares neither record_header nor record_more in its locations renders nowhere. |
55+
| `placedActions` | `boolean` | | Set true to draw every action of the object placed at record_header or record_more, read live from the object's metadata, in place of an Actions list: an action another package adds to the object is drawn without editing the page. Refused beside an authored Actions list: keep one. |
5556
| `recordChrome` | `boolean` | | Set false for the bare h1 header on non-record pages |
5657
| `showCopyId` | `boolean` | | — |
5758
| `maxVisible` | `number` | | How many header actions render as inline buttons on desktop before the rest fold into the overflow menu. A positive integer — the contract rejects 0 and fractional values. Two kinds of action are routed to the overflow menu regardless of this budget and never occupy an inline slot: an action whose locations declare record_more without record_header, and any action with component action:menu. The host's own buttons (the record page's Edit) take no slot and never fold. The first inline action, or the one declaring variant primary, is the one filled primary button; the others are outline buttons. An action declaring variant danger is never the primary: inline it is a destructive button, and in the overflow menu it is a red row below a separator. |

‎content/docs/ui/pages.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ unknown or retired key (`description`, `icon`, `breadcrumb`, `showStar`) is refu
296296
| `title` | Derived from the record on a record page | Heading; `{field}` tokens interpolate against the record, and a token that resolves to nothing renders empty. Set it on a non-record page |
297297
| `subtitle` | — | The line under the title, interpolated the same way |
298298
| `actions` | — | Ids of actions declared on the page's object. An authored list is the whole set: an action that declares `record_header` but is not named is not drawn, and omitting the key draws none of the object's actions. `placedActions` is the other way to say which actions |
299-
| `placedActions` | — | `true` asks for every action of the object placed at `record_header` / `record_more`, read live, in place of an `actions` list, so an action another package adds is drawn without editing the page. Refused beside an authored `actions` list: keep one. Declared ahead of the console's header renderer, which does not draw it yet; today only the synthesized page draws every placed action |
299+
| `placedActions` | — | `true` asks for every action of the object placed at `record_header` / `record_more`, read live, in place of an `actions` list, so an action another package adds is drawn without editing the page. Refused beside an authored `actions` list: keep one. The platform's user, organization and approval request pages set it |
300300
| `recordChrome` | `true` | Draw the title as the record chip (object label, copy-id button, the record's picture when the object names an `imageField`); `false` keeps a bare heading |
301301
| `showCopyId` | `true` | The copy-record-id button in the chip |
302302
| `maxVisible` / `mobileMaxVisible` | 3 / 1 | How many actions render inline before the rest fold into the `⋯` menu |

‎docs/adr/0079-record-display-name.md‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ADR-0079: The record display-name contract — `nameField` is the one canonical primary-title pointer
22

3-
**Status**: Accepted — implemented. **This file is a RETROACTIVE RECONSTRUCTION written 2026-08-08**, not a contemporaneous record; see [Provenance](#provenance-read-this-before-citing-this-file) before you cite it.
3+
**Status**: Accepted — implemented. **This file is a RETROACTIVE RECONSTRUCTION written 2026-08-08**, not a contemporaneous record; see [Provenance](#provenance-read-this-before-citing-this-file) before you cite it. · **Amended** (2026-11-04, [#29506](https://github.com/objectstack-ai/objectstack/issues/29506), ruling of record [`6574393684`](https://github.com/objectstack-ai/objectstack/issues/29007#issuecomment-6574393684) on #29007, letter B) — `title-format-retired` is an error since PR #29499; see the note under D3.
44
- **Decided**: 2026-06-28 (the decision), reconstructed 2026-08-08 (this file)
55
- **Reconstructed by**: #6634
66
- **Implemented by**: [#2434](https://github.com/objectstack-ai/objectstack/pull/2434) (foundation — `nameField` + resolver), [#2458](https://github.com/objectstack-ai/objectstack/pull/2458) (designate-only provisioning at the registry seam), [#2463](https://github.com/objectstack-ai/objectstack/pull/2463) (the author-time gate)
@@ -126,6 +126,18 @@ output, describe marks the old key deprecated."*
126126

127127
### D3 — `titleFormat` is retired in favour of `nameField`
128128

129+
> **Amendment (2026-11-04, #29506).** The diagnostic is no longer advisory.
130+
> Under the ruling of record on #29007 (6574393684, letter B), PR #29499
131+
> (`3557366c02`) made `title-format-retired` an **error**: the metadata save
132+
> gate (`422 INVALID_METADATA` on an active save, a draft promotion and a
133+
> restore) and `os validate` / `os build` / `os lint` refuse an object that
134+
> declares `titleFormat`, and the fix is `nameField`. The key is refused, not
135+
> removed: the schema still parses it, so a stored object that carries it keeps
136+
> loading and reading until its next save. The decision below stands; the
137+
> "deprecated and lint-warned" and "advisory, not an error" sentences and their
138+
> citation describe the code before #29499, and D8's "never errors" no longer covers this rule
139+
> (`packages/lint/src/validate-record-title.ts`, `validateTitleFormatRetired`).
140+
129141
`titleFormat` is deprecated and lint-warned, and an explicit `nameField` takes
130142
precedence over it. It **still parses** — existing metadata keeps loading — so
131143
the diagnostic is advisory, not an error:
@@ -222,6 +234,9 @@ seam (#2434's "Staged (deliberate)" section, kept as the `TODO(ADR-0079)` that
222234

223235
### D8 — The author-time gate is advisory by design
224236

237+
> **Amended (2026-11-04, #29506).** `title-format-retired` is an error since #29499; see the
238+
> amendment under D3. This section's "never errors" and its quotation now describe `title-unresolvable` alone.
239+
225240
`@objectstack/lint`'s `validate-record-title` reports two warnings —
226241
`title-format-retired` (D3) and `title-unresolvable` (`objectTitleCompleteness`
227242
returns `status: 'none'`) — and **never errors**:

0 commit comments

Comments
 (0)