Skip to content

Commit fe8707e

Browse files
committed
docs(skills): a reply that names another word after an ask-back starts at step 1
Contract review of the previous head found "If they pick none, go to step 4" also covering a reply that brings a different metric word ("no, I mean ARR"), which ADR-0149 D3 rule 2 and the door's initialize rule send through a list_datasets lookup first. The sentence now reads "Another word starts at step 1; if they only pick none, go to step 4." Paid inside the file: "a fragment's matches are not the user's" is cut from step 1's term bullet, where "a match on a word you supplied is your reading, not the user's" keeps the reason. 7505 -> 7500 priced bytes; the ratchet row is not edited. packages/mcp/src/ask-skill.generated.ts regenerated; eval case 19 for the another-word reply; the changeset follows the text. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
1 parent c735af7 commit fe8707e

4 files changed

Lines changed: 18 additions & 8 deletions

File tree

‎.changeset/35004-ask-skill-after-answer.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ docs(skills): the `objectstack-ask` skill says what the client does after the us
88
Clause-②: no
99
Metadata-protocol: none
1010

11-
Step 2 of the `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, told a connected client to ask which reading the user meant and stopped there. It now carries the turn after the answer: an option is used only once the user picks it, and is then computed by its exact name as step 3 says (`query_dataset`, with the source cited from the tool's answer); a user who picks none of the options gets step 4, the object-query fallback with its label. This is ADR-0149 D3 rule 2 and rule 4 applied to the user's reply; no rule is added.
11+
Step 2 of the `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, told a connected client to ask which reading the user meant and stopped there. It now carries the turn after the answer: an option is used only once the user picks it, and is then computed by its exact name as step 3 says (`query_dataset`, with the source cited from the tool's answer); a reply that names another word ("no, I mean ARR") starts at step 1, a new `list_datasets` lookup with that word, before anything else; a user who only picks none of the options gets step 4, the object-query fallback with its label. This is ADR-0149 D3 rule 1, rule 2 and rule 4 applied to the user's reply; no rule is added. The another-word case is also part of the ask-skill iteration loop (Part of #34996, item a of its third round).
1212

13-
Three restatements are cut from the same file, each keeping its other home, so the skill does not grow: "and in the user's language" in step 1 (beside "Do not translate or reword a term"), the "by stage" example and "You still need a measure match" in the grouping row of step 2, and "use none of that word's candidates until the user answers" under the step 2 table, which the new sentence now states for every option. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes.
13+
Four restatements are cut from the same file, each keeping its other home, so the skill does not grow: "and in the user's language" in step 1 (beside "Do not translate or reword a term"), "a fragment's matches are not the user's" in the same bullet (beside "a match on a word you supplied is your reading, not the user's"), the "by stage" example and "You still need a measure match" in the grouping row of step 2, and "use none of that word's candidates until the user answers" under the step 2 table, which the new sentence now states for every option. `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes.

‎packages/mcp/src/ask-skill.generated.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export const ASK_SKILL_DATA_LOOP: string = [
2121
'- Call `list_datasets({ terms })` with those words, as the user wrote them.',
2222
' Do not translate or reword a term: a match on a word',
2323
' you supplied is your reading, not the user\'s. A term is the noun phrase for',
24-
' the thing, kept whole ("travel budget", not "travel" and "budget": a',
25-
' fragment\'s matches are not the user\'s) and without the verbs, time words',
24+
' the thing, kept whole ("travel budget", not "travel" and "budget")',
25+
' and without the verbs, time words',
2626
' and question words around it ("trip days", not "trip days requested";',
2727
' "报销金额", not "报销金额合计是多少").',
2828
'- Each dataset in the answer carries `matches`: one entry per hit, with the',
@@ -59,7 +59,7 @@ export const ASK_SKILL_DATA_LOOP: string = [
5959
'be incomplete; `warning` says why, and you repeat it when you fall back.',
6060
'',
6161
'Use an option only once the user picks it: compute it by its exact name',
62-
'(step 3). If they pick none, go to step 4.',
62+
'(step 3). Another word starts at step 1; if they only pick none, go to step 4.',
6363
'',
6464
'## 3. Compute a governed metric',
6565
'',

‎skills/objectstack-ask/SKILL.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ wrote its business definition) outranks a number you work out yourself.
3636
- Call `list_datasets({ terms })` with those words, as the user wrote them.
3737
Do not translate or reword a term: a match on a word
3838
you supplied is your reading, not the user's. A term is the noun phrase for
39-
the thing, kept whole ("travel budget", not "travel" and "budget": a
40-
fragment's matches are not the user's) and without the verbs, time words
39+
the thing, kept whole ("travel budget", not "travel" and "budget")
40+
and without the verbs, time words
4141
and question words around it ("trip days", not "trip days requested";
4242
"报销金额", not "报销金额合计是多少").
4343
- Each dataset in the answer carries `matches`: one entry per hit, with the
@@ -74,7 +74,7 @@ instead of asking about some other word's matches. `partial: true` on the answer
7474
be incomplete; `warning` says why, and you repeat it when you fall back.
7575

7676
Use an option only once the user picks it: compute it by its exact name
77-
(step 3). If they pick none, go to step 4.
77+
(step 3). Another word starts at step 1; if they only pick none, go to step 4.
7878

7979
## 3. Compute a governed metric
8080

‎skills/objectstack-ask/evals/metric-selection-fallback.json‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,16 @@
180180
"must_contain": ["query_dataset", "Net Revenue Retention", "Subscriptions"],
181181
"must_not_contain": ["aggregate_records", "非指标口径", "do you mean", "Do you mean"]
182182
}
183+
},
184+
{
185+
"id": 19,
186+
"prompt": "The user asked: \"What is our retention?\" `list_datasets({ terms: ['retention'] })` answered one dataset, `subscriptions` (label Subscriptions), with `matches: []`; its only measures are `logo_retention`, labelled Logo Retention, and `net_revenue_retention`, labelled Net Revenue Retention. The answer also carried `candidates: [{ term: 'retention', dataset: 'subscriptions', member: 'measures.logo_retention' }, { term: 'retention', dataset: 'subscriptions', member: 'measures.net_revenue_retention' }]`. You asked which one they meant, listing both, and computed nothing. The user now replies: \"No, I mean ARR.\" What is your next tool call, and with what arguments?",
187+
"expected_output": "The reply picks neither option and names another word, so neither option is used and the question starts again at step 1 with that word: the next tool call is `list_datasets` with `terms: ['ARR']`, the word as the user wrote it (not spelled out as annual recurring revenue, and not sent together with `retention`). It is a new lookup because the first answer was matched against `retention` only and lists no measure by that name. Nothing else is called before it: no object tool, and no `query_dataset` on either retention measure. Declining the options leads to the object-query fallback only when the reply brings no other word; here that fallback can follow only from this lookup, if `ARR` has no match and no candidates. It does not ask about retention again.",
188+
"files": [],
189+
"assertions": {
190+
"must_contain": ["list_datasets", "ARR"],
191+
"must_not_contain": ["describe_object(", "aggregate_records(", "非指标口径"]
192+
}
183193
}
184194
]
185195
}

0 commit comments

Comments
 (0)