Repository navigation
Description
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):
packages/spec/src/ui/dataset.zod.ts:456(DatasetMeasureSchema): add an optional key besidesynonyms(:649), working namereadingOf. It holds the words this measure is one reading of. The vocabulary limits are the same as forsynonyms(DatasetMemberSynonymsSchema,:155).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
:862stays for synonyms. - Measures only: D3 selects a measure.
packages/spec/src/ai/dataset-tools.zod.ts:DatasetTermMatchedOn(:88) gains'reading'.DatasetNextStepDecision(:181) stays closed: a term matched only on reading words isseveral_measureswhen 2 or more members carry it. With exactly one, the ADR amendment decides; the recommendation is to ask whether it is the one meant, ascandidates_onlydoes for a single candidate.- A reading match never yields
one_measure. - The catalogue measure (
DatasetToolCatalogMeasureSchema,:261) lists the key, likesynonyms.
- Executor:
packages/services/service-analytics/src/dataset-term-matcher.ts:86(matchDatasetTerms) matches reading words under the same normalization.dataset-next-step.ts:416counts them as above, and its note asks in rule 3's form.LIST_DATASETS_DESCRIPTION(dataset-tools.ts:102) gets one sentence.
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 forsynonyms.
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 inmatchesundermatchedOn: 'reading'; - a reading match beside a single synonym match on another word keeps the precedence of
DATASET_NEXT_STEP_PRECEDENCE.
- two readings →
- The MCP door shows the same answer.
- 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 itsnextStepmust never claim a hit that the executor'smatcheslacks (the same two-layer issue as cloud#5145).
Activity
objectstack-fleet commentedon Nov 28, 2026
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:analyticsis 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.objectstack-fleet commentedon Nov 28, 2026
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:
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.
objectstack-fleet commentedon Nov 29, 2026
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.