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
Filing gate: ① an experience defect, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7125789335). Source: the "Secondary" point of #36851 and L1 7125751385 N1 on PR #36885, which fixes #36851's primary point.
What happens
On a record page's related list, a row the server will refuse to edit or delete with RECORD_LOCKED still shows Edit and Delete in its row menu. An example is the lines of a confirmed sales order in HotCRM. After PR #36885, pressing them gives a toast with the server's userMessage. The reader still only learns that the row is locked after acting.
reach: measured in a browser walkthrough of HotCRM by the #36851 reporter. It reaches users of related lists over children that a package rule locks.
Expected
Where the console can know in advance that a row is locked, the row's Edit and Delete are hidden or disabled with the reason. Where it cannot know, the behaviour after #36885 stands.
Acceptance
The dev first establishes what the related list can know before acting: a per-row permission, a lock flag or a declared lock rule that is already served. That reading goes in the PR.
If something is already served, the related list's row Edit and Delete follow it (disabled with the reason, or hidden), matching what the list page does for the same row.
If nothing is served, the dev reports a fork instead of forcing it: serving lock state is a new capability, split off as a separate Feature.
Dedupe: open issues for RECORD_LOCKED row actions and for hiding edit/delete on a locked row return only #36851, the parent.
Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size S.
Rationale: a row offers actions the server will refuse. After #36885 the refusal is explained, so what remains is an affordance problem: the UX rule gives p2. If the console has nothing served to read the lock from, the card forks into a Feature, as its Acceptance says. Seat 3 takes it, as its request said.
Claim: PM loop round 1 · area a4-U · 2026-11-24T16:29Z
Session: session_01QSeKYmRepQK9DkZeU7F53D
Account: os-justin
Branch: claude/issue-36911-related-list-locked-rows
Worktree: objectstack-issue-36911
Domain: domain:ui
Seat: repo:objectstack#4
Area: a4-U
File surface: ui/packages/app-shell/src/views/RelatedRecordActionsBridge.tsx and the related list's row-menu component it feeds (located by the dev), a new test file named for this card, translations only if the grid's grid.readOnlyReason.approvalLocked cannot be reused, one patch changeset. ⛔ No new public export from any package; a route that needs one is reported as a fork (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier at 8e4ac50: no path-derived mandate), effort: high (reason: S but not mechanical — which lock read to reuse without widening a public surface is a design judgment, M treatment)
Clause-②: no
Metadata-protocol: none
Responsibility: the platform's own code (ui/packages/app-shell related-list row actions, objectstack) | the platform path that already covers it: the approvals lock door POST /api/v1/approvals/records/:object/locks (packages/rest/src/approvals-routes.ts), read per page by the grid's useRowApprovalLocks (ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts, wired at ObjectGrid.tsx:1488) and by the record page (RecordDetailView.tsx:2505); the related list reads none of it (RelatedRecordActionsBridge.tsx:598-602 judges Edit/Delete from object-level grants only) | users of related lists over children an approval lockRecord node locks, measured by the #36851 reporter in a HotCRM walkthrough
Thread-read: 7125834996
Premise: holds — build arm: per-row lock state is already served (approvals batch lock door; lockRecord in packages/spec/src/automation/approval.zod.ts:1171), so the card's fork arm does not apply. Lock sources the door does not report (e.g. service-storagerecord-file-access.ts:999) keep the after-the-fact toast from PR #36885
Serial constraints cleared: none in the expected files — the only open PR near this surface is #36802 (ui/packages/app-shell/src/utils/deriveRelatedLists.ts, inline-edit retirement), a different file; overlap-check runs before the first push. Sibling in-zone dev #36876 works in ui/packages/app-shell/src/layout/**, disjoint
Pre-claim lane: ui/** — this seat's whole-repo lane
Pre-claim deps: no Blocked-by:; parent #36851's PR #36885 is merged
Prior rulings read: record_locked,approvallocked,getrecordlocks,relatedrowedit → 0 hits; thread: none; surface: no ruling-shaped line in the two expected files. Repo: objectstack-ai/objectstack
{
"issue": 36911,
"status": "needs_decision",
"branch": "claude/issue-36911-related-list-locked-rows",
"pr": null,
"session": "session_01QSeKYmRepQK9DkZeU7F53D",
"premise_still_valid": true,
"summary": "No code and no PR. The card's defect holds: a related row the server refuses still offers Edit and Delete. But the PM's build-arm assumption is partly false, and the one sound build route breaks the dispatch's fence, so this is a fork. Reading at origin/main 8e4ac50d: a related list can know three lock signals, and it already follows two of them. (1) Declared userActions.edit/delete visibleWhen/disabledWhen predicates: both faces follow them (data-table rowEditPredicates; ObjectGrid editPredicates). (2) A master's approval lock on its master-detail lines: followed. RecordDetailView passes serve=withDetailWritesWithheld while approvalLocked, so New, Edit and Delete are withheld on those lists (objectstack#35599 ruling A). (3) A row's OWN approval lock: served by the batch door POST /api/v1/approvals/records/:object/locks, but followed by neither the related list's row menu nor the list page's. The measured case (HotCRM confirmed-order lines) is a package hook, not an approval, and nothing serves it, so it falls in the card's fork arm. The route for (3) without a new export or a copied hook is plugin-grid's shared row menu. That route also changes the list page, which the dispatch calls out of scope. It also misses the compact data-table face. Both conflict with the fence, so I stopped.",
"served_state_reading": "Tree: objectstack-ai/objectstack @ 8e4ac50d. (a) Per-row permission: useRecordCrudVerdicts (explain engine) is read only by ObjectGrid. Its own docs (useRowApprovalLocks.ts header) say it does not see approvals. (b) Lock flag: there are two doors. The single-record door GET .../approvals/records/:object/:recordId/lock (getRecordLock) answers for the record itself and for a master-detail line of a held master. The batch door POST .../locks (getRecordLocks, the one the grid reads) answers for the record itself ONLY. Measured with a one-off probe in plugin-approvals' integration rig (now deleted): single={locked:true}, batch=[{locked:false}], update of the same line=RECORD_LOCKED. An approval lock refuses UPDATE of the record itself but not DELETE: the delete lands and cancels the request (lifecycle-hooks.ts bindDetailRowLockHook doc, #13568 ruling). Detail lines refuse insert, update and delete. (c) Declared lock rule: userActions predicates, followed by both faces. (d) Package-hook refusals (the HotCRM measured case; service-storage record-file-access is another source): nothing is served.",
"list_page_row_menu_reading": "The list page does NOT honour the approval lock in its row menu. ObjectGrid calls useRowApprovalLocks(hostCellSelection ? objectName : undefined) and reads it only in the cell facts (ObjectGrid.tsx:1488/1555, the cell's read-only reason grid.readOnlyReason.approvalLocked). The row menu (objectGridActionsColumn.tsx:92-93, components/RowActionMenu.tsx) gates Edit/Delete on canEdit/canDelete and recordVerdict (explain engine) only, so it has zero approval reads. The record page related tab renders the same ObjectGrid (RelatedList enlarged face, type object-grid), so the reporter's 'Order Lines related tab' row menu IS this component. The compact face renders the components data-table (DataTableBuiltinRowActionItem), which has no approval read and cannot import plugin-grid (no dependency).",
"disabled_vs_hidden_choice": "Not built. The record page is the reference the dispatch named. It HIDES Edit on an approval-locked record (RecordDetailView ~:5288, objectstack#35593: 'draws no Edit at all; the header's approval tag says why') and keeps Delete live, because the server accepts that delete. It withholds (hides) New/Edit/Delete on the master-detail lines of a locked master (#35599). A build would follow that: Edit hidden on an approval-locked row, Delete left as is.",
"tests": "No product test was written: no implementation. Evidence run: a one-off probe added to a copy of packages/plugins/plugin-approvals/src/record-lock-read.integration.test.ts, run as `pnpm --filter @objectstack/plugin-approvals exec vitest run --maxWorkers=2 src/zz-probe-36911.integration.test.ts` under os-verify-lock. Output: `PROBE36911 {\"single\":{\"locked\":true},\"batch\":[{\"locked\":false}],\"write\":\"RECORD_LOCKED\"}`; Tests 1 failed | 12 passed (13); lock VERDICT command-exit 1 (the probe's parity assertion failing is the finding). Build before it: `turbo run build --filter=@objectstack/plugin-approvals^... --concurrency=2` VERDICT command-exit 0 (38/40 cached). After the run the probe file was deleted, `git status --porcelain` is empty, and `git diff HEAD` is empty at 8e4ac50d.",
"gates": "No diff, so no derived gate family is owed. NOT RUN: the 20 dispatch-listed commands and @object-ui/app-shell test/typecheck, reason: empty change set. overlap-check: `node scripts/pm/overlap-check.mjs --branch=claude/issue-36911-related-list-locked-rows` exit 0, 'changes 0 file(s); against origin/main (422df61651) and 0 PR head(s) ✓ origin/main: merges cleanly VERDICT clean exit 0'. No PR, so there are no check-runs.",
"dogfood_battery": "n/a: no PR, no `!` title, no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "1: POST issues/36911/comments (os-dev-report, via post-stamped.mjs). Plus 1 git push: an empty branch as the routing probe. Reads: 3 single-card REST reads (gh api issues/36911, issues/36911/comments, issues/36851).",
"line_budget": "0 lines changed (no diff)",
"files_changed": [],
"deviations": [
"The empty-branch probe push came before overlap-check. It changed 0 files; overlap-check was run afterwards and is clean.",
"PM mechanism assumption falsified: 'detail lines of a locked master report locked' holds for the single door (getRecordLock), not for the batch door (getRecordLocks) that the grid and any list would read. Measured, see tests.",
"PM mechanism assumption made moot: detail lines of an approval-locked master are already withheld on the record page (RecordDetailView serve=withDetailWritesWithheld, objectstack#35599 ruling A). So the realistic related-list case of the 'build arm' is already shipped.",
"Dispatch conflict surfaced, not resolved by picking a side: the only no-export, no-copy route for a row's own approval lock is plugin-grid's shared row menu. That route also changes the list page, which the dispatch says is out of scope and not to fix here."
],
"open_questions": [
{
"question": "A related row that is ITSELF held by a locking approval (showcase: Account -> Projects related tab, a project under exec_review, lockRecord: true) still offers Edit, and the server refuses it RECORD_LOCKED. How, if at all, should the row menu follow the served batch lock door?",
"options": [
"A. Fix it in plugin-grid's shared row menu (ObjectGrid.tsx + objectGridActionsColumn.tsx). Probe useRowApprovalLocks on the menu's existing onActionsDemand (beside recordVerdict.requestVerdicts; never on first paint, the #35795 posture), hide Edit on a locked row (record page #35593), keep Delete. Covers the list page AND the record page related tab with one hook, no export, no copy. Leaves the compact data-table face, body tables and the phone gallery unfollowed; the #36885 toast stands there. Size S-M, one package, Clause-2 no. Business: serves the showcase case on both surfaces, not the HotCRM measured case. Long-term: one read, one rule (resolveApprovalLock), the row menu joins the record page. AI-error: no new authoring surface, nothing declared without enforcement. Startup: no new capability or gate, reuses a served door.",
"B. Thread a per-row lock channel from RelatedRecordActionsBridge. That means a new member on RelatedRecordHandlers (@object-ui/react), a new RelatedList prop, a new data-table schema key and ObjectGrid host prop, and an app-shell read (a copy of useRowApprovalLocks or a new export of it). Covers both faces. Size M-L, widens 3-4 public surfaces, breaches the dispatch fence. Business: same rows as A plus the compact face, still not HotCRM. Long-term: a second lock reader or a widened export; the shared row menu stays wrong for the list page. AI-error: neutral. Startup: most surface for least measured pull.",
"C. Build nothing for (3) now. Record the reading on the card; the after-the-fact toast stands for every lock. Size 0. Business: the showcase case keeps offering Edit until refused. Long-term: acceptable, no workaround. AI-error: neutral. Startup: best."
],
"recommendation": "A, re-scoped as its own card in plugin-grid (or this card re-routed there), because it is the only route that follows the served door with the existing hook and rule, keeps Clause-2 no and widens nothing. It also closes the list page's identical gap instead of making the related tab disagree with the list page. Pairs with F1 below: until the batch door reports detail lines, A must not be read as covering lines on the list page of a detail object."
},
{
"question": "The card's measured case (HotCRM: lines of a confirmed sales order refused by the package's own hook) is served by nothing. Split off 'serve lock state for hook refusals' as a Feature, per the card's fork arm?",
"options": [
"A. File the Feature (for example, the server answering per row 'would a write be refused, and why', hooks included). Size L, a new capability.",
"B. Do not file. The declared lever both faces already follow is the child object's userActions.edit/delete visibleWhen/disabledWhen; an app that wants the row menu to know declares it there (carrier: hotcrm, if its line carries a field the predicate can read). The #36885 toast covers the rest."
],
"recommendation": "B, on the startup-focus axis: there is no served signal, one measured app, and its own declared lever already exists and is enforced on both faces. A new server capability for an affordance nicety (the parent card's own word) has no pull yet."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"F1 class: a (also b) · Seam: spec:IApprovalService.getRecordLocks → runtime:packages/plugins/plugin-approvals/src/approval-service.ts getRecordLocks (recordsHeldByLockingApproval only, no detailRowHeldByLockingApproval half) | consumer: ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts · contract text: packages/rest/src/approvals-routes.ts 'Each entry is exactly the single-record door's answer for that id'; service doc '{@link getRecordLock} for a page of rows' · reach: named real producer/consumer: the list page's select-first cells call useRowApprovalLocks on a master-detail line object (showcase_expense_line under a locked showcase_expense_report) and open an editor the detail-row hook refuses RECORD_LOCKED; the wrong answer was measured at the service layer (single={locked:true}, batch=[{locked:false}], write=RECORD_LOCKED), not over HTTP; the route maps the answer 1:1 · dedupe words: getRecordLocks detail row, batch lock door master_detail line, record locks page parity, detailRowHeldByLockingApproval",
"F2 class: a (experience) · the list page's row menu offers Edit on a row held by a locking approval (ObjectGrid row menu reads no approval lock; read only by cells). Not reproduced in a browser: code reading only, so not fileable as is · carrier: this card's open_questions option A (the seat), noted, not filed",
"F3 carrier: none · the compact related-list face (components data-table) and the phone gallery cannot reach the grid's lock hook without a new dependency or export; a residual of option A, noted only"
]
}
Re-routed · area a4-U · 2026-11-24T18:12Z · claim 7137775783 (branch unchanged: claude/issue-36911-related-list-locked-rows)
Provenance: the seat session session_01QSeKYpEsWWE9Y5YtSsDgqZ (seat repo:objectstack#4), message to this zone at 2026-11-24T16:42Z, answering the dev's fork in report 7138000944: Q1 「席位裁 A,不呈维护者」, with precedent — the record page hides Edit and keeps Delete on an approval-locked record (#35593; a delete cancels the request, #13568) — and Q2 「取 B」.
Q1, route A: the fix moves to plugin-grid's shared row menu. useRowApprovalLocks is probed on the menu's existing onActionsDemand, never on first paint; Edit is hidden on a row held by a locking approval, and Delete stays. Both the list page and the record page's related tab render this menu, so both are fixed together. The card's acceptance "matching what the list page does" now means both read the same lock. No new export, and the hook and its rule are not copied. Clause-②: no, Metadata-protocol: none.
Not covered: the compact related-list face (components data-table) cannot reach the grid hook without a new dependency or export. That is recorded in the PR's Acceptance notes; no card is filed for it.
Q2, B: no Feature card for serving lock state for package-hook refusals (the HotCRM case). An app that wants the row menu to know declares it on the child object's userActions.edit / delete predicates, which both faces already follow. After-the-fact refusals keep the toast from PR fix(plugin-detail): a refused related-list row delete toasts its refusal #36885.
New file surface:ui/packages/plugin-grid/src/ (ObjectGrid.tsx, objectGridActionsColumn.tsx, components/RowActionMenu.tsx as measured; hooks/useRowApprovalLocks.ts only if its probe trigger must widen, unexported). Plus a new test, one patch changeset, and the PR body's Acceptance notes. RelatedRecordActionsBridge.tsx is no longer in scope.
{
"issue": 36911,
"status": "done",
"branch": "claude/issue-36911-related-list-locked-rows",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37128",
"session": "session_01QSeKYmRepQK9DkZeU7F53D",
"premise_still_valid": true,
"summary": "Built route A as re-routed (comment 7140314619). plugin-grid's shared row menu now reads the approval lock through the existing, unexported useRowApprovalLocks and its resolveApprovalLock rule. Nothing is copied and nothing is newly exported. The read is asked through the menu's onActionsDemand (ObjectGrid demandRowActions, one read for the page), never on first paint. A row whose read ANSWERED locked offers no Edit; Delete stays. The list page and the record page's related tab (the enlarged face renders object-grid) change together. The menu passes the hook no row, so the approval_status column does not stand in: a 501, a null entry, a failed read or a read not yet asked leaves the menu as today, per the pin. Two existing explain fakes were stale fixtures under the new read and were fixed in this PR.",
"served_state_reading": "Unchanged from report 7138000944 (tree 8e4ac50d, re-read at 1e96009a): declared userActions predicates are followed by both faces; master-detail lines of a locked master are withheld by the record page (#35599); the row's own approval lock is served by the batch door, and this PR now follows it in the row menu; package-hook refusals are served by nothing (seat Q2 = B, no Feature).",
"list_page_row_menu_reading": "Before: the row menu read no approval lock; the lock reached only the cell facts (ObjectGrid.tsx useRowApprovalLocks was gated on hostCellSelection). After: one component, so the list page and the related tab read the same lock. The hook now runs when hostCellSelection || (canEdit && onEdit), and it still reads nothing until asked.",
"disabled_vs_hidden_choice": "Hidden. That follows the record page (objectstack#35593: an approval-locked record draws no Edit) and the row menu's own record-verdict posture (#4296: hide, not disable). Delete is kept: the server lets a locked record be deleted and cancels its request (#13568).",
"files_changed": [
"ui/packages/plugin-grid/src/ObjectGrid.tsx",
"ui/packages/plugin-grid/src/objectGridActionsColumn.tsx",
"ui/packages/plugin-grid/src/__tests__/rowMenuApprovalLock-36911.test.tsx (new)",
"ui/packages/plugin-grid/src/__tests__/rowRecordCrudVerdict.test.tsx (fixture: lock door routed apart)",
"ui/packages/plugin-grid/src/__tests__/inlineEditRecordVerdict-27365.test.tsx (fixture: lock door routed apart)",
".changeset/36911-row-menu-approval-lock.md (patch, @object-ui/plugin-grid, Clause-②: no, Metadata-protocol: none)"
],
"line_budget": "6 files, +318 / -7 (dispatch-gates changed-lines count at d4f56f4a; under the 3000 human-merge threshold)",
"tests": "New file rowMenuApprovalLock-36911.test.tsx, 5 pins: a locked row has no Edit but has Delete, while the unlocked sibling keeps Edit; no lock read before demand, then one page read and none on repeat; a 501 over an approval_status pending row leaves the menu as it was; a null entry leaves Edit; a failed or unasked read leaves Edit. Result 5/5. Ablation via scripts/ablation-replace.mjs (no build or dist: the test imports the source directly): anchor `canEdit && rowOps?.update !== false && !approvalLockAnswered(row),` to `canEdit && rowOps?.update !== false,`. Landed on disk (anchor 1 to 0, blob 2c0f37ef to dc3f8dc5). Turned red as predicted (Tests 1 failed | 4 passed, VERDICT command-exit 1). Restored: blob == HEAD, git diff HEAD empty. The first ablation attempt hit a lock queue-timeout (99): NOT MEASURED, restored, re-run. Full suite at d4f56f4a: `cd ui && pnpm exec vitest run --maxWorkers=2 packages/plugin-grid/` gave Test Files 312 passed (312), Tests 2771 passed (2771), VERDICT command-exit 0. The earlier run at 2f9deb37 had 2 files and 19 tests red: stale explain fakes that counted the lock read. Fixed at abbeea23; the 3 affected files then gave 36/36. Type-check: `turbo run type-check --filter=@object-ui/plugin-grid` at abbeea23 gave 54/54 tasks, plugin-grid a cache miss, exit 0, and tsc --listFilesOnly shows tsconfig.test.json compiles all 3 test files. At d4f56f4a: `pnpm run type-check` in the package, exit 0 (declared narrowing: run without the lock after two 540s queue-timeouts behind a dogfood holder; tsc --noEmit writes nothing). ui scripts: after the seven @objectstack builds (VERDICT command-exit 0, FULL TURBO), `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` at d4f56f4a gave 172 passed | 2 skipped files, 5130 passed | 2 skipped tests, exit 0.",
"gates": "dispatch-gates --commands at d4f56f4a derived 39 commands. All 39 exit 0, each captured before any pipe; check:changeset-fixed was added and also exits 0. `--ran` with exit-coded lines: '39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN (a DERIVED zero — all 39 recorded an exit code)'. check:type-check-debt exited 3 once at 2f9deb37 (not measured on that pass); its later runs exited 0. overlap-check before each push, all exit 0, last at d4f56f4a: origin/main 9d707686, #37084 and #37079 (both edit ObjectGrid.tsx), all merging cleanly. CI on PR #37128 head d4f56f4a was in_progress when this report was written (Lint ·, Type Check ·, Governed Surface Queue Guard, Check Changeset, PR-body guards: in_progress; no conclusions yet).",
"dogfood_battery": "n/a: no `!` in the title and no (narrowing) arm (Clause-②: no)",
"mcp_calls": "0",
"api_writes": "This round: 2 relay writes. (1) pr_create, draft, assignees [os-justin] (fw-20261124T211653Z-b8b729): POST /repos/objectstack-ai/objectstack/pulls, then POST issues/37128/assignees; read-back 8630/8630 bytes identical. (2) This os-dev-report comment, POST issues/36911/comments via post-stamped.mjs. Plus 4 git pushes (9fcdfaf8, 2f9deb37, d4f56f4a, and the round-1 empty probe). Round 1 had: 1 comment (7138000944). Reads: single-card REST reads of issues/36911, comment 7140314619, pulls/37128 and its check-runs.",
"deviations": [
"Two existing test files were edited beyond the named surface (rowRecordCrudVerdict.test.tsx, inlineEditRecordVerdict-27365.test.tsx). They were stale fixtures under this change: each explain fake answered the new lock read as an explain call. Each fake now answers the lock door 'unlocked' and leaves it out of its call count; assertions are unchanged.",
"Menu reads only ANSWERED locks (isLocked(id, null)). The cells keep the approval_status column fallback. Choosing the menu side follows the pin '501 / null / unread leaves the menu as today', not a copy of the rule.",
"Edit is not held inert while the lock read is on the wire (the hook does not re-render on probe start or on a failed read, so a settling-based inert state could stick). A click before the answer behaves as before, and the #36885 toast covers the refusal. Recorded in the PR's Acceptance notes.",
"The final type-check at d4f56f4a ran without the lock (declared narrowing, see tests).",
"Merged origin/main (9d707686) after dispatch-gates flagged a stale tree. The merge touched no plugin-grid file and none of the seven-package closure. The full suite and gates were re-run on the merged head."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #37041 · detail lines of a locked master read 'not locked' from the batch door, so on a detail object's own list page their Edit stays until #37041 lands (recorded in Acceptance notes)",
"carrier: none · the compact related-list face (components data-table) and the phone gallery cannot reach the grid hook without a new dependency or export; not covered, no card per the seat's ruling (recorded in Acceptance notes)"
],
"cleanup": "worktree /home/user/objectstack-issue-36911 removed (clean, node_modules deleted); no process of this run left running"
}
{
"issue": 36911,
"status": "done",
"round": "fix round 1 (L1 REWORK 7145402177)",
"branch": "claude/issue-36911-related-list-locked-rows",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37128",
"head": "4c64a0a109",
"session": "session_01QSeKYmRepQK9DkZeU7F53D",
"S1": "done: the Delete claim is narrowed to 'a record held by its own approval' in objectGridActionsColumn.tsx (approvalLocks doc + approvalLockAnswered doc), in ObjectGrid.tsx, and in the changeset. Each now names that a line held because its master is held refuses delete, so the read must tell the two apart (#37041). No code change.",
"S2": "done, case = the selection bar ALREADY read the lock: SingleRecordActions resolves from the same rowActionMenuProps and calls onActionsDemand on mount. No wiring was added. New pin: in list-page scope (no Actions column) the bar for the selected locked row offers no Edit and keeps Delete; the unlocked sibling's bar keeps Edit (control). Ablating the hide turned it red: received {edit:true, delete:true}.",
"N1": "done: a pin holds the lock answer, opens the menu (Edit shows), releases the answer, and Edit leaves while Delete stays.",
"N2": "done: ablation isLocked(rowRecordId(row), null) -> (…, row) turned the 501-over-pending-column pin red (Tests 1 failed | 6 passed; received {edit:false}). Restore confirmed: blob == HEAD.",
"N3_N6": "added as one Acceptance-notes line each to the corrected PR body file; the PR body itself was not PATCHed.",
"tests": "rowMenuApprovalLock-36911.test.tsx 7/7. Hide ablation: 3 failed | 4 passed (the menu, list-page bar and in-flight pins). Full plugin-grid suite at 4c64a0a1: 312/312 files, 2773/2773 tests, exit 0.",
"gates": "dispatch-gates --commands: 39 derived, all exit 0 at 4c64a0a1. check:type-check-debt hit a queue-timeout (exit 3, not measured), then exited 0 on a re-run. --ran: 39 derived, 39 run, 0 NOT-MEASURED. ui scripts vitest: 172 passed + 2 skipped files, exit 0. overlap-check exit 0 before the push of 4c64a0a1.",
"api_writes": "1: this comment (post-stamped). Plus git push 4c64a0a1.",
"mcp_calls": "0",
"security_findings": "none"
}
Delivered · area a4-U · 2026-11-25T01:08Z · PR #37128 merged as 6cfd04d9 (L1 ACCEPT 7148446479)
The shared grid row menu (related lists and the list page's single-row selection bar) now asks the batch approval-lock read when a row's actions are reached for, with one read per page. A row the read answers as held by its own approval offers no Edit; Delete stays, because the server accepts that delete and it cancels the request. A 501, a null entry, or a failed or unasked read leaves the menu as it was.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:ux·domain:ui·priority:p2· Bug ·pm:queue· size S.Rationale: a row offers actions the server will refuse. After #36885 the refusal is explained, so what remains is an affordance problem: the UX rule gives p2. If the console has nothing served to read the lock from, the card forks into a Feature, as its Acceptance says. Seat 3 takes it, as its request said.
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Claim: PM loop round 1 · area a4-U · 2026-11-24T16:29Z
Session:
session_01QSeKYmRepQK9DkZeU7F53DAccount:
os-justinBranch:
claude/issue-36911-related-list-locked-rowsWorktree:
objectstack-issue-36911Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-U
File surface:
ui/packages/app-shell/src/views/RelatedRecordActionsBridge.tsxand the related list's row-menu component it feeds (located by the dev), a new test file named for this card, translations only if the grid'sgrid.readOnlyReason.approvalLockedcannot be reused, onepatchchangeset. ⛔ No new public export from any package; a route that needs one is reported as a fork (stop on breach; explain in the report)Container & model: S, mode:subagent, model: default (dispatch-gates --tier at 8e4ac50: no path-derived mandate), effort: high (reason: S but not mechanical — which lock read to reuse without widening a public surface is a design judgment, M treatment)
Clause-②: no
Metadata-protocol: none
Responsibility: the platform's own code (
ui/packages/app-shellrelated-list row actions, objectstack) | the platform path that already covers it: the approvals lock doorPOST /api/v1/approvals/records/:object/locks(packages/rest/src/approvals-routes.ts), read per page by the grid'suseRowApprovalLocks(ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts, wired atObjectGrid.tsx:1488) and by the record page (RecordDetailView.tsx:2505); the related list reads none of it (RelatedRecordActionsBridge.tsx:598-602judges Edit/Delete from object-level grants only) | users of related lists over children an approvallockRecordnode locks, measured by the #36851 reporter in a HotCRM walkthroughThread-read: 7125834996
Premise: holds — build arm: per-row lock state is already served (approvals batch lock door;
lockRecordinpackages/spec/src/automation/approval.zod.ts:1171), so the card's fork arm does not apply. Lock sources the door does not report (e.g.service-storagerecord-file-access.ts:999) keep the after-the-fact toast from PR #36885Serial constraints cleared: none in the expected files — the only open PR near this surface is #36802 (
ui/packages/app-shell/src/utils/deriveRelatedLists.ts, inline-edit retirement), a different file; overlap-check runs before the first push. Sibling in-zone dev #36876 works inui/packages/app-shell/src/layout/**, disjointPre-claim lane:
ui/**— this seat's whole-repo lanePre-claim deps: no
Blocked-by:; parent #36851's PR #36885 is mergedPrior rulings read: record_locked,approvallocked,getrecordlocks,relatedrowedit → 0 hits; thread: none; surface: no ruling-shaped line in the two expected files. Repo: objectstack-ai/objectstack
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 36911, "status": "needs_decision", "branch": "claude/issue-36911-related-list-locked-rows", "pr": null, "session": "session_01QSeKYmRepQK9DkZeU7F53D", "premise_still_valid": true, "summary": "No code and no PR. The card's defect holds: a related row the server refuses still offers Edit and Delete. But the PM's build-arm assumption is partly false, and the one sound build route breaks the dispatch's fence, so this is a fork. Reading at origin/main 8e4ac50d: a related list can know three lock signals, and it already follows two of them. (1) Declared userActions.edit/delete visibleWhen/disabledWhen predicates: both faces follow them (data-table rowEditPredicates; ObjectGrid editPredicates). (2) A master's approval lock on its master-detail lines: followed. RecordDetailView passes serve=withDetailWritesWithheld while approvalLocked, so New, Edit and Delete are withheld on those lists (objectstack#35599 ruling A). (3) A row's OWN approval lock: served by the batch door POST /api/v1/approvals/records/:object/locks, but followed by neither the related list's row menu nor the list page's. The measured case (HotCRM confirmed-order lines) is a package hook, not an approval, and nothing serves it, so it falls in the card's fork arm. The route for (3) without a new export or a copied hook is plugin-grid's shared row menu. That route also changes the list page, which the dispatch calls out of scope. It also misses the compact data-table face. Both conflict with the fence, so I stopped.", "served_state_reading": "Tree: objectstack-ai/objectstack @ 8e4ac50d. (a) Per-row permission: useRecordCrudVerdicts (explain engine) is read only by ObjectGrid. Its own docs (useRowApprovalLocks.ts header) say it does not see approvals. (b) Lock flag: there are two doors. The single-record door GET .../approvals/records/:object/:recordId/lock (getRecordLock) answers for the record itself and for a master-detail line of a held master. The batch door POST .../locks (getRecordLocks, the one the grid reads) answers for the record itself ONLY. Measured with a one-off probe in plugin-approvals' integration rig (now deleted): single={locked:true}, batch=[{locked:false}], update of the same line=RECORD_LOCKED. An approval lock refuses UPDATE of the record itself but not DELETE: the delete lands and cancels the request (lifecycle-hooks.ts bindDetailRowLockHook doc, #13568 ruling). Detail lines refuse insert, update and delete. (c) Declared lock rule: userActions predicates, followed by both faces. (d) Package-hook refusals (the HotCRM measured case; service-storage record-file-access is another source): nothing is served.", "list_page_row_menu_reading": "The list page does NOT honour the approval lock in its row menu. ObjectGrid calls useRowApprovalLocks(hostCellSelection ? objectName : undefined) and reads it only in the cell facts (ObjectGrid.tsx:1488/1555, the cell's read-only reason grid.readOnlyReason.approvalLocked). The row menu (objectGridActionsColumn.tsx:92-93, components/RowActionMenu.tsx) gates Edit/Delete on canEdit/canDelete and recordVerdict (explain engine) only, so it has zero approval reads. The record page related tab renders the same ObjectGrid (RelatedList enlarged face, type object-grid), so the reporter's 'Order Lines related tab' row menu IS this component. The compact face renders the components data-table (DataTableBuiltinRowActionItem), which has no approval read and cannot import plugin-grid (no dependency).", "disabled_vs_hidden_choice": "Not built. The record page is the reference the dispatch named. It HIDES Edit on an approval-locked record (RecordDetailView ~:5288, objectstack#35593: 'draws no Edit at all; the header's approval tag says why') and keeps Delete live, because the server accepts that delete. It withholds (hides) New/Edit/Delete on the master-detail lines of a locked master (#35599). A build would follow that: Edit hidden on an approval-locked row, Delete left as is.", "tests": "No product test was written: no implementation. Evidence run: a one-off probe added to a copy of packages/plugins/plugin-approvals/src/record-lock-read.integration.test.ts, run as `pnpm --filter @objectstack/plugin-approvals exec vitest run --maxWorkers=2 src/zz-probe-36911.integration.test.ts` under os-verify-lock. Output: `PROBE36911 {\"single\":{\"locked\":true},\"batch\":[{\"locked\":false}],\"write\":\"RECORD_LOCKED\"}`; Tests 1 failed | 12 passed (13); lock VERDICT command-exit 1 (the probe's parity assertion failing is the finding). Build before it: `turbo run build --filter=@objectstack/plugin-approvals^... --concurrency=2` VERDICT command-exit 0 (38/40 cached). After the run the probe file was deleted, `git status --porcelain` is empty, and `git diff HEAD` is empty at 8e4ac50d.", "gates": "No diff, so no derived gate family is owed. NOT RUN: the 20 dispatch-listed commands and @object-ui/app-shell test/typecheck, reason: empty change set. overlap-check: `node scripts/pm/overlap-check.mjs --branch=claude/issue-36911-related-list-locked-rows` exit 0, 'changes 0 file(s); against origin/main (422df61651) and 0 PR head(s) ✓ origin/main: merges cleanly VERDICT clean exit 0'. No PR, so there are no check-runs.", "dogfood_battery": "n/a: no PR, no `!` title, no (narrowing) arm", "mcp_calls": "0", "api_writes": "1: POST issues/36911/comments (os-dev-report, via post-stamped.mjs). Plus 1 git push: an empty branch as the routing probe. Reads: 3 single-card REST reads (gh api issues/36911, issues/36911/comments, issues/36851).", "line_budget": "0 lines changed (no diff)", "files_changed": [], "deviations": [ "The empty-branch probe push came before overlap-check. It changed 0 files; overlap-check was run afterwards and is clean.", "PM mechanism assumption falsified: 'detail lines of a locked master report locked' holds for the single door (getRecordLock), not for the batch door (getRecordLocks) that the grid and any list would read. Measured, see tests.", "PM mechanism assumption made moot: detail lines of an approval-locked master are already withheld on the record page (RecordDetailView serve=withDetailWritesWithheld, objectstack#35599 ruling A). So the realistic related-list case of the 'build arm' is already shipped.", "Dispatch conflict surfaced, not resolved by picking a side: the only no-export, no-copy route for a row's own approval lock is plugin-grid's shared row menu. That route also changes the list page, which the dispatch says is out of scope and not to fix here." ], "open_questions": [ { "question": "A related row that is ITSELF held by a locking approval (showcase: Account -> Projects related tab, a project under exec_review, lockRecord: true) still offers Edit, and the server refuses it RECORD_LOCKED. How, if at all, should the row menu follow the served batch lock door?", "options": [ "A. Fix it in plugin-grid's shared row menu (ObjectGrid.tsx + objectGridActionsColumn.tsx). Probe useRowApprovalLocks on the menu's existing onActionsDemand (beside recordVerdict.requestVerdicts; never on first paint, the #35795 posture), hide Edit on a locked row (record page #35593), keep Delete. Covers the list page AND the record page related tab with one hook, no export, no copy. Leaves the compact data-table face, body tables and the phone gallery unfollowed; the #36885 toast stands there. Size S-M, one package, Clause-2 no. Business: serves the showcase case on both surfaces, not the HotCRM measured case. Long-term: one read, one rule (resolveApprovalLock), the row menu joins the record page. AI-error: no new authoring surface, nothing declared without enforcement. Startup: no new capability or gate, reuses a served door.", "B. Thread a per-row lock channel from RelatedRecordActionsBridge. That means a new member on RelatedRecordHandlers (@object-ui/react), a new RelatedList prop, a new data-table schema key and ObjectGrid host prop, and an app-shell read (a copy of useRowApprovalLocks or a new export of it). Covers both faces. Size M-L, widens 3-4 public surfaces, breaches the dispatch fence. Business: same rows as A plus the compact face, still not HotCRM. Long-term: a second lock reader or a widened export; the shared row menu stays wrong for the list page. AI-error: neutral. Startup: most surface for least measured pull.", "C. Build nothing for (3) now. Record the reading on the card; the after-the-fact toast stands for every lock. Size 0. Business: the showcase case keeps offering Edit until refused. Long-term: acceptable, no workaround. AI-error: neutral. Startup: best." ], "recommendation": "A, re-scoped as its own card in plugin-grid (or this card re-routed there), because it is the only route that follows the served door with the existing hook and rule, keeps Clause-2 no and widens nothing. It also closes the list page's identical gap instead of making the related tab disagree with the list page. Pairs with F1 below: until the batch door reports detail lines, A must not be read as covering lines on the list page of a detail object." }, { "question": "The card's measured case (HotCRM: lines of a confirmed sales order refused by the package's own hook) is served by nothing. Split off 'serve lock state for hook refusals' as a Feature, per the card's fork arm?", "options": [ "A. File the Feature (for example, the server answering per row 'would a write be refused, and why', hooks included). Size L, a new capability.", "B. Do not file. The declared lever both faces already follow is the child object's userActions.edit/delete visibleWhen/disabledWhen; an app that wants the row menu to know declares it there (carrier: hotcrm, if its line carries a field the predicate can read). The #36885 toast covers the rest." ], "recommendation": "B, on the startup-focus axis: there is no served signal, one measured app, and its own declared lever already exists and is enforced on both faces. A new server capability for an affordance nicety (the parent card's own word) has no pull yet." } ], "security_findings": "none", "out_of_scope_findings": [ "F1 class: a (also b) · Seam: spec:IApprovalService.getRecordLocks → runtime:packages/plugins/plugin-approvals/src/approval-service.ts getRecordLocks (recordsHeldByLockingApproval only, no detailRowHeldByLockingApproval half) | consumer: ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts · contract text: packages/rest/src/approvals-routes.ts 'Each entry is exactly the single-record door's answer for that id'; service doc '{@link getRecordLock} for a page of rows' · reach: named real producer/consumer: the list page's select-first cells call useRowApprovalLocks on a master-detail line object (showcase_expense_line under a locked showcase_expense_report) and open an editor the detail-row hook refuses RECORD_LOCKED; the wrong answer was measured at the service layer (single={locked:true}, batch=[{locked:false}], write=RECORD_LOCKED), not over HTTP; the route maps the answer 1:1 · dedupe words: getRecordLocks detail row, batch lock door master_detail line, record locks page parity, detailRowHeldByLockingApproval", "F2 class: a (experience) · the list page's row menu offers Edit on a row held by a locking approval (ObjectGrid row menu reads no approval lock; read only by cells). Not reproduced in a browser: code reading only, so not fileable as is · carrier: this card's open_questions option A (the seat), noted, not filed", "F3 carrier: none · the compact related-list face (components data-table) and the phone gallery cannot reach the grid's lock hook without a new dependency or export; a residual of option A, noted only" ] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Re-routed · area a4-U · 2026-11-24T18:12Z · claim 7137775783 (branch unchanged:
claude/issue-36911-related-list-locked-rows)Provenance: the seat session
session_01QSeKYpEsWWE9Y5YtSsDgqZ(seat repo:objectstack#4), message to this zone at 2026-11-24T16:42Z, answering the dev's fork in report 7138000944: Q1 「席位裁 A,不呈维护者」, with precedent — the record page hides Edit and keeps Delete on an approval-locked record (#35593; a delete cancels the request, #13568) — and Q2 「取 B」.useRowApprovalLocksis probed on the menu's existingonActionsDemand, never on first paint; Edit is hidden on a row held by a locking approval, and Delete stays. Both the list page and the record page's related tab render this menu, so both are fixed together. The card's acceptance "matching what the list page does" now means both read the same lock. No new export, and the hook and its rule are not copied.Clause-②: no,Metadata-protocol: none.componentsdata-table) cannot reach the grid hook without a new dependency or export. That is recorded in the PR's Acceptance notes; no card is filed for it.userActions.edit/deletepredicates, which both faces already follow. After-the-fact refusals keep the toast from PR fix(plugin-detail): a refused related-list row delete toasts its refusal #36885.domain:server, filed by this zone), so route A does not cover such lines until Approvals batch lock read answers "not locked" for a master-detail line of a locked master, unlike the single-record read it claims to equal #37041 lands.ui/packages/plugin-grid/src/(ObjectGrid.tsx,objectGridActionsColumn.tsx,components/RowActionMenu.tsxas measured;hooks/useRowApprovalLocks.tsonly if its probe trigger must widen, unexported). Plus a new test, onepatchchangeset, and the PR body's Acceptance notes.RelatedRecordActionsBridge.tsxis no longer in scope.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 36911, "status": "done", "branch": "claude/issue-36911-related-list-locked-rows", "pr": "https://github.com/objectstack-ai/objectstack/pull/37128", "session": "session_01QSeKYmRepQK9DkZeU7F53D", "premise_still_valid": true, "summary": "Built route A as re-routed (comment 7140314619). plugin-grid's shared row menu now reads the approval lock through the existing, unexported useRowApprovalLocks and its resolveApprovalLock rule. Nothing is copied and nothing is newly exported. The read is asked through the menu's onActionsDemand (ObjectGrid demandRowActions, one read for the page), never on first paint. A row whose read ANSWERED locked offers no Edit; Delete stays. The list page and the record page's related tab (the enlarged face renders object-grid) change together. The menu passes the hook no row, so the approval_status column does not stand in: a 501, a null entry, a failed read or a read not yet asked leaves the menu as today, per the pin. Two existing explain fakes were stale fixtures under the new read and were fixed in this PR.", "served_state_reading": "Unchanged from report 7138000944 (tree 8e4ac50d, re-read at 1e96009a): declared userActions predicates are followed by both faces; master-detail lines of a locked master are withheld by the record page (#35599); the row's own approval lock is served by the batch door, and this PR now follows it in the row menu; package-hook refusals are served by nothing (seat Q2 = B, no Feature).", "list_page_row_menu_reading": "Before: the row menu read no approval lock; the lock reached only the cell facts (ObjectGrid.tsx useRowApprovalLocks was gated on hostCellSelection). After: one component, so the list page and the related tab read the same lock. The hook now runs when hostCellSelection || (canEdit && onEdit), and it still reads nothing until asked.", "disabled_vs_hidden_choice": "Hidden. That follows the record page (objectstack#35593: an approval-locked record draws no Edit) and the row menu's own record-verdict posture (#4296: hide, not disable). Delete is kept: the server lets a locked record be deleted and cancels its request (#13568).", "files_changed": [ "ui/packages/plugin-grid/src/ObjectGrid.tsx", "ui/packages/plugin-grid/src/objectGridActionsColumn.tsx", "ui/packages/plugin-grid/src/__tests__/rowMenuApprovalLock-36911.test.tsx (new)", "ui/packages/plugin-grid/src/__tests__/rowRecordCrudVerdict.test.tsx (fixture: lock door routed apart)", "ui/packages/plugin-grid/src/__tests__/inlineEditRecordVerdict-27365.test.tsx (fixture: lock door routed apart)", ".changeset/36911-row-menu-approval-lock.md (patch, @object-ui/plugin-grid, Clause-②: no, Metadata-protocol: none)" ], "line_budget": "6 files, +318 / -7 (dispatch-gates changed-lines count at d4f56f4a; under the 3000 human-merge threshold)", "tests": "New file rowMenuApprovalLock-36911.test.tsx, 5 pins: a locked row has no Edit but has Delete, while the unlocked sibling keeps Edit; no lock read before demand, then one page read and none on repeat; a 501 over an approval_status pending row leaves the menu as it was; a null entry leaves Edit; a failed or unasked read leaves Edit. Result 5/5. Ablation via scripts/ablation-replace.mjs (no build or dist: the test imports the source directly): anchor `canEdit && rowOps?.update !== false && !approvalLockAnswered(row),` to `canEdit && rowOps?.update !== false,`. Landed on disk (anchor 1 to 0, blob 2c0f37ef to dc3f8dc5). Turned red as predicted (Tests 1 failed | 4 passed, VERDICT command-exit 1). Restored: blob == HEAD, git diff HEAD empty. The first ablation attempt hit a lock queue-timeout (99): NOT MEASURED, restored, re-run. Full suite at d4f56f4a: `cd ui && pnpm exec vitest run --maxWorkers=2 packages/plugin-grid/` gave Test Files 312 passed (312), Tests 2771 passed (2771), VERDICT command-exit 0. The earlier run at 2f9deb37 had 2 files and 19 tests red: stale explain fakes that counted the lock read. Fixed at abbeea23; the 3 affected files then gave 36/36. Type-check: `turbo run type-check --filter=@object-ui/plugin-grid` at abbeea23 gave 54/54 tasks, plugin-grid a cache miss, exit 0, and tsc --listFilesOnly shows tsconfig.test.json compiles all 3 test files. At d4f56f4a: `pnpm run type-check` in the package, exit 0 (declared narrowing: run without the lock after two 540s queue-timeouts behind a dogfood holder; tsc --noEmit writes nothing). ui scripts: after the seven @objectstack builds (VERDICT command-exit 0, FULL TURBO), `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` at d4f56f4a gave 172 passed | 2 skipped files, 5130 passed | 2 skipped tests, exit 0.", "gates": "dispatch-gates --commands at d4f56f4a derived 39 commands. All 39 exit 0, each captured before any pipe; check:changeset-fixed was added and also exits 0. `--ran` with exit-coded lines: '39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN (a DERIVED zero — all 39 recorded an exit code)'. check:type-check-debt exited 3 once at 2f9deb37 (not measured on that pass); its later runs exited 0. overlap-check before each push, all exit 0, last at d4f56f4a: origin/main 9d707686, #37084 and #37079 (both edit ObjectGrid.tsx), all merging cleanly. CI on PR #37128 head d4f56f4a was in_progress when this report was written (Lint ·, Type Check ·, Governed Surface Queue Guard, Check Changeset, PR-body guards: in_progress; no conclusions yet).", "dogfood_battery": "n/a: no `!` in the title and no (narrowing) arm (Clause-②: no)", "mcp_calls": "0", "api_writes": "This round: 2 relay writes. (1) pr_create, draft, assignees [os-justin] (fw-20261124T211653Z-b8b729): POST /repos/objectstack-ai/objectstack/pulls, then POST issues/37128/assignees; read-back 8630/8630 bytes identical. (2) This os-dev-report comment, POST issues/36911/comments via post-stamped.mjs. Plus 4 git pushes (9fcdfaf8, 2f9deb37, d4f56f4a, and the round-1 empty probe). Round 1 had: 1 comment (7138000944). Reads: single-card REST reads of issues/36911, comment 7140314619, pulls/37128 and its check-runs.", "deviations": [ "Two existing test files were edited beyond the named surface (rowRecordCrudVerdict.test.tsx, inlineEditRecordVerdict-27365.test.tsx). They were stale fixtures under this change: each explain fake answered the new lock read as an explain call. Each fake now answers the lock door 'unlocked' and leaves it out of its call count; assertions are unchanged.", "Menu reads only ANSWERED locks (isLocked(id, null)). The cells keep the approval_status column fallback. Choosing the menu side follows the pin '501 / null / unread leaves the menu as today', not a copy of the rule.", "Edit is not held inert while the lock read is on the wire (the hook does not re-render on probe start or on a failed read, so a settling-based inert state could stick). A click before the answer behaves as before, and the #36885 toast covers the refusal. Recorded in the PR's Acceptance notes.", "The final type-check at d4f56f4a ran without the lock (declared narrowing, see tests).", "Merged origin/main (9d707686) after dispatch-gates flagged a stale tree. The merge touched no plugin-grid file and none of the seven-package closure. The full suite and gates were re-run on the merged head." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #37041 · detail lines of a locked master read 'not locked' from the batch door, so on a detail object's own list page their Edit stays until #37041 lands (recorded in Acceptance notes)", "carrier: none · the compact related-list face (components data-table) and the phone gallery cannot reach the grid hook without a new dependency or export; not covered, no card per the seat's ruling (recorded in Acceptance notes)" ], "cleanup": "worktree /home/user/objectstack-issue-36911 removed (clean, node_modules deleted); no process of this run left running" }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 36911, "status": "done", "round": "fix round 1 (L1 REWORK 7145402177)", "branch": "claude/issue-36911-related-list-locked-rows", "pr": "https://github.com/objectstack-ai/objectstack/pull/37128", "head": "4c64a0a109", "session": "session_01QSeKYmRepQK9DkZeU7F53D", "S1": "done: the Delete claim is narrowed to 'a record held by its own approval' in objectGridActionsColumn.tsx (approvalLocks doc + approvalLockAnswered doc), in ObjectGrid.tsx, and in the changeset. Each now names that a line held because its master is held refuses delete, so the read must tell the two apart (#37041). No code change.", "S2": "done, case = the selection bar ALREADY read the lock: SingleRecordActions resolves from the same rowActionMenuProps and calls onActionsDemand on mount. No wiring was added. New pin: in list-page scope (no Actions column) the bar for the selected locked row offers no Edit and keeps Delete; the unlocked sibling's bar keeps Edit (control). Ablating the hide turned it red: received {edit:true, delete:true}.", "N1": "done: a pin holds the lock answer, opens the menu (Edit shows), releases the answer, and Edit leaves while Delete stays.", "N2": "done: ablation isLocked(rowRecordId(row), null) -> (…, row) turned the 501-over-pending-column pin red (Tests 1 failed | 6 passed; received {edit:false}). Restore confirmed: blob == HEAD.", "N3_N6": "added as one Acceptance-notes line each to the corrected PR body file; the PR body itself was not PATCHed.", "tests": "rowMenuApprovalLock-36911.test.tsx 7/7. Hide ablation: 3 failed | 4 passed (the menu, list-page bar and in-flight pins). Full plugin-grid suite at 4c64a0a1: 312/312 files, 2773/2773 tests, exit 0.", "gates": "dispatch-gates --commands: 39 derived, all exit 0 at 4c64a0a1. check:type-check-debt hit a queue-timeout (exit 3, not measured), then exited 0 on a re-run. --ran: 39 derived, 39 run, 0 NOT-MEASURED. ui scripts vitest: 172 passed + 2 skipped files, exit 0. overlap-check exit 0 before the push of 4c64a0a1.", "api_writes": "1: this comment (post-stamped). Plus git push 4c64a0a1.", "mcp_calls": "0", "security_findings": "none" }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Delivered · area a4-U · 2026-11-25T01:08Z · PR #37128 merged as
6cfd04d9(L1 ACCEPT 7148446479)nullentry, or a failed or unasked read leaves the menu as it was.pm:dispatchedremoved with the close;domain:ui,area:uxstay.