Skip to content

Console: read the one lock read, word "closed" apart from "in approval", and save a closing header last (ADR-0162 item 4) #37773

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ③ maintainer-directed · Source: ADR-0162 Execution item 4 (accepted by merge 972114d)

维护者速读

  • 做什么:让记录页、列表和明细表格读统一的锁查询,已关闭的单据上编辑变灰、删除隐藏,并写明原因是「已关闭」。
  • 用户会看到什么:打开一张已关闭的单据,不再看到可以点的编辑和删除;提示写的是「单据已关闭」,不是「审批中请等待」;一次保存里既改明细又把单据关闭时能成功。
  • 不做会怎样:服务端照样会拒绝,但用户要点了保存才知道,而且提示会误说成「等待审批完成」。
  • 顺序:排在统一锁查询那张卡之后。

What happens

The console asks the approvals-family lock read. The grid keeps or drops Delete by lockSource (ui/packages/plugin-grid/src/objectGridActionsColumn.tsx), and the record page reads its lock through ui/packages/app-shell/src/hooks/useRecordApprovals.ts. Neither is told about closed states, so a closed document shows Edit and Delete, and the server's refusal is the user's first notice. Apps work around it with per-object userActions predicates.

The master-detail save writes the header first (ui/packages/plugin-form/src/masterDetailTx.ts). Under ADR-0162 D4 a save that edits lines and closes the document must write the lines first: once the closing write has landed, the next write in the same unit of work meets a closed record.

Expected

  • The record page, the grid and the line grid ask the one lock read (item 2) and word the reason from lockReason: "in approval" and "closed" are different things to tell a user.
  • On a locked record Edit is greyed. Delete is hidden where the read says closed_state, for either lockSource. Under approval the published rule stays: a record held on its own keeps Delete, a line of a held master does not.
  • No per-object predicate is needed for it. userActions predicates stay display only and unchanged.
  • The master-detail save orders a closing header write last, after its line writes.
  • An action button stays as the app declares it: the lock read does not hide an action. An app's own "Reopen", "Void" or "Refund" action is how a closed document is changed.
  • Strings in every locale the console carries.

Done when

  • A closed record: Edit greyed with the closed wording, Delete hidden, on the record page, in the grid and in the line grid of its master.
  • A record held by an approval: unchanged from today, including Delete by lockSource.
  • A record that is both closed and held reads as closed.
  • A reader who may not see the state field still gets the closed wording, and the page shows neither the field nor its value.
  • One save that edits lines and sets the closing state lands whole. A test pins the write order.
  • No console code path asks the approvals-family lock read for the edit and delete affordances. The record page's approvals panel keeps its own lock.
  • Browser-verified on the showcase's paid invoice (after item 3) or a fixture app, with screenshots in the PR.

Category ③: maintainer-directed. A build card of ADR-0162, child of #36253.
Grade: area:data · Feature · n/a (not a defect) · reach: every console user of a declaring app · evidence: read (the two askers on main at 972114df)
Suggested-grade: p2 · part of the feature #36253; without it the refusal is the user's first notice
Size: M (three console surfaces, one save path, their strings and tests).
Business reason: carried from #36253. A hidden button and a refused write should say the same thing, without each app spelling it out per object.
Reader: seat 2 (repo:objectstack#2), a card thread on ui/**, effort high.
Blocked-by: #37770 (item 2) (the read this card asks). The save-order change does not wait and can go first if the seat splits it out.
Clause-②: no. Console behaviour; no published contract moves.
Metadata-protocol: none
Dedupe: searched getRecordLock (open issues): #37195 concerns the record page's approvals part, which this card leaves as it is.
Related: #36253, PR #37606 (ADR-0162), #37231 and #37151 (the lockSource work the grid reads today), #37195.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:data · domain:ui · Feature · priority:p2 · pm:blocked · size M; rationale: closedStates. The console reads the one lock read, tells "closed" apart from "in approval", and saves a closing header last. Part of #36253; p2. It keeps its named blocker.

  3. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-01T16:07Z · Unblocked. The only blocker, #37770, is closed (PR #38913 merged at 2026-12-01T16:06Z, merge commit 7b68db9). The data-layer read this card asks is on main: client.data.getRecordLock(object, id) / getRecordLocks(object, recordIds), answering lockReason closed_state or approval (docs content/docs/api/data-api.mdx § Record locks). The console askers (record page, grid, line grid) moved here from #37770 by its scope note. pm:blocked → pm:queue (lane domain:ui, area:data); unclaimed.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Dec 1, 2026
  5. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 3 · 2026-12-01T16:12Z
    Area: osa-data
    Session: session_01WGufzhKEbEnW8pwZRgK2gJ
    Account: os-support-ai
    Branch: claude/issue-37773-console-closed-lock
    Worktree: objectstack-issue-37773
    Domain: domain:ui
    Seat: repo:objectstack@os-support-ai
    File surface: grid — ui/packages/plugin-grid/src/hooks/useRowApprovalLocks.ts, ui/packages/plugin-grid/src/objectGridActionsColumn.tsx, ui/packages/plugin-grid/src/objectGridCellFacts.ts, ui/packages/plugin-grid/src/objectGridTranslations.ts, ui/packages/plugin-grid/src/ObjectGrid.tsx; record page — ui/packages/app-shell/src/hooks/useRecordApprovals.ts, ui/packages/app-shell/src/views/RecordDetailView.tsx, ui/packages/app-shell/src/views/recordDeleteHeldByMaster.ts; line grid and save — ui/packages/plugin-form/src/masterDetailTx.ts, ui/packages/plugin-form/src/MasterDetailForm.tsx, ui/packages/plugin-form/src/LineItemsPanel.tsx; the lock answer's console type in ui/packages/types/src/data.ts if it needs lockReason; strings in ui/packages/i18n/src/locales/*.ts; existing tests beside those files whose pins read the changed answer, new test files named for this card beside them; one .changeset/37773-*.md. Stop on breach; explain in the report.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: "Model tier — no path-derived mandate"), effort: high (reason: three console surfaces move to another read with two lock reasons and two lock sources, plus a save-order change under ADR-0162 D4)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code, objectstack (the console askers read the approvals-family lock: useRowApprovalLocks.ts, useRecordApprovals.ts; buildMasterDetailEditBatch writes the header first in masterDetailTx.ts) | none | every console user of an app declaring closedStates: a closed document shows Edit and Delete, the server refusal is the first notice and is worded as an approval wait; a save that edits lines and sets the closing state meets a closed record; reachable today
    Thread-read: 7317094043
    Premise: holds at origin/main 7b68db9 (fetched 2026-12-01T16:12Z): the grid asks POST /api/v1/approvals/records/:object/locks (useRowApprovalLocks.ts:139), the record page asks GET /approvals/records/:object/:recordId/lock (useRecordApprovals.ts:620); buildMasterDetailEditBatch puts the parent update at index 0 before the line ops (masterDetailTx.ts:150). The data-layer read is served: GET /data/:object/:id/lock and POST /data/:object/locks (packages/rest/src/record-lock-routes.ts), client.data.getRecordLock / getRecordLocks answering lockReason closed_state | approval.
    Pre-claim lane: ui/** ⇒ domain:ui (file ownership only).
    Pre-claim deps: Blocked-by: #37770 — closed, PR #38913 merged 2026-12-01T16:06Z (unblock 7317094043). Browser verification on the showcase paid invoice waits on #37771 (PR #38917, not merged); until then a fixture app per the card's Done-when.
    Prior rulings read: ADR-0162 D4 (closing write last) and D9 (one data-layer lock read), accepted by merge 972114d; check-prior-rulings.mjs --card 37773: thread: none. Card fence kept: userActions predicates unchanged; the lock read hides no action button; the record page's approvals panel keeps its own lock.
    Serial constraints cleared: check-handover.mjs --inflight --paths=<the surface above> --card=37773: NO OVERLAP READ (one unread surface, #38415, a seat reading stroke naming no path). overlap-check.mjs before every push.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 1, 2026
  7. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ
    os-dev-report

    {
    "issue": 37773,
    "status": "needs_decision",
    "branch": "claude/issue-37773-console-closed-lock",
    "pr": "#38994",
    "session": "session_01WGufzhKEbEnW8pwZRgK2gJ",
    "premise_still_valid": true,
    "head_sha": "a353b0fb",
    "summary": "The grid, the line grid and the record page now ask the data layer's one lock read (GET /data/OBJECT/ID/lock, POST /data/OBJECT/locks) for Edit and Delete and word the reason from lockReason. Closed means Edit is greyed with 'This record is closed, so it can't be changed.' and Delete is hidden for either source; closed and held reads as closed; approval-only is unchanged, Delete by lockSource included. A master-detail edit save that sets a closedStates value writes every line first and the header last, and the parent result is found by object and id. Strings are in 11 locales. needs_decision: the record page's lock read is a second request on every open, which breaks the published one-request-per-open pins (13 tests in 5 app-shell files). Keeping both needs the record-page payload to carry the data lock, a spec shape change outside this surface (open question 1).",
    "tests": "New: plugin-form masterDetailTx.closingHeaderLast-37773 (7) and MasterDetailForm.closingHeaderLast-37773 (2); harness closedLock-37773 (5); lockSource-37195 +3; rowMenuApprovalLock-36911 +2; cellSelection-35684 closed block. Ablations, each restored: save order (closing=false) 3/9 red; grid deleteRefused/closed 3/45 red; record page recordClosed=false plus master-only delete 3/5 red. Full suites: plugin-grid 323 files / 2850 passed (3 parts); plugin-form+i18n 365 files, 4713 passed, 14 skipped, 1 failed (zh-Hant hand-written) → regenerated, file re-run 10/10. app-shell narrowed to the 304 files reading the changed modules: 299 files passed, 5 failed (2695 passed / 13 failed), all 13 = open question 1. Remaining 2182 app-shell files: CI.",
    "gates": "dispatch-gates --commands at a353b0f: 42 derived; --ran with exit codes: 42 run, 0 NOT-MEASURED, all exit 0 (test-source-alias went red on the 27138 test and was fixed in-branch with a module-top lint import; query-options-erasure and type-check-debt re-run without my 300s cap, exit 0). check:new-line-citations exit 0 (0 new). overlap-check clean. Type-check lanes NOT MEASURED locally (the ui packages need their @object-ui dists; plugin-grid type-check exit 2 on missing workspace module declarations) → CI. CI check-runs: pending at report time.",
    "line_budget": "about 1,390 changed lines over 35 files, under 3,000",
    "files_changed": "plugin-grid: useRowApprovalLocks.ts, objectGridActionsColumn.tsx, objectGridCellFacts.ts, objectGridTranslations.ts, ObjectGrid.tsx; app-shell: useRecordApprovals.ts, RecordDetailView.tsx, recordDeleteHeldByMaster.ts; plugin-form: masterDetailTx.ts, MasterDetailForm.tsx; i18n locales x11; tests beside those files; .changeset/37773-console-closed-lock.md. LineItemsPanel.tsx and types/data.ts not needed.",
    "screenshots": "https://claude.ai/artifact/1WWaA6gcswQuZHN2yJDnW8 (private until shared): paid invoice Edit greyed with the closed tooltip and no Delete; its line Closed chip, Edit greyed, no Delete; draft control with Edit and Delete; grid cell closed wording.",
    "deviations": "1) Three run attempts were moved to the background by the harness when they hit the 600s cap (a combined vitest run, a gate batch twice); the first was stopped and re-run in parts, and the gate batches finished and were read. 2) app-shell tests were narrowed to 304 of 2486 files (declared; CI runs the rest). 3) Two origin/main merges, each with the session trailer. 4) One commit first carried a model-named co-author trailer; the pre-push hook refused it and it was amended before any push.",
    "mcp_calls": "0",
    "api_writes": "1 relay stroke so far: pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/38994/assignees), run 46714892812. This comment is the second.",
    "classifier_refusals": [],
    "open_questions": [
    {
    "question": "The record page now opens with two requests (page payload plus the data lock read), breaking the one-request-per-open pins. How should the lock reach the page?",
    "options": [
    "A: add a data-lock part to RecordPageSchema and the record-page route, seeded into the hook; one request kept; spec change, Metadata-protocol: added; about 150-300 lines; a separate card this PR follows",
    "B: accept one more request per open and re-pin the 5 test files; no spec change; reverses a published perf contract"
    ],
    "recommendation": "A, because both the ruling and the published contract hold, and the payload already answers the approvals lock in the same request."
    },
    {
    "question": "Grid row menu: a closed row's Edit is hidden rather than greyed, because RowActionMenu has no host-reason slot. Grey it?",
    "options": [
    "A: keep hidden; the cells give the closed wording",
    "B: add a reason prop to RowActionMenu (outside the surface) and grey Edit with the sentence"
    ],
    "recommendation": "B as a small follow-up, because the ruling says Edit is greyed on a locked record."
    },
    {
    "question": "Two closed-lock gaps sit outside the file surface: the record page edit-state save (RecordBodyTableEditor.tsx with recordEditState.tsx) still writes the header first, and the AppContent edit dialog locks only on approval. Amend the surface or file follow-ups?",
    "options": [
    "A: file one follow-up card covering both",
    "B: amend this card's surface and fix them here"
    ],
    "recommendation": "A, because this PR already waits on open question 1."
    }
    ],
    "security_findings": "none",
    "out_of_scope_findings": [
    "carrier: none · noted in PR #38994 Acceptance notes, not filed (reach not measured at a public door) · record page edit-state save builds the header write before the line writes (RecordBodyTableEditor.tsx buildRecordEditBatch with recordEditState.tsx), the shape this PR fixes in masterDetailTx for ADR-0162 D4 · dedupe words: closing header last, record edit state, buildRecordEditBatch, closedStates",
    "carrier: none · noted in PR #38994 Acceptance notes, not filed (reach not measured at a public door) · the AppContent full-record edit dialog sets lockedBy only for 'approval', so it does not lock on a closed record (the server still refuses the save) · dedupe words: edit dialog closed lock, lockedBy, AppContent"
    ]
    }

  8. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-01T18:52Z · Claim amendment 1 (claim 7317217442): File surface adds the master-detail save-order passage of content/docs/data-modeling/closed-states.mdx (landing with PR #38993, #37772), and only that passage. That page states today's order (header first, so a closing save that also edits lines is refused whole); if this card ships the closing-header-last save, the same PR corrects the sentence. Nothing else widens.

  9. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-01T19:05Z · Seat ruling on the dev's open questions (PR #38994): the record page's lock must not cost a second request (one request per record-page open is a published contract), so it moves to #38995 (a data-lock part on RecordPageSchema and POST /data/:object/:id/page, answered from getRecordLock; card thread). PR #38994 drops the record page's extra GET and lands the grid, line grid, closing-header-last save and locales as Part of #37773; the record-page hunks are kept on a backup branch for re-application. Follow-ups: #38996 (grid row menu greys Edit instead of hiding it) and one card for the record-page edit-state save order plus the edit dialog's closed lock. The card stays claimed for its record-page half.

    Blocked-by: #38995 (record-page half only)

  10. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-01T20:39Z · PR #38994 (Part of this card) merged at 2026-12-01T20:39Z: the grid and line grid read the data layer's one lock read and word "closed" apart from "in approval"; a master-detail save that closes the header writes its lines first; one grid string in 11 locales; the closed-states.mdx line-order passage (L1 ACCEPT 7324367731). The card stays open and claimed for its record-page half, which waits on #38995 (Blocked-by 7322183009); those hunks are on claude/issue-37773-record-page-half-wip (ca71605), to be re-applied after #38995 and then deleted. Follow-ups: #38996, #38997. Nothing exists only locally.

  11. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment 2 · Resume · 2026-12-01T22:59Z
    Card: #37773 (claim 7317217442, record-page half)
    Unblocked: PR #38999 merged 2026-12-01T22:56Z (main 77d15643), closing #38995. The record page payload now answers the data lock in its one request.
    Resume-from: backup claude/issue-37773-record-page-half-wip (ca71605f), re-applied onto current main by a new os-dev on branch claude/issue-37773-record-page-lock.
    Change against the backup: the record page reads dataLock from the page payload, not from the backup's GET /data/:object/:id/lock; the one-request-per-record-page pins stay green.
    File surface: ui/packages/app-shell/src/hooks/useRecordApprovals.ts, ui/packages/app-shell/src/views/RecordDetailView.tsx, ui/packages/app-shell/src/views/recordDeleteHeldByMaster.ts, tests beside them (useRecordApprovals.lockSource-37195, RecordDetailView.approvalLock-25934, RecordDetailView.harness, AppContent.editDialogApprovalLock-27138), locale keys the half still needs, changeset .changeset/37773-console-closed-lock.md.
    Closes: this PR carries Fixes #37773.
    Serial constraints cleared: check-handover.mjs --inflight on the surface above: NO OVERLAP READ (one unread, #38415). #38997 (zone, same family) holds AppContent.tsx and the edit-state save; its dialog lock builds on this half's dataLock and waits on it where they meet.
    Backup: deleted once the new branch is pushed.

  12. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhKEbEnW8pwZRgK2gJ
    os-dev-report

    {
      "issue": 37773,
      "status": "done",
      "branch": "claude/issue-37773-record-page-lock",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39011",
      "session": "session_01WGufzhKEbEnW8pwZRgK2gJ",
      "premise_still_valid": true,
      "summary": "Re-applied the record-page half from backup ca71605f onto main 77d15643. Edit and Delete on the record page read the data layer's lock (dataLock), and a closed record shows a greyed Edit with the closed sentence, no Delete, a Closed chip where the header draws tags, and no line writes; a record both closed and held reads as closed; approval-held behaviour is unchanged. The one change against the backup: the page payload asks dataLock: true and seedRecordPageReaders hands that part to useRecordApprovals (seedRecordApprovals), so the record page open is still one request with no lock GET. Only reads the hook sends itself (refresh after a change, a consumer with no payload) ask GET /data/:object/:id/lock. Edit dialog request counts: Edit pressed on a record page joins the page's answer (0 lock or approvals reads); dialog over a list sends 3 (approvals list, approvals lock, data lock; main sends 2), pinned. recordClosedByLock and DataRecordLock stay exported for #38997. Browser-verified on the showcase paid invoice and a line of it, with draft controls; screenshots in the PR. Head fef530c6.",
      "tests": "At fef530c6. lockSource-37195 + recordPagePayload-27627: 11/11 and 11/11 passed. harness, approvalLock-25934, AppContent.editDialogApprovalLock-27138, recordOpenOneRequest-28470, feedLoadFailure-29188, recordReadFailure-11902, approvalRequestPage-28546: 7 files, 139 tests passed; 27138 re-run after its new pin: 6 passed. Ablation, run once: startRead mutated so seeded reads send the GET instead of reading the payload part (marker 1, anchor 0 on disk) -> 13 failed across the two files (every one-request pin in 27627 and 5 payload tests in 37195); restored with git checkout HEAD, git diff HEAD empty, blob hash matches HEAD. Tests import src, so no dist was involved.",
      "gates": "Local: type-check for @object-ui/app-shell, types and i18n exit 0 (VERDICT command-exit 0). eslint on 21 changed ui ts/tsx files: 0 errors. dispatch-gates --commands: 41 derived; --ran reconciliation: 39 run, all exit 0 (including pnpm --dir ui exec vitest run scripts/: 172 files passed, 2 skipped), 2 NOT-MEASURED: check:query-options-erasure and check:type-check-debt, killed by a 200s timeout on the shared box (exit 124), left to CI. check-platform-checklist --changed-from origin/main: exit 0, 0 anchored files. check:new-line-citations: exit 0. CI on PR #39011 head fef530c6: in progress when this was written (Check Changeset, Lint, Type Check, Governed Surface Queue Guard and PR-body guards in_progress; opt-in dogfood skipped); not waited on.",
      "mcp_calls": "0",
      "api_writes": "2: POST /repos/objectstack-ai/objectstack/pulls via fleet-write pr_create (plus its assignees leg, POST /issues/39011/assignees), and this os-dev-report comment via post-stamped.mjs. git pushes are not REST writes: branch commits, an orphan screenshots branch claude/issue-37773-record-page-screenshots (ef703bcb), and a refused push --delete of the backup.",
      "classifier_refusals": [
        { "command": "git add -A && git status --short && git commit -q -F - (heredoc) && git push -q origin HEAD", "reason": "[Destructive or Unwanted Actions]", "mode": "subagent", "human_turn_before": "no", "resend": "passed: split into a local commit with explicit paths (no -A), then a plain git push origin claude/issue-37773-record-page-lock" }
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: pressing Edit on a record page re-asks the page payload with an identical body (measured identical on main 77d15643 by restoring the app-shell files under the same dev server); a perf observation, not one of the filing classes",
        "carrier: none · noted, not filed: the showcase invoice sign-off flow does not lock the record (both lock doors answered locked:false after submitting INV-1002), so the approval-held case was pinned by unit tests rather than browser-verified"
      ],
      "file_surface_added": "ui/packages/app-shell/src/views/recordPagePayload.ts (where the payload's dataLock part is handed to the hook; needed for the ordered one-request change), ui/packages/types/src/data.ts (RecordPagePayload.dataLock; in the original claim's surface, not the amendment's), ui/packages/app-shell/src/views/RecordDetailView.recordPagePayload-27627.test.tsx (the one-request pin beside RecordDetailView), and a new changeset .changeset/37773-record-page-closed-lock.md instead of re-wording .changeset/37773-console-closed-lock.md, which landed on main with #38994 and describes the grid half",
      "backup_deletion": "refused: git push origin --delete claude/issue-37773-record-page-half-wip answered 'fatal: the remote end hung up unexpectedly'; branch still at ca71605f. Not retried (readings-session.md: ref deletion is 403 from this container); the maintainer must delete it"
    }
  13. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment 3 · surface additions · 2026-12-02T00:12Z
    Card: #37773 (claim 7317217442, resume amendment 7328622922; delivered by draft PR #39011, Fixes #37773)
    Added to the file surface (measured by the dev, report 7330244887):

  14. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 6 · 2026-12-02T00:14Z · branch record for the record-page half: same holder, same card, re-stating claim 7317217442 with amendments 7328622922 and 7330280533 on the new branch so check:closing-target-claim reads it. Delivered by draft PR #39011 (Fixes #37773).
    Area: osa-data
    Session: session_01WGufzhKEbEnW8pwZRgK2gJ
    Account: os-support-ai
    Branch: claude/issue-37773-record-page-lock
    Worktree: objectstack-issue-37773-rp
    Domain: domain:ui
    Seat: repo:objectstack@os-support-ai
    File surface: ui/packages/app-shell/src/hooks/useRecordApprovals.ts, ui/packages/app-shell/src/views/RecordDetailView.tsx, ui/packages/app-shell/src/views/recordDeleteHeldByMaster.ts, ui/packages/app-shell/src/views/recordPagePayload.ts, ui/packages/types/src/data.ts, ui/packages/app-shell/src/views/RecordDetailView.recordPagePayload-27627.test.tsx, ui/packages/app-shell/src/views/RecordDetailView.harness.test.tsx, ui/packages/app-shell/src/console/__tests__/AppContent.editDialogApprovalLock-27138.test.tsx, ui/packages/i18n/src/locales/ (reason: two closed-lock keys in each of the 11 locale files) (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: "Model tier — no path-derived mandate"), effort: high (reason: carries out the seat ruling on one request per record-page open by moving the record page's lock read onto the page payload, with design judgment over the edit dialog's lock source)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code, objectstack (the record page reads the approvals-family lock for Edit and Delete: useRecordApprovals.ts) | none | every console user of an app declaring closedStates: a closed document's record page shows Edit and Delete and the server refusal is the first notice; reachable today
    Thread-read: 7330280533
    Premise: PR #38999 merged 2026-12-01T22:56Z (main 77d15643): the record page payload answers dataLock in its one request; the record page half on backup ca71605f still asked a second GET.
    Pre-claim lane: ui/** ⇒ domain:ui (file ownership only).
    Pre-claim deps: #38995 closed by PR #38999 (the only blocker, seat ruling 2026-12-01T19:02Z).
    Prior rulings read: ADR-0162 D4 and D9; the seat ruling that one request per record-page open is a published contract; check-prior-rulings.mjs: thread: none.
    Serial constraints cleared: check-handover.mjs --inflight on this surface: NO OVERLAP READ (one unread, #38415). #38997 (this zone) holds AppContent.tsx; untouched here.

  15. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-02T01:22Z · Done: PR #39011 merged at 2026-12-02T01:21Z (L1 ACCEPT 7331140596), the record-page half; the grid half merged in PR #38994. Clearing pm:dispatched and the assignee: nothing is in flight here. What is left of the console closed lock rides on #38996 (grid row menu greys Edit) and #38997 item 2 (the edit dialog's closed wording). Backup branch claude/issue-37773-record-page-half-wip is superseded and left for the maintainer to delete (ref deletion is refused from the container).

  16. removed
    pm:dispatched
    on Dec 2, 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:uipriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions