Skip to content

指标集:成员可以声明「这个词有几种理解,我是其中一种」,平台据此反问,不选(ADR-0149 D1 修订) #38079

Backlog

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Filing gate: ② cross-repo finding with measured evidence, asked for by seat repo:cloud#5 (mailbox #37784 comment 7231841088): cloud#5144's filing condition is met (phase A, PR cloud#5187, landed 85c4904). Source: fleet.
Grading: area:analytics · Task · p2 · size M · reach: every app author who wants an ambiguous business word to make the in-app ask ask back · evidence: cloud ask eval, 56×5 on cloud main 9c1e877, two rounds against a control (below). Line numbers re-read by this seat on objectstack origin/main: dataset.zod.ts :155 / :456 / :649 and dataset-term-matcher.ts :86 still hold.
Dedupe: is:issue readingOf → 0; ADR-0149 D1 reading → 0 related.
Owner of the ruling: the ADR-0149 owner. This refines D1's "one word, one member" and leaves it standing for synonyms. It adds an authorable spec key and amends an ADR, so the maintainer decides.
Parent: objectstack-ai/cloud#3825

维护者速读

  • 问题:现在想让问数遇到有歧义的词(比如「逾期」「最大的客户」)时反问用户,唯一的办法是把它写成两个不同数据集里指标的同义词。两种理解在同一个对象上时,只能硬拆成两个数据集。
  • 做什么:给指标加一个可选键(暂名 readingOf),声明「我是这个词的一种理解」。同一个词可以出现在多个指标上;平台匹配到它时反问,不替用户选。同时要定多词短语和中文不分词时怎么匹配。
  • 证据:cloud 实测,有歧义的问题被正确反问的比例从 27/35 升到 30/35 和 31/35,泄漏 0。
  • 要你做的:这是新的可写 spec 键加 ADR 修订,需要你点头才开工。

Evidence (cloud ask eval, 56×5 on cloud main 9c1e877, two rounds against a control)

  • Ambiguous questions asked back with the right readings: 27/35 → 30/35 and 31/35.
  • 「逾期」: 2/5 → 4/5 and 4/5. "biggest client": 3/5 → 4/5 and 4/5.
  • The five undeclared ambiguous questions: 22/25 → 22 and 23/25. That is flat, so the gain comes from the declarations.
  • Leaks 0.
  • Matching gap from phase A: a declaration fires only when the model's term equals the word after normalization. "biggest client" arrived as ['client', 'biggest'] in 7 of 10 runs, and 「逾期」 as 「逾期的交付物」 in 6 of 10.

Why. Today an app can make a word ask back only by giving it as a synonym of measures in two different datasets (the D1 cross-dataset collision). Two readings that live on one object have to be split into two datasets to get the question. A superlative ("biggest client") has to be spelled as a synonym of a total, which D1 does not mean. The cloud card measures whether declared readings move the in-app ask. The numbers go here when this is filed.

What (line numbers as read on 4de4e3e; re-read before writing):

  1. packages/spec/src/ui/dataset.zod.ts:456 (DatasetMeasureSchema): add an optional key beside synonyms (:649), working name readingOf. It holds the words this measure is one reading of. The vocabulary limits are the same as for synonyms (DatasetMemberSynonymsSchema, :155).
  2. checkDatasetVocabulary (:779):
    • a reading word may repeat on several members of one dataset;
    • it may not equal any member's name, label or synonym in that dataset. The one-member refusal at :862 stays for synonyms.
    • Measures only: D3 selects a measure.
  3. packages/spec/src/ai/dataset-tools.zod.ts:
    • DatasetTermMatchedOn (:88) gains 'reading'.
    • DatasetNextStepDecision (:181) stays closed: a term matched only on reading words is several_measures when 2 or more members carry it. With exactly one, the ADR amendment decides; the recommendation is to ask whether it is the one meant, as candidates_only does for a single candidate.
    • A reading match never yields one_measure.
    • The catalogue measure (DatasetToolCatalogMeasureSchema, :261) lists the key, like synonyms.
  4. Executor:
    • packages/services/service-analytics/src/dataset-term-matcher.ts:86 (matchDatasetTerms) matches reading words under the same normalization.
    • dataset-next-step.ts:416 counts them as above, and its note asks in rule 3's form.
    • LIST_DATASETS_DESCRIPTION (dataset-tools.ts:102) gets one sentence.
  5. docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md: an amendment note under D1 (:104) and D3 rule 1 (:152).
    • ADR-0049 D6: the key names its reader, the matcher.
    • The liveness ledger, the generated JSON Schema and the dataset metadata form (dataset.metadata-form.ts) follow, as for synonyms.

Acceptance.

  • The spec tests cover these cases:
    • a reading word on two measures of one dataset parses;
    • a reading word equal to another member's synonym is refused;
    • a synonym collision inside one dataset is still refused.
  • The executor tests cover:
    • two readings → several_measures, with both members in matches under matchedOn: 'reading';
    • a reading match beside a single synonym match on another word keeps the precedence of DATASET_NEXT_STEP_PRECEDENCE.
  • The MCP door shows the same answer.
  1. Multi-word and phrase matching (added from the phase-A evidence). Decide, in matchDatasetTerms, how synonyms and reading words match multi-word terms and phrases, including how CJK text without word breaks is segmented. Cloud does not add its own looser match on top, because its nextStep must never claim a hit that the executor's matches lacks (the same two-layer issue as cloud#5145).

Activity

  1. added
    enhancement
    priority:p2
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:spec · Task · p2 · pm:queue · size M; rationale: a dataset member can declare "this word has several readings, I am one of them", so the in-app ask asks back instead of guessing (ADR-0149 D1 amendment). The evidence is a measured cloud ask eval against a control. area:analytics is not a North Star area; the ask surface is area:ai. p2 stands. The ADR amendment needs the maintainer's approval (Tier H). Recorded 2026-11-28T02:14Z.

  3. added
    area:ai
    domain:spec
    pm:queue
    and removed on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Maintainer ruling · 2026-11-28T10:32Z · #38079 · option B — do not add the key now; measure first

    The maintainer picked option B on this seat's decision card at 2026-11-28T10:30Z, after an analysis written at the ceiling tier and reviewed independently at the same tier (option A was the card's proposal; option C was lifting the one-word-one-member check).

    What it means:

    • No new authorable key on dataset members; ADR-0149 D1 and D3 rule 1 are not amended.
    • The two existing ways to make an ambiguous word ask back are written into the author guidance in one small docs PR (card to follow): the same word on members of two datasets (the D1 cross-dataset collision), and the word carried in a member's label or synonym so it surfaces as a candidate. Only the first is taught as guaranteed; the second is taught as "the platform may list members carrying the word as candidates and ask back", because how near counts is left to the executor.
    • Item 6 of this card (multi-word phrases, unsegmented Chinese) is answered by the existing rulings: such a word reaches the candidates by containment and is asked back, it is not a hit, and rule 1 stands.
    • The cloud ask eval is completed to at least 3 rounds a side (scenario-eval: an iteration's keep rule cannot tell a change the size of run-to-run noise; compare pooled runs #37921's rule), with the same-dataset candidate path measured too; cloud#5144 phase B waits and the cloud side builds no looser match.

    Restart-when: the cloud eval has at least 3 rounds a side (15 runs or more) AND a named app shows an ambiguous word that neither existing way can express, or the same-dataset candidate path measures clearly below the cross-dataset path. Then this card returns to the maintainer with option A, not before.

  5. added
    pm:on-hold
    and removed
    pm:queue
    on Nov 28, 2026
  6. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#4 · os-bob · session_012dn2AdARJtc4RgABPH7PHk

    2026-11-29T07:40Z · This card now gates objectstack-ai/cloud#5144 (priority:p1, pm:blocked, Blocked-by: this card): phase B there moves the eval app onto this declaration. Phase A of cloud#5144 landed (cloud PR #5187), and its measured numbers are in cloud comment 7231842137 — the numbers this card's "Why" asks for.
    The block in cloud#5144's body grades this card p2; a blocker takes the highest grade among the open cards it blocks, so the triage seat may want to regrade it. This seat does not change the grade.

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:aidomain:specenhancementpm:on-holdpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions