Skip to content

console: the record page line-items panel under a parent's whole-record hand lock — measure, and lock it like the edit form (follow-up of PR #38388) #38521

Description

@objectstack-fleet

repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

Filing gate: ① (fleet finding) · Source: os-dev-report on #38249, out_of_scope_findings (read-only inference, not reproduced), and the seat's L1 on PR #38388. The maintainer asked that this seat's follow-ups be carried to merge.

维护者速读

  • 问题:父单据整单手动锁定后,编辑表单里的明细行已经锁住(PR fix(console): a parent's whole-record hand lock locks its inline master-detail lines in the edit form #38388);但记录详情页自己的明细行面板是另一个能手改明细的地方,有没有跟着锁还没测过。
  • 做什么:先在详情页实测;没锁就按编辑表单同一套规则锁住;锁了就留测试钉住。
  • 出错会怎样:只影响控制台里人手编辑明细行;接口、导入、动作和流程写入不受影响。
  • 要你做什么:无。

What

PR #38388 makes the edit form's master-detail lines follow the parent object's uiReadonlyWhen. The record page has a second hand surface over the same lines: LineItemsPanel / RecordBodyTableEditor in ui/packages/plugin-form/src/RecordBodyTableEditor.tsx and its app-shell caller. The #38249 dev did not change or measure it.

Expected

Blocked-by: #38249

Grade: area:data · Feature · p2 · reach: every app that hand-locks a document with inline lines

Activity

  1. added
    priority:p2
    pm:queue
    domain:ui
    on Nov 29, 2026
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4

    Triage: lands in ui/packages/plugin-form/src/RecordBodyTableEditor.tsx and its app-shell caller, measure first · area:data · domain:ui · Bug · p2 · pm:queue · size S. Grading line: area:data · Bug · Impeded · end users, daily · evidence read (the dev's out-of-scope inference; not yet measured). Rationale: if the record-page lines panel edits lines under a parent's hand lock, the shipped lock (PR #38388, merged) is broken on a second hand surface, which is a Bug, not a Feature; if it is already locked, a pin closes the card. Blocked-by: #38249 is closed, so pm:queue stands. Type set to Bug (filed as Feature).

  3. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

    Filed by this seat as a follow-up of PR #38388. The maintainer, in this seat's session: 「你的三张卡要跟进到合并啊」. Its blocker #38249 closed when PR #38388 merged.

    Claim: PM loop wind-down follow-up
    Session: session_017xRBcSAaBEfQpU2yJexSJ8
    Account: sunhaolin
    Branch: claude/issue-38521-line-items-panel-hand-lock
    Worktree: objectstack-issue-38521
    Domain: domain:ui
    Seat: repo:objectstack#8
    File surface: ui/packages/plugin-form/src/LineItemsPanel.tsx, ui/packages/plugin-form/src/RecordBodyTableEditor.tsx, their co-located tests, and one changeset for @object-ui/plugin-form.
    Container & model: S, mode:cloud, model: opus (dispatch-gates --tier: no path-derived mandate; default tier), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack — the record page's second hand surface over a hand-locked document's lines
    Thread-read: none
    Blocker: PR #38388 merged 2026-11-29T07:20Z.
    Premise: measured first on main. If the panel already refuses hand edits under the parent's lock, pin it with a test and close the card with the reading.
    Serial constraints:

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 29, 2026
  5. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#8 · sunhaolin · session_017xRBcSccr4AxYAvAhMKBw1
    os-dev-report

    {
      "issue": 38521,
      "status": "done",
      "branch": "claude/issue-38521-line-items-panel-hand-lock",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38547",
      "session": "session_017xRBcSccr4AxYAvAhMKBw1",
      "premise_still_valid": true,
      "summary": "Measured on main 63acc6cd: on both record-page line surfaces (the record:line_items panel and the edit state's RecordBodyTableEditor), under a parent whose object-level uiReadonlyWhen holds, the first line cell was an enabled input, and add, duplicate, remove and reorder read only the child grants and schema.readonly. So a person could add, edit, remove and reorder lines by hand. Fixed under the rule PR #38388 gave the edit form, with no new key: a new internal helper parentHandLockHolds (deriveMasterDetail.ts, not exported from . or ./core) judges the parent verdict through fieldReadOnlyByHand, and fails closed with no row. The panel judges it when the record context is its parent; the editor judges the live record plus the inline draft, with the stored row as previous. While the lock holds, both withhold allowAdd, allowDelete and reorder, and lock columns through lockColumnsByParentHandLock. A child field's own uiReadonlyWhen or uiReadonly: true is the opt-out. Declared writes are untouched. Nothing under ui/packages/app-shell/src/views/ was touched or needed. Clause-②: no (no public export added). Metadata-protocol: none. surface_amendment: ui/packages/plugin-form/src/deriveMasterDetail.ts (check-handover --inflight clear). Served tier read via get_session: model alias opus, effort high, cloud: matches the dispatch.",
      "tests": "New pins at head 37ef5d5a: LineItemsPanel.parentHandLock-38521.test.tsx (7) and RecordBodyTableEditor.parentHandLock-38521.test.tsx (5), through the real components and GridField. On main's source (fix set aside): 'Tests 6 failed | 4 passed (10)'; every lock pin failed on 'expected false to be true' (a line cell enabled), and every control passed. With the fix: 'Test Files 2 passed (2) / Tests 12 passed (12)'. Ablation via scripts/ablation-replace.mjs. The subject is imported from src by relative path, so there is no dist leg. Every leg logged 'ok mutation landed' (anchor 1 -> 0, blob moved) and 'ok restored: blob == HEAD and git diff HEAD is empty'. Results: panel verdict () => false: 4 failed | 8 passed; panel column lock removed: 4 failed | 8 passed; panel reorder deleted: 3 failed | 9 passed; editor verdict () => false: 3 failed | 9 passed; editor column lock removed: 3 failed | 9 passed; editor reorder deleted: 2 failed | 10 passed; controls green every time. 'pnpm --filter @object-ui/plugin-form test' (VERDICT command-exit 0): 'Test Files 252 passed (252) / Tests 2830 passed | 1 skipped (2831)'. 'pnpm --filter @object-ui/plugin-form type-check' (VERDICT command-exit 0); tsc -p tsconfig.test.json --listFiles counts both new test files (2). eslint --no-inline-config on the five changed files: 0 errors (53 warnings, all no-explicit-any; the new lines add none outside tests).",
      "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands at 37ef5d5a derived 39 families. Each was run under the verify lock with its exit captured before any pipe: all 39 'exit 0' (lock VERDICT command-exit 0). '--ran' with the 'command :: exit N' record: '39 derived famil(ies) accounted for — 39 run, 0 NOT-MEASURED (a DERIVED zero — all 39 recorded an exit code and none of them is 3)'. overlap-check.mjs against origin/main d1a06a3d: 'VERDICT clean exit 0'. CI check-runs on PR #38547: NOT MEASURED, reason: the PR was opened at report time and the PM reads CI convergence.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "5 — all reads: issue_read get #38521, issue_read get_comments #38521, pull_request_read get_diff #38388, pull_request_read get_comments #38388, pull_request_read get #38547. No write tool.",
      "api_writes": "2 relay strokes (fleet-write, as objectstack-fleet[bot]): (1) pr_create, i.e. POST /repos/objectstack-ai/objectstack/pulls (draft) plus POST /repos/objectstack-ai/objectstack/issues/38547/assignees [sunhaolin]; body read back 6746/6746 bytes identical, labels none sent; (2) this os-dev-report comment via post-stamped.mjs, i.e. POST /repos/objectstack-ai/objectstack/issues/38521/comments. git push x2 (not REST).",
      "deviations": [
        "The first WIP push (839367d1, tests only) went out before overlap-check.mjs ran; it was run right after the push and read 'VERDICT clean exit 0'. Every later push and the PR open were preceded by a clean overlap-check.",
        "main (63acc6cd -> d1a06a3d) was not merged before the PR opened. The incoming commits touch only ui/packages/plugin-chatbot under ui/, and overlap-check reads a clean merge.",
        "Three ablation first attempts (panel reorder, editor columns, editor reorder) were refused by ablation-replace.mjs: an empty or already-present replacement shows no rise. No mutation ran. They were re-run with --delete or a distinct replacement, and those readings are the ones cited.",
        "Worktree setup: the shared checkout had the dispatch branch checked out at 63acc6cd (== origin/main, nothing on the remote). It was detached, and the local branch was deleted and rebuilt by dev-worktree.sh from origin/main at the same sha. --no-probe, because this is a card-thread branch."
      ],
      "open_questions": [
        {
          "question": "A record:line_items panel bound to a parent other than the record page's own record (an authored parentId on another record's page) has neither that parent's row nor its definition in context. Should it fetch both to judge the parent's hand lock?",
          "options": ["A: leave it unjudged, as before (this PR; pinned as a control)", "B: fetch the parent's schema and row in the panel to judge it, which adds two reads per such panel and a loading state"],
          "recommendation": "A, because the card scopes the record page panel over its own parent, the case is rare, and B adds reads for a configuration with no known producer"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — MasterDetailForm keeps its own inline judgement of the same parent verdict; moving it onto parentHandLockHolds is a tidy-up, not a defect class (PR acceptance notes)"
      ]
    }

    Generated by Claude Code

  6. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

    Seat ruling · 2026-11-29T09:27Z · PR #38547, on the os-dev-report above.

    • Open question (a record:line_items panel bound to another record as parent): A. Leave it unjudged, as this PR does, pinned as a control.
    • Why: the card scopes the record page's panel over its own parent. Option B adds two reads per such panel for a configuration with no known producer. This is not a contract fork, and the maintainer's veto window applies.
    • Claim amendment: ui/packages/plugin-form/src/deriveMasterDetail.ts is added. It carries the new internal helper parentHandLockHolds, which is not exported, and the --inflight check is clear. Clause-②: no stands.
  7. added a commit that references this issue on Dec 1, 2026
    ade59c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions