Skip to content

Commit 652c078

Browse files
committed
docs(spec): the candidates description states the dimension-only scope declaratively
The `candidates` description of ListDatasetsOutputSchema and the doc comment of DatasetTermCandidateSchema carried the executor's instruction sentence whole. AI guidance text does not enter the spec (ADR-0149 M1, ruled A), and the file's header says so. Both now say what a term whose candidates are all dimensions is offered them for, a possible grouping and not a question, in the file's own vocabulary ("term"), and instruct no reader. The doc comment cites the ADR note by its date. No shape changes. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
1 parent ce88a4e commit 652c078

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

‎packages/spec/src/ai/dataset-tools.zod.ts‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,11 @@ export const LIST_DATASETS_MAX_CANDIDATES_PER_TERM = 5;
121121
* term has candidates only when it has no match anywhere in the answer.
122122
*
123123
* What a term's candidates are offered for is read from all of them together
124-
* (ADR-0149 D3, the second amendment note under its rules). A term with a
125-
* measure among its candidates is offered them for a clarifying question. A
126-
* word whose candidates are all dimensions is at most a possible grouping:
127-
* never ask about it, and it never stops a matched measure. Both are the
128-
* same shape: the kind is the `measures.` or `dimensions.` prefix of
129-
* `member`.
124+
* (ADR-0149 D3, the amendment note of 2026-11-19). A term with a measure
125+
* among its candidates is offered them for a clarifying question. A term
126+
* whose candidates are all dimensions is offered them as a possible grouping,
127+
* not for a question, and does not stop a matched measure. Both are the same
128+
* shape: the kind is the `measures.` or `dimensions.` prefix of `member`.
130129
*
131130
* The entry is a pointer, `{ term, dataset, member }`, and carries no
132131
* `matchedOn`: that key states an equality a candidate does not have. It
@@ -316,9 +315,9 @@ export const ListDatasetsOutputSchema = lazySchema(() => z.object({
316315
warning: z.string().optional().describe('Why the answer is partial; present exactly when `partial` is'),
317316
candidates: z.array(DatasetTermCandidateSchema).min(1).optional().describe(
318317
'Members offered as possible readings of a term that matched no member of any listed dataset: for a '
319-
+ 'clarifying question when a measure is among the term\'s candidates. A word whose candidates are all '
320-
+ 'dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure. '
321-
+ 'A candidate is not a match: its term has no entry in any dataset\'s `matches`. The '
318+
+ 'clarifying question when a measure is among the term\'s candidates. A term whose candidates are all '
319+
+ 'dimensions is offered them as a possible grouping, not for a question, and does not stop a matched '
320+
+ 'measure. A candidate is not a match: its term has no entry in any dataset\'s `matches`. The '
322321
+ 'platform selects none: the list carries no score, and its order is the listing order stated here, not a '
323322
+ 'ranking. Every candidate is a member this caller may read, listed in `datasets`. Terms in the order sent; '
324323
+ 'for one term, datasets in the order listed, and each dataset\'s measures before its dimensions, as its '

0 commit comments

Comments
 (0)