Skip to content

Commit 666309b

Browse files
committed
docs(adr): scope the ADR-0149 D3 note's first bullet to this note
"This note changes no word of rule 1" states what the candidates note does and leaves room for a later, separate note on rule 1's match targets. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
1 parent a23b07c commit 666309b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Why the platform computes `matches` instead of leaving the whole rule to the mod
159159
> **Amendment note (2026-11-17, [#34761](https://github.com/objectstack-ai/objectstack/issues/34761) — this PR): a term with no hit is answered with `candidates`, offered for a question and never selected.**
160160
> Ruled by the maintainer on [#34691](https://github.com/objectstack-ai/objectstack/issues/34691), fork F1, option B, option text verbatim 「B 零命中返回候选」 — 「现在就改服务器,list_datasets 零命中时返回候选数据集。专题席的新推荐。」 (ruling record [`6943126855`](https://github.com/objectstack-ai/objectstack/issues/34691#issuecomment-6943126855), relayed to #34659 as `6943149235`). It re-rules point E2 of #34659's record `6940528935`, where `list_datasets` stayed exact-match with no candidates list on a named premise, to that point's option A. The contract is `packages/spec/src/ai/dataset-tools.zod.ts#ListDatasetsOutputSchema` (its `candidates` member) with `packages/spec/src/ai/dataset-tools.zod.ts#DatasetTermCandidateSchema`; this note points at it without restating every case.
161161
>
162-
> - **What counts as a hit does not change.** Rule 1 stands as written: equality after normalization is a hit, and a substring, a stem or an embedding neighbour is not. `matches` is computed as before, and rules 2, 3 and 5 read it as before.
162+
> - **What counts as a hit does not change.** This note changes no word of rule 1: equality after normalization is a hit, and a substring, a stem or an embedding neighbour is not. `matches` is computed as before, and rules 2, 3 and 5 read it as before.
163163
> - **A term with no hit in any listed dataset gets `candidates`.** The `list_datasets` output of [D2](#d2--two-tools-one-definition-one-executor-two-transports) gains one optional member beside the ones D2 lists, which stand as written. For such a term it names the members the platform offers as possible readings, each a pointer `{ term, dataset, member }` to a member listed in the same answer, so only a member this caller may read is ever offered. This is rule 1's parenthesis as a platform answer: a non-hit "may be offered in rule 3's question, never acted on". The list carries no score. Its order is the listing order: terms as sent, datasets as listed, a dataset's measures before its dimensions (rule 5: a dimension alone is not an answer), held to `LIST_DATASETS_MAX_CANDIDATES_PER_TERM` per term. A term with a hit has no candidates and an answer with none to offer carries no `candidates` key, so an answer in which every term sent has a hit, like an answer to a call that sent no `terms`, is what it was. Which members are near enough to offer is the executor's rule; this record and the spec say what a candidate is, not how it is found.
164164
> - **With candidates, the AI asks in rule 3's form and acts on none.** The question lists each candidate's label, dataset label and description, as rule 3 lists several hits. The AI does not pick one, does not prefer the first, and does not treat a candidate as a hit under rule 2: the choice is the person's.
165165
> - **With no candidate, rule 4 is unchanged.** No hit and nothing offered is the labelled fallback to the object query, as written; [M2](#m2--what-the-ai-does-when-no-dataset-covers-the-question) stays ruled A.

0 commit comments

Comments
 (0)