Skip to content

docs(skills): objectstack-ask follows list_datasets nextStep and cites query_dataset sourceLine as given - #35100

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-34919-ask-skill-next-step
Nov 18, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-34919-ask-skill-next-step

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Part of #34919

Lands after #35043: the skill names the list_datasets nextStep and query_dataset sourceLine members that the executor in #35043 fills. Neither PR alone ends the card: the card's before/after ask round reading moved to the first daily record of #34869 (seat comment 6967910642), and the seat ends the card by hand after it.

Rework round for L1-c REWORK 6967924755 (head 9da3374525): M1 (this body now says Part of, no second Claim: added to the card) and S1 (the sourceLine half moved into step 3's citation bullet; row re-measured).

Fix round for contract review 6969596617 (PASS, should-fix S1; head b82c7383fc): the nextStep line now states the order for a note that answers one measure and asks about a word. Direction by seat routing: the note wins.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:objectstack-ask 技能两处:第 2 步决策表下加一句「list_datasets 返回里有 nextStep 时按它的 decision 和 note 走」;第 3 步的引用来源那一条改成「返回里有 sourceLine 就原样引用,没有时才用 provenance 拼来源」。由技能生成的 GET /mcp/skill 页面(ask-skill.generated.ts)用仓库脚本重新生成。
    本轮(合同审核 6969596617 的 S1)再补一句:note 说「先答已匹配的指标、再问另一个词」时两件都做,用户回答前不用那个词的候选;「只发问、不调工具」那一段改为只管纯发问的回复。
  • 为什么改:service-analytics: the dataset executor computes nextStep and sourceLine, and the MCP door returns them #34919 的范围要求工具说明、initialize 规则和问数技能三处都说「按 nextStep 走、引用 sourceLine」;前两处在 feat(analytics): list_datasets answers nextStep and query_dataset answers sourceLine, in the caller's language #35043,技能这一处在本 PR。引用规则放在真正要引用的第 3 步,全文只有一条引用指令,先后顺序写明。
  • 风险与回滚:只动发布技能文本、它的生成副本和 token 天花板一行,无代码路径变化。先删同文件两处重复句,再按裁决「A:先削重复,余额按实测提高」把天花板按实测抬 1740 → 1779(+39;本轮先删候选行里一处重复,再 +29)。不返回这两个成员的服务器照旧走 provenance。回滚即 revert 本 PR。
  • 先看:skills/objectstack-ask/SKILL.md(第 2 步表下「If note says…」一句与紧随的「When you only ask」:两句是否把先算后问的顺序说清;第 3 步引用那一条的先后顺序;表中兜底行与其下段落删去的两处重复)、scripts/check-skills-token-ratchet.mjs(objectstack-ask 行与注释)、packages/mcp/src/ask-skill.generated.ts(生成物,应与技能正文逐字一致)。
  • 两分钟验证:node scripts/check-skills-token-ratchet.mjs && node scripts/gen-mcp-ask-skill.mjs --check,预期两者均以 0 退出,ask 技能读数 1779 / 1779。
  • 需要你做的:本 PR 为 Tier H(skills/**),需维护者批准(或 GOVERNED_APPROVERS 的 APPROVED 审核)后由席位落地,且须在 feat(analytics): list_datasets answers nextStep and query_dataset answers sourceLine, in the caller's language #35043 合并之后。

What changes

  • Step 2 line (skills/objectstack-ask/SKILL.md). One line under the decision table: "When the answer has nextStep, follow its decision and note." It restates neither the precedence nor the cases: the tool result, the list_datasets description and DATASET_SELECTION_RULE carry them.
  • Order for a mixed note (same file; contract review 6969596617, S1). The line continues: "If note says to answer one measure and ask about a word, do both; use none of that word's candidates until the user answers." The paragraph under it now opens "When you only ask, the reply is the question alone: no tool call until the user answers." This is the executor's one_measure note with words left out (dataset-next-step.ts on main: "Answer with query_dataset using that measure" and then "ask the user which one is meant before using it; do not pick one"). The note wins; the question-alone rule covers a reply that only asks. No example was added.
  • Step 3 citation bullet (same file). It now reads: "Cite the answer's sourceLine as given; without one, build the source from provenance (the dataset's label and each measure's label, as in 「指标:营收(数据集:销售分析)」), not from memory." The skill holds exactly one citation instruction, in the step that cites, with the order stated and the fallback for a server that answers no sourceLine. The step 2 line no longer mentions sourceLine.
  • Read against feat(analytics): list_datasets answers nextStep and query_dataset answers sourceLine, in the caller's language #35043's head (861f110f58). DATASET_SELECTION_RULE says "follow its note" and "Cite query_dataset's sourceLine as the answer's source"; the query_dataset description says "sourceLine is that source already written in the caller's language". The skill agrees with both.
  • Paid down first. Three restatements in the same file are cut. Each keeps its other home:
    • the fallback row's ", and say in the answer that no governed metric was used" (step 4: "Open the answer with one line saying it is not from a governed metric");
    • "no figure, and " in the paragraph under the table (its next sentence: "State no figure of your own in it");
    • ", one or several" in the left cell of the candidates row (the same row's right cell: "with one candidate, ask whether it is the one meant"), cut in the fix round.
  • Token row (scripts/check-skills-token-ratchet.mjs): skills/objectstack-ask/SKILL.md moves 1740 → 1779, the measured remainder only, pinned at the measurement with zero headroom (1740 → 1750 in the rework round, 1750 → 1779 in the fix round). Raise path: the standing maintainer ruling 2026-10-27 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). Rework round: text +111 bytes, cuts −71, 6979 → 7019 bytes. Fix round: text +133 bytes, cut −17, 7019 → 7135 bytes, less the 20-byte stamp line, ceil(7115 / 4) = 1779 (+29 in this round, +39 over main). No other row moves.
  • Generated (packages/mcp/src/ask-skill.generated.ts): rewritten by node scripts/gen-mcp-ask-skill.mjs, never by hand. check:skill-refs and check:skill-docs report every artifact in sync; they own no output for this skill, so content/docs/ai/skills-reference.mdx does not change.
  • Changeset .changeset/34919-ask-skill-next-step.md: @objectstack/skills and @objectstack/mcp at patch. Clause-②: no per the seat ruling (seat 3 brief 6968205670 §5, kept by seat 1; precedent docs(skills): objectstack-ask iteration 2: trigger on every records question, ask back with no figure of its own, whole terms, hidden record kinds declined #35038): a text-only change to served skill text is not a surface change; only tools, fields or arguments count. Metadata-protocol: none.

Skills size readings

Reading Before (3b4ffb2217) After (b82c7383fc)
skills/objectstack-ask/SKILL.md lines 115 120
skills/objectstack-ask/SKILL.md bytes 6979 7135
skills/objectstack-ask/SKILL.md priced tokens (ceiling) 1740 (1740) 1779 (1779)
All 12 SKILL.md files, lines summed 4736 4741
Whole shipped bundle, tokens 263540 263579

Acceptance notes

Verification

All readings at b82c7383fc.

Package tests, typecheck and generator drift
  • node scripts/gen-mcp-ask-skill.mjs --check: exit 0 ("is current with skills/objectstack-ask/SKILL.md").
  • pnpm --filter '@objectstack/mcp^...' build under the verify lock: VERDICT command-exit 0.
  • pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 && pnpm --filter @objectstack/mcp typecheck under the verify lock: Test Files 71 passed (71), Tests 1261 passed (1261), VERDICT command-exit 0. The run includes skill-single-source-34686.test.ts.
  • pnpm --filter @objectstack/spec run check:skill-refs: exit 0, "9 generated files in sync". check:skill-docs: exit 0. check:skill-examples: exit 0, "347 prose examples type-check across 3 surface(s)" (after building the @objectstack/client-react closure it reads).
Derived gates (dispatch-gates --commands, no paths, then --ran)
  • 88 derived; 87 exit 0. Among them: check-skills-token-ratchet.mjs (objectstack-ask row 1779 / 1779, +0) and its --self-test (104 cases pass), check-changeset-no-major.mjs --base origin/main, check-adr-0087-registration, check-empty-changeset, check:nul-bytes, check:skill-links, check:skill-identifier-liveness, check:pm-dispatch-gates, check:pm-governed-merges.
  • 1 NOT MEASURED: pnpm check:dual-build-cjs-loads exit 3, "PREREQUISITE NOT MET": it reads every package's dist/, and a whole-workspace build was not run here; CI runs this gate.
  • --ran: "88 derived famil(ies) accounted for — 87 run, 1 NOT-MEASURED", the one above.
  • The derivation printed a stale-tree note: the branch is at least 20 commits behind origin/main. main was not merged in this round (no conflict, no red).

Generated by Claude Code

…s query_dataset sourceLine as given

One line under the step 2 decision table: when the list_datasets answer
has nextStep, follow its decision and note; cite a query_dataset answer's
sourceLine as given. Two restatements in the same file are cut first and
the token row moves by the measured remainder (1740 -> 1753) under the
standing ruling record 6513306068, letter B. ask-skill.generated.ts is
regenerated with scripts/gen-mcp-ask-skill.mjs.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 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): node scripts/docs-audit/affected-docs.mjs --json 6f2bd4f84c98dcac81b0d745fcc16a35641ecc45 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f3b872beea770d8137a8ccd6ef74bedb41b7f2ff — the merge of head b82c7383fc42555346de950e2f6f18054108655c into base 6f2bd4f84c98dcac81b0d745fcc16a35641ecc45, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f3b872beea770d8137a8ccd6ef74bedb41b7f2ff && git checkout f3b872beea770d8137a8ccd6ef74bedb41b7f2ff
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 6f2bd4f84c98dcac81b0d745fcc16a35641ecc45 b82c7383fc42555346de950e2f6f18054108655c && git checkout -B drift-repro 6f2bd4f84c98dcac81b0d745fcc16a35641ecc45 && git merge --no-ff b82c7383fc42555346de950e2f6f18054108655c

node scripts/docs-audit/affected-docs.mjs --json 6f2bd4f84c98dcac81b0d745fcc16a35641ecc45

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg

L1: REWORK · 2026-11-18T03:14Z

Head-sha: 8f4b446
Reviewer: seat 3 L1-c (epic #34659)

席位核对

Agreement with #35043 at 861f110

  • initialize rule (DATASET_SELECTION_RULE). It says "The list_datasets answer states which of these cases your words are in as nextStep: follow its note … Cite query_dataset's sourceLine as the answer's source." The skill line, "follow its decision and note; cite … sourceLine as given", agrees. Naming decision as well adds nothing that conflicts.
  • list_datasets description. It says "follow note, which with one_measure also names the words left out and their candidates". That agrees.
  • query_dataset description. It says "sourceLine is that source already written in the caller's language". That agrees with "cite … as given".
  • The table. The one_measure note with left-out words (compute one, ask about the rest) agrees with the table's rows, so following note never contradicts a row.

Must-fix

Should-fix

  • S1: put the sourceLine half where the skill tells the model to cite.
    • Today. Step 3's bullet still reads "Cite the source from the answer's provenance (…), not from memory". The new line in step 2, the decide step, says "cite … sourceLine as given". A model at step 3 meets the provenance instruction with no word on which one wins, and building the line from parts is exactly what service-analytics: the dataset executor computes nextStep and sourceLine, and the MCP door returns them #34919 exists to stop. feat(analytics): list_datasets answers nextStep and query_dataset answers sourceLine, in the caller's language #35043's changeset says "a model handed a finished sentence copies it, and one that builds it from parts often does not".
    • Fix. Keep nextStep in step 2. Fold sourceLine into step 3's bullet, for example: "Cite the answer's sourceLine as given; without one, build the source from provenance (the dataset's label and each measure's label, as in 「…」), not from memory."
    • Result. One citation instruction, an explicit precedence, and the fallback for a server that answers no sourceLine, which the changeset promises stays in force. It should cost roughly the same bytes, or fewer. Re-measure the row.

Notes

Next

Fix M1 (body only) and S1 (skill text, generated file, ratchet row). Then I owe a delta read, and after that it goes to the seat's L2, the Tier H record, and os-zhuang.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfR33NbV51QQU6R6bm

Hand-off (seat 3 → next PM) · 2026-11-18T03:21Z

Seat 3 hands over on the maintainer's word (2026-11-18 03:19Z). This PR is unfinished; the fix round below has not started.

Card #34919, second PR (first is #35043, Part of #34919). This PR says Fixes #34919 (seat ruling 03:13Z)
Head 8f4b4468fca6779676bb3515810a9d927dfc19f5, branch claude/issue-34919-ask-skill-next-step, off main 3b4ffb2
Tier H (skills/**, generated .ts, ratchet .mjs). Draft; never ready, queue or arm by a seat. The human merge is os-zhuang's
CI PR-body guards red (duplicate Fixes #34919 with #35043 + no Claim for this branch). The Claim is now posted (#34919, 03:16Z); the duplicate clears when #35043's body reads Part of #34919. Re-run the guard after that; do not change this PR's Fixes line
L1 L1-c REWORK 6967924755 (M1 above, S1 below, N1 → seat)
Seat L2 not yet
Lands after #35043 (the line names members #35043 fills)

Fix round owed (order, ready to dispatch)

  • S1: fold sourceLine into step 3's Cite bullet of skills/objectstack-ask/SKILL.md ("Cite the answer's sourceLine as given; without one, build the source from provenance …, not from memory"), keep nextStep in step 2, and drop the sourceLine half from the step-2 line so there is one citation instruction. Re-measure the token row (scripts/check-skills-token-ratchet.mjs, ruling 6513306068 B: pay down before raising). Regenerate ask-skill.generated.ts with scripts/gen-mcp-ask-skill.mjs; check:skill-refs / check:skill-docs in sync.
  • N1 (seat ruling 03:17Z): rewording skill/prompt text served over MCP adds or removes no tool, field or argument → Clause-②: no (matches docs(skills): objectstack-ask iteration 2: trigger on every records question, ask back with no figure of its own, whole terms, hidden record kinds declined #35038). Switch the PR body and the changeset to Clause-②: no, Metadata-protocol: none, patch. If a tool, field or argument is added or removed, stop and ask the seat.
  • Validation: gen --check, skill-refs, skill-docs, the ratchet + --self-test, mcp tests, dispatch-gates --commands + --ran, check-changeset-no-major, overlap-check; check-governed-merges --branch (expected Tier H).
  • Then: L1-c delta → seat L2 → Tier H record → os-zhuang.

Done-when item 2

Moved to #34869's first daily record after #35043 lands (seat ruling 03:13Z, option B; notes on #34919 and #34869). Not measured here; the runner refusal is quoted in the body's "Ask round reading".

Lease o3-E / pm:dispatched on #34919 are left in place while #35043 is in flight; the next PM takes them over or strips them with #35043's hand-off.

…enance; one citation instruction

The sourceLine half moves from the step 2 line to step 3's citation
bullet: cite the answer's sourceLine as given; without one, build the
source from provenance. Step 2 keeps the nextStep line. The token row is
re-measured: 1740 -> 1750 (was 1753). ask-skill.generated.ts is
regenerated with scripts/gen-mcp-ask-skill.mjs. The changeset declares
Clause-②: no (text-only change to served skill text).

Claude-Session: https://claude.ai/code/session_01JQwxbWDsbbJizuYnDwBxT8
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Final green head · 2026-11-18T04:50Z: 9da3374525261cc3ec035ae5d03e708cb29d66c1 (rework for L1-c REWORK 6967924755: M1 body Part of #34919, S1 sourceLine folded into step 3; os-dev-report on #34919 6968955351). CI: 39 success, 18 skipped, 0 red (PR-body guards green). Owed next: L1-b delta 8f4b4468..9da33745, then a fable L2 and the Tier H seat record. Release freeze: stays draft.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXr9wLAH24MEgxaLud

席位核对

L1 delta · ACCEPT · Head-sha: 9da3374525261cc3ec035ae5d03e708cb29d66c1 · card #34919 (Part of #34919) · read 2026-11-18T04:55Z

Delta from L1-c REWORK 6967924755 at 8f4b4468: one commit (9da3374525, fast-forward), 4 files, +20 / -18. Governed (skills/**), Tier H.

REWORK items

  • M1 closed. The body now opens Part of #34919, with no closing keyword anywhere; the card's ask-round reading moved to eval: a daily MCP ask round on the open-source runner — local boot, subscription login, no cloud access #34869 and the seat ends the card by hand. No second Claim: was added to the card.
  • S1 closed. The sourceLine half left the step 2 line, which now reads only "When the answer has nextStep, follow its decision and note." Step 3's citation bullet now reads "Cite the answer's sourceLine as given; without one, build the source from provenance (…), not from memory." One citation instruction in the skill, in the step that cites, order stated, with a fallback for a server that answers no sourceLine.
  • Clause-②: no, per seat ruling (seat 3 brief 6968205670 §5, kept by seat 1): a text-only change to served skill text. Same line in the body and the changeset. Accepted.

Checked against main (#35043 merged as 6932cb84fe)

  • packages/spec/src/ai/dataset-tools.zod.ts: sourceLine is optional on QueryDatasetOutputSchema, "Absent when the tool composed none", and nextStep (with decision and note) is optional on the list_datasets answer. The skill's "without one, build the source from provenance" and "When the answer has nextStep" match both optionalities.
  • packages/mcp/src/mcp-server-runtime.ts:1830-1832 (DATASET_SELECTION_RULE): "follow its note … Cite query_dataset's sourceLine as the answer's source". service-analytics/src/dataset-tools.ts:128: "sourceLine is that source already written in the caller's language". The skill agrees with both; nothing in it contradicts the served tool text.
  • Generated copy: ask-skill.generated.ts moves line for line with SKILL.md (same two hunks); CI's generated-artefact gates are green.
  • Token row: SKILL.md at head is 7019 bytes (measured), so ceil((7019 − 20) / 4) = 1750, the new ceiling, zero headroom. The raise is paid down first (two restatements cut, each with its other home named), under the standing ruling 6513306068. Whole-bundle density: +10 tokens for one instruction that the served tools now depend on. Accepted.
  • Changeset: this PR's own file (A against main), @objectstack/skills and @objectstack/mcp patch; its prose matches the two hunks sentence by sentence. No changeset already on main is edited. No content/docs/releases/ path.
  • Merges: clean against origin/main 0e46840fca.
  • Gates at this head: check-runs all completed, none failed: Lint & Repo Gates, TypeScript Type Check, Governed Surface Queue Guard, Test Core 1-10/10, Build Core, Check Changeset (both runs) success; UI and docs jobs skipped by filter.

Not mine, still owed before landing

  • L2 at CONTRACT_REVIEW_TIER on this head (governed rule text, skills/**).
  • Tier H: os-zhuang's GitHub approval on the final head, requested by the seat after ACCEPT and PASS are both on record.
  • Release freeze (seat 1, 04:09Z): nothing readied, armed or queued.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Contract-review-claim: session_01JQwxbWDsbbJizuYnDwBxT8 · head 9da3374525261cc3ec035ae5d03e708cb29d66c1 · 2026-11-18T04:58Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9da3374525261cc3ec035ae5d03e708cb29d66c1
Local-runs: none
Scope: skills/objectstack-ask/SKILL.md + scripts/check-skills-token-ratchet.mjs, packages/mcp/src/ask-skill.generated.ts
Security-touching: no

PR #35100, card #34919 (Part of #34919). Read: the card body and all 13 comments, the PR body and all 6 comments (L1-c REWORK 6967924755 and L1 delta ACCEPT 6969488613 included), the net diff against main (4 files, +45 / −11, merge base 3b4ffb2217), the 57 check-runs on the head, and the cited code on main 0e46840fca, which holds #35043 as 6932cb84fe. The remainder of the diff, .changeset/34919-ask-skill-next-step.md, is the lane seat's ACCEPT (6969488613).

① Derived judgments

② Semver level

③ Boundary flags

  • open_questions. The newest report (6968955351) carries none. The one question in report 6967860205, who reads the before/after ask round, was answered by the seat's option B (6967910642): it moved to eval: a daily MCP ask round on the open-source runner — local boot, subscription login, no cloud access #34869 and is not owed here. Nothing to escalate.
  • Dev flags. The claim for this branch is 6968320293. The body says Part of #34919 with no closing keyword, so the seat ends the card by hand. The report's two notes on commit trailers and the kept attribution line touch no contract.
  • Out-of-scope findings. None filed on this PR.
  • SQL push-down. Not applicable: the diff has no query, no id materialisation and no join.

④ Design judgment

skills/objectstack-ask/SKILL.md, read against DATASET_SELECTION_RULE (packages/mcp/src/mcp-server-runtime.ts:1822-1832), LIST_DATASETS_DESCRIPTION and QUERY_DATASET_DESCRIPTION (packages/services/service-analytics/src/dataset-tools.ts:101-131), the executor (dataset-next-step.ts) and QueryDatasetOutputSchema, all on main:

  • Step 3 citation bullet holds. sourceLine is optional in the spec ("Absent when the tool composed none") and the executor always composes it, so "as given; without one, build the source from provenance" covers both a current server and an older 18.x one. QUERY_DATASET_DESCRIPTION says "cite it as given" and the initialize rule says "Cite query_dataset's sourceLine as the answer's source". The zh-Hans sourceLine has the shape of the bullet's own example. One citation instruction, in the step that cites: L1-c's S1 is closed in the tree.
  • Step 2 line holds for every unmixed case. nextStep is optional and present only when terms were sent, which "When the answer has nextStep" matches. For one measure, several measures, candidates only, an unknown word and a grouping-only word, the note tells the model what the table row tells it. A partial: true note adds "repeat the warning", which the skill already asks for.
  • The two cuts hold. Each removed clause has its remaining home, named in ①.

S1 (should-fix) — the new step 2 line and the paragraph directly under it give opposite orders for a one_measure note that leaves a candidate word out.

  • What the code answers. For ["营收", "churn"], where 营收 equals one measure and churn has only candidates, the executor reports one_measure and writes one note: "Answer with query_dataset using that measure, and cite the answer's sourceLine as its source." followed by churn's readings and "For each word above with possible readings, ask the user which one is meant before using it; do not pick one." (oneTail, candidateHit, leftCandidateTail; the file's docblock: "computes 营收's measure and asks about churn's candidates"). This is seat ruling B on feat(analytics): list_datasets answers nextStep and query_dataset answers sourceLine, in the caller's language #35043 (card round notes 6966642622 and 6968034646).
  • What the skill says at this head. Line 64: "When the answer has nextStep, follow its decision and note." Lines 66–67, edited in this same PR: "When you ask, the reply is the question alone: no tool call until the user answers." The table agrees with the paragraph: row 1 needs each word to match one measure, and row 4 says to ask.
  • Why it matters. The note orders a query_dataset call and a question; the paragraph forbids any tool call once a question is owed. The skill does not say which wins, so the model's behaviour in this case is not fixed by the text. This is the same class of gap L1-c graded should-fix as its S1. It is not a must-fix: on either reading the candidate word is asked about before use and no ungoverned figure is given.
  • Fix. One clause that states the order, in whichever direction the seat rules. Either the note wins (for example, the question-alone paragraph applies "unless note says to compute another word first"), or the skill wins (ask first, compute the decided measure after the answer). Then re-measure the row and regenerate the served copy.

Nit:

  • N1 (nit) — sourceLine is in the caller's locale, which need not be the user's language. The executor reads the request locale, then the workspace default, then en, while step 6 says "Answer in the user's language". A client that sends no locale can get an English source line inside a Chinese answer. The skill follows the served tool text exactly ("cite it as given"), so this is an accepted deviation; the locale reading is the runtime-door finding already recorded on feat(analytics): list_datasets answers nextStep and query_dataset answers sourceLine, in the caller's language #35043.

scripts/check-skills-token-ratchet.mjs: the row and its comment agree with the measurement sentence by sentence (6979 → 7019 bytes, +111 and −71, ceil(6999 / 4) = 1750, raise path and both cuts named). No finding.

packages/mcp/src/ask-skill.generated.ts: agrees with the skill line for line. It carries S1 only as a copy and is regenerated with the fix.

No must-fix. S1 is open on this head and earns a delta review of its fix.

Implemented-by: claude/issue-34919-ask-skill-next-step
Reviewed-by: area o1-C isolated reviewer (sub-agent of session_01JQwxbWDsbbJizuYnDwBxT8)

VERDICT: PASS

…nswers one measure and asks about a word

Contract review record 6969596617, S1: the note wins. One sentence under the
step 2 table says to do both and to use none of that word's candidates until
the user answers; the question-alone paragraph now opens "When you only ask".
Paid down first (", one or several" in the candidates row); the token row
moves 1750 -> 1779, pinned at the measurement. Served copy regenerated.

Claude-Session: https://claude.ai/code/session_01JQwxbWDsbbJizuYnDwBxT8
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Final green head · 2026-11-18T07:45Z: b82c7383fc42555346de950e2f6f18054108655c — fix round for contract review 6969596617 S1 (seat routing: nextStep's note wins; "the question alone" applies when the reply only asks). Dev report 6971966487 on #34919. CI: 39 success, 18 skipped, 0 red. Owed: L1-b delta 9da3374525..b82c7383fc, fable contract-review delta on the same range, then the Tier H route.

Contract-review-claim: session_01JQwxbWDsbbJizuYnDwBxT8 · head b82c7383fc42555346de950e2f6f18054108655c · 2026-11-18T07:45Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXr9wLAH24MEgxaLud

席位核对

L1 delta · ACCEPT · Head-sha: b82c7383fc42555346de950e2f6f18054108655c · card #34919 (Part of #34919) · read 2026-11-18T07:46Z

This delta starts from my ACCEPT 6969488613 at 9da33745. It is one commit (b82c7383fc, fast-forward), 4 files, +27 / -9. It answers contract review S1 (record 6969596617). Governed (skills/**), Tier H.

Checked

  • S1, the opposite orders. The nextStep line now goes on: "If note says to answer one measure and ask about a word, do both; use none of that word's candidates until the user answers." The paragraph under it now opens "When you only ask". The question-alone rule now covers only a reply that only asks, so the two lines no longer contradict each other.
  • Against the server's note. This matches what the server composes on main. In service-analytics/src/dataset-next-step.ts, a one_measure note computes the one measure and adds leftCandidateTail ("ask the user which one is meant before using it; do not pick one") for each left-out word with readings. The skill's "do both … use none of that word's candidates until the user answers" says the same thing.
  • The paydown cut. , one or several leaves the left cell of the candidates row. The same row's right cell still covers both counts ("listing each candidate's …; with one candidate, ask whether it is the one meant").
  • Generated copy. ask-skill.generated.ts moves line for line with SKILL.md (the same three edits).
  • Token row. SKILL.md at the head is 7135 bytes (measured). ceil((7135 − 20) / 4) = 1779, the new ceiling, with zero headroom. The raise follows ruling 6513306068 letter B and is paid down first. On main since the merge base, the file changed only by the version-stamp bump, which keeps the same byte count. The tree from merging onto origin/main f7960893cd still measures 7135 bytes against the 1779 row.
  • Changeset. This PR's own file (A against main). Its prose adds the new sentence and the cut, matching the hunks. No changeset already on main is edited, and no content/docs/releases/ path is touched.
  • Merges cleanly onto origin/main f7960893cd.
  • Gates at this head. Check-runs all completed, none failed. Lint & Repo Gates, TypeScript Type Check, Governed Surface Queue Guard, Test Core 1-10/10, Build Core, Check Changeset and the PR-body guards are success. The UI and docs jobs were skipped by filter.

Not mine, still owed before landing

  • L2 delta at CONTRACT_REVIEW_TIER on this head.
  • Tier H: os-zhuang's GitHub approval on this head. My ACCEPT at 9da33745 does not carry to it, so the approval has to be on b82c7383.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbWDsbbJizuYnDwBxT8

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b82c7383fc42555346de950e2f6f18054108655c
Local-runs: none
Scope: skills/objectstack-ask/SKILL.md + scripts/check-skills-token-ratchet.mjs, packages/mcp/src/ask-skill.generated.ts
Security-touching: no

Delta review of record 6969596617, range 9da3374525..b82c7383fc: one commit, 4 files, +27 / −9. PR #35100, card #34919 (Part of #34919). Read: the delta diff and the net diff against main (4 files, +65 / −13), dev report 6971966487, the head note 6972378349, the PR body at this head, the 57 check-runs on this head, and the cited code on main f7960893cd. The changeset is the lane seat's.

S1: closed
N1: accepted deviation, untouched, as recorded.

① Derived judgments

  • Public surface: still no tool, field or argument. Right. The delta rewords two passages of skill prose and trims one table cell, copies the same three edits into ASK_SKILL_DATA_LOOP, moves one number and its comment in CEILINGS, and extends the changeset prose.
  • Accept-set: the ceiling rises 1750 → 1779. Right. The blob at this head is 7135 bytes; less the 20-byte stamp line, ceil(7115 / 4) = 1779, zero headroom. Text +133 and cut −17 give the +116 bytes measured. The paydown comes first under ruling record 6513306068 letter B: ", one or several" left the candidates row's left cell, and its other home stays in the same row's right cell ("with one candidate, ask whether it is the one meant"). No other row moves.
  • Served copy. Right. The three hunks of ask-skill.generated.ts are the three hunks of SKILL.md, line for line.
  • Gate verdicts. 39 success, 18 skipped, 0 failed on this head. Lint & Repo Gates, Check Changeset (both runs), Governed Surface Queue Guard, PR-body guards (both runs), TypeScript Type Check, Build Core and Test Core are success.
  • main moved under the PR; nothing it cites changed. main is now f7960893cd. Since the first record's 0e46840fca, dataset-next-step.ts, dataset-tools.ts, mcp-server-runtime.ts and dataset-tools.zod.ts are unchanged. The skill file took one line from the release commit 958ee03594 (the version stamp, 18.5.0 to 18.6.0, the same length). The merged tree's skill is still 7135 bytes with the row at 1779, and the head merges into main without conflict.
  • Security line. no: the new sentence and the reworded opener teach when to call a tool and when to ask, not permission, sharing, credential, token or authentication behaviour. The membersWithheld row is unchanged.

② Semver level

  • Changeset: still @objectstack/skills and @objectstack/mcp at patch; Check Changeset is success on this head.
  • Clause-②: no in the PR body and the changeset. Right under the seat ruling (seat 3 brief 6968205670 §5, kept by seat 1): the delta is text-only, as ① shows. Metadata-protocol: none is right.

③ Boundary flags

  • open_questions (6971966487): is the "+40 tokens" cap per round or over main? Needs no ruling for this head: the round adds 29 and the PR adds 39 over main (1740 → 1779), so both readings hold. The cap is the dispatching seat's own term; this record does not rule on which reading it meant.
  • Dev flags. The report's stale-tree note (the branch is behind main, not merged in) is answered in ①: the merge is clean and the measured row is unchanged on the merged tree.
  • Out-of-scope findings. None.
  • SQL push-down. Not applicable: no query, no id materialisation, no join.

④ Design judgment

skills/objectstack-ask/SKILL.md at this head, lines 64–68, against dataset-next-step.ts, LIST_DATASETS_DESCRIPTION and DATASET_SELECTION_RULE on main:

  • S1 is closed, in the direction the seat ruled. The line now continues: "If note says to answer one measure and ask about a word, do both; use none of that word's candidates until the user answers." The paragraph under it opens "When you only ask". For ["营收", "churn"] the executor's one_measure note says to answer with query_dataset and, for the word with readings, to "ask the user which one is meant before using it; do not pick one". The skill now gives the same order, and the question-alone rule no longer forbids the call the note orders.
  • The other mixed cases still agree.
    • several_measures beside a decided word: the note says "compute nothing until they answer". It does not say to answer a measure, so the new sentence does not fire and the reply only asks.
    • candidates_only: the same, "compute nothing until they answer".
    • one_measure with an unknown or grouping-only word: the note asks nothing, so neither sentence is in play.
  • Agreement with the served text. DATASET_SELECTION_RULE says "follow its note, which reports the first of several_measures, one_measure, candidates_only, no_measure when words differ", and LIST_DATASETS_DESCRIPTION says the one_measure note "also names the words left out and their candidates". The skill's sentence states what following that note means and contradicts neither.
  • The cut holds. The candidates row without ", one or several" still covers a lone candidate through its right cell, which is what the initialize rule's "even for a single candidate" needs.

Nit:

  • N2 (nit) — in a reply that both answers and asks, the question's format rules now rest on the table row alone. "State no figure of your own in it", "name each option by its label in a bullet" and "quote its description as written" sit in the paragraph that now opens "When you only ask". The question in a mixed reply is still governed by the candidates row ("listing each candidate's label, its dataset's label and its description… Do not pick one") and by the note. It has no effect on which figure is computed or on the ask-before-use order. Accepted as it stands; a follow-up could move those three clauses out from under "only".

scripts/check-skills-token-ratchet.mjs: the new comment agrees with the tree sentence by sentence (the finding it answers, the direction, the one cut and its other home, 7019 → 7135 bytes, ceil(7115 / 4) = 1779). No finding.

packages/mcp/src/ask-skill.generated.ts: agrees with the skill line for line. No finding.

No must-fix, no should-fix.

Implemented-by: claude/issue-34919-ask-skill-next-step
Reviewed-by: area o1-C isolated reviewer (sub-agent of session_01JQwxbWDsbbJizuYnDwBxT8)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

Seat record · 2026-11-18T07:48Z · Head-sha: b82c738

维护者速读

席位意见:同意合并。四个文件 +65/−13,只改问数技能的两句指引,前置的 #35043 已落地。

席位核对

  1. 形态:4 个文件,+65/−13,Part of #34919(卡由席位在 eval: a daily MCP ask round on the open-source runner — local boot, subscription login, no cloud access #34869 首轮日记录后手动收口);Clause-②: no,Metadata-protocol: none。
  2. 前提实测:feat(analytics): list_datasets answers nextStep and query_dataset answers sourceLine, in the caller's language #35043 已合入,本 PR 引用的 nextStep / sourceLine 两个成员已由其执行器填充;生成物检查 gen-mcp-ask-skill.mjs --check 由 dev 在本链上跑过。
  3. 门禁 check-runs:head b82c7383 上 57 条,39 成功、18 跳过、0 红。check-governed-merges --pr 35100:4 个路径中 1 个命中受管面(skills/**),Tier H。
  4. 接受的偏差:复审 S1 已闭(note 先答后问的顺序由席位定向为 note 优先);N1、N2 为接受的备忘。棘轮上调走 [Decision] skills token ratchet: price evals/** out (they never enter a customer context), and make the standing 「先削重复,余额按实测提高」 ruling the gate-recognised path for teaching text — or keep the per-raise ruling round #27847 裁决 B 的抬升路径。
  5. 范围外去向:卡 service-analytics: the dataset executor computes nextStep and sourceLine, and the MCP door returns them #34919 的前后对照读数移到 eval: a daily MCP ask round on the open-source runner — local boot, subscription login, no cloud access #34869 首个日记录(席位评论 6967910642);与 docs(skills): JSON forms in the sections served to MCP clients, and a check that pins their headings #35131 同改 scripts/check-skills-token-ratchet.mjs 的不同行,后落地者重测其行。
  6. 落地条款:Tier H,等 os-zhuang 的 APPROVED 审核在案于本 head(或其后仅合 main 的 head),再由席位翻 ready、经合并队列落地;head 若有内容变动则撤挂回等。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 18, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 18, 2026 07:52
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit f54fc93 Nov 18, 2026
63 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-34919-ask-skill-next-step branch November 18, 2026 08:28
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants