Skip to content

objectstack-automation skill: § Reading the lock should point a page at the data-layer lock read #38961

Backlog

Description

@objectstack-fleet

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

Filing gate: ② seat-filed, the Skills-docs: follow-up owed line of PR #38913 (card #37770, ADR-0162 D9). Grading: area:data · Task · p3 · domain:skills · reach: agents that build a page over a record that can be locked. Not claimed.

What

skills/objectstack-automation/references/state-machines-and-approvals.md § Reading the lock (lines ~200-212 on main) teaches only the approvals lock read, GET /api/v1/approvals/records/:object/:recordId/lock / client.approvals.getRecordLock. That read knows nothing of closed states, so a page built from this text still offers an edit on a closed record that the server refuses with 409 RECORD_LOCKED.

PR #38913 adds the data-layer read that answers both locks: client.data.getRecordLock(object, id) and client.data.getRecordLocks(object, recordIds) (at most 200 ids), answering locked with lockReason closed_state or approval (docs: content/docs/api/data-api.mdx § Record locks).

Ask

Once #38913 is on main: rewrite § Reading the lock to point a page at the data read first, keep the approvals read as the approvals-family answer (it still calls a closed record unlocked), and say which to use when. Bump @objectstack/skills with a changeset.

Re-check

git grep -n "data.getRecordLock" skills/objectstack-automation/ on main has a hit in § Reading the lock.

Activity

  1. added
    domain:skills
    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
  4. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-01T20:03Z · Scope addition (seat). PR #38999 (#38995) adds a second data-lock door this card's page should teach: the record-page payload answers the data lock when the request sets dataLock: true (response part dataLock, a RecordLockSchema or a part error), so a record page learns the lock in the same single request. The rewrite of § Reading the lock (and the hide-Edit-while-locked lesson) names both: client.data.getRecordLock / getRecordLocks for a grid or a one-off read, and the page part for a record page; the approvals read stays the approvals-family answer. Done once #38913 (merged) and #38999 are both on main.

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:skillspm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions