Skip to content

objectstack-ask skill: teach query_dataset's totalGroups next to truncated #35203

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt

What

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.

Blocked until #35201 merges.

Origin

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.

Re-check: git grep -n "totalGroups\|truncated" origin/main -- skills/objectstack-ask/SKILL.md

Activity

  1. added
    finding
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

  3. added
    domain:skills
    pm:queue
    priority:p2
    on Nov 18, 2026
  4. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    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 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.

  5. added
    area:ai
    on Nov 18, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    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:26Z
    Session: session_01Utp6CazXu8zyYD5PC6J2u7
    Account: os-bill
    Branch: claude/issue-35191-ask-skill-lines (one PR with #35191: the card asks for one shared totalGroups sentence for aggregate_records and query_dataset)
    Worktree: objectstack-issue-35191
    Domain: domain:skills
    Seat: repo:objectstack#5
    File surface: as #35191's claim: skills/objectstack-ask/SKILL.md, its evals, regenerated packages/mcp/src/ask-skill.generated.ts and content/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: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the ask skill teaches truncated: true but not answering "how many" from query_dataset's totalGroups (#35201), nor saying the total is unknown when it is absent; every MCP client answering a top-N question
    Thread-read: 6982266158
    Premise: holds — on origin/main cdb327fd: no totalGroups in skills/objectstack-ask/SKILL.md; PR #35201 merged; scope note 6982266158 (two sources, absent only where not provable) is the wording source with packages/spec/src/ai/dataset-tools.zod.ts
    Serial 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

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    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

  9. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:skillsfindingpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions