Skip to content

docs(skills): objectstack-ask step 2 answers from the records when no candidate's dataset carries the asked grouping - #39328

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-39285-ask-no-grouping-skill
Dec 3, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-39285-ask-no-grouping-skill

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #39285

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用 AI 客户端问数的人,问「按某个维度拆分或排名」而候选指标所在的数据集没有这个维度时,以前照着技能会被反问「你指的是哪个指标」,现在直接拿到按记录算出的答案,并被告知哪个指标缺哪个分组。数据读取不完整时仍然照旧先问。
  • 为什么做:属于「AI 通过数据集回答业务问题」这条线。平台的行为今天已经改了,对外发布的问数技能还在教「一律反问」,这次补上技能这一半。
  • 出错会怎样:最坏是客户端在本该反问时直接去查了记录,答案开头仍会标明「非指标口径」。改的只是技能文字,撤回这个改动即可。
  • 要你做什么:审阅并批准这个改动(对外技能包,需人工合入)。

What changes

skills/objectstack-ask/SKILL.md, step 2, gains one table row under the row for a word with a measure among its candidates. It teaches the step the ruling on #39152 (option P, step 2; ruling record 7363768737) orders and ADR-0149 D3 records in its grouping note of 2026-12-03, in the words list_datasets writes in nextStep.note on main (groupingCheck in packages/services/service-analytics/src/dataset-next-step.ts):

Such a word in a breakdown or ranking, when nextStep.note lists its readings' groupings and no dataset there carries all it is split or ranked by (a date one keeps its calendar buckets) → Do not ask: step 4, naming each reading as a declared metric and the grouping its dataset lacks.

  • The grouping is read whole: "all it is split or ranked by". A dataset that carries one of two asked groupings does not carry it.
  • A date dimension keeps its calendar buckets, so "by month" beside a date is a grouping the dataset can give.
  • The row waits for the note's list. A partial: true answer carries no such list (the executor's groupingSentences writes nothing there), so the word is asked about as before. This is finding S1 of the contract review, fixed in the row's condition.
  • "Readings" is the note's word for the measure candidates, so a dimension candidate is not counted among them.
  • The row above it still asks in every other case, and the note's own "Otherwise:" hands over to that question. No measure is selected in either case.

packages/mcp/src/ask-skill.generated.ts is regenerated from the skill (node scripts/gen-mcp-ask-skill.mjs), so the page at GET /mcp/skill carries the same text.

skills/objectstack-ask/evals/metric-selection-fallback.json gains two cases, each with the note taken from a probe run of list_datasets on this branch:

  • Case 28: the booked amount by order status and by product category, beside a dataset that carries order status and a date. The expected answer asks nothing, reads the records, and says the dataset lacks product category. Its ask-back literals also refuse the single-candidate forms ("Did you mean", "the one you mean?").
  • Case 29: the same question on a partial: true answer, whose note lists no groupings. The expected reply is the question about the word and nothing else.

The reference answers of cases 9, 20, 21, 22, 24 and 26 no longer repeat the reasons cut from the skill.

The row is paid for inside the file

The ratchet row stays ['skills/objectstack-ask/SKILL.md', 2040], and scripts/check-skills-token-ratchet.mjs is not touched.

Reading Before (dc4a2cdb) After (5fbd110b)
skills/objectstack-ask/SKILL.md, lines 132 130
skills/objectstack-ask/SKILL.md, bytes 8185 8187
skills/objectstack-ask/SKILL.md, priced tokens 2040 2040
every SKILL.md in skills/, lines 2122 2120
every SKILL.md in skills/, bytes 119434 119436

The new row is 291 bytes. Five cuts, 289 bytes in all, pay for it, and the priced bytes land on 8160, which is the 2040 ceiling exactly. No instruction leaves with the cuts:

Cut Bytes Why nothing is lost
"You are connected to a live environment through its MCP tools, and the user asked for a figure or a list from its data." 120 It restated the skill's description and its title. On the served page it sits under the heading "Answering a business question", in a page about the environment's tools.
"this environment serves you no governed metrics." 51 A reason. The instruction stays: "No list_datasets among your tools: go to step 4."
"A grouping is not a number:" 28 A reason that restated the row's own left cell. The instruction stays: "Ask which number is meant."
", so the database ranks and cuts the groups" 45 A reason. The instruction stays: pass orderBy and limit: N.
", so the user can ask for the governed figure" 45 A reason. The instruction stays: add one line naming the dataset and its measures.

Tests

At head 5fbd110b, except where a line names d8005d20, the head before the review round.

  • skill-single-source-34686.test.ts in @objectstack/mcp, which holds the generated module equal to the skill: 1 file, 3 tests passed.
  • node scripts/gen-mcp-ask-skill.mjs --check: the module is current with the skill.
  • node scripts/check-skills-token-ratchet.mjs: skills/objectstack-ask/SKILL.md is 2040 tokens (ceiling 2040; headroom 0).
  • skill-evals --skills objectstack-ask --dry-run: the reader takes the bundle's 29 behaviour cases and 7 trigger cases, and refuses none.
  • At d8005d20: pnpm --filter @objectstack/mcp test, 89 files, 1662 tests passed; pnpm --filter @objectstack/mcp typecheck, exit 0. Neither was re-run on 5fbd110b: the round changed skill text, the generated string and an eval fixture.
  • No ablation: the diff changes skill text and an eval fixture, and no tested behaviour.

Gates

  • At 5fbd110b, each with exit 0: node scripts/check-skills-token-ratchet.mjs and its --self-test, node scripts/gen-mcp-ask-skill.mjs --check, pnpm --filter @objectstack/spec run check:skill-docs, pnpm check:skill-links, pnpm check:skill-identifier-liveness, pnpm check:skill-compatibility, pnpm check:skill-frame-sync, pnpm check:nul-bytes, pnpm check:doc-authoring, pnpm check:issue-citations, pnpm check:pm-skill-id-lint, pnpm check:role-word.
  • At d8005d20: node scripts/pm/dispatch-gates.mjs --ran read "73 derived famil(ies) accounted for — 71 run, 2 NOT-MEASURED". The 71 exited 0.
  • NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test, exit 3, reason: its fixture commit is outside the shallow clone. The scan itself exited 0.
  • NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3, reason: it needs a whole-workspace build. CI's Lint & Repo Gates runs it.
  • NOT MEASURED: the rest of the derived list on 5fbd110b, reason: a declared narrowing to the families that read the changed files. CI runs the farm on this head.

Live check

pnpm --filter @objectstack/scenarios skill-evals --case 'objectstack-ask/metric-selection-fallback#28,objectstack-ask/metric-selection-fallback#29' --model haiku --effort medium --repeats 1, on 5fbd110b, subscription login (oauth_token, no API key), served claude-haiku-5-5. One repetition, so it shows whether the behaviour appears and claims no rate.

Case with-skill no-skill
28, a complete answer pass fail (asks nothing and reads the records, but never names describe_object)
29, a partial: true answer pass pass

Notional cost the CLI reported: $0.01. Nothing was billed.

On the head before the review round (d8005d20), case 28 gave the same two results, and it also passed with the skill on the base text (dc4a2cdb, case copied in). The prompt of each case quotes the platform's note, and the skill says to follow it, so at this model and one repetition the note alone carries both behaviours: case 29 passes without the skill too. What the row changes is that the skill no longer says "ask" where the note says not to, and after the review round it no longer says "do not ask" where the note asks.

Review records

  • Contract review record 7378813195 on head d8005d20: PASS, with S1 (the row acted on a partial: true answer) and nits N1 to N4.
  • Delta contract review record 7379069601 on head 5fbd110b: PASS, S1 closed.

Acceptance notes

  • The card's re-check, grep -rn "ask back\|asks back\|candidates_only" skills/objectstack-ask/, still hits the eval file only. The row uses the words of step 2's other rows ("Do not ask").
  • The card asked for one eval case. Case 29 is one more, added in the review round to pin the partial-answer rule.
  • ADR-0149's note says where the client cannot tell, the question is owed. The row adds no sentence for it: the row above it is still the default, and nextStep.note ends its grouping sentence with "Otherwise:" before the question.
  • The note's four cases under "Not covered" (a measure hit, several hits, a filter or time window, candidates across datasets of which only some carry the grouping) keep their rows. The row's "no dataset there" leaves the fourth to the question, as the note does.

Verification

  • Read first, by risk: skills/objectstack-ask/SKILL.md (the new row at step 2, then the five cuts), skills/objectstack-ask/evals/metric-selection-fallback.json (cases 28 and 29), .changeset/39285-ask-skill-grouping-lacked.md. packages/mcp/src/ask-skill.generated.ts is generated.
  • Two-minute check: node scripts/gen-mcp-ask-skill.mjs --check && node scripts/check-skills-token-ratchet.mjs | grep objectstack-ask/SKILL.md. Expected: "is current with" and "2040 tokens (ceiling 2040; headroom 0)".

Generated by Claude Code

…'s dataset lacks

A word with a measure among its candidates, in a breakdown or ranking no
candidate's dataset carries in full, is not asked about: the records answer
(step 4) and each candidate is named as a declared metric with the grouping
its dataset lacks (ADR-0149 D3, the grouping note of 2026-12-03). Paid for
inside the file; packages/mcp/src/ask-skill.generated.ts regenerated.

Claude-Session: https://claude.ai/code/session_01Utp6CZyaZyJWdzKPF2U7EQ
Co-authored-by: Claude <noreply@anthropic.com>
…'s dataset carries only in part; changeset

Claude-Session: https://claude.ai/code/session_01Utp6CZyaZyJWdzKPF2U7EQ
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see

Coarse fallback — 12 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 6b2e596027c7d4f9b01efab0766e3cfd4f2ba7df → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 56738ee2b11773a35b8d3f8255a9d4e5c0013fc2 — the merge of head 5fbd110b69d5a7ec710a57b6e3b3c462a06b2f8d into base 6b2e596027c7d4f9b01efab0766e3cfd4f2ba7df, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 56738ee2b11773a35b8d3f8255a9d4e5c0013fc2 && git checkout 56738ee2b11773a35b8d3f8255a9d4e5c0013fc2
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 6b2e596027c7d4f9b01efab0766e3cfd4f2ba7df 5fbd110b69d5a7ec710a57b6e3b3c462a06b2f8d && git checkout -B drift-repro 6b2e596027c7d4f9b01efab0766e3cfd4f2ba7df && git merge --no-ff 5fbd110b69d5a7ec710a57b6e3b3c462a06b2f8d

node scripts/docs-audit/affected-docs.mjs --json 6b2e596027c7d4f9b01efab0766e3cfd4f2ba7df

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CZyaZyJWdzKPF2U7EQ

Contract-review-claim: session_01Utp6CZyaZyJWdzKPF2U7EQ · head d8005d2 · 2026-12-03T12:37Z

Zone ai-1203 of seat repo:objectstack@os-bill: an isolated CONTRACT_REVIEW_TIER reviewer is reading this head (skills/** face).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CZyaZyJWdzKPF2U7EQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d8005d205251fef47627f290324feed8dc642225
Local-runs: none
Scope: skills/objectstack-ask/SKILL.md, skills/objectstack-ask/evals/metric-selection-fallback.json + packages/mcp/src/ask-skill.generated.ts
Security-touching: no

PR #39328 for card #39285, the skill row ruled term 4 of record 7363768737 puts last ("the ADR note first, through the approvers; then the executor and the tool description; then the skill row"). Read for this record: the card body and its four comments (7371945387, 7373392886, the claim 7377416252, the dev report 7378562639); ruling record 7363768737 on #39152; the pull request body, its file list (four files) and its two comments (7378581216, the advisory docs-drift bot; 7378600913, the review claim); the net diff from merge base dc4a2cdb to the head (47 lines added, 20 removed, two commits); the check-runs on the head, read last; and, on origin/main (6b2e5960) and never checked out, ADR-0149 D3 with its note of 2026-12-03 on #39221, packages/services/service-analytics/src/dataset-next-step.ts (the header section on the grouping note, the en copy, groupingSentences, leftOutSentences, composeDatasetNextStep), DATASET_GROUPING_TERM_SENTENCE and LIST_DATASETS_DESCRIPTION in dataset-tools.ts, the candidate, note and partial descriptions in packages/spec/src/ai/dataset-tools.zod.ts, scripts/gen-mcp-ask-skill.mjs, renderAskSection in packages/mcp/src/skill-md.ts, the grader packages/qa/scenarios/src/skill-evals/grade.ts, the ratchet's counting rule and row, the whole skill at the head, the whole eval file at the head, and record 7370830784 on PR #39275 (the review of the executor's sentence). Nothing was built, run or re-run. The changeset is outside ④ and was read for ②. No file of this diff changed on main between the merge base and 6b2e5960.

① Derived judgments

  • No accept-set moves. The diff changes a published skill's text, the generated module that serves the same text at GET /mcp/skill, one eval fixture and a changeset. No schema, no tool input or output, no export. Right.
  • The published surface that moves is text, in two places with one source. Step 2 of skills/objectstack-ask/SKILL.md gains one table row and the file loses five passages; ASK_SKILL_DATA_LOOP carries the same six changes. I applied the generator's rule to the skill at the head (every line after the one H1, blank lines at either end dropped) and compared it with the string lines of the module at the head: 104 lines, 6920 bytes, identical. The skill has no backslash and no control character, so the literal escaping changes only the apostrophes. Right.
  • The skill hunk is exactly six changes. One added row and five cuts, the five the PR body lists; the first paragraph is re-wrapped and otherwise unchanged. Frontmatter, steps 3, 5 and 6 and triggers.json are untouched. Right.
  • The ratchet row is unchanged and the file is at it. scripts/check-skills-token-ratchet.mjs is not in the diff and its row reads ['skills/objectstack-ask/SKILL.md', 2040]. By the script's hand-audit rule: 8184 bytes at the head, less the 27-byte stamp line, is 8157, and ceil(8157 / 4) is 2040. The base was 8185, 8158, 2040. Headroom 0, row not raised, standing note 7216253348 not used. Right.
  • Tier. Two paths under skills/**, so the record is owed on the rules face at CONTRACT_REVIEW_TIER. No changed hunk teaches permission, sharing, credential, token or authentication behaviour: the membersWithheld and withheldFields lines are context and unchanged, and the cut "this environment serves you no governed metrics" is about which tools exist. Security-touching: no.

② Semver level

.changeset/39285-ask-skill-grouping-lacked.md takes patch on @objectstack/skills and @objectstack/mcp. Those are the two packages whose shipped bytes move (the skill catalog, and the module @objectstack/mcp builds the served page from); no third is moved. patch is right: text that teaches a behaviour main already has, no capability added or removed. The sibling of the same kind, .changeset/38870-ask-skill-field-term.md (the row for the note of 2026-12-01), took the same two packages at the same level. Clause-②: no and Metadata-protocol: none stand at line start in the changeset and in the PR body, and both are right: nothing a metadata author can write changes. Both packages are in the fixed group, so they release together with @objectstack/service-analytics, which carries the sentence the row leans on. Check Changeset concluded success.

③ Boundary flags

Check-runs, read last, at 2026-12-03T12:45Z. 55 runs on the head: 28 success, 18 skipped, 9 in_progress, none failed. Concluded green, among others: Check Changeset, Governed Surface Queue Guard, PR-body guards (claim · duplicate · Part-of · single-writer path), Lint & Repo Gates, Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · ESLint, the three scoped lint runs, Build Core, Type Check · workspace, Type Check · source gates, Type Check · debt ledger, Test Core shards 9 to 12 of 12, Live E2E UI. Not concluded: Type Check · consumer gates and Test Core shards 1 to 8 of 12. I did not establish which shard runs the pin that holds the generated module equal to the skill (packages/mcp/src/skill-single-source-34686.test.ts), so I do not count that gate verdict as in; I compared the two texts by hand (①). The verdict below is to be re-read against the 9 before it is adopted.

SQL push-down. The diff adds no query, no id materialisation and no join. Nothing to judge.

Author. The PR's user.login is objectstack-fleet[bot]; nobody else is named.

Flags, each answered. The report's open_questions is empty.

  • The live check ran although the dispatch said none was owed. One case, two trees, one repetition, notional $0.01. No objection; its reading is finding N1.
  • A temporary it.only probe in dataset-tools.test.ts, restored each time. Nothing of it is in the diff: four files, no test file. And the note it was run for is right: I composed the sentence for case 28's answer from the en copy on main (candidateHit, ownPhraseFirst, groupingCheck with one dataset and one measure, dateDimension, candidateTail, then unknownHit, leftFallbackTail, groupingHit), and the prompt's note equals it sentence for sentence, in that order.
  • origin/main moved from dc4a2cdb to 6b2e5960 and was not merged in. Confirmed: no commit in that range touches the skill, the eval file, the generated module, the generator, the ratchet script, the executor, the spec file or the ADR.
  • The gate loop went to the background; the comparison worktree was removed; the attribution comment and the commit trailers. Process notes for the seat. The check-runs answer the gates.
  • The out-of-scope note: case 28 passes on the base text too. Answered as N1.
  • Docs. content/docs/ai/connect-mcp.mdx already carries the rule in the door's words (lines 398 to 400 on main). The drift bot's comment lists nothing. No action.
  • Landing. The PR is a draft and its body asks the maintainer to approve it. Whether it lands by his hand or on the skills-wording arm is the seat's reading of AGENTS.md; this record supplies Security-touching: no and an open S1, so it does not land on this head either way.

④ Design judgment

File: skills/objectstack-ask/SKILL.md, the new row.

The row, left cell then right cell: "Such a word in a breakdown or ranking, and no candidate's dataset carries all it is split or ranked by (nextStep.note lists each one's groupings; a date keeps its calendar buckets)" and "Do not ask: step 4, naming each candidate as a declared metric and the grouping its dataset lacks."

Held against the executor's sentence on main (groupingCheck), the door's (DATASET_GROUPING_TERM_SENTENCE), the spec's candidates description and the ADR note, point by point.

  • Which word. "Such a word" is the row above it, "A word with a measure among its candidates". A measure hit (row 1) and several hits (row 2) keep their rows, which is the note's first and second uncovered cases. Right.
  • When. "in a breakdown or ranking" is the note's "broken down or ranked" and the door's "breaks the number down or ranks it". A question for one total never meets it, and the row above asks. Right.
  • The grouping is read whole, within one dataset. "no candidate's dataset carries all it is split or ranked by" is the door's clause almost word for word. A dataset with one of two asked groupings does not carry "all", so the condition is met; two groupings each carried by a different dataset meet it too; and where one of several datasets carries all of it the condition is false and the row above asks, which is the note's fourth uncovered case kept as written. Right.
  • The date. "a date keeps its calendar buckets" is short, but it stands beside "nextStep.note lists each one's groupings", and the note marks such a dimension "(a date: by day, week, month, quarter or year)". Read with the note, "by month" beside a date is carried and the question is owed. Right.
  • What the client does. "Do not ask: step 4" is the records route: step 4 describes the object, aggregates once and opens with the 非指标口径 line. "naming each candidate as a declared metric" is the note's "mention each reading as a declared metric that cannot be split that way", plural as the note requires. "and the grouping its dataset lacks" is what the card orders ("it says which grouping the dataset lacks"), and it is a fact the client has in hand from the listing. Right.
  • Nothing is selected. The row sends the client to step 4 and to no dataset query; "Use an option only once the user picks it" still stands below the table. The row does not repeat the note's "do not compute it", as the row for the note of 2026-12-01 does not either; step 4 computes from the object and the note says it. The ruling's ban holds.
  • Where the client cannot tell. The row's condition is definite, so a grouping the client cannot place leaves the row above in force. The note's "the question is owed" is implied by the order of the rows, as the executor implies it by "Otherwise:". Accepted, as N5 of record 7370830784 accepted it for the door.

One answer breaks it, and it is finding S1: a partial: true answer.

File: skills/objectstack-ask/SKILL.md, the five cuts, read as a client loading the whole package.

  1. "You are connected to a live environment through its MCP tools, and the user asked for a figure or a list from its data." The frontmatter description says both halves and the H1 says the first. On the served page the text stands under "## Answering a business question" in a page that lists the environment's tools. No instruction and no reason leaves. Right.
  2. "this environment serves you no governed metrics." The instruction stays ("No list_datasets among your tools: go to step 4"), and step 4 still orders the 非指标口径 line. On the served page the section renders only where the dataset tools are taught, so the line is for the installed skill alone. Right.
  3. "A grouping is not a number:" The row's left cell already says "No word for a thing measured, only grouping or filter words", and the platform's own note says "equals a grouping, not a number" on the answer. The instruction stays. Right, with a stale sentence left in case 24 (N3).
  4. ", so the database ranks and cuts the groups" The instruction stays whole: orderBy with "an aggregation alias or a group key" and limit: N, after the sentence that forbids paging query_records. Right.
  5. ", so the user can ask for the governed figure" The instruction stays ("add one line naming the dataset and its measures"). This is the one cut that takes something a reader could use: the line's purpose. I accept it. The line is still written, and under the new row the invitation would be wrong for the grouping asked, where the row itself says what to tell the user. Cases 9, 20, 21 and 22 still give the purpose in their expected_output (N3).

No cut drops a taught behaviour.

File: skills/objectstack-ask/evals/metric-selection-fallback.json, case 28.

Shape: id, prompt, expected_output, files, assertions with must_contain, must_contain_any and must_not_contain, the keys of case 27 beside it. The prompt gives a dataset entry, matches, candidates in the pointer shape { term, dataset, member }, nextStep with decision: 'candidates_only' and terms: ['booked'], and the note as the platform writes it (③). candidates_only is what the precedence reports for one asked word beside two no_measure words. The expected output says: nothing is asked; describe_object then one aggregate_records grouped by both fields, or the data-cannot-answer line of step 5 if the object has no such field; the 非指标口径 opening; Booked amount mentioned as a declared metric that cannot be split that way; product category named as the grouping the dataset lacks; no dataset query "not even by order status alone", and no measure selected. That is the note's partial-grouping example (status and product category beside a dataset that carries status), and the card's "read the grouping whole". The grader is mechanical (grade.ts: literal, case-sensitive substrings; expected_output is neither sent nor graded), and the assertions hold the records route (describe_object, aggregate_records), the mention (Booked amount), the label (governed metric or 非指标口径) and no dataset query (query_dataset(). Two weaknesses are N1 and N2.

File: packages/mcp/src/ask-skill.generated.ts. Equal to the skill by the generator's rule (①). It serves the same row, so S1 applies to the served page as it does to the skill.

Findings.

S1 (should-fix) — On a partial: true answer the row tells the client to skip a question the platform rules is owed. Three texts on main say so. The ADR note: "On such an answer the door does not write the sentence, and the term is asked about as before." The spec's candidates description, which the card names as governing text: "On a partial: true answer the term is asked about as before." The executor: groupingSentences returns nothing when the answer is partial, because "a dimension missing from an incomplete catalogue may be one the caller can group by, so the absence proves nothing". The row's condition is the client's to judge and is not tied to the note's sentence: the parenthesis says where the groupings are listed, not that the row waits for that list. A partial answer still lists each entry's dimensions, so a client that reads the table can judge the condition there, skip the question, and tell the user the dataset "lacks" a grouping that may only be missing from an incomplete listing. The skill's one sentence about a partial answer ("you repeat it when you fall back") does not hold the row back. On that same answer the note writes the question, and the skill says to follow the note, so the skill then gives two orders that disagree. That is the state the PR body says this row removes, the other way round, and on the base text the two agreed (both asked). It is also the only answer the platform serves on which the row acts without the note's sentence beside it. Not a must-fix: it needs a degraded read; the note on that answer asks and the skill orders the client to follow it; and an answer given anyway is still labelled and repeats the warning. This is S1 of record 7370830784 again, which found the same rule missing from the spec text and had it added there. Fix in words, inside the 2040 row: tie the condition to the list (for example "by the groupings nextStep.note lists", with none listed meaning the row above), or say in the partial: true sentence that such a word is then asked about. A case on a partial: true answer (no grouping sentence in the note, the question expected) would pin the fix, and it is a case where the old and new texts can differ (N1).

N1 (nit) — Case 28 does not tell the old skill text from the new, as the dev reports: with the skill it passes on this head and on the base with the case copied in, and the arm without the skill fails for not naming describe_object, not for asking. The prompt quotes the note, the note carries the instruction, and both texts say to follow it. I grade it a nit: the card asks for "one eval case that exercises the behaviour" and this one does; every neighbour that quotes a note (20, 21, 24 to 27) has the same property; and on every complete answer the platform writes that sentence, so no case faithful to the platform can separate the row from it. The case S1 asks for is the exception. One repetition on one small model claims no rate, and the dev says so.

N2 (nit) — Case 28's literals are loose in two places. The ask-back is forbidden as "Do you mean", "do you mean", "Which one do you", "which one do you": the skill's own form for a single candidate ("ask whether it is the one meant", so "Did you mean …", "Is … the one you mean?") hits none of them. A reply that only asks still fails on describe_object and aggregate_records; a reply that asks and also describes the records route would pass. And "names the grouping the dataset lacks" is held by product category, which the question itself supplies. Cases 21 and 26 assert in the same way.

N3 (nit) — Two cuts leave expected_output text behind in the same file. Case 24 says "The skill's table says the same: … and a grouping is not a number", which the table no longer says after cut 3. Cases 9, 20, 21 and 22 end "so the user can ask for the governed figure" (and case 26 "so the user can ask for that figure"), a purpose the skill no longer states after cut 5. expected_output is neither sent nor graded, so no result moves.

N4 (nit) — The row says "no candidate's dataset" and "each candidate", where the note, the spec and the executor read the measure candidates only: a word with a measure among its candidates can also have a dimension candidate in another dataset. Read literally with such a dataset carrying the grouping, the row keeps the question and the note on the answer drops it; and "each candidate as a declared metric" takes in a dimension. The note governs and the error is toward asking. These are N1 and N4 of record 7370830784, carried over from the door's sentence the row follows.

Closing the round: S1 is open on this head and earns a delta review of its fix. The nits are in governed text, so a fix to any of them moves the head; N3 and N4 can ride with the fix for S1 or be left, N1 is answered by the case S1 asks for, and N2 can be left. The 9 check-runs named in ③ had not concluded when this record was written.

Implemented-by: claude/issue-39285-ask-no-grouping-skill
Reviewed-by: session_01Utp6CZyaZyJWdzKPF2U7EQ

VERDICT: PASS

… a partial answer still asks

The row's condition is tied to the groupings nextStep.note lists, so on a
partial: true answer, where the note lists none, the word is asked about as
before (ADR-0149 D3, the grouping note of 2026-12-03). Eval case 29 pins it;
case 28 also refuses the single-candidate ask-back forms; six reference
answers drop the reasons cut from the skill.

Claude-Session: https://claude.ai/code/session_01Utp6CZyaZyJWdzKPF2U7EQ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CZyaZyJWdzKPF2U7EQ

Contract-review-claim: session_01Utp6CZyaZyJWdzKPF2U7EQ · head 5fbd110 · 2026-12-03T12:51Z

Zone ai-1203: the same isolated CONTRACT_REVIEW_TIER reviewer reads the delta answering record 7378813195.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CZyaZyJWdzKPF2U7EQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5fbd110b69d5a7ec710a57b6e3b3c462a06b2f8d
Local-runs: none
Scope: skills/objectstack-ask/SKILL.md, skills/objectstack-ask/evals/metric-selection-fallback.json + packages/mcp/src/ask-skill.generated.ts
Security-touching: no

Delta record for PR #39328 (card #39285), answering record 7378813195 on head d8005d20. Read for this record: the dev's delta report on the card (7378940589); the pull request's comments since that record (the claim 7378978983); the delta d8005d20..5fbd110b (one commit, four files, 23 lines added, 12 removed; main not merged, merge base still dc4a2cdb); the whole row and the whole of step 2 at the new head; cases 28 and 29 and the six edited reference answers; and, on origin/main (6b2e5960, unchanged since the first record), the executor's en copy and composeDatasetNextStep, groupingSentences and partialTail in packages/services/service-analytics/src/dataset-next-step.ts, and how dataset-tools.ts serves partial. Nothing was built, run or re-run. Everything the first record judged and this commit does not touch stands as judged there: the five cuts, the semver level, the reading of the row against the ADR note.

① Derived judgments

  • No accept-set moves. The commit changes one table row of the skill, the same line of the generated module, one eval file and the changeset's prose. Right.
  • The generated module equals the skill at the new head. By the generator's rule (every line after the one H1, blank lines at either end dropped) against the module's string lines: 104 lines, 6923 bytes, identical. The one changed line carries the same row in both. Right.
  • The ratchet row is unchanged and the file is exactly at it. scripts/check-skills-token-ratchet.mjs is not in the delta and its row still reads ['skills/objectstack-ask/SKILL.md', 2040]. The file is 8187 bytes; less the 27-byte stamp line that is 8160, and 8160 / 4 is 2040 with nothing over. Headroom 0: the next byte added to this file costs a token. Right.
  • The eval file's delta is what the report lists and nothing else. Compared case by case: expected_output of cases 9, 20, 21, 22, 24 and 26 changes; assertions.must_not_contain of case 28 gains three literals; case 29 is new. No prompt of an existing case changes, and no other assertion. Right.
  • Tier and security. Same face as before. The new row and case 29 speak of an incomplete catalogue (partial: true, warning), which is a degraded read and not a permission: no hunk teaches permission, sharing, credential, token or authentication behaviour. Security-touching: no.

② Semver level

Unchanged and still right: patch on @objectstack/skills and @objectstack/mcp, Clause-②: no, Metadata-protocol: none, all three lines untouched by the commit. The changeset's prose now describes this head: the row waits for the note's list, a partial: true answer is asked about as before, the file goes from 8185 to 8187 bytes at 2040 tokens, and two cases are added. Its one-line summary still says "no candidate's dataset", which is a fair short form. Check Changeset concluded success on this head.

③ Boundary flags

Check-runs, read last, at 2026-12-03T12:54Z. 54 runs on the head: 14 success, 18 skipped, 22 in_progress, none failed. Concluded green: Auto Label, Check Changeset, Check PR Size, Dogfood Regression Gate, Flag docs affected by code changes, Governed Surface Queue Guard, Lint · ESLint, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, PR-body guards (claim · duplicate · Part-of · single-writer path), Plan Test Core shards, Test UI, Type Check · debt ledger, filter. Not concluded: Build Core, Lint · CI, release & engine gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Live E2E UI, Test Core shards 1 to 12 of 12, Type Check · consumer gates, Type Check · source gates, Type Check · workspace. The gates that answer this delta (the token ratchet, the generator check, the skill gates, the module pin test) are among the 22, so their verdicts were not in. I checked the ratchet arithmetic and the module's equality by hand (①). The verdict below is to be re-read against the 22 before it is adopted.

SQL push-down. The delta adds no query, no id materialisation and no join. Nothing to judge.

Author. The PR's user.login is objectstack-fleet[bot]; nobody else is named.

Flags, each answered. The delta report's open_questions is empty.

  • The PR body still describes head d8005d20. Confirmed: it quotes the old row ("no candidate's dataset … nextStep.note lists each one's groupings"), gives 8184 bytes, says "At head d8005d20", names case 28 alone and carries the first round's live-check table. This is a body-only item and no contract finding: the tree is what this record judges. The seat owes the rewrite, as the dev says, and the maintainer reads that body.
  • No live reading on this head. The report says so: "case 29 has NOT been run against a model", and case 28 was read once on the first round, against the row's earlier wording and before its three new literals. The row's wording is new and os-dev.md owes a live check for a skills/** text diff before the report. I escalate this to the seat and do not grade it as a design finding: the text is right against the platform (④), and whether one repetition of chore(deps)(deps-dev): bump @types/node from 20.19.30 to 25.0.9 #28 and chore(deps)(deps-dev): bump @vitest/coverage-v8 from 2.1.9 to 4.0.17 #29 on this head is owed before the landing is the seat's acceptance. It would cost about what the first round's did.
  • The temporary it.only probe, used once more and restored. Nothing of it is in the delta: no test file. The note it was run for is right (④, case 29).
  • The worktree re-added on the existing branch; main not merged. Process notes. Confirmed that no commit on main since the merge base touches a file of this diff or a file the row is judged against.

④ Design judgment

File: skills/objectstack-ask/SKILL.md, the row at the new head.

Left cell: "Such a word in a breakdown or ranking, when nextStep.note lists its readings' groupings and no dataset there carries all it is split or ranked by (a date one keeps its calendar buckets)". Right cell: "Do not ask: step 4, naming each reading as a declared metric and the grouping its dataset lacks."

  • The row now waits for the note's sentence. Its condition has two halves joined by "and", and the first is that the note lists the readings' groupings. That is the executor's groupingCheck sentence ("these readings can be grouped only by …"), which groupingSentences writes on a complete answer and never on a partial one. With no such list the row does not apply and the row above it asks, which is the ADR note's "the term is asked about as before" and the spec's sentence for partial: true. The skill no longer gives two orders on that answer: the table and the note both ask.
  • It also follows the executor wherever else no sentence is written. A note whose reported case is several_measures names no left-out word and so lists nothing for a word with a measure among its candidates: the row waits, and the row above asks. A server that writes no such sentence at all leaves the skill asking, as that server's note does. In each of these the skill does what the answer in hand says.
  • "no dataset there" fixes which datasets are read. "There" is the note's list, and the list holds the datasets of the word's measure candidates only (groupingSentences filters on measureCandidates). A dataset that offers the word a dimension only is no longer read by the row. The whole-grouping reading is kept ("carries all it is split or ranked by"), within one dataset ("no dataset"), so the note's fourth uncovered case still falls to the question.
  • "readings". It is the note's own word in the sentence the row points at ("these readings", "mention each reading as a declared metric"), and the skill's step 1 already calls candidates "possible readings". The row now speaks as the executor does. What is left of the first record's N4 is the executor's own noun, which record 7370830784 left as its N4.
  • On a complete answer nothing changes. The note always carries the list there, so the row applies exactly where it did on d8005d20: case 28's answer still meets it.
  • I tried to break it with: a partial answer whose listed dimensions lack the grouping (the row waits; asked); a partial answer whose listed dimensions carry it (asked, as before); a complete answer with one of two groupings (the row applies; records); a complete answer with "by month" beside a date dimension (carried; asked); a matched measure beside such a word on a complete answer (the note lists for the left-out word; the row applies to that word and the measure is computed). Each agrees with the executor's text for that answer.

File: skills/objectstack-ask/evals/metric-selection-fallback.json.

  • Case 29's note is the executor's. For terms booked, order status, product category with partial: true, composeDatasetNextStep reports candidates_only for booked and writes, in this order: candidateHit, ownPhraseFirst, nothing from groupingSentences, candidateTail, then for the left-out words unknownHit and leftFallbackTail for product category and groupingHit for order status, and last partialTail. I composed each from the en copy on main, and the prompt's note equals the result sentence for sentence, with no grouping sentence and with "The catalogue was incomplete (see warning): …" closing it. dataset-tools.ts serves partial: true with a warning and still serves entries and candidates on such an answer, so the fixture is an answer the platform can give. decision and terms are right.
  • Case 29's expected reply is the platform's. The word is the user's own, a measure is among its candidates, the note asks, and nothing is computed "until they answer". The reply is the question alone, naming Booked amount, Order book and the description, with no tool call and no claim that the dataset cannot be split by product category. That is the ADR note for an incomplete answer, and the skill's "the reply is the question alone". Its shape and assertions follow case 27 beside it. One looseness is N6.
  • Case 28. must_not_contain gains "Did you mean", "did you mean" and "the one you mean?". A correct answer has no reason to write any of them. Its prompt and reference answer are unchanged and still hold against the row.
  • The six reference answers. Cases 9, 20, 21 and 22 drop ", so the user can ask for the governed figure", case 26 drops ", so the user can ask for that figure", and case 24 no longer says the table says a grouping is not a number. Each now says only what the skill at this head says.

File: packages/mcp/src/ask-skill.generated.ts. Equal to the skill (①); the served page carries the same row.

Findings.

S1: closed

No must-fix, no should-fix.

The first record's nits: N1 is answered by case 29, the one answer on which the row and the earlier texts can differ, though it has no live reading yet (③). N2 is closed for the ask-back literals; the product category literal is left, as graded. N3 is closed. N4 is closed for the datasets read; the noun that remains is the executor's.

N5 (nit) — "(a date one keeps its calendar buckets)" is hard to parse: "one" has "dataset" as its nearest noun and means a date grouping. The meaning is recoverable, since the row applies only when the note's list is present and the list marks such a dimension "(a date: by day, week, month, quarter or year)" itself. A plainer form costs bytes the file does not have (headroom 0). Left as an accepted deviation.

N6 (nit) — Case 29 forbids the records route only as calls written with a parenthesis (describe_object(, aggregate_records(, query_dataset(). A reply that takes the records route in words, names Booked amount and Order book and holds any question mark would pass. Case 27 asserts in the same way and adds 非指标口径; the English label cannot be forbidden here without failing a correct question that calls Booked amount a governed metric. Left, or tightened with the live reading if the seat orders one.

Closing the round: nits only, so this is the final round for this head. A fix to N5 or N6 would be in governed text and would move the head. The 22 check-runs named in ③ had not concluded when this record was written, and the PR body is the seat's to bring to this head.

Implemented-by: claude/issue-39285-ask-no-grouping-skill
Reviewed-by: session_01Utp6CZyaZyJWdzKPF2U7EQ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CZyaZyJWdzKPF2U7EQ

Zone L1 ACCEPT — zone ai-1203 of seat repo:objectstack@os-bill, card #39285, head 5fbd110b69d5a7ec710a57b6e3b3c462a06b2f8d. Tier H (skills/**): handed to the seat for the hand-off to the approver; the zone does not land.

席位核对

  • Shape: draft against main; 4 files (skills/objectstack-ask/SKILL.md, skills/objectstack-ask/evals/metric-selection-fallback.json, generated packages/mcp/src/ask-skill.generated.ts, .changeset/39285-ask-skill-grouping-lacked.md), all inside claim 7377416252; body rewritten for this head (attribution line, Fixes #39285, Clause-②: no, Metadata-protocol: none); patch changeset on @objectstack/skills + @objectstack/mcp.
  • Premise measured: the row teaches the executor's groupingCheck sentence on main (whole grouping within one dataset, date keeps calendar buckets, step 4 records route, names the lacking grouping, no measure selected) and, after S1, applies only when nextStep.note lists the readings' groupings, so a partial: true answer keeps the ask (case 29). Isolated L1 ACCEPT at d8005d2 (nits only); delta d8005d2..5fbd110 read against the L2 delta record.
  • Gates: contract review 7378813195 (PASS, S1) → delta 7379069601 (PASS, S1 closed, nits N5/N6 accepted), both CONTRACT_REVIEW_TIER. Ratchet skills/objectstack-ask/SKILL.md 2040 tokens, ceiling 2040, row unchanged; gen-mcp-ask-skill.mjs --check current; mcp single-source test green; eval dry-run 29 behaviour + 7 trigger cases. CI at head: 41 success, 20 skipped, 0 failed (read 13:21Z).
  • Accepted deviations: cases 28 and 29 quote the platform note, so at haiku × 1 the live check passes no-skill on case 29 and fails no-skill on case 28 only on describe_object — neither case separates old skill text from new (same property as neighbours 20–27); the row removes a contradiction (skill said ask where the note says not to). Full mcp test/typecheck and 73-family reconciliation measured on d8005d2; on 5fbd110 the skill-gate subset only (body says so).
  • Out of scope: none filed. Skills-docs: n/a (this is the skills follow-up of MCP 问数: a measure candidate whose dataset cannot give the asked grouping is not asked about — the labelled fallback answers and mentions the measure (booked_by_category, top_claimants) #39221).
  • Landing: Tier H — seat record + pm:awaiting-merge + review request to the approver; seat lands after approval.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

维护者速读

席位核对

ACCEPT · head 5fbd110b69d5a7ec710a57b6e3b3c462a06b2f8d · repo:objectstack@os-bill

  1. Shape: 4 files, +64/−26: skills/objectstack-ask/SKILL.md (one row), its evals (cases 28 and 29), the generated packages/mcp/src/ask-skill.generated.ts, and one changeset. All within claim 7377416252.
  2. Premise measured: per zone ACCEPT 7379703416, the row matches the executor's groupingCheck sentence on main (fix(analytics): list_datasets no longer asks about a measure whose dataset cannot give the grouping the question asks for #39275), and after S1 it applies only when nextStep.note lists the readings' groupings, so a partial: true answer keeps the ask (case 29).
  3. Gates:
    • Check-runs at this head: 41 success, 20 skipped, 0 failed.
    • Contract review at CONTRACT_REVIEW_TIER: PASS 7378813195 with S1, then delta PASS 7379069601 at this head with S1 closed.
    • Ratchet row unchanged at 2040; gen-mcp-ask-skill.mjs --check is current.
  4. Accepted deviations: nits N5 and N6. Cases 28 and 29 do not separate the old skill text from the new at haiku × 1, which is the same property as cases 20–27; the row's value is that it removes a contradiction.
  5. Out of scope: none. This PR is the skills follow-up of MCP 问数: a measure candidate whose dataset cannot give the asked grouping is not asked about — the labelled fallback answers and mentions the measure (booked_by_category, top_claimants) #39221.
  6. Landing: governed. It is Tier H because the low-risk skills arm excludes the generated packages/mcp file. Review is requested from os-zhuang, and the seat lands after approval. On merge, skills/objectstack-ask: teach step 2 of ruling P (no ask-back when the candidate's dataset lacks the asked grouping) #39285 closes.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

Review request: 2026-12-03T13:25Z · os-zhuang, please approve at head 5fbd110b69d5a7ec710a57b6e3b3c462a06b2f8d. Seat ACCEPT above; contract review delta PASS 7379069601 at this head. Governed as skills text. The seat lands it after your approval.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 3, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 3, 2026 13:26
@os-zhuang
os-zhuang marked this pull request as ready for review December 3, 2026 13:27
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 68e76fa Dec 3, 2026
69 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-39285-ask-no-grouping-skill branch December 3, 2026 13:55
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills/objectstack-ask: teach step 2 of ruling P (no ask-back when the candidate's dataset lacks the asked grouping)

3 participants