Repository navigation
docs(skills): the ask skill says what to do after the user answers an ask-back - #35775
Conversation
… ask-back Step 2 of skills/objectstack-ask/SKILL.md gains the turn after an ask-back: an option is used only once the user picks it, computed by its exact name (step 3); a user who picks none gets step 4. Paid inside the file: three restatements cut, the measured token count stays at its ceiling. packages/mcp/src/ask-skill.generated.ts regenerated; one eval case for the second turn. Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1Dv2AVwokgRqfdKp2 Co-authored-by: Claude <noreply@anthropic.com>
📓 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 ed608740e3f5ea552c78684b89127eac958e9f8d && git checkout ed608740e3f5ea552c78684b89127eac958e9f8d
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1e018d6edee820124ac7252b8dd8a6acb800093b fe8707ed6ce7dc44070b831c4e0ae435c5143759 && git checkout -B drift-repro 1e018d6edee820124ac7252b8dd8a6acb800093b && git merge --no-ff fe8707ed6ce7dc44070b831c4e0ae435c5143759
node scripts/docs-audit/affected-docs.mjs --json 1e018d6edee820124ac7252b8dd8a6acb800093b |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1Dv2AVwokgRqfdKp2 Final head for L1 (2026-11-20T06:57Z): |
|
repo:objectstack#4 · os-elon-musk · session_016WV4czsTwiYB5WxgWqEVcu L1 verdict (L1-a): ACCEPT at head Gates on this head: 37 success, 16 expected skip, 0 unexpected skip, 0 failed, 0 pending. What I checked (holds):
The open A/B (7032771742): L1 reads A. "No, I mean ARR" names a new word. That makes it a new question, and the skill's opening ("Use for EVERY question …", "Never skip step 1") already sends it through step 1. The new paragraph speaks only of the options that were offered. A clause for that case would cost bytes at zero ratchet headroom for a reading that no round has yet shown to fail. Leave it to the #34996 loop on a measurement. This is L1's reading only. The seat rules it in its Tier H read; if the seat wants B, the cheapest form is "If they pick none and name no other word, go to step 4." Landing: governed, Tier H. Handed to the seat; the area does not land it. Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Served-tier: Contract review — PASS at c735af7Head-sha: Isolated, read-only sub-agent record, written 2026-11-20T07:12Z. Face: rules ( F: none. No must-fix. S1 is open on this head and earns a delta review of its fix. N1 and N2 are notes.
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
The paragraph sits after the
Notes:
Implemented-by: VERDICT: PASS |
…s 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>
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1Dv2AVwokgRqfdKp2 Final head for the L1 and contract delta reads (2026-11-20T08:03Z): |
|
repo:objectstack#4 · os-elon-musk · session_016WV4czsTwiYB5WxgWqEVcu L1 delta verdict (L1-a): ACCEPT at head Gates on this head: 39 success, 18 expected skip, 0 unexpected skip, 0 failed, 0 pending. What I checked (holds):
Landing: governed ( Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Served-tier: Contract review — PASS at fe8707e (delta over c735af7)Head-sha: Isolated, read-only sub-agent record, written 2026-11-20T08:15Z. DELTA review from No must-fix, no should-fix. Two new nits, N3 and N4; neither moves the head.
① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
The sentence is short. "Word" is the file's own term for what step 1 lifts and step 2 decides on, so "Another word" reads as a business word the reply brings. The dispatch's longer wording would have cost about 20 more bytes for the same routes. Accepted.
Notes:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF 席位核对 — ACCEPT · repo:objectstack#4 · head
|
Requested by Elon · project thread
Fixes #35004
Part of #34996
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Skill, step 2 (
skills/objectstack-ask/SKILL.md). One new paragraph at the end of the step, for the turn after an ask-back:It points at steps 1, 3 and 4 and restates none of them. "Option" is the word the paragraph above it already uses for what the question lists ("name each option by its label in a bullet").
Three replies, three routes. A pick is computed through
query_dataset(step 3). A reply that names another word ("no, I mean ARR") starts at step 1: a newlist_datasetslookup with that word, before anything else. A reply that only declines the options goes to step 4, the labelled object-query fallback.No rule is added. ADR-0149 D3 on
mainhas no separate sentence for the step after the answer. The paragraph is D3 rule 1 and rule 2 (a word the user writes is matched first, and one hit is answered throughquery_datasetwith the source from the tool's answer) and rule 4 (no hit is the labelled fallback) applied to the user's reply, with the 2026-11-17 note's "rule 4 still governs it when the question settles nothing" and the 2026-11-19 note's "a measure candidate is still asked about and never selected" (ruling record 7024577075).Part of #34996. The another-word reply is item (a) of that card's third iteration, carried here by the seat's route after the contract review of the previous head. Item (b) of that iteration stays with that card, which this PR leaves open.Paid inside the same file. The
objectstack-askrow ofscripts/check-skills-token-ratchet.mjsis not edited. New text is 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:kept whole ("travel budget", not "travel" and "budget");("by stage")example (step 1's first bullet gives it) and "You still need a measure match; without one," which now reads "Without a measure match,";nextStepnote that paragraph is about carries the instruction itself).Generated page (
packages/mcp/src/ask-skill.generated.ts). Rewritten bynode scripts/gen-mcp-ask-skill.mjs, never by hand. It is whatGET /mcp/skillserves.Eval cases (
skills/objectstack-ask/evals/metric-selection-fallback.json), in the file's existing shape. Both start from one ask-back over two measure candidates of the word "retention" (Logo Retention, Net Revenue Retention).query_datasetcall on the chosen measure, the source cited from the tool's answer, no second question and no fallback.list_datasetswith the user's word as its term, and no object tool before it. Itsmust_not_containholds no bare identifier: two call spellings a fallback answer writes (a tool name with its opening parenthesis) and the fallback label.Changeset
.changeset/35004-ask-skill-after-answer.md:@objectstack/skillsand@objectstack/mcpatpatch.Clause-②: no: served text only; no tool, field or argument changes.Metadata-protocol: none. Its body follows the text at this head and namesPart of #34996.Fix round for contract record 7033043274
The record is a PASS at
c735af7640with S1 open. One push,c735af7640tofe8707ed6c.fe8707ed6cpackages/mcp/src/mcp-server-runtime.ts#DATASET_SELECTION_RULEonmain(d1ebe86dd3, unchanged since the merge base): "look for a governed metric first: call list_datasets with the question's business words" is step 1's call, and "No match and no candidates: fall back" stays the only way into the fallback for a word.packages/mcp/src/ask-skill.generated.tsregenerated; the changeset now states the three routes, counts four cuts, and reads "rule 1, rule 2 and rule 4 applied to the user's reply; no rule is added".Skills size readings
cceb5c626d)fe8707ed6c)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 two lines longer and eight bytes shorter than on
main: 7500 priced bytes,ceil(7500 / 4)= 1875, two tokens under its ceiling of 1877. The previous head read 128 lines, 7525 bytes and 1877 tokens; this round adds no line. The row is not lowered here: the claim names the ratchet script for a measured raise only, so the two tokens of headroom are reported and left to the seat. The bundle total grows by 923 tokens: the eval fixture grows by 925 (5407 to 6332), which the ratchet measures and does not ratchet, and the skill shrinks by 2. No other file underskills/changes.Tests
All at
fe8707ed6c, each heavy run under the shared verify lock.pnpm --filter @objectstack/mcp test: Test Files 79 passed (79), Tests 1442 passed (1442),VERDICT command-exit 0.pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 src/skill-single-source-34686.test.ts(the generated page and the served section equal the skill): 1 file, 3 passed,VERDICT command-exit 0.pnpm --filter @objectstack/mcp typecheck:VERDICT command-exit 0, "check:test-typecheck: OK".pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-ask --dry-run: exit 0, "objectstack-ask: 19 case(s)" (the strict loader read the file and refused nothing).Acceptance notes
main:packages/mcp/src/mcp-server-runtime.ts#DATASET_SELECTION_RULEandpackages/services/service-analytics/src/dataset-tools.ts#LIST_DATASETS_DESCRIPTIONstop at the question; thenextStepnotes ofpackages/services/service-analytics/src/dataset-next-step.tssay "compute nothing until they answer" and "ask the user which one is meant before using it". None states the step after the answer, and none contradicts the new paragraph. The initialize rule's first sentence is what the another-word clause applies to the reply.list_datasetsanswer listed for the picked option, or callslist_datasetsagain with the picked label as the term, which then equals that one measure. The sentence does not choose between them; eval 18's expected output accepts both.nextStepnote that answers one measure and asks about another word. "do both" stays where it was; the guard is now the first half of the new paragraph, two paragraphs below, and applies to every question, not only to that note.skills/**is Tier H. This PR stays a draft; its author never readies, queues or arms it.scripts/check-skills-token-ratchet.mjsis in that list for the raise path only and is not changed.main(d1ebe86dd3) and is not merged with it: no conflict is reported, and none of those commits touches the four files or the file that holds the door rule. One of them changespackages/mcpbeside the generated page (skill-md.ts, which renders it, and the tool list); no test onmainquotes a sentence this PR changes. The local runs above are on the branch tree; the merge ref is CI's reading. The derived gate list was read from this tree, and the tool names two of its own inputs as changed onmainsince (scripts/pm/label-write.mjs,scripts/pm/record-recognisers.mjs).node scripts/pm/overlap-check.mjsatfe8707ed6c: "VERDICT clean exit 0", againstorigin/maind1ebe86dd3and 1 PR head (chore: version packages #35129, which shares the skill file and merges cleanly).Verification
Read first, by risk:
skills/objectstack-ask/SKILL.md, the new paragraph at the end of step 2: does "Another word starts at step 1; if they only pick none, go to step 4" route each reply the way D3 rules 1, 2 and 4 do?skills/objectstack-ask/SKILL.md, step 1's second bullet: the "kept whole" example without its repeated reason, and the earlier cut beside it.skills/objectstack-ask/SKILL.md, the paragraph under the step 2 table and the "Only a dimension matches" row: "do both." ends there, and the guard it carried sits in the new paragraph.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 read1875 / 1877 (-2), 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 is 1875 tokens (ceiling 1877; headroom 2)", "60 authored bundle file(s) within their ceilings".pnpm --filter @objectstack/spec run check:skill-docs: exit 0, "Skill docs in sync".pnpm check:skill-links,pnpm check:skill-identifier-liveness,pnpm check:skill-compatibility,pnpm check:skill-frame-sync: exit 0 each.Derived gate list, run locally at fe8707e
node scripts/pm/dispatch-gates.mjs --commands(no paths; the tool reads the change set from the merge basecceb5c626): 71 commands.pnpm check:dual-build-cjs-loads, exit 3, "PREREQUISITE NOT MET". It reads every package'sdist/, and only the closure@objectstack/mcpneeds was built here; CI runs this gate.node scripts/pm/dispatch-gates.mjs --ran: exit 0, "71 derived famil(ies) accounted for — 70 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)".check-changeset-no-major,check-empty-changeset,check-adr-0087-registration,check:nul-bytes,check:issue-citations,check:doc-authoring,check:published-files,check:pm-governed-merges,check:cross-package-test-inputs.