Repository navigation
Description
立卡门类别:③ 维护者直派(专题父单)。Source: maintainer
thread · os-support-ai · session_01WGufzirjTJ1sVFGR5sBPSL
维护者 2026-12-02 原话(项目线程):「设计列表页本身整个对象的评论入口。和我讨论」……「用fable 分析,并立专题卡, p1」。
子卡已立(维护者 07:36Z「按推荐」),由席位专区 osa-comments 派发,并发 5(维护者「这个专题直接派发吧,并发5」「开一个专区派发」)。本卡本身不派发。
维护者速读
- 问题:列表页上看不出这一批记录里谁留了言、哪几串还没处理,只能一条条点进记录看;每天过列表的主管和销售每次都会碰到,行上也没有任何标记。
- 选项:做法一,服务端新增一个「按当前视图取评论串」的读取口,界面一次拿齐,约 7 个 PR;做法二,把「按评论所指记录的条件筛评论」做成人人可写的通用查询语法,要先改一份已定的架构决定、多等一轮裁决,PR 数相近;做法三,界面自己分批去拼,记录一多就不全或变慢,约 4 个 PR。
- 推荐做法一:权限和视图条件都在数据库里一次算完,数据再多也不截断、不漏权限,而且不动已经定下来的查询规则。
- 不定会怎样:只有「行上小圆点」这一张能先做,右上角入口、右侧评论栏和手机页都得等这个读取口定下来。
已经定下来的(维护者 2026-12-02 在项目线程里逐条确认)
- 列表页顶栏右上角一个评论图标,和「分享」类按钮放在一组;第一版图标上不带数字。
- 点开后右侧出现一栏,把列表挤窄,不盖住内容;栏头是「评论」、筛选、关闭。
- 范围是当前视图筛出来的记录上的评论(不是整个对象),且只含看的人有权看的。只按 SQL 数据源做——维护者:「不考虑 MongoDB 和 OData」,那两种数据源上照引擎现有规则拒绝,不写退回方案。
- 每一串评论一张卡片,最新的在上:记录图标和名称(点名称打开那条记录)、作者和日期、第一条评论(@ 高亮)、「N 条回复」和回复人头像。
- 点卡片或「N 条回复」在栏里展开整串。栏里能看、回复、解决和重新打开、加表情、编辑删除自己的(管理员照记录页现有规则)。不能写新的顶层评论——维护者:「在列表页点开能看到评论,也可以回复评论等操作,但是不能写新评论」。
- 筛选两个开关:「显示已解决的评论」(默认关,即默认只看未解决)和「只看我的评论串」(我发起的、我回复过的、@ 了我的)。
- 表格行上有评论的记录,名称后面一个小圆点;看板卡片继续显示评论数(已有)。
- 对象关了讨论(
enable.feeds为 false)就没有这个入口。 - 不做:挂在列表、对象或视图本身的评论(不新增挂载点);Twenty 那种可关联多条记录的备注。
参照:Attio 的视图右上角评论按钮打开「这个视图里所有评论」的汇总,筛选是「显示已解决」「只看我的串」,表格里有评论的记录名后有圆点;Attio 的评论只挂在记录或列表条目上,没有挂在列表本身的。维护者在线程里贴了两张 Attio 截图作参照。Twenty 的列表页没有评论或备注入口。
这张卡从哪来
- 已关的评论专题 专题:评论重做——从「动态」页签里拿出来做成独立的评论栏,记录页、抽屉、列表共用;补「已解决」、回复通知、列表里的评论入口(分三个阶段) #36062 第二阶段第 12 条就是它(「列表页右上角评论图标打开当前视图全部记录的未解决评论」,有效果图四),当时没有立卡,专题在 2026-11-26 收口时关了。
- 外壳右上角按钮组里给列表页留了评论的位置,至今空着。
- 相关但不重叠:专题:任务、备注做成平台内置对象,可挂到任意记录;评论补短板(暂停,先不拆卡) #35947(任务、备注做成内置对象,暂停中);右侧预览里去掉评论按钮和评论面板:评论只在记录整页里(Attio 的预览也没有评论) #36225(右侧预览不显示评论,本卡不改它)。
里程碑(子卡已立,2026-12-02)
| 里程碑 | 子卡(暂名) | 层 | 大小 | 先后 |
|---|---|---|---|---|
| M1 打底 | #39080 S1 引擎:按「所指记录满足某条件」读评论的内部入口 | 服务端 | M | 可立即开工 |
| M1 打底 | #39081 S2 评论串记下参与人,「只看我的」一次查完(含存量回填) | 服务端 | M | 可立即开工 |
| M1 打底 | #39082 U1 表格行上有未解决评论的记录显示圆点 | 界面 | S | 可立即开工 |
| M1 打底 | #39083 U2 把记录页的评论读写抽成别的页面也能用的一块(行为不变) | 界面 | L | 可立即开工 |
| M2 读取口 | #39084 S3 一次读出当前视图记录上的评论串(协议 + 服务端 + SDK) | 服务端 | L | 等 S1、S2 |
| M3 桌面 | #39085 U3 列表页右上角评论图标和右侧评论栏 | 界面 | L | 等 S3、U2、U1 |
| M4 手机 | #39086 U4 手机列表页:评论图标打开整页评论串 | 界面 | M | 等 U3 |
M1 四张改的文件互不相交,可以并行。
待定(维护者答完再立子卡;每条附推荐)
- 服务端的形状:做一个专门的「按视图取评论串」读取口(推荐),还是做成人人可写的通用查询语法(要先改已定的架构决定)?
- 「只看我的」:在评论串上存参与人(推荐;多一张服务端卡和一次存量回填),还是每次现算(评论多的人会被 1000 条上限截断)?
- 「当前视图」包含什么:推荐按「列表此刻的筛选」算(保存的筛选加上看的人临时加的筛选),搜索框第一版不算;只按保存的视图筛选也可以。
- 行上圆点:推荐只在有未解决评论串时显示、对开了讨论的对象一律显示、第一版只是标记点了不做事。
- 哪些列表页:推荐第一版只做对象的列表视图;不带视图的数据页和界面里的列表页以后跟进。
- 架构记录:S1 给引擎的子查询机制加第二个内部用途,请求能写的东西不变。推荐在 S1 的 PR 里给现有决定加一条补记;如果你要先手批修订,S1、S3、U3、U4 等它,S2、U1、U2 照常。
- 手机页:推荐放在本专题最后做,定 p2。
查重
评论 列表 in:title、comments panel list view、view comments feed、list page comments、comments across records、Attio comments(objectstack,含已关)→ 没有 open 卡覆盖列表评论入口、按视图读评论串、参与人或行上圆点;命中的相关卡是 #36062(已关,出处)、#35947(open,暂停的兄弟专题)、#34157(open p3,子查询的 1000 条上限,S1 会碰到)、#36469(open,托管环境表情撤不回,评论栏里也会出现)。
动手的读者:维护者答完待定后,由本线程逐张立子卡挂到本卡下,各子卡进 area:data(手机页 area:ux)车道队列。
英文分析(评审与开发用)
Served-tier: CONTRACT_REVIEW_TIER
Analysed-by: isolated analysis sub-agent of session_01WGufzirjTJ1sVFGR5sBPSL
Tree read: origin/main at 78148226fd (2026-12-02). Nothing was edited, nothing was written to GitHub, and
no server was booted: every runtime claim below is read from code, not measured. Where that matters it is said
again in "Risks and confidence gaps".
1. Background
The comments redo (closed topic #36062, phases 1 and part of 2) moved a record's comments out of the 动态 stream
into a panel of their own: desktop panel #36075 (PR #36114, #36178), phone page #36076 (PR #36208), resolution
#36071, reply notices #36074 (PR #36098), the two comment doors #36186/#36191 (PR #36200), previews without
comments #36225 (PR #36406), kanban card counts #36423 (PR #37667), deep link #36410. Item 12 of that topic —
"the list page's top-right comments icon opens the unresolved comments of every record in the current view" — and
its approved mock (效果图四) were never carded; the topic was closed in the one-level-topics clean-up
(close-out comment of 2026-11-26). This epic is that item, with the maintainer's eight rulings as given.
Two things already anticipate it in the tree:
- The shell's top-right button group has a comments slot that nothing fills on a list:
ui/packages/app-shell/src/layout/shellPageActionsSlot.ts:24-29— "The comments entry, first in the group:
handed by the list and record pages only, nothing until the comments work puts its icon here." - The comment read gate is already one statement over a whole object:
comment-access-hooks.ts:1269-1280
writes one{ object_name: P, record_id: { $in: ReadableIds.of(P) } }branch per parent and prunes to the
parents the read names (parent-record-read-gate.ts:37-44).
What is missing is the middle: a read that says "comments whose record the view filter selects". record_id
is a text column (sys-comment.object.ts:240-247), not a lookup, so no request can express it today.
2. Governing text
Searches run:
node scripts/pm/check-prior-rulings.mjs --terms sys_comment,comments,feeds,readable-ids
grep -l -i 'sys_comment\|comment' docs/adr/*.md ui/docs/adr/*.md
grep -n 'SQL first' AGENTS.md ; sed -n 781,852p AGENTS.md # route & surface ownership
grep -rn 'referenceVia' packages --include=*.ts -l
grep -rn 'admitReadableIds' packages/objectql/src
Text that binds this epic (quoted):
- ADR-0139 D1 (
docs/adr/0139-…md:140-161): "No request can spell it. … The leaf adds no operator to
FieldOperatorsSchema… so no author — human or AI — gains a spelling" and "⛔ No second leaf, noEXISTS, no
correlated form." Amendment notes there: a new leaf "still needs a Tier H record of its own". - ADR-0139 status, amended 2026-11-17 (
:31-43): "driver-sql(every dialect …) anddriver-memory
declare it, MongoDB and OData do not … A nested-relation condition beneath a single-valued relation on a read
verb is refused up front on a driver without it,INVALID_FILTER/ 400". This is "the engine's existing
refusal" of ruling 3. - AGENTS.md Prime Directive 5 (
AGENTS.md:203-205): "SQL first: build a query capability at its fastest
SQL shape (JOIN or semi-join, aggregates in the database); memory and mongo refuse what they cannot run with a
stable code; ⛔ never a slower path built only for parity". - AGENTS.md Route & surface ownership (
AGENTS.md:781-852): rule 1 "One route, one owner", rule 4
"Advertise only what is mounted, and mount everything advertised", rule 5 "A new REST route declares its CLOSED
query-parameter set on the day it lands". - Relation semi-join (
packages/objectql/src/relation-semi-join.ts:10-32): the related read is "handed to
the engine's ownfindon the related object, under the CALLER's execution context … Only the last step
differs: at the driver call, the read is PLANNED, not executed", and its capturedwherebecomes the scope of
aReadableIdsleaf. Its "Forgery" section (:92-98): the planned scope lives in a module-privateWeakMap. - Nested-relation grammar (
relation-filter-lowering.ts:3-21,no-operator-object-door.ts:233-238): the
served form is "a plain object with no$-operator key beneath a relation field"; "The reverse form (a parent
filtered by its children) is not served here at all." - Comment doors (
comment-routes.ts:29-60): resolve/reopen and own-comment delete are doors because of the
row floor; "Neither door changes what the data door answers" (ruling records 7063285032, 7069889899). ui/AGENTS.md§1 product-neutral renderer (ADR-0060 underui/docs/adr/): "⛔ Never a widget, dialog,
hook or i18n namespace named for the product that needed it"; Convert to monorepo with scoped packages #8 UI state: addressable → URL, preference →
localStorage, ephemeral → component state; Migrate documentation site to Fumadocs with monorepo structure and shared content #11 a card body cites by content, neverpath:line.- Record page payload precedent (
packages/spec/src/api/record-page.zod.ts:10-66): "Every part is the
answer of the read it replaces, asked as the same caller".
No ADR or ruling was found that already decides "comments across the records of a view"; the closest text is
topic #36062's phase-2 items 10–12 (direction only).
3. Protocol / contract statement
- Metadata protocol (what an author can write): unchanged in the recommended design. No view key, no object
key, no field type. (kanban.cardFooter.commentsstays as is; the grid dot takes no key — see Q4.) - Published contracts that do change (recommended option):
- a new REST read route and its request/response schema in
packages/spec/src/api/(published schema ⇒
contract-tier review), a route-ledger row, an SDK method; - one new public member on the published
@objectstack/objectqlengine (in-process only, no wire spelling); - one new platform-written column on
sys_comment(visible through the data API) and oneos migrate
subcommand to backfill it; - new host props on published
@object-ui/*components and new locale keys (both are public surface under
execution-duties.md"公开面 = 包构建后的入口声明所达 … 语言包键已发布").
- a new REST read route and its request/response schema in
- No new error code is needed if the door reuses what exists (
VALIDATION_ERROR,INVALID_FILTER,
PERMISSION_DENIED,FEEDS_DISABLED, the object read's own refusal) — soERROR_CODE_LEDGERis untouched. A
dev who finds one is needed files it as its own card.
4. Premises, each with a re-check command
| # | Premise | Re-check |
|---|---|---|
| P1 | sys_comment.record_id / object_name are platform-stamped text, indexed as a pair; no referenceVia on them |
grep -n "record_id: Field.text|object_name: Field.text|fields: \['object_name'" packages/plugins/plugin-audit/src/objects/sys-comment.object.ts |
| P2 | The read gate ORs one ReadableIds leaf per parent and prunes to parents the read names |
sed -n 1269,1296p packages/plugins/plugin-audit/src/comment-access-hooks.ts; sed -n 37,44p packages/plugins/plugin-audit/src/parent-record-read-gate.ts |
| P3 | The engine can turn "a caller-run read of P" into one subquery (planned read → leaf), with an id-read fallback capped at 1000 and an up-front refusal on drivers without the bit | sed -n 1,100p packages/objectql/src/relation-semi-join.ts; sed -n 216,290p packages/objectql/src/engine-query-lowering.ts |
| P4 | Only driver-sql and driver-memory declare readableIdsLeaf |
grep -rn 'readableIdsLeaf' packages/drivers/*/src/*.ts | grep -v test |
| P5 | The engine's own filter door admits a branded leaf in an in-process where on read verbs; the planning symbol is not exported from the package |
sed -n 110,145p packages/objectql/src/filter-comparand-shape.ts; grep -n 'RELATION_SCOPE_PLAN' packages/objectql/src/relation-semi-join.ts |
| P6 | A nested-relation condition cannot carry a general filter (no $and/$or at its top) |
sed -n 228,238p packages/objectql/src/no-operator-object-door.ts |
| P7 | Replies may nest (server walks up to 16 hops); the console writes replies under the thread's first comment; no stored root pointer and no stored participants | grep -n 'THREAD_ROOT_MAX_HOPS' packages/plugins/plugin-audit/src/comment-resolution.ts; grep -n 'onAddReply(root.id' ui/packages/plugin-detail/src/comments/CommentThread.tsx; grep -n 'readThreadParticipants' packages/plugins/plugin-audit/src/audit-writers.ts |
| P8 | "Involving me" exists only as an in-memory rule over one record's loaded rows | sed -n 279,320p packages/plugins/plugin-audit/src/comment-resolution.ts; grep -n 'threadInvolvesViewer' -A6 ui/packages/plugin-detail/src/comments/commentThreads.ts |
| P9 | The record page's comment reads, writes and verdicts live inline in one 7,021-line view | wc -l ui/packages/app-shell/src/views/RecordDetailView.tsx; grep -n 'const handle\(AddReply|EditComment|DeleteComment|ResolveComment|ToggleReaction\)|const moderatesComments|const updatesOthersComments' ui/packages/app-shell/src/views/RecordDetailView.tsx |
| P10 | The panel pieces read one record's discussion from a context, and hide the composer when no add-comment handler is given | grep -n 'useRecordComments|onAddComment &&' ui/packages/plugin-detail/src/comments/CommentsPanel.tsx |
| P11 | The list header already draws the shell group but passes it no comments entry | grep -n 'renderShellGroup' ui/packages/app-shell/src/layout/PageHeader.tsx; sed -n 23,30p ui/packages/app-shell/src/layout/shellPageActionsSlot.ts |
| P12 | The console list page is ObjectView on :objectName and :objectName/view/:viewId; its content row already holds squeeze-in right panels |
sed -n 1701,1709p ui/packages/app-shell/src/console/AppContent.tsx; sed -n 1694,1720p ui/packages/app-shell/src/views/ObjectView.tsx |
| P13 | The list reports its read's params to a host only for a paged grid; a lane-paged board and a grouped grid answer null |
grep -n 'surfaceDrawsFetchedRows =' -A2 ui/packages/plugin-list/src/ListView.tsx; grep -n 'const shownFindParams' ui/packages/plugin-list/src/ListView.tsx |
| P14 | One definition builds the list's effective filter (view filter + filter panel + user filters + queue sitting); search is a separate param | grep -n 'export function buildEffectiveFilter' -B30 ui/packages/plugin-list/src/ListView.tsx |
| P15 | A grouped per-record open-thread count read exists and the grid has a host adornment slot beside the row title | sed -n 78,90p ui/packages/plugin-detail/src/comments/recordCounts.ts; grep -n 'rowAdornment' ui/packages/plugin-grid/src/ObjectGrid.tsx ui/packages/app-shell/src/views/objectViewListRenderer.tsx |
| P16 | Comment doors are mounted by plugin-audit straight on the HTTP server and kept in their own ledger | sed -n 1,40p packages/plugins/plugin-audit/src/comment-route-ledger.ts |
| P17 | sys_comment is tenant-scoped like ordinary business objects (no tenancy opt-out) |
grep -n 'tenancy' packages/plugins/plugin-audit/src/objects/sys-comment.object.ts (expect no hit); sed -n 633,642p packages/objectql/src/engine-driver-options.ts |
5. The server read path
The one-sentence problem
A reader on a list wants "the discussions on the records I am looking at"; today the only honest ways to get them
are one read per record or a capped id list, and both break on a large view.
What the read must be
sys_comment rows where object_name = P, top-level, (unresolved unless asked), (involving me if asked), and
record_id IN (ids of P that pass the caller's read scope AND the view filter W) — ANDed with the existing gate —
newest first, paged. The inner set is exactly what relation-semi-join.ts already builds for a lookup field: the
caller-run read of P with condition W, planned, captured, compiled as one nested subquery. The only reason it
cannot be used today is that the outer column is a text pointer, not a declared relation, and that the planning
entry is private to the engine (P5).
Options × real cost × effort
| What is built | What the customer feels | Effort (lane · PRs · precedent) | |
|---|---|---|---|
| A — a comment-threads read door on an in-process engine primitive (recommended) | (1) objectql exposes "plan a caller-run read of P and hand back the leaf" to in-process callers; (2) plugin-audit serves POST /api/v1/comments/threads/query — body names the object and carries the list's own filter; the answer is one page of threads with record name, reply count and latest repliers; (3) "involving me" is a stored participant list on the thread's first comment |
One request per page of the panel; correct on a view of any size; the same refusals a list read gives; nothing new for metadata authors to learn | server · 3 PRs · precedents: PR #33652 (+1623/−223, the semi-join itself), PR #36200 (+1733/−122, two comment doors), PR #36098 (+804/−34, thread participants read) |
| B — make the pointer pair filterable in the public query grammar | Declare record_id as a referenceVia pointer and widen the nested-relation grammar so a request can write a condition on "the record this row points at", including $and/$or; the console assembles threads client-side in 3–4 reads |
Same result on screen, a little slower (3–4 round trips per page); every API and AI caller gains a new filter form on comments, activity, attachments | spec+server · 2–3 PRs + an ADR amendment first (ADR-0139 D1 and the #20802 grammar cut are both closed sets) · no precedent for a general filter under a relation key |
| C — the console pages through it itself | Read record ids of the view (capped at 1000) or walk comments newest-first and test each page against the view | Views over the cap get a refusal or an incomplete list; sparse views scan many pages; several requests per scroll | ui · 1 PR · no precedent; contradicts Prime Directive 5 |
Business reading: A is "a discussion feed is a product resource of its own" — the Attio threads API, Salesforce's
Chatter feed resources (separate from SOQL), the Dataverse timeline. B is "polymorphic parents are joinable in the
query language" — Salesforce SOQL's ParentId IN (SELECT Id FROM Opportunity WHERE …), Dataverse link-entity over
a polymorphic lookup. C is what a third-party script would do against today's API.
Recommendation: A
Judged on long-term soundness alone: two years out the platform still wants (i) one place that knows what a
"thread" is — its first comment, its reply count, who took part, whether it is resolved — because the record
page, the list, notifications and the assistant all ask that question, and (ii) the row-set half computed in the
database as the caller. A gives (i) as a door that owns the thread shape and (ii) by reusing the one mechanism the
engine already has, without adding anything a request can spell. B's generic join is attractive but it is the
exact thing ADR-0139 D1 closed ("no author gains a spelling"), it cannot carry a view filter without also
reopening the nested-condition grammar (P6), and it still leaves thread assembly and "involving me" unsolved on
the client. If the grammar is opened later by its own ADR, A's door collapses onto it with no wire change — A does
not foreclose B. C is not recommended at any phase: it is the slower path Prime Directive 5 forbids and it is
wrong above 1000 records.
Self-check: 只看①选 A;②③④ 是否翻转:否. Effort is within the same order for A and B once B's ADR round is
counted; no ≥3× gap to name.
Shape of A (for the spec card — a proposal, the card's dev confirms against the tree)
POST /api/v1/comments/threads/query — owner: plugin-audit, family comments (same registrar as the two
existing doors; no path under /data/:object/…, which is the REST package's and collides with :id).
Request body, strict (an unknown key is VALIDATION_ERROR / 400; no query parameter is read, and the handler
opens with the closed-set refusal for an empty set):
{ object: string, // the parent object's machine name
filter?: [the list read's own filter, the wire forms GET /data/:object accepts],
showResolved?: boolean, // default false ⇒ unresolved threads only
onlyMine?: boolean, // default false; threads the caller started, replied in, or is mentioned in
limit?: number, // 1..50, default 25
cursor?: string } // opaque keyset over (created_at desc, id desc)
Response:
{ threads: [{ comment: [the top-level sys_comment row, the fields the data door serves this caller],
record: { id, name }, // name by the ADR-0079 display-name chain, read as the caller
replyCount: number,
repliers: [{ id, name, avatarUrl }] }], // latest distinct, at most 3
nextCursor: string | null }
Server steps, every one as the caller's execution context, none as system:
- Resolve the caller as the existing doors do; anonymous ⇒ 401.
objectmust be registered, served by the data door (canServeApiOperation(enable,'get')), not
sys_comment, andenable.feeds !== false(else the existingFEEDS_DISABLED/ 403).- Run
filterthrough the same ingress the list read uses (array/object forms, comparand doors, tokens). - Ask the engine for the planned leaf of
find(P, { where: filter })under the caller (the new primitive). Its
own outcomes apply unchanged: one subquery where provable; the id read under the 1000 cap otherwise; refused
INVALID_FILTER/ 400 up front on a driver withoutreadableIdsLeaf(MongoDB, OData — ruling 3) and past the
cap;PERMISSION_DENIEDwhen the filter names a field the caller cannot read. engine.find('sys_comment', { where: { object_name: P, record_id: { $in: leaf }, parent_id: null, … }, orderBy created_at desc, id desc, limit + 1 }, callerCtx)— the comment read middleware ANDs its gate as on
any read.- For the page's threads: one grouped count of replies by
parent_id, one bounded read of their latest replies
(author columns only) for the faces, one read of P for the page's record ids (name fields only).
So a page costs one planned read (no driver call) plus four statements, constant in the size of the view.
Everything else the panel does uses doors that exist: replies and edits through the data door, resolve/reopen
and own-delete through the comment doors, reactions through sys_comment_reaction and the unreact door, the
expanded thread's rows through GET /data/sys_comment by thread_id.
"Only my threads" (ruling 6) needs a stored fact
The rule is "started, replied in, or mentioned in" (comment-resolution.ts:279-296). "Replied in" is a property
of other rows (the replies), so on a paged read it is a reverse semi-join — the form the grammar does not serve
(P6) and a fixed-read leaf would need a Tier H record of its own. Recommended: the thread's first comment carries
a platform-written participant list (author, every replier, everyone mentioned in any comment of the thread),
maintained in the same after-write path that today recomputes participants for reply notices
(audit-writers.ts, readThreadParticipants) and backfilled once, the way the parent pair was
(comment-parent-pair-backfill.ts). The filter is then a membership test on one column, one statement, and it
is correct for nested replies too. Mainstream modelling: Notion discussion followers, Linear/Slack thread
participants, Chatter's feed-item participants. The not-recommended alternative is an id read of the caller's
own replies under the 1000 cap, which fails for exactly the heaviest commenters (Q2).
6. UI landing points, per behaviour
"The record list page" in the console is ObjectView (ui/packages/app-shell/src/views/ObjectView.tsx), mounted
on :objectName and :objectName/view/:viewId (AppContent.tsx:1701-1709). ObjectDataPage (:objectName/data,
URL-filter surface with no saved view) and InterfaceListPage (a list interface page inside PageView) are
sibling list pages that share PageHeader; they are out of v1 (Q5).
| Ruling | Lands in | Reuse / generalise |
|---|---|---|
| 1 icon, no badge | PageHeader gains a pass-through for the shell group's comments entry (PageHeader.tsx:286-299 calls renderShellGroup?.({ assistantIconOnly }) today); ObjectViewPageHeader (objectViewPageHeader.tsx:487-527) hands it |
CommentsButton as is — count: null draws the icon alone (CommentsButton.tsx:14-16). The slot is already first in the group (ShellPageActions.tsx:289-310) |
| 2 right column that squeezes | A new flex child in ObjectView's content row (ObjectView.tsx:1694), beside MetadataPanel and the 280 px view-config wrapper, which already squeeze the list |
COMMENTS_PANEL_WIDTH (380) and the open/closed preference pattern of recordCommentsPanel.tsx:38-66 (its own storage key); header row with title, filter, ✕ is CommentsPanel's header (CommentsPanel.tsx:203-221) |
| 3 scope = current view's filter | ListView reports its effective filter to the host for every layout (today only a paged grid reports params, P13); host sends it to the door |
buildEffectiveFilter (ListView.tsx:1161) is the single definition the fetch and the export already share |
| 4 one card per thread | A feed list in plugin-detail/src/comments/: record line (object icon tile + record name link) above the existing collapsed-thread face |
CommentItem, latestRepliers + the 「N replies」 row of CommentThread.tsx, mention highlighting, commentTime.ts, ObjectIconTile |
| 4 name opens the record | The list's own record-open path (objectViewRecordNavigation.ts), so the view's navigation mode (drawer / page) decides |
no new navigation |
| 5 expand: read, reply, resolve, react, edit/delete | Mount the record's discussion for the expanded thread and draw CommentThread with it, with no add-comment handler |
Needs the record page's inline discussion logic (reads at RecordDetailView.tsx:3742-3870, handlers :4188-4610, verdicts :4519-4555, provider :6455-6500) extracted into one unit keyed by (object, record id) — its own card |
| 5 no new top-level comment | The feed never passes onAddComment; CommentsPanel already draws the composer only when it is given (CommentsPanel.tsx:225-233) |
UI-only restriction: the server still accepts a top-level comment through the data door, as on the record page |
| 6 filter menu | CommentsFilterMenu as is; the two toggles go to the door (showResolved, onlyMine) instead of filtering loaded rows |
CommentThreadFilter, DEFAULT_COMMENT_THREAD_FILTER |
| 7 grid dot | Host passes rowAdornment (already used for one case at objectViewListRenderer.tsx:1236, to be composed) drawing a dot when the record's open-thread count > 0 |
useRecordCounts (recordCounts.ts:108) over the rows onRowsChange reports; one grouped read per page, re-asked on the data-invalidation bus |
| 7 kanban | nothing | kanban.cardFooter.comments (PR #37667) |
| 8 feeds off | Gate the entry and the dot on objectDef.enable?.feeds !== false, the record page's own test (RecordDetailView.tsx:1391) |
— |
State, by ui/AGENTS.md #8: panel open/closed is a preference (localStorage, a key of its own so the record
page's choice is not changed by the list's); filter toggles and the expanded thread are ephemeral, as in the
record panel ("Held while the panel is open, never stored", CommentsPanel.tsx:48-49); the phone page is
addressable (URL). After a write in the panel the host announces it on the data-invalidation bus so the dots and
the kanban counts re-read (recordCounts.ts header).
Narrow desktop windows: ruling 2 says squeeze. Proposal: squeeze whenever the list keeps a usable width; where it
would not (a window under the record page's 1280 px threshold, recordCommentsPanel.tsx:20), fall back to the
record page's existing "over" placement rather than crush the grid. Honest states the panel must draw: loading,
no threads in this view, filtered to nothing (with "show all"), refused (403), failed (retry), and "this view
cannot be scoped" for the engine's INVALID_FILTER refusals.
7. Permissions and security
- No new read authority. Step 5 is an ordinary caller-context
findonsys_comment, so the existing
middleware gate is ANDed exactly as onGET /data/sys_comment(comment-access-hooks.ts:1352-1377); the door
never reads comments as system and never post-filters rows in memory. - The view filter runs as the caller. The planned read is the engine's own
findon P under the caller's
context — CRUD gate, row scope, the field-predicate guard (relation-semi-join.ts:12-22). A filter on a field
the caller cannot read is a loudPERMISSION_DENIED, never an empty answer, so the door is no new oracle: it
answers nothingGET /data/P?filter=WplusGET /data/sys_commentdo not already answer this caller. - The filter is untrusted input. It goes through the same ingress lowering as a list read; a leaf cannot be
spelled in JSON (brand is a symbol; an unbranded copy is refused as a non-list comparand,
readable-ids.ts:18-44). - Record names come from a caller read of P for ids the caller was just shown to be able to read; field-level
masking applies to that read as to any other. - Feeds off / door-unserved parents are refused before anything is read; the gate already serves no comment
on a parent the data door refuses (parent-record-read-gate.ts:54-70). - Writes keep their existing authorities: the author or an editor of the record for edits, the resolution
door for ✓, the own-row door for delete. The panel's "moderates" and "updates others" hints are asked per
record of the expanded thread, three-state, offered only on a definite allow, as the record page does
(RecordDetailView.tsx:4507-4555). - Delegated / impersonated callers: the context is passed on untouched, as the gate does.
- Rows not yet stamped with the parent pair (
object_nameNULL) never appear in the feed or the dots, as they do
not in the kanban counts (recordCounts.tsheader); they still show on the record page. Stated, not a leak.
8. Performance
- Threads page: one statement; the view predicate and the gate are both
record_id IN (SELECT id FROM P …)on
the indexed pair (sys-comment.object.ts:369-376). Not measured: ordering bycreated_atwithin one
object_nameon a large comment table may want an index leading withobject_nameandcreated_at; the
backend card should read the plan on PostgreSQL and SQLite and add the index only if the plan asks. - Per page: 1 planned read (no driver call) + 4 statements (threads, reply counts, latest repliers, record
names). Page size 25, max 50, keyset cursor (stable under new comments arriving; offset paging would repeat
rows). - No badge in v1 ⇒ no count statement on list load; the door is called only when the panel is open.
- Row dots: one grouped read per grid page over at most a page of ids, through the existing grouped door
(POST /data/:object/query,recordCounts.ts); the gate prunes to the one named parent. A cut answer is
re-asked, never read as zero (askRecordCounts). - Fallback classes (a parent narrowed by an object-scoped middleware or an
afterFindhook, a parent on another
datasource, a platform-global parent under an organization wall —relation-semi-join.ts:147-175, open card
objectql: the relation semi-join keeps the 1,000-id cap for a single-valued hop across tenancy classes under an organization wall #34157): the engine reads ids under the 1000 cap and refuses past it. The panel shows the refusal; nothing is
truncated silently.
9. Phone proposal
Mirror the record page's phone comments page (#36076), one level up:
- A comments icon in the phone page bar's
end, before ⋮ (ObjectView.tsx:1467-1485), on feeds-enabled objects. - It opens a full page over the list, addressed by the list route's
?comments(empty: the view's threads; a
top-level comment's id: that thread) — the same parameter name the record page uses
(urlParams.ts,RECORD_COMMENTS_PARAM), so Back and a refresh behave. - Level 1: the same cards as the desktop column (record line, author · date, first comment, 「N replies」), the
filter in the page's header, no comment box (ruling 5). - Level 2: one thread — the record's name in the header (tap opens the record page), the comment, its replies,
the reply box docked above the keyboard, long-press for actions — which isCommentsPage's thread level and
CommentActionSheetunchanged. - No row dot on phone cards in v1 (the card view has no title-adornment slot today; the kanban count already
shows on boards).
10. i18n
Eleven console locales (ui/packages/i18n/src/locales/). Reused keys: detail.comments, closeComments,
filterComments, showResolvedComments, commentsInvolvingMe, replyCount, noUnresolvedComments,
noCommentsInvolvingMe, showAllComments, commentsLoadFailed, commentsAccessDenied, retryLoadFeed, and
every per-comment action label. New keys, small and generic (no product word): the view-level empty state, the
"cannot scope this view" note, the record link's accessible name, the dot's accessible name, the phone page's
back label. Every new key lands in all eleven locales in the same PR; locale keys are published surface.
Server-side strings: none new if the door reuses existing refusals.
11. Risks and confidence gaps
- Nothing was run. That a planned leaf composes for
sys_comment → Pon SQLite and PostgreSQL is argued
fromrelation-semi-join.tsand P17, not measured. The engine card's first deliverable is that measurement. - ADR placement. Exposing the planned leaf to a second in-process consumer adds no wire spelling and no
new leaf, but ADR-0139 names its consumers; whether this is an add-only note or an amendment is not mine to
call (Q6). - The extraction touches a 7,021-line view that about a hundred
RecordDetailView.*.test.tsxsuites exercise (ls ui/packages/app-shell/src/views | grep -c "^RecordDetailView\..*test"); it must be a
move with no behaviour change, landed alone, or it will be unreviewable. - Nested replies. Reply count by
parent_idcounts direct children, as the record page does
(RecordDetailView.tsx:3814-3822); a reply-to-a-reply written through the API is not counted. The stored
participant list is depth-correct; a stored root pointer would fix the count too but is not proposed for v1. - Search. The quick-search term is not part of the filter (P14); v1 scopes by filter only (Q3).
- Kanban and grouped grids do not report a query to the host today (P13); the new channel must report the
filter without any lane or group window. - Open defect 评论的表情回应取消不了:再点一次提示「表情回应未保存,请重试」,取消请求返回「接口不存在」(托管环境) #36469 (a reaction cannot be taken back on the hosted environment) would show in the list
panel exactly as on the record page; not caused by this epic. - Tier line. The
Served-tier: CONTRACT_REVIEW_TIERline is written as instructed; this sub-agent did not
runscripts/pm/verify-review-tier.mjs, so the caller owns the tier evidence before the analysis is presented. - Area labels. North Star puts "discussion and @-mentions" under
area:data; the earlier comment cards
carryarea:ux/area:records. Proposed below by the North Star rule; triage may differ.
12. Four facets
os-decision-facets
① long-term soundness: A adds one thread-shaped door and one in-process engine entry and reuses the existing semi-join, so no request gains a new spelling and no second leaf appears; B reopens two closed grammars; C adds a slower path beside the SQL one.
② business pull: maintainer-ruled p1; item 12 and mock four of the closed comments topic were approved and never carded, and the shell's comments slot on lists has stood empty since it shipped.
③ AI-error resistance: a strict body and the engine's existing loud refusals (unknown key, unreadable field, driver without the leaf, cap exceeded, feeds off) mean a wrong call fails with a located 400/403; no path answers a truncated or system-read list.
④ startup non-sprawl: no metadata key, no error code, no new leaf; one route, one stored column and one engine member are the standing obligations, each with a reader on the day it lands; the grid dot takes no view key.
Prior rulings read: sys_comment,comments,feeds,readable-ids → 6 hits; ADR-0139 D1 D2 D3 D5, ADR-0155 D1, ADR-0052 §5; thread: none
(The script's own named set was ADR-0035 §3, ADR-0061 D2, ADR-0080 §7, ADR-0098 §2, ADR-0144 D3, ADR-0155 D1;
edited after reading, as its output allows: ADR-0139 was found by direct grep of docs/adr/. No card exists yet,
so there is no thread to read.)
13. Proposed children
Parent: tracking: comments on the list page — the threads of the records in the current view · tracking,
area:data, no type, never dispatched · filing-gate class ④, Source: maintainer.
Milestones:
| Milestone | Cards | Can start |
|---|---|---|
| M1 foundations | S1 engine entry · S2 stored participants · U1 grid dot · U2 discussion unit | at once, all four in parallel (no shared file) |
| M2 the read | S3 comment-threads door | after S1 and S2 |
| M3 desktop | U3 list comments column | after S3, U2, U1 |
| M4 phone | U4 phone page | after U3 |
Dependency lines are written only on the later card. S1/S2/U1/U2 touch disjoint files.
S1 — objectql: a server read scopes a pointer column by a caller-run read of its target object
- Layer: backend (engine) ·
area:data· Feature · size M · proposed p1 - Scope:
- One in-process engine entry that plans
find(target, { where })under a given execution context and returns
the leaf to place as a$incomparand on another object's column — the mechanism the nested-relation
lowering already uses, offered to in-process callers. No wire spelling, no filter operator, no new leaf. - Same outcomes as a relation condition: one subquery where provable; the id read under the existing cap
otherwise; the existing up-front refusal on a driver without the leaf bit; refusal past the cap. - An add-only note where ADR-0139 lists its consumers (see Q6 for the tier).
- One in-process engine entry that plans
- Acceptance:
- Integration test on SQLite and PostgreSQL: a
findonsys_commentwhoserecord_idis scoped by a planned
read of a business object reaches the driver as one statement and returns exactly the rows the two-step
route (read ids as the caller, then$in) returns — for an unrestricted member, a row-scoped member, and a
member with no read on the target (zero rows). - A filter naming a field the caller cannot read is refused
PERMISSION_DENIED, not answered empty. - On a driver without the bit the call is refused
INVALID_FILTER/ 400 before any read; past the cap likewise. - A JSON copy of the returned value placed in a request
whereis refused as today (no forgery path). - No public HTTP behaviour changes (observed: the REST suites untouched and green).
- Integration test on SQLite and PostgreSQL: a
- Blocked-by: none
- Clause-②: yes (widening) — a new public member on a published package's engine; in-process only.
- Metadata-protocol: none
- Likely files:
packages/objectql/src/relation-semi-join.ts(planRelationSemiJoinLeaf,
relationSemiJoinServes),packages/objectql/src/engine-query-lowering.ts(lowerRelationConditions),
the engine class that binds them, their test files,docs/adr/0139-…md(note only).
S2 — Comments: a thread stores who took part, so 'threads involving me' filters in one query
- Layer: backend (plugin-audit) ·
area:data· Feature · size M · proposed p1 - Scope:
- A platform-written, read-only participant list on a thread's first comment: its author, every replier at any
depth, everyone mentioned in any comment of the thread. Maintained when a comment is created, when an edit
changes its mentions, and never written by a client (stripped and reported like the other platform columns). - A one-off backfill command in the family of the parent-pair backfill, dry-run by default.
- The existing in-memory rule and the reply-notice audience keep their answers; this card adds the stored
fact and pins that the two agree.
- A platform-written, read-only participant list on a thread's first comment: its author, every replier at any
- Acceptance:
- HTTP: after A starts a thread, B replies and C is mentioned in a reply,
GET /data/sys_commentfiltered on
the participant column by A, by B and by C each returns that thread's first comment; by D it does not. - A client-supplied value for the column on create or update never lands (response reports it dropped).
- The backfill, run on a database with threads written before this card, makes the same filter return them;
a second run changes nothing. - A reply two levels deep adds its author to the first comment's list.
- HTTP: after A starts a thread, B replies and C is mentioned in a reply,
- Blocked-by: none
- Clause-②: yes (widening) — a new column on a platform object served by the data API, and a new CLI subcommand.
- Metadata-protocol: none (platform object; nothing an author writes)
- Likely files:
packages/plugins/plugin-audit/src/objects/sys-comment.object.ts,
packages/plugins/plugin-audit/src/audit-writers.ts(readThreadParticipants),
packages/plugins/plugin-audit/src/comment-resolution.ts(threadsInvolvingUser), a new backfill module beside
comment-parent-pair-backfill.ts, the CLI's migrate command, generated translation bundles.
S3 — Comments: one read returns the threads on the records a list filter selects, as the caller
- Layer: spec + backend (plugin-audit) + SDK ·
area:data· Feature · size L · proposed p1 - Scope:
- Spec-first: request and response schemas for
POST /api/v1/comments/threads/queryinpackages/spec/src/api/
(strict body; limits as constants), regenerated artifacts committed. - The door in plugin-audit's comment registrar, steps 1–6 of §5; a ledger row; an SDK method so the row is
sdk, not a newgap; advertised wherever the comment doors are advertised and nowhere it is not mounted. - Reference docs for the route (the API page that documents the comment doors).
- Spec-first: request and response schemas for
- Acceptance (all via HTTP against a booted showcase, as two members with different row scope):
- With a filter selecting 3 of an object's records, the answer holds only top-level comments on those 3, newest
first, each with the record's id and name, its reply count and at most three latest repliers. - The same request by a member who cannot read one of the 3 records omits that record's threads; by a member
with no read on the object it is the object read's own refusal. showResolvedabsent ⇒ no resolved thread;true⇒ they appear.onlyMine: true⇒ only threads the caller
started, replied in or is mentioned in.limit+cursorwalk every thread once with no repeat while a new comment is posted between pages.- An unknown body key, any query parameter,
limitout of range ⇒VALIDATION_ERROR/ 400 and the engine was
never called; a filter on an unreadable field ⇒PERMISSION_DENIED; an object with feeds off ⇒ 403; anonymous
⇒ 401. - On a view larger than the id cap the answer is still complete on SQLite and PostgreSQL (seed > 1000 matching
records), and the threads statement is one statement (query log). - No new error code;
ERROR_CODE_LEDGERdiff is empty.
- With a filter selecting 3 of an object's records, the answer holds only top-level comments on those 3, newest
- Blocked-by: S1, S2
- Clause-②: yes (widening) — a new public route, schema and SDK method.
- Metadata-protocol: none
- Likely files: a new
packages/spec/src/api/*.zod.tsbesiderecord-page.zod.ts,
packages/plugins/plugin-audit/src/comment-routes.ts(registerCommentDoorsRoutes),
comment-route-ledger.ts,audit-plugin.ts,packages/client/src/,content/docs/api/data-api.mdx.
U1 — Grid: a row whose record has open comment threads shows a dot after the record name
- Layer: UI (console host) ·
area:data· Feature · size S · proposed p1 - General building blocks named: the grid's existing host adornment beside the row title, and the existing
grouped per-record count read. No spec gate; no new view key. - Scope:
- On an object list drawn as a grid, for an object with feeds on: one grouped read per page of rows, a small
dot after the name of each record with at least one open (top-level, unresolved) thread; an accessible name;
composed with the adornment the list already draws in one case. - Re-read when the page, sort or filter changes and when a comment write is announced.
- Kanban unchanged.
- On an object list drawn as a grid, for an object with feeds on: one grouped read per page of rows, a small
- Acceptance (browser):
- Post a comment on a record, return to its list: the row shows the dot; resolve the thread: the dot is gone
after the list re-reads; a record with only resolved threads shows none. - An object with
enable.feeds: falsesends no count read (network panel) and shows no dot. - One count request per page of rows, never one per row.
- A member who cannot read comments sees no dot and no error.
- Post a comment on a record, return to its list: the row shows the dot; resolve the thread: the dot is gone
- Blocked-by: none
- Clause-②: no, unless a new locale key is added for the accessible name (then yes, widening).
- Metadata-protocol: none
- Likely files:
ui/packages/app-shell/src/views/objectViewListRenderer.tsx(therowAdornmenthand-off),
ui/packages/plugin-detail/src/comments/recordCounts.ts(useRecordCounts), locale files if a key is added,
content/docs/frontend/.
U2 — Record page: the discussion's reads and writes become one unit other pages can mount
- Layer: UI (app-shell) ·
area:data· Task (a move with no behaviour change; triage may retype) · size L · proposed p1 - General building block named: a record-discussion unit keyed by (object, record id) that produces what the
discussion context provides today. - Scope:
- Move the record page's comment read, row-to-item mapping, reaction read, the reply / edit / delete / resolve /
react handlers, the write-gate resolution and the two record verdicts out of the record view into one unit;
the record page consumes it. Activity and attachments stay where they are. - No visible change, no new request, no request removed.
- Move the record page's comment read, row-to-item mapping, reaction read, the reply / edit / delete / resolve /
- Acceptance:
- Every existing record-page comment suite passes unmodified (the panel, phone page, resolved, counts, mentions,
focus-by-link suites). - Browser: on a record page, post, reply, react, edit, delete, resolve and reopen all behave as before; the
network panel shows the same requests in the same order on open. - The unit can be mounted for a second record on the same page without the two sharing state (unit test).
- Every existing record-page comment suite passes unmodified (the panel, phone page, resolved, counts, mentions,
- Blocked-by: none
- Clause-②: no if the unit stays internal to the package; yes (widening) if it is exported from a package entry.
- Metadata-protocol: none
- Likely files:
ui/packages/app-shell/src/views/RecordDetailView.tsx(handleAddReply,handleEditComment,
handleDeleteComment,handleResolveComment,handleToggleReaction,moderatesComments,
updatesOthersComments, theDiscussionContextProviderhand-off), a new module beside it.
U3 — List page: a header comments icon opens a side column with the current view's threads
- Layer: UI ·
area:data· Feature · size L · proposed p1 - Spec contract gate named: the comment-threads read (S3). General building blocks named: the page header's
shell-group comments entry; a side column in the list page's content row; the comment thread and comment item
blocks taking their data as props; a list-to-host channel that reports the effective filter for every layout. - Scope:
- Icon (no number) in the list page header's button group on grid and kanban views of a feeds-enabled object;
pressed state; opens a 380 px right column that narrows the list; ✕ and Esc close it; open/closed remembered
in this browser. - Column: title, filter menu with the two toggles (resolved off by default), newest-first cards (object icon,
record name, author · date, first comment with mentions highlighted, 「N replies」 with faces), load-more. - Record name opens the record by the list's own open path.
- A card or 「N replies」 expands the thread in place with reply, resolve / reopen, react, edit and delete as the
record page offers them; no box for a new thread anywhere. - Re-read when the view, its filter or the toggles change; announce writes so dots and card counts follow.
- States: loading, empty, filtered-empty with "show all", refused, failed with retry, cannot-scope.
- New strings in all eleven locales; docs page and package README updated.
- Icon (no number) in the list page header's button group on grid and kanban views of a feeds-enabled object;
- Acceptance (browser, two members):
- On a list with a filter, the column lists only threads on records the filter selects; changing the filter
changes the column; switching view changes it. - A member with narrower row access sees fewer threads, never a thread on a record they cannot open.
- Reply in an expanded thread: it appears, and the thread's reply count rises; resolve: with "show resolved"
off the thread leaves the list and the row's dot clears; reopen from "show resolved". - "Only my threads" keeps a thread I was only mentioned in and drops one I never touched.
- There is no control that writes a new top-level comment.
- Opening the column narrows the grid (the grid's width shrinks by the column's) rather than covering it at a
1440 px window; the kanban view behaves the same. - An object with feeds off shows no icon. The record drawer opened from the list still has no comments.
- Network: one threads request per page of the column; none while the column is closed.
- On a list with a filter, the column lists only threads on records the filter selects; changing the filter
- Blocked-by: S3, U2, U1 (U1 for the shared host file)
- Clause-②: yes (widening) — new host props on published components and new locale keys.
- Metadata-protocol: none
- Likely files:
ui/packages/app-shell/src/views/ObjectView.tsx,objectViewPageHeader.tsx
(ObjectViewPageHeader),objectViewListRenderer.tsx,ui/packages/app-shell/src/layout/PageHeader.tsx,
ui/packages/plugin-list/src/ListView.tsx(besideonFindParamsChange),ui/packages/plugin-detail/src/comments/
(CommentThread,CommentItem,CommentsFilterMenu, a new feed list),ui/packages/i18n/src/locales/*,
content/docs/frontend/plugins/plugin-detail.mdx.
U4 — Phone list page: the comments icon opens the view's threads as a page, replies inside
- Layer: UI ·
area:ux(mobile, by the North Star boundary rule) · Feature · size M · proposed p2 - Spec contract gate named: S3. General building blocks named: the phone page bar's end slot; the phone comment
page's two-level layout and long-press action sheet taking their data as props. - Scope: §9 as written — icon in the phone bar, a URL-addressed page over the list, level 1 cards with filter and
no box, level 2 thread with docked reply box and long-press actions, record name opens the record page. - Acceptance (phone viewport):
- The icon opens the page; Back returns to the list at its scroll position; a refresh on the page reopens it.
- Level 1 shows the same threads as the desktop column for the same view and member, and no comment box.
- Opening a thread and replying works with the keyboard up (the box stays above it); long-press offers the
same actions as the record's phone page. - Feeds off ⇒ no icon.
- Blocked-by: U3
- Clause-②: yes (widening) if it adds props or locale keys; otherwise no.
- Metadata-protocol: none
- Likely files:
ui/packages/app-shell/src/views/ObjectView.tsx(theusePublishPhonePageBarcall),
ui/packages/app-shell/src/urlParams.ts,ui/packages/plugin-detail/src/comments/CommentsPage.tsx,
CommentActionSheet.tsx, locale files.
Dedupe searches (gh api -X GET search/issues -f q='repo:objectstack-ai/objectstack is:issue [terms]')
| Terms | Total | Relevant hits |
|---|---|---|
comments panel list view |
339 | none on this feature; #36410 closed (deep link; mentions a dead comments slot in the navigation overlay) |
view comments feed |
341 | #36075 closed (record panel); #25945 open tracking (list page / shell refresh after the prototype — no comments item) |
list comments |
7322 | noise; #33877 open (multi-valued relation semi-join, unrelated mechanism sibling) |
list page comments |
3884 | #35947 open, paused topic (tasks and notes as platform objects; its comment sections were taken over by #36062) |
comments across records |
2399 | #34157 open p3 (semi-join keeps the 1000-id cap across tenancy classes — a fallback class named in §8) |
评论 列表 in:title |
2 | #36062 closed (the comments topic whose phase-2 items 11–12 are this epic, never carded); #36076 closed |
Attio comments |
35 | #36225 closed (no comments in previews), #36062, #36075, #36076, #36074, #36111 closed (shell button group with the comments slot) |
评论( in:title |
22 | all closed siblings of #36062; #36469 open (reaction cannot be taken back on hosted) |
open, 评论 in:title |
3 | #35947, #36469 only |
No open card covers the list comments entry, the comment-threads read, the stored participants, or the grid dot.
Dedupe: lines for the new cards should name #36062 (origin), #35947 (paused sibling topic) and #34157 (S1).
14. Open questions for the maintainer
Only the ones that change scope; each with a recommended answer.
- Q1 — the server shape. A dedicated comment-threads read (option A) or a general "filter by the pointed-at
record" query form (option B)? Recommend A: correct at any size, no change to settled query rules, and it
does not rule B out later. - Q2 — "only my threads". Store each thread's participants on its first comment (one extra backend card and a
one-off backfill), or compute per request from the reader's own replies under the 1000 cap? Recommend
storing: the capped form fails for the people who comment most, and the stored list is also the audience
reply notices already compute on every reply. - Q3 — what "the current view's filter" includes. The saved view's filter only, or the list as filtered right
now (saved filter plus the reader's unsaved filter-bar and filter-panel choices)? And the quick-search box?
Recommend: the list as filtered right now; the search box is not applied in v1 (it is not a filter and would
widen the read's contract) — say so in the panel's empty state only if a search term is active. - Q4 — the row dot. (a) "has comments" = has an open thread (matches the panel's default and the kanban
number) or any comment at all? (b) always on for feeds-enabled objects, or a view setting like the kanban
footer? (c) is the dot only a marker in v1, or does a click open the column at that record? Recommend:
open threads; always on, no new view setting; marker only in v1 (the approved mock's click-to-open would need a
per-record column, and ruling 5 already keeps new comments off the list page). - Q5 — which list pages. Object list views only, or also the bare data page (URL filters, no saved view) and
interface pages of type list? Recommend: object list views only in v1; the other two share the same header
and can adopt the entry in a follow-up card without server work. - Q6 — the architecture record. S1 gives the engine's subquery mechanism a second in-process consumer and
changes nothing a request can write. Is an add-only note on the existing decision record enough, or do you want
an amendment you approve by hand before S1 starts? Recommend: an add-only note riding S1's PR; if you want
the amendment first, S1 (and so S3, U3, U4) waits on it while S2, U1 and U2 proceed. - Q7 — phone timing. Ship the phone page in this epic (U4, last) or as a follow-up once the desktop column
has been used? Recommend: in this epic, last, at p2 — the page reuses the record page's phone layout and
the same read, so it is cheap once U3 exists.
Generated by Claude Code
Activity
os-support-ai commentedon Dec 2, 2026
Ruling-ref: priority:p1 — maintainer, project thread, 2026-12-02 07:13Z: 「用fable 分析,并立专题卡, p1」
Tier evidence: the analysis on this card (Served-tier: CONTRACT_REVIEW_TIER) was checked with
scripts/pm/verify-review-tier.mjsagainst the analysis sub-agent's own transcript: PASS, every turn served at CONTRACT_REVIEW_TIER.thread · os-support-ai · session_01WGufzirjTJ1sVFGR5sBPSL
Generated by Claude Code
os-support-ai commentedon Dec 2, 2026
维护者 2026-12-02 07:36Z 对本卡「待定」七条回复「按推荐」,即:
docs/adr/**)。同时维护者:「这个专题直接派发吧,并发5」「开一个专区派发」——子卡立好后交席位开区派发。
Ruled: Q1–Q7 as recommended (maintainer, project thread, 2026-12-02 07:36Z 「按推荐」)
thread · os-support-ai · session_01WGufzirjTJ1sVFGR5sBPSL
Generated by Claude Code