Skip to content

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

Todo

Description

@objectstack-fleet

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

Part of #39152 · step 2 of ruling P. Source: #39152.
Ruling-ref: 7363768737 (option P, both steps; the maintainer's tap 「P 两步都做」 on the decision card, 2026-12-03T00:54Z). Analysis of record: 7361140919.
Governing text: ADR-0149 D3 rule 1 and its notes of 2026-11-17, 2026-11-24 and 2026-12-01 (ruling 7301332152); one_measure in packages/spec/src/ai/dataset-tools.zod.ts.
Filing gate: ③ a ruled step the ruling orders the seat to file. Grading: area:ai · domain:server · Bug · p1 (this card inherits #39152's grade, as the ruling orders).
Blocked-by: #39235 (step 1 of #39152, merged as 8d1a829c)

维护者速读

  • 问「按产品类别的成交额」这类题时,候选指标所在的数据集给不出题目要的分组,智能体却还去反问用户要哪个指标。本卡改成:这种情况下不反问,直接按明细回答(标「非指标口径」),并提一句有这个指标。
  • 只改接口回给智能体的那句话,不选指标。先写 ADR 说明(要审批),再改执行器和工具说明,最后改技能里那一行。

Ruled terms (verbatim scope from 7363768737, step 2)

  1. Grouping only: the condition is that no dimension of any offered reading's dataset carries what the question groups by.
  2. Nothing is selected: decision, candidates and matches do not change, only the sentence the door writes.
  3. The answer is the labelled fallback with the reading mentioned, in the wording of the ADR-0149 note of 2026-12-01.
  4. Order: the ADR note first, through the approvers; then the executor and the tool description; then the skill row.
  5. Covers booked_by_category and its family (top_claimants).

Premise and ban

  • Named, falsifiable premise: 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.
  • Ban: if not, the dev reports a fork; no selection, no fallback to route A (skill/tool text alone).

Acceptance

  • booked_by_category (and top_claimants) pass on both arms at 5 reps (4/5 or better), or on two consecutive daily rounds, with dq_booking_total and dq_claimed_so_far holding in the same rounds.
  • The ADR-0149 note lands before the executor change.

Dedupe: grouping candidate, candidates_only grouping, booked_by_category (open issues) → only #39152 and eval records.

Activity

  1. added
    priority:p1
    pm:blocked
    area:ai
    domain:server
    on Dec 3, 2026
  2. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Unblocked · 2026-12-03T03:43Z · step 1 is on main: PR #39235 merged as 8d1a829c. Blocked-by: now points at that merged PR. Back to pm:queue (ruling P, 7363768737).

  3. added
    pm:queue
    and removed
    pm:blocked
    on Dec 3, 2026
  4. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 10 · card thread of seat repo:objectstack@os-bill (ruling P, step 2)
    Session: session_01Utp6CaQsbKBMQtm6Tpsamd
    Thread session: session_01Utp6CZZJZbv4C69FGSTHqa
    Account: os-bill
    Branch: claude/project-thread-ziwp93
    Worktree: objectstack-issue-39221
    Domain: domain:server
    Seat: repo:objectstack@os-bill
    File surface: docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md (PR 1: the note alone), packages/services/service-analytics/src/dataset-next-step.ts, packages/services/service-analytics/src/dataset-tools.ts, packages/mcp/src/mcp-server-runtime.ts (DATASET_SELECTION_RULE), packages/spec/src/ai/dataset-tools.zod.ts (describe text only, and only if it restates the rule) (PR 2, opened after PR 1 is on main) (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: CONTRACT_REVIEW_TIER — reason: docs/adr in the diff and the seat's standing order that docs/adr work runs on the contract tier; served tier read by get_session: claude-fable-5-2, matches, effort: high — reason: the ADR edit records the new ruling P (7363768737), the named exemption to the xhigh ADR-revision row
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the dataset next-step and tool answers in packages/services/service-analytics and packages/mcp (this repo): the agent asks back for a grouping the candidate's dataset does not hold | none | every MCP 问数 caller asking a grouped question today
    Thread-read: 7366872295
    Premise: inbox — the card thread re-checks the premises on origin/main 8d1a829c and measures a local build of the executor sentence at 5 reps on both arms before PR 1 goes to an approver; a failed premise is reported as a fork, not built.
    Serial constraints cleared: check-handover --inflight reads one overlap, #39152 (this seat's own claim, whose PR #39235 has merged; it writes nothing more). Order: PR 1 (ADR note, Tier H) lands first, then PR 2. The skills row for skills/objectstack-ask is a separate card this seat files; it is not in this diff.
    Intake: p1, unblocked by step 1 (PR #39235); ruled term 4 orders the ADR note before the executor change.
    Landing: PR 1 Tier H (docs/adr/**): contract-tier L2, seat ACCEPT, hand-off to the approver, the seat lands after approval. PR 2: L1 and contract-tier L2 if a spec describe line moves; the seat lands.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverpm:dispatchedpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions