Skip to content

fix(analytics): a grouping or time word with only a near dimension does not stop a matched measure - #35156

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35005-grouping-candidate-no-ask
Nov 18, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35005-grouping-candidate-no-ask

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Part of #35005

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:list_datasets 的 nextStep.note 不再为「候选全是维度」的词追问。「按行业看销售额」里 销售额 精确命中、「按行业」只靠近维度 行业,现在 note 直接让模型计算 销售额,并把 行业 作为「可能的分组」点名,明确说不要就它追问;候选里有指标的词(如单独的「销售」)照旧追问、不计算。list_datasets 工具说明和 MCP initialize 规则用同一句话写明这条限定。
  • 为什么改:datasets: an ask-back is owed only for the word being measured — a grouping or time word with a candidate does not stop a matched measure #35005 卡面 p1。普通问法(按行业看销售额、本季度营收)因为分组词/时间词碰巧靠近某个维度,被反问一句,用户体验差;只有被度量的那个词才值得追问。
  • 风险与回滚:只改 note 文案与两处说明文字。decision、terms、matches、candidates 对任何输入都与改前一致(规范对 candidates_only 的定义不动)。回滚即 revert 本 PR。
  • 先看:packages/services/service-analytics/src/dataset-next-step.ts(readTerm 的 groupingOnly 与 candidates_only 分支);packages/services/service-analytics/src/dataset-tools.ts(说明文字);packages/mcp/src/mcp-server-runtime.ts(DATASET_SELECTION_RULE)。
  • 两分钟验证:pnpm --filter @objectstack/service-analytics exec vitest run src/__tests__/dataset-tools.test.ts,预期 79 个测试全过,其中 [#35005] 一组 7 个覆盖「按行业+销售额 不追问」与「单独 销售 仍追问」。
  • 需要你做的:无,席位落地;ADR-0149 D3 修订注与 skills/objectstack-ask 的对应句子由单独的 domain:skills 卡改(治理面,不在本 PR)。

What changes

  • dataset-next-step.ts: readTerm keeps the candidate kind (it was already on the member memberOf returns; the type dropped it) and marks a candidates_only reading whose candidates are all dimensions as groupingOnly. The note offers such a word as a possible grouping (groupingCandidateHit + groupingCandidateTail, four locales) and never emits the ask-first sentence for it, under one_measure (left-out words) and under candidates_only (reported words). A word with a measure among its candidates is unchanged: asked about beside a matched measure, and candidates_only with compute-nothing when nothing matched. When every reported candidates_only word is grouping-only (a lone "this quarter"), the note offers the grouping and adds the existing groupingTail (ask which number is meant), as for a word that equals a dimension.
  • Decision values, terms, matches and candidates are unchanged for every input. The spec defines candidates_only as "matched no member and has entries in candidates", so a lone grouping-only word stays candidates_only (see Acceptance notes).
  • LIST_DATASETS_DESCRIPTION and DATASET_SELECTION_RULE both now carry the identical sentence "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure.", and scope the ask-back to "a word with a measure among its candidates".
  • One patch changeset for @objectstack/service-analytics and @objectstack/mcp.

Tests

  • service-analytics dataset-tools.test.ts: a new [#35005] describe over a dataset with one 销售额 / Revenue measure, a Churn Rate measure, and Industry (行业) / Quarter (季度) dimensions. Pins: 「按行业」+销售额 is one_measure, no ask-first sentence, grouping offered, candidates still lists dimensions.industry (four locales); "this quarter"+"revenue" and 本季度+销售额 likewise; bare 销售 still candidates_only with compute-nothing (four locales); revenue+churn still asks about churn (four locales); a word near both a measure and a dimension keeps the question; both kinds at once; a lone "this quarter" keeps candidates_only, offers the grouping and asks which number. Plus a description pin for the scoped sentence.
  • mcp initialize-selection-rule-34686.test.ts: the initialize rule and the real list_datasets description (from getDatasetToolDefinitions) both contain the scoped sentence, and the unscoped form is gone from both.
  • Ablation (one-time, not kept): the kind check const groupingOnly = decision === 'candidates_only' && offered.every((m) => m.kind === 'dimensions'); replaced by const groupingOnly = false; via scripts/ablation-replace.mjs (anchor 1 to 0, blob bfd1844761e7 to df278719790e): 4 of the 7 new pins red (the grouping ones); the bare-measure, churn and mixed-kind controls stayed green as they should. Restored: blob equals HEAD, git diff HEAD empty. The suite imports the executor by relative path, so no dist is involved.

Acceptance notes

  • Open sub-part, not taken: reading a lone grouping-only word as no_measure instead of candidates_only. The spec's DatasetNextStepDecision describes no_measure as "has no entry in candidates", so that relabel would change the published meaning of a decision value. This PR keeps the decision and scopes only the note; whether to relabel is a question for the seat.
  • The ADR-0149 D3 amendment note still says "With candidates, the AI asks in rule 3's form and acts on none", and skills/objectstack-ask/SKILL.md step 2 still asks for every word with candidates. Both are governed surfaces left to the follow-up domain:skills card named in the claim.
  • No dataset eval set exists in service-analytics. The scenario cards (docs/qa/scenarios/*.json) belong to the eval seat and are not touched here.

Verification

Local runs at 9c885eb
  • pnpm --filter '@objectstack/mcp^...' build: VERDICT command-exit 0.
  • pnpm --filter @objectstack/service-analytics test: Test Files 218 passed (218), Tests 5592 passed, 335 skipped.
  • pnpm --filter @objectstack/mcp test: Test Files 71 passed (71), Tests 1267 passed (1267).
  • pnpm --filter @objectstack/service-analytics typecheck and pnpm --filter @objectstack/mcp typecheck (which includes check:test-typecheck): exit 0. Both edited test files are in their package's tsc program (--listFiles).
  • dispatch-gates --commands derived 70 families; all 70 run, --ran reconciliation: 69 exit 0, 1 NOT MEASURED (check:dual-build-cjs-loads, PREREQUISITE NOT MET: it reads every package's dist and only the mcp closure was built). CI runs it.
  • overlap-check --branch=HEAD: VERDICT clean exit 0 (origin/main and feat(mcp): the open draft door saves and discards drafts, and each save answers with its publish verdict #35103 merge cleanly).

Generated by Claude Code

…es not stop a matched measure

The list_datasets nextStep note asked the user about any word with
candidates, including a word whose candidates are all dimensions, so
「按行业看销售额」 got a question back. Such a word is now offered as a
possible grouping and never asked about; a word with a measure among its
candidates keeps the question. The list_datasets description and the MCP
initialize rule state the scoped rule in the same words.

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

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/mcp, @objectstack/service-analytics, touching 13 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/deployment/self-hosting.mdx (via COPY (symbol, a top-level const object))
What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 19 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 348340734a935b304af47824cb20ece502869757 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 6470a6dc6f986504b2cb2589a7078223587354d7 — the merge of head 9c885ebac598533a4c07ba9ef2709bc28147b1c8 into base 348340734a935b304af47824cb20ece502869757, 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 6470a6dc6f986504b2cb2589a7078223587354d7 && git checkout 6470a6dc6f986504b2cb2589a7078223587354d7
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 348340734a935b304af47824cb20ece502869757 9c885ebac598533a4c07ba9ef2709bc28147b1c8 && git checkout -B drift-repro 348340734a935b304af47824cb20ece502869757 && git merge --no-ff 9c885ebac598533a4c07ba9ef2709bc28147b1c8

node scripts/docs-audit/affected-docs.mjs --json 348340734a935b304af47824cb20ece502869757

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 348340734a935b304af47824cb20ece502869757 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Final green head · 2026-11-18T08:56Z: 9c885ebac598533a4c07ba9ef2709bc28147b1c8 (dev report 6973197402 on #35005). CI: 37 success, 16 skipped, 0 red. Not governed (check-governed-merges --pr 35156), +286/-28. Owed: L1-b, then the seat contract review at this head.

Seat reading of the dev's open question (a lone word whose candidates are all dimensions keeps decision: candidates_only): option A, kept. The decision values follow their published definitions in packages/spec; only the note is scoped, so Clause-②: no holds. Relabelling would be a contract change, not this card.

The governed copies of the rule (ADR-0149 D3 note, skills/objectstack-ask/SKILL.md) are follow-up #35158; they are not in this PR.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Contract-review-claim: session_01JQwxbWDsbbJizuYnDwBxT8 · head 9c885ebac598533a4c07ba9ef2709bc28147b1c8 · 2026-11-18T08:56Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXr9wLAH24MEgxaLud

席位核对

L1 full · REWORK (PR body only; the code has nothing to fix) · Head-sha: 9c885ebac598533a4c07ba9ef2709bc28147b1c8 · card #35005 · read 2026-11-18T09:01Z

Net diff against merge base aef42cba4e: 6 files, +286 / -28, one commit. Not governed. Draft, targets main. Merges cleanly onto origin/main a6cf988eb3, and main has not touched the three source files since the base.

Must fix

  • M1. Fixes #35005 must become Part of #35005. The card's second Done-when item is: "The door strings, the ADR note and the skill state the scoped rule in the same words." This PR changes the two door strings only. The claim (6972020316) correctly kept docs/adr/** and skills/** off an implementation card's file surface, and Ask skill and ADR-0149 D3: scope the ask-back to words with a measure candidate #35158 carries them. That means this PR lands the implementable half of the card, and the checklist rule is Part of. With Fixes, the merge would close a p1 card whose ADR and skill sentences still contradict the door. Use the safe spelling, with no verb next to the card number, and write the closing arrangement in a comment. The seat can make this edit; the code needs no dev round. After the edit I re-read the body only.

Should fix (seat-side, not this diff)

Checked, holds

  • The narrowing reading (claim 6972020316) follows the card's Why and Done-when. Only words whose candidates are all dimensions change. A word with a measure among its candidates is still asked about beside a matched measure, and still computes nothing when nothing matched. It is recorded in the claim, and it does not take the literal first clause of Scope.
  • Ruling [Decision] The published skills: who reviews a change, how they are verified, one catalog or two for code-first and MCP, and the E2 premise reading #34691 F1 = B ("near candidates for asking back only, never selected; what counts as a match does not change"). readTerm still decides from matches and offered exactly as before. The only addition is groupingOnly = decision === 'candidates_only' && offered.every((m) => m.kind === 'dimensions'), and kind was already on what memberOf returns. decision, terms, matches and candidates are unchanged for every input. The note offers the dimension; the executor never selects it.
  • Spec: DatasetNextStepDecision says "Each value names what the platform FOUND … none names what a reader then does … the text that carries it to a model is the executor's". A note-only change leaves every published decision definition true. Open question option A (a lone grouping-only word stays candidates_only) is consistent with the published no_measure = "has no entry in candidates". Clause-②: no and Metadata-protocol: none are right.
  • Sentence paths in composeDatasetNextStep.
    • Under one_measure, asked words come first with leftCandidateTail, then the offered groupings with groupingCandidateTail, then unknown words and grouping-hit words.
    • Under candidates_only, candidateTail ("compute nothing until they answer") is emitted only when at least one reported word has a measure candidate. When every reported word is grouping-only, groupingTail ("ask which number") is emitted once, and leftOutSentences never adds a second.
    • The four locales carry the same two new strings.
  • Door strings. LIST_DATASETS_DESCRIPTION and DATASET_SELECTION_RULE carry the identical sentence "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." Both scope the ask-back to "a measure among its candidates". The mcp test reads the real description from getDatasetToolDefinitions(), so the two doors cannot drift apart.
  • Tests.
    • The 7 [#35005] pins cover 按行业 + 销售额, this quarter / 本季度, bare 销售, revenue + churn, a word with mixed candidates, both kinds at once, and a lone grouping word. Each of the pins that the dev report says covers all four locales does.
    • The one-time ablation (groupingOnly = false) turned the 4 grouping pins red and left the controls green, which is the right split. It was restored, and the restored blob equals HEAD.
  • Changeset (this PR's own file, @objectstack/service-analytics and @objectstack/mcp patch), read sentence by sentence against the diff. The 按行业 / this quarter cases, "a bare near-miss measure word … is still candidates_only and computes nothing", "What changes is the note only", the lone-word behaviour and the identical door sentence all hold. No content/docs/releases/ path is touched, and no changeset already on main is edited.
  • Gates at this head. 53 check-runs, all completed, none failed. Lint & Repo Gates, TypeScript Type Check, Test Core (all 10 shards), Build Core, Check Changeset, the PR-body guards and Governed Surface Queue Guard are success. The UI and docs jobs were skipped by filter.

Nits (no change asked)

  • "this quarter" and 本季度 are time filters, not groupings. The note offers them as "a possible grouping: Quarter" and then says "group the answer only as the question asks", which keeps the model from grouping by quarter when the question only bounds the time. This reading is the card's own ("at most offered as a grouping"), and it is worth keeping in mind for Ask skill and ADR-0149 D3: scope the ask-back to words with a measure candidate #35158's wording.

Not mine, still owed before landing

  • M1 (the body edit), then my body-only re-read.
  • The contract review the seat is running at this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 9c885ebac598533a4c07ba9ef2709bc28147b1c8
Local-runs: none

Inputs read: card #35005 body and its three comments (triage 6963243189, claim 6972020316 with the narrowing Premise, dev report 6973197402); PR #35156 body, file list (6 files, +286/-28), the net diff against merge-base aef42cba4e, and its PR comments; the 53 check-runs on this head (37 success, 16 skipped, 0 failed, 0 pending). Code outside the diff read at this head only to judge the claims: packages/spec/src/ai/dataset-tools.zod.ts (DatasetNextStepDecision, DatasetNextStepSchema, DatasetTermCandidateSchema, ListDatasetsOutputSchema.candidates), dataset-term-matcher.ts (findDatasetTermCandidates), the #34691 F1 = B ruling (6943107981), and follow-up #35158.

① Derived judgments

The diff changes no accepted input and no output shape. It changes three texts that reach a model: the nextStep.note the executor writes, the list_datasets tool description, and the MCP initialize selection rule. Each is judged below.

  1. readTerm / groupingOnly (dataset-next-step.ts). Right. groupingOnly is decision === 'candidates_only' && offered.every(kind === 'dimensions'). A candidates_only decision implies offered.length > 0, so the empty-every case cannot occur. kind is the pointer prefix that memberOf already returned, and findDatasetTermCandidates writes it as measures or dimensions, so the comparison is exact. decision, terms, matches and candidates are computed exactly as before, so the wire output differs only in note. That agrees with the claim and the changeset.
  2. The note, by reading. Right for every reading.
    • All-dimension candidates beside a matched measure (「按行业」+销售额, "this quarter"+revenue, 本季度+销售额): the decision is one_measure, and the leftOutSentences reading is groupingCandidateHit + groupingCandidateTail, with no ask-first sentence. This meets the Done-when's first half and is pinned in four locales.
    • All-dimension candidates with no matched measure (a lone "this quarter"): the decision stays candidates_only. The note offers the grouping, says not to ask about it, then adds the existing groupingTail, which asks which number is meant. That question is about the missing measure (D3 rule 5), not about the word, so it does not contradict "never ask about it". With an unknown word beside it, the fallback tail follows, the same pairing the no_measure branch already used.
    • Mixed kinds (a measure and a dimension among one word's candidates): groupingOnly is false, so the word is asked about, both beside a matched measure (leftCandidateTail) and alone (candidateTail, compute nothing). This matches the door words "a word with a measure among its candidates: ask".
    • Measure-only candidates: unchanged. Bare 销售 is still candidates_only with compute-nothing in four locales, and revenue+churn still asks about churn in four locales. This meets the Done-when's second half ("a bare near-miss measure word still asks").
    • Both kinds across two words: the ask-first sentence comes before the grouping offer. Under candidates_only, candidateTail (compute nothing) and groupingCandidateTail both appear. They do not conflict, because there is no matched measure to stop.
    • Under several_measures: the note has no left-out tail, so a grouping-only word is neither named nor asked about. This is unchanged and consistent with the rule.
    • Every locale: en, zh-Hans, zh-Hant and ja each carry both new strings with the same three parts: not a question, not a stop, group only as the question asks. An unlisted locale falls back to en through the unchanged datasetToolSentenceLocale.
  3. LIST_DATASETS_DESCRIPTION and DATASET_SELECTION_RULE. Right. Both carry the scoped sentence character for character: "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." The mcp pin (initialize-selection-rule-34686.test.ts) reads the real description from getDatasetToolDefinitions, so the two doors cannot drift apart unnoticed. The executor's note does what that sentence says for every reading in item 2. The ask clause next to it is worded differently in each door: "A word with a measure among its candidates: ask the same way" against "A word with no match and a measure among its candidates in the answer: ask the same way". The two clauses mean the same thing, and the surrounding text already differed before this PR (N1).
  4. Prior rulings. Holds. What counts as a match is unchanged: no candidate enters matches, no decision value moves, and the executor says so in its own module doc. [Decision] The published skills: who reviews a change, how they are verified, one catalog or two for code-first and MCP, and the E2 premise reading #34691 F1 = B said "for asking back only, never selected". datasets: an ask-back is owed only for the word being measured — a grouping or time word with a candidate does not stop a matched measure #35005, filed on the maintainer's 「立卡」, scopes that ruling for dimension candidates ("at most offered as a grouping", and its Done-when says "computed, grouped by industry"). The PR implements the card's scope and nothing wider. Measure candidates are still never selected.
  5. A published statement this leaves partly untrue (S1). ListDatasetsOutputSchema.candidates in packages/spec describes the list as "Members offered as possible readings … for a clarifying question". DatasetTermCandidateSchema's jsdoc says the same ("offers the member for a clarifying question"). That description is served to every MCP client as list_datasets' outputSchema (dataset-tools.ts:151), next to a note and a tool description that now say a dimension-only candidate is "not a question". The PR does not edit it, and it cannot within its file surface: packages/spec is a contract face. But neither the dev's out-of-scope findings nor Ask skill and ADR-0149 D3: scope the ask-back to words with a measure candidate #35158 names it, so nothing carries it.
  6. Candidate cap (N2). findDatasetTermCandidates lists each dataset's measures before its dimensions, dataset by dataset, and cuts at 5 per term with no marker. A word near five or more dimensions in earlier datasets and a measure in a later one is therefore read as grouping-only. The note still agrees with the words, because the door says "a word whose candidates are all dimensions" and the model sees the same capped list. The edge is narrow and inherited from the published cap, so it does not need a fix here.

② Semver level

  • Changeset: right. It is patch for @objectstack/service-analytics and @objectstack/mcp, which are exactly the two released packages the diff changes. The change is a behaviour fix in executor text, and no export is added or removed: DatasetToolCopy, TermReading and groupingCandidateSentences are module-private. The Check Changeset run succeeded.
  • Clause-②: no holds on both the PR body and the changeset:
    • There is no new output field: nextStep is still decision/terms/note.
    • There is no new enum value.
    • No published value changes meaning. DatasetNextStepDecision states that each value "names what the platform FOUND … and none names what a reader then does … the text that carries it to a model is the executor's (M1)". note is declared as text whose "wording is the executor's; the schema … fixes no text". Keeping a lone grouping-only word as candidates_only is exactly the spec's definition ("matched no member and has entries in candidates").
    • The candidates description drift in ① item 5 does not change a value either. The list's members and order are unchanged; only its stated purpose is narrower than what a consumer is now told. It is graded S1 below rather than as a Clause-② error.
  • Metadata-protocol: none is right. Nothing a metadata author writes changes.

③ Boundary flags

  • Dev open question (a lone all-dimension word: candidates_only or no_measure). Answered: A. Keeping candidates_only and scoping only the note agrees with the published definitions. no_measure is "has no entry in candidates", so relabelling would change a published value's meaning: a Clause-② yes and a spec PR. It also agrees with the card's Done-when, which names only the measure-beside-grouping case and the bare-measure case, and with its Scope ("at most offered as a grouping"). The note for the lone case asks which number is meant, never about the word. The seat reached the same reading (6973789543).
  • Dev out-of-scope finding (ADR-0149 D3 note, skills/objectstack-ask/SKILL.md). Carried by Ask skill and ADR-0149 D3: scope the ask-back to words with a measure candidate #35158, which is open, Tier H, and ordered after this PR. It is not owed here. One addition for that card (N3): its item 1 treats rule 1's parenthesis "(it may be offered in rule 3's question, never acted on)" as optional. After this PR the note tells the model to group by a dimension candidate when the question asks for it, so that parenthesis is no longer true for dimension candidates. Changing it is owed, not optional.
  • Dev gate flag: check:dual-build-cjs-loads NOT MEASURED locally. Answered by CI: every check-run on this head concluded success or skipped, with none failed or pending, so the gate families have their verdict.
  • Claim narrowing (Premise "corrected"). Honoured. Only dimension candidates change, and a word with a measure among its candidates keeps its question. Both sides are pinned, and the dev's ablation turned exactly the four grouping pins red.
  • SQL push-down (AGENTS.md Prime Directive 5). Not engaged. The diff composes text from an answer that is already in memory. It adds no id materialisation, no query and no in-app join.

Findings

S1 (should-fix) — packages/spec ListDatasetsOutputSchema.candidates ("… for a clarifying question") and DatasetTermCandidateSchema's jsdoc ("offers the member for a clarifying question") now state a purpose that the executor note and both door strings deny for dimension-only candidates. The outputSchema text reaches every MCP client. Fixing it in this PR is out of its surface. The fix owed here is a carrier: amend #35158 or file a domain:spec card naming both sentences, and the regenerated content/docs/references/ai/dataset-tools.mdx, before or at merge.

N1 (nit) — The ask clause beside the shared sentence is worded differently in the two doors. They mean the same thing, and the scoped sentence the card requires is identical and pinned.

N2 (nit) — The per-term cap of 5 (measures before dimensions within each dataset, dataset by dataset) can cut a later dataset's measure candidate and make a word read as grouping-only. The note matches what the answer lists, so this is noted only.

N3 (nit) — #35158 should treat ADR-0149 rule 1's "(… never acted on)" as owed, not optional.

No must-fix.

Implemented-by: claude/issue-35005-grouping-candidate-no-ask
Reviewed-by: session_01JQwxbWDsbbJizuYnDwBxT8

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 9c885ebac598533a4c07ba9ef2709bc28147b1c8
Local-runs: none

Delta round on the same head. I re-read the PR head (still 9c885ebac5), the first line of the PR body, the body of #35158 and its newest comment (6973951753), and the newest comment on #35005 (6973963007). Nothing in the diff changed, so the earlier record's ① judgments and ② semver level stand as written. This record judges only what changed.

① Derived judgments

No change to the diff, so no new derived judgment. The PR body now opens Part of #35005 instead of Fixes #35005. That is right for a card whose Done-when also needs the governed copies: merging this PR no longer closes #35005 while those copies are still owed.

② Semver level

Unchanged: patch for @objectstack/service-analytics and @objectstack/mcp, Clause-②: no, Metadata-protocol: none.

③ Boundary flags

Findings

S1: closed

N3: closed

No must-fix, no should-fix.

Implemented-by: claude/issue-35005-grouping-candidate-no-ask
Reviewed-by: session_01JQwxbWDsbbJizuYnDwBxT8

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXr9wLAH24MEgxaLud

席位核对

L1 body re-read · ACCEPT · Head-sha: 9c885ebac598533a4c07ba9ef2709bc28147b1c8 (unchanged since REWORK 6973888624) · card #35005 (Part of #35005) · read 2026-11-18T09:06Z

The head commit is the same one my REWORK read, so the code findings in 6973888624 stand. This re-read covers the PR body and the items carried to the card.

REWORK items

Recorded deviation (the seat owns it)

Still owed before landing

  • The seat's delta record on carrier closure, which o1-C says is running. The contract review PASS is already on record at this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Landing · 2026-11-18T09:07Z · head 9c885ebac598533a4c07ba9ef2709bc28147b1c8

Probe Reading
L1 ACCEPT 6973999671 (after REWORK 6973888624, body only)
Contract review PASS 6973986998 (delta: S1 and N3 closed by carrier #35158); first record on this head is above it
CI on head 37 success, 16 skipped, 0 red
check-governed-merges --pr 35156 NOT governed, +286/-28
K (first-parent behind main) 11

Status: ready + auto-merge. Part of #35005: the card stays open with area o1-C until #35158's PR merges (6973963007). Deviation owned by the seat: the packages/spec candidates description still says "for a clarifying question" until #35158 lands.

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/m tests 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.

2 participants