Repository navigation
docs(skills): the ask skill and ADR-0149 D3 ask back only about a word with a measure candidate - #35662
Conversation
…e candidate Step 2 of the ask skill splits its candidates row in the words the list_datasets description and the MCP initialize rule already carry: a word with a measure among its candidates is asked about, and a word whose candidates are all dimensions is at most a possible grouping, never asked about and never a stop for a matched measure. The row pays for itself in the same file: the restated listing and "Do not pick one." (the row above, which "the same way" points at), "A word matches nothing, and" (step 1's candidates bullet) and "on the answer" (the same bullet) are cut. 7507 -> 7508 priced bytes, 1877 tokens against a ceiling of 1877. packages/mcp/src/ask-skill.generated.ts is regenerated from the skill. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
…, and two ask eval cases ListDatasetsOutputSchema.candidates and the DatasetTermCandidateSchema docblock said every candidate is offered for a clarifying question. Both now say what the list_datasets description says: a term with a measure among its candidates is asked about, and a word whose candidates are all dimensions is at most a possible grouping. No shape changes. skills/objectstack-ask/evals gains two cases: a matched measure beside a word whose candidates are all dimensions (computed, grouped, no question back), and a bare near word with a measure candidate (still asked about). Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
`pnpm --filter @objectstack/spec gen:docs`, after the candidates description changed. One row moves. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
…andidate An amendment note after rule 5 records the sentence the list_datasets description and the MCP initialize rule already carry: a word whose candidates are all dimensions is at most a possible grouping, never asked about and never a stop for a matched measure. Two sentences that stated the question for every candidate are amended in place (rule 1's parenthesis, and the third point of the candidates note), and the new note quotes what they first said. No decision beyond the shipped texts. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
… served page and the spec description Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check2 anchor(s) derived from 2 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 — 179 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 1e771b2b2f615719e4709c94d631c216c3905397 && git checkout 1e771b2b2f615719e4709c94d631c216c3905397
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 03865ae9952e33c2de912f9b0fb0b1a369cd312a df2fcffbf383ad9ca0e98def44e652cbdd9dd177 && git checkout -B drift-repro 03865ae9952e33c2de912f9b0fb0b1a369cd312a && git merge --no-ff df2fcffbf383ad9ca0e98def44e652cbdd9dd177
node scripts/docs-audit/affected-docs.mjs --json 03865ae9952e33c2de912f9b0fb0b1a369cd312a |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1Dv2AVwokgRqfdKp2 Final head for L1 (2026-11-19T22:42Z): |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1H9ixhgepGZ7fawhL L1 verdict (L1-a): ACCEPT at head Gates on this head: 70 check-runs: 60 success, 10 skipped, 0 failed, 0 pending. Shape:
What I checked myself:
Notes (non-blocking):
Next: Tier H, so the seat lands it. Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4cxgb3PKFkt8y5FigJn Contract reviewServed-tier: Inputs read: card #35158 body and its seven comments (two regrades, the triage notes, claim 7013669358, progress 7022130549, dev report 7023696874); PR #35662 body, its file list (7 files, +71/-11), the net diff against ① Derived judgmentsThe diff changes no accepted input, no output shape and no executor. It changes published text in four places and adds two eval cases.
② Semver level
③ Boundary flags(a) Dev open question, A or B: may the imperative "never ask about it" enter the spec
(b) Authority of the ADR-0149 amendment note. Answered: #35005 and record 6973927307 are not enough by themselves; the maintainer's word is needed, and his Tier H approval of this PR can be that word if the ask is put to him in these terms.
Other dev flags.
④ Design judgment
Findings F1 (must-fix) — S1 (should-fix) — S2 (should-fix) — eval 16: replace the bare N1 (nit) — the doc comment's "the second amendment note under its rules" is better cited by its date, 2026-11-19. N2 (nit) — the skill has no row for a lone word whose candidates are all dimensions and no measure word; the N3 (nit) — Implemented-by: VERDICT: FAIL |
…e 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>
…rrows
The note now states plainly that it amends rule 1 in place and narrows
the point ruled on fork F1, option B ("offered for a question and never
selected") for a dimension offered to a term whose candidates are all
dimensions, "never selected" included; every other candidate stays as
ruled. Its state line no longer counts the spec among the copies of the
door sentence: the spec carries the scope and not the sentence (M1).
The authority line is unchanged.
Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2
Co-authored-by: Claude <noreply@anthropic.com>
… sentence Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
…question mark A bare question mark in must_not_contain failed a correct answer that closes with an offer. The case now forbids the ask-back phrasings themselves, in both languages the answer may be written in. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
`pnpm --filter @objectstack/spec gen:docs`, after the candidates description was respelled. One row moves. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
…ing as its authority The note's authority line now opens with the ruling record for the narrowing: a term whose candidates are all dimensions is not asked about and may be used as the grouping the question asks for; a measure candidate is still asked about and never selected. The card it was first scoped on stays named after it. 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 the L1 and contract delta reads (2026-11-19T23:43Z): |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1H9ixhgepGZ7fawhL L1 delta verdict (L1-a): ACCEPT at head Gates on this head: 74 check-runs: 62 success, 12 skipped, 0 failed, 0 pending. What I checked in the delta (
Notes (non-blocking): N2 and N3 of the record were left to the seat, as the record says. Next: Tier H. It goes to the seat for landing on the maintainer's approval. Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Contract review — deltaServed-tier: Inputs read: prior record 7024432523 (read at Per-item
Ruling fidelity (S1)
Clause-② and semverThe spec PR body against the head and its check-runs
New findingsS3 (should-fix, body only, no new head) — PR body. Three passages contradict the head and the "Fix round" table below them:
N4 (nit) — ADR note, second sentence: "Approved by the maintainer on PR #35662 … (ruling record 7024577075)". The record sits on issue #35158, and the id is bare, where the same sentence links record N5 (nit) — PR body: the check-run count reads 70/60/10; the head now shows 74/62/12 for the reason above. Reviewed-by: VERDICT: PASS |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF 席位核对 — ACCEPT · repo:objectstack#4 · head
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44678044341 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Requested by Elon · project thread
Fixes #35158
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The sentence every copy now carries is the one the two door strings on
mainshare since PR #35156 (commit7ed18b50e1): "A word whose candidates are all dimensions is at most a possible grouping: never ask about it, and it never stops a matched measure." A word with a measure among its candidates keeps the rule as it was: it is asked about. No shape, executor or tool changes.skills/objectstack-ask/SKILL.md). The onecandidatesrow is now two, placed directly under the "One word matches several measures" row:candidates": "Ask the same way; with one candidate, ask whether it is the one meant."candidatesare all dimensions": "At most a possible grouping: never ask about it, and it never stops a matched measure." The door sentence, split over the row's two cells.objectstack-askrow ofscripts/check-skills-token-ratchet.mjshad no headroom and is not edited: 1877 / 1877 before and after. The two rows are paid for by cutting text that restated another line of the same file (ruling record 6513306068: pay by cutting restatement first). Each cut keeps its other home:candidates");packages/mcp/src/ask-skill.generated.ts). Rewritten bynode scripts/gen-mcp-ask-skill.mjs, never by hand. It is whatGET /mcp/skillserves.packages/spec/src/ai/dataset-tools.zod.ts).ListDatasetsOutputSchema.candidatessaid every candidate is offered "for a clarifying question". It now says the clarifying question is for a term with a measure among its candidates and states, declaratively and in the file's own vocabulary, that a term whose candidates are all dimensions is offered them as a possible grouping, not for a question, and does not stop a matched measure (contract review 7024432523 F1: the executor's imperative sentence stays out of the spec, ADR-0149 M1). The doc comment ofDatasetTermCandidateSchemasays the same and names how the kind is read (themeasures.ordimensions.prefix ofmember).list_datasetsserves this description in itsoutputSchema. The Zod shape is byte-for-byte what it was.content/docs/references/ai/dataset-tools.mdx). One table row, bypnpm --filter @objectstack/spec gen:docs.docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md). Three edits, none deciding anything the door strings and the executor's note onmaindo not already say:skills/objectstack-ask/evals/metric-selection-fallback.json), ids 16 and 17, in the file's existing shape:query_datasetcall grouped by industry and no question back..changeset/35158-ask-back-measure-scope.md:@objectstack/skills,@objectstack/mcpand@objectstack/specatpatch.Clause-②: no: a text-only change to served text; no tool, field or argument changes.Metadata-protocol: none.Skills size readings
2495486fd5)ce88a4ea69)skills/objectstack-ask/SKILL.mdlinesskills/objectstack-ask/SKILL.mdbytesskills/objectstack-ask/SKILL.mdpriced tokens (ceiling)SKILL.mdfiles, lines summedSKILL.mdfiles, priced tokens summedThe file is one line and one byte longer: 7508 priced bytes, exactly 4 × 1877, so the row keeps zero headroom and no ceiling moves. The bundle total grows by 773 tokens, all of it the eval fixture (4615 to 5388), which the ratchet measures and does not ratchet. No other file under
skills/changes.Tests
All at
ce88a4ea69, each heavy run under the shared verify lock.pnpm --filter @objectstack/mcp test: Test Files 79 passed (79), Tests 1439 passed (1439),VERDICT command-exit 0. It includesskill-single-source-34686.test.ts(the generated page equals the skill) andinitialize-selection-rule-34686.test.ts.pnpm --filter @objectstack/spec test: Test Files 859 passed (859), Tests 27439 passed, 1 todo,VERDICT command-exit 0.pnpm --filter @objectstack/spec typecheckandpnpm --filter @objectstack/mcp typecheck:VERDICT command-exit 0each.pnpm --filter @objectstack/service-analytics exec vitest run --maxWorkers=2 src/__tests__/dataset-tools.test.ts(the suite that reads thelist_datasetsoutput schema): 1 file, 92 passed, 10 skipped,VERDICT command-exit 0.Acceptance notes
main. Both door strings carry the sentence (packages/mcp/src/mcp-server-runtime.ts#DATASET_SELECTION_RULE,packages/services/service-analytics/src/dataset-tools.ts#LIST_DATASETS_DESCRIPTION), and the executor's note adds "group the answer only as the question asks" (packages/services/service-analytics/src/dataset-next-step.ts). The skill row, the spec description and the two ADR sentences still stated the question for every candidate.skills/**anddocs/adr/**are Tier H. This PR stays a draft; its author never readies, queues or arms it.scripts/check-skills-token-ratchet.mjsis in that list and is not changed.pnpm --filter @objectstack/scenarios skill-evals --dry-run: "objectstack-ask: 17 case(s)", exit 0). No model round was run for ids 16 and 17: NOT MEASURED, the eval round's reading.docs/design/mcp-local-first-door.mdstill describes the ask-back overcandidateswithout the scope, in two sentences;packages/services/service-analytics/src/dataset-term-matcher.tssays a candidate is "offered for a clarifying question";node scripts/pm/overlap-check.mjs --branch=HEADatce88a4ea69: VERDICT clean, exit 0, againstorigin/main5dd856f40cand 1 PR head (chore: version packages #35129, the Version Packages pull, which shares the skill file and merges cleanly).Verification
Read first, by risk:
docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md: the new note of 2026-11-19, its points "A term whose candidates are all dimensions is a possible grouping, not a question" and "Rule 5 still holds for it". Check that each says no more than the door sentence and the executor's note.skills/objectstack-ask/SKILL.md: step 2's two new rows. "Ask the same way" leans on the row directly above it, so the row order matters.packages/spec/src/ai/dataset-tools.zod.ts: thecandidatesdescription, for the note on M1 above.Two-minute check:
node scripts/check-skills-token-ratchet.mjs && node scripts/gen-mcp-ask-skill.mjs --check. Expect both to exit 0, the ask row to read1877 / 1877 (+0), and the generator to say the page "is current with skills/objectstack-ask/SKILL.md".Generators and skill gates
node scripts/gen-mcp-ask-skill.mjs --check: exit 0, "packages/mcp/src/ask-skill.generated.ts is current with skills/objectstack-ask/SKILL.md."node scripts/check-skills-token-ratchet.mjs: exit 0,skills/objectstack-ask/SKILL.md 1877 / 1877 (+0), "59 authored bundle file(s) within their ceilings".pnpm --filter @objectstack/spec check:generated(after the spec build): exit 0. Beforegen:docsran it reported only the docs page stale, the expected direction.pnpm --filter @objectstack/spec run check:skill-refs,check:skill-docs: exit 0.check:skill-examples: exit 0, "346 prose examples type-check", after building the client SDK closure it reads.Derived gates (dispatch-gates --commands, no paths, then --ran)
check-skills-token-ratchet.mjsand its--self-test,check-adr-0087-registration,check-adr-links,check:adr-anchors,check:adr-index,check:adr-symbol-anchors("3835 anchors across 160 records resolve"),check-changeset-no-major,check-empty-changeset,check:nul-bytes,check:issue-citations,check:pm-governed-merges,check:skill-links,check:skill-identifier-liveness,check:skill-compatibility, and on the spec packagecheck:generated("All 14 generated artifacts are up to date"),check:docs("249 generated files in sync"),check:api-surface,check:authorable-surface,check:skill-docs,check:skill-refs,check:skill-examples.pnpm check:dual-build-cjs-loads, exit 3, "PREREQUISITE NOT MET". It reads every package'sdist/, and only the closures this diff needs were built here; CI runs this gate.--ran: "112 derived famil(ies) accounted for — 111 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)", exit 0.check:skill-examples(the client SDK closure) andcheck-plugin-teardown-shape.mjs --self-test(one pinned commit, absent from the shallow clone). The record above is one full second pass at the same head.pnpm check:skill-frame-freshnessexit 0;pnpm check:dev-prereqsexit 1, a reading of this machine (64 of 108 packages have nodist/here, because only the needed closures were built), not of the diff.Fix round (contract review 7024432523, FAIL → head
df2fcffbf3)packages/spec/src/ai/dataset-tools.zod.tscandidatesdescription and theDatasetTermCandidateSchemadoc comment state the dimension-only scope declaratively in the file's own vocabulary ("term"); the executor's imperative sentence is gone from the spec (ADR-0149 M1).content/docs/references/ai/dataset-tools.mdxregenerated; the changeset sentence and the ADR note say the spec carries the scope, not the door sentence.skills/objectstack-ask/evals/metric-selection-fallback.jsoncase 16must_not_containnames a question about the term instead of a bare?/?.skills/objectstack-ask/SKILL.mdand its generated copy are unchanged in this round. CI ondf2fcffbf3: 74 check-runs, 62 success, 12 skipped, 0 failed (the type-check red on the intermediate head9f99c3ffis cleared).Generated by Claude Code