You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Record page payload: the served discussion is cut at the deployment's default page with no hasMore, though the spec says the whole thread #39271
立卡门类别:① 开发发现的同族缺陷(#39253 的 os-dev 报告 7369590224 范围外第 1 条,class b;#39195 / #39253 家族的服务端一半)。Source: #39253
Part of #39077 · family of #39195 and #39253 (a read cut by the deployment's data page cap)
定级:area:ux · Bug · priority:p3 · reach: the record page with its served payload, on a deployment that sets a maximum data page size, for a record whose discussion (comments, or their reactions) is longer than one page · evidence: read (code), not measured at a public door
Spec (Governing text): packages/spec/src/api/record-page.zod.ts, the stream table row discussion: "no page size (the whole thread, as the record feed reads it)" and sys_comment where thread_id = {object}:{id}: "every comment and reply of the thread".
Today (read on the Record discussion: comment reactions past the deployment's first page are not shown (the reaction read ignores hasMore) #39253 branch; the builder re-reads on main): answerDiscussion in packages/rest/src/record-page-routes.ts reads sys_comment and then sys_comment_reaction through p.findData with no limit. ProtocolDataCrud.findData (packages/metadata-protocol/src/protocol-data-crud.ts, planQueryReadWindow) gives a limit-less read the deployment's OS_DATA_DEFAULT_PAGE_SIZE (packages/types/src/query-read-limits.ts: the maximum page size when one is set). The part returns comments.records and reactions.records with no hasMore or total.
Direction: declared ≠ enforced; the spec wins (contract-first). Make the producer serve the whole thread (page the reads server-side, within the row budget), or, if the whole thread cannot be bounded, change the contract on its own card. Never a client fallback (ui/packages/app-shell/src/views/recordPagePayload.tsrecordPageComments keeps trusting the payload).
Acceptance: with a page cap smaller than a record's comments and reactions, the record page payload carries every comment and reaction; a REST or dogfood test pins it and goes red without the fix.
Triage: lands in area:data · domain:server · Bug · p3 · pm:queue · size S; rationale: the served record-page payload reads sys_comment and sys_comment_reaction with no limit. On a deployment that sets a maximum page size that becomes one page, with no hasMore, which contradicts record-page.zod.ts ("the whole thread"). The North Star puts data truncated because it is large in area:data, and the fix is server-side (packages/rest/src/record-page-routes.ts). It is not an experience problem, so the UX rule does not apply.
Grade: area:data · Bug · Impeded (a read back shown short; nothing stored is wrong) · rare configuration (only deployments that set OS_DATA_DEFAULT_PAGE_SIZE) · read (code). p3 is confirmed, moved from area:ux (the original value). It stays a sub-issue of topic #39077, so it is not folded.
Touched at 2026-12-03T07:29Z.
Claim: PM loop, zone comments-39077 of seat repo:objectstack@os-bill (topic #39077; the maintainer's word 2026-12-02 21:55Z 「接手过来的 os-support-ai 的任务和专题不分优先级都要处理」)
Area: comments-39077
Session: session_01Utp6Ca2yTZZiHWkyVgD2oK
Account: os-bill
Branch: claude/issue-39271-record-page-discussion-whole
Worktree: objectstack-issue-39271
Domain: domain:server
Seat: repo:objectstack@os-bill
File surface: packages/rest/src/record-page-routes.ts; packages/rest/src/record-page-routes.test.ts; a changeset. Stop on breach; explain in the report (a contract change to packages/spec/src/api/record-page.zod.ts is out: stop and report).
Container & model: S, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier prints no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: this repo's own code (packages/rest, objectstack): the producer reads with no limit and returns one page | no platform path covers it | record-page readers on a deployment that sets OS_DATA_DEFAULT_PAGE_SIZE; reachable today
Thread-read: 7371086694
Premise: holds — answerDiscussion on main reads sys_comment and sys_comment_reaction through findData with no limit and returns no hasMore, while the spec row says the whole thread; the dev re-reads first.
Serial constraints cleared: check-handover.mjs --inflight → NO OVERLAP READ; the client family (PR #39252, PR #39269) merged.
{
"issue": 39271,
"status": "done",
"branch": "claude/issue-39271-record-page-discussion-whole",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39294",
"session": "session_01Utp6Ca2yTZZiHWkyVgD2oK",
"premise_still_valid": true,
"summary": "The premise held on origin/main ee2be200. answerDiscussion read sys_comment and then sys_comment_reaction through findData with no limit. ProtocolDataCrud.findData gives that read the deployment's default page (planQueryReadWindow) and answers hasMore, which the route dropped, so the payload carried one page as the whole thread. A new readWholeStream in record-page-routes.ts keeps reading the next page while the door answers hasMore, ordered by created_at and then id. Under OS_DATA_QUERY_ROW_BUDGET the last page is cut to end at the budget. A thread past the budget is answered with the data door's own refusal of the read that would cross it (QUERY_ROW_BUDGET_EXCEEDED, 400): in the discussion part for comments, or in its reactions for reactions. The rows read so far are never returned as the thread. Honest behaviour past the budget therefore fits the existing spec union (discussion and reactions already declare a refusal arm), and it matches what a budget-only deployment already answered through its probe read. No contract change, so no needs_decision. Deviations from the suggested route: no 100-page ceiling, because the door computes hasMore as offset plus rows against its count, so the loop always ends; a ceiling could only end in a short list or an invented code. The reaction read stays one comment_id $in, as today, so the spec's single oldest-first order holds; the client's 100-id batching is a URL bound that does not apply in process.",
"tests": "At 6bc8f6b5: pnpm --filter @objectstack/rest exec vitest run --maxWorkers=2 src/record-page-routes.test.ts gave Tests 47 passed (47). That includes 4 new cases in describe [#39271]: a paging double windowed by the real planQueryReadWindow and assertQueryReadRows with vi.stubEnv; page 3, 7 comments and 8 reactions, all carried; budget 8 read whole with the last page limit 2 offset 6; budget 6 gives a discussion refusal QUERY_ROW_BUDGET_EXCEEDED/400; budget 7 answers the comments whole and refuses the reactions. The existing all-streams case is updated for the two-key orderBy. At c71cd87a (the later commit changed only the test double's matcher): pnpm --filter @objectstack/rest test gave Test Files 451 passed (451), Tests 9356 passed | 351 skipped (9707), VERDICT command-exit 0. Typecheck at 6bc8f6b5: pnpm --filter @objectstack/rest typecheck exited 0, check:test-typecheck OK with 0 errors. Ablation via scripts/ablation-replace.mjs (src is imported directly, no build involved): A, the first-page return made unconditional, gave Tests 4 failed | 43 passed, all four new cases red; B, a later page's refusal replaced by the rows read so far, gave Tests 2 failed | 45 passed, both budget-refusal cases red. Both restores reported blob == HEAD ffd093ac and git diff HEAD empty.",
"gates": "dispatch-gates --commands at 6bc8f6b5 derived 70. All were run on 6bc8f6b5, each exit captured before any pipe: 68 exit 0. NOT MEASURED (2): node scripts/check-plugin-teardown-shape.mjs --self-test exits 3 because the shallow clone cannot reach pinned commit 621a4876 (same exit 3 on the shared origin/main checkout; checker health only); pnpm check:dual-build-cjs-loads exits 3 with PREREQUISITE NOT MET because only the rest closure was built (CI Lint & Repo Gates runs it). check:where-matcher first flagged the new test double as a silent matcher; the double now refuses combinators and operators it does not implement, and the gate passes (855 conforming, none new). dispatch-gates --ran reported 70 derived famil(ies) accounted for, 68 run, 2 NOT-MEASURED, exit 0. overlap-check.mjs: VERDICT clean exit 0 against origin/main c7478b37 and 0 PR heads. The incoming origin/main commits touch none of rest, types, metadata-protocol or record-page.zod.ts. CI check-runs on PR 39294: NOT MEASURED, none read; the report is delivered at the end of local verification as the contract says.",
"mcp_calls": "0",
"api_writes": "3: one relay pr_create stroke (POST /repos/objectstack-ai/objectstack/pulls draft, POST /repos/objectstack-ai/objectstack/issues/39294/assignees os-bill; read back 7372 bytes identical), and POST /repos/objectstack-ai/objectstack/issues/39271/comments (this os-dev-report, via post-stamped.mjs). git push is not counted.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #39077 (topic) · noted, not filed. The client's own discussion read (readEveryPage, ui/packages/app-shell/src/views/useRecordDiscussion.ts) keeps the pages already read when a later page is refused with a 400 such as the row budget. This route now refuses instead. On a thread past the budget, the two doors answer differently: the payload gives a refusal, the client fallback gives a short list. Read in code, not measured at a door. Dedupe words: readEveryPage row budget short list, record discussion QUERY_ROW_BUDGET_EXCEEDED client, useRecordDiscussion 400 paging",
"carrier: none · noted, not filed. The reaction read puts every comment id of the thread in one comment_id $in, which deployments with no page size already did before this change. A very long thread could reach a driver's bind-parameter limit. Not measured."
]
}
2026-12-03T10:13Z · Close-out · PR #39294 merged (2026-12-03T10:10Z, merge commit 777da7fef3), closing this card as Fixes #39271 intended.
Delivered: the record page payload's discussion pages its comment and reaction reads on hasMore (ordered created_at, then id), cuts the last page at the row budget, and answers a thread past the budget with the declared QUERY_ROW_BUDGET_EXCEEDED refusal arm. No spec change. ACCEPT 7374043559. Landed after fix(app-shell): a record discussion the row budget declines is not shown as empty #39287 so the Console draws that refusal as the "couldn't load" note.
Activity
objectstack-fleet commentedon Dec 3, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:data · domain:server · Bug · p3 · pm:queue · size S; rationale: the served record-page payload reads
sys_commentandsys_comment_reactionwith no limit. On a deployment that sets a maximum page size that becomes one page, with nohasMore, which contradictsrecord-page.zod.ts("the whole thread"). The North Star puts data truncated because it is large in area:data, and the fix is server-side (packages/rest/src/record-page-routes.ts). It is not an experience problem, so the UX rule does not apply.Grade: area:data · Bug · Impeded (a read back shown short; nothing stored is wrong) · rare configuration (only deployments that set
OS_DATA_DEFAULT_PAGE_SIZE) · read (code). p3 is confirmed, moved from area:ux (the original value). It stays a sub-issue of topic #39077, so it is not folded.Touched at 2026-12-03T07:29Z.
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK
Claim: PM loop, zone comments-39077 of seat
repo:objectstack@os-bill(topic #39077; the maintainer's word 2026-12-02 21:55Z 「接手过来的 os-support-ai 的任务和专题不分优先级都要处理」)Area: comments-39077
Session:
session_01Utp6Ca2yTZZiHWkyVgD2oKAccount:
os-billBranch:
claude/issue-39271-record-page-discussion-wholeWorktree:
objectstack-issue-39271Domain:
domain:serverSeat:
repo:objectstack@os-billFile surface:
packages/rest/src/record-page-routes.ts;packages/rest/src/record-page-routes.test.ts; a changeset. Stop on breach; explain in the report (a contract change topackages/spec/src/api/record-page.zod.tsis out: stop and report).Container & model:
S,mode:subagent,model: TIER_DEFAULT (dispatch-gates --tier prints no path-derived mandate),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
this repo's own code (packages/rest, objectstack): the producer reads with no limit and returns one page | no platform path covers it | record-page readers on a deployment that sets OS_DATA_DEFAULT_PAGE_SIZE; reachable todayThread-read: 7371086694
Premise: holds —
answerDiscussiononmainreadssys_commentandsys_comment_reactionthroughfindDatawith no limit and returns nohasMore, while the spec row says the whole thread; the dev re-reads first.Serial constraints cleared:
check-handover.mjs --inflight→ NO OVERLAP READ; the client family (PR #39252, PR #39269) merged.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK
os-dev-report
{ "issue": 39271, "status": "done", "branch": "claude/issue-39271-record-page-discussion-whole", "pr": "https://github.com/objectstack-ai/objectstack/pull/39294", "session": "session_01Utp6Ca2yTZZiHWkyVgD2oK", "premise_still_valid": true, "summary": "The premise held on origin/main ee2be200. answerDiscussion read sys_comment and then sys_comment_reaction through findData with no limit. ProtocolDataCrud.findData gives that read the deployment's default page (planQueryReadWindow) and answers hasMore, which the route dropped, so the payload carried one page as the whole thread. A new readWholeStream in record-page-routes.ts keeps reading the next page while the door answers hasMore, ordered by created_at and then id. Under OS_DATA_QUERY_ROW_BUDGET the last page is cut to end at the budget. A thread past the budget is answered with the data door's own refusal of the read that would cross it (QUERY_ROW_BUDGET_EXCEEDED, 400): in the discussion part for comments, or in its reactions for reactions. The rows read so far are never returned as the thread. Honest behaviour past the budget therefore fits the existing spec union (discussion and reactions already declare a refusal arm), and it matches what a budget-only deployment already answered through its probe read. No contract change, so no needs_decision. Deviations from the suggested route: no 100-page ceiling, because the door computes hasMore as offset plus rows against its count, so the loop always ends; a ceiling could only end in a short list or an invented code. The reaction read stays one comment_id $in, as today, so the spec's single oldest-first order holds; the client's 100-id batching is a URL bound that does not apply in process.", "tests": "At 6bc8f6b5: pnpm --filter @objectstack/rest exec vitest run --maxWorkers=2 src/record-page-routes.test.ts gave Tests 47 passed (47). That includes 4 new cases in describe [#39271]: a paging double windowed by the real planQueryReadWindow and assertQueryReadRows with vi.stubEnv; page 3, 7 comments and 8 reactions, all carried; budget 8 read whole with the last page limit 2 offset 6; budget 6 gives a discussion refusal QUERY_ROW_BUDGET_EXCEEDED/400; budget 7 answers the comments whole and refuses the reactions. The existing all-streams case is updated for the two-key orderBy. At c71cd87a (the later commit changed only the test double's matcher): pnpm --filter @objectstack/rest test gave Test Files 451 passed (451), Tests 9356 passed | 351 skipped (9707), VERDICT command-exit 0. Typecheck at 6bc8f6b5: pnpm --filter @objectstack/rest typecheck exited 0, check:test-typecheck OK with 0 errors. Ablation via scripts/ablation-replace.mjs (src is imported directly, no build involved): A, the first-page return made unconditional, gave Tests 4 failed | 43 passed, all four new cases red; B, a later page's refusal replaced by the rows read so far, gave Tests 2 failed | 45 passed, both budget-refusal cases red. Both restores reported blob == HEAD ffd093ac and git diff HEAD empty.", "gates": "dispatch-gates --commands at 6bc8f6b5 derived 70. All were run on 6bc8f6b5, each exit captured before any pipe: 68 exit 0. NOT MEASURED (2): node scripts/check-plugin-teardown-shape.mjs --self-test exits 3 because the shallow clone cannot reach pinned commit 621a4876 (same exit 3 on the shared origin/main checkout; checker health only); pnpm check:dual-build-cjs-loads exits 3 with PREREQUISITE NOT MET because only the rest closure was built (CI Lint & Repo Gates runs it). check:where-matcher first flagged the new test double as a silent matcher; the double now refuses combinators and operators it does not implement, and the gate passes (855 conforming, none new). dispatch-gates --ran reported 70 derived famil(ies) accounted for, 68 run, 2 NOT-MEASURED, exit 0. overlap-check.mjs: VERDICT clean exit 0 against origin/main c7478b37 and 0 PR heads. The incoming origin/main commits touch none of rest, types, metadata-protocol or record-page.zod.ts. CI check-runs on PR 39294: NOT MEASURED, none read; the report is delivered at the end of local verification as the contract says.", "mcp_calls": "0", "api_writes": "3: one relay pr_create stroke (POST /repos/objectstack-ai/objectstack/pulls draft, POST /repos/objectstack-ai/objectstack/issues/39294/assignees os-bill; read back 7372 bytes identical), and POST /repos/objectstack-ai/objectstack/issues/39271/comments (this os-dev-report, via post-stamped.mjs). git push is not counted.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: #39077 (topic) · noted, not filed. The client's own discussion read (readEveryPage, ui/packages/app-shell/src/views/useRecordDiscussion.ts) keeps the pages already read when a later page is refused with a 400 such as the row budget. This route now refuses instead. On a thread past the budget, the two doors answer differently: the payload gives a refusal, the client fallback gives a short list. Read in code, not measured at a door. Dedupe words: readEveryPage row budget short list, record discussion QUERY_ROW_BUDGET_EXCEEDED client, useRecordDiscussion 400 paging", "carrier: none · noted, not filed. The reaction read puts every comment id of the thread in one comment_id $in, which deployments with no page size already did before this change. A very long thread could reach a driver's bind-parameter limit. Not measured." ] }objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK
2026-12-03T10:13Z · Close-out · PR #39294 merged (2026-12-03T10:10Z, merge commit
777da7fef3), closing this card asFixes #39271intended.hasMore(orderedcreated_at, thenid), cuts the last page at the row budget, and answers a thread past the budget with the declaredQUERY_ROW_BUDGET_EXCEEDEDrefusal arm. No spec change. ACCEPT 7374043559. Landed after fix(app-shell): a record discussion the row budget declines is not shown as empty #39287 so the Console draws that refusal as the "couldn't load" note.$inpast Oracle / SQL Server limits), both sub-issues of 专题:列表页右上角的评论入口——看当前视图里各条记录的评论串,可回复、可解决,不能写新评论 #39077.pm:dispatchedremoved in this stroke;domain:*andarea:*stay.