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
objectstack-ask skill: teach query_dataset's totalGroups next to truncated #35203
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:skillsDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
PR #35201 (card #35194) adds an optional totalGroups to query_dataset's output (QueryDatasetOutputSchema). It is the number of groups before offset and limit cut the result, with the same name and meaning as aggregate_records. It is absent where the database could not count them.
skills/objectstack-ask/SKILL.md (served as packages/mcp/src/ask-skill.generated.ts) already teaches truncated: true ("more rows existed than came back"). It doesn't yet teach the client to answer "how many X are there" after a top-N cut from totalGroups, or to say the total is unknown when totalGroups is absent.
Scope
Add one line beside the truncated lines, then regenerate ask-skill.generated.ts. This is skills/**, so it needs a domain:skills PR, which is why it is not in the domain:server PR #35201. If the skill teaches aggregate_records' totalGroups by the time this is picked up (#35144 / PR #35193), use one shared sentence for both.
Card #35194's scope ("the ask skill's served text gains one line, only if it already teaches truncated"). It was moved here at claim 6978120534. The #35194 dev report is 6980036117.
Scope note · 2026-11-18T14:58Z · from PR #35201 at a2abbca805336f896e7595da4b6c857783085c9a (landing 6982241345)
The body's sentence "It is absent where the database could not count them" no longer matches what lands. The revised seat answer on #35194 (6980624450) took route B as well, so totalGroups now has two sources:
Pushed-down window: the one native SQL statement counts the groups with COUNT(*) OVER ().
In-memory window: the grid's length before the window, counted only when every read vouched that it came back whole. This covers a label-bearing order, including the default order the tool sets on an option or reference dimension, an assembled grid and the ObjectQL face.
totalGroups is absent only where the count is not provable: an unknown dialect, a strategy that does not vouch, a grid that a cap or row guard cut, or an empty page after an offset. When present, it equals rowCount on an uncut answer.
So the skill line to add is: when truncated: true, answer "how many" from totalGroups, and when totalGroups is absent, say the total is unknown rather than reading rowCount as the total. The schema describe in packages/spec/src/ai/dataset-tools.zod.ts on main after #35201 merges is the source text.
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:skillsDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch: p2 ·
domain:skills·pm:queue. An ask-line follow-up of #35194 (PR #35201). The epic orders it; it is not a queue jump.objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt
Scope note · 2026-11-18T14:58Z · from PR #35201 at
a2abbca805336f896e7595da4b6c857783085c9a(landing 6982241345)The body's sentence "It is absent where the database could not count them" no longer matches what lands. The revised seat answer on #35194 (6980624450) took route B as well, so
totalGroupsnow has two sources:COUNT(*) OVER ().totalGroupsis absent only where the count is not provable: an unknown dialect, a strategy that does not vouch, a grid that a cap or row guard cut, or an empty page after anoffset. When present, it equalsrowCounton an uncut answer.So the skill line to add is: when
truncated: true, answer "how many" fromtotalGroups, and whentotalGroupsis absent, say the total is unknown rather than readingrowCountas the total. The schema describe inpackages/spec/src/ai/dataset-tools.zod.tsonmainafter #35201 merges is the source text.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CazXu8zyYD5PC6J2u7
Claim: PM loop round 1 · area ai-1 (
lease:ai-1; the maintainer, verbatim, 2026-11-19 project chat: 「再开一个 ai 区」「暂时都只派 p1 p2 的卡」) · 2026-11-19T00:26ZSession:
session_01Utp6CazXu8zyYD5PC6J2u7Account:
os-billBranch:
claude/issue-35191-ask-skill-lines(one PR with #35191: the card asks for one sharedtotalGroupssentence foraggregate_recordsandquery_dataset)Worktree:
objectstack-issue-35191Domain:
domain:skillsSeat:
repo:objectstack#5File surface: as #35191's claim:
skills/objectstack-ask/SKILL.md, its evals, regeneratedpackages/mcp/src/ask-skill.generated.tsandcontent/docs/ai/skills-reference.mdx, root.changeset/. Stop on breach and report.Container & model:
S,mode:subagent,model: default — skills/** governed, seat contract review,effort: highClause-②: no
Metadata-protocol: none
Responsibility: the ask skill teaches
truncated: truebut not answering "how many" fromquery_dataset'stotalGroups(#35201), nor saying the total is unknown when it is absent; every MCP client answering a top-N questionThread-read: 6982266158
Premise: holds — on
origin/maincdb327fd: nototalGroupsinskills/objectstack-ask/SKILL.md; PR #35201 merged; scope note 6982266158 (two sources, absent only where not provable) is the wording source withpackages/spec/src/ai/dataset-tools.zod.tsSerial constraints cleared: none — only release PR #35129 touches the file
Pre-claim lane:
domain:skills(skills/objectstack-ask/**, governed)Pre-claim deps: PR #35201 merged; PR #35193 merged (shared sentence with #35191)
Prior rulings read: objectstack-ask,skill,teach,query_dataset,totalgroups,next,truncated → 31 hits; ADR-0063 Decision §2, ADR-0005 Decision §11, ADR-0005 Decision §3, ADR-0027 Decision §10, ADR-0027 Decision §11, ADR-0037 Decision §1, ADR-0058 D1 (term noise, none on point); thread: scope note 6982266158
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
ACCEPT → PR #35268 comment 6997608799 (head
f7e199c44de17985794c5b58f7204a4aa43d8402, L2 delta PASS 6997596097). Tier H: awaiting a maintainer merge or approval (reviewers os-zhuang, hotlong). 2026-11-19T02:16Z