Skip to content

datasets: on a zero-match list_datasets returns near candidates and an ambiguity note, for asking back only (E2 re-ruled to A) #34767

Closed as duplicate

Description

@objectstack-fleet

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 seat's chat, 2026-11-17, verbatim: 「三点都同意,按最终计划把后续里程碑的卡全部立出来」, and, on the list of thirteen cards the seat then showed: 「同意」. The ruling records are #34659 comment 6940528935 and #34691 comment 6943107981. Readings: objectstack a0326b06, cloud 53a5844, 2026-11-17.

Why

A person asks for "revenue"; the app has Won Revenue, Annual Revenue and Planned Revenue and no metric named exactly that. The server answers "no match", the client falls back to raw rows and states one number with confidence, and the person never learns there were three readings.

Who acts: the spec lane for the tool's output shape, the server lane for the matcher and the tool (packages/spec/src/ai/dataset-tools.zod.ts, packages/services/service-analytics, packages/mcp). Reader: every client that asks a question, with or without a skill.

Evidence

  • packages/services/service-analytics/src/dataset-term-matcher.ts: equality after normalisation is a hit; "a substring, a stem or a near neighbour is not a hit". On no hit the result carries an empty matches and nothing else.
  • A live hosted CRM environment, 30 natural business words in one call: 6 matched; revenue, deals, customers and sales matched nothing although measures contain them.
  • examples/app-crm, five repetitions per arm: with no skill the client never asked back on a near-miss word; with a skill branch written for it, it did so only part of the time. A tool result is read by every client that made the call; a tool description or a skill is not.
  • Comparable servers answer this in the result: Lightdash grep_fields returns closest catalogue matches with an ambiguity note; Snowflake Cortex Analyst documents a suggestions field.

Scope

  • When a term matches nothing, the dataset result lists candidates: members whose name, label or synonym contains the normalised term, each with label, dataset label and description, marked as not a match. Only members the caller may see.
  • A short note in the result when two or more candidates exist: several readings, ask which is meant.
  • A candidate is never selected by the server and never changes matches. ADR-0149 D3 keeps its definition of a match and gains a note recording this ruling.
  • The ask-data skill (skills: publish an ask-data skill for a client answering business questions over MCP (list_datasets → query_dataset → labelled fallback) #34685) and the served text gain the matching branch: candidates listed means ask, compute nothing yet.

Done when

Relations

Activity

  1. added
    pm:epic
    area:ai
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

    Closed as a duplicate, 2026-11-17T10:19Z. The seat that took this epic over (repo:objectstack#3) had already filed the same work as #34761 (the spec half: candidates on a zero-match) and #34763 (the matcher half) eleven minutes before this card, and I filed this one without re-reading the parent's thread first. For the seat to fold in if useful, this card's body adds three readings those cards may not carry: the 30-word probe on a live hosted environment, the five-repetition ask pilot's direction on near-miss words, and the Lightdash and Cortex Analyst result shapes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aipm:epic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions