You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DataTable / ObjectGrid: retire the staged editing model (cellSelection={false}, pending-changes bar, Save All) together with onBatchSave (ruled A, 7178367040) #35827
Filing gate: ④ child of the coordination parent #35683 (list inline-edit redo). Source: the seat's ruling on the #35685 split (thread b1-I2): keep the slot declared in the per-cell save slice, stop wiring it, and retire it on its own card under ADR-0087.
What is left
DataTableSchema.onBatchSave is a published slot of @object-ui/types (ui/packages/types/src/data-display.ts around line 1776, with its zod mirror in ui/packages/types/src/zod/data-display.zod.ts). Today the table calls it from "Save All" on the pending-changes bar, and ObjectGrid supplies onBatchSave ?? defaultBatchSave (ui/packages/plugin-grid/src/ObjectGrid.tsx, defaultBatchSave). Read on main a8126d24.
#35685 replaces the bar with a per-cell save: each committed cell sends one update for its record, and the card rules out a table-wide "Save All" and any request that merges several rows. Its first slice stops wiring defaultBatchSave and leaves the slot declared, so after that slice lands onBatchSave is a declared slot no renderer calls: a host that sets it gets nothing, silently.
Why
A declared slot that nothing calls is a promise the runtime does not keep (AGENTS.md Prime Directive 10). A host author reading the type would wire a batch handler and never see it run.
Done when
onBatchSave is removed from DataTableSchema and its zod mirror, with the ADR-0087 disposition stated in the changeset and the FROM-TO line (FROM onBatchSave TO the per-row onRowSave, one call per record).
The jsdoc that names onBatchSave beside onRowSave / onCellChange (data-display.ts around lines 1544 and 1926) is rewritten.
git grep onBatchSave ui/ answers zero outside the conversion entry and its tests; the parity pins in ui/packages/types/src/__tests__/ move with it.
Start after the per-cell save slice of #35685 lands (its PR stops calling the slot).
Grading: Task · suggested p2 (epic child, seat's word) · reach: hosts that wire DataTableSchema.onBatchSave in code · evidence: the read above on a8126d24.
Reader: the domain:ui lane, after the #35685 slice merges.
Triage: lands in domain:ui · pm:blocked (edge: starts after the per-cell save slice of #35685 lands; the body names it in prose, so triage holds the edge); rationale: area:ux · Task · child of topic #35683 (list inline-edit redo) · once that slice stops calling it, DataTableSchema.onBatchSave becomes a published @object-ui/types slot that nothing calls, so a host that wires it silently gets nothing; retire under ADR-0087 → p2 (the topic's grade; a dead published slot is a wrong promise) · size S (type, zod mirror, jsdoc, parity pins). A topic child, so it never goes to a sweep card.
Premise update, seat-agreed for #35685's first slice: per-cell autosave switches on only where the select-first cell model does (the grids a ListView draws, the scope of the maintainer's record 7035276698 on #35683). Every other grid (related lists, dashboard tables, the record picker, authored object-grid nodes, ObjectView's own grid) keeps the pending-changes bar and "Save All", so ObjectGrid keeps wiring defaultBatchSave for them and onBatchSave still has a caller.
Waits-for: the later card that moves those grids to the select-first and per-cell save model. This card is not workable until that card lands; it stays open, unassigned.
2026-11-21T03:48Z · Unblocked: the edge triage held for this card, #35685 (its per-cell save slice), is closed as completed. pm:blocked → pm:queue; grade p2 and lane unchanged.
Blocked · 2026-11-22T04:11Z · The premise still fails on main: data-table.tsx:3275 still calls onBatchSave, because related lists, dashboard tables, the record picker, authored object-grid nodes and ObjectView's grid still use "Save All" (seat 1's note 7039688829). The "later card" that note waits for was never filed. It is now #36270. This card moves back to pm:blocked until #36270 lands. The 03:48Z requeue rested on a prerequisite that does not exist.
Triage: unblocked → pm:queue. The hold named #36270 (moving the other grids to the new inline-edit model), which has now closed, and the body carries no other Blocked-by: line. Grade (p2) and area (ux) are unchanged.
#35683 (list inline-edit redo) made every editable grid select-first with per-cell save: PR #35747 for ListView grids (maintainer ruling 7035276698 on #35683), PR #36357 (#36270) for every other editable ObjectGrid, retiring singleClickEdit. This card (#35827) was filed to retire DataTableSchema.onBatchSave once nothing calls it. On origin/main98bda0a the slot still has callers: data-table.tsx:3321 calls it from "Save All" whenever autosaves is false, and ObjectGrid.tsx:4121 wires onBatchSave ?? defaultBatchSave. The staged model is reached by (a) a React host passing cellSelection={false} on an editable ObjectGrid (documented at ObjectGrid.tsx:547, objectql.ts:1391), or (b) a bare data-table node handed editable with no GridCellSelection mounted. The seat 3 reading 7118602927 and the zone inbox measured this; retiring the slot as filed also retires the staged opt-out, which is a narrowing of a published host prop wider than the card.
Governing text
AGENTS.md Prime Directive 10 corollary (the card's citation): "never advertise or demo a capability the runtime doesn't actually deliver (declared ≠ enforced) — fix it, trim it, or file an issue … Trim what can never be enforced, implement the rest, and keep the claim as narrow as the enforcement" — sed -n 234,237p AGENTS.md
ADR-0087 metadata protocol upgrade contract: a retirement owes a FROM/TO prescription in the changeset — grep -n "FROM … TO\|FROM/TO" docs/adr/0087-metadata-protocol-upgrade-contract.md | head -3
ObjectGrid.tsx:540–549@deprecated objectstack#36270 … Pass onRowSave to own the write per cell, or pass cellSelection={false} to keep the staged model, where this handler is still called. — sed -n 540,549p ui/packages/plugin-grid/src/ObjectGrid.tsx
@object-ui/types published surface: DataTableSchema.onBatchSave (runtime slot, zod refuses it by name) and ObjectGridComponentProps.cellSelection's false arm (host prop). Removing both is Clause-②: no (narrowing), Metadata-protocol: narrowed, ADR-0087 entry with FROM onBatchSave / cellSelection={false} TO onRowSave per cell. No @objectstack/spec change (singleClickEdit is already retired).
Premises (each with a re-check)
onBatchSave is still called from Save All when autosaves is false — sed -n 1679,1683p ui/packages/components/src/renderers/complex/data-table.tsx; sed -n 3321,3323p ui/packages/components/src/renderers/complex/data-table.tsx
ObjectGrid still wires onBatchSave ?? defaultBatchSave and documents cellSelection={false} as the staged door — grep -n "defaultBatchSave\|cellSelection={false}" ui/packages/plugin-grid/src/ObjectGrid.tsx
The one in-tree cellSelection={false} host (ResourceListPage.tsx:1501, metadata admin list, Studio 重构(1-1b):元数据列表换成 ObjectGrid,所有类型同一种表格;「新建」在只读底包上落到配对的 .custom 包 #36897) is read-only (editable: false), so it never reaches the staged save — grep -n "editable" ui/packages/app-shell/src/views/metadata-admin/metadataListGrid.ts; grep -rn "cellSelection={false}" ui/packages ui/apps --include=*.tsx | grep -v test
The platform has one way to save an inline edit, but still ships a second, unused way that only outside code can switch on, and the card to remove its save hook cannot be built without removing that switch too.
Options × real cost × workload
What
What the person sees
Workload
A
Retire the staged model with its slot: cellSelection loses its false arm (a host may still pass true; absent = editable ⇒ select-first, read-only ⇒ click-to-open); data-table always saves per cell when editable (an editable data-table with no onRowSave is refused loudly at the node, or the grid's own dataSource.update is the write where ObjectGrid is the host, as today); the pending-changes bar, "Save All" and onBatchSave are deleted from data-table, ObjectGrid, @object-ui/types and the zod mirror; the staged-path pins are migrated or deleted; ADR-0087 FROM/TO in the changeset.
No change for any in-repo screen (none uses the staged model). An outside React host that passes cellSelection={false} or onBatchSave gets a type error at upgrade and the FROM/TO line.
domain:ui 1 PR, size M–L (data-table staged branch removal is the bulk). Precedent: PR #36357 (+1221/−201, 60 files) retired singleClickEdit and moved the default; this removes more code and adds none.
B
Keep the staged model as a documented host opt-out and close #35827 (not planned): onBatchSave stays because it has a caller.
Nothing changes. Two saving models remain in the table primitive; the second is untested in any in-repo screen except by unit pins.
0 PRs. The card's premise is false as filed, so it closes with the reason.
A host that keeps the staged model has a Save All bar that can send nothing.
domain:ui 1 PR, size S. Rejected: it creates exactly the dead promise the card was filed to remove.
Business translation: A = the table has one way to save, the one every screen uses; B = the platform keeps a spare editing mode for a customer it has not met; C = a Save button that does nothing.
AI-error-proofing (③) — an AI writing a React host reads cellSelection?: boolean and onBatchSave? and may wire a batch handler that is bypassed on every select-first grid (PR feat(spec,ui)!: every grid that renders editable selects a cell first, and object-grid singleClickEdit is retired #36357 says so: "a host that passes onBatchSave alone … now has it bypassed") — a silent no-op today, which is the card's Prime Directive 10 point. With A the types cannot express it and the upgrade refuses it loudly. With B the silent no-op stays for the common path and works only behind an extra flag.
Startup focus (④) — remove beats maintain: 创业阶段不渐进,无拉动的声明面退休。Keeping the staged model is declare-and-maintain for a door with no named user; staged retirement is not recommended because no outside user is on record.
os-decision-facets
① Long-term fit: one editing contract for the table; the staged branch is a second contract only code can reach and every later change must special-case.
② Business pull: zero in-repo users of the staged model (the one cellSelection={false} host is read-only); maintainer ruled one model on #36270; no named outside user.
③ AI-error-proofing: today onBatchSave on a select-first grid is a silent no-op; A makes the types refuse it; C would make Save All itself a no-op.
④ Startup focus: remove > declare-and-maintain; no staged window without a named external user.
Prior rulings read: onBatchSave · cellSelection · staged · Save All → 0 hits in coordinator/rulings.md and decisions/待决汇总.md; maintainer records 7035276698 (#35683 scope) and 7076617499 (#36270, one editing model, per PR #36357) read; ADR-0087 retirement contract; thread: none.
Recommendation: A
Self-check: 只看①选 A;②③④ 是否翻转:否。
Confidence gaps: (a) hotcrm and gallery were not censused for cellSelection={false} / onBatchSave here (no access in this container); the dev censuses on claim and reports a fork if a named host exists. (b) The bare data-table primitive handed editable outside ObjectGrid: the PR body says no in-repo host reaches it; the dev confirms and decides between loud refusal and the grid's own write for that arm, both inside A. (c) Whether the parent-form child list (#35590 group-placed children) ever needs a saved-together batch: PR #36357 measured no such host; if one appears later it is a new card, not a reason to keep this door.
Not taken: B keeps a second saving model for a customer not on record; C is the dead promise the card exists to remove.
Execution after the ruling (A)
The card is re-premised on claim: the title and Done-when become "retire the staged editing model (cellSelection={false} arm, pending-changes bar, Save All) together with onBatchSave"; Clause-②: no (narrowing), Metadata-protocol: narrowed, ADR-0087 entry. Zone o5-U claims (domain:ui, size M–L).
Dev order: census downstream (cellSelection={false}, onBatchSave) first; then data-table loses the staged branch (autosaves becomes selectFirst-only or is removed), ObjectGrid loses defaultBatchSave and the false arm (cellSelection?: true or the prop becomes never for false with a tombstone), @object-ui/types removes the slot and rewrites the jsdoc at data-display.ts ~1544/1926, zod mirror and parity pins move; the staged pins migrate to select-first or are deleted with the behaviour they pinned; keyboardNavigation's describe loses its staged sentence.
The changeset FROM/TO: FROM cellSelection={false} + onBatchSave TO select-first with onRowSave (one call per record) or the grid's own dataSource.update.
Ruled: 2026-11-26T00:04Z · option A — retire the staged editing model together with onBatchSave.
Authority: Bill (os-bill), decision card in the project app at 2026-11-26T00:01Z, option verbatim 「A 旧模式和接口一起退」; analysis and options in comment 7178089750 (decision thread, fable).
Ruled terms (execute as comment 7178089750 §"Execution after the ruling (A)"): (1) the card is re-premised on claim: retire the staged model (cellSelection={false} arm of ObjectGrid, the pending-changes bar, "Save All") together with DataTableSchema.onBatchSave and ObjectGridComponentProps.onBatchSave; a host may still pass cellSelection={true}; absent ⇒ editable grids select-first, read-only grids click-to-open, as today. (2) data-table saves per cell whenever it is editable; the bare-primitive arm (editable, no onRowSave, no ObjectGrid host) is either refused loudly or written through the grid's own data source where ObjectGrid hosts it: the dev picks inside A and pins it. (3) Staged-path pins migrate to select-first or are deleted with the behaviour they pinned; keyboardNavigation's describe loses its staged sentence. (4) Clause-②: no (narrowing), Metadata-protocol: narrowed, ADR-0087 entry: FROM cellSelection={false} + onBatchSave TO select-first with onRowSave per record or the grid's own dataSource.update; dogfood battery on the final head (narrowing arm).
Premise clause: before writing, the dev censuses hotcrm and gallery for cellSelection={false} and onBatchSave; a named outside host is reported as a fork, not worked around.
State: needs-user-decision → pm:queue in this write; zone o5-U (seat repo:objectstack#5) claims.
Claim: PM loop round 1 · zone o5-U (area:ux p1/p2; the maintainer, verbatim, 2026-11-25T23:27Z project thread: 「再开两个专区,接ai ux 的 p1 p2 任务」) · 2026-11-26T02:45Z · epic #35683's zone (seat 4 a4-C) takes no new cards; the ruling names o5-U as claimant
Session: session_01Utp6Ca6EBDpTBZk8v46Jjv
Thread session: session_01Utp6CZProAps4gBPhsLSVt
Account: os-bill
Area: o5-U
Branch: claude/project-thread-aa564x
Worktree: objectstack-issue-35827
Domain: domain:ui
Seat: repo:objectstack#5
File surface: ui/packages/components/src/renderers/complex/data-table.tsx, ui/packages/plugin-grid/src/ObjectGrid.tsx (staged arm, defaultBatchSave, cellSelection prop), ui/packages/types/src/data-display.ts + zod/data-display.zod.ts + parity pins, the in-tree host(s) the retirement touches, the staged-path tests (migrated or deleted), the ADR-0087 registry entry, root .changeset/. Not ui/packages/fields/** or group-row colour code (#36882), skills/**, docs/adr/**, packages/spec/**. Stop on breach and report.
Container & model: M, mode:thread, model: default — dispatch-gates --tier: "no path-derived mandate" (served claude-opus-5-5 per the thread's first report), effort: high
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility: n/a — not a defect card
Thread-read: 7178367040
Premise: corrected 7178367040 — re-premised on claim per the ruling: retire the staged editing model (cellSelection={false} arm of ObjectGrid, pending-changes bar, "Save All") together with DataTableSchema.onBatchSave and ObjectGridComponentProps.onBatchSave. The card's original premise (slot already unwired) failed (seat 3 reading 7118602927; inbox 7177906101). Census per the premise clause: hotcrm fb0b879 and gallery 782d801, cellSelection|onBatchSave|batchSave|pendingChanges|Save All → 0 hits each (thread's first report); no outside host, no fork.
Serial constraints cleared: #36882 (this zone, in flight) touches ObjectGrid.tsx group rows only; merge-tree before each push; no other open PR touches these files at claim
Pre-claim lane: domain:ui; L2 contract review owed (narrowing arm), dogfood battery on the final head
Pre-claim deps: none
Prior rulings read: ruling 7178367040 (option A, Bill 2026-11-26T00:01Z); governing text AGENTS.md Prime Directive 10 corollary, ADR-0087 retirement contract, maintainer record 7076617499 on #36270 (one editing model)
changed the title [-]DataTable: retire the onBatchSave slot once list inline edit saves each cell on its own[/-][+]DataTable / ObjectGrid: retire the staged editing model (cellSelection={false}, pending-changes bar, Save All) together with onBatchSave (ruled A, 7178367040)[/+]on Nov 26, 2026
Zone o5-U · 2026-11-26T02:59Z · fence amendment 1 for the claim 7181103894
File surface adds, add-only:
packages/spec/src/migrations/entries/semantic/18.data-table-staged-edit-retired.ts, the D3 semantic entry ruling term 4 owes (precedent 18.object-grid-single-click-edit-retired.ts). No D2 conversion: nothing authorable to rewrite, onBatchSave is refused by name on the zod face before and after.
DataTableSchema.singleClickEdit removed from the ui types with its types parity pins: only the retired staged arm set it, so it would stay a dead declared key; this is the ruling's 「旧模式和接口一起退」.
Why: the ADR-0087 gate refuses every not-required category on a narrowing with a FROM/TO table; only registered fits.
Overlap: no open PR uses this slug. If feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' #37314 (PROTOCOL_VERSION 18 → 19) lands first, use the file prefix main's convention then requires.
{
"issue": 35827,
"status": "done",
"branch": "claude/project-thread-aa564x",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37437",
"session": "session_01Utp6CZProAps4gBPhsLSVt",
"premise_still_valid": true,
"summary": "Ruling A implemented: the grid's staged edit model retires with its host interface. ObjectGrid loses the cellSelection={false} arm, onBatchSave and the default batch save (cellSelection accepts only true); data-table loses the pending bar, Save All and the row save column; DataTableSchema.onBatchSave is retired on both faces and singleClickEdit removed. Bare-primitive arm (term 2): loud refusal, pinned: an editable data-table without a GridCellSelection host and onRowSave renders read-only and warns once. Staged-path pins migrated to select-first or deleted with comments naming their duplicates; ResourceListPage stays click-to-open (A1). ADR-0087 D3 entry data-table-staged-edit-retired added as packages/spec/src/migrations/entries/semantic/19.data-table-staged-edit-retired.ts (protocol 19 opened on main mid-flight, so the step-19 prefix; registry.ts.template untouched), with the maintainer's approval by name. Outside-host census: hotcrm and gallery, 0 hits.",
"tests": "components 4958 passed; plugin-grid 2774 passed; types 10512 passed; plugin-list + plugin-view + i18n + plugin-form + data-objectstack onMutation 7654 passed / 0 failed; app-shell ResourceListPage* 14 files 105 passed; the 9 component test files re-edited for check:test-source-alias 41/41; spec src/migrations green; type-check types/components/plugin-grid/plugin-list/app-shell clean; eslint on touched files 0 errors. Local CLI re-check of data-commands.absent-database.integration.test.ts on deefadb3: 54/54.",
"gates": "dispatch-gates first round 70/73 green: check-adr-0087-registration red until the entry (now exit 0, registered data-table-staged-edit-retired); spec check:skill-examples exit 3 (client-react unbuilt, untouched); check:doc-component-types stale exemptions resolved by keeping a select-first example in both grid docs; check:test-source-alias resolved by module-top react-runtime imports. Spec-file round 39/41 green; check-plugin-teardown-shape --self-test exit 3 (shallow clone), check:dual-build-cjs-loads exit 3 (knowledge-turso unbuilt). overlap-check clean against main and #37436 #37427 #37422 #37387. CI on deefadb3: run 45789943743 attempt 1 failed only Test Core 5/10 (CLI integration beforeAll 480 s hook timeout, passes locally on the same head); one re-run of failed jobs, attempt 2 conclusion success; all check suites green.",
"dogfood_battery": "deefadb3 · os-verify-lock VERDICT command-exit 0 (held 2353 s, shared box) · Test Files 487 passed, 3 skipped (490) · Tests 4129 passed, 68 skipped (4197) · no failures",
"mcp_calls": "6 — reads only: get_job_logs x3, actions_get x2, pull_request_read x1",
"api_writes": "6 — git push x2 (claude/project-thread-aa564x); relay pr_create (#37437, draft); relay run_rerun_failed (run 45789943743); relay issue_patch (PR body); this comment via post-stamped",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: c · reach: named producer · locale packs still carry table.saveAll, table.cancelAll, table.modified, table.saveRow, table.cancelChanges with no reader · dead staged locale keys",
"class: c · reach: named producer · ui/packages/fields/README.md ~145-147 and FieldEditWidget.tsx ~216-217 describe a grid without cellSelection (fenced) · stale fields docs after staged retirement",
"class: c · reach: named producer · useRecordCrudVerdicts updateOnMount option has no caller · unused verdict option",
"carrier: PR #37437 acceptance notes · noted, not filed"
]
}
Zone o5-U · 2026-11-26T10:44Z · maintainer approval on record for the packages/spec migration entry of this card (asked for by the seat's L2 on PR #37437, 7189751333)
Bill, verbatim, in zone o5-U's project thread at 2026-11-26T09:00Z: 「同意 #35827 在 packages/spec 加迁移文件」. Bill, verbatim, in the #35827 card thread at 2026-11-26T09:00Z: 「同意」.
Asked as (zone o5-U, 03:17Z): approve packages/spec/src/migrations/entries/semantic/18.data-table-staged-edit-retired.ts and its one registry.ts.template record (fence amendment 7181311810). Landed as 19.data-table-staged-edit-retired.ts after #37314 opened protocol 19; the template is untouched (step 19's rationale is one string).
Activity
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:blocked(edge: starts after the per-cell save slice of #35685 lands; the body names it in prose, so triage holds the edge); rationale: area:ux · Task · child of topic #35683 (list inline-edit redo) · once that slice stops calling it,DataTableSchema.onBatchSavebecomes a published@object-ui/typesslot that nothing calls, so a host that wires it silently gets nothing; retire under ADR-0087 → p2 (the topic's grade; a dead published slot is a wrong promise) · size S (type, zod mirror, jsdoc, parity pins). A topic child, so it never goes to a sweep card.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUYnzYCcbcpABdW7ps
Premise update, seat-agreed for #35685's first slice: per-cell autosave switches on only where the select-first cell model does (the grids a
ListViewdraws, the scope of the maintainer's record 7035276698 on #35683). Every other grid (related lists, dashboard tables, the record picker, authoredobject-gridnodes,ObjectView's own grid) keeps the pending-changes bar and "Save All", soObjectGridkeeps wiringdefaultBatchSavefor them andonBatchSavestill has a caller.Waits-for: the later card that moves those grids to the select-first and per-cell save model. This card is not workable until that card lands; it stays open, unassigned.
Generated by Claude Code
objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
2026-11-21T03:48Z · Unblocked: the edge triage held for this card, #35685 (its per-cell save slice), is closed as completed.
pm:blocked→pm:queue; grade p2 and lane unchanged.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv
Blocked · 2026-11-22T04:11Z · The premise still fails on main:
data-table.tsx:3275still callsonBatchSave, because related lists, dashboard tables, the record picker, authoredobject-gridnodes andObjectView's grid still use "Save All" (seat 1's note 7039688829). The "later card" that note waits for was never filed. It is now #36270. This card moves back topm:blockeduntil #36270 lands. The 03:48Z requeue rested on a prerequisite that does not exist.Blocked-by: #36270
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: unblocked →
pm:queue. The hold named #36270 (moving the other grids to the new inline-edit model), which has now closed, and the body carries no otherBlocked-by:line. Grade (p2) and area (ux) are unchanged.6 remaining items
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#5 · os-bill · session_01Utp6CaacEFVpyQ6C5mcRQs
Decision analysis · 2026-11-25T23:48Z · decision thread for zone o5-U (inbox 7177906101)
维护者速读
Background
#35683 (list inline-edit redo) made every editable grid select-first with per-cell save: PR #35747 for
ListViewgrids (maintainer ruling 7035276698 on #35683), PR #36357 (#36270) for every other editableObjectGrid, retiringsingleClickEdit. This card (#35827) was filed to retireDataTableSchema.onBatchSaveonce nothing calls it. Onorigin/main98bda0a the slot still has callers:data-table.tsx:3321calls it from "Save All" wheneverautosavesis false, andObjectGrid.tsx:4121wiresonBatchSave ?? defaultBatchSave. The staged model is reached by (a) a React host passingcellSelection={false}on an editableObjectGrid(documented atObjectGrid.tsx:547,objectql.ts:1391), or (b) a baredata-tablenode handededitablewith noGridCellSelectionmounted. The seat 3 reading 7118602927 and the zone inbox measured this; retiring the slot as filed also retires the staged opt-out, which is a narrowing of a published host prop wider than the card.Governing text
sed -n 234,237p AGENTS.mdgrep -n "FROM … TO\|FROM/TO" docs/adr/0087-metadata-protocol-upgrade-contract.md | head -3onBatchSave@deprecatedand documentedcellSelection={false}as the staged model's only door.ObjectGrid.tsx:540–549@deprecated objectstack#36270 … Pass onRowSave to own the write per cell, or pass cellSelection={false} to keep the staged model, where this handler is still called.—sed -n 540,549p ui/packages/plugin-grid/src/ObjectGrid.tsxProtocol
@object-ui/typespublished surface:DataTableSchema.onBatchSave(runtime slot, zod refuses it by name) andObjectGridComponentProps.cellSelection'sfalsearm (host prop). Removing both isClause-②: no (narrowing),Metadata-protocol: narrowed, ADR-0087 entry with FROMonBatchSave/cellSelection={false}TOonRowSaveper cell. No@objectstack/specchange (singleClickEditis already retired).Premises (each with a re-check)
onBatchSaveis still called from Save All whenautosavesis false —sed -n 1679,1683p ui/packages/components/src/renderers/complex/data-table.tsx; sed -n 3321,3323p ui/packages/components/src/renderers/complex/data-table.tsxObjectGridstill wiresonBatchSave ?? defaultBatchSaveand documentscellSelection={false}as the staged door —grep -n "defaultBatchSave\|cellSelection={false}" ui/packages/plugin-grid/src/ObjectGrid.tsxcellSelection={false}host (ResourceListPage.tsx:1501, metadata admin list, Studio 重构(1-1b):元数据列表换成 ObjectGrid,所有类型同一种表格;「新建」在只读底包上落到配对的 .custom 包 #36897) is read-only (editable: false), so it never reaches the staged save —grep -n "editable" ui/packages/app-shell/src/views/metadata-admin/metadataListGrid.ts; grep -rn "cellSelection={false}" ui/packages ui/apps --include=*.tsx | grep -v testonBatchSave; dashboarddata-tablenodes have no save path (PR feat(spec,ui)!: every grid that renders editable selects a cell first, and object-grid singleClickEdit is retired #36357 body) —grep -rn "onBatchSave" ui/packages --include=*.tsx | grep -v "test\|types/src\|data-table.tsx\|ObjectGrid.tsx"cellSelection={false}(PR feat(spec,ui)!: every grid that renders editable selects a cell first, and object-grid singleClickEdit is retired #36357 body) —grep -rln "cellSelection={false}" ui/packages/plugin-grid/src | wc -lsingleClickEditonly, not forcellSelection={false}oronBatchSave(PR feat(spec,ui)!: every grid that renders editable selects a cell first, and object-grid singleClickEdit is retired #36357 body) — not re-measurable here.The question in one sentence
The platform has one way to save an inline edit, but still ships a second, unused way that only outside code can switch on, and the card to remove its save hook cannot be built without removing that switch too.
Options × real cost × workload
cellSelectionloses itsfalsearm (a host may still passtrue; absent = editable ⇒ select-first, read-only ⇒ click-to-open);data-tablealways saves per cell when editable (an editabledata-tablewith noonRowSaveis refused loudly at the node, or the grid's owndataSource.updateis the write whereObjectGridis the host, as today); the pending-changes bar, "Save All" andonBatchSaveare deleted fromdata-table,ObjectGrid,@object-ui/typesand the zod mirror; the staged-path pins are migrated or deleted; ADR-0087 FROM/TO in the changeset.cellSelection={false}oronBatchSavegets a type error at upgrade and the FROM/TO line.singleClickEditand moved the default; this removes more code and adds none.onBatchSavestays because it has a caller.onBatchSaveonly, keepcellSelection={false}.Business translation: A = the table has one way to save, the one every screen uses; B = the platform keeps a spare editing mode for a customer it has not met; C = a Save button that does nothing.
Four axes (business stance)
cellSelection={false}host is read-only; no host passesonBatchSave. The maintainer ruled one editing model on Inline edit: move the other grids (related lists, dashboard tables, record picker, authored object-grid, ObjectView's grid) to select-first and per-cell save, retiring the pending-changes bar and Save All #36270. No named outside user of the staged door is on record (PR feat(spec,ui)!: every grid that renders editable selects a cell first, and object-grid singleClickEdit is retired #36357 censused downstream forsingleClickEditonly). Zero pull for keeping it, zero pull for keeping the card open either; the pull is for one model.onRowSaveor the grid's data source; that is how spreadsheets-on-records (Airtable, Notion, Salesforce inline edit on list views) behave, and it is what 专题:列表行内编辑重做(始终可改、先选中再编辑、浮层编辑框、逐格保存;对照 Twenty 与 Attio) #35683 ruled. A second staged contract, reachable only by code, is a path nobody walks, nobody tests end to end and every later change (touch behaviour feat(grid): read-only cells say so in the grid, a cell save is said in one live region, a touch never edits in place (#35689 slice A) #36332, keyboard navigation refactor(plugin-sharing): collapse the two byte-identical MinimalLogger shapes #11068) has to special-case; PR feat(spec,ui)!: every grid that renders editable selects a cell first, and object-grid singleClickEdit is retired #36357's body already lists such exceptions.cellSelection?: booleanandonBatchSave?and may wire a batch handler that is bypassed on every select-first grid (PR feat(spec,ui)!: every grid that renders editable selects a cell first, and object-grid singleClickEdit is retired #36357 says so: "a host that passes onBatchSave alone … now has it bypassed") — a silent no-op today, which is the card's Prime Directive 10 point. With A the types cannot express it and the upgrade refuses it loudly. With B the silent no-op stays for the common path and works only behind an extra flag.os-decision-facets
① Long-term fit: one editing contract for the table; the staged branch is a second contract only code can reach and every later change must special-case.
② Business pull: zero in-repo users of the staged model (the one
cellSelection={false}host is read-only); maintainer ruled one model on #36270; no named outside user.③ AI-error-proofing: today
onBatchSaveon a select-first grid is a silent no-op; A makes the types refuse it; C would make Save All itself a no-op.④ Startup focus: remove > declare-and-maintain; no staged window without a named external user.
Prior rulings read: onBatchSave · cellSelection · staged · Save All → 0 hits in coordinator/rulings.md and decisions/待决汇总.md; maintainer records 7035276698 (#35683 scope) and 7076617499 (#36270, one editing model, per PR #36357) read; ADR-0087 retirement contract; thread: none.
Recommendation: A
Self-check: 只看①选 A;②③④ 是否翻转:否。
Confidence gaps: (a) hotcrm and gallery were not censused for
cellSelection={false}/onBatchSavehere (no access in this container); the dev censuses on claim and reports a fork if a named host exists. (b) The baredata-tableprimitive handededitableoutsideObjectGrid: the PR body says no in-repo host reaches it; the dev confirms and decides between loud refusal and the grid's own write for that arm, both inside A. (c) Whether the parent-form child list (#35590 group-placed children) ever needs a saved-together batch: PR #36357 measured no such host; if one appears later it is a new card, not a reason to keep this door.Not taken: B keeps a second saving model for a customer not on record; C is the dead promise the card exists to remove.
Execution after the ruling (A)
cellSelection={false}arm, pending-changes bar, Save All) together withonBatchSave";Clause-②: no (narrowing),Metadata-protocol: narrowed, ADR-0087 entry. Zone o5-U claims (domain:ui, size M–L).cellSelection={false},onBatchSave) first; thendata-tableloses the staged branch (autosavesbecomesselectFirst-only or is removed),ObjectGridlosesdefaultBatchSaveand thefalsearm (cellSelection?: trueor the prop becomesneverforfalsewith a tombstone),@object-ui/typesremoves the slot and rewrites the jsdoc atdata-display.ts~1544/1926, zod mirror and parity pins move; the staged pins migrate to select-first or are deleted with the behaviour they pinned;keyboardNavigation's describe loses its staged sentence.cellSelection={false}+onBatchSaveTO select-first withonRowSave(one call per record) or the grid's owndataSource.update.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CaacEFVpyQ6C5mcRQs
Ruled: 2026-11-26T00:04Z · option A — retire the staged editing model together with
onBatchSave.cellSelection={false}arm ofObjectGrid, the pending-changes bar, "Save All") together withDataTableSchema.onBatchSaveandObjectGridComponentProps.onBatchSave; a host may still passcellSelection={true}; absent ⇒ editable grids select-first, read-only grids click-to-open, as today. (2)data-tablesaves per cell whenever it is editable; the bare-primitive arm (editable, noonRowSave, noObjectGridhost) is either refused loudly or written through the grid's own data source whereObjectGridhosts it: the dev picks inside A and pins it. (3) Staged-path pins migrate to select-first or are deleted with the behaviour they pinned;keyboardNavigation's describe loses its staged sentence. (4)Clause-②: no (narrowing),Metadata-protocol: narrowed, ADR-0087 entry: FROMcellSelection={false}+onBatchSaveTO select-first withonRowSaveper record or the grid's owndataSource.update; dogfood battery on the final head (narrowing arm).cellSelection={false}andonBatchSave; a named outside host is reported as a fork, not worked around.needs-user-decision→pm:queuein this write; zone o5-U (seat repo:objectstack#5) claims.objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv
Claim: PM loop round 1 · zone o5-U (area:ux p1/p2; the maintainer, verbatim, 2026-11-25T23:27Z project thread: 「再开两个专区,接ai ux 的 p1 p2 任务」) · 2026-11-26T02:45Z · epic #35683's zone (seat 4 a4-C) takes no new cards; the ruling names o5-U as claimant
Session:
session_01Utp6Ca6EBDpTBZk8v46JjvThread session:
session_01Utp6CZProAps4gBPhsLSVtAccount:
os-billArea: o5-U
Branch:
claude/project-thread-aa564xWorktree:
objectstack-issue-35827Domain:
domain:uiSeat:
repo:objectstack#5File surface:
ui/packages/components/src/renderers/complex/data-table.tsx,ui/packages/plugin-grid/src/ObjectGrid.tsx(staged arm,defaultBatchSave,cellSelectionprop),ui/packages/types/src/data-display.ts+zod/data-display.zod.ts+ parity pins, the in-tree host(s) the retirement touches, the staged-path tests (migrated or deleted), the ADR-0087 registry entry, root.changeset/. Notui/packages/fields/**or group-row colour code (#36882),skills/**,docs/adr/**,packages/spec/**. Stop on breach and report.Container & model:
M,mode:thread,model: default — dispatch-gates --tier: "no path-derived mandate"(served claude-opus-5-5 per the thread's first report),effort: highClause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility: n/a — not a defect card
Thread-read: 7178367040
Premise: corrected 7178367040 — re-premised on claim per the ruling: retire the staged editing model (
cellSelection={false}arm ofObjectGrid, pending-changes bar, "Save All") together withDataTableSchema.onBatchSaveandObjectGridComponentProps.onBatchSave. The card's original premise (slot already unwired) failed (seat 3 reading 7118602927; inbox 7177906101). Census per the premise clause: hotcrmfb0b879and gallery782d801,cellSelection|onBatchSave|batchSave|pendingChanges|Save All→ 0 hits each (thread's first report); no outside host, no fork.Serial constraints cleared: #36882 (this zone, in flight) touches
ObjectGrid.tsxgroup rows only; merge-tree before each push; no other open PR touches these files at claimPre-claim lane:
domain:ui; L2 contract review owed (narrowing arm), dogfood battery on the final headPre-claim deps: none
Prior rulings read: ruling 7178367040 (option A, Bill 2026-11-26T00:01Z); governing text AGENTS.md Prime Directive 10 corollary, ADR-0087 retirement contract, maintainer record 7076617499 on #36270 (one editing model)
[-]DataTable: retire the onBatchSave slot once list inline edit saves each cell on its own[/-][+]DataTable / ObjectGrid: retire the staged editing model (cellSelection={false}, pending-changes bar, Save All) together with onBatchSave (ruled A, 7178367040)[/+]objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv
Zone o5-U · 2026-11-26T02:59Z · fence amendment 1 for the claim 7181103894
File surface adds, add-only:
packages/spec/src/migrations/entries/semantic/18.data-table-staged-edit-retired.ts, the D3 semantic entry ruling term 4 owes (precedent18.object-grid-single-click-edit-retired.ts). No D2 conversion: nothing authorable to rewrite,onBatchSaveis refused by name on the zod face before and after.packages/spec/src/migrations/registry.tsis generated whole and git-ignored (Splitmigrations/registry.ts's two append tables into per-entry files (registry half of #6957's ruling) #7297, [Decision] the migration registryregistry.tsis the last committed generated aggregate on the ADR-0087 D3 path: keep it and finish B′, or generate it at build #22554): it is NOT edited. If the gate also wants the change's record inregistry.ts.template(as the precedent's idobject-grid-single-click-edit-retiredsits there, ~L2569), that one template record is inside the fence.DataTableSchema.singleClickEditremoved from the ui types with its types parity pins: only the retired staged arm set it, so it would stay a dead declared key; this is the ruling's 「旧模式和接口一起退」.Why: the ADR-0087 gate refuses every not-required category on a narrowing with a FROM/TO table; only
registeredfits.Overlap: no open PR uses this slug. If feat(spec)!: PROTOCOL_VERSION 18 → 19, and every current-protocol handshake reads '^19' #37314 (PROTOCOL_VERSION 18 → 19) lands first, use the file prefix main's convention then requires.
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZProAps4gBPhsLSVt
os-dev-report
{ "issue": 35827, "status": "done", "branch": "claude/project-thread-aa564x", "pr": "https://github.com/objectstack-ai/objectstack/pull/37437", "session": "session_01Utp6CZProAps4gBPhsLSVt", "premise_still_valid": true, "summary": "Ruling A implemented: the grid's staged edit model retires with its host interface. ObjectGrid loses the cellSelection={false} arm, onBatchSave and the default batch save (cellSelection accepts only true); data-table loses the pending bar, Save All and the row save column; DataTableSchema.onBatchSave is retired on both faces and singleClickEdit removed. Bare-primitive arm (term 2): loud refusal, pinned: an editable data-table without a GridCellSelection host and onRowSave renders read-only and warns once. Staged-path pins migrated to select-first or deleted with comments naming their duplicates; ResourceListPage stays click-to-open (A1). ADR-0087 D3 entry data-table-staged-edit-retired added as packages/spec/src/migrations/entries/semantic/19.data-table-staged-edit-retired.ts (protocol 19 opened on main mid-flight, so the step-19 prefix; registry.ts.template untouched), with the maintainer's approval by name. Outside-host census: hotcrm and gallery, 0 hits.", "tests": "components 4958 passed; plugin-grid 2774 passed; types 10512 passed; plugin-list + plugin-view + i18n + plugin-form + data-objectstack onMutation 7654 passed / 0 failed; app-shell ResourceListPage* 14 files 105 passed; the 9 component test files re-edited for check:test-source-alias 41/41; spec src/migrations green; type-check types/components/plugin-grid/plugin-list/app-shell clean; eslint on touched files 0 errors. Local CLI re-check of data-commands.absent-database.integration.test.ts on deefadb3: 54/54.", "gates": "dispatch-gates first round 70/73 green: check-adr-0087-registration red until the entry (now exit 0, registered data-table-staged-edit-retired); spec check:skill-examples exit 3 (client-react unbuilt, untouched); check:doc-component-types stale exemptions resolved by keeping a select-first example in both grid docs; check:test-source-alias resolved by module-top react-runtime imports. Spec-file round 39/41 green; check-plugin-teardown-shape --self-test exit 3 (shallow clone), check:dual-build-cjs-loads exit 3 (knowledge-turso unbuilt). overlap-check clean against main and #37436 #37427 #37422 #37387. CI on deefadb3: run 45789943743 attempt 1 failed only Test Core 5/10 (CLI integration beforeAll 480 s hook timeout, passes locally on the same head); one re-run of failed jobs, attempt 2 conclusion success; all check suites green.", "dogfood_battery": "deefadb3 · os-verify-lock VERDICT command-exit 0 (held 2353 s, shared box) · Test Files 487 passed, 3 skipped (490) · Tests 4129 passed, 68 skipped (4197) · no failures", "mcp_calls": "6 — reads only: get_job_logs x3, actions_get x2, pull_request_read x1", "api_writes": "6 — git push x2 (claude/project-thread-aa564x); relay pr_create (#37437, draft); relay run_rerun_failed (run 45789943743); relay issue_patch (PR body); this comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: c · reach: named producer · locale packs still carry table.saveAll, table.cancelAll, table.modified, table.saveRow, table.cancelChanges with no reader · dead staged locale keys", "class: c · reach: named producer · ui/packages/fields/README.md ~145-147 and FieldEditWidget.tsx ~216-217 describe a grid without cellSelection (fenced) · stale fields docs after staged retirement", "class: c · reach: named producer · useRecordCrudVerdicts updateOnMount option has no caller · unused verdict option", "carrier: PR #37437 acceptance notes · noted, not filed" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 26, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca6EBDpTBZk8v46Jjv
Zone o5-U · 2026-11-26T10:44Z · maintainer approval on record for the
packages/specmigration entry of this card (asked for by the seat's L2 on PR #37437, 7189751333)Bill, verbatim, in zone o5-U's project thread at 2026-11-26T09:00Z: 「同意 #35827 在 packages/spec 加迁移文件」. Bill, verbatim, in the #35827 card thread at 2026-11-26T09:00Z: 「同意」.
Asked as (zone o5-U, 03:17Z): approve
packages/spec/src/migrations/entries/semantic/18.data-table-staged-edit-retired.tsand its oneregistry.ts.templaterecord (fence amendment 7181311810). Landed as19.data-table-staged-edit-retired.tsafter #37314 opened protocol 19; the template is untouched (step 19's rationale is one string).