Skip to content

feat(ui): retire the grid's staged edit model with its host interface - #37437

Merged
os-zhuang merged 6 commits into
mainfrom
claude/project-thread-aa564x
Nov 26, 2026
Merged

os-zhuang merged 6 commits into
mainfrom
claude/project-thread-aa564x

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

维护者速读

  • 用户能看到什么变化:所有可编辑表格只剩一种编辑方式,单击选中单元格、双击或回车进入编辑、提交即保存;“全部保存”栏和行内保存按钮全部消失。
  • 为什么做:两套编辑模式并存,旧的暂存模式只剩一个宿主属性在用,按你的裁决让旧模式和它的接口一起退役。
  • 出错会怎样:自己画表格的 React 宿主若还写着旧属性,升级后类型检查直接报错;没有保存通道的裸表格只读显示并在控制台警告一次,可整版回退。
  • 要你做什么:本 PR 约 4000 行改动,超过三千行,需要你本人落地。

What changes

Ruling A on the card ("the old mode and its interface retire together"):

  • @object-ui/plugin-grid: the cellSelection={false} arm of ObjectGrid, onBatchSave and the default batch save are removed. cellSelection accepts only true (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-Match write, 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-table loses 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 editable data-table edits only inside a GridCellSelection host that also passes onRowSave; 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 no objectName or record identity of its own.
  • @object-ui/types: DataTableSchema.onBatchSave is ?: never on the TS face and a retired handler-key refusal on the zod mirror; DataTableSchema.singleClickEdit is removed (it only chose how the staged editor opened). Parity ledgers updated (KnownDrift 92 to 91, RuntimeOnlyDeclared 31 to 30). The keyboardNavigation describe drops its staged sentence.
  • @object-ui/app-shell: ResourceListPage stops passing cellSelection={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).
  • Docs: content/docs/frontend/plugins/plugin-grid.mdx and the plugin-grid README describe the one editing model and the onRowSave hand-off.
  • Changeset .changeset/35827-data-table-staged-edit-retired.md with both declaration lines, the BREAKING banner and the FROM/TO table.
  • @objectstack/spec: the ADR-0087 D3 entry data-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, so registry.ts.template is untouched. No conversion: nothing it retires is authorable metadata.

Outside-host census (ruling premise clause): public clones of hotcrm and gallery at their default-branch heads have zero hits for cellSelection={false} and onBatchSave. 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 in components/src/__tests__/test-utils.tsx: renderSelectFirstTable and openCellEditor.

Readings
  • @object-ui/components: 4958 passed
  • @object-ui/plugin-grid: 2774 passed
  • @object-ui/types: 10512 passed
  • plugin-list, plugin-view, i18n, plugin-form, data-objectstack onMutation: 7654 passed, 0 failed
  • app-shell ResourceListPage*: 14 files, 105 passed
  • type-check: types, components, plugin-grid, plugin-list, app-shell clean
  • eslint on the touched files: no errors
  • dispatch gates, first round: 70 of 73 green; check-adr-0087-registration was red until the entry landed and is green now; @objectstack/spec check:skill-examples refused (exit 3) because @objectstack/client-react was not built in this container, and nothing under skills/** or that package is touched
  • the 41 gates the spec file adds: 39 green; check-plugin-teardown-shape --self-test refused for a shallow clone and check:dual-build-cjs-loads for an unbuilt knowledge-turso, both outside this change
  • spec migration tests (src/migrations) green
  • dogfood battery on deefadb3: 487 files, 4129 passed, 68 skipped, 0 failed
  • CI Test Core 5/10 on deefadb3: 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 once

Acceptance notes

  • packages/spec fence. The claim's Amendment 1 admits the one semantic entry file, and the maintainer approved it by name; it is the only packages/spec path this diff touches. '@objectstack/spec': minor is in the changeset with it.
  • Size. About 4000 changed lines (1216 added, 2787 removed), above the 3000-line line, so this lands by the maintainer.
  • Dead locale keys. The locale packs still carry 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.
  • Fenced, now stale. ui/packages/fields/README.md (around lines 145 to 147) and FieldEditWidget.tsx (around lines 216 to 217) still describe a grid without cellSelection. ui/packages/fields/** is outside this claim.
  • Unused option. useRecordCrudVerdicts' updateOnMount option has no caller left; removing it is a small follow-up.

Verification

Files to read first, by risk:

  1. ui/packages/plugin-grid/src/ObjectGrid.tsx: defaultRowSave (the only save path now) and the hostCellSelection derivation.
  2. ui/packages/components/src/renderers/complex/data-table.tsx: the selectFirst && onRowSave edit gate and the read-only fallback.
  3. ui/packages/types/src/zod/data-display.zod.ts: the onBatchSave retired refusal.

Two-minute check: pnpm --dir ui exec vitest run packages/components/src/__tests__/data-table-autosave-35685.test.tsx passes, 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

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>
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>
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 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
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 176 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json f71d488d6f4d7181cc6e075eb956f92489fb87ba → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 822c41ead92de9f0c79ff952a39840ad91e265c4 — the merge of head deefadb3a13681d5e31f584317f73a7a92c270e2 into base f71d488d6f4d7181cc6e075eb956f92489fb87ba, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head deefadb · 2026-11-26T10:31Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: deefadb3a13681d5e31f584317f73a7a92c270e2
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.data-table-staged-edit-retired.ts + ui/packages/components/src/renderers/complex/data-table.tsx, ui/packages/components/src/renderers/complex/dataTableBindDiagnostic.ts, ui/packages/components/src/context/gridCellSelection.tsx, ui/packages/plugin-grid/src/ObjectGrid.tsx, ui/packages/plugin-grid/src/objectGridRowVersion.ts, ui/packages/plugin-grid/src/objectGridTranslations.ts, ui/packages/types/src/data-display.ts, ui/packages/types/src/objectql.ts, ui/packages/types/src/zod/data-display.zod.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx
Security-touching: no

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 origin/main (merge base df0894a664), the 74 check-runs on the head, and both attempts of run 45789943743. The template prints no security line on this face; the one above is written because the dispatch asked for it, and nothing on this PR's landing path reads it.

① Derived judgments

What the diff takes away, each read in the head tree:

  • ObjectGridComponentProps.cellSelection: boolean becomes true (ObjectGrid.tsx:452). Right. At runtime hostCellSelection = cellSelectionProp === true || inlineEditable (:1335), so an editable grid is always select-first and false can no longer keep the staged arm.
  • ObjectGridComponentProps.onBatchSave: declaration deleted, destructuring deleted, defaultBatchSave and saveRowsClaimed deleted, and the onBatchSave ?? defaultBatchSave wire on the built data-table node deleted. Right. ObjectGridComponentProps has no index signature, so an explicit JSX attribute is an excess-property error.
  • DataTableSchema.onBatchSave: the TS face is ?: never (data-display.ts:1798) and the zod mirror moves from 'runtime-slot' to 'retired' (data-display.zod.ts:544). Right. The parse refused the key by name before and still does; only the disposition and its message changed. Pinned by RetiredIsNever and the 60/23 ledger counts in handler-keys-json-refusal-6124.test.ts.
  • DataTableSchema.singleClickEdit: deleted from the interface. It never had a zod arm (it was a RuntimeOnlyDeclared key). Right as a removal: BaseSchema carries no index signature, so a fresh literal that sets it fails tsc. It is a deletion, not this package's ?: never tombstone; see N1.
  • data-table behaviour: editable = editableProp && selectFirst && typeof schema.onRowSave === 'function' (data-table.tsx:1668-1669). The pending-changes bar, Save All, Cancel All, the row save and cancel buttons, the edit-only column header, click-to-edit, the amber tints, saveRow, saveBatch, erroredRows and the non-select-first focus-return branch are gone. Right. Each removed branch was reachable only with selectFirst false or autosaves false, and editable is now false in both.
  • Exports removed: BatchSaveOutcome (objectGridRowVersion.ts, an internal module) and five fallback copy rows in TABLE_DEFAULT_TRANSLATIONS. Right. One export is added: describeUnsavableEditable with DATA_TABLE_EDITABLE_DIAGNOSTIC_PREFIX.
  • Record verdicts: the updateOnMount argument is dropped from the one useRecordCrudVerdicts call. Right. It was true only when inlineEditable && !hostCellSelection, which cannot hold any more.
  • Declarations: the PR body and the changeset both carry line-initial Clause-②: no (narrowing) and Metadata-protocol: narrowed. The changeset has the BREAKING banner, a five-row FROM/TO table, the one-line fix and the marker adr-0087: registered data-table-staged-edit-retired. Each removed item above has its FROM/TO row. narrowed is the ruled kind (term 4) and holds on content: a data-table key leaves the interface, and an authored editable: true with no save path is now refused where it used to stage.

The −2787 lines are dead at the head. Greps of the whole head tree, covering docs, skills, examples and tests:

  • defaultBatchSave, BatchSaveOutcome, saveRowsClaimed, saveBatch, cancelAllChanges, cancelRowChanges, erroredRows, pendingCellFocusRef, table-save-refusal: zero code references. One stale comment survives (N5).
  • onBatchSave: only the tombstone, the zod refusal, the comments that explain the retirement, the pins, the docs' upgrade lines and the changesets.
  • cellSelection={false}, cellSelection: false, onBatchSave=: zero in ui/**, examples/**, packages/** and skills/**, outside prose that names the retirement.
  • skills/** and examples/**: zero hits for onBatchSave, cellSelection, Save All, saveAll. The PR's Skills-docs: none holds.
  • No host other than ObjectGrid builds an editable data-table or supplies onRowSave. GridCellSelectionProvider is mounted in one place, ObjectGrid.tsx:5325. So no in-tree surface falls into the new read-only arm.
  • git merge-tree of the head onto origin/main at 54ea3c8c38 is clean. The 8 commits main gained since the PR's last merge add no use of any retired name.

② Semver level

minor on @object-ui/types, @object-ui/components, @object-ui/plugin-grid, @object-ui/app-shell and @objectstack/spec matches AGENTS.md: a narrowed kind takes at least minor on each package the diff moves, and a breaking change keeps its banner at that level. @objectstack/spec: minor goes with the entry file, as in #37314. @object-ui/data-objectstack and @object-ui/plugin-list change comments only and rightly carry no bump. Check Changeset and its ADR-0087 step are green on the head.

Clause-②: no (narrowing) — correct. Nothing is widened; describeUnsavableEditable is an added export of a diagnostics module, not an accept-set.

③ Boundary flags

  • SQL push-down: not applicable. The diff holds no query, id materialisation or join.
  • open_questions in the os-dev report: empty.
  • Approval for the packages/spec entry: none is recorded. The claim 7181103894 fences out packages/spec/**. Fence amendment 1 (7181311810) admits the entry file, but it is the seat's own comment and quotes no maintainer. The PR body and the os-dev report say the maintainer approved it by name; no comment on the card or the PR quotes that approval, and the o5-U thread is outside this review's inputs. Ruling term 4 does order an ADR-0087 entry, and such entries live only under packages/spec. Escalated: the maintainer lands this PR himself (over 3000 lines), so his merge is the approval; a quoted line on the card would close the record.
  • Dogfood battery: the report's dogfood_battery opens with deefadb3, the 8-hex prefix of the head, not the full 40-hex sha. BATTERY_SHA_SHAPE in label-write.mjs takes 7 to 40 hex, so the land gate reads it as pinned to this head. Reported: VERDICT command-exit 0, 487 files passed and 3 skipped of 490, 4129 tests passed and 68 skipped of 4197, no failure. Full battery, on the final head, as ruling term 4 asks.
  • Test Core (5/10), attempt 1: unrelated to this diff.
    • Signature: packages/cli/src/commands/migrate/data-commands.absent-database.integration.test.ts:703:3, Hook timed out in 480000ms. A timeout, not an assertion. The run reported 220 of 221 files passed and 2732 tests passed.
    • It is a known flake: open card cli test: data-commands.absent-database.integration.test.ts times out its hook at 480 s in a merge-queue Test Core shard #37183, filed 2026-11-25 against merge-queue run 45528039199 of ci(temporal-conformance): PostgreSQL service on pgvector's PG 16 image; merge-queue run on live paths #37155, same shard, same file, same line.
    • Attempt 2 of the same job on the same head is green, and all 74 check-runs on the head are success or skipped.
    • Does a changed path feed the test? Nominally yes: the hook spawns the source CLI 46 times, the CLI imports @objectstack/spec, and the diff adds one spec file. That file is a 36-line constant of strings and adds no work to a boot. No path under packages/cli is in the diff.
    • So the first of the seat's three facts (import closure disjoint from the diff) does not hold on its letter, and the re-run stands on the known-signature branch instead. The audit comment that branch asks for is not on the PR; the PR body and the report carry the account.
  • The three noted-not-filed items:
    • Dead locale keys (table.saveAll, table.cancelAll, table.modified, table.saveRow, table.cancelChanges; still in the locale packs, no reader): no new card. Dead strings are outside the filing gate. They belong to the v19 line's existing @object-ui/i18n retirement of released keys no code reads; a comment on that family's card carries them.
    • ui/packages/fields/README.md:145-149 and FieldEditWidget.tsx:216-219: needs a card. The README ships in the package (files[]) and still says a grid without cellSelection opens the rich-text box over the cell and keeps the text for the grid's save buttons. After this PR that is wrong text that a release fixes in place, which is the filing gate's release-text exception. The card should also check whether the over-the-cell branch behind those lines is now unreachable.
    • useRecordCrudVerdicts' updateOnMount option (useRecordCrudVerdicts.ts:521, no caller, internal hook): no card. Dead code; the acceptance note is its record.
    • The report files all three as class: c. None is: class c is a metadata trap with a named producer, and these are dead strings, stale prose and dead code.
  • content/docs/releases/v19/index.mdx:273-275 says protocol-18-range-refused sits on the protocol-19 step and the other 30 on step 18. With this entry step 19 holds two. The page is release-owned and outside this diff; the release seat should hear of it.
  • Security: no hunk moves a permission, sharing, credential or token boundary. Editing only narrows (editable now also needs a save path). The surviving save path keeps its rule check, If-Match guard and conflict dialog (defaultRowSave, writeRowInPlace). The dropped updateOnMount served only the removed arm. The migrated permission pins (inlineEditPermissionGate, inlineEditFieldWriteGrant-12103, maskedColumnSurfaces-10583) drive the gesture that would open an editor (select, then double-click or Enter) and keep their controls. The report's security_findings is none.

④ Design judgment

No must-fix, no should-fix.

The entry file, 19.data-table-staged-edit-retired.ts:

  • Form: a SemanticMigration with id, surface, replacement, reason and acceptanceCriteria, and no conversionIds. Correct for a D3 entry with no D2 conversion.
  • Step: 19 is right. PROTOCOL_VERSION is 19.0.0 at the head, registry.ts.template declares step19 with a generated semantic:19 block, and feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' #37314 records that a v19-line retirement filed under step 18 is not shown to an 18-to-19 upgrader. The template is rightly untouched: entries are added as files, and the step's rationale is one string.
  • Surface, replacement and reason agree with the code sentence by sentence: cellSelection takes only true; a host may still pass true; an editable data-table without both a cell-selection host and onRowSave renders read-only and warns; nothing authorable is rewritten.
  • The acceptance text says the type check refuses all the retired spellings. That holds for typed call sites and literals (N1 and N2 name its edge).

The narrowing against the ruling:

  • Term 1 (staged arm, onBatchSave on both interfaces, cellSelection={true} kept, absent means editable is select-first and read-only is click-to-open): implemented as ruled.
  • Term 2 (bare-primitive arm): the dev chose loud refusal. It sits at the right door, the renderer, where editable is resolved and where the module's sibling diagnostics already speak, on the same channel (console.warn, keyed on the message, prefix [ObjectUI] DataTable editable:). It holds for no host, for a host without onRowSave, and for a host with onBatchSave alone, which is the old staged-under-select-first arm and is now read-only with the onRowSave line. Pinned in data-table-autosave-35685.test.tsx:272-311 by three cases: no provider, provider without onRowSave, and a read-only control that warns nothing.
  • Term 3 (pins): three test files deleted with the behaviour they pinned, the rest migrated to select-first gestures. keyboardNavigation's jsdoc lost its staged sentence.
  • Term 4: declarations, entry and battery as above.
  • Premise clause: the census (hotcrm fb0b879, gallery 782d801, 0 hits) is the dev's reading. Those repos are outside this review's inputs, so it is not re-measured here.

Ways an author can still write the old mode, and what each meets:

Spelling What it meets
typed host, cellSelection={false} on ObjectGrid tsc error
typed host, onBatchSave on ObjectGrid tsc excess-property error
onBatchSave on a DataTableSchema value tsc error (never)
onBatchSave in a JSON document zod refusal by name, as retired
editable data-table with no host or no onRowSave read-only, one console warning naming what is missing
untyped or cast host passing cellSelection={false} or onBatchSave to ObjectGrid nothing at runtime (N2)
singleClickEdit on a data-table node in a document parses, inert (N1)

Nits. None changes correctness or the contract; each is an accepted deviation or a follow-up, and none needs a head move.

  • N1 (nit) — DataTableSchema.singleClickEdit is deleted, not left as this package's ?: never tombstone (objectql.ts:1337 states that convention). A non-literal value, or a document through the mirror's .passthrough(), still carries it in silence. It is harmless alone: the key only chose how the staged editor opened, and its companion editable: true now warns.
  • N2 (nit) — ObjectGrid says nothing at runtime to an untyped host that still passes cellSelection={false} or onBatchSave. The grid turns select-first and writes each cell through onRowSave or its own dataSource.update, and the batch handler is never called. The ruling names the type error as the door, so this complies. No test pins the narrowed prop type (cellSelection is true | undefined; onBatchSave is not a key of the props), so a later widening would pass every test.
  • N3 (nit) — the warning text and the changeset tell the author to mount GridCellSelection. That is the context's value type; the component to mount is GridCellSelectionProvider (components/src/index.ts:187).
  • N4 (nit) — the retired refusal for onBatchSave uses the generic handlerKeyRefusal text: it cites objectui#6124 and points at a toast or action node, not at onRowSave or object-grid, which is this retirement's FROM/TO.
  • N5 (nit) — leftovers in tests: plugin-form/src/affordanceGrantMap-12082.test.tsx:909 still names defaultBatchSave in a comment; two assertions query the removed data-table-edit-column-header test id and can only read null (data-table-autosave-35685.test.tsx:130, data-table-select-first-35684.test.tsx:339); case e of inlineEditPermissionGate.test.tsx now compares two shapes that cannot differ.
  • N6 (nit) — the card's original Done-when asked for git grep onBatchSave ui/ to read zero outside the entry and its tests. The head keeps a never tombstone and a by-name refusal instead. That is the stricter of the two and follows the re-premise in ruling 7178367040; recorded as an accepted deviation.

Implemented-by: claude/project-thread-aa564x
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

维护者速读

  • 改了什么:表格(data-table / ObjectGrid)的「暂存后批量保存」模式整体退役,只保留逐行保存。cellSelection 只能是 true,onBatchSave 和 singleClickEdit 删除,约 2800 行。仍然这样写的作者,在类型检查和 schema 校验时会被拒绝,渲染时也会给出明确警告。
  • 为什么:执行 DataTable / ObjectGrid: retire the staged editing model (cellSelection={false}, pending-changes bar, Save All) together with onBatchSave (ruled A, 7178367040) #35827 的裁决(7178367040)。两套保存方式并存,权限检查和并发保护只在逐行保存那一路是完整的。
  • 风险:这是收窄,已经按收窄声明(BREAKING、FROM→TO 表、ADR-0087 第 19 步条目),@objectstack/spec 等五个包 minor。全仓没有任何地方还在用被删的东西,hotcrm 和 gallery 的普查也是 0 处。dogfood 全量回归在当前 head 上跑过:4129 个通过,0 失败。
  • 需要你知道的一点: 这个 PR 在 packages/spec 里加了一个 ADR-0087 迁移条目。区里说你 09:00Z 在 o5-U 线程里口头批准过,但卡片和 PR 上都没有引用原话。你合并就等于批准这个条目。
  • 要你做什么:批准并合并。超过 3000 行(4040 行),需要人合并。契约复核 PASS 在评论 7189751333,Head-sha deefadb3a13681d5e31f584317f73a7a92c270e2。

席位意见:ACCEPT。收窄范围完整声明,删除的代码都已无人使用,拒绝点位正确。6 条 nit 都不影响正确性。

席位核对

Head-sha: deefadb3a13681d5e31f584317f73a7a92c270e2
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: open draft against main, 69 files (+1253/−2787), Fixes #35827, Clause-②: no (narrowing), Metadata-protocol: narrowed, BREAKING with a five-row FROM/TO table, five packages at minor. It matches no governed path but is over 3000 lines, so it lands as Tier H.
  2. Premise: ruling 7178367040 retires the staged batch-save mode.
    • The ADR-0087 entry 19.data-table-staged-edit-retired.ts is correct in form (D3), step (19) and surface. check-adr-0087-registration is green.
    • The loud refusal sits at the renderer and is pinned by three cases.
  3. Gates:
    • Contract record 7189751333 (CONTRACT_REVIEW_TIER, verified on the transcript) reads PASS, with no must-fix or should-fix.
    • Dogfood battery pinned to deefadb3 (os-dev report): 4129 passed, 0 failed.
    • Checks at deefadb3a1: 63 success · 11 expected skip · 0 failed · 0 pending. Mergeable clean.
  4. Test Core 5/10, attempt 1 (L1 judgement on the re-run):
  5. Accepted deviations (nits):
    • N1: singleClickEdit is deleted rather than tombstoned.
    • N2: no runtime notice for an untyped cellSelection={false} / onBatchSave.
    • N3: the warning and changeset say GridCellSelection, but the export is GridCellSelectionProvider.
    • N4: the zod refusal text is generic.
    • N5: test leftovers.
    • N6: the Done-when is met by a stricter tombstone.
  6. Out of scope and where it went:
  7. Landing terms: lands as Tier H, by size and narrowing. The same-head PASS is at CONTRACT_REVIEW_TIER with the battery pinned. It waits for the maintainer's approval and merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 CONTRACT_REVIEW_TIER: comment 7189751333, Head-sha deefadb3a13681d5e31f584317f73a7a92c270e2; dogfood battery pinned to that head. The maintainer merges; the merge also approves the ADR-0087 spec entry.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 26, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 26, 2026 11:30
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 5dbcc02 Nov 26, 2026
123 of 125 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-aa564x branch November 26, 2026 12:01
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… (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>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants