Repository navigation
test(skills): ask-skill eval for a matched measure beside a grouping word that names nothing - #35847
Conversation
…de a grouping word that names nothing Case 20: the measure word equals one measure and the grouping word has no match and no candidates; the measure is computed through query_dataset and the breakdown comes from the object tools under the not-a-governed-metric line, with no question about the word. Case 19 also forbids the list_objects( call spelling. No skill text changes. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1Dv2AVwokgRqfdKp2 Final head for L1 (2026-11-20T11:53Z): |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1eW7iLBvc8c6xv9Fx L1 verdict (L1-a): ACCEPT at head Gates on this head: What I checked (holds):
NOT MEASURED: no live eval round. Live rounds stay with the eval domain (o2-C / c6-B), as the claim routes them, so case 20's pass rate under either arm is unknown. Non-blocking note: the dev's out-of-scope observation is right. Landing: governed, Tier H ( Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Served-tier: Contract review — PASS at 163a8a6Head-sha: Isolated, read-only sub-agent record, written 2026-11-20T12:09Z. Full review, the first record on this PR. Face: rules ( No must-fix, no should-fix. Three nits, N1 to N3; none moves the head. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Requiring both tools holds. I tried the three answers a reader could give:
Dropping Other ways I tried to break the case:
Notes:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF 席位核对 — ACCEPT · repo:objectstack#4 · head
|
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Seat landing — #35847 at
|
Requested by Elon · project thread
Part of #34996
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Item (b) of the third iteration on #34996 (claim 7032861157, scoped to (b) by 7033067647): a question whose measure word matches and whose grouping word matches nothing in any dataset and has no candidates. Eval cases only; this PR leaves the card open.
skills/objectstack-ask/SKILL.mdonmain(d6ce9ba6) already says it in words, so nothing is added and the ratchet row is not touched. Three places carry the case:nextStep, follow itsdecisionandnote." For this case the executor'sone_measurenote names the unknown word and its labelled fallback itself (packages/services/service-analytics/src/dataset-next-step.ts,leftOutSentences; pinned bydataset-tools.test.ts, "one_measure beside an unknown word and a grouping word").main. No disagreement found.DATASET_SELECTION_RULE(packages/mcp/src/mcp-server-runtime.ts): "No match and no candidates: fall back to query_records / aggregate_records and say the answer is not from a governed metric."LIST_DATASETS_DESCRIPTION(packages/services/service-analytics/src/dataset-tools.ts): "No match and no candidates: fall back to the object query tools and say in the answer that no governed metric was used (非指标口径)".skills/objectstack-ask/evals/metric-selection-fallback.json, in the file's existing shape). The user asks 「各仓库的营收是多少?」.list_datasetsmatches 营收 to one measure; 仓库 matches nothing and the answer has nocandidates. The prompt quotes the answer'snextStepas the executor writes it for these inputs.query_datasetfor the measure, with no dimension put in the word's place;describe_objectthenaggregate_recordsfor the breakdown; the per-warehouse figures under the line saying they are not from a governed metric (非指标口径); the dataset-hint line; no question back.must_contain:query_dataset,describe_object,aggregate_records,非指标口径.must_not_contain: the six ask-back phrasings case 16 already forbids.must_not_containgains the call spellinglist_objects(, a tool name with its opening parenthesis and no bare identifier. Step 4 opens with that call, so an answer that started the fallback there and mentionedlist_datasetsin passing used to pass the literal grader..changeset/34996-ask-skill-unknown-grouping-eval.md:@objectstack/skillsatpatch. The catalog package copiesskills/**whole, eval fixtures included, so the published tree moves.@objectstack/mcpis not in it:packages/mcp/src/ask-skill.generated.tsis generated fromSKILL.md, which does not change.Skills size readings
d6ce9ba6)163a8a6c)skills/objectstack-ask/evals/metric-selection-fallback.jsonlinesskills/objectstack-ask/SKILL.mdlines / bytes / priced tokens (ceiling)SKILL.mdfiles, lines summedThe only file that grows is an eval fixture, which the ratchet measures and does not price (ruling record 6513306068, part 1). No ceiling is raised or edited.
Tests
All at head
163a8a6c. No package source changes, so there is no package test to run; the readings are the ones that read the two changed files.Eval file: shape, self-consistency, and the quoted note
The note was composed by
composeDatasetNextStepfrom the source at this head, with the locale picker stubbed toenin a scratch copy (the copy strings are the file's own).skill-evals dry run
A first try before the build closure existed answered
ERR_MODULE_NOT_FOUND(exit 1) and measured nothing; the reading above is afterpnpm --filter '@objectstack/scenarios^...' build.Ratchet, served copy, catalog build
Derived gate list and its reconciliation
40 commands exit 0, among them
check:nul-bytes,check:doc-authoring,check:skill-links,check:skill-compatibility,check:skill-frame-sync,check:skill-identifier-liveness,check:published-files,check-empty-changeset("1 declaring changeset(s) added") andcheck-changeset-no-major.check:doc-formula-expressionsfirst exited 3 (@objectstack/formulanot built) and exits 0 after that build.NOT MEASURED, four families, each exit 3 PREREQUISITE NOT MET because they read every package's
dist/and need a whole-workspace build:check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content. This diff changes no package source, so the whole build was not run locally; CI carries them.Overlap
Acceptance notes
query_datasetandaggregate_recordsare both inmust_contain: the note says to answer the matched measure withquery_datasetand to use the object tools for the unknown word. An answer that takes the whole question to the fallback and never computes the governed measure fails the case.nextStep. Cases 1 to 19 describematchesandcandidatesonly. A server onmainsendsnextStepwhenevertermswere sent, and the skill line this case rests on is "follow itsdecisionandnote", so the prompt carries the note as written. The English note is quoted beside a Chinese question so that the label非指标口径in the answer comes from the skill's step 4 and not from the prompt.LIST_DATASETS_DESCRIPTIONsays theone_measurenote "also names the words left out with their candidates or possible groupings" and lists the unknown word only forcandidates_only, while the executor writes the unknown word's fallback underone_measuretoo. The description's own rule ("No match and no candidates: fall back …") already covers the case, so nothing a client does changes.skills/**. This PR stays a draft; landing is the seat's and the maintainer's.Verification
skills/objectstack-ask/evals/metric-selection-fallback.json, case 20'sassertionshunk:must_containholdsquery_datasetbesideaggregate_records(the do-both reading of the note).prompt: the quotednote(the first prompt in the file to carry one)..changeset/34996-ask-skill-unknown-grouping-eval.md: one package,patch.git diff --stat d6ce9ba6 163a8a6c -- skills packages/mcplists one file, the eval fixture, at 11 insertions and 1 deletion;SKILL.mdand the generated page are absent from it.Generated by Claude Code