Skip to content

Bulk actions declared on the action (selection) with a selection arm in the object action layout, moved from view bulkActions #36496

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Blocked-by: #36495
(Seat repo:objectstack#3, 2026-11-27: maintainer ruling 7213534162 on #36495 — #36495 first, this card after its PR merges, both before 19.0.0 GA.)

Source: the maintainer's two decisions in the action-format analysis thread on 2026-11-22 (14:27Z 「放在对象上,分列表和记录」; 14:33Z 「三类都由动作声明,分两步做」), filed by the seat. Builds after #36366 lands. Not claimed.

What changes

Step 2, after the vocabulary card: actions that act on many records declare it on the action, with a selection location value, and the object layout gains a third selection arm { pinned, more } that orders the bar shown after multi-select. View bulkActions lists move onto the actions; bulkActionDefs (inline field-update definitions on a view) stay on the view.

Measured (analysis thread, by file, not per object)

  • 28 non-test bulkActions declarations in 15 files, 12 of them in HotCRM.
  • No object found whose views list different bulk sets.
  • Objects where only some views list bulk actions would gain the bar on their other views after the move. The card lists each such object before the conversion is written.

Done when

  • Multi-select shows the same actions on every view of an object, in the selection arm's order.
  • The conversion moves every existing view list without losing an action.

Activity

  1. added
    enhancement
    priority:p2
    domain:spec
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec (bulk actions) · pm:queue; rationale: area:ux · Feature · bulk actions are declared on the action (selection) with a selection arm in the object action layout → p2 as filed · size M.

  3. added
    pm:queue
    on Nov 22, 2026
  4. added
    pm:blocked
    and removed
    pm:queue
    on Nov 27, 2026
  5. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Unlock · pm:blocked → pm:queue · every line-leading Blocked-by: / Restart-when: on this card (body and thread) was read at 2026-11-29T00:17Z, and each target is done: #36495 closed as completed. Grade unchanged. Before dispatch, re-check the card's file surface on the merged ref.

    Recorded 2026-11-29T00:17Z.

  6. added
    pm:queue
    and removed
    pm:blocked
    on Nov 29, 2026
  7. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oz5vp6AYi9MqMxvmK
    Claim: PM loop round 1
    Session: session_01FEkQ5oz5vp6AYi9MqMxvmK
    Thread session: session_01FEkQ5oz5vp6AYi9MqMxvmK
    Account: os-project-manager
    Branch: claude/project-thread-kko9wu
    Worktree: objectstack-issue-36496
    Domain: domain:spec
    Seat: repo:objectstack#5
    Area: o5-ux
    File surface: packages/spec/src/ui/action.zod.ts (the selection location), packages/spec/src/data/object-action-layout.ts (the selection arm), packages/spec/src/ui/view.zod.ts (retire list view bulkActions; bulkActionDefs stays), packages/spec/src/ui/component.zod.ts and packages/spec/src/ui/bulk-action.zod.ts (only where they reference the view key), packages/spec/src/ui/action.metadata-form.ts, a new ADR-0087 conversion under packages/spec/src/conversions/entries/19/ plus packages/spec/src/conversions/registry.ts, a new semantic entry under packages/spec/src/migrations/entries/semantic/, packages/spec/liveness/{action,view,object}.json, the bulk readers in ui/packages/plugin-grid/src/ (resolveBulkActions.ts, ObjectGrid.tsx, components/SelectionBar.tsx), ui/packages/plugin-list/src/ListView.tsx, ui/packages/plugin-view/src/ObjectView.tsx, ui/packages/app-shell/src/views/ (objectViewListRenderer.tsx, objectViewHeaderToolbar.ts, objectViewTabs.ts, metadata-admin/inspectors/ActionDefaultInspector.tsx), ui/packages/types/src/ (objectql.ts, ui-action.ts), the bulk lint rules in packages/lint/src/ (validate-action-dispatch-contract.ts, validate-action-name-refs.ts, validate-action-locations.ts, validate-object-action-layout.ts, validate-list-view-field-refs.ts, i18n-walk.ts, rule-explanations.ts), the declarations in examples/app-showcase/src/ui/ (views task, field-zoo; actions index.ts, predicate-matrix.action.ts), content/docs/** that teaches the key, generated references, new test files named for the card, .changeset/36496-*.md. NOT skills/** (a domain:skills follow-up card) and NOT HotCRM (a hotcrm follow-up card through its 19 pin bump). Stop on breach; explain in the report.
    Container & model: M, mode:thread, model: default tier (dispatch-gates.mjs --tier on the surface: "no path-derived mandate"), effort: high (a contract change with a lossless conversion and a reader move, design judgement in the arm and the bar order)
    Clause-②: yes (narrowing)
    Metadata-protocol: narrowed
    Responsibility: n/a — not a defect card
    Thread-read: 7248010032
    Premise: holds on main d89d3e2 — ACTION_LOCATIONS is list, record, record_page, record_row, record_related, record_section (no selection); OBJECT_ACTION_LAYOUT_SCOPES is ['list', 'record']; ListViewSchema.bulkActions is z.array(z.string()) in view.zod.ts. Census of authored bulkActions: lists on main: 3 in objectstack (examples/app-showcase field-zoo default + gated_columns, task bulk_actions), 8 in HotCRM at 0a20569 (opportunity 6 via GRID_BULK, contact 1, lead 1); the card's 28 / 15 files was an earlier count. No object lists different bulk sets on two views. Only grid views draw the selection bar (plugin-grid).
    Prior rulings read: bulkActions,actionLayout,selection-bar,bulkActionDefs → 0 ADR hits; card body: maintainer 2026-11-22 「放在对象上,分列表和记录」 and 「三类都由动作声明,分两步做」; Ruling-ref: 7213534162 (#36495 letter A: 「现在开,#36495 先做」, this card after #36495, before 19.0.0 GA); object-action-layout.ts cites the maintainer's ruling on #36635 (the layout sits on the object); thread: none
    Serial constraints cleared: #36495 merged (PR #37929, 58b513a) and #36366 closed. check-handover --inflight on the file-level surface: OVERLAP — 1 claim, #35143 (repo:objectstack#6) by its packages/lint/** claim width; its open PR #38241 shares only packages/lint/src/rule-explanations.ts with this surface (a different rule's text). overlap-check.mjs runs before the first push and before every push; a textual conflict with #38241 queues this branch behind it.
    Pre-claim lane: area:ux · domain:spec (paths packages/spec/src/ui/action.zod.ts, packages/spec/src/data/object-action-layout.ts) · Feature · p2
    Pre-claim deps: #36495 closed completed (PR #37929 merged); #36366 closed.

    Window: before 19.0.0 GA. L2 at the contract-review tier (published schema and a narrowing). Lands like Tier H: after L1 and a same-head PASS the PR goes to the seat for hand-off.

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 29, 2026
  9. 11 remaining items

  10. os-warren commented on Nov 30, 2026

    @os-warren
    Collaborator

    decision-thread · os-warren · session_01JQwxbYcj5qaBb5wS7m815k

    维护者速读

    • 问题:批量按钮收归对象统一之后,有四个表格视图(演示应用「Field Zoo」的两个,HotCRM 的「全部线索」和「全部联系人」)在勾选多条记录时会新出现「批量删除」;只有本来就有删除权限的人看得到(HotCRM 是销售经理和系统管理员,一线销售、市场和客服不变),他们每次在这四个视图多选都会遇到,而同一对象的其它视图里这个按钮原本就有。
    • 选项:接受并写明——这四个视图多出批量删除,升级说明、升级工具的逐视图提示和交接说明都点名,不新增配置项,就在现有这一个合并请求里改完,HotCRM 升级任务上补一句;或给视图新增一个「不显示内置删除」的开关——四个视图保持原样,但平台多一个要长期维护的配置项,同一对象各视图的按钮又不一致,约两到三个合并请求;或对象只要有多选操作就不再自动给删除——四个视图保持原样,但三个对象的另外十一个视图要靠升级工具逐个补写删除,没有视图定义的关联子表会不声不响丢掉删除,约两个合并请求。
    • 推荐接受并写明:批量删除跟着对象和删除权限走、同一对象每个视图一致,正是这次改动要的结果,而这四个视图此前没有删除只是旧规则的副作用,查不到任何有意隐藏的痕迹。
    • 不定会怎样:这个合并请求过不了契约评审,批量操作的统一赶不上下个大版本正式发布,HotCRM 的升级也跟着等。

    Served-tier: CONTRACT_REVIEW_TIER
    Analysed-by: sub-agent of session_01JQwxbYcj5qaBb5wS7m815k

    Background

    Card #36496 (PR #38550, head a12968ecfe, FAIL at contract review 7268177634) retires a list view's bulkActions list. Actions declare the selection location, and the object's actionLayout.selection arm orders the bar a grid shows once two or more rows are selected. The card exists by the maintainer's two decisions of 2026-11-22, quoted in its body: 「放在对象上,分列表和记录」 and 「三类都由动作声明,分两步做」. Its Done-when reads "Multi-select shows the same actions on every view of an object, in the selection arm's order" and "The conversion moves every existing view list without losing an action."

    Retiring the list also changes when the bar draws the built-in bulk Delete, which is no action and has no location. Under the old rule a view that listed custom bulk actions without naming delete drew no Delete. Under the PR's rule Delete is drawn wherever the object allows a delete and the view carries no bulkActionDefs. The dev raised this as open question Q1 in report 7253576747 and recommended B′ ("Delete stays wherever the object allows a delete") because "no object loses Delete it had before". The PR body records "seat repo:objectstack#5 ruled B′ on a census of 0". Review finding M1 measured that the census was wrong in the gain direction and returned the question.

    Two things about that earlier ruling. It is a seat ruling, and its only carrier is one sentence in the PR body's Acceptance notes: neither thread holds a ruling record for it. And the subject is a destructive button reaching more screens, which is on the human floor (SKILL.md 〈升级与决策〉, decision-analysis.md 「安全/权限边界与破坏性难逆动作恒在人工地板」), so it is put to the maintainer here and B′ is not treated as authority.

    Governing text

    • Card Bulk actions declared on the action (selection) with a selection arm in the object action layout, moved from view bulkActions #36496 body, Done-when: "Multi-select shows the same actions on every view of an object, in the selection arm's order." (gh api repos/objectstack-ai/objectstack/issues/36496 --jq .body). The maintainer's words that created it are quoted above.
    • ADR-0085 §2 (docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md:68): "Keys that merely hide/re-arrange correct information … are rejected at this layer. The supported path for per-page control is the one that already exists and is honestly scoped: an assigned page (full page schema)." Note of 2026-11-23 (line 134): "An arm is a scope, not a page"; and "The guard keeps its force for every other key, above all per-page show/hide switches." The text governs ObjectSchema keys. A view-level hide switch is outside its letter, but it is the kind of key the text names.
    • ADR-0087 D2 (docs/adr/0087-metadata-protocol-upgrade-contract.md:161): "Semantic changes are excluded. A change whose old shape has no lossless mapping cannot be converted; it goes to D3." D3 (line 185): "one entry per retirement family, even when a lossless D2 conversion also exists for it"; (line 209): a migration that cannot be expressed declaratively "gets a structured TODO entry (surface, reason, acceptance criteria) rather than silence".
    • AGENTS.md Prime Directive 10 (line 234): "never advertise or demo a capability the runtime doesn't actually deliver". The changeset's "The built-in Delete keeps its place wherever the object allows a delete" (.changeset/36496-selection-bulk-actions.md:23 at the head) is such a sentence, in both directions (M1).
    • AGENTS.md Prime Directive 12 (line 251, contract-first) and SKILL.md 〈升级与决策〉: 「协议为基准:…改协议、新增公开面另立卡,⛔ 不作 Bug 选项。」 A new authorable key is its own card.
    • ADR-0049 (docs/adr/0049-no-unenforced-security-properties.md:34, the enforce-or-remove gate) and SKILL.md axis ④: 「每个已声明的键都是永久义务」.
    • The renderer's own ruled comment on what the old list was (ui/packages/plugin-grid/src/ObjectGrid.tsx:1842-1846 on main): "Bulk delete is the most destructive affordance on the list, so it rides the same object-level delete verdict as the row kebab … An author-declared bulkActions: ['delete'] / bulkActionDefs[].operation === 'delete' is a WIRING declaration, not a permission grant". Who may delete was never the list's decision.
    • The spec text the PR itself writes for the sibling scope (packages/spec/src/data/object-action-layout.ts at the head): "The record scope has none: New, Edit and Delete keep their fixed places."
    • None found that rules whether the selection bar's built-in Delete follows a view: git grep -l -i -e bulkActions -e bulkActionDefs -e "selection bar" -e "implicit Delete" -e "built-in Delete" origin/main -- docs/adr ui/docs/adr returns 0 files.

    Protocol statement

    Does this change the protocol? Option 1: no further change. The PR's own Metadata-protocol: narrowed and Clause-②: yes (narrowing) stand, and the Delete gain is a behaviour change that the changeset and the D3 entry must state. Option 2: yes, an addition, one new authorable view key, which by the rule above is its own card and its own ruling on the name. Option 3: no schema change. It is a new renderer rule that couples the built-in Delete to object-level placements, plus a conversion that writes more view entries.

    Premises (each with a re-check)

    1. On main a non-empty list draws Delete only when it names delete; with no list, Delete is implicit when the view resolves no def. git show origin/main:ui/packages/plugin-grid/src/ObjectGrid.tsx | sed -n 1893,1898p at 0124851bae: explicitBulkActions && explicitBulkActions.length > 0 ? keptDeleteAction : canDelete && onBulkDelete && bulkActionDefs.length === 0 ? ['delete'] : []. Holds.
    2. At the PR head a list view hands the grid no list, and the rule is canDelete && onBulkDelete && authoredBulkDefCount === 0. git show a12968ecfe:ui/packages/plugin-grid/src/ObjectGrid.tsx | sed -n 1909,1914p. Holds. canDelete folds in the user's own delete grant and the object's userActions.delete (ui/packages/plugin-grid/src/rowCrudAffordances.ts, resolveRowCrudAffordances), so nothing here widens who may delete.
    3. Census of authored lists, objectstack: git grep -c -E "^\s*bulkActions\s*:" origin/main -- 'examples/**/*.view.ts' gives field-zoo.view.ts:2, task.view.ts:1; no other package source declares one (git grep -n -E "bulkActions\s*:\s*\[" origin/main -- '*.ts' '*.tsx' '*.json' ':!**/*.test.*' ':!**/__tests__/**' ':!packages/spec/**' ':!packages/lint/**' ':!ui/**' ':!content/**' ':!skills/**' ':!docs/**' ':!.claude/**' returns the same 3 lines). The two Field Zoo lists (the default view and gated_columns) name ten actions, no delete, and sit beside no def, so both gain Delete. showcase_task's bulk_actions view carries a def (task.view.ts:196), so it stays without.
    4. Census, HotCRM at 62c5e249: git -C /home/user/hotcrm grep -c -E "^\s*bulkActions\s*:" origin/main -- 'src/**/*.view.ts' gives opportunity 6, contact 1, lead 1. The 6 opportunity lists each sit beside bulkActionDefs: [...GRID_BAR], whose one entry is operation: 'delete', so they are unchanged. all_leads (lead.view.ts:114) and all_contacts (contact.view.ts:53) carry no def (git -C /home/user/hotcrm grep -n -E "^\s*bulkActionDefs\s*:" origin/main -- src/sales/views/lead.view.ts src/sales/views/contact.view.ts returns 0 lines), so both gain Delete. Total gaining views: 4, as the seat measured. cloud, brightrule and docs.objectos.ai declare no list (same grep, 0 lines).
    5. No list in either repo names delete, so no view loses Delete through the list: git -C /home/user/hotcrm grep -n -i -E "bulkActions\s*:.*delete" origin/main -- 'src/**/*.view.ts' returns 0 lines, GRID_BULK is ['mass_update_stage'], and the three showcase lists were read.
    6. Who sees the new button. HotCRM: git -C /home/user/hotcrm grep -c -E "crm_(lead|contact):\s+\{.*allowDelete: true" origin/main -- 'src/sales/profiles/*.ts' gives sales-manager 2 and system-admin 2; the rep, marketing, service-agent and crm-user profiles carry allowDelete: false on both objects. Showcase: no authored permission set grants delete on showcase_field_zoo (git grep -n -E "showcase_field_zoo:.*allowDelete" origin/main -- examples/app-showcase/src/security/permission-sets.ts returns one line, allowDelete: false), so only an administrator sees it there.
    7. The same people already hold Delete on the same records. On main the other grid views of crm_lead (my_leads, hot_leads, high_priority, suspected_duplicates) and of crm_contact (primary_contacts) declare no list and no def, so they already draw the implicit bulk Delete; and all_leads / all_contacts already draw the row Delete (no rowActions list on either view). Read from the sources and the rule in premise 1. Not browser-measured.
    8. No evidence that any of the 4 views withholds Delete on purpose, and there is evidence the other way. No test pins the absence (git -C /home/user/hotcrm grep -n -i -E "all_leads|all_contacts" origin/main -- 'test/**' | grep -i -E "delete|bulk|selection" returns 0 lines). HotCRM's own source calls the old rule a loss: src/sales/views/opportunity.view.ts:33-35, "Delete is declared because any authored bulk entry hides the console's default bulk Delete on that list, so a list naming Update Stage alone loses Delete (Open Deals had, before docs: close week-of doc gaps (os publish removal, RLS current_user, search, authz, SDUI, dataset joins, package-first) #2338)".
    9. The other built-in on the bar already ignores a view's list. On main Change Owner is appended "wherever its host wires it" whatever the list says (ObjectGrid.tsx:1899-1902, objectstack#35403).
    10. What option 3 would have to write. Views that draw the implicit Delete on main and whose object gains a selection action: showcase_task 6 (default, in_progress, urgent, done, tabular, grid; legacy_row_actions declares rowActions without delete and already draws none), crm_lead 4, crm_contact 1. That is 11 views on 3 objects. showcase_field_zoo has no such view, so the seat's "every no-list view of 4 objects" is 3 objects by this count. awk outline of the four view files on origin/main of each repo; not browser-measured.
    11. HotCRM already pins the 19 pre-release line (git -C /home/user/hotcrm show origin/main:package.json | grep '"@objectstack/spec"' gives 19.0.0-next.2), so it meets this change at its next pin bump, carried by hotcrm#2860.

    Premise found inexact in the seat's brief: only item 10 (3 objects and 11 views, not 4 objects). The brief's "seat 5's earlier Q1 ruling" has no record comment to read, as said under Background.

    Concrete question

    After the upgrade, people who may delete leads, contacts or Field Zoo records see a bulk Delete button on four list views where it was absent. Is that the intended result of moving the bar to the object, to be declared as a change? Or must those four views stay exactly as they were, at the price of a new view switch or of a new rule that hides Delete whenever an object has multi-select actions?

    Options

    Option What is done What the customer sees Effort
    1: accept and declare Renderer rule stays as at the head. The changeset, the ADR-0087 D3 entry, the tombstone prescription and the conversion say the measured rule: Delete is drawn wherever the user may delete and the view carries no bulkActionDefs, and a view whose list named actions without delete now draws it. The conversion reports each such view by name as it moves the list (computed, so third-party apps get it too), and where a list named delete beside defs it carries Delete over as an operation: 'delete' def. The PR's per-object list, its 维护者速读 and hotcrm#2860 name the 4 views. No new key A HotCRM sales manager or system administrator who ticks two or more rows on All Leads or All Contacts sees Delete beside the campaign action, as on every other lead and contact view. Reps, marketing and service users see no change. In the showcase only an administrator sees it, on two Field Zoo views. Nobody loses Delete spec lane · 0 new PRs: one fix round on #38550, plus one comment on hotcrm#2860 · measured precedent: the last review-round fix on this same branch, commit c2b58680e0 (14 files, +79/−41)
    2: new per-view switch A new authorable list-view key that turns the built-in bulk Delete off, read by the grid and the non-grid bar, with lint, form, i18n, liveness and docs. The conversion writes it on each gaining view. Filed and ruled as its own card (name included) before #38550 can land The 4 views look exactly as before for everyone. Other views of the same objects still draw Delete, so the bar differs between views of one object. Authors get one more switch to learn on every list view spec + ui lanes · 2–3 PRs (the key's own card and PR, the #38550 fix round, the HotCRM port) · 无先例 for a view switch that hides a built-in; nearest landed new-key PRs, not like for like: #20882 (three new keys on the grid block, +353/−34, 13 files) and #36629 (actionLayout with its design-mode UI, +3726/−91, 82 files)
    3: selection actions suppress Delete The grid stops drawing the implicit Delete on every grid of an object that places any action at selection. The conversion writes an operation: 'delete' def on every view that drew Delete on main: 11 views on 3 objects in the two repos The 4 views look as before. 11 other views keep Delete only because the upgrade tool wrote an entry on each. Grids with no authored view (a record's related tables, saved personal views) lose Delete with no message. Any author who later places the first multi-select action on an object loses bulk Delete on all its views until an entry is written on each ui + spec lanes · 2 PRs (a larger #38550 round touching the grid, the non-grid bar and the conversion; a larger HotCRM port, 5 views) · 无先例 for a suppression rule keyed on an object-level placement

    Business meaning

    • Option 1: bulk Delete is a standard function of the record type, like Edit and Delete on the record page. Whoever may delete leads gets it on every lead list, and the release notes say which screens changed. It is the difference between a permission and a screen setting, and this option keeps it a permission.
    • Option 2: every list view gets its own "no bulk delete here" checkbox, so that four screens stay the way an old side effect left them. It is the per-view list the card retires, coming back as a per-view switch.
    • Option 3: the day an administrator adds any bulk button to a record type, the platform removes bulk Delete from all of its lists unless each list asks for it back. That is the rule HotCRM already hit and reported as a loss on Open Deals, widened from one view to the whole object.

    Four-axis argument

    End state, axis ① first. In two years the selection bar of a record type should be one thing: the object's actions that declare selection, in the object's order, plus the platform's own standard functions (Delete, Change Owner), each offered to whoever holds the permission, on every list of that object. Hiding a standard function from someone is done where access is decided (the delete grant, the object's userActions.delete), and curating one particular screen is done on a page, whose grid block keeps its own operations ceiling (packages/spec/src/ui/component.zod.ts, operations: GridOperationsSchema). That is how the references model it. Salesforce configures list buttons per object ("List View Button Layout"), not per list view, and bulk delete from a list is an admin-built list button rather than a per-view toggle. Airtable deletes selected rows by base permission in every grid view, and puts its per-screen "allow delete" toggle on Interface pages, the analogue of our page block. Twenty and Attio offer delete on multi-select by role, with no per-view setting that I know of. Option 1 is that end state. Options 2 and 3 each keep a per-view difference in the bar, which the card's first Done-when line removes.

    • Long-term soundness (①). Option 1 leaves one rule and no new surface: Delete follows the permission, like Change Owner already does (premise 9) and like New, Edit and Delete in the record scope. Option 2 grows the contract by a key whose only job is to preserve four screens, and it re-opens per-view authoring of the bar in the PR that closes it. Option 3 adds a hidden coupling between an object-level placement and a built-in on every view, and it needs 11 written view entries to stand still; surfaces with no authored view cannot be repaired by the conversion at all.
    • Real business pull (②). Nobody is asking for these four screens to stay without Delete: no comment, no test and no card says so (premise 8). The measured pull runs the other way, since HotCRM re-declared Delete on six opportunity lists after losing it to the old rule. The people affected are HotCRM's sales managers and system administrators (2 of its profiles) and showcase administrators, and they already delete the same records from the row menu and from sibling views (premise 7). With zero pull for a switch, the default is not to add one.
    • Preventing AI mistakes (③). Under option 1 an agent that places an action at selection cannot remove anything, and the upgrade is loud: the conversion names each view that gains Delete. If the rule is wrong for some app, a person with delete rights sees one extra button, behind the existing confirmation that counts the batch. That is a visible error, not a leak, because the permission is unchanged. Under option 3 the error is silent and common: an agent adds one bulk action, every list of the object loses Delete, the build is green and nothing says why. Under option 2 the key is a closed boolean, which is safe in shape, but it is one more thing to forget on each new view, and a forgotten one is silent too.
    • Startup focus (④). Option 1 declares nothing new. Option 2 declares a key that is a permanent obligation (form, i18n, lint, docs, conversion history) for four screens. Option 3 declares no key but ships a rule and 11 authored entries that every later change to the bar must keep working.
    os-decision-facets
    ① Long-term soundness: option 1 keeps one rule and no new surface (built-ins follow the permission on every view of the object, as Change Owner and the record scope's Edit/Delete already do); option 2 adds a per-view key and option 3 a hidden object-to-view coupling, and both keep the per-view bar the card retires.
    ② Real business pull: zero for withholding Delete on the 4 views (no comment, test or card); measured pull the other way (HotCRM re-declared Delete on 6 opportunity lists after the old rule hid it); affected users are HotCRM sales managers and system administrators, who already hold row Delete there and bulk Delete on sibling views.
    ③ Preventing AI mistakes: option 1 fails visibly (one extra, permission-gated, confirmed button, named per view by the conversion); option 3 fails silently (placing one selection action removes Delete from every list); option 2 is a closed boolean but one more per-view thing to forget.
    ④ Startup focus: option 1 declares nothing; option 2 is a permanent key for four screens; option 3 is a standing rule plus 11 written view entries.
    Prior rulings read: bulkActions,bulkActionDefs,actionLayout,selection-bar,implicit-delete,built-in-delete,bulk-delete → 5 hits; ADR-0085 §2 note 2026-11-23, ADR-0087 D2, ADR-0087 D3; thread: 4 (card body, maintainer 2026-11-22 twice; 7253576747 Q1; PR #38550 Acceptance notes, seat 5 B′; 7268177634 M1)
    

    The 5 ADR hits are actionLayout in ADR-0085 and ADR-0146 and "bulk delete" in ADR-0058, ADR-0070 and ADR-0148. None of them rules on the selection bar's Delete.

    Recommendation

    Option 1 (accept and declare). It is reached from axis ① alone: the built-in Delete belongs to the object and the permission, so it is the same on every view, which is the card's own first Done-when line. It is also the cheapest by more than 3× (no new PR against two or three), but the reading on ① is not close, so effort does not carry the choice. This is not taken from the seat. It differs from the seat's wording in two points: the conversion reports the gaining views by computing them, so an app outside our two repos is told as well, and no spec text hard-codes the four view names (those belong in the PR body and on hotcrm#2860).

    • Option 2 is not taken: there is no measured need for it, it is a new public key that would need its own card and ruling, and it brings back per-view control of the bar in the change that moves the bar to the object. A screen that must not offer Delete already has two honest routes, the page grid block's operations, and a view rowActions list without delete, which closes row and bulk Delete together (read in resolveRowCrudAffordances, not browser-measured).
    • Option 3 is not taken: it restores the rule HotCRM reported as a loss, makes it object-wide, and fails silently on every grid the conversion cannot write to.

    Confidence gaps, said plainly and not grounds for another choice:

    • Neither app was booted. The 4 gaining views and the 11 views of premise 10 are read from sources and from the renderer rule.
    • Apps outside objectstack and HotCRM, and stored view rows in customer databases, are not counted. The conversion's per-view notice is what reaches them; a stored row is a TODO either way (the review's H1).
    • Whether a bulk delete can be undone on a given deployment was not measured. ADR-0148 lists "bulk delete into the bin" as a later item, while HotCRM's confirmation copy says the recycle bin.
    • The platform comparisons: the Salesforce and Airtable statements rest on search-result titles (a Salesforce "List View Button Layout" guide, flows built to mass-delete from a list view, Airtable's "inline record creation, deletion, editing settings in interfaces" update), not on pages read in this session. Twenty and Attio are from memory.
    • A view that carries any bulkActionDefs still draws no implicit Delete. That rule is older than this PR and outside this fork; option 1 states it as the exception and names the operation: 'delete' route (M1's second half). One small edge beside it: main counted the defs left after the permission filter, the head counts authored defs, so a user who may delete but not edit loses the implicit Delete on a view whose only defs are field updates. It needs a delete grant without an edit grant; noted for the dev's acceptance notes.

    Self-check: 只看①选 1;②③④ 是否翻转:否 (② finds no pull for a switch, ③ prefers the visible failure over option 3's silent one, ④ adds nothing).

    Execution after the ruling

    Option 1, as a ruling with a premise (the dev verifies it before acting, and reports a fork if it fails; no falling back to another option):

    • Premise: exactly the 4 views of premises 3 and 4 gain Delete, no view loses it, and no source or test states an intent to withhold Delete on any of them. Re-check with the commands of premises 3, 4, 5 and 8 at the then-current heads.
    1. One fix round on claude/project-thread-kko9wu (PR feat(spec)!: actions that act on many records are placed at selection; a list view's bulkActions is retired #38550), no renderer change. Changeset: replace "keeps its place" with the measured rule, name the bulkActionDefs exception and the operation: 'delete' route, and state the gain as a change. D3 entry view-bulk-actions-declared-on-the-action: the same sentence in reason. Tombstone prescription: one sentence on Delete. Conversion: a notice per moved list whose view now draws Delete, naming object and view; a list naming delete beside defs carries it over as an operation: 'delete' def, or gets a TODO that names that route; a fixture pair for each.
    2. PR body: the per-object list and the 维护者速读 name the 4 views and who sees the button; the Acceptance notes cite the maintainer's ruling id in place of "seat repo:objectstack#5 ruled B′ on a census of 0".
    3. A comment on hotcrm#2860: its acceptance gains "All Leads and All Contacts offer bulk Delete to Sales Manager and System Administrator after the port; expected".
    4. The rest of the review as already owed: S1, S2, S3 (the dogfood battery re-run at the new head), then a fresh contract review on that head. If the seat takes N1's add-only ADR-0085 note for the selection arm, the sentence on built-ins goes into that note.
    5. The seat records the ruling on the card and in the director's ledger; the card leaves the decision inbox with the ruling id.

    Option 2: #38550 stays in draft. A new card for the view key goes to the decision inbox first (the name is a ruling, not a guess), then its PR, then the #38550 round in which the conversion writes the key on gaining views, then the HotCRM port. Shipping #38550 with the gain as an interim would be a staged half and is not proposed.

    Option 3: #38550 grows by a renderer change in the grid and in the non-grid bar, a conversion that writes a delete def on each view of premise 10, a D3 sentence that grids without an authored view lose Delete, and new pins; hotcrm#2860 grows to 5 written views.

    Related

    #36496 (this card) · PR #38550 (head a12968ecfe) · contract review 7268177634 (M1) · dev report 7253576747 (Q1) · #36495 / PR #37929 (step 1, action locations) · #36366 / PR #36629 and PR #36815 (actionLayout, list and record arms) · #36635 ruling 7101013317 (the layout sits on the object) · hotcrm#2860 (HotCRM port of the 8 lists) · hotcrm#2338 (Open Deals lost Delete under the old rule) · #38477 (grid block bulkActions / batchActions, enforce-or-remove) · #38552 (skills teaching) · #38554 (host-composition exemption count) · ADR-0085, ADR-0087, ADR-0049, ADR-0148.


    Generated by Claude Code

  11. added
    needs-user-decision
    and removed
    pm:dispatched
    on Nov 30, 2026
  12. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu

    2026-11-30T04:11Z · Ruling record: M1 — option 1, accept and declare.

    Maintainer (Warren, os-warren), decision tap in os-warren's fleet project decision thread, 2026-11-30T04:11:11Z: 「接受并写明」 on the question 「四个视图多选时新出现批量删除,怎么处理?」. Before tapping he asked whether bulk Delete is a built-in and whether the four views gain the button they should always have had; both were answered yes (bulk Delete is the built-in, not a declared action). Analysis: comment 7268428687 (Served-tier CONTRACT_REVIEW_TIER, verify-review-tier PASS). Raised by the M1 finding on PR #38550.

    Reading, at rule level:

    • The renderer rule stays as built: the four views that gain built-in bulk Delete on multi-select keep it.
    • The changeset, the D3 entry, the tombstone prescription and the conversion TODO state the measured rule, including the bulkActionDefs exception and the operation: 'delete' route.
    • The conversion reports each gaining view by name.
    • The PR body, its 维护者速读 and hotcrm#2860 list the four views.

    Execution: PR #38550's next round carries the above (analysis 7268428687 §Execution after the ruling). The card returns from needs-user-decision to pm:dispatched; the delta contract review follows that round.

  13. added
    pm:dispatched
    and removed
    needs-user-decision
    on Nov 30, 2026
  14. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-warren · session_01JQwxbXrFACZU7uBEGoSEVd
    os-dev-report

    Rework round on contract review 7268177634 and maintainer ruling 7268555255. Head e743d38e584a8fca24987989d4b16ab6db20b9f3.

    {
     "issue": 36496,
     "status": "done",
     "branch": "claude/project-thread-kko9wu",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/38550",
     "session": "session_01JQwxbXrFACZU7uBEGoSEVd",
     "premise_still_valid": true,
     "summary": "M1 per ruling 7268555255 (option 1, accept and declare): the grid's renderer rule stays, and the changeset, the D3 entry, the tombstone prescription and every conversion TODO now state it, with the bulkActionDefs exception and the { name: 'delete', operation: 'delete' } route. The conversion appends that def where a list names delete beside authored defs, and names each view that gains the built-in Delete in a notice. Re-measured before the change: B (list names delete beside defs) = 0 views, C (gains Delete) = 4: showcase_field_zoo default and gated_columns, HotCRM crm_lead all_leads and crm_contact all_contacts. Confidence gap: authored defs are counted after the verdict filter, as main did, pinned by plugin-grid bulkImplicitDeleteVerdict-36496.test.tsx. S1 rewords 'defs lead the bar' for both cases (no arm: defs lead the bar; arm: only pinned names are buttons, defs lead 「More」). S2 adds PageComponentActionLocationSchema (every location but selection) for action:button / action:icon locations, action:group member locations and the group's location filter. N3 fixed. Main merged after the code commits at ca26068250 and e743d38e58, merge only, no rebase.",
     "tests": "e54ad9700c: spec 1008/1008 files, 30527 passed (1 todo). Head: spec src/data/object + src/conversions + src/ui 238 files, 8093 passed; platform-objects translations 625 passed (full package 130/130 files, 2221 passed at e54ad9700c); ui from ui/ --maxWorkers=3: plugin-grid, components action renderers and __tests__, app-shell metadata-admin, plugin-list, plugin-view, plugin-detail, types: 2084 files passed / 2 skipped, 21260 tests passed; plugin-detail at head 423 files, 4007 passed. Ablation: bulkImplicitDeleteVerdict-36496 red with the pre-filter count, green with the fix; component-action-locations-selection red with component.zod reverted, green with it.",
     "gates": "dispatch-gates --commands on this round's paths: 143 commands, all exit 0 after fixes (check:spec-parsed-alias 1 -> 0 with the alias pin; platform-objects 1 -> 0 after restoring translations an i18n extract had reverted; ui suite 124 timeout -> rerun green). At head after the last merge: check:generated 0, check:docs 0, check:i18n 0, check:spec-parsed-alias 0, check-sdui-manifest 0. CI at e743d38e58: 63 success, 11 skipped, 2 failure: Test UI (7/16) and its aggregate Test UI, on app-shell ObjectHooksPanel.aiDraftNotice-36660.test.tsx ('Found multiple elements with the text: Guard (AI)'). This branch does not touch app-shell studio-design; the file passes 7/7 locally at the head on 4 runs. Read as a flake, not rerun from here.",
     "dogfood_battery": "e743d38e584a8fca24987989d4b16ab6db20b9f3 · os-verify-lock: VERDICT command-exit 0 · held the lock 2341s · Test Files 495 passed / 3 skipped (498) · Tests 4187 passed / 68 skipped (4255) · failures: none (closure rebuilt first, exit 0)",
     "mcp_calls": "reads only: pull_request_read (get, get_check_runs, get_status), issue_read (get); no write tool",
     "api_writes": "relay (objectstack-fleet[bot]) only: hotcrm#2860 comment 7270812213; objectstack#38550 issue_patch (PR body); this comment",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": ["N6: ui/packages/components/src/renderers/action/action-bar.tsx:388 registers action:bar's location enum from ACTION_LOCATIONS, so it still publishes `selection` · carrier: PR #38550 delta review N6 · noted, not filed", "Test UI flake: ObjectHooksPanel.aiDraftNotice-36660 'Guard (AI)' found twice on one CI shard · carrier: this report · noted, not filed"]
    }

    Generated by Claude Code

  15. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-warren · session_01JQwxbXrFACZU7uBEGoSEVd
    os-dev-report

    Merge-only round after the delta PASS. Head aceacfe469429c12c9715cee30b226e930011eb5.

    {
     "issue": 36496,
     "status": "done",
     "branch": "claude/project-thread-kko9wu",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/38550",
     "session": "session_01JQwxbXrFACZU7uBEGoSEVd",
     "premise_still_valid": true,
     "summary": "No code change since e743d38e58. origin/main merged twice with merge only and no rebase: 3b5b2f9307 + regeneration 29fb45c64b (main at 80ddfb5050), then 4cf3132716 + regeneration aceacfe469 (main at 95ffacc2c5). The only conflicts were os-regen generated files. I took main's side and regenerated from the merged tree with gen:schema, build, gen:api-surface, gen:export-origins, gen:declaration-map, gen:docs and gen:liveness-counts.",
     "tests": "The dogfood battery passed at both merge heads (see dogfood_battery). No other test inputs from this branch changed.",
     "gates": "At aceacfe469: check:generated 0, check:docs 0, check:i18n 0, check:spec-parsed-alias 0, check-sdui-manifest 0 (also 0 at 29fb45c64b). CI at aceacfe469: 63 success, 11 skipped, 0 failure. PR mergeable=true, mergeable_state clean.",
     "dogfood_battery": "aceacfe469429c12c9715cee30b226e930011eb5 · os-verify-lock: VERDICT command-exit 0 · held the lock 2262s · Test Files 495 passed / 3 skipped (498) · Tests 4187 passed / 68 skipped (4255) · failures: none (closure rebuilt first, exit 0). Also at 29fb45c64b: VERDICT command-exit 0, same counts, no failures.",
     "mcp_calls": "0",
     "api_writes": "relay (objectstack-fleet[bot]) only: objectstack#38550 issue_patch (PR body Tests line), and this comment",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": []
    }

    Generated by Claude Code

  16. objectstack-fleet commented on Nov 30, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-warren · session_01JQwxbXyLoBzNYY1U8SNPFu

    2026-11-30T11:38Z · Landed — card closed by the merge; seat label cleared.

    PR #38550 (bulk actions declared on the action, selection location; a declared narrowing) merged at 2026-11-30T11:30Z as acf3b33e31, approved and merged by os-zhuang. Contract PASS 7275602842, seat ACCEPT 7275621785, hand-off 7276392291. Carried as follow-up notes, no card yet: N6 (action-bar.tsx:388 still publishes selection for the JSX-only action:bar) and N7 (the ObjectExtension.actionLayout describe names two of its three scopes).

  17. removed
    pm:dispatched
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:specenhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions