Repository navigation
Labels
area:uxbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
维护者速读
你 11-21 13:26 定了「能看记录的人都能把讨论标成已解决」(7063285032,#36071)。#36104 已合并,但普通成员给别人发起的讨论点已解决时,服务器仍然拒绝;只有管理员和发起人自己能标。原因是平台的默认底线规则:普通成员只能改自己创建的数据。#36178 的评论栏已改成只在服务器会答应时才显示 ✓,所以现在没人会看到点了被拒的按钮,但你定的规则对普通成员还没生效。这张卡把它在服务端落实。做法取决于你在座位里那张「能编辑记录的同事,可以改别人评论的文字吗?」卡的答案,所以等那张卡有答案再开工。
Facts
- Found by the L1-c review on PR feat(record-page): the comment panel resolves, reopens and filters threads and counts the unresolved ones; ✓ and Edit on others' comments appear only where the server admits them (#36075) #36178 (HOLD 7068026256) and confirmed on the dev rig with the security service on, plain
org_memberprincipals. A read-only member resolving another member's or an admin's thread gets 403PERMISSION_DENIEDonsys_comment; resolving their own gets 200. - Cause:
owner_only_writesinpackages/plugins/plugin-security/src/objects/default-permission-sets.ts(object: '*',operation: 'update',created_by == current_user.id, positionsorg_member). The pre-image check refuses the update before plugin-audit's resolution-only limb incomment-access-hooks.tsruns.sys_comment_moderationwidensdeleteonly, and its comment says widening the update limb is a separate decision. - feat(plugin-audit): a comment thread can be marked resolved and reopened #36104's acceptance tests ran on a rig with no security service, so they did not see the floor.
- RLS predicates choose rows, not columns, so a plain
updatetwin ofsys_comment_moderationwould also let members edit others' comment bodies (through the hook's dormant author-or-parent-editor limb). That is the open Sales question. - Seat-requested review with options, test list and risks:
build-seat1/36075/pr2/fable-decisions.mdin the project folder (问题一).
What to do (after the Sales answer)
- If record editors may NOT edit others' comments (recommended): add a dedicated resolve door that does only the resolution write (
is_resolved,resolved_by,resolved_at): it checks the caller can read the parent record, then writes for the caller. Leave the floor unchanged. - If record editors MAY edit others' comments: the one-line
sys_commentupdate twin ofsys_comment_moderationis enough. - Either way, test on an org-bound rig with the security service on: a member resolves and reopens another member's thread (200,
resolved_byis the caller), a member's body edit of another's comment is still refused (unless Sales widens it), and an admin is unchanged. - Correct feat(plugin-audit): a comment thread can be marked resolved and reopened #36104's unreleased changeset wording, which says anyone who can read the record may resolve.
- The console needs no change: PR feat(record-page): the comment panel resolves, reopens and filters threads and counts the unresolved ones; ✓ and Edit on others' comments appear only where the server admits them (#36075) #36178's explain probe offers ✓ on others' threads as soon as the server admits it. Fix the leftover jsdoc on
handleResolveCommentinRecordDetailView.tsx(still "whoever may comment on the record"), flagged S-D1 by the L2 delta on feat(record-page): the comment panel resolves, reopens and filters threads and counts the unresolved ones; ✓ and Edit on others' comments appear only where the server admits them (#36075) #36178.
Metadata
Metadata
Assignees
Labels
area:uxbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui(and the plugin-security permission floor) ·pm:queue; rationale: area:ux · Bug · the maintainer ruled that anyone who can read a record can mark its discussion resolved (7063285032), but after #36104 an ordinary member resolving another member's thread is refused 403 by theowner_only_writesfloor; the tests of #36104 ran without the security service; a plain update grant would also let members edit others' comment bodies, so the fix waits on an open maintainer question → p2 as filed · size S once answered. Topic #36062.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Maintainer ruling · 2026-11-21T22:01Z · comment write permissions found by the review of PR #36178 (reviewed by fable first,
build-seat1/36075/pr2/fable-decisions.mdin the project folder)At 2026-11-21T21:59Z the maintainer answered two seat decision cards:
is_resolved,resolved_by,resolved_at) after checking the caller can read the parent record, with theowner_only_writesfloor left as it is. The one-linesys_commentupdate twin is ruled out, because it would also let record editors rewrite others' comments. Tests must show a member's body edit of another member's comment is still refused.Ruling 7063285032 (any reader may resolve) stands and is what this card delivers.
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-21T22:08Z · #36186, folded with #36191 into one PR (two server-side comment doors, maintainer ruling 7069889899 on #36186).
Area: b1-CM (epic #36062)
Session:
session_01L6bhgUH1jEKbDzYRc4nghq(card thread)Account:
os-salesBranch: claude/project-thread-bvfzy8 (from main 6c7c6db)
File surface: plugin-audit comment routes beside the existing unreact door (two new doors and their census rows), the resolution stamp's attribution, the console's comment wiring in plugin-detail and app-shell
RecordDetailView.tsx(comment handlers only), a new affordance row, tests, docs, changeset.Container & model:
M, card thread,model: opus,effort: highClause-②: yes (widening): two new REST routes and a new affordance row.
Metadata-protocol: none
Premise (thread, file
build-seat1/36186-36191/premise-read.mdin the project folder): holds.Scope, the seat's reading:
PUT /api/v1/comments/:id/resolutiontakes only{resolved}; it admits a caller who can read the comment as themselves (ruling 7063285032: anyone who can see the record, which includes any external member who can read it), refuses a reply with 400, writes onlyis_resolvedthrough a system write, and stampsresolved_byas the caller. Theowner_only_writesfloor,sys_comment_moderationand the data route's resolve branch are unchanged; nosys_commentupdate twin (comment text stays author-only, ruling 7069889899). The console's ✓ always calls door A; the explain probe stays for editing others' comments only.DELETE /api/v1/comments/:idon the shared kitown-row-delete-routes.ts, owner columnauthor_id. Administrators keep the data route.DELETE_RESTRICTED) and the console offers no Delete there (Edit stays). The seat reads this as following the ruling, not a new choice: 「删不了别人的」 rules out cascading the replies away, and today'sset_nullwould rewrite other members' reply rows through a system write. Administrators are unchanged. Stated in the PR's 维护者速读.Resume-from: none
Fold-or-serial: folded: same epic, same plugin, same ruling, same rig tests; overlap only with feat(record-page): on a wide full page the details are pinned left beside the record's tabs; the right summary rail is retired (#35890) #36136 in another region of
RecordDetailView.tsx.overlap-check.mjsbefore each push.check-governed-merges --testexpected 0 of 13 governed; contract L2 at the face the final paths decide; L1 at L1-c. The PR carriesFixes #36186andFixes #36191.feat(comments): a member resolves any thread they can read and delete…
feat(record-page): on a phone the record's comments open as a page: t…