Repository navigation
feat(ui): retire the grid's staged edit model with its host interface - #37437
Conversation
Every editable grid selects a cell first and saves each committed cell on
its own. ObjectGrid drops the cellSelection={false} arm, onBatchSave and the
default batch save; data-table drops the pending bar, Save All and the row
save column, and an editable table without a select-first host and onRowSave
renders read-only with one console warning. DataTableSchema.onBatchSave is
retired on both faces and singleClickEdit is removed.
Claude-Session: https://claude.ai/code/session_01Utp6CZProAps4gBPhsLSVt
Co-authored-by: Claude <noreply@anthropic.com>
Pins of the staged model move to the select-first gestures (click, then double-click, Enter, F2 or typing) and read the per-cell save; pins whose behaviour is gone are deleted with a comment naming the pin that now covers the same ground. Claude-Session: https://claude.ai/code/session_01Utp6CZProAps4gBPhsLSVt Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZProAps4gBPhsLSVt Co-authored-by: Claude <noreply@anthropic.com>
The ADR-0087 D3 entry data-table-staged-edit-retired names what an upgrade still owes once the grid's staged edit model is gone: host code that relied on one transaction per Save All, and help text and tests that describe the old gestures. Nothing it retires is authorable metadata, so it has no conversion. Claude-Session: https://claude.ai/code/session_01Utp6CZProAps4gBPhsLSVt Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 176 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 822c41ead92de9f0c79ff952a39840ad91e265c4 && git checkout 822c41ead92de9f0c79ff952a39840ad91e265c4
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f71d488d6f4d7181cc6e075eb956f92489fb87ba deefadb3a13681d5e31f584317f73a7a92c270e2 && git checkout -B drift-repro f71d488d6f4d7181cc6e075eb956f92489fb87ba && git merge --no-ff deefadb3a13681d5e31f584317f73a7a92c270e2
node scripts/docs-audit/affected-docs.mjs --json f71d488d6f4d7181cc6e075eb956f92489fb87ba |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head deefadb · 2026-11-26T10:31Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37437, card #35827, ruling 7178367040 (option A). Inputs read: the card body and its 12 comments, PR #37314's body (it opened protocol step 19), the PR body and its 2 comments, the net diff of 69 files against ① Derived judgmentsWhat the diff takes away, each read in the head tree:
The −2787 lines are dead at the head. Greps of the whole head tree, covering docs, skills, examples and tests:
② Semver level
Clause-②: no (narrowing) — correct. Nothing is widened; ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. The entry file,
The narrowing against the ruling:
Ways an author can still write the old mode, and what each meets:
Nits. None changes correctness or the contract; each is an accepted deviation or a follow-up, and none needs a head move.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 维护者速读
席位意见:ACCEPT。收窄范围完整声明,删除的代码都已无人使用,拒绝点位正确。6 条 nit 都不影响正确性。 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Approval requested (lands as Tier H: 4040 changed lines over 3000, and a declared narrowing). Seat ACCEPT: comment 7189772467. Contract review PASS at |
… (objectstack-ai#37449) <!-- claude-projects-attribution: {"github_login":"os-bill"} --> _Requested by **Bill** · [project thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wg8ZBQe4UHadd2fGHGeWRW9V)_ repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS Fixes objectstack-ai#35490 Fixes objectstack-ai#37471 Clause-②: yes (widening) Metadata-protocol: added ## What A quantity (`unitConfig` on a `number` field) now renders with its unit on every display face: the grid cell, the form (read-only and edited), and the detail row (DetailSection, the quick-look panel, RelatedList). A unit-code `text` field (`unitMode: 'code'`) shows its unit's name (Open item 8 (A)). - **Choosing a unit (Open item 8, ruled A: 「有下拉」, objectstack-ai#37471).** In a form, a unit code field is a searchable picker (`UnitCodeField`), never a typed box. That covers a `text` field declaring `unitMode: 'code'` and the `unitField` a `record` quantity on the same form points at; the form stamps that pointer (`withUnitCodePointer`) and hands the field its record. The picker lists the record's organization's non-retired `sys_unit` rows, then every standard code, each by its translated name (spec fallback) and limited to the declared `unitDimension`. It stores the code. Read-only, the field shows the unit's name, not the bare code. - **Authorable key (`Metadata-protocol: added`).** `unitConfig` is now declared on `@object-ui/types`' `FormField` / `FormFieldSchema`, by reference to the spec's `FieldSchema.unitConfig`, beside `currencyConfig`, so `objectui validate` accepts it on a hand-authored form field. `@object-ui/types` ships `minor` (the `scale` / `currencyConfig` precedent). The tolerant face now checks the key's value against `UnitConfigSchema` where it passed as an unknown key before. - **Which unit.** Fixed mode uses `unitConfig.unit`. Record mode reads the row's `unitField`. Grid, ListView and RelatedList add the unit column and `organization_id` to their `$select` when the unit column is not shown. - **Name.** An org unit (`sys_unit`, U3) shows its `label`. A standard code shows the platform's name for it in the reader's locale (L2, 2A): the spec English base `STANDARD_UNIT_NAMES`, and each platform bundle serves `messages.standardUnit<CODE>`. The UI reads `app.messages.standardUnit<CODE>` and falls back to the English base. - **Decimals.** These come from the unit row (org unit `decimal_places`, or the `sys_standard_unit_setting` row for a standard code, OI10 (A)). The row is the one whose `organization_id` matches the record's organization (note 7180167601). L4 holds: the display width is `min(unit places, field scale)`. - **Rounding (OI6, ruled A).** The display rounds half away from zero (Intl `halfExpand`) at a fixed width. The stored value, footer totals (summed exact, then formatted), exports, the API and MCP stay exact. No marker is shown. - **Bare code.** A retired ("deleted") org unit, an unknown code, or a reader who may not read `sys_unit` (an external member, comment 7030066814) gets the bare code, never an error. The rows are read once per data-source adapter for the session (the `homeAmountPreview` precedent). Each table is read on its own, so a refusal of one leaves the other usable. ## Server-side home of the names (measured) The platform-objects translation bundles, flat `messages` map, with single-segment keys `standardUnit<CODE>`. The keys are not dotted `units.standard.<CODE>` because `FileI18nAdapter.resolveKey` splits on `.` and walks the parts as nesting (the plugin-audit precedent). The console's served document lays bundles under `app`, so the UI key is `app.messages.standardUnit<CODE>`. English is copied from the spec base, never re-typed. Ten locales are translated, and a pin test holds every locale to exactly the 41 codes. ## Acceptance notes - **platform-catalog row:** deferred to objectstack-ai#37431 (`skills/**` fence). - **Standalone `ObjectGrid` with no `SchemaRendererContext`:** there is no data source, so no unit rows are read. Codes show bare at the field's own width. This known limit is pinned in `gridQuantityUnit-35490.test.tsx`. - **English names are singular,** e.g. `1,235 kilogram`. - **The catalog is cached per adapter for the session.** A unit edited mid-session shows after a reload. A failed read stays unread for the session; this is deliberate, because an external member's refusal is permanent and re-reading per mount would cost a request per grid cell. Follow-ups N4/N5 are on objectstack-ai#37472. - **Grid and detail cells of a pointed unit field** show the stored code. The pointer is stamped on the form face, where the quantity and its unit field sit together. - **Known overlap with objectstack-ai#37436 (objectstack-ai#36806).** Both PRs edit the `const extraFields = [...]` line in `ui/packages/plugin-grid/src/objectGridRowLoad.ts`: this PR appends `...quantityUnitFields`, and objectstack-ai#37436 inserts `...lockOperandFields`. Whichever lands second merges main and keeps both entries. ## Verification - Card tests: core 21, fields 26, components form, plugin-grid 2, plugin-list, plugin-detail 3. green; the fields, core, components-form and schema-catalog suites (13,000+ tests) pass on the picker head. spec `standard-units` 18/18; platform-objects translations 613/613. - Ablations, each restored to blob == HEAD: - resolver → 24/52 red; - org-row pick → 8/48 red; - served-name read → 1/26 red (the zh served-name case); - picker's retired-unit filter → 4/56 red; - form pointer stamp → 1/2 red; - TextField's picker branch → 3/30 red. - Typecheck: spec, platform-objects and fields are clean. `check:api-surface` was regenerated (2 added exports). - Gates: `check-i18n-bundles`, `check-i18n-stale-fill` and `check-i18n-walk-parity` pass. `check-published-readme-exports` passes. - `overlap-check`: clean against main, objectstack-ai#37437, objectstack-ai#37436 and objectstack-ai#37427. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Utp6CXM7nqtiQ3M9JqGAqL <!-- signed: repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…9.0.0-next.0 (objectstack-ai#37916) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoLphuot5c2R2SFweEMeNTrP)_ Fixes objectstack-ai#37522 Clause-②: no Metadata-protocol: none ## 维护者速读 - 升级到 19 的用户在 v19 发布页「自动迁移」一节和升级步骤第三步看到的条目数与名单改为与首个预发布实际所含一致。 - 为什么做:发布页漏写了随首个预发布一起发出的表格暂存编辑退役迁移,计数也偏少。 - 出错会怎样:只是文档文字,读者看到的数字或名单不对,可直接撤回本次修改。 - 要你做什么:无。 ## What changes Docs-only fix to `content/docs/releases/v19/index.mdx`, two places, measured at the `@objectstack/spec@19.0.0-next.0` tag (`33a31dc7`): - The `#migrated-for-you` intro now names both protocol-19 step entries that ship in `19.0.0-next.0` — `protocol-18-range-refused` and `data-table-staged-edit-retired` (objectstack-ai#37437) — and says a later prerelease may add more, listed by `os migrate meta`. It does not enumerate main's later step-19 entries (main holds 12). - The protocol-18 count in the intro and in upgrade step 3 moves from 30 of 31 to the measured 39 of 41. The page states it covers the `19.0.0-next.N` line starting with `19.0.0-next.0`, so step 19 is worded as true for next.0 without claiming the set is closed. ## Acceptance notes - Counts are entry files ADDED between `@objectstack/spec@18.6.0` (`958ee035`, an ancestor of the tag) and the tag under `packages/spec/src/migrations/entries/`: 41 added (37 `semantic/`, 4 `retired-keys/`, 0 `retired-defs/`); 39 carry the `18.` prefix, 2 the `19.` prefix. 8 pre-existing step-18 entries were modified, not added, and are not counted. - The breaking-changes list on this page has no bullet for objectstack-ai#37437; adding one is a new row outside this card's file surface, so it is only noted here. ## Verification <details><summary>Local gate subset (head 5fe68f5782 before trailer amend; content identical at pushed head)</summary> `dispatch-gates.mjs --ran`: 52 derived, 42 run, 10 UNRUN, all 10 needing a built `@objectstack/spec` / `@objectstack/lint` and left to CI. Every run family exited 0, including `check:release-notes`, `check:release-page-status`, `check:doc-anchors`, `check:docs-single-h1`, `check-release-section-coverage.mjs --strict`, `check:nul-bytes`. `overlap-check.mjs`: VERDICT clean exit 0. </details> Read first: the intro hunk at ~:273. Two-minute check: `git ls-tree --name-only 33a31dc packages/spec/src/migrations/entries/semantic/ | grep /19\.` should print exactly the two entries named. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibyBJGiLjzCtE4F6HHB)_ Co-authored-by: Claude <noreply@anthropic.com>
…e onBatchSave refusal describe the select-first model (objectstack-ai#38097) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoPm5yqPvuwrjEV9JhFTrVJj)_ Part of objectstack-ai#37521 repo:objectstack#3 · os-tesla · session_01L9qibxEbSk19qJRPHrm3v9 Clause-②: no Metadata-protocol: none ## 维护者速读 - 表格只剩「先选中、每格提交即保存」一种编辑方式。fields 包随包发布的 README 和注释、`data-table` 只读警告、`onBatchSave` 的拒收文字,现在都按这一种方式说话。 - 读包文档或看控制台警告的宿主开发者不会再被指向已经没有的保存按钮,也不会被叫去挂一个挂不上的类型名。 - 只改文字,并删掉表格里恒为真的判断;哪些写法被拒、键盘怎么用都不变。 - 无。卡的另一半(5 个已发布 CHANGELOG 里的两行)按座位裁定在本 PR 合入后单开纯文档 PR。 ## What changes - **`@object-ui/fields` README, "The grid cell editor's face"** and the `IN_CELL_PANEL_EDIT_WIDGETS` docblock in `FieldEditWidget.tsx`: the sentence "a grid without `cellSelection` opens it over the cell, where Ctrl/Cmd+Enter does nothing and a click outside keeps the text as a pending change for the grid's save buttons" is gone. They now say the grid edits only in its select-first model and opens the rich-text box in the panel under the cell. - **The over-the-cell branch is unreachable, and its residue in `data-table.tsx` is retired.** `editable` is `editableProp && selectFirst && onRowSave`, and `startEdit` returns at once when the table is not `editable`, so no editor ever opens outside the select-first model. Removed as always-true or always-false: the `selectFirst` conjunct in `editsBelow`; in the host-injected editor's key handler, the `selectFirst &&` guards on Ctrl/Cmd+Enter in a textarea, on Tab, and on `commitMoves`; `focusSelectionRef.current = selectFirst` in the injected editor's `commit` and Escape paths (now `true`); `!selectFirst ||` in the injected-editor caret effect. The comment describing Tab "outside the select-first model" is replaced by the invariant. The non-edit `selectFirst` branches (selection, the read-only table's arrow navigation, `onRowClick`'s pointer cursor) are live and untouched, and `CellOverlay`'s `cover` placement stays (plain editors use it). - **N3.** `describeUnsavableEditable` (`dataTableBindDiagnostic.ts`) named `GridCellSelection`, the context's value type, as the thing to mount. It now names `GridCellSelectionProvider` in both places, and in its docblock. - **N4.** `handlerKeyRefusal` (`tombstone.zod.ts`, internal to `@object-ui/types`, not exported) takes an optional fourth argument: a `'retired'` key's own remedy, which replaces the node-type remedy. Omitted, the message is byte-for-byte unchanged. Passed for a `'runtime-slot'` key, it throws at declaration. `DataTableSchema.onBatchSave` passes "`onBatchSave` → `onRowSave` on `object-grid`…", ending "Delete the key." The key is refused exactly as before (`custom` at its own path, a live function too). - **N5.** Removed: the two queries of the deleted `data-table-edit-column-header` test id (autosave and select-first harnesses; both tests keep their live assertions, and the autosave test name drops "no edit column"); `inlineEditPermissionGate.test.tsx` case e and its `headerCellCount` helper; `defaultBatchSave` from the `affordanceGrantMap-12082` comment. - One `patch` changeset for `@object-ui/fields`, `@object-ui/components`, `@object-ui/types`. ## Why objectstack-ai#35827 retired the staged editing model. Shipped text (the fields README is in the package's `files[]`) still described it, and the warning told hosts to mount a type. Contract record 7189751333 on PR objectstack-ai#37437 named all of it. ## Verification Tests added or tightened, each ablated on the committed fix (put back, run, restored from `HEAD`, tree clean): - `data-table-autosave-35685.test.tsx` "without the provider: …": the warning names `` `GridCellSelectionProvider` `` twice and never `` `GridCellSelection` ``. Ablation (both names back): `1 failed | 23 passed (24)`. - `handler-keys-json-refusal-6124.test.ts`: the per-site guidance test now takes an `OWN_RETIREMENT_REMEDY` table (`onBatchSave` → its FROM → TO, `GridCellSelectionProvider`, "Delete the key.", and no `action:button`); a new top-level describe pins the helper itself (default text byte-exact, the remedy replaces only the remedy sentence, a runtime slot refuses one, every own-remedy key is a retired ledger site). Ablations: `onBatchSave` back to the generic call, `1 failed | 343 passed (344)`; the helper ignoring the argument, `2 failed | 342 passed (344)`. - `data-table-select-first-35684.test.tsx`, new describe "an injected editor keeps the model's keys": a host-injected textarea editor commits on Tab and moves right, keeps Enter as a new line and commits on Ctrl/Cmd+Enter with the cell still selected. These hold the two arms whose `selectFirst &&` guard was removed. Ablations: Tab arm removed, `1 failed | 38 passed (39)`; the textarea Ctrl/Cmd+Enter arm removed, `1 failed | 38 passed (39)`. - Case e's replacement: "sends one update with that cell only, draws no save bar, no row Save button and no amber row" in `data-table-autosave-35685.test.tsx` and "no edit-only column, ever" in `data-table-select-first-35684.test.tsx` pin at the table itself that an editable table draws no save column; case e compared three header counts that can no longer differ. - No table without a select-first host edits: already pinned by "no staged fallback" in `data-table-autosave-35685.test.tsx` (no editor opens, no save bar, one warning). <details><summary>Readings at c6bf4f6 (base origin/main 815e882)</summary> - Six touched test files: `Test Files 6 passed (6)`, `Tests 499 passed (499)`. - `vitest run packages/components/ packages/types/ packages/fields/ packages/plugin-grid/ packages/plugin-form/` after an `OS_SKIP_DTS=1` build: `1796 passed | 6 failed | 2 skipped`. The six are spec-parity tests that read `packages/spec/dist/*.d.mts`, which that build does not write ("no module symbol for …/spec/dist/system/index.d.mts"). After a dts build of `@object-ui/plugin-grid^...` and `@object-ui/plugin-form^...`, those six: `Test Files 6 passed (6)`, `Tests 145 passed (145)`. - `type-check` exit 0 for `@object-ui/types`, `components`, `fields`, `plugin-grid`, `plugin-form`. - `eslint` on the ten changed `.ts`/`.tsx` files: 0 errors (warnings pre-existing). - `check:doc-authoring` exit 0; `check:new-line-citations` 0 new; `check-changeset-claims`, `check-changeset-no-major`, `check-adr-0087-registration`, `check-changeset-fixed` exit 0. - `dispatch-gates --tier --repo objectstack-ai/objectstack` on the surface: no path-derived tier mandate; no governed path. </details> ## Acceptance notes - The `.changeset/pre/35827-…` file and the five published CHANGELOG entries (spec, app-shell, components, plugin-grid, types) still say `mount GridCellSelection` / `inside a GridCellSelection host`. Seat ruling: a dedicated docs-only PR after this one merges, which then `Fixes objectstack-ai#37521`. - Seen and left, outside the claimed surface: the `renderSelectFirstTable` docblock in `ui/packages/components/src/__tests__/test-utils.tsx` says "a select-first host (`GridCellSelection`)", naming the model, not the thing to mount. - The test harness `handler-keys-json-refusal-6124.test.ts` is the shared harness for `handlerKeyRefusal`; its per-site guidance assertion had to learn the own-remedy case, which is why it is in the diff. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [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. - [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. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibxEbSk19qJRPHrm3v9 --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxEbSk19qJRPHrm3v9)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
…migrated breaking changes (objectstack-ai#38198) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoQo6LPRXJ2SNdAZZCtm64Wh)_ Fixes objectstack-ai#37922 repo:objectstack#3 · os-tesla · session_01L9qibxF3EazKDPxaJ1vP4X Clause-②: no Metadata-protocol: none ## 维护者速读 - 升级到 19 的应用团队打开 v19 发布页,在「自动迁移」的破坏性变更清单里能看到表格暂存编辑方式已退役:没有了「全部保存」栏,每格提交即保存,以及宿主代码要删什么、改传什么。 - 属于 v19 升级说明这条线,替读发布页升级的团队提前知道表格行为变了,而不是从用户那里听说。 - 只加一条清单和一句统计口径说明,不改任何行为;写错了也只是文字,可以直接撤回。 - 无 ## What changes - `content/docs/releases/v19/index.mdx`, 自动迁移 → **Keys retired or refused at parse**: one bullet for the grid's staged edit retirement, right after the `object-grid` `singleClickEdit` bullet (the same select-first model). It says what retired, what an editable grid does now (no "Save All" bar, each committed cell saved on its own), and what a host drops (`cellSelection={false}`, `onBatchSave`, `data-table`'s `singleClickEdit`) and passes instead (`onRowSave`). It links objectstack-ai#35827 and PR objectstack-ai#37437 and names the registered entry `data-table-staged-edit-retired`. - Same file, **How this list was built**: one sentence saying this entry landed after the `a46efa8c` measurement the page's counts come from, so the 102 / 71 / 31 figures stay as measured and the extra bullet is accounted for. - The bullet does not name the cell-selection host component: in-flight objectstack-ai#38129 is correcting that name in the changeset and CHANGELOGs, and the page stays out of its way. - No changeset (content/docs only). No release PR touched. ## Tests - Docs only; no tests change. <details><summary>Readings at 2f5689b (base origin/main 7605e0c)</summary> - Premise at 7605e0c: in the page's two breaking sections, `staged`, `37437`, `35827`, `cellSelection` and `onBatchSave` had zero hits in any bullet; `data-table-staged-edit-retired` and objectstack-ai#37437 appeared only in the 自动迁移 intro (added by objectstack-ai#37916). - `5dbcc02` (the objectstack-ai#37437 merge) is not an ancestor of `a46efa8c` (`git merge-base --is-ancestor` exit 1), so the page's measured counts do not include it. - The retirement shipped in `19.0.0-next.0`: `ui/packages/plugin-grid/CHANGELOG.md` carries `5dbcc02` under `## 19.0.0-next.0` with the registered-entry marker for `data-table-staged-edit-retired`; the entry lives in `packages/spec/src/migrations/entries/semantic/19.data-table-staged-edit-retired.ts`. - Derived local gate set at 2f5689b: `dispatch-gates.mjs --ran` reconciles 52 derived, 52 run, 0 NOT MEASURED; all 52 exit 0 (record: `/mnt/project-files/card-37922/gates-ran-2f5689b5.list` in the project folder). `check:role-word` exit 0 as the seat asked. - Five gates first answered exit 3 (prerequisite not met) and exit 0 after their prerequisite: `check:doc-formula-expressions`, `check:doc-security-posture` and `check:docs-transcript-drift` after `turbo run build --filter=@objectstack/lint...`; `@objectstack/spec check:docs` after `gen:schema`; `check:skill-examples` after building `@objectstack/client-react` with declarations. - `node scripts/check-issue-citations.mjs --base origin/main`: 3 citations added, 2 resolve as pull requests and 1 as an issue, exit 0. </details> ## Acceptance notes - Out of scope, handed to the seat (it files them as a separate card): the page lists only changesets pending at `a46efa8c`, and a rough grep of `.changeset/pre` finds about 27 breaking or registered changesets added after it across `19.0.0-next.0`..`next.2`; the page header says no 19.x is published while npm's `next` tag reads `19.0.0-next.2`. ## Verification Read first: 1. `content/docs/releases/v19/index.mdx`, the new bullet under "Keys retired or refused at parse". 2. The same file, the added sentence at the end of "How this list was built". Two-minute check: `git show origin/main:content/docs/releases/v19/index.mdx | grep -c 37437` prints 1 (the intro only); on this branch the same grep on the file prints 3. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxF3EazKDPxaJ1vP4X)_ Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
…g, 56 changesets added) and state what npm publishes (objectstack-ai#38645) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9St4eUWHFcCKuRUrCZPperJ)_ Fixes objectstack-ai#38189 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:v19 发布页的 breaking 清单补上 11 月 26 日之后合进来的 56 条改动(其中 30 条还在 main 上、下一次预发布才带上,页上逐条标明),计数和页头的发布状态也改成现在 npm 上的真实情况。 - 为什么做:升级到 19 的人把这页当完整清单用;原清单只数到 19.0.0-next.0 的输入,之后 next.1、next.2 和 main 上的 breaking 改动大多没列。 - 出错会怎样:只改一个文档页,不影响任何代码或发布;某条写错了,读者会被误导,但直接撤回这个改动即可恢复原页。 - 要你做的:无。 ## What changes `content/docs/releases/v19/index.mdx` only. - **Header.** The publication sentence now states what npm answers: `latest` is 18.6.0, `next` is `19.0.0-next.2`; the line's versions on npm are `19.0.0-next.0` (2026-11-26) and `19.0.0-next.2` (2026-11-28). `19.0.0-next.1` was versioned on `main` (30a8047) and is not on npm, so its changes first ship in `next.2`. - **How this list was built.** Re-measured at `6eb23c87` (origin/main at start, 2026-11-29) with the method the page states: `classifyReleaseBullet` over every changeset on `main` — the 1,185 in `.changeset/pre/` (consumed by the next.0, next.1 and next.2 version passes) and the 219 still pending. 159 breaking from 155 PRs: 98 to act on, 61 registered. - **56 new lines' worth of changesets**, each sorted by the classifier into 需手动处理 (27) or 自动迁移 (29), placed under the page's existing topic headings, with three new ones: 需手动处理 → Knowledge; 自动迁移 → Knowledge sources, Sharing and permissions. The 30 still pending carry "— on `main`". - **自动迁移 intro** and **Coming from 18.x step 3**: the registered split restated in changesets (31 on the protocol-19 step, 30 on the protocol-18 step, of 61). - **Callout**: no longer says no prerelease was published. ## Tests The classifier run (script in the dev's scratchpad; it imports `classifyReleaseBullet` from `scripts/release-github-releases.mjs` and feeds each changeset body as a CHANGELOG bullet, `- ` on the first line and two-space indent on the rest), at `b03fd5f5`'s parent tree `6eb23c87` (the diff touches no changeset): <details><summary>Raw counts</summary> ``` ALL 1404 {"manual":98,"migrated":61,"other":830,"added":403,"semantic":12} OLD (in a46efa8 set) 950 {"migrated":31,"manual":71,"other":563,"added":278,"semantic":7} NEW (after a46efa8) 454 {"manual":27,"other":267,"added":125,"migrated":30,"semantic":5} NEW next.0 45 {"other":27,"added":13,"migrated":1,"semantic":2,"manual":2} NEW next.1 138 {"manual":9,"other":80,"migrated":12,"added":36,"semantic":1} NEW next.2 52 {"added":11,"other":38,"manual":3} NEW pending 219 {"added":65,"other":122,"migrated":17,"manual":13,"semantic":2} missing-from-tree of a46 set: none ``` The same function over the 950 files as they stood at `a46efa8c` (`git show a46efa8:.changeset/FILE`): `{"migrated":31,"manual":71,"other":563,"added":278,"semantic":7}`, and 0 of the 950 changed section between `a46efa8c` and `6eb23c87` — the page's first count reproduces exactly. </details> <details><summary>The 57 breaking changesets added after a46efa8 (pass · section · PR · file)</summary> ``` next.0 manual 37477 37004-retire-knowledge-ragflow.md next.0 manual 37491 36964-flow-option-label-filters.md next.0 migrated 37437 35827-data-table-staged-edit-retired.md (already on the page) next.1 manual 37605 31908-p4c-sealed-expiry.md next.1 manual 37640 37604-platform-record-followups.md next.1 manual 37668 37104-knowledge-settings-readers.md next.1 manual 37720 37682-i18n-retire-build-chat-keys.md next.1 manual 37720 37682-retire-build-chat-frontend.md next.1 manual 37818 37608-disabled-holder-publish-rollback-refused.md next.1 manual 37883 37575-first-render-grid-shell-passes.md next.1 manual 37900 36689-mcp-stdio-disabled-package-every-caller.md next.1 manual 37902 37678-knowledge-turso-settings-group.md next.1 migrated 37366 37086-define-metadata-form-rename.md next.1 migrated 37366 37086-form-metadata-type.md next.1 migrated 37371 36055-view-all-stops-voting-on-fields.md next.1 migrated 37513 35143-data-model-publish-checks.md next.1 migrated 37584 37499-disabled-holder-unbound-row-bare-write-refused.md next.1 migrated 37600 36595-related-list-key-under-arrangement.md next.1 migrated 37676 37304-knowledge-source-governed-type.md next.1 migrated 37783 37712-agent-model-provider-retired.md next.1 migrated 37807 35143-seeds-actions-checks.md next.1 migrated 37840 36377-flow-bare-ordering-record-date-arithmetic.md next.1 migrated 37870 37613-book-audience-one-gate.md next.1 migrated 37910 37717-lookup-depends-on-param-computed-field.md next.2 manual 37948 37851-disabled-holder-own-row-publish-rollback-refused.md next.2 manual 38028 managed-email-password-held-off.md next.2 manual 38042 36679-secret-rewrap-confirmation-exit.md pending manual 37896 runtime-object-less-action-no-record.md pending manual 37963 37467-knowledge-title-arm-retired.md pending manual 37982 37907-knowledge-turso-test-connection.md pending manual 38038 38019-knowledge-source-review-follow-ups.md pending manual 38085 37622-related-list-keys-agree-under-arrangement.md pending manual 38180 auth-switches-read-declaration.md pending manual 38209 35879-served-schema-platform-stamped-keys.md pending manual 38268 sec2-wf9p-f12.md pending manual 38269 37752-app-list-edit-with-ai-removed.md pending manual 38310 38041-knowledge-source-closure-system-object.md pending manual 38431 36987-auth-updateuser-returns-void.md pending manual 38452 38377-retire-split-algorithm-version.md pending manual 38580 36057-scenarios-delete-agent-confirmation-names.md pending migrated 37924 37856-ask-ai-action-type-retired.md pending migrated 37929 36495-action-locations-acted-on.md pending migrated 37971 37307-knowledge-source-references.md pending migrated 38001 automation-variable-keys-reserved-segments.md pending migrated 38013 37983-knowledge-source-save-needs-the-service.md pending migrated 38060 37961-knowledge-source-unmounted-adapter-refused-at-save.md pending migrated 38096 34562-record-structural-lint.md pending migrated 38107 35143-views-dashboards-checks.md pending migrated 38145 37214-chart-series-measure-format-refused.md pending migrated 38168 36544-form-view-modal-size-retired.md pending migrated 38216 33912-share-unknown-recipient-ledger.md pending migrated 38216 33912-share-unknown-recipient.md pending migrated 38273 33806-pending-confirmation-service-one-seam.md pending migrated 38299 35924-publish-reparses-object-draft.md pending migrated 38398 37753-build-progress-frame-retired.md pending migrated 38470 38369-knowledge-held-without-embedder-or-store.md pending migrated 38545 38150-adopt-orphans-door-retired.md ``` PR = the `(#N)` of the commit that added the changeset (`git log --diff-filter=A`). The pass is the version commit that moved the file into `.changeset/pre/`: next.0 33a31dc, next.1 30a8047, next.2 9d111a7 (`packages/spec/package.json` reads `19.0.0-next.0/1/2` at each). </details> <details><summary>Page cross-checks</summary> - Every one of the 155 PRs behind a breaking changeset is linked on the page (0 missing), and the page links no PR outside that set. - Each of the 30 pending changesets sits on a line carrying "— on `main`", and no published one does. - `!`-titled first-parent commits since 18.6.0 (958ee03) to `6eb23c87`: 135 (87 to `a46efa8c`, as the page said); all 135 are in the list. - Registered markers resolved to their entry files (`packages/spec/src/migrations/entries/*/N.*`, `packages/spec/src/conversions/entries/N/`, and metadata-core's forward conversion for `permission-view-all-fields-beside-record-bypass`): the 30 registered changesets added after `a46efa8c` name 39 ids, all on step 19; the 31 before it name 33 ids, 32 on step 18 and `protocol-18-range-refused` on step 19. </details> ## Acceptance notes - **Pending changesets are in the list.** The card's done-when covers every changeset between `a46efa8c` and the measurement sha; 30 of those are still in `.changeset/` and ship in the next cut, so their lines are marked "on `main`" and the intro says so. - **`19.0.0-next.1` is not on npm.** `npm view PKG versions` for `@objectstack/spec`, `core`, `cli`, `runtime` and `@object-ui/i18n` lists `19.0.0-next.0` and `19.0.0-next.2` only. The header states that fact and no more. - **The registered split is now counted in changesets, not entries.** The old page said 41 registered entries, 39 on protocol 18. Counting the ids in the registered markers gives 33 at `a46efa8c` (32 on step 18), so the 41/39 could not be reproduced from any stated method. The rewritten intro and step 3 count changesets (31 on step 19, 30 on step 18, of 61), which match the bullets one to one. - **Followed the classifier where a title has no `!`:** objectstack-ai#37605, objectstack-ai#37883, objectstack-ai#37963, objectstack-ai#38209 and objectstack-ai#38269 are breaking by their banner or their `(narrowing)` arm; objectstack-ai#38209's Clause-② reads "no (narrowing …)", which the classifier counts as breaking although the body says nothing a client sends is refused. Listed as classified; no changeset changed. - **objectstack-ai#37513** merged before the next.0 cut but its changeset was consumed by next.1 (its body says the next.0 CHANGELOG missed it). - **One line, several changesets**: objectstack-ai#37720, objectstack-ai#37366 and objectstack-ai#38216 each carry two changesets; objectstack-ai#37818 with objectstack-ai#37948, objectstack-ai#38038 with objectstack-ai#38310 and objectstack-ai#38013 with objectstack-ai#38060 share a line. The existing 102 lines were not rewritten. - **Counts on a release page**: each is anchored to a named measurement sha, the snapshot the card asks for; it is not a count kept in sync with the tree. - **objectstack-ai#37437** (closed card objectstack-ai#37922's bullet) is not added twice. - **Check Changeset** will be red: this docs-only PR publishes nothing from any package, the `skip-changeset` case, and the dispatch opens it without labels, so that label is the seat's to apply. ## Verification Read first, by risk: the method paragraph and header (`index.mdx` lines 6-47), the 自动迁移 intro, then the new 需手动处理 → Knowledge block. Two-minute check: `git show 6eb23c8:.changeset/pre/37851-disabled-holder-own-row-publish-rollback-refused.md | head -12` shows the `fix(metadata-protocol)!` summary and the BREAKING banner behind the objectstack-ai#37948 line; `npm view @objectstack/spec dist-tags` prints `{ latest: '18.6.0', next: '19.0.0-next.2' }`. <details><summary>Local gate readings at b03fd5f</summary> ``` dispatch-gates --commands at b03fd5f: 52 commands (1 path changed) first pass: 47 exit 0; 5 exit 3/1 = PREREQUISITE NOT MET (lint, spec, client-react unbuilt), re-run after building the closures under os-verify-lock (VERDICT command-exit 0 both): pnpm --filter '@objectstack/lint...' build ; pnpm --filter '@objectstack/client-react...' build final: 52 of 52 :: exit 0 ✓ dispatch-gates --ran: 52 derived famil(ies) accounted for — 52 run, 0 NOT-MEASURED (a DERIVED zero — all 52 recorded an exit code and none of them is 3). check-release-page-status: OK — 3 GA major(s) in scope (v16, v17, v18) ``` </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmRar3Kkg6SpwVgaaVE <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE --> Co-authored-by: Claude <noreply@anthropic.com>
Fixes #35827
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: none —
skills/**never taught the grid's host props (cellSelection,onBatchSave,singleClickEdit, "Save All" have zero hits there); none of them is authorable metadata.维护者速读
What changes
Ruling A on the card ("the old mode and its interface retire together"):
@object-ui/plugin-grid: thecellSelection={false}arm ofObjectGrid,onBatchSaveand the default batch save are removed.cellSelectionaccepts onlytrue(ask for select-first on a read-only grid). The default cell save (defaultRowSave) keeps only the select-first path: rule check, claim-answer warnings,If-Matchwrite, conflict dialog, Undo toast. The record verdicts are now asked on first cell selection only (the mount-time ask served the staged arm).@object-ui/components:data-tableloses the staged arm (pending-changes bar, Save All / Cancel All, the row save/cancel column, click-to-edit, the amber tints) and its fallback copy rows. Ruling term (2), bare-primitive arm: loud refusal. An editabledata-tableedits only inside aGridCellSelectionhost that also passesonRowSave; otherwise it renders read-only and logs one[ObjectUI] DataTable editable:console warning naming what is missing. Writing through a data source the table does not own was rejected because the primitive has noobjectNameor record identity of its own.@object-ui/types:DataTableSchema.onBatchSaveis?: neveron the TS face and aretiredhandler-key refusal on the zod mirror;DataTableSchema.singleClickEditis removed (it only chose how the staged editor opened). Parity ledgers updated (KnownDrift 92 to 91, RuntimeOnlyDeclared 31 to 30). ThekeyboardNavigationdescribe drops its staged sentence.@object-ui/app-shell:ResourceListPagestops passingcellSelection={false}. It is read-only, so it keeps click-to-open (assumption A1, measured: its 14 test files pass, and a read-only grid never mounts the select-first provider).content/docs/frontend/plugins/plugin-grid.mdxand the plugin-grid README describe the one editing model and theonRowSavehand-off..changeset/35827-data-table-staged-edit-retired.mdwith both declaration lines, the BREAKING banner and the FROM/TO table.@objectstack/spec: the ADR-0087 D3 entrydata-table-staged-edit-retired(packages/spec/src/migrations/entries/semantic/19.data-table-staged-edit-retired.ts). Protocol 19 opened on main while this was in flight, so the entry is a step-19 file; step 19's rationale is one hand-written string, soregistry.ts.templateis untouched. No conversion: nothing it retires is authorable metadata.Outside-host census (ruling premise clause): public clones of
hotcrmandgalleryat their default-branch heads have zero hits forcellSelection={false}andonBatchSave. No named outside host, no fork.Tests
Staged-path pins either migrated to the select-first gestures (click, then double-click, Enter, F2 or typing; reading the per-cell save) or were deleted together with the behaviour they pinned, each deletion leaving a comment that names the pin covering the same ground. Deleted files:
data-table-batch-per-row-12292,data-table-refusal-cells-27520,ObjectGrid.inlineEditPendingKeyedByRecord-12310. New helpers incomponents/src/__tests__/test-utils.tsx:renderSelectFirstTableandopenCellEditor.Readings
@object-ui/components: 4958 passed@object-ui/plugin-grid: 2774 passed@object-ui/types: 10512 passedResourceListPage*: 14 files, 105 passedcheck-adr-0087-registrationwas red until the entry landed and is green now;@objectstack/spec check:skill-examplesrefused (exit 3) because@objectstack/client-reactwas not built in this container, and nothing underskills/**or that package is touchedcheck-plugin-teardown-shape --self-testrefused for a shallow clone andcheck:dual-build-cjs-loadsfor an unbuiltknowledge-turso, both outside this changesrc/migrations) greendeefadb3: 487 files, 4129 passed, 68 skipped, 0 faileddeefadb3: one CLI integration file timed out in its 480 s setup hook; the same file passes locally on the same head (54 of 54), so its failed job was re-run onceAcceptance notes
packages/specfence. The claim's Amendment 1 admits the one semantic entry file, and the maintainer approved it by name; it is the onlypackages/specpath this diff touches.'@objectstack/spec': minoris in the changeset with it.table.saveAll,table.cancelAll,table.modified,table.saveRow,table.cancelChanges; nothing reads them now. Left for a follow-up so this diff stays off the locale files.ui/packages/fields/README.md(around lines 145 to 147) andFieldEditWidget.tsx(around lines 216 to 217) still describe a grid withoutcellSelection.ui/packages/fields/**is outside this claim.useRecordCrudVerdicts'updateOnMountoption has no caller left; removing it is a small follow-up.Verification
Files to read first, by risk:
ui/packages/plugin-grid/src/ObjectGrid.tsx:defaultRowSave(the only save path now) and thehostCellSelectionderivation.ui/packages/components/src/renderers/complex/data-table.tsx: theselectFirst && onRowSaveedit gate and the read-only fallback.ui/packages/types/src/zod/data-display.zod.ts: theonBatchSaveretired refusal.Two-minute check:
pnpm --dir ui exec vitest run packages/components/src/__tests__/data-table-autosave-35685.test.tsxpasses, and its "no staged fallback" describe shows an editable table with no host rendering read-only with exactly one warning line.Generated by Claude Code