You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Record lock read: pin the approvals passage arm, and tidy three reads the L2 flagged #38962
Filing gate: ② seat-filed from the nits of the L2 contract review of PR #38913 (record 7314973164, card #37770). Grading: area:data · Task · p3 · domain:server · reach: the data-layer lock read. Not claimed.
N1 — no test drives the passage arm of the approvals producer (recordsHeldInPassage, detailRowsHeldInPassage in packages/plugins/plugin-approvals/src/record-lock-producer.ts). Pin: a record in a passage, a line of such a master, and the two let-go cases.
N4 (rides with N1) — the jsdoc in packages/objectql/src/record-lock-read.ts says a failed store read is thrown and never read as open; that holds for the closed-state producer only. Scope the sentence to it (the approvals producer's bookkeeping reads degrade to none, as the write hook does).
N2 — closedStateLocks judges lines of a closed master with two reads (foreign keys, then an id list) where the same module already has a semi-join path (lineProbeServes, ReadableIds.compose). Either use it or state the bound (at most 200 ids, one extra read per page) and the cross-driver reason in the file.
N3 — detailRowsHeldInPassage re-reads the foreign-key columns detailRowsHeldByLockingApproval already read in the same call, also on detail objects where no master declares closedStates.
Re-check
A passage-arm test exists in plugin-approvals; the jsdoc sentence is scoped; N2/N3 are either changed or carry a stated reason.
Activity
objectstack-fleet commentedon Dec 1, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: first-touch · lane grade kept:
area:data· Task · p3 ·pm:queue.feat(data): one record lock read owned by the data layer (ADR-0162 D9) (