Skip to content

Record lock read: pin the approvals passage arm, and tidy three reads the L2 flagged #38962

Backlog

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

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.

What

From the L2 record, all nits, none blocks #38913:

  • 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

  1. added
    domain:server
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: first-touch · lane grade kept: area:data · Task · p3 · pm:queue.

  3. added
    pm:queue
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:datadomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions