Repository navigation
Description
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Filing gate: ① a product defect with a named location · Source: fleet (the consumer half of #37151 route A, left to seat repo:objectstack#4 under #36911; filed by zone a4-U at the seat's request)
What happens
PR #37128 (#36911) makes plugin-grid's shared row menu read the batch approval-lock door. A row the read answers as locked offers no Edit, and Delete stays, because the server accepts the delete of a record held by its own approval and cancels the request (#13568).
A master-detail line whose master is held is different. The detail-row lock hook refuses insert, update and delete (bindDetailRowLockHook in packages/plugins/plugin-approvals/src/lifecycle-hooks.ts). On such a line the menu still offers a Delete the server then refuses with RECORD_LOCKED.
PR #37191 (#37151, route A) merged at 2026-11-25T05:21Z. Both lock doors now answer { locked: true, lockSource: 'record' | 'master' } (master wins when both hold), { locked: false } or null, and the client types carry it. That PR left ui/packages/plugin-grid/** untouched and named this half as seat 4's, under #36911.
reach: read from code. Reachable from any list page or related list over the lines of an expense report or order under approval (showcase expense lines). Not measured in a browser.
Expected
The row menu, and the list page's single-row selection bar that reads the same rowActionMenuProps, hides Delete on a row whose lock answer is lockSource: 'master'.
A row held by its own approval (lockSource: 'record') keeps Delete, as today. A 501, a null entry, or a failed or unasked read leaves the menu as it was.
Acceptance
- Pins, in the existing harness
rowMenuApprovalLock-36911.test.tsx:- a
master-held row offers neither Edit nor Delete; - a
record-held sibling offers no Edit and keeps Delete; - the list-page selection bar does the same;
- the 501,
nulland failed-read controls stay green.
- a
- Ablate once (drop the
masterarm): the master pin goes red. - Update the column docblock and the
ObjectGrid.tsxhook comment, which since fix(plugin-grid): row menu hides Edit on a row held by a locking approval #37128 say a master-held line "keeps Edit and Delete in this menu, and is refused by the server". - One
patchchangeset for@object-ui/plugin-grid.
Grading: area:ux · Bug · moderate (an offered action the server refuses; no data written wrong) · reach named (the grid row menu via #37128, showcase expense lines) · evidence read → p2; size S. Triage to confirm.
Business reason: anyone working the lines of an expense report or order under approval in a list page is offered a Delete the server then refuses. The batch lock door exists so a list can know first.
Reader: zone a4-U (seat repo:objectstack#4), which claims it at its next free slot.
Dedupe: lockSource (open) → #37195, the record page composite lock (a different door). hide Delete master and row menu master-held → no open card for the grid half. #37151 lists it as its consumer item, and PR #37191 hands it to seat 4 under #36911.
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
First touch 2026-11-25T08:56Z. Confirmed as filed. area:ux · domain:ui · Bug · priority:p2 · size S ·
pm:queue→ seat 4 zone a4-U. The severity is moderate: the menu offers an action the server refuses, and no data is written wrong. The reach is named: list pages and related lists over lines under approval. Dedupe is confirmed against #37195, which is a different door.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Claim: PM loop round 2 · area a4-U · 2026-11-25T12:28Z
Session:
session_01QSeKYmRepQK9DkZeU7F53DAccount:
os-justinBranch:
claude/issue-37231-grid-master-held-hide-deleteWorktree:
objectstack-issue-37231Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-U
File surface:
ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts(carrylockSource),ui/packages/plugin-grid/src/ObjectGrid.tsx(the row-menu props near ~1577 and the hook comment), the row-menu column docblock in plugin-grid, the list-page selection bar where it reads the samerowActionMenuProps, the pins inrowMenuApprovalLock-36911.test.tsx, and onepatchchangeset for@object-ui/plugin-grid. Stop on breach and explain in the report.Container & model: S, mode:subagent, model: default (dispatch-gates --tier at 4ed453d: no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: the platform's own grid row menu (
@object-ui/plugin-grid, objectstack), which reads the batch approval-lock door but drops itslockSource| none: the door has answeredlockSourcesince PR #37191, and no client reads it in the grid | list pages and related lists over master-detail lines under approval (the showcase expense lines); offered a Delete the server refuses withRECORD_LOCKEDThread-read: 7157675480
Premise: holds. At
origin/main4ed453d, plugin-grid has nolockSourceread:ObjectGrid.tsx~1577 passesapprovalLocked: approvalLocks.isLocked(recordId, row)(a boolean) to the row menu.Serial constraints cleared: none. No in-flight claim or open PR of this zone touches
ui/packages/plugin-grid/**: #37251 is plugin-detailaddEntry, #37262 is componentsaction:*, #37283 is plugin-detail/app-shell, and #37285 is app-shell ObjectDataPage. The dev runs overlap-check before every push.Pre-claim lane: triage first touch 7157675480 routed it to seat 4, zone a4-U; not an epic child.
Pre-claim deps: #37191 (merged), #37128 (merged).
Prior rulings read: card terms (lockSource, master-held, row menu Delete) → no ruling line. #37151 route A (PR #37191) names this consumer half. Repo: objectstack-ai/objectstack
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 37231, "status": "done", "branch": "claude/issue-37231-grid-master-held-hide-delete", "pr": "https://github.com/objectstack-ai/objectstack/pull/37296", "session": "session_01QSeKYmRepQK9DkZeU7F53D", "premise_still_valid": true, "summary": "useRowApprovalLocks now keeps the batch lock door's lockSource on a locked:true entry and exposes heldByMaster(recordId), which is true only for a row a read answered lockSource 'master'. The grid's row CRUD verdict ANDs !heldByMaster into canDelete, so the row menu, the context menu and the list-page selection bar (all read rowActionMenuProps) drop Delete on a master-held line; a record-held row keeps Delete and loses Edit as before; 501, null, failed or unasked reads leave the menu unchanged. ObjectGrid.tsx also enables the lock read on a grid whose rows offer Delete but no Edit (rowMenuReadsLocks), else a Delete-only grid never read the lock; this stays inside the claimed file surface. Docblock and hook comment updated; one patch changeset.", "tests": "At 929d5f0d68: harness rowMenuApprovalLock-36911.test.tsx: Test Files 1 passed, Tests 10 passed (3 new pins under objectstack#37231: master-held row offers neither Edit nor Delete while the record-held sibling keeps Delete; a Delete-only grid drops Delete on the master-held line; the list-page selection bar does the same. The 501/null/failed-read controls now include a master-held row and stay green). plugin-grid suite: Test Files 313 passed, Tests 2786 passed, lock VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs --delete on the anchor ' && !heldByMasterAnswered(row)' in objectGridActionsColumn.tsx: mutation landed (blob d9d2a5403f50 -> 2fcebc3668cf), 3 failed | 7 passed (all three master pins red), restored (blob == HEAD, git diff HEAD empty). Two earlier attempts are not counted: one was refused as a no-op before any test ran, and the other broke the syntax and collected no tests. No dist rebuild was needed because the tests import ../ObjectGrid by relative path. The rowMenuReadsLocks widening has no separate ablation.", "gates": "Local: pnpm --filter @object-ui/plugin-grid type-check, exit 0. dispatch-gates --commands (stderr names objectstack-ai/objectstack at 929d5f0d68) listed 39 families. All 39 ran with exit 0, and --ran reconciled them: '39 run, 0 NOT-MEASURED (a DERIVED zero)'. Dependency closure build pnpm --filter '@object-ui/plugin-grid^...' build: VERDICT command-exit 0. overlap-check: VERDICT clean exit 0, and #37215 shares ObjectGrid.tsx and objectGridActionsColumn.tsx but merges cleanly. PR check-runs on 929d5f0d68 when this report was written: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Dogfood Regression Gate success, Live E2E UI success, Build UI Deps success. Build Core is skipped by the path selector. Lint UI, Type Check UI, Test UI (16 shards) and Build & E2E UI are in_progress.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — git push (branch); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/37296/assignees os-justin); plus this os-dev-report comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Delivered · area a4-U · 2026-11-25T14:53Z. PR #37296 merged as
d88c41e51dand closed this card throughFixes #37231. L1 ACCEPT was 7165315525. The grid row menu, the context menu and the list-page selection bar now drop Delete on a line answeredlockSource: 'master'. A record-held row keeps Delete, as before. Thepm:dispatchedlabel comes off with this comment.