Skip to content

Approvals: an approver who may read the record only through the pending approval still sees an empty request page and an empty record page (follow-up of #39406) #39709

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

Context

Re-verification of the closed walkthrough cards on main at f7c60e5b86 (console rebuilt with pnpm console:build), zh-CN, showcase app plus a Studio-built repair app (设备报修). The approver 张经理 holds a permission set that grants no read on the repair-order object (shebei_bao_xiu_bao_xiu_dan). He is the pending approver of three requests on that object.

#39406 was closed by #39479 (ruling option E: draw the snapshot as served when the definition is withheld; show a notice only when no field was served). #39485 since then lets a pending approver read the record on the server.

What happens

  1. The approval request page is empty. 张经理 opens 审批中心 → 待我审批 → the 审批事项 cell of 「传送带跑偏」 (/apps/<app>/sys_approval_request/record/areq_…). The header (流程, 状态, 提交人) and the right-hand 审批进度 / 审批动态 cards render. The left pane, where the submitted record belongs, is blank: no fields and no notice.
  2. The record page is empty too. Clicking the record cell of the same row opens /apps/<app>/shebei_bao_xiu_bao_xiu_dan/record/<id>. The title reads 「报修单 FyNoRooU」 (object label plus id, not the record name), and the details pane shows only a collapsed 系统信息 section.
  3. The server does serve the data. For the same session:
    • GET /api/v1/approvals/requests/<id> returns payload with every field (name, shebei_xinghao, guzhang_miaoshu, jinji_chengdu, yu_gu_feiyong, …), payload_labels in Chinese, and viewer.can_act: true.
    • GET /api/v1/data/shebei_bao_xiu_bao_xiu_dan/<id> returns the full row (the Approver without object read cannot open the live record or attachments under review #39485 read through the pending approval).
    • GET /api/v1/meta/object/shebei_bao_xiu_bao_xiu_dan returns the definition with its 17 fields.
    • GET /api/v1/auth/me/permissions gives him no allowRead on the object.

So he still approves 2600 元 of repair cost without seeing what he approves, which is the situation #39406 set out to end.

Cause (read from source)

ui/packages/app-shell/src/views/approval-decision/SubmittedRecord.tsx around lines 335–352:

  • Option E's served-snapshot branch runs only when objectDef === null, that is, when the definition is withheld.
  • Here the definition is served, so the declared branch runs. withoutDeniedFields(payload, perms, target) then drops every key, because the client permission set says no read on the object.
  • noFieldAccess is computed from the payload, which has keys, so it is false. The section plan is empty and the card returns null (line ~573): no fields, no notice.

The record page has the same shape. The record loads, but the client-side permission gate hides every field.

A related wording mismatch

The access explanation behind the sharing rule's 共享明细 (#39419) gives 张经理 an object_crud verdict of "grants" on the two records he is pending approver for, which comes from the approval read filter. The detail text of the same verdict says no permission set grants read. The verdict is right, but the sentence explaining it is not. It should name the approval read path, for example "may read: pending approver on request …".

Expected

  • The approval request page shows the submitted fields to a pending approver whose read comes from the approval. That means the payload the server already redacted per reader, under the labels the server sent. It should not filter the payload again by the client's object-read flag.
  • If a field set really is empty for the reader, the notice from fix(app-shell): tell an approver who may read none of the submitted fields, instead of an empty pane #39479 appears instead of a blank pane.
  • Decide whether the record page should honour the same approval read (the server already returns the row), or say why it shows nothing.
  • The explain text names the approval read path when that is what grants read.

Repro

  1. Showcase on main. Create an object and an approval flow whose approver is the submitter's manager (上级). Give the manager a permission set without read on the object.
  2. Submit a record as an engineer. Sign in as the manager and open the request from 审批中心.

Related: #39406, #39479, #39485.

Activity

  1. added
    bug
    priority:p1
    domain:ui
    area:workflow
    on Dec 4, 2026
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:workflow · domain:ui · Bug · p1 · pm:queue · size M, touched 2026-12-04T14:23Z. Rationale: an approver whose only read on the record comes through the pending approval sees an empty request page, so the approval cannot be decided from the console. A core workflow feature is Broken with no workaround for that role, so p1 as filed. It is a denial, not an overreach, so it is not a security card. Issue type set to Bug.
    Grade: p1 · pm:queue · size M · claimable when pm:queue.

  3. added
    pm:queue
    on Dec 4, 2026
  4. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE

    Claim: PM loop round 1 · 2026-12-04T15:48Z
    Session: session_01L9qibvMXrDPhCt3pGziYWE
    Account: os-tesla
    Area: ot-flow
    Branch: claude/issue-39709-wip
    Worktree: objectstack-issue-39709
    Domain: domain:ui
    Seat: repo:objectstack@os-tesla
    Source: the maintainer (Tesla), 2026-12-04T15:09:11Z, verbatim 「当前任务完成后,你只接各区 p1 卡」; seat granted the slot (seat-wide development 4).
    File surface: ui/packages/app-shell/src/views/approval-decision/SubmittedRecord.tsx and its tests beside it; packages/plugins/plugin-security/src/explain-engine.ts (the object_crud verdict's detail text only) and its tests; one changeset. Stop on breach; explain in the report. ⛔ Not in this claim: the record page (/<object>/record/<id>) and the client permission gate behind it — forked to the decision thread (see Scope); the spec package; any server read path.
    Scope: (1) the request page draws the payload the server already redacted per reader, under the server's labels, to a pending approver whose read comes from the approval — not re-filtered by the client's object-read flag; the #39479 notice when the served field set is truly empty. (2) The explain detail names the approval read path when that is what grants read. (3) Record page: NOT built here; the question goes to the decision thread.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: #39479 (ruling E, record 7399225992 on #39406) implemented the served-snapshot branch only for a withheld definition (SubmittedRecord.tsx:342 objectDef === null); with the definition served, :346 re-filters by the client object-read flag and :350 computes noFieldAccess from the unfiltered payload. Dev confirms by git log -S.
    Thread-read: 7414268988
    Premise: holds on origin/main 4eef1f5 (lines above read). Red test first on main (a served definition, no client object read, a served payload ⇒ blank pane); green on main ⇒ fork, build nothing.
    Pre-claim lane: area:workflow · domain:ui; stays in this seat.
    Pre-claim deps: none open. #39485 (server read through the pending approval) merged.
    Prior rulings read: 7399225992 (#39406 ruling E: draw the snapshot as served; notice only when no field was served). check-prior-rulings.mjs --card 39709: ADR candidates named (ADR-0162 D8, ADR-0044 D1, ADR-0142 D9, ADR-0155 D1), none on this client re-filter.
    Serial constraints cleared: check-handover.mjs --inflight over both files reads no overlap; the two unread surfaces are area:fleet skills cards. No #39410 body line or comment names SubmittedRecord.tsx, approval-decision or this card.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE
    os-dev-report

    {
     "issue": 39709,
     "status": "done",
     "branch": "claude/issue-39709-wip",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39736",
     "session": "session_01L9qibvMXrDPhCt3pGziYWE",
     "container_and_model": "`M`, `mode:subagent`, `model: default (dispatch-gates --tier: no path-derived mandate)`, `effort: high` (as dispatched; served tier not separately readable from inside a subagent)",
     "premise_still_valid": true,
     "summary": "(1) Request page: in useSubmittedRecord, when the reader's permissions grant no read of the object (readThroughApproval, the same predicate the withheld-definition branch already used), the declared face now draws the snapshot and the current row as served instead of re-filtering them with withoutDeniedFields; the server already redacts the snapshot per reader by field (resolveReadableSnapshotFields: read projection intersected with queryable fields) and the data API serves the current row the same way. With object read the client field filter still applies. noFieldAccess is now computed after the filter (no served field left, or the filter withheld something and the plan draws nothing), so a pane narrowed to nothing shows the ruling-E notice, never a blank pane; case 5 of the #39406 block pinned that blank pane and now asserts the notice. Labels come from the served definition (the source payload_labels is derived from), keeping typed cells and sections. (2) explain-engine object_crud detail for a pending-approver grant now opens with the grant (read on X is granted via approval request N ... ) and states the permission-set denial second. (3) Record page not built; measurement in open_questions. PR is Part of, not a closing reference, because the card's Expected list keeps the record-page decision open.",
     "tests": "Red on main first (tests committed before the fix, e4fcb2ecb3 + 64090235d5 on base 3191f8fc0e): pnpm --dir ui exec vitest run .../ApprovalDecisionPanel.noReadableFields-39406.test.tsx -> Tests 4 failed | 8 passed (12) [case 5 + three new definition-served/no-object-read cases]; pnpm --filter @objectstack/plugin-security exec vitest run src/pending-approver-read-admission.test.ts -> 2 failed | 12 passed (AssertionError: No resolved permission set grants read on 'qa_open_order'; ...). Green at HEAD fef22768d2: approval-decision dir Test Files 11 passed, Tests 119 passed; the #39406/#39709 harness 14 passed; plugin-security full suite Test Files 294 passed, Tests 7461 passed | 52 skipped; plugin-security typecheck exit 0. Ablation (scripts/ablation-replace.mjs, anchor hit x1, restored blob == HEAD 1a5db719f398, git diff HEAD empty) of the withheld-and-draws-nothing arm of noFieldAccess: exactly its pin red, 1 failed | 13 passed. No dist involved (tests import the source by relative path).",
     "gates": "Local, at HEAD fef22768d2: dispatch-gates --commands derived 75 families; 68 ran exit 0; 7 NOT-MEASURED: check-plugin-teardown-shape --self-test (exit 3, shallow-clone fixture), check:dual-build-cjs-loads (exit 3, unbuilt workspace dist), check:i18n (exit 3, CLI not built), pnpm --dir ui exec vitest run scripts/ (exit 124, timeout 280s), check:query-options-erasure, check:slot-lookup, check:type-check-debt (exit 124, timeout 200s); --ran reconciliation: 75 accounted, 68 run, 7 NOT-MEASURED, 0 UNRUN. ui check:new-line-citations: 0 new citations. eslint on the 4 changed source/test files exit 0. app-shell tsc not measured locally (needs built object-ui declarations). CI on the PR head fef22768d2, all 65 check-runs completed, none red: Lint & Repo Gates=success, TypeScript Type Check=success, Test Core=success (12/12 shards success), Build Core=success, Governed Surface Queue Guard=success, Lint UI=success, Type Check UI=success, Test UI=success (16 shards success), Build & E2E UI=success, Live E2E UI=success, Dogfood Regression Gate=success, Check Changeset=success, PR-body guards=success, Lint scoped query-options erasure=success, Lint scoped slot lookup=success, Type Check debt ledger=success; Temporal Conformance=skipped (path-scheduled), dogfood battery opt-in=skipped.",
     "line_budget": "204 changed lines (+176 / -28) across 5 files, under the 3000 human-merge line; no skills/** touched, no byte ratchet involved",
     "files_changed": [
      ".changeset/39709-approver-served-snapshot.md",
      "packages/plugins/plugin-security/src/explain-engine.ts",
      "packages/plugins/plugin-security/src/pending-approver-read-admission.test.ts",
      "ui/packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.noReadableFields-39406.test.tsx",
      "ui/packages/app-shell/src/views/approval-decision/SubmittedRecord.tsx"
     ],
     "deviations": [
      "Branch name conflict, surfaced not resolved silently: os-dev.md (origin/main) reserves claude/issue-N-wip as the no-PR backup branch and forbids opening a PR from it; the claim (Branch line) and the dispatch name claude/issue-39709-wip as the working branch and ask for a PR from it. AGENTS.md (which outranks os-dev.md) has the executor stop on a claim-branch mismatch, so I kept the claim's branch and opened the PR from it.",
      "The explain pin lives in pending-approver-read-admission.test.ts (plugin-security's explain-through-plugin harness that already asserted this layer's detail), not explain-engine.test.ts; both are plugin-security tests beside explain-engine.ts.",
      "Explain detail keeps the substring No resolved permission set grants (second sentence) so the existing dogfood pin approval-snapshot-no-object-read-39406 (outside the file surface) keeps holding without an edit.",
      "Two local gate loops were moved to background by the harness after 590-600s; both finished inside this run and were read; no background process or monitor is left running.",
      "PR body labels for line addresses: card asked for file:line on the record page; ui/AGENTS.md #11 bans line addresses in GitHub bodies, so the PR body and this comment cite symbols; the final report alone adds lines read at 3191f8fc0e."
     ],
     "mcp_calls": "0",
     "api_writes": "2 relay writes (fleet-write): 1 pr_create (POST pulls + issue-assignees leg, PR #39736, read back identical 8570 bytes, assignee os-tesla), 1 os-dev-report issue comment on #39709 via post-stamped; plus git pushes of claude/issue-39709-wip (not REST)",
     "write_budget": "git push (branch probe + 5 commit pushes) · pr_create (draft, assignees os-tesla, no labels) · os-dev-report comment; no body edits, no label writes",
     "classifier_refusals": [],
     "open_questions": [
      {
       "question": "Record page /OBJECT/record/ID for a pending approver whose permission sets do not name the object: the server serves the row (pending approver read admission), but two client gates fail closed. app-shell RecordDetailView.tsx readableRow (withoutDeniedFields on the page record, every block reads that row; so the H1 falls back to object label + id) and plugin-detail DetailView.tsx gatedSchema memo (perms.checkField(object, field, 'read') filters every section field). Both read MePermissionsProvider checkField, which answers false for an authenticated reader whose /auth/me/permissions answer has no row for the object. Should the record page honour the approval read?",
       "options": [
        "A: mount ServerReadScope for the target object over the record page while the server admits the read (the console already does this for the two approval objects); reads become the server's, writes unchanged",
        "B: keep the record page as is and send the approver to the request page (hide or relabel the record link for this reader)",
        "C: have /auth/me/permissions report a per-record approval read (spec/contract change)"
       ],
       "recommendation": "A, because the server already confines the read to the vouched records and redacts by field, ServerReadScope exists for exactly this door shape, and it is a client-only change; B leaves a dead link; C is a contract change for one door"
      },
      {
       "question": "Same-shape wording on the delegated-administration branch (ADR-0090 D12): its object_crud detail also opens with No resolved permission set grants while the verdict grants. Reword it the same way?",
       "options": [
        "A: yes, one-line follow-up in plugin-security",
        "B: leave it"
       ],
       "recommendation": "A, cheap and removes the same misread; not done here because it is outside this card's scope"
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: none filed · the record-page gate is the card's own forked question (open_questions[0]); the delegated-administration wording is an acceptance note, carrier: zone ot-flow decision thread · noted, not filed"
     ]
    }
  7. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibwHwLPqS2dsjTpyXhw

    Decision check (PR #39736, report 7418855722): SETTLED by precedent, no maintainer card. The record page honours the approval read for a pending approver (rulings 6429330267 on #26180 and 7402324742 on #39485; #39709 is the ui follow-up the latter left unmeasured). A is taken only with its mount condition: the page's own object only, over that one record page only, and only when the row was served and the permissions answer grants no read. Writes, export and actions stay gated. Fork if the fix needs a permissions-endpoint change, a wider mount, or the client deciding who is an approver. B contradicts both rulings; C is a contract change (own card).

    #39709 · record page for a pending approver without object read — reading

    Served-tier: CONTRACT_REVIEW_TIER
    Analysed-by: session_01L9qibwHwLPqS2dsjTpyXhw

    Read at origin/main 3adf532 and PR #39736 head fef2276, 2026-12-04. Nothing was run in a browser; code and thread readings only.

    维护者速读

    • 问题:审批人没有这类单据的查看权限时,从审批里点开单据,页面只有编号、没有内容,虽然系统已经允许他看这一条。
    • 结论:这件事此前已经裁过两次(待审期间审批人可以打开这一条单据),不需要再裁;单据页照此显示即可。
    • 做法:单据页显示系统给出的内容,编辑、删除、导出照旧不放开,约 1 个小改动。
    • 不做:不把链接改指回审批页(与原裁决相反),不改权限查询接口(属于改协议,要另立卡)。

    Verdict

    SETTLED — A's direction: the record page honours the approval read. No new decision card. B contradicts two standing rulings; C is a protocol change, which the rules keep off a Bug card. What stays for the seat is execution, with the guardrails and the fork conditions below.

    One correction to A as worded in dev report 7418855722: the premise "ServerReadScope is keyed on the server's admission of this read" is not a property of the component. See "A's premise" below; A is sound only with the mount condition stated there.

    Authority

    1. Ruling 6429330267 on plugin-approvals: the approver a step waits on gets no read of the record it is about — "无法打开此记录" on the request they must decide #26180 (letter A, maintainer 「同意」, 2026-10-26): the pending approver 「may read the one record the request is about — no write, no children beyond what the record page reads for a reader」. The bound of the grant is defined by the record page. Same record: 「After it lands the console's hidden-link rule needs no change (the read now succeeds); a ui sub-card only if the request page needs one.」 The link stays and leads to a page that reads; a ui follow-up is named as execution, not as a further ruling.
    2. Ruling 7402324742 on Approver without object read cannot open the live record or attachments under review #39485 (maintainer tapped 「按原裁决补齐,开这一条单据」, 2026-12-04; option A of analysis 7399361545): 「while an approval step is pending, the people the landed grant names may read that one record, and its attachments, files and comments ... even without object read. Reads only. Confined to the vouched record ids. No export.」 The option row the maintainer chose reads: 「The manager opens the contract from the request, reads its current state, downloads the attached file, reads its comment thread.」 Its effort cell: 「A ui follow-up only if the request page's record link needs one: not measured.」 Approvals: an approver who may read the record only through the pending approval still sees an empty request page and an empty record page (follow-up of #39406) #39709 is that measurement.
    3. SKILL.md 〈升级与决策〉:
      • 「声明而未兑现是实现缺口,补实现或退役,⛔ 不在消费端收窄」. The server delivers the ruled read; the record page (a consumer) narrows it to nothing. That is an implementation gap, closed by building, not by re-asking.
      • 「裁决一次裁清:子问题、分叉与执行参数同笔裁定;⛔ 不另立决策卡,仅前提被证伪才回箱」. No premise of either ruling is falsified: the server read exists (PR fix(security): the pending approver reads the record under review without an object grant #39518), the request is pending, the row is served.
      • 「落卡与呈报必带 Governing text ... 选项与之冲突者非决策卡」. B conflicts with rulings 1 and 2.
      • 「协议为基准 ... 改协议、新增公开面另立卡,⛔ 不作 Bug 选项」. C changes what /auth/me/permissions answers; Approvals: an approver who may read the record only through the pending approval still sees an empty request page and an empty record page (follow-up of #39406) #39709 is a Bug card.
      • Meta-criterion ②: 「一个操作两个实现且行为不一致 ⇒ 带治理的一侧(权限闸、同意、去重、审计)胜出。另一侧改绑并删除,非对齐亦非双写」. "May this reader read this row" has the server's answer (governed: grant, admission, masking, explain) and the client's mirror of the permission sets. Rebinding the client read verdict to what the server served is A. Extending the map so the mirror agrees again is C, the "对齐" the criterion excludes.
    4. ADR-0124 (Accepted 2026-08-18, maintainer ruling on Record "server enforces, client is courtesy" as a real ADR decision — ~30 in-repo sites plus 9 in objectui cite it, and no ADR decides it #9628). D1: 「A client-side check ... is never what makes the rule true.」 D2's test: 「If deleting the client-side check would let an unentitled caller read data or land a write, then that check was never a courtesy」; here the data API refuses or strips before answering, so the two record-page gates are courtesy and relaxing them moves no boundary. D4: what the server tells the client 「is derived from the server's actual effective enforcement」 and a map reporting more than the server enforces is a defect. A per-object allowRead for a read confined to a few record ids would overstate (the client keys list, export and related-list affordances on that bit).
      • Honest limit: ADR-0124 does not by itself require A. D4 also says a client gate stricter than the server 「is a presentation choice and is permitted」. What removes the choice here is rulings 1 and 2 (the approver opens the record), not the ADR.
    5. Precedent, landed without a ruling of its own: ServerReadScope (ui/packages/permissions/src/ServerReadScope.tsx, objectui#13326 for objectui#13324, shipped here by Non-admin approvers get a blank approval request page since the console pin moved past objectui#12484 (18.1.0 release blocker) #25228 / PR chore(console): move the objectui pin cd14d8eeffe1 → 0d12e95361b2, past objectui#13326, so a non-admin approver sees the approval request page #25262). The maintainer decision on Non-admin approvers get a blank approval request page since the console pin moved past objectui#12484 (18.1.0 release blocker) #25228 (6342959981) was release sequencing (「wait for the objectui fix, then move the pin」), not a ruling on the mechanism. The mount's own text (ApprovalRecordReads in ui/apps/console/src/AppContent.tsx): 「⛔ The fix is not a read grant on either object: the data API stays closed to members」. The record page's gate describes itself as a mirror: readableRow 「leaves the row ObjectStack's FieldMasker already serves ... On a backend that strips denied fields the row is unchanged」. Approvals: an approver who may read the record only through the pending approval still sees an empty request page and an empty record page (follow-up of #39406) #39709 is the case where that sentence is false.
    6. Thread of Approvals: an approver who may read the record only through the pending approval still sees an empty request page and an empty record page (follow-up of #39406) #39709: no ruling comment (check-prior-rulings.mjs --card 39709 → thread: none). The claim (7416452759) forked the record page to the decision thread; this reading answers that fork.

    A's premise, verified

    Premise Reading
    The scope is keyed on the server's admission of this specific read No, not by itself. ServerReadScope answers check(object,'read') and checkField(object, field,'read') "allowed" for every use of the named objects beneath it. It holds no record id and asks the server nothing. Its documented mount rule is the safeguard: 「Mount it only over surfaces whose reads of objects all come back server-filtered」. The per-read keying must come from the mount condition (below).
    The server confines the read Yes. pendingApproverReadAdmission answers a scope id IN <vouched ids>, never a yes; the middleware ANDs it into the query; canReadObject, getReadFilter and explain ask the same judgment (PR #39518, six ablation legs in report 7404088460). Reads only (find, findOne, count, aggregate); export asks canExport, untouched.
    Field-level security still applies On the server, yes: step 4 of the authz middleware (maskOperationResult, one masker) runs after admission with the reader's own sets. An approver whose sets do not name the object has no field entries, so every field not explicitly hidden or masked is served; the maintainer was told this before ruling (analysis 7399361545, "Three things under A", second bullet). On the client, under the scope, the field read mirror is off entirely, explicit readable: false entries included; the page draws what was served. Gap: no test on main pins a hidden field staying stripped on the approval-admitted read (the #39485 dogfood fixture declares one field). Code reading only.
    Writes and actions stay gated Yes. The scope changes only the two read verdicts. create, update, delete, export, field write/create, getFieldPermissions, effectiveObjects (what current_user.can reads) keep the enclosing answer, which for an authenticated reader and an unnamed object is "no". Edit/Delete header gates read update/delete. The server refuses the write at the grant regardless.

    Why not B, why not C

    Execution (seat's call; no ruling needed)

    • Card: continue under Approvals: an approver who may read the record only through the pending approval still sees an empty request page and an empty record page (follow-up of #39406) #39709 (PR fix(approvals): draw the served snapshot to an approver whose read comes from the approval #39736 is Part of) by claim amendment, or one ui sub-card. Do not grow fix(approvals): draw the served snapshot to an approver whose read comes from the approval #39736, which is at L1-b. Ruling-ref: 7402324742 and 6429330267. Clause-②: no, Metadata-protocol: none.
    • Mount condition, the part that makes A true: the scope names only the page's own object, is mounted only over that record page, and only while both hold: the data read of this record id answered a row, and the loaded permissions answer grants no read on the object (the predicate PR fix(approvals): draw the served snapshot to an approver whose read comes from the approval #39736 already uses on the request page, readThroughApproval). A reader whose answer names the object keeps today's field mirror unchanged. Never app-wide, never over list pages, never for all objects.
    • The "grants no read" half is read from the enclosing provider, above the scope; beneath the scope the same question answers "allowed" by construction, so a predicate placed inside it (the request page's own, when an approval card is drawn on this page) sees a reader with read and strips nothing, which is consistent.
    • Key it on the server's answer, not on a client reading of the approval slate. Keying on "the row was served and the answer is silent" needs no approvals name list in the page.
    • Pins: red first (answer omits the object, row served ⇒ today no title and no fields); title and declared fields drawn after; Edit, Delete, inline edit and export stay absent; reader with a named object and a hidden field is unchanged; row not served (stranger, or the approver after deciding) ⇒ no scope, today's not-found state. ADR-0124 D5: one server-side pin that a hidden field is absent from the approval-admitted read and a stranger is refused.
    • Fork, build nothing if any of these turns out to be needed: a change to /auth/me/permissions or spec; the client deciding who is an approver; a mount wider than the one record page; any read beneath the scope that does not come back server-filtered.

    Not measured

    Prior rulings read: approver,record,page,read,client,permissions,gate,server → 380 hits; script-named ADRs are term matches, none on this question; read by content: ADR-0124 D1/D2/D4/D6, ADR-0090 D12, rulings 6429330267 (#26180), 7399225992 (#39406), 7402324742 (#39485), decision 6342959981 (#25228); thread: none; repo: objectstack-ai/objectstack

  8. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE

    Claim amendment · 2026-12-04T17:32Z
    PR 1 #39736 (request page + explain wording) is in the merge queue. The record-page question is settled by precedent in option A's direction: reading 7419067633 on this card (rulings 6429330267 on #26180, 7402324742 on #39485). PR 2 builds it.
    File surface (PR 2): ui/packages/app-shell/src/views/RecordDetailView.tsx and tests beside it, one changeset; if the mount must sit in ui/apps/console/src/AppContent.tsx or needs a change to ui/packages/permissions/src/ServerReadScope.tsx, the dev reports the file before editing.
    Conditions (from 7419067633): mount ServerReadScope for the page's own object only, over that one record page only, only when the row was served and the permissions answer grants no read; writes, export and actions stay gated; fork back on a permissions-endpoint change, a wider mount, or the client deciding who is an approver.
    Container & model (PR 2): M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
    Serial constraints cleared (PR 2): check-handover.mjs --inflight over RecordDetailView.tsx reads no overlap.

  9. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE
    os-dev-report

    {
      "issue": 39709,
      "status": "done",
      "branch": "claude/issue-39709-pr2",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39739",
      "session": "session_01L9qibvMXrDPhCt3pGziYWE",
      "premise_still_valid": true,
      "summary": "PR 2 of #39709 (record page). RecordDetailView now draws the served row when the row is held for the route AND the loaded permissions answer grants no read on the page's object: the page row bypasses the client field mirror (readableRow) and the page tree reads under ServerReadScope naming only the page's own object. Writes/export/actions, related-list selection (decided above the scope), drawers (rendered outside the page tree) and readers with read are unchanged. The scope element is always mounted with an empty object list otherwise, so the tree keeps its shape (a conditional wrapper would remount every block on each read/re-read). Base 3adf532be7; origin/main merged after #39736 landed (merge 21830fd672). Head 21830fd672d7da8f86b44c95d1dc6cbdda5d6ba0. No needs_decision: no edit to AppContent.tsx, ServerReadScope.tsx, the permissions endpoint or spec. Reviewer request NOT sent: os-dev.md rule 2 / fleet-write ops say the reviewer hand-off is the seat's after ACCEPT, which overrides the dispatch's ask (conflict noted in open_questions). Assignee os-tesla set by pr_create.",
      "tests": "Red first on 3adf532be7 (commit 65e526e52b): vitest -t approverServedRow on RecordDetailView.harness.test.tsx: 3 failed | 2 passed (AssertionError: expected 'Contract CT-1' to contain 'Supply contract'). After fix (e5347710ee, block trimmed to 4 pins): 4 passed. Ablations (restored via git checkout HEAD, porcelain empty): scope objects emptied -> 2 red (title drawn, 'Net 30 days' missing); row bypass removed -> 2 red ('Contract CT-1'); no-read guard removed -> named-reader CONTROL red ('Merger planned' drawn). Wider: vitest packages/app-shell/src/views/RecordDetailView (104 files) 905 passed; packages/app-shell/src/console + views/recordDrawerStack + views/approval-decision: 313 files 2724 passed; post-merge at 21830fd672: RecordDetailView.harness + approval-decision + RecordDetailView.approval*: 17 files 267 passed. pnpm --filter @object-ui/app-shell type-check (tsc --noEmit + tsconfig.test.json): VERDICT command-exit 0. NOT MEASURED: full @object-ui/app-shell suite (exceeds foreground limit), CI Test UI.",
      "gates": "dispatch-gates --commands at 21830fd672 (39 families), each run with exit captured before any pipe: 33 exit 0; 6 NOT-MEASURED (local timeout exit 124 on shared box, CI runs them): check-comment-mask-corpus, ui vitest scripts/, check:engine-double-contract, check:query-options-erasure, check:registry-log-declared, check:type-check-debt. --ran reconciliation: 39 derived, 33 run, 6 NOT-MEASURED, 0 UNRUN. check:nul-bytes exit 0, plus control-byte grep over the 3 changed files: no hit. PR check-runs not yet concluded at report time: NOT MEASURED (CI convergence is the PM's).",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/39739/assignees, one stroke, read-back identical 6917 bytes, assignee os-tesla); post-stamped os-dev-report comment on issue 39709 (POST /issues/39709/comments). Plus git push (not REST).",
      "classifier_refusals": [],
      "open_questions": [
        {
          "question": "The dispatch asked to request os-tesla's review; os-dev.md rule 2 and fleet-write ops (pr_request_reviewers) reserve the reviewer hand-off to the seat after ACCEPT. Not sent.",
          "options": [
            "A seat sends pr_request_reviewers after ACCEPT",
            "B dev sends it now"
          ],
          "recommendation": "A, because the standing file outranks the dispatch wording and the draft open summons nobody by design"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · server-side pin (ADR-0124 D5 item in reading 7419067633) that an FLS-hidden field stays stripped on the approval-admitted read and a stranger is refused: outside this PR's file surface; noted in PR Acceptance notes, not filed",
        "carrier: none · approver's record read $expand stays gated by the enclosing answer before the row arrives, so lookups draw ids for that reader; noted in Acceptance notes, not filed",
        "carrier: none · an authored page block listing the page's own object inside the scope would ask check() as allowed; the data API confines that read to vouched ids; noted, not filed"
      ]
    }
  10. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE

    Claim: PM loop round 1 (PR 2) · 2026-12-04T18:39Z
    Session: session_01L9qibvMXrDPhCt3pGziYWE
    Account: os-tesla
    Area: ot-flow
    Branch: claude/issue-39709-pr2
    Worktree: objectstack-issue-39709b
    Domain: domain:ui
    Seat: repo:objectstack@os-tesla
    Source: same card, same session as claim 7416452759; PR 1 #39736 merged. This claim records PR 2's branch (draft PR #39739, Fixes #39709) so the closing-target guard reads it. Scope, conditions and model are amendment 7419108254 unchanged.
    File surface: ui/packages/app-shell/src/views/RecordDetailView.tsx and tests beside it; one changeset.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high

  11. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE

    Claim amendment · 2026-12-04T18:53Z
    PR 2 #39739 widens by one test file, per L1-b REWORK 7421035995: the objectui#13324 control pins the pre-#39709 record-page rule, which this PR changes by ruling (reading 7419067633).
    File surface (PR 2, added): ui/apps/console/src/services/approvalRequestsDataSource.servedPageMemberPermissions-13324.test.tsx (rewrite the control for the new rule; the positive case stays; no skip, no delete).
    Serial constraints cleared (PR 2): check-handover.mjs --inflight over the added file reads no overlap (2 claims name no path; neither is in the console approval files).

  12. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE

    Done · 2026-12-04T19:49Z · PR 1 #39736 (request page + explain wording) and PR 2 #39739 (record page, merged 9aabb7e082) both merged; the card closed on PR 2's Fixes. pm:dispatched removed.
    Left for the seat (not filed): ApprovalRecordReads / serverReadsRecord overlap on the request page's own row (follow-up named in #39739 Acceptance notes); declared-action visible predicates now read the served row — filing-gate reach reading owed before any card (L1-b 7421866107); server-side FLS pin (ADR-0124 D5, reading 7419067633).

  13. removed
    pm:dispatched
    on Dec 4, 2026
  14. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

    Seat note: three leads from the zone's close-out (7422453251). They are not filed yet, because each needs a reach reading under the filing gate first.

    1. ApprovalRecordReads and serverReadsRecord overlap on the request page's own row (the follow-up named in fix(app-shell): the record page draws the record the server served to a pending approver with no object read #39739's Acceptance notes).
    2. Declared-action visible predicates now read the served row (L1-b 7421866107). Measure whether a pending approver sees an action they could not run. If anything widens what a reader can see or do, it goes the security-findings route, not a card.
    3. A server-side FLS pin for the approval read (ADR-0124 D5).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowbugdomain:uipriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions