Repository navigation
Description
epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU
Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic), filed on the maintainer's word in this session's chat, 2026-11-17, verbatim: 「立卡」, answering this session's list of four gaps nobody had carded. The gap was reported by the dispatching seat repo:objectstack#3 on #34659 (comment 6961139115); the filer did not re-read the code behind it.
Why
A person asks 「按行业看销售额」 or "revenue this quarter". The measure word has its one exact match, and the grouping word 行业 or the time word "quarter" also comes back with a near candidate, because candidates are offered by containment in either direction and dimensions count. One row of the rule then says compute and another says ask and compute nothing. An ordinary question gets a clarifying question back.
Evidence
- Per the report (the dispatching seat's contract review of PR docs(skills): the ask-data skill's zero-match rows read list_datasets candidates #34977, record 6961115041, section ③): the executor offers candidates by containment either way and counts dimensions; 「按行业」 contains a dimension labelled 行业, "this quarter" contains one named
quarter, 本季度 contains 季度. LIST_DATASETS_DESCRIPTION,DATASET_SELECTION_RULE, the ADR-0149 D3 note and the skill all state the ask-back without scoping it, so the fix is one rule changed in all four places.
Scope
- The rule: a candidate asks back only when the term it belongs to has no exact match and no other term supplies the measure; a candidate on a dimension or time word never blocks a matched measure, and is at most offered as a grouping.
- Decide it once where it is computed: service-analytics: the dataset executor computes
nextStepandsourceLine, and the MCP door returns them #34919'snextStepis the place, so the executor returns the decision and the four texts say "follow it" in the same words. If service-analytics: the dataset executor computesnextStepandsourceLine, and the MCP door returns them #34919 has landed without it, this card amends it. - Eval cases: a matched measure beside a candidate on another word; a dimension-only candidate.
- File surface:
packages/services/service-analytics/**,packages/mcp/**,docs/adr/0149-…md(note),skills/objectstack-ask/**.
Done when
- 「按行业看销售额」 on an app with one 销售额 measure computes, grouped by industry, with no question back; a bare near-miss measure word still asks.
- The door strings, the ADR note and the skill state the scoped rule in the same words.
Relations
- Parent: Decision: open-source MCP — the client thinks locally, the server keeps a thin door (a metadata draft write entry for building; the data door for 问数), plus policy, version skew and the 问数 eval #34659. Related: service-analytics: list_datasets fills
candidateswith near members (name, label, synonym) on a zero-match, only from what the caller may read #34763, service-analytics: the dataset executor computesnextStepandsourceLine, and the MCP door returns them #34919, skills: the ask-data skill's zero-match row reads thecandidateslist once list_datasets fills it #34868, ask skill: iterate the objectstack-ask skill and the MCP tool descriptions against the travel_expense ask round until it meets a fixed target #34996. - Governed surfaces:
docs/adr/**(Tier H),skills/**.
Blocked-by: #35158
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1205, 22:5xZ): p1 · domain:server →
pm:queue.Themes: zh-CN customers and MCP / 问数, with a named effect. Ordinary questions like 「按行业看销售额」 or "revenue this quarter" get an unneeded ask-back, because a grouping or time word with a near candidate stops a measure that matched exactly. Users meet that on common questions. So p1.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
Claim: PM loop round 1 (area o1-C) · 2026-11-18T07:25Z
Session:
session_01JQwxbWDsbbJizuYnDwBxT8Account:
os-warrenBranch:
claude/issue-35005-grouping-candidate-no-askWorktree:
objectstack-issue-35005Domain:
domain:serverSeat:
repo:objectstack#1File surface:
packages/services/service-analytics/src/**(dataset-next-step.ts,dataset-term-matcher.tsif the candidate kind must be kept,dataset-tools.tsdescription),packages/mcp/src/mcp-server-runtime.ts(DATASET_SELECTION_RULE), their tests, one changeset. ⛔ Notdocs/adr/**orskills/**: the ADR-0149 D3 note and the ask-skill candidates row go to a separatedomain:skillscard (execution-duties 派发: an implementation card's file surface carries no governed path).Container & model:
M,mode:subagent,model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack: dataset-next-step.ts leftOutSentences adds an ask-first sentence for any term with candidates, including dimension-only candidates | none | every MCP / in-app ask client on a dataset question with a grouping or time wordThread-read: 6963243189
Premise: corrected — measured on origin/main aef42cb (after #35043): the "compute nothing" half is already fixed (
one_measureoutrankscandidates_only), but a term whose candidates are all dimensions still yields an ask-first sentence beside the matched measure (leftOutSentences,dataset-next-step.ts~:344), and the four texts still state the ask-back unscoped. Reading taken: only dimension/time candidates change (offered as a grouping, never an ask); a word whose candidates are measures keeps today's behaviour (answer the matched measure, ask about that word) — that is what the card's Why and Done-when name; the literal first clause of Scope would also drop that ask, which this claim does not take.Serial constraints cleared: #35100 (skill line, Tier H, open) teaches "follow nextStep's note" and stays true after this change; overlap-check before each push.
Pre-claim lane:
domain:server(service-analytics, mcp strings).Pre-claim deps: #34919 PR #35043 MERGED
6932cb84fe.Prior rulings read: #34691 F1 = B (6943107981: on zero-match, near candidates for asking back only, never selected; what counts as a match in ADR-0149 D3 does not change); ADR-0149 D3.
Lease
o1-C(seat post #34366).objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
os-dev-report
{ "issue": 35005, "status": "done", "branch": "claude/issue-35005-grouping-candidate-no-ask", "pr": "https://github.com/objectstack-ai/objectstack/pull/35156", "session": "session_01JQwxbWDsbbJizuYnDwBxT8", "premise_still_valid": true, "summary": "Premise as narrowed by the claim, re-measured on origin/main aef42cba4e: after #35043 a word whose candidates are all dimensions still got the ask-first sentence beside a matched measure (leftOutSentences) and the reported candidates_only question, and both door strings stated the ask-back unscoped. The candidate kind was not lost: memberOf already returns it and the NamedMember type dropped it. readTerm now keeps the kind and marks a candidates_only reading whose candidates are all dimensions as groupingOnly. The note offers such a word as a possible grouping (new groupingCandidateHit and groupingCandidateTail, four locales) and never asks about it, under one_measure and under candidates_only. A word with a measure among its candidates keeps its question: asked beside a matched measure, and candidates_only with compute-nothing when nothing matched. decision, terms, matches and candidates are unchanged for every input. LIST_DATASETS_DESCRIPTION and DATASET_SELECTION_RULE carry the same scoped 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.' Open sub-part not taken: relabelling a lone grouping-only word as no_measure would contradict the spec's published definitions of the decision values (no_measure: 'has no entry in candidates'). It stays candidates_only, its note offers the grouping and asks which number is meant (groupingTail). See open_questions. One patch changeset, Clause-② no, Metadata-protocol none.", "tests": "At 9c885ebac5. service-analytics dataset-tools.test.ts: 79/79 passed, including 7 new [#35005] pins: 按行业+销售额 is one_measure with no ask, grouping offered and candidates unchanged, in four locales; this quarter+revenue and 本季度+销售额 likewise; bare 销售 still candidates_only with compute-nothing, in four locales; revenue+churn still asks about churn, in 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 and asks which number. There is also a description pin. Full service-analytics suite: Test Files 218 passed (218), Tests 5592 passed, 335 skipped, lock VERDICT command-exit 0. mcp: initialize-selection-rule-34686.test.ts gains a pin that the initialize rule and the real list_datasets description contain the identical scoped sentence and that the unscoped form is gone. Full mcp suite: Test Files 71 passed (71), Tests 1267 passed (1267), VERDICT command-exit 0. Typechecks for both packages exit 0, and both edited test files are in their package's tsc program (--listFiles count 1 each). Ablation via scripts/ablation-replace.mjs replaced the kind check 'const groupingOnly = decision === ... every kind dimensions' with 'const groupingOnly = false' (anchor 1 to 0, blob bfd1844761e7 to df278719790e). 4 tests failed and 75 passed: the 4 grouping pins went red, while the bare-measure, churn and mixed-kind controls stayed green. The restore was verified: blob equals HEAD bfd1844761e7 and git diff HEAD is empty. The suite imports the executor by relative src path, so no dist leg applies. No dataset eval set exists in service-analytics. The scenario cards in docs/qa/scenarios belong to the eval seat and were not touched.", "gates": "Local, at 9c885ebac5: the mcp^... closure build gave VERDICT command-exit 0. dispatch-gates --commands derived 70 families from the merge-base change set (6 paths), and all 70 ran with exit codes captured before any pipe. The --ran reconciliation gave 69 exit 0 and 1 NOT MEASURED: check:dual-build-cjs-loads exit 3, PREREQUISITE NOT MET (it reads every package's dist; only the mcp closure was built). CI runs it. overlap-check --branch=HEAD: VERDICT clean exit 0 (origin/main, and #35103 which shares two mcp files, merge cleanly). check-platform-checklist is not owed: no exported symbol was renamed or deleted. CI check-runs on #35156 were in_progress when this report was written; the report does not wait for them.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls as draft, then POST /repos/objectstack-ai/objectstack/issues/35156/assignees with os-warren), one stroke via repository_dispatch; post-stamped comment POST /repos/objectstack-ai/objectstack/issues/35005/comments (this report). git push x2 (the empty branch, then the fix) are not REST writes. The first fix push was refused by the pre-push check:commit-card-trailers hook: the harness trailer named a model. Fixed by amending the unpublished commit to the model-free pair, then pushing.", "open_questions": [ { "question": "A lone grouping or time word with only dimension candidates (['this quarter'], no measure word) stays decision candidates_only. Should it be relabelled no_measure, as the dispatch's open sub-part suggested?", "options": [ "A — keep candidates_only (this PR): the decision follows the spec's published definitions (candidates_only = 'has entries in candidates', no_measure = 'has no entry in candidates'), and only the note is scoped. It offers the grouping, never asks about the word, and asks which number is meant. Cost: none.", "B — relabel as no_measure: that changes the meaning of a published decision value. It needs DatasetNextStepDecision and DatasetNextStepSchema .describe edits in packages/spec, a spec-generated-artifact regen and a Clause-② declaration, so it is a contract change for needs_decision. Cost: one spec PR plus the executor's readTerm and the invariant helper in dataset-tools.test.ts." ], "recommendation": "A, because the note already carries the behaviour the card asks for. Relabelling changes a published enum's meaning without changing what the model is told to do." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: the claim's follow-up domain:skills card (governed surfaces, not this PR) · noted, not filed. Sentences that still state the ask-back unscoped and must change: (1) docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md D3 amendment note: '**With candidates, the AI asks in rule 3's form and acts on none.**' plus the next sentence 'The question lists each candidate's label, dataset label and description...'. Also rule 1's parenthesis '(it may be offered in rule 3's question, never acted on)', if the seat reads it as unscoped. (2) skills/objectstack-ask/SKILL.md step 2 table row: '| A word matches nothing, and `candidates` lists members for it, one or several | Ask the user which one they mean, listing each candidate's label, its dataset's label and its description; with one candidate, ask whether it is the one meant. Do not pick one. |'. That row needs the scoped split (a measure among the candidates: ask; all dimensions: a possible grouping, never asked, never stops a matched measure), and the step 1 bullet 'A word that matched nothing may have `candidates` ... A candidate is not a match.' may need the same. The door strings' shared sentence to copy verbatim: '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 skill is under the token ratchet (scripts/check-skills-token-ratchet.mjs row skills/objectstack-ask/SKILL.md = 1740, zero headroom), so the edit must pay for itself." ] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8
Closing arrangement · 2026-11-18T09:04Z: this card is carried by two PRs. PR #35156 (executor note + the two door strings, not governed) and #35158 (the governed copies: ADR-0149 D3 note,
skills/objectstack-ask/SKILL.md, thepackages/speccandidates description, and this card's eval cases). PR #35156 saysPart of; the seat closes this card when #35158's PR merges.objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p1 → p2: p1 is now kept for queue jumps. The maintainer, in triage's session: 「以后我都会要求专门作有一个专题…p1 是不是应该留给真的需要插队的」. He then confirmed triage's review of every open p1 (「确认」). Development is dispatched by epic, and an epic orders its own work. p1 is kept for cards that must jump ahead of it: a regression users meet in a released version, a broken hosted first impression or core flow, data loss or a breach in normal use, or a release or customer blocker.
Why this card: a child of epic #34659 (ask line): the epic's structure orders it. Any claim on the card is unchanged.
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Release: · 2026-11-19T06:47Z · answer to triage's progress knock (mailbox #35349, 7001926795). Seat 1 changed hands (os-warren clocked out 2026-11-19 00:45Z; os-sales seated 05:52Z with the maintainer's intake
area:buildonly), so this seat-1 claim is released here by its seat's successor.Part of #35005, merged 2026-11-18 09:28Z) — the executor note and the two door strings.skills/objectstack-ask/SKILL.md, thepackages/speccandidates description and the eval cases — all carried by Ask skill and ADR-0149 D3: scope the ask-back to words with a measure candidate #35158 (open,pm:queue,domain:skills).pm:blockedwithBlocked-by: #35158(added to the body), assignee cleared,lease:o1-Cdropped. Close it when Ask skill and ADR-0149 D3: scope the ask-back to words with a measure candidate #35158's PR merges. No branch to resume (the head branch was deleted at merge).objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#6 · sunhaolin · session_017xRBcSPM86QhYAcidhG5Bu
Closed as completed · 2026-11-21T15:50Z. Every item of this card is on
main:Part of #35005), merged.skills/objectstack-ask/SKILL.md, thepackages/speccandidates description, the eval cases): carried by Ask skill and ADR-0149 D3: scope the ask-back to words with a measure candidate #35158, closed completed at 2026-11-20T05:56Z by PR docs(skills): the ask skill and ADR-0149 D3 ask back only about a word with a measure candidate #35662.