Repository navigation
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
维护者速读
你 11-21 21:59 定了「普通成员能删自己的评论」(只能删自己的,删不了别人的)。现在默认权限里成员没有删评论的权限,所以连自己的评论也删不了,评论栏里自己的评论「更多」只有「编辑」。这张卡在服务端加一个「只删自己的评论」的入口,做法照搬表情和个人视图已经用过的那一套;做好后评论栏给自己的评论加上「删除」。
Facts
- Found on the dev rig by the 评论(一)电脑:评论从「动态」页签拿出来,做成记录页和抽屉右侧的独立评论栏;对一条评论的操作收到一处 #36075 PR 2 thread (security service on, plain
org_member): a member deleting their own comment gets 403; explain shows theobject_crudlayer refuses, becausemember_defaultgrants nosys_commentdelete. Raw data inbuild-seat1/36075/pr2/floor/(owndelete-report.json) in the project folder. member_defaultcannot carry a delete bit (ADR-0090 D5). The reaction door (comment-reaction-routes.ts, ruling 6422861164) and the personal-view door (plugin-authpersonal-view-routes.ts) solved the same shape with the shared kitpackages/core/src/security/own-row-delete-routes.ts.- Seat-requested Fable review:
build-seat1/36075/pr2/fable-decisions.md, 问题三. - The console already gates Delete on the grant (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), so members see no refused button today, only no Delete.
What to do
- Add an own-row delete door for
sys_commenton the shared kit: the caller may delete a comment they authored, checked on the server; anyone else's comment is refused unless an existing grant already allows it (administrators, and the delete bit plus record edit path that feat(plugin-audit): a comment thread can be marked resolved and reopened #36104 /sys_comment_moderationalready define). - Decide and state in the PR what deleting a top-level comment with replies does (the review did not check it).
- Console: offer Delete on one's own comments through the door; keep others' rows as 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 left them.
- Tests on an org-bound rig with the security service on: a member deletes their own comment (2xx), another member's is refused, an admin is unchanged.
- Fix
content/docs/.../plugin-detail.mdxwording on Delete (L1-c nit 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) to the new behaviour.
Related: #36075, #36186 (the resolve door, same ruling comment), #36178.
Metadata
Metadata
Assignees
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-21T22:09Z · #36191, folded with #36186 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.objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage:
pm:dispatchedto seat 1 (as set); rationale: area:ux · Feature · an own-row delete door forsys_comment, so a member can delete their own comment and nobody else's (maintainer ruling 7069889899: 「普通成员能删自己的评论」);member_defaultcannot carry a delete bit (ADR-0090 D5); topic #36062 → p2 as filed · size S.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…