Repository navigation
docs(skills): the ask-data skill's zero-match rows read list_datasets candidates - #34977
Conversation
… candidates Step 1 names `candidates`; step 2 asks when any candidate is listed for a word with no match (one candidate included) and falls back, labelled, when none is. The client's own loose-form rows and paragraph are cut. The served /mcp/skill module is regenerated, the eval cases cover several, one and no candidates, and the token ratchet row is lowered to the measurement. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 12 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 13a41fc919ba8b977bb50f9200c53c55dc8fb5e1 && git checkout 13a41fc919ba8b977bb50f9200c53c55dc8fb5e1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0465f4aa401f837ba1005a7986ff15a5fa74581b bd92fff5b912f1e276e6a93cb224521ec6b73f64 && git checkout -B drift-repro 0465f4aa401f837ba1005a7986ff15a5fa74581b && git merge --no-ff bd92fff5b912f1e276e6a93cb224521ec6b73f64
node scripts/docs-audit/affected-docs.mjs --json 0465f4aa401f837ba1005a7986ff15a5fa74581b |
|
repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg L1: ACCEPT · 2026-11-17T20:51ZHead-sha: bd92fff 席位核对PR shape. Five paths, +70/-27:
Governed / size. CI. It was still running when I read it, with the light lanes green. This verdict holds on the condition that (a) The seat's ruling that one candidate also asks. Step 2's new row reads 「 (b) One rule, the same words across the three texts. Against
The skill's extra clause for one candidate ("ask whether it is the one meant") is the form of that question, not a different rule. Step 1's new bullet describes The loose-form paragraph removed. That is the right call. With (c) Eval tokens. I checked all 9 cases on this head: every
Generated module and ceiling. At this head, Value to a customer agent. The skill gets shorter (−124 bytes) and simpler: one rule, read off the answer, instead of a judgment over the catalogue. Must-fixNone. Should-fixNone. Notes
Next: the seat's L2 (a published-skill rule change), then the Tier H record and os-zhuang. The low-risk arm is refused because of the |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: PR #34977 (card #34868), net diff against Check-runs on this head, polled until none was pending (settled 21:08Z): 53 runs, 37 ① Derived judgments
② Semver levelClause-②: no
③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Nits, none of which changes correctness or the contract:
Security-touching is Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG 席位记录 · 2026-11-17T21:11ZHead-sha: 维护者速读(终稿)
席位意见:建议批准。97 行,技能每一句都和门的现状一致(候选形状、工具描述、 席位核对
|
Requested by Yibo Wang · project thread
Fixes #34868
Clause-②: no
Metadata-protocol: none
维护者速读
objectstack-ask第 1 步点名list_datasets回答里的candidates;第 2 步的两行"零命中"改读它:某个词没命中但服务器列了候选(一个或多个)就反问用户,不替用户选、不把候选当命中、先不算数;没命中也没候选才回退到对象查询并注明非指标口径。原先让客户端自己从目录里判断"宽泛说法"的两行和一段说明删掉。/mcp/skill页面由技能生成,同步更新;评测用例补了"多个候选""一个候选""无候选"。initialize规则讲的不是一回事。席位裁定:只有一个候选也要问。candidates的旧服务器时,零命中一律走带标注的回退,不再反问。回滚就是 revert 本 PR。skills/objectstack-ask/SKILL.md(第 2 步表格的第 4、5 行,以及表格下方被删的那一段);skills/objectstack-ask/evals/metric-selection-fallback.json(用例 3、8、9);scripts/check-skills-token-ratchet.mjs(objectstack-ask那一行由 1522 下调到 1491)。node scripts/gen-mcp-ask-skill.mjs --check,预期输出is current with skills/objectstack-ask/SKILL.md、退出码 0。skills/**是受管面,按分支读数为 Tier H)。What changes
skills/objectstack-ask/SKILL.md, step 1. One new bullet says whatcandidatesis: a word that matched nothing may have them on the answer, each a{ term, dataset, member }pointer to a member the same answer lists, and a candidate is not a match. Thematches/matchedOnbullet is unchanged.candidateslists members for it, one or several": ask the user which one they mean, listing each candidate's label, its dataset's label and its description; with one candidate, ask whether it is the one meant. Do not pick one, never treat a candidate as a match, compute nothing yet.main.packages/mcp/src/ask-skill.generated.tsis regenerated bynode scripts/gen-mcp-ask-skill.mjs, soGET /mcp/skillserves the same text.skills/objectstack-ask/evals/metric-selection-fallback.json. Case 3 now gives an answer with threecandidatesand expects the question. New case 8: exactly one candidate, expects a question about that one and no computation. New case 9 (Chinese): no match and nocandidateswhile a listed measure looks close, expects the fallback, opened with the 非指标口径 line and naming the dataset on the same object. Cases 4, 5 and 6 say in their prompts that the answer has nocandidates, and cases 4 and 6 state the reason in the new rule's words. Cases 1, 2 and 7 are unchanged.scripts/check-skills-token-ratchet.mjs. Theskills/objectstack-ask/SKILL.mdrow is lowered from 1522 to 1491, pinned at the measurement, with the measurement in its comment. A lowering, so no ruling is needed for it; no other row moves..changeset/34868-ask-skill-reads-candidates.md:@objectstack/skillspatch and@objectstack/mcppatch.Rows: skill vs tool texts
The two reference strings are read on
mainat44c7a4a415and are not edited here./mcp/skill)LIST_DATASETS_DESCRIPTIONDATASET_SELECTION_RULEcandidateslistedcandidateslists members for it, one or several": "Ask the user which one they mean, listing each candidate's label, its dataset's label and its description; with one candidate, ask whether it is the one meant. Do not pick one, and never treat a candidate as a match. Compute nothing yet." (new)candidates, members offered as possible readings: ask the same way, listing each one's label, dataset label and description; never pick one, and never treat a candidate as a match."Two places where the skill says more than the two strings, both on purpose:
DATASET_SELECTION_RULEsays "even for a single candidate".I found no contradiction between the two strings and the ADR-0149 D3 amendment note.
Why
The server now offers
candidatesfor a word with no match (ruling on #34691, fork F1, option B; the shape came with #34761 and the executor with #34763, merged as44c7a4a415). The skill still told a client to read the whole catalogue and judge near readings itself, which is slower, differs from client to client, and stated a different rule from the tool description and theinitializetext. The seat's ruling on pull request #34904 (Q1 A) is that one candidate is a question too; the ADR note ("With candidates, the AI asks in rule 3's form and acts on none") outranks the earlier wording "One near form is not a match either: it selects nothing".The client's own loose-form judgment goes; it does not stay as a secondary check. Reasons:
@objectstack/skillsand@objectstack/mcpare published at one version (onefixedgroup), and the server'sinitializetext tells a client to install the skills at the server's own version. So the skill that readscandidatesships with the server that fills them.candidates(an older 18.x), and for a word that is near a measure only in translation (the deleted paragraph said "directly or in translation"; the executor compares by containment), the client no longer asks and takes the labelled fallback. That fallback is the ADR's rule 4, and step 4 still adds a line naming the listed dataset on the same object and its measures, so the user learns the governed figure exists.Tests
All at head
bd92fff5b9, afterpnpm --workspace-concurrency=2 --filter '@objectstack/mcp^...' build(lockVERDICT command-exit 0).pnpm --filter @objectstack/mcp test: Test Files 71 passed (71), Tests 1252 passed (1252); lockVERDICT command-exit 0.pnpm --filter @objectstack/mcp typecheck: lockVERDICT command-exit 0;check:test-typecheck: OK.node scripts/gen-mcp-ask-skill.mjs --check: exit 0, "is current with skills/objectstack-ask/SKILL.md".skill-evals --dry-run --skills objectstack-ask: "objectstack-ask: 9 case(s)", exit 0; no model call). A one-off consistency script (not committed) checks, for each case, that everymust_containtoken is inexpected_output, that it is in the prompt or inSKILL.md, that nomust_not_containtoken is inexpected_output, and that no token is on both lists: 9 cases, 55 tokens, 0 findings (control onmain: 7 cases, 39 tokens, 0 findings). No eval round against a model was run.Ablation: the pin test goes red when the skill edit is reverted
One behaviour, one ablation, with the change committed first. Mutation:
git restore --source=44c7a4a415 -- skills/objectstack-ask/SKILL.md(working tree only), proved on disk by counting both the new and the old row text.The test reads the skill and the generated module from source, so no rebuild is part of either leg.
Acceptance notes
skills/objectstack-ask/SKILL.md: 105 lines, 6105 bytes, 1522 tokens onmain; 101 lines, 5981 bytes, 1491 tokens here (the gate's convention, stamp line excluded). All twelveSKILL.mdfiles together: 4728 lines onmain, 4724 here. Ratcheted authored total: 191126 tokens onmain, 191095 here. The new text is paid for by deletion in the same file, with 31 tokens to spare.main; 95 lines, 3071 tokens here (+835). The growth is the threecandidateslists the prompts now have to state and the two new cases. Whole shipped tree: 256680 tokens onmain, 257484 here (+804).candidatesrow. (2) "One near form is not a match either: it selects nothing": replaced; one candidate is a question, and step 1 says a candidate is not a match. (3) "The same answer lists every dataset you may query with all its measures, matched or not (a call withouttermsreturns that catalogue too)": this was there so the loose-form check needed no second read, and has no reader once the check is gone; step 1 still says each dataset in the answer carriesmatches, and the new bullet says a candidate points to a member the same answer lists. (4) The definition of a loose form and its two examples: removed with the check..changeset/34685-ask-data-skill.md,.changeset/34686-skill-single-source.md: "a loose form of several listed measures", "One near form selects nothing"). I did not edit them: each records what its own pull request did. The new changeset says that it supersedes those sentences, so the compiled CHANGELOG reads in order. Carrier: the seat, if it prefers the older entries corrected.DATASET_SELECTION_RULE(packages/mcp/src/mcp-server-runtime.ts) ends "The skill's own loose-form rows predatecandidatesand are amended in its lane." After this pull request those rows no longer exist. That file is the reference here and is not in the claim's file surface, so it is reported, not edited. Carrier: the seat.check:skill-docsneeded no regeneration ("Skill docs in sync"): the frontmatter is unchanged.Verification
bd92fff5b9:node scripts/pm/dispatch-gates.mjs --commands(no paths) gave 88 commands; each was run with its exit code recorded before any pipe, then--ran: "88 derived famil(ies) accounted for — 87 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)", exit 0. 87 exited 0.pnpm check:dual-build-cjs-loads, reason: exit 3, prerequisite not met (it needs a whole-workspacepnpm build; only the@objectstack/mcpdependency closure was built). CI's run is the reading.node scripts/check-skills-token-ratchet.mjsexit 0 ("skills/objectstack-ask/SKILL.md is 1491 tokens (ceiling 1491; headroom 0)"); its--self-testexit 0 ("104 cases pass");pnpm check:skill-compatibilityexit 0;pnpm --filter @objectstack/spec run check:skill-docsexit 0 ("Skill docs in sync").node scripts/pm/overlap-check.mjsbefore the push: "VERDICT clean exit 0" (againstorigin/mainand the two open pull requests that share a file, feat(spec, service-automation): a packaged flow can ship switched off for an administrator to turn on (defaultActive) #34793 and chore: version packages #33849).node scripts/pm/check-governed-merges.mjs --branch claude/issue-34868-ask-skill-reads-candidates: GOVERNED, landing tier H,skills/**×2; low-risk skills arm NOT MEASURED without the pull request; 97 changed lines (+70 / -27), under the 3000 threshold; exit 3.dispatch-gates --tier: MANDATORY contract-review tier forskills/**, no one-line exit.pnpm lint, thetest:repoproject, and the full gate farm outside the derived list.Human Minimum
packages/specholds no runtime logic. (No schema touched.)pnpm lintpasses. (No formatter ran;pnpm lintis left to CI.)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code