Skip to content

fix(analytics): list_datasets no longer asks about a measure whose dataset cannot give the grouping the question asks for - #39275

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-ziwp93
Dec 3, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-ziwp93

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #39221

Clause-②: no
Metadata-protocol: none
Skills-docs: follow-up #39285

The two lines above are the claim's (comment 7366924507 on the card, amended by 7368143683). This is the second of the card's two pull requests. The first, #39258, put the ADR-0149 note on main; this one brings the executor's sentence, the two tool texts and the spec's descriptions to it.

维护者速读

  • 用户能看到什么变化:问数的使用者问「按产品类别的成交额」「报销金额最高的三个人」这类要分组或排名的题时,如果候选指标所在的数据集给不出题目要的分组,AI 助手以前会反问「你说的是不是这个指标」,现在直接按明细算出答案、注明「非指标口径」,并顺带提一句有这个指标但不能这样拆分。
  • 为什么做:这是「问数少反问」那项裁决的第二步,替问数的使用者省掉一次问了也得不到指标数字的反问;决策记录里的说明已先合入,这次是照它改代码。实测「按类别成交额」两组都从 0/5、2/5 升到 5/5。
  • 出错会怎样:AI 助手若误判「数据集给不出这个分组」,使用者会拿到一个按明细算、标了「非指标口径」的数,而不是被问一句;数字始终带标注,不会冒充指标口径。这次只改了提示文字,可以直接撤回。
  • 要你做什么:无。

What changes

Ten files, 480 lines added and 24 removed, in three commits (1ad166da; 36d173cb for the review round below; 041fc8f8 for the docs page the seat added to the claim, card comment 7370879667). Nothing is selected and no key changes: nextStep.decision, nextStep.terms, candidates and matches are what they were (term 2 of the ruling, record 7363768737). Only text changes.

File What changes
packages/services/service-analytics/src/dataset-next-step.ts One new sentence in nextStep.note (groupingCheck), written after the re-send sentence and before the question about a word with a measure among its candidates, in both places that question is written: candidates_only, and a word left out beside a matched measure. English, Simplified Chinese, Traditional Chinese, Japanese.
packages/services/service-analytics/src/dataset-tools.ts LIST_DATASETS_DESCRIPTION gains one sentence (DATASET_GROUPING_TERM_SENTENCE).
packages/mcp/src/mcp-server-runtime.ts DATASET_SELECTION_RULE (the MCP initialize instructions) gains the same sentence at the same place.
packages/spec/src/ai/dataset-tools.zod.ts Describe text only: candidates, nextStep.note, and the JSDoc of DatasetTermCandidateSchema say when a measure candidate is owed no question. No schema shape changes.
content/docs/references/ai/dataset-tools.mdx Regenerated from the spec.
packages/mcp/src/tools-list-weight-34689.test.ts TOOLS_LIST_BYTE_CEILING 39,000 to 39,300, with its record, as the file's header prescribes (table below).
content/docs/ai/connect-mcp.mdx The page's summary of the initialize rule said "a word with no match but with candidates is the same question" with no exception. It now says the question is about a measure candidate and lists the four scopes the rule carries (the user's own word; this grouping case; a word whose candidates are all dimensions; a word that names the field a filtered candidate measure aggregates).
Two test files, one changeset See Tests.

The sentence, in English, for one measure in one dataset:

Then check how the question wants the number broken down or ranked: these readings can be grouped only by Industry (dataset: Order book). If it asks for a breakdown or a ranking and that dataset does not carry everything it is to be split or ranked by, no reading can give it, so do not ask about the word: answer with the object query tools (query_records, aggregate_records), say in the answer that no governed metric was used, and mention the reading as a declared metric that cannot be split that way; do not compute it. Otherwise:

How it follows the note on main (ADR-0149 D3, the grouping note of 2026-12-03):

  • The client judges. The executor is sent words and cannot tell which is the grouping, so the sentence is conditional and the question is still written after it ("Otherwise:").
  • What it lists. The dimensions, by label, of the datasets of the word's measure candidates, in listing order; "nothing" for a dataset with no dimension. Only what the answer lists for the caller is named.
  • A date dimension is marked: "Order date (a date: by day, week, month, quarter or year)", so "by month" beside it is a grouping the dataset carries.
  • The whole grouping, within one dataset (review nit N8 on docs(adr): ADR-0149 D3 — a measure candidate is not asked about when no offered reading's dataset carries the question's grouping #39258). With one dataset listed: "that dataset does not carry everything it is to be split or ranked by". With several: "no one of those datasets carries everything it is to be split or ranked by".
  • Several measures offered: "mention each reading ... do not compute any of them".
  • A partial: true answer carries no sentence; the word is asked about as before.

tools/list weight

bytes
tools/list before 38,940
tools/list after 39,291
list_datasets description before, after 2,938, 3,289
ceiling before, after 39,000, 39,300

The 351 bytes are the one sentence in list_datasets' description. The seat agreed to the ceiling move (claim amendment 7368143683). 9 bytes are left under the new ceiling; the seat read that headroom as fine (its note of 2026-12-03T07:20Z in the seat thread, not a card comment).

Why

Step 2 of the ruling on #39152: "a measure candidate whose dataset cannot give the grouping the question asks for is not asked about, the records answer, labelled, and the measure is mentioned. Nothing is selected in either step." Term 4 orders the work: the ADR note first (#39258, merged as a9af21b9), then the executor and the tool description (this pull request), then the skill row (a skills card of its own, the seat's to file).

Review round (heads 36d173cb, 041fc8f8)

Contract review 7370830784 on 1ad166da: PASS, with one finding to fix and seven nits. The brief is comment 7370842622.

  • S1, fixed in 36d173cb: the spec's description of nextStep.note and the doc comment of DatasetTermCandidateSchema said without condition that the note names the dimensions. The executor writes the sentence on a complete answer, before the question it writes about such a term, and not on a partial: true answer, where the term is asked about as before. The two descriptions and the doc comment now say so, and the reference page is regenerated.
  • N2 (in the spec texts) and N7 ride with it: the spec says "each such measure is mentioned", and three code comments are brought to the whole-grouping wording.
  • Left as they are, because each is in a sentence a client is served and the premise was measured on those sentences: N1 (the door sentence says "those candidates' datasets" where the executor reads the measure candidates' datasets; the difference errs toward asking), N2 in the door sentence (singular "the candidate is mentioned"), N4 ("readings" in English and 「候補」 in Japanese, where the two Chinese copies say 「候选指标」), N5 (no text states "where the client cannot tell, the question is owed"; "Otherwise:" implies it), N6 (beside a matched measure, the labelling clause is not scoped to the left-out word). N3 is behaviour: with two or more words asked about in one call the executor writes one pooled sentence and one condition, which is stricter than the note's per-term reading, so it never drops an owed question but can keep one the note drops.
  • 041fc8f8 adds the docs page above and nothing else. Neither commit changes a sentence served. 36d173cb changes no sentence served through tools/list, initialize or nextStep.note: tools/list is still 39,291 bytes, and the executor's copy and the door sentence are byte-identical to 1ad166da.
  • Delta review 7371580901 on 041fc8f8: PASS. S1 is closed and nothing new is opened at a blocking grade. It leaves one nit, not fixed here because a fix would move the reviewed head: the spec's "on a partial: true answer it names none" is wider than the code when read word for word, since on a partial answer the note can still name a dimension as the grouping another word equals; what is left out is the listing this pull request adds.

Tests

  • packages/services/service-analytics/src/__tests__/dataset-tools.test.ts: a new describe, "[ADR-0149 D3 grouping note] list_datasets nextStep — a measure candidate whose dataset cannot give the asked grouping", 11 tests: the sentence's place in four languages; nothing selected (decision, terms, candidates, matches); a word left out beside a matched measure; the datasets of the measures offered, in listing order, and "nothing"; the date mark; one measure against several; the whole grouping with one dataset and with several; no sentence on a partial answer; a member not admitted for the caller is never named; no sentence where no question is owed; the description sentence's place. One existing control was rewritten, because the note now names the object tools inside the condition.
  • packages/mcp/src/initialize-selection-rule-34686.test.ts: both doors carry the shared sentence at the same place.
  • packages/mcp/src/tools-list-weight-34689.test.ts: the ceiling, as above.
  • Run at 1ad166da: @objectstack/service-analytics 5,968 passed, 345 skipped; @objectstack/mcp 1,662 passed; @objectstack/spec 29,282 passed, 3 todo; typecheck of the three packages exit 0. At 36d173cb (describe text and comments only): @objectstack/spec src/ai 592 passed, the analytics file above 107 passed, the two MCP pin files 19 passed, typecheck of the three exit 0, and the spec's check:generated reports its 14 artifacts up to date. At 041fc8f8 (one docs page): the 20 documentation gates of the derived list exit 0.

Live check

The ruling names a premise for this step and bans building it if the premise fails: "at 5 reps on both arms booked_by_category reaches 4/5 or better and dq_booking_total and dq_claimed_so_far do not fall."

  • What was run. A scratch script (not committed) that calls the scenario runner's own runCard in ask mode (packages/qa/scenarios) on the committed builds of order_to_cash and travel_expense, with the card's questions filtered to the four below: pnpm --filter @objectstack/scenarios exec tsx measure.mts --repeats 5 --arms off,on --plan '{"order_to_cash":["booked_by_category","dq_booking_total"],"travel_expense":["top_claimants","dq_claimed_so_far"]}'. Driver: Claude Code CLI 2.1.335, subscription login, model haiku (served claude-haiku-5-5), effort medium. Arm "off" has no skill; arm "on" installs skills/objectstack-ask as it is on main.
  • Four readings, k of 5 asks. "Before" is main at 8d1a829c. The others are the executor's sentence as first written (846935f2), after the review round of docs(adr): ADR-0149 D3 — a measure candidate is not asked about when no offered reading's dataset carries the question's grouping #39258 (893b81b5), and with the whole-grouping wording of N8 (2c2b39e4), which is the wording of this pull request: its three packages' sources are byte-identical to that tree.
Question Grader expects off, before off, 846935f2 off, 893b81b5 off, this PR on, before on, 846935f2 on, 893b81b5 on, this PR
booked_by_category the figures by category, from the records, labelled 0/5 5/5 5/5 5/5 2/5 5/5 4/5 5/5
top_claimants the ranking, from the records, labelled 2/5 5/5 5/5 5/5 5/5 5/5 5/5 4/5
dq_booking_total a question back, no figure 5/5 5/5 5/5 5/5 5/5 5/5 5/5 5/5
dq_claimed_so_far a question back, no figure 1/5 1/5 1/5 0/5 5/5 5/5 5/5 5/5
  • Against the premise, on this wording. booked_by_category is 5/5 on both arms. dq_booking_total does not fall on either arm. dq_claimed_so_far does not fall with the skill on. With the skill off it reads 0/5 against 1/5: see the next point and the Acceptance notes.
  • dq_claimed_so_far, arm off. All 5 failing asks made no list_datasets call (the grader's note on each: "called no list_datasets"), so the executor's sentence was never served to them. The same holds for the 4 failing asks of each earlier reading. To see the cell's spread, the same question was asked 10 more times on the same build, arm off: 4 of 10 passed, and again each pass called list_datasets and asked back, and each failure made no call. On this wording the cell is 4 of 15.
  • Where the gain comes from. On the two grouped questions on this wording, 17 of the 20 asks ended on a candidates_only answer, all 17 were served the new sentence (11 in the "each reading" form, 1 with several datasets listed) and 16 passed. The other 3 asks did not end on candidates_only and passed.
  • The one failing grouped ask (top_claimants, arm on) did not ask back. It took the records route as the sentence says, then gave up after its aggregate_records call was refused: it grouped by claimant__label and wrote the status filter as a bare array.
  • Limits. One model, one effort, two cards. Nominal cost reported by the driver, on the subscription login: 0.29 USD before, 0.47, 0.36 and 0.45 USD for the three wordings, 0.09 USD for the 10 extra asks; nothing was billed to an API key.

Acceptance notes

  • The dq_claimed_so_far skill-off cell reads 0/5 on this wording against 1/5 before. The seat read the premise as holding (card comment 7370879667): none of the failing asks called list_datasets, so the executor's sentence was never served to them, and the 10 extra asks give 4/10, so the cell is 4 of 15 on this wording against 1 of 5 before. The reading is the seat's, not the dev's; it is named here so a reviewer can disagree with it. One limit of the reason, from contract review 7370830784: the sentence added to list_datasets' description and to the initialize rule does reach every ask, including those that never call the tool, so the diff is not out of reach of those asks; what the readings show is that the cell did not fall.
  • top_claimants, skill on, 4/5. The failing ask is an aggregate_records authoring failure after the door's sentence was followed (grouping by claimant__label, a bare array as an equality comparand). Not this diff's; not filed here.
  • N8 of the review of docs(adr): ADR-0149 D3 — a measure candidate is not asked about when no offered reading's dataset carries the question's grouping #39258 is applied here: the executor's sentence, the door sentence and the spec's descriptions say "everything", within one dataset. Two phrases of the note on main are still written for one grouping; the note is not edited here.
  • Not covered, as the note says: a measure hit whose dataset cannot give the grouping; several hits none of which can; a filter or time window the dataset cannot express; measure candidates in several datasets of which only some carry the grouping (all are asked about as before).
  • The published ask skill (skills/objectstack-ask/SKILL.md, step 2) restates the ask-back rule without this scope. Its card is skills/objectstack-ask: teach step 2 of ruling P (no ask-back when the candidate's dataset lacks the asked grouping) #39285, filed by the seat as a sub-issue of this card.

Verification

  • Read first: dataset-next-step.ts, the groupingCheck copy in four languages and groupingSentences (which datasets and dimensions are named, and the partial guard); then dataset-tools.ts#DATASET_GROUPING_TERM_SENTENCE; then the two describe strings in dataset-tools.zod.ts.
  • Two-minute check: pnpm --filter @objectstack/service-analytics exec vitest run --maxWorkers=2 src/__tests__/dataset-tools.test.ts prints 107 passed, 10 skipped.
  • Gates: the list node scripts/pm/dispatch-gates.mjs --commands derives for this diff was run locally with each exit code recorded; the counts and the --ran reconciliation are in the dev's report on the card. CI answers the families it runs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CZZJZbv4C69FGSTHqa

…dataset cannot give the grouping the question asks for

Step 2 of the ruling on the ask-back card, after the ADR-0149 grouping note
of 2026-12-03. Before the question about a word with a measure among its
candidates, `nextStep.note` carries one client-judged sentence: the
dimensions the datasets of those measures can be grouped by, and that a
breakdown or a ranking no one of those datasets carries in full is answered
from the records, labelled, with each measure mentioned. Nothing is selected:
`decision`, `terms`, `candidates` and `matches` are unchanged.

The `list_datasets` description and the MCP `initialize` rule carry the rule
in one shared sentence, the spec's candidate descriptions say it, and the
tools/list ceiling moves to 39,300 with its record (38,940 -> 39,291 bytes).

Claude-Session: https://claude.ai/code/session_01Utp6CZZJZbv4C69FGSTHqa
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:ai tests 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

This PR changes 3 package(s): @objectstack/mcp, @objectstack/service-analytics, @objectstack/spec, touching 17 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
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 256 client-bound route-ledger rows — the other 185 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 185: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 125 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 — 188 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 ee2be20078ad7a4e6984cf916fa31028476095c5 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 26a60577b486800fa2a868d70f7b763410c4cd10 — the merge of head 041fc8f8d994bdbea766e59cf5676ac47ccc5be0 into base ee2be20078ad7a4e6984cf916fa31028476095c5, 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 26a60577b486800fa2a868d70f7b763410c4cd10 && git checkout 26a60577b486800fa2a868d70f7b763410c4cd10
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ee2be20078ad7a4e6984cf916fa31028476095c5 041fc8f8d994bdbea766e59cf5676ac47ccc5be0 && git checkout -B drift-repro ee2be20078ad7a4e6984cf916fa31028476095c5 && git merge --no-ff 041fc8f8d994bdbea766e59cf5676ac47ccc5be0

node scripts/docs-audit/affected-docs.mjs --json ee2be20078ad7a4e6984cf916fa31028476095c5

⚠️ 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 ee2be20078ad7a4e6984cf916fa31028476095c5 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…is written

Contract review of this pull request, finding S1: the description of
`nextStep.note` and the doc comment of `DatasetTermCandidateSchema` said
without condition that the note names the dimensions. The executor writes
that sentence on a complete answer, before the question about such a term,
and not on a `partial: true` answer, where the term is asked about as
before. The descriptions now say so, and say each such measure is mentioned.
Three comments are brought to the whole-grouping wording. No sentence a
client is served through tools/list, initialize or nextStep.note changes.

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

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1ad166da0c2bbae6ffe069946157a97f5da68e55
Local-runs: none
Scope: packages/spec/src/ai/dataset-tools.zod.ts + packages/services/service-analytics/src/dataset-next-step.ts, packages/services/service-analytics/src/dataset-tools.ts, packages/mcp/src/mcp-server-runtime.ts

PR #39275 for card #39221, the second of the card's two pull requests. Read for this record: the card body and its six comments (7366872295, 7366924507, 7368119428, 7368143683, 7368999305, 7369484774); ruling record 7363768737 and the analysis it adopted, 7361140919, both on #39152; the two review records on #39258 (7368304065 and 7368738223), for nit N8 of the second; the pull request body, its file list (nine files) and its one comment (7370650110, the advisory docs-drift bot); the net diff from merge base a9af21b9 to the head (449 lines added, 18 removed, one commit); the check-runs on the head; and, at the head and never checked out, ADR-0149 sections D2, D3 with every note, M1 with its note and M2, the whole of packages/spec/src/ai/dataset-tools.zod.ts, packages/services/service-analytics/src/dataset-next-step.ts and dataset-tools.ts, dimensionType in dataset-compiler.ts, DATASET_SELECTION_RULE in packages/mcp/src/mcp-server-runtime.ts, DateGranularity in packages/spec/src/data/query.zod.ts, step 2 of skills/objectstack-ask/SKILL.md, and the two scenario cards and builds the card names. Nothing was built, run or re-run. The other five files of the diff (three test files, the regenerated reference page and the changeset) are outside ④ and were read only to judge the four files in scope.

① Derived judgments

  • No accept-set moves. The spec diff changes two .describe() strings (candidates on ListDatasetsOutputSchema, note on DatasetNextStepSchema) and one doc comment (DatasetTermCandidateSchema). No key, no enum value, no optionality and no regex changes. Every answer that parsed before parses now, and every answer that was refused is still refused. Right.
  • The published surface that moves is text, in four places. The two spec descriptions and the reference page generated from them; the list_datasets tool description (351 bytes longer, which I counted on the sentence and which equals the growth the pull request reports for tools/list, 38,940 to 39,291 bytes); the MCP initialize selection rule (the same sentence); and the text of nextStep.note for a word with a measure among its candidates on a complete answer. Right, and each is named in the changeset.
  • decision, terms, candidates and matches cannot change through this diff. In dataset-next-step.ts the decision for a term is computed by the same expression as before; readTerm gains one derived list (measureCandidates, a filter of the candidates already read); groupingSentences returns strings only; leftOutSentences gains two parameters it passes through. composeDatasetNextStep still returns the same decision and the same terms. dataset-tools.ts changes one description constant and nothing in listDatasets. dataset-term-matcher.ts is not in the diff. Ruled term 2 holds by construction. Right.
  • "No sentence on a partial answer" is tied to the served flag. listDatasets tells the composer the answer is partial exactly when its list of warnings is not empty, and serves partial: true on that same condition, so the sentence is absent on every answer that says partial: true and on no other. Right.
  • The byte ceiling. TOOLS_LIST_BYTE_CEILING goes from 39,000 to 39,300 with its before and after figures beside it, as that file's header prescribes, and the claim was amended for it (7368143683). That file is the lane seat's to accept. I note for the seat that 9 bytes are left under the new ceiling.
  • Tier. The diff touches a published schema file and no governed path, so this record is owed on the schema face and the seat lands the pull request, as the claim says.

② Semver level

The changeset .changeset/39221-no-ask-without-grouping.md takes patch on @objectstack/service-analytics, @objectstack/mcp and @objectstack/spec. Those are the three packages whose sources the diff moves, and no fourth is moved. Metadata-protocol: none is right: nothing a metadata author can write changes, so the level is patch by the rule in AGENTS.md. Clause-②: no is right: no declared capability is widened or narrowed, no export and no option is added or removed, and the same two lines stand in the pull request body. The sibling changesets of the same series (38953-booking-head-word.md, 39152-qualified-phrase-no-second-reading.md) take the same level for the same kind of change. Check Changeset had not concluded when I read the check-runs (see ③).

③ Boundary flags

Check-runs, read last, at 2026-12-03T07:09Z. 54 runs on the head: 15 success, 12 skipped, 27 in_progress, none failed. Concluded green: Auto Label, Build Docs, Build UI Deps, Check Documentation Links, Check PR Size, Dogfood Regression Gate, Flag docs affected by code changes, Governed Surface Queue Guard, Lint · ESLint, Lint · docs & code guards, PR-body guards (claim · duplicate · Part-of · single-writer path), Plan Test Core shards, Spec property liveness, Type Check · source gates, filter. Not concluded: Build & E2E UI, Build Core, Check Changeset, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · repo & tooling gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, Live E2E UI, Plan Test UI shards, Test Core shards 1 to 12 of 12, Type Check UI, Type Check · consumer gates, Type Check · debt ledger, Type Check · workspace. The gate families that answer this diff's tests, its regenerated spec artifacts and its changeset are among those 27, so the gate verdicts are not in yet. The verdict below rests on the design judgment and on the runs that had concluded; it is to be re-read against the 27 before it is adopted.

SQL push-down. The diff adds no query, no id materialisation and no join. groupingSentences reads the catalogue entries the answer already holds in memory and writes a string. Nothing to judge.

Flags, each answered.

  • The dev's report for this pull request is not on the card. The body says "the counts and the --ran reconciliation are in the dev's report on the card". The card's newest comment when I read it was 7369484774 (06:07Z), and the only report is 7368119428, which is for docs(adr): ADR-0149 D3 — a measure candidate is not asked about when no offered reading's dataset carries the question's grouping #39258. So there is no open_questions entry to answer and no gate reconciliation to check. For the seat: the report is owed before the hand-off is complete. The check-runs answer the gates either way.
  • dq_claimed_so_far, arm without the skill, 0/5 against 1/5. The dev names this for a reviewer to disagree with. I accept that the premise holds, with one correction to the reason given. The body says the failing asks made no list_datasets call, "so the executor's sentence was never served to them", and the acceptance note concludes "this change cannot move them". That is true of the sentence in nextStep.note. It is not true of the diff: the same pull request adds a sentence to the list_datasets description and to the initialize rule, and a client reads both before it decides whether to call list_datasets at all. So the diff can reach those asks. What the readings show is that it did not move them: 1/5 on both earlier wordings, which carried a door sentence too, and 4 of 15 on this wording against 1 of 5 before. A one-ask difference at five asks with no noise run is not a fall, and the dev's 10 extra asks are the right remedy. Two things stay with the seat. The measurement is the dev's local run on one small model at one effort, which I did not repeat. And the seat's own reading is cited as "its note of 2026-12-03T06:15Z in the seat thread", which is on neither the card nor the pull request: the ruling bans building the step if the premise fails, so the reading that it holds belongs on the card.
  • top_claimants, arm with the skill, 4/5. The failing ask followed the door's sentence and then failed to author its aggregate_records call. That is not this diff's. Accepted as not filed here.
  • The four cases under "Not covered". Each keeps its behaviour in the code: a measure hit writes no grouping sentence (one_measure writes it only for a word left out), several hits write none (several_measures), the sentence speaks of a breakdown or a ranking and of no filter or time window, and where one of several datasets carries the grouping the sentence's condition is false and the question follows. Right.
  • The skill row. Step 2 of skills/objectstack-ask/SKILL.md at the head still reads "A word with a measure among its candidates" and "Ask the same way", with no grouping scope. Ruled term 4 puts it after this pull request, on a card the seat files. Until then a client with the skill installed holds two texts that differ under the condition. The measured arm with the skill reads 5/5 and 4/5 on the two grouped questions, so the door's sentence wins in practice. For the seat: the card is not on record yet.
  • Comment 7370650110 (docs-drift bot, advisory). It lists content/docs/deployment/self-hosting.mdx because that page names COPY, which is also the name of the copy table in dataset-next-step.ts. The page is about a container image, not this table. No action.
  • Permissions. The new sentence names dimensions and datasets read from the served entries only. listDatasets builds each entry from the admitted dimensions (admission.dimensions.has), and a dataset that is not admitted has no entry, so it cannot be a candidate's dataset. No gate is added and none is passed by.

④ Design judgment

File: packages/spec/src/ai/dataset-tools.zod.ts (the schema file).

Against the note of 2026-12-03 on #39221. The new sentence in the candidates description reads: "A term with a measure among its candidates is owed no question when the question breaks the number down or ranks it and no one of those measures' datasets carries all it is split or ranked by: the records answer it, labelled as not from a governed metric, the measure is mentioned as a declared metric that cannot be split that way, and the term's candidates are listed as before." Held against the note point by point: the readings are the term's measure candidates ("those measures' datasets"), as the note defines an offered reading; a question groups when it is broken down or ranked, in the note's two words; the grouping is read whole and within one dataset ("no one of those ... datasets carries all"), which is N8; the answer is the labelled fallback with the measure mentioned in the note's wording for this case, not "narrower"; and nothing leaves candidates. The doc comment says the same, adds "Whether the condition holds is the client's to judge", and points at rule 4. Neither text gives the reader an instruction, so M1 holds as the note of 2026-11-19 reads it: the spec carries the scope and not the sentence. The ADR's "State on main" names these two symbols as the ones this pull request brings to the note, and both are brought.

Against its first consumer. The note description now says: "For a term with a measure among its candidates it names the dimensions of those measures' datasets, each a dimension this answer lists". On a complete answer whose reported case is candidates_only or one_measure, composeDatasetNextStep does exactly that. In two cases it does not, and that is finding S1.

File: packages/services/service-analytics/src/dataset-next-step.ts (the executor).

Where the sentence is written. In the candidates_only case and for a word left out beside a matched measure, after ownPhraseFirst and before the question (candidateTail, leftCandidateTail), only when a word is asked about, and a word is asked about exactly when a measure is among its candidates. It is written once per note: the left-out list is empty when the reported case is candidates_only. It is not written for a word whose candidates are all dimensions, for a word the note of 2026-12-01 leaves with no measure candidate, for a hit, for several hits, or on a partial answer. That is the note's "one conditional sentence in nextStep.note, before the question it conditions", and its list of what does not change.

What it names. One entry per dataset that holds a measure candidate of the words asked about, in listing order, each with the labels of the dimensions its served entry lists, and "nothing" for an entry with none. A dataset that offers the word only a dimension is not listed, which is the note's definition of an offered reading. A sixth reading beyond the cap is no entry of candidates and is not read.

The date mark. d.type === 'time' selects exactly the dimensions declared date (dimensionType maps date to time and nothing else to it), and the mark lists day, week, month, quarter and year, which is DateGranularity word for word. So "by month" beside a marked dimension is a grouping the client is told the dataset carries, as the note requires.

The condition, and N8. English: "that dataset does not carry everything it is to be split or ranked by", and with several datasets "no one of those datasets carries everything it is to be split or ranked by". Simplified Chinese: 「该数据集的维度不能涵盖问题要求的全部分组口径」 and 「没有任何一个数据集的维度能涵盖问题要求的全部分组口径」. Traditional Chinese: the same two clauses in its own characters. Japanese: 「このデータセットのディメンションが求められた切り口のすべてを含んでいない」 and 「求められた切り口のすべてを含むデータセットが一つもない」. All four say everything the question groups by, and all four say within one dataset. Two things each carried by a different dataset meet the condition in all four, and one dataset that carries all of them does not, which is the note's fourth uncovered case kept as written. N8 is held.

The order given. All four languages say, in the same order: do not ask about the word; answer with the object query tools, both named; say in the answer that no governed metric was used (the two Chinese copies add 「非指标口径」, as their fallback sentences already do); mention the measure as a declared metric that cannot be split that way; do not compute it. With more than one measure offered, all four switch to the plural: "each reading" and "any of them", 「这些」 and 「它们」, 「這些」 and 「它們」, 「それぞれの候補」. All four end by handing over to the question ("Otherwise:", 「否则:」, 「否則:」, 「それ以外の場合:」), and the question that follows is unchanged, so the exception form the note asks for is kept: the condition is an exception to asking, and the default after it is to ask.

Files: packages/services/service-analytics/src/dataset-tools.ts and packages/mcp/src/mcp-server-runtime.ts (the shared sentence).

The two strings are the same, character for character, and stand at the same place in both texts: after the own-word sentence and before the sentence about a word whose candidates are all dimensions. The sentence states the condition whole and within one dataset, the labelled fallback, and the mention in the note's wording. Both texts end by telling the client to follow nextStep.note, so where the short sentence and the executor's sentence differ in detail the executor's governs. Two such details are nits N1 and N2.

Attempts to break it.

These held. A question for one total (dq_booking_total, dq_claimed_so_far): the sentence is written, its condition is false, the question follows. A grouping word sent beside the measure word with no hit and no candidate: it keeps its own fallback sentence and the two agree. A grouping word that is near a dimension of another dataset: that dataset is not listed, the reading's dataset does not carry it, and the measure word falls back. A dimension the caller may not read: it is in no entry, so it is not named, and the dataset reads as not giving that grouping for that caller, as the note says. A dataset with no dimension: "nothing". A partial answer: no sentence in either placement, the question as before, and the partial tail still closes the note. A word with one measure taken out by the note of 2026-12-01 and another left: the sentence is written for what is left and the field sentence still follows the question. I looked for an input where the code tells a client not to ask and the note owes the question, and found none: every path that writes the sentence writes the question after it, and the sentence's condition is never weaker than the note's.

These err toward asking, which is the behaviour on main today, and are findings N1 and N3 below.

Findings.

S1 (should-fix) — The spec's two statements about nextStep.note promise more than the executor does, and the note's rule for a partial answer is in none of the published texts. The note description says, without condition, "For a term with a measure among its candidates it names the dimensions of those measures' datasets", and the doc comment of DatasetTermCandidateSchema says "nextStep.note names the dimensions it is judged on". The executor writes no such sentence in two cases. First, on a partial: true answer (groupingSentences returns nothing), which is the note's own rule: "On such an answer the door does not write the sentence, and the term is asked about as before." Second, when the reported case is several_measures: that note names no left-out word at all, so a word with a measure among its candidates beside a word that equals several measures gets no sentence. The first case matters beyond wording. The candidates description says such a term "is owed no question when" the condition holds, the doc comment says the condition "is the client's to judge", and a partial answer still lists each entry's dimensions. A client that reads the spec is therefore told it may judge the condition on a partial answer and skip the question, where the note rules that the term is asked about. The executor's own text on that answer does ask, and the door tells the client to follow it, which is why this is not a must-fix. Fix in the spec file, in words only: say in the note description that the sentence is written on a complete answer, before the question about such a term (or "may name", as the sentence before it says of the field), and say in the candidates description or the doc comment that on a partial: true answer the term is asked about as before. The spec descriptions are not part of the tools/list text the premise was measured on (its growth is the door sentence alone), so this fix changes nothing a measured client read.

N1 (nit) — The shared door sentence says "no one of those candidates' datasets", where the note, the spec and the executor read the datasets of the measure candidates only. "Those candidates" are the word's candidates, and a word with a measure among them can have a dimension candidate in another dataset. Take a word with a measure candidate in a dataset that cannot give the grouping and a dimension candidate in a dataset that can: the door sentence read literally keeps the question, and the executor's sentence in the answer drops it, as the note rules. The executor's sentence governs ("follow its note") and the error is toward asking. The spec's wording, "those measures' datasets", would bring the two doors to the same reading.

N2 (nit) — The door sentence says "the candidate is mentioned" and both spec texts say "the measure is mentioned", in the singular. The note rules that each measure candidate of the term is mentioned, and the executor writes "each reading" when more than one is offered. It is nit N6 of record 7368304065 again, on these texts.

N3 (nit) — With two or more words asked about in one call, the executor writes one sentence for all of them: the datasets of every such word's measure candidates, one condition over "those datasets", and "do not ask about the word" in the singular. The note reads the condition per term. The pooled condition is the stricter one, so it never drops a question the note owes. But a word whose own readings cannot give the grouping is still asked about when another word's dataset can, where the note says it is not. No test added by this diff sends two such words in one call. Left as an accepted deviation or a follow-up card.

N4 (nit) — The English and Japanese copies call the measures "readings" and 「候補」, the same words the sentence just before uses for all of the word's candidates, dimensions included ("possible readings: ..."). So "mention each reading as a declared metric" can be read to take in a dimension candidate, and "the reading" is said where two readings were just listed, one of them a dimension. The two Chinese copies say 「候选指标」 and 「候選指標」, candidate metrics, and do not have this. The four languages agree on the rule and differ on this one noun.

N5 (nit) — No text a client reads states the note's point "Where the client cannot tell, the question is owed". The executor's sentence implies it by its form (the condition, then "Otherwise:" and the question), and I accept that. The changeset states it as behaviour ("a grouping the client cannot place are still asked about as before"), which is the note's rule and not something the door says.

N6 (nit) — For a word left out beside a matched measure, the sentence says "say in the answer that no governed metric was used". The matched word's figure in the same answer does come from a governed metric. The existing sentence for left-out unknown words scopes its label ("for them"). One client could label the whole answer.

N7 (nit) — Three comments still describe one grouping, the form N8 warned of: the first of the two stacked doc comments above groupingCheck in DatasetToolCopy ("a breakdown or ranking none of those dimensions carries"), which is also orphaned by the second; the comment above DATASET_GROUPING_TERM_SENTENCE; and the header comment of DATASET_SELECTION_RULE ("no dimension of those candidates' datasets carries the grouping"). Comments only.

Closing the round: S1 is open on this head and earns a delta review of its fix. The nits are in code and in published text, so a fix to any of them moves the head; they can ride with the fix for S1 or be left. The check-runs named in ③ had not concluded when this record was written.

Implemented-by: claude/project-thread-ziwp93
Reviewed-by: session_01Utp6CaQsbKBMQtm6Tpsamd

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

The brief the card thread handed its isolated contract reviewer for record 7370830784 on this pull request, as filled from record-recognisers.mjs --brief-template. The reviewer was also told how to read each input read-only, to write nothing to GitHub, to read the check-runs last, and to sign with the adopting seat as Reviewed-by:. The dev fixed S1 of that record in 36d173cb (spec describe text and doc comment only, with the regenerated reference page and three code comments); a delta record on that head follows once its check-runs conclude.

Contract review brief — PR #39275 @ 1ad166da0c2bbae6ffe069946157a97f5da68e55 (card #39221)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/ai/dataset-tools.zod.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #39221: its body and EVERY comment (rulings and earlier records included)
· PR #39275: its body, its file list, and the net diff against main at 1ad166da0c2bbae6ffe069946157a97f5da68e55
· the check-runs on 1ad166da0c2bbae6ffe069946157a97f5da68e55: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/ai/dataset-tools.zod.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/d1a70e2d-29ab-5c3e-82b3-140f334e6354/scratchpad/issue-39221/pr-39275/review/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

…out a candidate

The page summarised the selection rule as 'a word with no match but with
candidates is the same question', with no exception. It now says the
question is about a measure candidate, and lists the four scopes the rule
carries: the user's own word, the grouping no candidate's dataset carries,
a word whose candidates are all dimensions, and a word that names the field
a filtered candidate measure aggregates.

Claude-Session: https://claude.ai/code/session_01Utp6CZZJZbv4C69FGSTHqa
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Dec 3, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 041fc8f8d994bdbea766e59cf5676ac47ccc5be0
Local-runs: none
Scope: packages/spec/src/ai/dataset-tools.zod.ts + packages/services/service-analytics/src/dataset-next-step.ts, packages/services/service-analytics/src/dataset-tools.ts, packages/mcp/src/mcp-server-runtime.ts

Delta review of PR #39275 for card #39221, after record 7370830784 on 1ad166da. Read for this record: the delta from 1ad166da to the head (two commits, 36d173cb and 041fc8f8; six files, 52 lines added and 27 removed); the net diff from merge base a9af21b9, now ten files, 480 lines added and 24 removed; the card's two new comments (the dev's report 7370673121 and the seat's reading with its claim amendment, 7370879667); the pull request body as it stands, with its Review round section, and its three comments (7370650110, 7370830784, 7370842622); every check-run on the head, both pages; and, at the head and never checked out, the three changed passages of packages/spec/src/ai/dataset-tools.zod.ts, composeDatasetNextStep and groupingSentences again for the cases the new text names, DATASET_SELECTION_RULE, and the changed section of content/docs/ai/connect-mcp.mdx. Nothing was built, run or re-run.

① Derived judgments

  • Still no accept-set moves. In the spec file the delta rewrites two .describe() strings and one doc comment and touches nothing else. No key, enum value, optionality or pattern changes. Right.
  • No sentence a client is served changed, checked on the diff. In dataset-next-step.ts the delta touches one doc comment inside the DatasetToolCopy interface and no line of the COPY table or of the composer. In dataset-tools.ts it touches the comment above DATASET_GROUPING_TERM_SENTENCE and not the constant. In mcp-server-runtime.ts it touches the header comment of DATASET_SELECTION_RULE and not the string. So nextStep.note, the list_datasets description and the initialize rule are what they were on 1ad166da. The spec descriptions that did change sit on the output schema, and no source file of packages/mcp/src reads outputSchema, so they are not in tools/list. No test file is in the delta, the pins are the ones read before, and the suites that hold them are green on this head. The premise readings therefore still describe the text served. Right.
  • The published surface the delta moves. The two spec descriptions, the reference page regenerated from them (I compared both rows with the strings; they match), and one hand-written docs page. Right.
  • Tier. Unchanged: a published schema file and no governed path.

② Semver level

Unchanged. The changeset still takes patch on @objectstack/service-analytics, @objectstack/mcp and @objectstack/spec, and the delta moves no fourth package: its spec change is description text on a package already named, its other code changes are comments, and the docs page publishes from no package. The changeset's own sentences are still true of the tree. Clause-②: no and Metadata-protocol: none stand in the body and the changeset. Check Changeset ran twice on this head and both runs are green.

③ Boundary flags

Check-runs, read at 2026-12-03T07:52Z. 78 runs under 74 names: 63 success, 14 skipped, 1 cancelled, none failed and none pending. Four names have two runs. Check Changeset is green twice. Auto Label and Check PR Size each have one green run and one skipped. PR-body guards (claim · duplicate · Part-of · single-writer path) has one cancelled run started at 07:22:51Z and one green run started at 07:23:25Z, so the later run answers it. Twelve names have a skipped run only, all opt-in or not selected for this diff. Every run that was open on the first record is now green: Build Core, Test Core with its twelve shards, the three Type Check gates and Type Check UI, the six Lint gates that were running, Build & E2E UI, Live E2E UI and Check Changeset. Test UI and its sixteen shards, which had not been planned then, are green too. Check Documentation Links and Build Docs are green, which answers the new docs page.

SQL push-down. The delta holds description text, comments and prose. Nothing to judge.

Flags, each answered.

  • The dev's report is on the card now (7370673121). Its open_questions list is empty. Its gate line reads 119 commands derived and 119 run. It names three deviations: the head branch was restarted from main and squashed, which changes no tree; the dq_claimed_so_far cell, answered in the next point; and that the live-check cost on this card is near the line of the live-check rule, which is the seat's to hold and needs no more measurement for this delta, because the delta changes no served sentence.
  • The premise reading is on the card now (7370879667). The seat reads the cell without the skill as that question's ordinary spread, 4 of 15 on this wording against 1 of 5 before, and says in so many words that the door sentence reaches every ask, so this is a reading of the counts and not a proof. That is the correction the first record asked for, and the body's acceptance note carries it too. I accept the reading as recorded. The measurement is still the dev's local run, which I did not repeat.
  • The docs page, content/docs/ai/connect-mcp.mdx, against DATASET_SELECTION_RULE at the head. The seat added the file to the claim (7370879667). The page states nothing the rule does not. Its summary now says the question is owed for a word with "a measure among its candidates", which is the rule's own condition and corrects a sentence that had no exception. Its four points are the rule's four scopes in the rule's order: the user's own word, the grouping case, a word whose candidates are all dimensions, and a word that names the field a filtered candidate measure aggregates. The closing line, that the answer states the case as nextStep and the instructions say to follow its note, is in the rule. The page says less than the rule in three small places, none of which adds a claim: it leaves out "never the whole question", the parenthesis that defines when a word names a field, and "for that measure". It writes "everything it is split or ranked by" where the rule writes "all". It repeats the rule's "those candidates' datasets" and its singular "the candidate is mentioned", so N1 and N2 of the first record read the same on the page as in the rule, no better and no worse.
  • The headroom under the byte ceiling. The body says the seat read the 9 bytes as fine in "its note of 2026-12-03T07:20Z". The card comment of that minute, 7370879667, does not mention the ceiling, so that reading is not among what I could read. It is the lane seat's either way.
  • The skill row. Unchanged: step 2 of the ask skill is still unscoped and its card is the seat's to file, as the body says.
  • Comment 7370650110 (docs-drift bot). Updated on this head and still lists the one page that names COPY. No action, as before.

④ Design judgment

Earlier finding:

S1: closed

What the finding asked, and what the spec file says now. The finding had two halves: the two statements about nextStep.note promised the dimension listing without condition, and no published text carried the note's rule for a partial answer.

The note description now reads: "On a complete answer, before the question it writes about a term with a measure among its candidates, it names the dimensions of those measures' datasets, each a dimension this answer lists; on a partial: true answer it names none". I held each clause against composeDatasetNextStep at the head. On a complete answer the listing is written in exactly the two places the question about such a term is written, after the re-send sentence and before candidateTail or leftCandidateTail. When the reported case is several_measures the note writes no question about a left-out candidate word, so the clause "before the question it writes" promises nothing there, which is what the executor does. On a partial answer groupingSentences returns nothing. "Complete" is the spec's own word for an answer without partial ("Absent on a complete answer"), and the executor serves partial: true on exactly the condition it passes to the composer. The first half is met.

The candidates description now ends its sentence for this rule with "each such measure is mentioned as a declared metric that cannot be split that way, and the term's candidates are listed as before. On a partial: true answer the term is asked about as before." The last sentence is the ADR note's own ("the term is asked about as before"), and the executor bears it out: on a partial answer the question follows the re-send sentence with nothing between them, in both placements. The doc comment of DatasetTermCandidateSchema now says the condition is the client's to judge "on a complete answer", that there the note names the dimensions "before the question it writes about such a term", and that on a partial: true answer "a dimension may be missing from the listing, the note names none, and the term is asked about as before". That is the note's reason and the note's rule. A client that reads the spec is no longer told it may judge the condition on a partial answer. The second half is met.

Whether the fix says anything the executor or the note does not bear out. I read the three new passages against the note of 2026-12-03 on #39221 again. "Each such measure is mentioned" is the note's "mentions each measure candidate of the term". "On a complete answer" is the note's "That reading rests on a complete answer". Neither passage gives the reader an instruction, so M1 still holds. One phrase is wider than the code when read word for word, and it is N8 below.

The implementing files. The delta changes comments only in the three of them. The two stacked doc comments above groupingCheck are now one, and it states the whole reading ("no one of those datasets carries in full"). The comments above DATASET_GROUPING_TERM_SENTENCE and above DATASET_SELECTION_RULE now say "no one of the datasets of those measures carries everything the question groups by". That closes N7 of the first record. Those two comments now describe the measure candidates' datasets and "each such measure", which is the note's reading and a little more exact than the served sentence they sit above; the served sentence is unchanged, so N1 and N2 stand as recorded for it and neither is made worse. The body lists N1, N3, N4, N5 and N6 as left, each for the reason that the sentence is one a client is served and the premise was measured on it. I accept that: none of them was changed by the delta.

No must-fix, no should-fix.

N8 (nit) — "on a partial: true answer it names none" in the note description, and "the note names none" in the doc comment, are wider than the code when read word for word. What the executor leaves out on a partial answer is the listing. A dimension of a measure candidate's dataset can still be named there for another reason: send ["booked", "industry"] on a partial answer where "industry" equals the dimension of the dataset that holds the "Booked amount" candidate, and the note names that dimension as the grouping the second word equals. In its sentence the phrase reads naturally as "writes no such listing", which is true, and nothing a client does depends on the wider reading. It can be left; a fix moves the head.

Closing the round: S1 is closed on this head and nothing is opened that earns another round. Every check-run on the head has concluded and none is red.

Implemented-by: claude/project-thread-ziwp93
Reviewed-by: session_01Utp6CaQsbKBMQtm6Tpsamd

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

维护者速读

席位核对

ACCEPT · head 041fc8f8d994bdbea766e59cf5676ac47ccc5be0 · repo:objectstack@os-bill

  1. Shape: 10 files, +480/−24:

    • dataset-next-step.ts and dataset-tools.ts: the executor sentence in four locales, read over the whole grouping.
    • mcp-server-runtime.ts: DATASET_SELECTION_RULE, the door sentence.
    • dataset-tools.zod.ts: describe text only, plus the regenerated reference page.
    • connect-mcp.mdx: the summary of the initialize rule.
    • The tools-list ceiling goes 39,000 → 39,300 (tools/list measures 39,291).
    • Tests and one changeset.

    All of this is within claim 7366924507 and amendments 7368143683 and 7370879667.

  2. Premises measured: 5 asks per question per arm (haiku, medium), main 8d1a829c against this wording. booked_by_category goes 0 → 5 with the skill off and 2 → 5 with it on. dq_booking_total stays 5/5. dq_claimed_so_far with the skill off reads 4 of 15 against 1 of 5, and every failing ask made no list_datasets call; the seat's reading is 7370879667. With the skill on, top_claimants is 4/5; the miss is an aggregate_records authoring slip, recorded in the Acceptance notes.

  3. Gates: check-runs at this head: 63 success, 14 skipped, 0 failed. The one cancelled run was superseded by a green run of the same name. Mergeable is clean. Locally, service-analytics 5968, mcp 1662 and spec 29282 tests pass, typecheck exits 0, and 119 of 119 derived gates pass. Contract review at CONTRACT_REVIEW_TIER: PASS 7370830784 at 1ad166d with S1 open, then delta PASS 7371580901 at this head with S1 closed.

  4. Accepted deviations: N1 to N6 and the delta's new nit are left unfixed (they are on served sentences, or a fix would move the reviewed head), as listed in the PR body's Review round. tools/list has 9 bytes of headroom.

  5. Out of scope: skills/objectstack-ask is filed as skills/objectstack-ask: teach step 2 of ruling P (no ask-back when the candidate's dataset lacks the asked grouping) #39285 (p2, sub-issue). Skills-docs: follow-up #39285.

  6. Landing: not governed (check-governed-merges --pr: 0 of 10 paths; 504 lines). The seat lands it with ready + auto-merge. On merge, 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 closes (step 2 of ruling P is done) and MCP 问数: list_datasets answers candidates_only on four figure questions, so the agent asks back and gives no figure — both arms lost 2026-12-02 (orders_by_status, overdue_by_owner, booked_by_category, sales_paid_hotel) #39152 stays open for the daily-round acceptance.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-12-03T07:59Z · seat ACCEPT 7371676946 and contract review delta PASS 7371580901 at head 041fc8f8d994bdbea766e59cf5676ac47ccc5be0: 65 success, 16 expected skips, 0 failed (one cancelled run was superseded by a green run of the same name). Not governed; 504 lines. Marking it ready and enabling auto-merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 3, 2026 07:59
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 8c023b2 Dec 3, 2026
86 of 87 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-ziwp93 branch December 3, 2026 08:27
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 protocol:ai size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants