Repository navigation
fix(approvals, list): a list cell waits for the record's approval lock before it edits, and a page's locks are read in one request (#35795) - #36295
Conversation
…k before it edits, and the lock of a page is read in one request (#35795) - New route POST /api/v1/approvals/records/:object/locks ({ recordIds }, at most APPROVAL_RECORD_LOCKS_MAX_RECORD_IDS), answering one entry per id exactly as the single-record lock read does (null where it answers 404). - IApprovalService.getRecordLocks (optional), implemented by the approvals plugin in two reads whatever the page size; client.approvals.getRecordLocks; route ledger row. - ObjectGrid asks the locks of the whole page on the first cell select, and an edit asked while the row's lock or update verdict is on its way waits for it (GridCellFacts.checking) instead of opening an editor the server would refuse. Claude-Session: https://claude.ai/code/session_01L6bhgXSK9qt8je9QbZvhKb Co-authored-by: Claude <noreply@anthropic.com>
…d waits for it too; ledger the new route in the write-route ledgers; regenerate zh-Hant (#35795) Claude-Session: https://claude.ai/code/session_01L6bhgXSK9qt8je9QbZvhKb Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 4 package(s): 31 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 181 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin a4a2d91f717971873b202c26826d9a8f43a808eb && git checkout a4a2d91f717971873b202c26826d9a8f43a808eb
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 99fbaa6d1841e2556c48ba88de54226ae6b2de3f 37525bf219c3e3d932b6bdcb83f8f431a9c11474 && git checkout -B drift-repro 99fbaa6d1841e2556c48ba88de54226ae6b2de3f && git merge --no-ff 37525bf219c3e3d932b6bdcb83f8f431a9c11474
node scripts/docs-audit/affected-docs.mjs --json 99fbaa6d1841e2556c48ba88de54226ae6b2de3f
|
…ute test (#35795) check:test-source-alias: the new batch cases reach the server's lazy objectql import inside a clocked window; load it at module top like the sibling approvals route tests. Claude-Session: https://claude.ai/code/session_01L6bhgXSK9qt8je9QbZvhKb Co-authored-by: Claude <noreply@anthropic.com>
|
This PR does not touch repo:objectstack#1 · os-sales · session_01L6bhgXSK9qt8je9QbZvhKb Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat flake judgment · 2026-11-22T05:36Z · head |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-22T05:38Z. The brief handed to the isolated contract-face reviewer for PR #36295 ( Contract review brief — PR #36295 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — REWORK (L1-b)Head-sha: 1c9d33c · read 2026-11-22T05:41Z · first read · card #35795 body unchanged since 02:22:45Z · claim 7072869185 · Fable contract L2 runs in parallel 维护者速读大部分已经做到:列表上双击、回车或直接打字编辑一格时,如果这条记录的审批锁还没读回来,格子会显示「正在确认这条记录能否编辑…」,等答复回来再决定,锁住了就提示已锁定,没锁就直接打开编辑框,打的字也保留。一页的锁改成一次请求读完,用方向键移动不再每行发一次请求。还剩一处没做到:卡片要求「这条记录你有没有编辑权限」这项检查也一样要等。现在虽然会等,但答复回来的那一刻,判断用的还是旧结果,所以没有权限的记录仍会打开编辑框,要到保存时才被拒。这正是卡片想消掉的情况。不会丢数据,因为服务器照样拒绝保存。需要改一处并补一个测试。 Must-fix
Should-fix
Nits
Checked (no defect)
Owed
|
… that settled the wait (#35795) L1-b M1: the re-asked edit ran before the render that published the verdict, so describeCell read the old (unknown) verdict and opened the editor on a row the explain engine refuses. RecordCrudVerdicts gains current(), answered from the map published last, and describeCell reads it. Pins: a refusing slow verdict opens no editor on double-click, on a typed key, and writes nothing on paste. Changeset names the third outcome; a note on the unanswered lock state. Claude-Session: https://claude.ai/code/session_01L6bhgXSK9qt8je9QbZvhKb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha: 37525bf · read 2026-11-22T05:55Z · prior REWORK 7074900129 @1c9d33c7 · delta 1c9d33c..37525bf, one commit · card #35795 unchanged since 02:22:45Z 维护者速读上次提的问题已经修好:权限检查晚回来、结果又是「不允许」时,格子不再打开编辑框,而是提示没有编辑这条记录的权限。双击、直接打字、粘贴这几种情况都补了测试,粘贴不会写入任何数据。说明文字也补上了这种结果。其余部分和上次审过的一样。本轮发出时 CI 还在跑,要等全绿才能合。 Must-fixNone. M1 is closed. Should-fixNone. S1 is closed. NitsNone. N1 is closed: Checked
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Read: card #35795 with its three comments (two triage notes and the claim 7072869185), the bodies of #35747 (merged), #36135 and #36144 (open), PR #36295's body, file list (34 files) and net diff against ① Derived judgments
② Semver levelClause-②: yes (widening) The changeset One sentence of the changeset is not true on this head, see S1: "a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save" holds for the lock and not for a refusing permission verdict. ③ Boundary flags
④ Design judgment
The card's first Done-when bullet, on the widened files. S1 (should-fix) — a slow record verdict that REFUSES Nits (no effect on the contract as the door serves it):
Check-runs on this head (2026-11-22T05:55:30Z): 59 success, 9 skipped (opt-in and queue-only jobs), and This head is no longer the PR's head. At 2026-11-22T05:54:11Z the PR moved to Implemented-by: VERDICT: PASS |
1 similar comment
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Read: card #35795 with its three comments (two triage notes and the claim 7072869185), the bodies of #35747 (merged), #36135 and #36144 (open), PR #36295's body, file list (34 files) and net diff against ① Derived judgments
② Semver levelClause-②: yes (widening) The changeset One sentence of the changeset is not true on this head, see S1: "a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save" holds for the lock and not for a refusing permission verdict. ③ Boundary flags
④ Design judgment
The card's first Done-when bullet, on the widened files. S1 (should-fix) — a slow record verdict that REFUSES Nits (no effect on the contract as the door serves it):
Check-runs on this head (2026-11-22T05:55:30Z): 59 success, 9 skipped (opt-in and queue-only jobs), and This head is no longer the PR's head. At 2026-11-22T05:54:11Z the PR moved to Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha: 37525bf · read 2026-11-22T06:00Z · prior REWORK 7074900129 @1c9d33c7 · delta 1c9d33c..37525bf, one commit · card #35795 unchanged since 02:22:45Z 维护者速读上次提的问题已经修好:权限检查晚回来、结果又是「不允许」时,格子不再打开编辑框,而是提示没有编辑这条记录的权限。双击、直接打字、粘贴这几种情况都补了测试,粘贴不会写入任何数据。说明文字也补上了这种结果。其余部分和上次审过的一样。本轮发出时 CI 还在跑,要等全绿才能合。 Must-fixNone. M1 is closed. Should-fixNone. S1 is closed. NitsNone. N1 is closed: Checked
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Read: card #35795 with its three comments (two triage notes and the claim 7072869185), the bodies of #35747 (merged), #36135 and #36144 (open), PR #36295's body, file list (34 files) and net diff against ① Derived judgments
② Semver levelClause-②: yes (widening) The changeset One sentence of the changeset is not true on this head, see S1: "a cell whose record's approval lock or edit permission is still being read no longer opens an editor that the server would then refuse on save" holds for the lock and not for a refusing permission verdict. ③ Boundary flags
④ Design judgment
The card's first Done-when bullet, on the widened files. S1 (should-fix) — a slow record verdict that REFUSES Nits (no effect on the contract as the door serves it):
Check-runs on this head (2026-11-22T05:55:30Z): 59 success, 9 skipped (opt-in and queue-only jobs), and This head is no longer the PR's head. At 2026-11-22T05:54:11Z the PR moved to Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha: 37525bf · read 2026-11-22T06:05Z · prior REWORK 7074900129 @1c9d33c7 · delta 1c9d33c..37525bf, one commit · card #35795 unchanged since 02:22:45Z 维护者速读上次提的问题已经修好:权限检查晚回来、结果又是「不允许」时,格子不再打开编辑框,而是提示没有编辑这条记录的权限。双击、直接打字、粘贴这几种情况都补了测试,粘贴不会写入任何数据。说明文字也补上了这种结果。其余部分和上次审过的一样。本轮发出时 CI 还在跑,要等全绿才能合。 Must-fixNone. M1 is closed. Should-fixNone. S1 is closed. NitsNone. N1 is closed: Checked
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: A delta record. It reads the one commit between the head of the first record ( ① Derived judgments
② Semver levelClause-②: yes (widening) The changeset keeps its seven ③ Boundary flags
④ Design judgmentS1: closed How it closes, read in the tree. The pins now tell the two answers apart: in No new finding in the delta. Nits, none touched by the delta and none blocking; each stays as the first record left it:
Check-runs on this head (2026-11-22T06:05:54Z): NOT complete. 8 success, 5 skipped, 12 in progress (the Lint and Type Check families and Auto Label) and 1 queued; the test shards, Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-22T06:40Z · #35795: in a list, a cell does not open its editor while the row's approval lock or the record's edit verdict is still being read. Typed text is kept while it waits. A click on another cell cancels the wait. When the answer is locked or not permitted, nothing opens and the cell says why. A paste during the wait is written only once the answer allows it. The list now reads the approval locks of its visible rows in one batched request: a new Reviews:
Gates on this head (
Overlap the queue cannot see: open PR #36135 (a locked record's lines read as locked) changes the single lock read. Whichever of the two lands second must carry its The seat readies this PR and arms auto-merge in the same step. The PR carries |
…line-edit-a11y The approval-lock hook moved to one read per page (#36295); the re-render on an answer is re-applied on its new shape. Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds Co-authored-by: Claude <noreply@anthropic.com>
…bjectstack-ai#36306) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XP3RHGWUG7UH3fNa4tBa9UC)_ repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1 Fixes objectstack-ai#36035 Clause-②: no Metadata-protocol: none ## 维护者速读 - 审批动态里「无人可审」那条系统说明不再显示岗位内部名:中文读者看到岗位的中文名(如「销售经理」),没有翻译时用岗位自己的显示名,都没有才退回内部名;英文审计原文不变。 - 接着上一轮「转交给管理员说明用岗位显示名」的修复,补上它留下的「无人可审」说明,属于控制台核心业务操作体验专题。 - 只改读取时的显示,库里存的审计原文和旧请求的说明都原样保留,转交规则不动;出问题可直接撤回。 - 无。 ## What changes 1. **The note stores its literals as a reference.** `no-approver-note.ts`: a new note stores `slots` (the slate's `type:value` literals, `noApproverSlots`) in the `__noApproverNote` snapshot entry instead of the pre-composed `who` string. `noApproverWho(slate, positionLabel?)` composes `type 'value'`, naming a position by the label `positionLabel` answers, else by its name. `noApproverSentence` / `noApproverNoteText` take an optional `positionLabel` and compose from `slots`; a note that stored `who` (written before this change) is rendered from that string exactly as before. `noApproverNoteOf` reads either shape. 2. **The read names the position the way objectstack-ai#36030 does.** `ApprovalService.localizeRoutingNotes` builds the label map for the note's positions through the existing `notePositionLabels` (reader's pack `positions.NAME.label`, else the declared `label` from `positionLabelSource`, else nothing) and passes it to `noApproverNoteText`. No second resolver: the position-name extraction is `slatePositions`, factored out of `adminRescuePositions` in `admin-rescue-note.ts`, which now delegates to it. 3. **The stored English is unchanged.** The write site (`approval-service.ts`, one hunk) stores `slots`; the row's `comment` is still `noApproverNoteText(note)` with no render, which composes the same `position 'NAME'` English as before. The refusal remedy and the submitter's notice still compose from the slate with no labels (see Acceptance notes). 4. **Docs.** `content/docs/automation/approvals.mdx`, the no-approver paragraph: the note names the position by its label for a reader and by its name in the stored text. `approval-service.ts` carries three small hunks (import, the write line, the read line); the note module could not carry the write and the read alone. `overlap-check` is clean against objectstack-ai#36295, objectstack-ai#36247, objectstack-ai#36144 and objectstack-ai#36135, which share that file. ## Tests <details><summary>Pins: admin-rescue-named-slate.integration.test.ts, new describe "[objectstack-ai#36035] the no-approver note names its position by its label"</summary> The suite's real `ApprovalService` on `ObjectQL` over in-memory SQLite, an organization with no administrator (so the request opens on the slate that names no one), the plugin catalog plus an app pack in a real in-memory `i18n` service, and a `positionLabelSource` declaring `sales_manager` as "Sales Manager". - the snapshot stores `{ action_id, slots: ['position:sales_manager'] }`; the row stores the English with `position 'sales_manager'`; a no-locale read is served that English; - zh-CN (pack label 销售经理) reads `...担任 position '销售经理' 的成员...` and no `sales_manager`; - en and ja-JP (no pack key) read `position 'Sales Manager'`; - a position no pack and no declaration knows (`treasury`) keeps its name; - CONTROL: a note rewritten to the old stored shape (`who: "position 'sales_manager'"`) renders exactly as before in zh-CN, en and with no locale. The pin went into the existing harness file as a sibling of the objectstack-ai#35418 describe rather than a new file: it reuses that file's engine, organizations and `open` helper (AGENTS.md: a new pin for a component with a shared harness goes into that file). </details> <details><summary>Ablations at 8a83eed (scripts/ablation-replace.mjs, each restored to the HEAD blob with an empty git diff HEAD)</summary> - A1 read site passes no `positionLabel`: 2 failed (zh-CN pack label, declared label) / 3 passed. - A2 write site stores the composed `who` again: 3 failed (snapshot shape, zh-CN, declared) / 2 passed. - A3 an unknown position's name dropped: 3 failed (snapshot English, unlabelled name, legacy row) / 2 passed. - A4 a stored `who` no longer read: 1 failed (legacy CONTROL) / 4 passed. </details> <details><summary>Runs at 8a83eed</summary> - `pnpm --filter @objectstack/plugin-approvals test`: Test Files 126 passed (126), Tests 1813 passed (1813). - `pnpm --filter @objectstack/plugin-approvals typecheck`: exit 0 (test layer held at its ledgered debt). - eslint over the four changed source files: exit 0. </details> ## Acceptance notes - The `__noApproverNote` snapshot entry is internal to `@objectstack/plugin-approvals` (nothing in `packages/spec`, `ui/` or the package index reads it); new notes carry `slots`, older ones keep `who`, and the read accepts both. - Same family, not in this PR, carried by objectstack-ai#36308 (class a, user-visible): the decision door's refusal remedy and the submitter's `approval.comment` notice compose the no-approver sentence from the slate with no labels, so they still name the machine name (`...holds position 'legal'...`, pinned in `exclude-submitter.integration.test.ts`). The notice is rendered per recipient at delivery, so labelling it needs the recipient's locale, not the reader's. - Observation, carried by objectstack-ai#36308 (class a, user-visible): the `{{who}}` hole carries the approver type's English machine token in every pack, so a zh-CN reader now reads `担任 position '销售经理' 的成员`, where the administrators' note translates the type (`岗位「销售经理」`). Translating the type needs a per-type clause in all eleven catalogs; out of this card's scope. ## Verification Read first: `no-approver-note.ts` (`noApproverWho`, `noApproverSentence`, `noApproverNoteOf` — the old/new shape split), the `localizeRoutingNotes` hunk in `approval-service.ts`, the write hunk at `slateSource = 'no_one'`. Two-minute check: `pnpm --filter @objectstack/plugin-approvals exec vitest run src/admin-rescue-named-slate.integration.test.ts -t 36035` — expect 5 passed. <details><summary>Local gates at 8a83eed</summary> `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran`: 103 derived families accounted for, 103 run, 0 NOT-MEASURED (a derived zero: every family recorded an exit code, all 0). Four first answered exit 3 (prerequisite) and were rerun after it was met: `check-plugin-teardown-shape --self-test` (pinned fixture commit fetched), `check:skill-examples`, `check:i18n` and `check:dual-build-cjs-loads` (after the build closure finished). `overlap-check`: clean against origin/main and 4 open PRs. CI families: not yet reported at open. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5okniknzVVR3KTSVr1)_ <!-- signed: repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…he Chinese stream says 动态 (objectstack-ai#36317) repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XTRdLmK9YYgMSCJ7NH2PuUY)_ Fixes objectstack-ai#36148 Clause-②: no Metadata-protocol: none Ruling-ref: 7074372050 ## 维护者速读 - 记录页「动态」里的筛选从「全部 · 活动 · 讨论 · 变更」改为「全部 · 事件 · 讨论 · 变更」,英文 Events;中文的空状态改为「暂无动态」,旧标题、无权限、加载失败和筛选读屏标签都改说「动态」。 - 按你 04:45 选的 A(「A 改叫「事件」」)执行;每个筛选装什么不变,「变更」仍只放带前后值的字段变更(objectstack-ai#30074 裁定 C)。 - 出错时最坏是某个语言的筛选或空状态字眼不对,不影响数据;只改语言包的值和一处英文兜底,可直接撤回。 - 无 ## What changes - `detail.streamActivity` (the stream's events chip): zh-Hans and zh-Hant 「事件」, en `Events`, and each other pack's own word for events: de `Ereignisse`, es `Eventos`, fr `Événements`, ja `イベント`, ko `이벤트`, pt-BR `Eventos`, ru `События`, ar `الأحداث`. The row reads 「全部 · 事件 · 讨论 · 变更」. What the chip holds is unchanged (ruling 6649643659 on objectstack-ai#30074, option C). - zh-Hans and zh-Hant only, the rest of the stream takes the tab's word: `detail.noActivity` 「暂无动态」 / 「暫無動態」 (the panel's one empty state, drawn under every chip), `detail.activity` 「动态」 / 「動態」 (now equal to `detail.timeline`, as in the other nine packs), `detail.activityAccessDenied`, `detail.activityLoadFailed` and `detail.filterActivity` say 动态. The other packs keep those four values. - `RecordActivityTimeline.tsx`: the events chip's in-code English fallback follows the pack (`'Events'`); comments naming the chip row updated there and in `recordTimelineStream.ts`. - Values only: no key added, renamed or removed. zh-Hant matches what `gen:zh-hant` writes (the generator left the pack unchanged after the edit). Read first, by risk: 1. `ui/packages/i18n/src/locales/zh-Hans.ts` — the six `detail` values. 2. `ui/packages/i18n/src/locales/en.ts` — `streamActivity: 'Events'`. 3. `ui/packages/i18n/src/__tests__/timelineFilterWording-36148.test.ts` — the new pins. Two-minute verification: `pnpm --dir ui exec vitest run packages/i18n/src/__tests__/timelineFilterWording-36148.test.ts` from the repo root; expect 16 passed. ## Tests - New `timelineFilterWording-36148.test.ts` (i18n): in zh-Hans and zh-Hant no string the stream draws (title, chips, empty, access-denied, load-failed, filter label) says 活动 / 活動, and the chip, empty state and title read 事件 / 暂无动态 / 动态; en names the chip Events; in every pack the events chip differs from the tab word, the stream title and the field-history chip. - Old pins updated to the ruled words: `ActivityTimeline.i18n.test.tsx` (zh empty state), `ActivityTimeline.remainingLiterals.i18n.test.tsx` (zh card title, whole zh card text, chip group label), `detail-landmark-aria-i18n-4645.test.tsx` (zh landmark name). - Ablation (one-off, not kept): zh-Hans `streamActivity` set back to 「活动」 on disk after the commit: 2 failed / 14 passed ("no string the stream draws says 活动", "the chip reads 事件 …"); restored with `git checkout HEAD --`, 16 passed. ## Acceptance notes - Done-when, measured live: hotcrm (18.6.0 server, `pnpm dev` on a fresh database) with this branch's Console source (Vite, `DEV_PROXY_TARGET` to the hotcrm server), a zh-CN browser, admin user, a seeded lead. The record tab row reads 「线索 · 客户 · 活动 · 活动参与者 · 任务 · 营销活动成员 2 · 动态 2」 and the stream heads 「动态 (2)」. Every 活动 on the page is one of hotcrm's own labels (the `crm_event` tab and nav entry, 活动参与者, 营销活动成员, 销售活动). On this page the 动态 tab is a slotted page's `record:chatter`, which since objectstack-ai#36221 lists the system history alone, so no chip row draws there; the chips and empty state are pinned by the tests above rather than by this page. - Out of the claim's declared surface (locale packs): `ui/packages/plugin-detail/src/RecordActivityTimeline.tsx` (the en fallback, named by the ruling), `ui/packages/plugin-detail/src/recordTimelineStream.ts` (comments only) and three plugin-detail pin tests. None is a seat-1 hot file. - Out of the claim's declared surface, added at `dd26af31`: `ui/packages/components/src/renderers/layout/containers.tsx`, `KNOWN_LABEL_DICT` `Activity` 「活动」/「活動」 → 「动态」/「動態」, with `@object-ui/components` in the changeset. Why: it is the page-tab strip's own copy of the label, read ahead of the pack, so without it an authored `Activity` tab kept 活动 and `page-tabs-builtin-label-i18n-4645.test.tsx` went red on `12a825da` (Test UI 4/16). Ruling 7074372050 item 3 sets an authored `Activity` tab to 动态, the same word as `detail.timeline`. Claim amended on objectstack-ai#36148 for this file and `RecordActivityTimeline.tsx`. - Residual (stated, not a defect): in zh an `Activity` tab and the `Activity stream` tab both read 动态. Both draw on one strip only when a page author writes both labels. Measured: the synthesized record page writes only `Activity stream` (`buildDefaultPageSchema.ts:1094`); no authored `Activity` page tab in `examples/**` or hotcrm (the `'Activity'` hits are an object label and a nav group). The equality is the ruling's choice (item 3). - Not changed, measured: `useDetailTranslation.ts` has no `detail.streamActivity` default, so there is no second English fallback for the chip. ## Verification Readings at head `12a825da`, taken under `scripts/pm/os-verify-lock.sh` (shared box). <details><summary>Packages (green)</summary> - `pnpm --dir ui exec vitest run packages/i18n/`: Test Files 106 passed (106); Tests 1978 passed, 13 skipped. - `pnpm --dir ui exec vitest run packages/plugin-detail/` before the pin updates: 4 failed in the two `ActivityTimeline` i18n files (old zh strings), 405 files passed; after the updates those two files: 20 passed (20). - `pnpm --filter @object-ui/i18n run type-check` (both projects): exit 0. `eslint` on the 10 touched TS files: 0 errors (one pre-existing `react-refresh` warning at `RecordActivityTimeline.tsx:263`, an untouched line). - `node ui/packages/i18n/scripts/gen-zh-hant.mjs`: no file changed. </details> <details><summary>Derived gates</summary> - `node scripts/pm/dispatch-gates.mjs --commands` derived 41 commands for this diff; all 41 ran and exited 0, among them `check:nul-bytes`, `check:published-files`, `check:cross-package-test-inputs`, `check:test-source-alias`, `check:type-check-coverage`, `check:type-check-debt` (0 entries re-measured, none above its number), `check-sdui-manifest`, `check-adr-0087-registration --base origin/main`, `check-empty-changeset --base origin/main`, `check-changeset-no-major --base origin/main` and `pnpm --dir ui exec vitest run scripts/` (Test Files 172 passed, 2 skipped; Tests 5122 passed, 2 skipped). - `--ran` reconciliation: 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN, every line carrying its exit code. - `node scripts/pm/overlap-check.mjs --branch=claude/project-thread-r2g68m`: VERDICT clean against origin/main and the three open PRs that share the locale files (objectstack-ai#36295, objectstack-ai#36288, objectstack-ai#36223). - Type-check lanes, `check:i18n` (its prerequisite is the CLI build closure; this diff touches no `translations/*.generated.ts`) and the repo-wide lint are CI's. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5oHi42qJhgAop8CaLs --------- Co-authored-by: Claude <noreply@anthropic.com>
…n one live region, a touch never edits in place (objectstack-ai#35689 slice A) (objectstack-ai#36332) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XURgXCZHcjPoyo5g9cMEATi)_ Part of objectstack-ai#35689 — slice A (touch, accessibility, checked rows). Slice B (a row moving to its new group, group subtotals and the footer total refreshing after a save) stays on the card for its own PR. Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 平板上点列表的一行只会打开记录,不会误进格子编辑;读屏软件移到不能改的格子会读出「只读」(审批锁在选中后才查到时也会立刻读出),格子保存后会读出「已保存:字段名」,失败时读出原因;其余用户无感。 - 列表行内编辑重做专题的收尾(无障碍与触屏部分),分组移动与合计刷新另开一个 PR。 - 出错时最坏是读屏软件少读或多读一句、平板上点到编辑按钮没反应,不影响保存的数据;可以直接撤回。 - 无 ## What changes Measured on `origin/main` before any edit (the dispatch's six mechanism assumptions): 1. **Touch.** A touch tap on a cell opens the record and never selects or edits (`isTouchPress`, from objectstack-ai#35684): holds, pinned. One gap measured: a lookup cell's edit button (the pencil) is drawn at `opacity-0` once any pointer enters the cell and is still hit-testable, so a tap on the right edge of an unselected lookup cell landed on the invisible button and **opened the editor in place**. Fixed in `CellEditButton`: a finger entering an unselected cell does not draw the button, and a touch click on one drawn earlier for a mouse does nothing (the row ignores a click on a button). The press is read by its own click only, then cleared, so a later click with no pointer of its own (assistive tech) edits as before. The explicit edit entry on touch is the record page (a tap beside the button opens it), per the card's 「通过记录页或显式的编辑入口」. 2. **`aria-readonly`.** Absent. Now, only when the table is `role="grid"`, a data cell that opens no editor carries `aria-readonly="true"`, and so does the type-catcher input that holds focus in the selected cell (the element a screen reader lands on). Every cell reads the table's own facts (`editable`, the column, `isRowEditable`); the selected cell adds the host's (`describeCell`). The host's answer is **asked as the cell becomes selected and kept in state** (`selectedHostReadOnly`), asked again only when the selected row is re-read or the host hands the table a new `GridCellSelection` value, so it is not asked per render for a host whose value is stable. `describeCell`'s TSDoc now says exactly that: asked when the reader acts on a cell, once as a cell becomes selected, and again when its row is re-read or the provider's value is a new object; the value's identity is part of the contract, so a host keeps it stable (memoised) or the selected cell is asked on every render. - In the list (`ObjectGrid`), the host value is now memoised on what its cell facts read (fields, object, permissions, the view's `editable`, the update verdicts, the approval locks, the page's record ids, the language), so it is new only when an answer can have changed; the commit question and the chip opener read the latest render through a ref. - `useRowApprovalLocks` re-renders its host when a lock read answers (and when the answers are dropped on an invalidation): `isLocked` and the hook's value are new exactly then. So a lock answered after the select-time ask is said on the selected cell at once, without the reader moving, both ways (locked by the service, or a pending `approval_status` the service says is not locked). 3. **Live region.** Before: a per-cell `role="status"` span mounted with its state, its words only in `aria-label`, plus `role="alert"` on failure. A region that mounts with its content is often not announced, and a label is not live content. Now one persistent visually hidden `aria-live="polite"` region per table that saves per cell (`autosaves`), drawn for the table's whole life; a successful save writes "Saved: COLUMN" into it (new key `table.cellSavedAnnouncement`, all eleven packs), each saying in a node of its own so the same words twice are said twice. Cells saved together are joined with the pack's list punctuation (`validation.formInvalidJoiner`, the key the form's field lists use: `、` in ja and zh), and a column with no header is never named by its key (the region then says `table.cellSaved`, "Saved"). A failure stays with the existing cell alert, said once; the region drops the earlier "saved". The per-cell mark becomes `role="img"` with its existing label: named, never live, so no duplicate announcement. 4. **Focus after a picker panel closes** (`placement="below"`): measured, it already returns to the cell by Esc and by a pick (`focusSelectionRef`, objectstack-ai#35688). Pinned, no source change. 5. **Selection frame contrast** (`border-2 border-primary`, WCAG 1.4.11, 3:1 needed): passes everywhere, no change. Token arithmetic (sRGB relative luminance) on the shipped themes: - Console light (`--primary` 211 100% 50% on `--background` white): 3.97; on the hover row (muted/40) 3.74; on a checked row (primary/5) 3.73; on a checked hovered or active-record row (primary/10) 3.49; on full muted 3.40. - Console dark (211 100% 60% on 240 6% 6%): 6.34; hover 5.83; checked 6.03; checked hover/active 5.67. - `@object-ui/components` default theme: 17.84 light, 19.09 dark, at least 14.53 on any row state. 6. **Selection.** `commitCellValue` stages one cell and never reads `selectedRowIds`; `selectionResetKey` moves only on bulk actions and refresh: holds, pinned. ### Review round (L1 7076074435, L2 7076070602) | Item | Resolution | Commit | |:---|:---|:---| | S1 (L1, L2): `describeCell` asked per render | Asked at selection, kept in state; re-asked only on a re-read row or a new host value; `ObjectGrid`'s value memoised so it is new only when its facts can change. TSDoc kept as is. | `1733276c`, `6bc85294` | | S2 (L2): a lock answered after the select-time probe | `useRowApprovalLocks` re-renders on an answer; re-applied on main's batched lock read (objectstack-ai#36295) in the merge | `1733276c`, `65b9199f` | | N1: touch-tap comment, `pressedByRef` never reset | Comment says the tap does nothing on the button; the press is cleared by the click that reads it | `1733276c` | | N2: hard-coded `', '`, raw `accessorKey` | `validation.formInvalidJoiner`; a header-less column is left unnamed | `1733276c` | | N3: claim's file surface | The final file surface is in the dev report for the seat to amend the claim | report | | L1-d 7078101760 item 1, L2 R1 (7077725274): TSDoc still said "never per render" | `describeCell` TSDoc says when the table asks it and that the provider value's identity matters; the two data-table comments that echoed it aligned | `69919545` | ## Tests New card-named describes, each in the component's existing harness file: - `data-table-select-first-35684.test.tsx`: a touch tap opens the record and a touch double-tap neither selects nor edits; a tap on an unselected lookup cell's edit button edits nothing (control: the mouse's click edits); after such a tap, a click with no pointer of its own edits; the selected read-only cell carries `aria-readonly` on the cell and its focus, an editable one none; **the host's facts are asked as the cell is selected and not again across three re-renders, and a new host value is asked again and turns `aria-readonly` on where the selection is**; a table that edits nothing marks every cell; control: outside the grid no `aria-readonly`. - `data-table-autosave-35685.test.tsx`: the region is there and silent before any save, says "Saved: Name" after one, a second saying is a new node, saving is not said, and the table holds exactly one live element; cells saved together read `已保存:Stage、Name` in zh; a header-less column reads "Saved"; a refused save is said by the cell alert alone and the region empties; control: no region without per-cell save. With two rows checked, a cell edit sends one update of that one cell and both checks stay. - `data-table-keys-35687.test.tsx`: a picker panel under the cell hands focus back to the cell on Esc and on a pick. - `ObjectGrid.cellSelection-35684.test.tsx`: with the page's lock read held open, a row the service says is locked turns `aria-readonly` on once the read answers, and a row whose `approval_status` stands in as locked turns it off once the service says it is not, both while the cell stays selected. Readings, all through `scripts/pm/os-verify-lock.sh`. Head `69919545` changes only the TSDoc and two comments over `65b9199f`: <details><summary>At 6991954 (TSDoc round)</summary> - Closure build `pnpm --workspace-concurrency=2 --filter '@object-ui/components^...' build`, then `pnpm --filter @object-ui/components run type-check`, then the three data-table harnesses and `ObjectGrid.cellSelection-35684`: Test Files 4 passed (4); Tests 116 passed (116); VERDICT command-exit 0. - `dispatch-gates --commands` re-derived: the same 42 families as at 65b9199; `pnpm check:nul-bytes` exit 0. The other families were not re-run locally for a comment-only delta; CI runs them (below). </details> <details><summary>Type-check, the touched harness files and the affected packages' suites at 65b9199</summary> - Closure build `pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-grid^...' build`, then `pnpm --filter @object-ui/components run type-check`, `pnpm --filter @object-ui/plugin-grid run type-check`, `pnpm --filter @object-ui/i18n run type-check`: VERDICT command-exit 0 (each script name echoed in the log). - Six harness files (the three table harnesses, `ObjectGrid.cellSelection-35684`, `ObjectGrid.autosave-35685`, `ObjectGrid.requiredPrompt-35956`): Test Files 6 passed (6); Tests 154 passed (154). - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/ packages/components/ packages/i18n/`: Test Files 910 passed, 1 skipped (911); Tests 9532 passed, 37 skipped (9569); VERDICT command-exit 0. - `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` (derived family): Test Files 172 passed, 2 skipped (174); Tests 5127 passed, 2 skipped (5129); exit 0. </details> <details><summary>Ablations this round (one each, through `scripts/ablation-replace.mjs`: anchor hit once, blob changed, restored to the HEAD blob, `git diff HEAD` empty)</summary> The suites read `data-table.tsx` and the hook from source (the ui vitest config aliases `@object-ui/components` to `src`; the grid test imports the hook relatively), so no rebuild per leg was owed. - A1, the per-render ask put back (`cellReadOnly` calling `readOnlyReasonOf` on the selected cell): 1 red, "the host's facts are asked as the cell becomes selected, never per render" (expected 2 calls, got 5); the other aria pins stay green, as they should. - A2, the hook's re-render on an answer removed: 2 red, both lock-answer pins in `ObjectGrid.cellSelection-35684`. - A3, the press not cleared by its click: 1 red, "after a tap on the edit button, a click with no pointer of its own (assistive tech) edits". - A4, the Latin comma put back: 1 red, the zh list-punctuation pin. - A5, the key fallback put back: 1 red, "a column with no header is not named by its key". - Restore proof after the run: `data-table.tsx` blob b7a0e66 and the hook blob 271953e, each equal to HEAD; `git diff HEAD` 0 lines. </details> <details><summary>Earlier readings (previous dev, heads e276bef and 2c776b4)</summary> - At e276bef: components and i18n type-check exit 0; `packages/components/ packages/i18n/` Test Files 608 passed, 1 skipped; `scripts/` 172 passed, 2 skipped files. - Ablations then: cell `aria-readonly` removed, 2 red; the region's success saying removed, 2 red; the touch guard removed, 1 red. </details> ## Acceptance notes - Not done here, by the card's split: slice B (a row moving to its new group after a save, group subtotals and the footer total refreshing) follows on its own PR. - `aria-readonly` on cells other than the selected one reads the table's own facts only (`editable`, the column, `isRowEditable`); the host's per-cell facts (`describeCell`: field read-only, permission, approval lock) are asked of the selected cell alone, because the table asks `describeCell` only at the moments its TSDoc names, never for every cell. A screen reader moving cell to cell always lands on the selected cell, so the acceptance line holds; a reader browsing the table in its virtual mode hears the coarser answer on cells it does not select. - While the selected row's lock read is on the wire, the selected cell's `aria-readonly` reads the `approval_status` column (the hook's fail-open stand-in) and changes when the read answers; Enter or F2 in that window waits for the read (objectstack-ai#36295) and says the reason. - The `ObjectGrid` memo is not pinned by a test of its own (its call count is internal to the host); the table-level pin holds the table to "never per render" for any host whose value is stable. - "A touch never edits in place" is a fact of the select-first model (`cellSelection`): there a click only selects, so `singleClickEdit` is never read, and the touch pins in `data-table-select-first-35684.test.tsx` already run with `singleClickEdit: true`. `ObjectGrid` passes `singleClickEdit: schema.singleClickEdit ?? true` on main today; objectstack-ai#36357 (read at `579f99ae`) also edits `ObjectGrid.tsx` (`hostCellSelection = cellSelectionProp ?? inlineEditable`, `singleClickEdit: true`) and `ObjectGrid.cellSelection-35684.test.tsx`; it makes every grid that renders editable select-first, so this behaviour extends to them and no pin here flips; `node scripts/pm/overlap-check.mjs --pr=36357` on 6991954: merges cleanly, VERDICT clean. The one residual is a host passing `cellSelection={false}` explicitly (none in-tree). A grid on the older click-to-edit model (no `cellSelection`, `singleClickEdit` true) still edits on a touch tap, as it did before this PR; that model is outside this slice. - A tap that lands on a lookup cell's edit button drawn earlier for a mouse (a hybrid device) now does nothing at all rather than editing; the row's click handler ignores clicks on buttons, so the tap does not open the record either. A finger alone never draws the button. - Real screen-reader output (VoiceOver, NVDA) and a real iPad were not exercised; the pins are jsdom, and the claim about a region that mounts with its words is the general live-region behaviour, not a measurement here. - Selection frame contrast: no change needed; the readings are in What changes. ## Verification Read first (risk order): 1. `ui/packages/plugin-grid/src/ObjectGrid.tsx`, the `gridCellSelection` memo and its dependency list: a missing dependency would leave the selected cell's `aria-readonly` stale until the reader moves (act-time reads stay fresh either way). 2. `ui/packages/components/src/renderers/complex/data-table.tsx`, the `selectedHostReadOnly` layout effect and the `cellReadOnly` line in the body-cell map. 3. `ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts`, the `answerSeq` bump in the read's `finally` and on the invalidation reset. Two-minute check: `pnpm --dir ui exec vitest run packages/plugin-grid/src/__tests__/ObjectGrid.cellSelection-35684.test.tsx`, expect every test passing, among them the two in "the selected cell says a lock that answers after it was selected (objectstack#35689)". <details><summary>Local gates (targeted, derived from the diff) at 65b9199</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 42 families (19 paths vs merge base c448c61); all run, every one exit 0 (`check:query-options-erasure` re-run without the loop's 300 s cap after the first try hit it: exit 0, "ratchet holds"). `pnpm check:type-check-debt`: exit 0, "0 raw tsc error(s) total". `--ran` reconciliation: 42 derived, 42 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. ui i18n gates: `check:i18n-keys`, `check:i18n-drift`, `check:i18n-dead-keys` exit 0. `pnpm check:nul-bytes`: exit 0. `node scripts/pm/overlap-check.mjs` before each push: VERDICT clean (at 65b9199 after merging origin/main, which had conflicted on the lock hook and its test; at 6991954 against origin/main ff60149 and 10 open heads, and with `--pr=36357`). CI on 6991954: 45 success, 13 skipped, 0 failure (on 65b9199 before it: 47 success, 15 skipped), among them Lint and Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16 shards), Build and E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds)_ <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgXSK9qt8je9QbZvhKb
Fixes #35795
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
POST /api/v1/approvals/records/:object/locks(一次最多 200 条,读不到的记录和不存在的一样答 null),SDK 有对应方法。What changes
Server (new route, contract, SDK).
IApprovalService.getRecordLocks?(object, recordIds, context)(packages/spec/src/contracts/approval-service.ts, optional likegetRecordLock): entryianswersrecordIds[i]exactly asgetRecordLockanswers it ({ locked }, ornullfor an unreadable or missing record, never told apart). New exportAPPROVAL_RECORD_LOCKS_MAX_RECORD_IDS = 200(the explain batch's cap, so a page splits the same way for both reads).api-surface/contracts.jsonandexport-origins/contracts.jsonregenerated.ApprovalService.getRecordLocks(plugin-approvals): two engine reads whatever the page size: the caller'sid $inread of the ids (the same anchorgetRecordLockreads as the caller), then one pending-request lookup judged by the record-lock hook's own judgement through the newrecordsHeldByLockingApproval(lifecycle-hooks.ts, the many-record form ofrecordHeldByLockingApprovalover the samelockingRequestsForRecords).POST /api/v1/approvals/records/:object/locks(approvals-routes.ts): body{ "recordIds": [...] }answers{ success: true, data: { records: [{ recordId, locked }] } }in order,locked: nullwhere the single read answers 404. Closed query set EMPTY (APPROVAL_RECORD_LOCKS_PARAMS); the body is closed too (readRecordLocksBody): any other key, a non-list, a non-string or blank id, an empty list or more than the cap is refused whole with400 VALIDATION_ERROR, the service never asked. A service withoutgetRecordLocksanswers 501, never onegetRecordLockper id. Route ledger rowsdk→client.approvals.getRecordLocks(object, recordIds).List grid.
useRowApprovalLocksasks the locks of the page in one request perAPPROVAL_RECORD_LOCKS_MAX_RECORD_IDSids when a cell is first selected (ObjectGrid'sonCellSelectpasses the selected row plus the page's ids); rows already asked are not asked again, rows a later page brings are asked on the next select. It exposessettling(recordId): the read the row waits on while it is on the wire.useRecordCrudVerdictsexposessettling(): the explain questions on the wire as one promise (read from a ref, so it sees a question sent since the last render).ObjectGrid.describeCell: when the cell has no read-only reason yet but the row's lock read, or itsupdateverdict (when still unknown), is on the wire, the facts carrychecking: { text, settled }.@object-ui/componentsGridCellFacts.checking(optional, new):data-table'sattemptEditshowstexton the cell, remembers the edit (with its typed seed) and asks it again whensettledsettles, unless another cell was selected, a newer edit was asked or an editor is open by then. A toggle, paste or clear asked meanwhile showstextand writes nothing (an intrinsic refusal such as "required" is still said first).grid.readOnlyReason.checkingin all 11 locales plus the plugin's English fallback.Docs:
content/docs/automation/approvals.mdx("Reading the locks of a page of records"). Changeset.changeset/35795-batched-record-lock-read.md(patch on the seven packages the diff moves;Metadata-protocol: none⇒ patch).Why
PR #35747 read a row's lock with one
GET …/:recordId/lockper selected row, sent on a double-click's first press and needed on its second. A slower answer let the editor open on a locked record and only the save was refused; the record verdict had the same window, and arrow keys sent one read per row (the L2 record 7034067196, S3 and N2). #35684 rules out 「能进编辑、保存被拒」.Batch route over projection (premise, accepted by the seat with the claim 7072869185): the lock is the approvals plugin's own judgement; projecting it into
GET /data/:objectwould teach the data layer about approvals or add a virtual-field protocol and charge every list read, while a batch route is the same shape as the explain batch the list already sends, asked only when the reader first acts on a cell.Small calls made in this thread (Sales 22:19:27Z: listed here)
dblclick) would then always need a second double-click. The waiting edit is dropped by selecting another cell, so nothing opens elsewhere.locked: null) and a failed read fall back to theapproval_statuscolumn (fail open, as before; the server still refuses a locked write).Verification
Each new pin was run against the fix, then with the fix ablated.
ObjectGrid.cellSelection-35684.test.tsx, new top-leveldescribe"an edit waits for the row's lock and verdict (objectstack#35795)", 7 cases with fake timers for the slow reads: a slow lock read on a locked row says checking for 1999 ms and then locked, never an editor; on an unlocked row the editor opens by itself when it answers; a key typed while checking is the editor's value; a slow verdict holds it the same way; selecting another cell drops the wait; a page sends one lock read and the arrow keys send none (lock or explain); a 501 deployment is asked once and edits. The existing lock case now reads the page in one request. Ablating thecheckingbranch ofattemptEdit: 5 of the 7 red, restored.rest-approvals-record-lock-route.test.ts, new top-leveldescribefor the route: preservation (service asked once with the ids in order and the caller; one entry per id; a full page at the cap), nine refusal shapes (400 + nestedVALIDATION_ERROR+ service never called), the empty closed query set, 501 when onlygetRecordLockexists (and it is not called), a read refusal relayed at its own status.record-lock-read.integration.test.ts(real ObjectQL + better-sqlite3 +ApprovalsServicePlugin.start()), new top-leveldescribe: for each of submitter, approver and a non-participant reader, the page answer equalsgetRecordLockper id (repeated ids, unreadable, missing); two engine reads for a page of three; an outsider is refused 403 as for one record; a blank id answers null; deciding unlocks the page as the hook does.client.test.ts: one POST, object segment encoded, body{ recordIds }.Local runs (merged tree, main
a5a5312f+ this branch, afterpnpm install --frozen-lockfile && pnpm build):@objectstack/plugin-approvalstest: 126 files / 1,812 passed.@objectstack/client: 59 / 820 passed.@objectstack/spec: 869 files / 27,877 passed.@objectstack/rest: first run 2 red (the two write-route ledgers had no row for the new POST route); rows added (no-record-echoin the The write-response internal-field tripwire walks the protocol class only — a direct engine write mouth outside it (rest-server's batch ql.update) is covered by the fix but not by the guard #8497 tripwire, a drivenapprovals.getRecordLocksrow in the hook-refusal ledger), both files now 737 / 737.packages/plugin-grid/ components/ plugin-list/ plugin-detail/ i18n/): first run 18 red in 4 files: a paste / toggle / digit was dropped while checking (fixed: those writes now wait too, as the edit does), andzh-Hant.tswas not regenerated (fixed withgen:zh-hant). The six affected files then 102 / 102. A second full run of these packages is in progress; its result goes on this PR.spec check:generated:api-surfaceandexport-originsregenerated (one line each).overlap-check.mjs: clean against main and every open PR sharing a file (fix(plugin-approvals): a locked record's lines read as locked, and deleting the locked record still lands #36135, fix(approvals)!: an approver reassigns only their own slot #36144, feat(record-page): on a phone the record's comments open as a page: threads first, replies inside, the box docked at the foot, a long press for actions (#36076) #36208).ObjectGrid.autosave-35685.test.tsx, new top-leveldescribe(2 cases, fake timers): a paste is not written for 1999 ms of a slow lock read and is written when it answers unlocked; on a locked answer it is never written and the cell says why. Ablating the wait inwriteCell: both red, restored.Acceptance notes
getRecordLockalso answertruefor amaster_detailline of a locked record. This PR's batch answers the record half only. Whichever lands second carries the other half intogetRecordLocks(the line half batched: one FK read of the page, one lookup per master object).overlap-check.mjsreads this branch clean against fix(plugin-approvals): a locked record's lines read as locked, and deleting the locked record still lands #36135 (it was moved off the lines fix(plugin-approvals): a locked record's lines read as locked, and deleting the locked record still lands #36135 edits).Human Minimum
packages/specholds no runtime logic. (a contract interface member and a constant)pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgXSK9qt8je9QbZvhKb