Repository navigation
Labels
area:recordsBusiness objects, records, the views that show data, usable forms, searchdomain:serverDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #36062(专题:评论重做,维护者直派)。第一阶段。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。
维护者说过的(2026-11-21)
- 「列专题卡,分阶段处理」
- 「这个专题第一阶段你建议处理哪些功能」
- 协调席建议第一阶段拆 4 张(电脑评论栏、已解决、手机整页两层、几处小修),并问回复通知要不要提前一起做,维护者:「同意」
现状(主干 c00be39b74)
评论对象 sys_comment(packages/plugins/plugin-audit/src/objects/sys-comment.object.ts)有回复关系 parent_id、提到、已编辑标记,没有「已解决」。本机返回的评论数据字段:thread_id, object_name, record_id, parent_id, author_id, author_name, author_avatar_url, body, mentions, is_edited, edited_at。
参照(Attio,实测加文档,只参照行为)
一串评论点对勾标记已解决,从默认列表里消失,没有删除;筛选「显示已解决」能看到,标着谁解决的;再点一次恢复。有评论已解决、取消解决的事件。
要做的
- 第一层评论上加三项:是否已解决、解决人、解决时间。只有第一层评论(没有
parent_id的)能标记;标记的是这一串。 - 谁能标记和恢复:能在这条记录上发评论的人都可以。和发评论同一道权限,不另设。
- 解决人和解决时间由平台写,作者不能自己填。
- 回复不能单独标记已解决;往已解决的串里再发回复时,这一串自动恢复成未解决。
- 查询:能按「是否已解决」筛;能按「我参与的」筛(我发起的、我回复过的、提到我的串)。
- 给一条记录,能查出未解决的串数(界面的数字用)。
- 标记和恢复各写一条动态吗:不写。动态里只留系统对记录本身的改动。
不做的
- 不做界面(在「评论(一)」「评论(三)」卡)。
- 不做一批记录一次查未解决数(第二阶段)。
- 不改评论的读写权限规则。
验收
- 对一条第一层评论标记已解决:再读出来,是否已解决为真,解决人是当前用户,解决时间有值。
- 对一条回复标记:被拒绝。
- 没有这条记录评论权限的人标记:被拒绝。
- 在请求里自己填解决人:被忽略或拒绝,存下来的是当前用户。
- 往已解决的串里发一条回复:这一串变回未解决。
- 按已解决筛、按「我参与的」筛:结果正确,包括「只被提到、没发过言」的情况。
- 一条记录有 3 串评论、其中 1 串已解决:未解决数是 2。
- PR 正文列出新加的字段名和查询方式,供界面卡使用。
协调席自己加的(不是维护者原话)
- 第 2 项谁能标记;第 4 项回复自动恢复;第 7 项不写动态。
- 第 5 项「我参与的」包含哪三种。
没有核对的
- 字段加在评论对象上还是另设一个对象,由开发按现有做法定,在 PR 里说明。
- 旧数据默认都是未解决,没有评估需不需要迁移脚本。
Reader: 后端车道(packages/plugins/plugin-audit:objects/sys-comment.object.ts、comment-access-hooks.ts、audit-writers.ts)。
Metadata
Metadata
Assignees
Labels
area:recordsBusiness objects, records, the views that show data, usable forms, searchdomain:serverDomain 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
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server·pm:queue; rationale: area:records · Feature · comments (2) backend: a thread can be marked resolved and reopened, with filters for resolved and 「我参与的」; phase 1 of topic #36062 → p2 as set by the coordinator · size M.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-21T13:22Z · area b1-CM (epic #36062 phase 1; the maintainer took the epic for this seat on its decision card).
Area: b1-CM
Session:
session_01L6bhgUJ3ExTXMikbrPFNqD(card thread)Account:
os-salesBranch: claude/project-thread-5hdmxb
Seat:
repo:objectstack#1Domain:
domain:serverFile surface:
packages/plugins/plugin-audit/src/objects/sys-comment.object.ts(three fields),comment-access-hooks.ts(the update gate), the comment stamping and reply-reopens hooks besidestampCommentBodyEdit, the resolved filter and unresolved-thread count queries, tests, a@objectstack/plugin-auditpatch changeset. Nopackages/spec, no governed surface.Container & model:
M, card thread,model: opus,effort: highClause-②: yes (widening) (three new fields on
sys_comment; nothing removed; the seat runs the declaration-face L2)Metadata-protocol: none
Premise (thread, read on main
78f7160e, filebuild-seat1/36071/premise-read.mdin the project folder): holds;sys_commenthasparent_id, mentions and an edited flag, and no resolved state.Basis: card #36071; epic #36062.
Scope, the seat's reading:
is_resolved(default false, so no migration),resolved_byandresolved_at(readonly, stamped by the platform, client values dropped); top-level only, a reply refused with 400; a reply to a resolved thread reopens it; no activity entries (the comment's own audit rows stay, as ruled on #30213); the resolved filter and the unresolved-thread count as one SQL query each; field names and query shapes in the PR body for #36075.Two points wait on the maintainer and are not built until answered: (1) who may mark and unmark: the card's "same gate as posting" lets a reader of the record flip
is_resolvedon someone else's comment, a new narrow write; (2) "involving me": computed in phase 1 on the thread set the panel already loads, with the cross-record server query left to phase 2. Both were the coordinating seat's additions; the seat reviews them first and then asks the maintainer.Resume-from: none
Fold-or-serial: serial; no fold. #36074 edits the same plugin in parallel;
overlap-check.mjsbefore each push, and the second to land merges main. L1 at L1-a. The PR carriesFixes #36071.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Maintainer ruling · 2026-11-21T13:26Z · #36071 item 2 (who may mark a thread resolved and unresolve it)
The maintainer (os-sales) chose option A on the seat's decision card at 2026-11-21T13:25Z: anyone who can see the record may mark a thread resolved and unresolve it, the same gate as posting a comment. This is a deliberate, narrow permission widening: a reader may flip
is_resolvedon someone else's top-level comment. Every other field still needs the author or a record editor, the platform stamps who resolved it and when, and any reply reopens the thread. It was reviewed by fable before the card (build-seat1/36071/fable-permission-involved.mdin the project folder). The card's "no change to comment read/write rules" line is read as "no other change".The same review settled item 5 as an implementation choice with no ruling needed: "involving me" (started, replied, or mentioned) is computed in phase 1 on the thread set the comment panel already loads, with the rule stated in the PR body and tested. A cross-record server query is phase 2's to decide.
wip(plugin-audit): resolution gate, tests, translations (#36071)
test(plugin-audit): a resolving update keeps the stamp's resolver (#3…
chore(changeset): comment threads resolved (#36071)
fix(plugin-audit): spell the reopen write's object statically; census…
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUJ3ExTXMikbrPFNqD
os-dev-report
{ "issue": 36071, "status": "done", "branch": "claude/project-thread-5hdmxb", "pr": "https://github.com/objectstack-ai/objectstack/pull/36104", "session": "session_01L6bhgUJ3ExTXMikbrPFNqD", "premise_still_valid": true, "summary": "sys_comment gains is_resolved / resolved_by / resolved_at on the top-level comment of a thread. The platform stamps the resolver and time, refuses is_resolved on a reply (400), clears a client's resolution on create, and reopens a resolved thread when a reply is inserted. Per maintainer ruling record 7063285032 (option A) an update changing nothing but is_resolved is admitted for any reader of the record; every other change keeps the author-or-editor rule. 'Involving me' is the exported rule threadsInvolvingUser over the loaded thread set (no server query in phase 1); filter and count shapes are in the PR body for #36075.", "tests": "head 77b2fb8b: pnpm --filter @objectstack/plugin-audit test -> Test Files 106 passed (106), Tests 1761 passed (1761). New: comment-resolution.integration.test.ts (10), comment-resolution.test.ts, a new describe in comment-access-hooks.test.ts. Ablation via scripts/ablation-replace.mjs with the fix committed, restored with git diff HEAD empty: gate limb off 2 red; reopen off 1 red; reply refusal off 2 red; stamp off 3 red (tests import src, no dist leg).", "gates": "local: plugin-audit typecheck exit 0 (os-verify-lock VERDICT command-exit 0); check-i18n-bundles --filter=audit exit 0; check:tenant-audit-census exit 0 after regenerating plugin-audit.md; check:logger-receiver-detach exit 0 after fix; overlap-check VERDICT clean (main, #36098); check-governed-merges --test 0 governed. 72 derived commands run: red only check:dts-closure and check:dual-build-cjs-loads (PREREQUISITE NOT MET, need full build), check-plugin-teardown-shape --self-test (exit 3, shallow clone lacks pinned fixture), check:error-status-conformance (2 findings in service-storage/core/runtime, untouched files). CI: in_progress at report time.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 — fleet-write relay pr_create (objectstack-ai/objectstack#36104, assignees os-sales); this report comment via post-stamped", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #36062 · phase 2 cross-record 'involving me' query needs its own decision (reverse relation condition or participant list) · noted, not filed", "carrier: none · check:error-status-conformance reports VALIDATION_ERROR 403/422 producers in service-storage attachment-access-hooks.ts:216 and core artifact-packages.ts:164 / runtime artifact-collections.ts:216 on this base; not touched here · noted, not filed" ] }fix(plugin-audit): name the reply refusal's code so the status derive…
test(plugin-audit): type the resolution rig's query options rather th…
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUJ3ExTXMikbrPFNqD
os-dev-report amendment · 2026-11-21T14:25Z · PR #36104
Correction to the report above (comment 7063766421): its
gatesline and its secondout_of_scope_findingsentry are withdrawn.check:error-status-conformanceis green on main; the findings it printed on this branch were caused by this PR (a localconst codein the reply refusal, which the status deriver resolves by name across files), not by the files they were reported in. Nothing is to be filed from that entry.as anycasts on engine options removed;check:query-options-erasureholds the test surface at 236 (it had grown to 242).check:test-typecheckexit 0,check:tenant-audit-censusandcheck:logger-receiver-detachexit 0, overlap-check clean (main, feat(plugin-audit): a reply in a comment thread notifies the thread's starter and earlier repliers #36098). The PR body's readings are updated to match. CI on cf75b3f is the authority for the rest.fix(plugin-audit): refuse resolution on a reply only after the access…
chore(changeset): name the create-without-edit case for resolving (#3…
docs(changeset): leave the #36071 and #36075 notes as written and car…
feat(plugin-audit): a reply in a comment thread notifies the thread's…
feat(plugin-audit): a comment thread can be marked resolved and reope…
feat(record-page): a desktop comment panel beside the record, opened …
feat(record-page): the comment panel resolves, reopens and filters th…