Skip to content

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

Merged
os-zhuang merged 5 commits into
mainfrom
claude/issue-34996-ask-skill-iter-2
Nov 18, 2026
Merged

os-zhuang merged 5 commits into
mainfrom
claude/issue-34996-ask-skill-iter-2

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Part of #34996
Clause-②: no
Metadata-protocol: none
Served-tier: TIER_DEFAULT

维护者速读

  • 改了什么:objectstack-ask 技能(及由它生成的 GET /mcp/skill 页面)四处措辞:凡用应用记录回答的问题都先加载本技能(含「一共」「so far」);术语按用户原名词短语整段传;反问不写自己的数字(计数、合计、选项编号),选项按标签列出、描述原文引用;看不到的记录类型直接说明看不到,不拿关联对象顶替。
  • 为什么改:问数迭代环第一组「保留」改动,travel_expense 问数轮实测 datasets 17/25 → 25/25,问数 25/25 不变,泄漏 0。
  • 风险与回滚:只动发布技能文本与其生成副本,无代码路径变化;token 天花板按裁决「A:先削重复,余额按实测提高」先削两句重复再按实测抬 1491 → 1740;回滚即 revert 本 PR。
  • 先看:skills/objectstack-ask/SKILL.md(第 2 步表格下的反问段与第 4 步首条)、scripts/check-skills-token-ratchet.mjs(抬升行与注释)、skills/objectstack-ask/evals/metric-selection-fallback.json(新增 10、11 号用例)。
  • 两分钟验证:node scripts/check-skills-token-ratchet.mjs && node scripts/gen-mcp-ask-skill.mjs --check,预期两者均以 0 退出,ask 技能读数 1740 / 1740。
  • 需要你做的:Tier H 落地需维护者批准(或 GOVERNED_APPROVERS 的 APPROVED 审核)后由席位落地。

What changes

skills/objectstack-ask/SKILL.md takes the measured iteration-2 text (/mnt/project-files/issue-34869/skill-iter/iter2/SKILL.v2.md), applied as its diff onto current main (the file is byte-identical to its state at 99bd2203, so the patch applied unchanged; the result was byte-identical to SKILL.v2.md before the cuts below):

  • (a) The description triggers on EVERY question answered from the app's records, before the first data tool call, even one that names no metric: "what has been claimed, spent, sold or paid so far", with "how much", "so far" and 「一共」 added to the trigger words.
  • (b) An asked-back reply states no figure of its own (no count, total or option number): each option is named by its label in a bullet and its description is quoted as written; it asks only about matches or candidates for the user's own words, and a word with no match and no candidates goes to step 4 instead. (L1 should-fix S1, head b431dc04: the measured text said "without any numerals at all ... leave out counts, dates and years", which forbade quoting a description that carries a date or a number; narrowed to the figure the reply would add, measured as iteration 6 below, same token count. Follow-up 32ba36e0 (L1 S1′) brings the changeset, eval 10's expected output and the ceiling comment (6979 / 6959 bytes) in line; no skill or ceiling change.)
  • (c) A list_datasets term is the user's noun phrase kept whole ("travel budget", not "travel" and "budget") and without verbs, time words and question words ("trip days", not "trip days requested").
  • (d) Step 4 opens with: a record kind no listed object or dataset shows is declined (it may be hidden), never answered from a different object that merely links to it.

Token ratchet, raise path the standing ruling 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). PAID DOWN FIRST, two restatements cut from step 2's candidates row, each keeping its other home:

Cut Surviving home
", and never treat a candidate as a match" step 1: "A candidate is not a match."
"Compute nothing yet." the paragraph under the table: "no figure, and no tool call until the user answers"

These two cuts are the only wording outside the measured text, forced by the ratchet. The area measured the text with the cuts as iteration 5: same scores as v2's rounds (the candidates row the cuts touch is the one dq_claimed_so_far exercises, 5/5). Arithmetic in priced bytes (20-byte stamp line excluded): the text adds 1057 bytes, the cuts remove 61, and the reviewed narrowing of the ask-back sentence (S1, b431dc04) adds 2: 5961 -> 6959 priced bytes (file 6979 bytes), ceil(6959 / 4) = 1740; the row moves 1491 -> 1740 (+249), the measured remainder only, pinned AT the measurement, zero headroom; no other row moves.

Also in the diff:

  • packages/mcp/src/ask-skill.generated.ts regenerated with node scripts/gen-mcp-ask-skill.mjs (never hand-edited); content/docs/ai/skills-reference.mdx regenerated with pnpm --filter @objectstack/spec gen:skill-docs.
  • Two eval cases in the file's existing shape: id 10, "What has been claimed so far?" (asked back on a lone candidate, with no figure of its own and the description quoted as written), and id 11, a trip-request count where no listed object is a trip request (declined, not counted through the trip_request lookup on expense_claim).
  • .changeset/34996-ask-skill-iter-2.md: @objectstack/skills and @objectstack/mcp patch, as the earlier ask-skill PRs did.

Measurements

travel_expense ask mode, with-skill only, 5 reps, template b7ab31a7, the model and medium effort the round record names, subscription login, --packages workspace at main 99bd2203 (the published 18.5.0 door serves no list_datasets candidates), grader before the ordinal/date grader change of #34997. Records under /mnt/project-files/issue-34869/skill-iter/, logged on #34869.

Iteration Text 问数 datasets metric-selected asked-back fallback-labelled ops runnable leaks
0 main skill unchanged 25/25 17/25 10/10 3/10 4/5 2/3 0
1 a-d, whole-phrase wording 25/25 24/25 9/10 10/10 5/5 2/3 0
2 v2 (measured text, before the ratchet cuts) 25/25 25/25 10/10 10/10 5/5 2/3 0
3 v2 again (noise check) 24/25 25/25 10/10 10/10 5/5 2/3 0
5 v2 with the two ratchet cuts (head 7f6156c2) 24/25 25/25 10/10 10/10 5/5 2/3 0
6 this PR's exact text (head b431dc04: iteration 5 with the narrowed ask-back sentence), grader rev 2 (live run on #35023's head 090a48eb, the merged code) 25/25 24/25 10/10 9/10 5/5 2/3 0

Iteration 6 ran live on #35023's head 090a48eb, the code that merged as 339c2f42, so its graders are rev 2; the score equals iteration 5 overall. Its one datasets miss is dq_travel_spend rep 3: the reply asks back correctly (lists both spend measures, no figure, 「…我不替你选,请确认你要哪一个:」) but asked-back:asks accepts 请确认 only at the start of the text or after .。!! or a newline, not after a full-width comma, so it reads as not asking. That is a grader false negative, filed as #35058, not a skill miss.

Regraded on grader rev 2. Every recording above replayed on main's grader after #35023 merged (--driver recorded:, same turns and same replies, only the grade changes; build worktree 090a48eb, records under iterN/regrade-rev2/):

Iteration 问数 datasets metric-selected asked-back rev 2 fallback-labelled ops (replay)
0 25/25 19/25 10/10 5/10 4/5 2/2 measured, 4 not measured
1 25/25 24/25 9/10 10/10 5/5 2/2 measured, 4 not measured
2 25/25 25/25 10/10 10/10 5/5 2/2 measured, 4 not measured
3 24/25 25/25 10/10 10/10 5/5 2/2 measured, 4 not measured
4 (v3, not kept) 25/25 25/25 10/10 10/10 5/5 2/2 measured, 4 not measured
5 24/25 25/25 10/10 10/10 5/5 2/2 measured, 4 not measured
6 (live, rev 2) 25/25 24/25 10/10 9/10 (#35058) 5/5 live 2/3

On rev 2 the baseline's asked-back reads 5/10 (was 3/10: dq_claimed_so_far rep 2 and dq_travel_spend rep 1 were failed only for option numbers, "1" and "1, 2, 3", which the old grader counted as figures), so the kept change set moves datasets 19/25 -> 25/25 and asked-back 5/10 -> 10/10. Iteration 4's v3 regrades from 24/25 to 25/25, a tie with v2, so it stays not kept. The replay's operation column counts only the operations whose recorded writes replay; a filing's later turns name a row the replay created, which #35048 fixes, so the live column (2/3, the submit defect below) stays the operation score.

The operation miss is file_and_submit_from_text: on workspace packages the filing applies, then the build's own demotravel_submit_claim answers HOOK_ABORTED (it passes status as an update option); it is fixed with the fresh verified build (#34920 / #34896), and #35025 changes the card's line-shape check. Iteration 3's 问数 miss (department_budgets as dept_manager: never described Department) and iteration 5's (as employee: travel_budget is withheld, the reply said "no budget field") are left for the next text batch (#35004). Seed 173/757 (#34897, PR #34985): 8 questions and 3 operations are unmeasured.

Tests

Readings (head 7f6156c; re-run at b431dc0 where marked)
  • pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 src/skill-single-source-34686.test.ts: Test Files 1 passed (1), Tests 3 passed (3); re-run at b431dc04: 3 passed (3).
  • pnpm --filter @objectstack/mcp test: Tests 1252 passed (1252); pnpm --filter @objectstack/mcp typecheck: exit 0 (check:test-typecheck: OK).
  • Eval assertions checked by script: every must_contain is in expected_output, no must_not_contain is in it, ids 1-11 distinct; loadSkillEvalCatalog('skills') from packages/qa/scenarios loads 11 objectstack-ask cases with no refusals.
  • No ablation: the diff changes skill text, a generated module, an eval file and a ratchet row, and no tested behaviour.

Verification

Gates (head 7f6156c)
  • Closure build under the verify lock: pnpm --workspace-concurrency=2 --filter '@objectstack/lint...' --filter '@objectstack/client-react...' --filter '@objectstack/mcp...' build, VERDICT command-exit 0.
  • node scripts/pm/dispatch-gates.mjs --commands: 112 derived families, all run; --ran with exit codes: 110 run, 2 NOT MEASURED (exit 3), 0 unrun.
  • NOT MEASURED: pnpm check:dual-build-cjs-loads, reason: needs a full pnpm build; node scripts/check-plugin-teardown-shape.mjs --self-test, reason: shallow checkout cannot read its pinned positive-control commit. Both left to CI.
  • node scripts/check-skills-token-ratchet.mjs: exit 0, skills/objectstack-ask/SKILL.md is 1740 tokens (ceiling 1740; headroom 0); --self-test exit 0. Re-run at b431dc04: still 1740 / 1740, headroom 0.
  • pnpm --filter @objectstack/spec run check:skill-docs: exit 0; check:skill-refs: in sync; node scripts/gen-mcp-ask-skill.mjs --check: clean; all three re-run at b431dc04: in sync, clean.
  • node scripts/pm/overlap-check.mjs --branch=HEAD: VERDICT clean (origin/main merges cleanly; the Version Packages PR shares the skill file and merges cleanly).
  • node scripts/pm/check-governed-merges.mjs --branch claude/issue-34996-ask-skill-iter-2: GOVERNED, Tier H (skills/** x2).
Size readings
  • skills/objectstack-ask/SKILL.md: 101 -> 115 lines; 1491 -> 1740 tokens.
  • All 12 published SKILL.md: 4730 -> 4744 lines.
  • Ratcheted authored total: 191184 -> 191433 tokens (+249). Eval file: 95 -> 115 lines, 3071 -> 3693 tokens (unpriced).

Acceptance notes

…s back without numerals, keeps terms whole, declines hidden record kinds

The ask-skill iteration loop's first kept change set, measured on the
travel_expense ask round (datasets 17/25 -> 25/25). Two restatements in
step 2's candidates row are cut to pay the token ratchet; the row is raised
by the measured remainder (1491 -> 1740). The served /mcp/skill module is
regenerated from the skill.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9rnXEpD9ne7yFhD
…a so-far question and a hidden record kind

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9rnXEpD9ne7yFhD
@github-actions github-actions Bot added size/m 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 17, 2026
@github-actions

github-actions Bot commented Nov 17, 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 743308b90c3a5877db980607c9cffd69ba6e5cd4 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 669f28332e79d97d8e93bb09eed4ad71552f6715 — the merge of head 32ba36e004d5ab43cce19cc30e5fc4444ea5ca23 into base 743308b90c3a5877db980607c9cffd69ba6e5cd4, 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 669f28332e79d97d8e93bb09eed4ad71552f6715 && git checkout 669f28332e79d97d8e93bb09eed4ad71552f6715
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 743308b90c3a5877db980607c9cffd69ba6e5cd4 32ba36e004d5ab43cce19cc30e5fc4444ea5ca23 && git checkout -B drift-repro 743308b90c3a5877db980607c9cffd69ba6e5cd4 && git merge --no-ff 32ba36e004d5ab43cce19cc30e5fc4444ea5ca23

node scripts/docs-audit/affected-docs.mjs --json 743308b90c3a5877db980607c9cffd69ba6e5cd4

⚠️ 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: ACCEPT · 2026-11-18T00:11Z

Head-sha: 7f6156c
Reviewer: seat 3 L1-c, for card #34996, part of the ask-skill loop's first kept change set (os-dev report 6964461791).

席位核对

PR shape. Part of #34996, base main. Six paths, +92/-12:

  • skills/objectstack-ask/SKILL.md and its eval file (cases 10 and 11);
  • the regenerated ask-skill.generated.ts and skills-reference.mdx;
  • one CEILINGS row;
  • a changeset releasing @objectstack/skills and @objectstack/mcp at patch.

Clause-②: no / Metadata-protocol: none. The changeset changes skill text and the served page, with no export and no shape moved, so no is right here.

Governed / size. check-governed-merges --pr 35038: GOVERNED, Tier H, on skills/** ×2, 104 lines. The low-risk skills arm does not apply, because the changeset also releases @objectstack/mcp, as on #34977. So the route is the seat's fable L2, then the Tier H record and os-zhuang, as the request says.

CI. All green on this head.

The edits, each against the text it changes:

  • (a) The trigger. The description now loads the skill for every question answered from the app's records, before the first data call, and adds "how much", "so far" and 「一共」. That matches the miss the round measured: a so-far question that named no metric never loaded the skill. Case 10 pins it.
  • (b) The term form. A term is the user's noun phrase kept whole, without the verbs, time words and question words around it. It is consistent with the existing "do not translate or reword". It narrows what is sent and adds no word of the client's own. The examples, "travel budget" kept whole and 「报销金额」 not 「报销金额合计是多少」, are true to exact matching (ADR-0149 D3 rule 1).
  • (c) Ask-back. The question is only about the user's own words, and a word with no match and no candidates goes to step 4. That is the D3 note's rule, stated where the client acts. The "no numerals" part is S1 below.
  • (d) The hidden-record-kind rule in step 4: when no listed object or dataset is the kind asked about, say so and stop, and never answer from an object that only links to it. That is right for a permission-narrowed environment, and it closes the round's linked-object answer. Case 11 pins it.

The cuts that pay the ratchet down. Each removed clause keeps another home, as the CEILINGS comment says:

  • "never treat a candidate as a match" lives on as step 1's 「A candidate is not a match.」 (line 49);
  • "Compute nothing yet." lives on as the paragraph under the table: "no figure, and no tool call until the user answers".

Ceiling. 1491 → 1740. ceil((6977 − 20) / 4) = 1740, which I recomputed on this head. It sits at the measurement with no headroom and no other row moved, under ruling 6513306068 (letter B, cut the repeats first, then raise by the measured remainder).

Evals. I self-checked both new cases. Every must_contain token is in its expected_output, and no must_not_contain token is:

  • case 10: Claimed Amount, Expense Analysis, ?, none of query_dataset, aggregate_records, total_claimed, 1.;
  • case 11: trip request, and no tool name or 非指标口径.

Case 10's fixture is consistent with the executor's near rule: claimed is contained in "Claimed Amount", so there is one candidate.

Measurement. On the body's table (pre-#34997 grader), datasets went from 17/25 at iteration 0 to 25/25 at iteration 2. At iteration 5, which is this exact text, 问数 is 24/25 and datasets 25/25. The regraded rows follow once #35023 lands, as a body edit only.

Must-fix

None.

Should-fix

  • S1. "Without any numerals at all" contradicts the rows above it. It also teaches around a grader artefact that fix(scenarios): asked-back no-figure no longer reads option places or dates as figures #35023 has just fixed.

    • The contradiction. Step 2's several-measures row and candidates row both say to list each candidate's description. A business definition may well hold a number: "Deals over 10,000", "Revenue for FY2025", "Claims in the last 30 days". Under the new paragraph, a client must either drop or paraphrase that definition, which is the very text D1 says outranks the client's own reading, or break the rule.
    • The grader artefact. The measured failures behind (c) were asked-back:no-figure reading option places (「第 1 个」) and dates after a time word as figures. Under the grader's rev 2 (fix(scenarios): asked-back no-figure no longer reads option places or dates as figures #35023, ACCEPTed and landing), neither is a figure any more. So the blanket ban is broader than the defect it was measured against.

    Please narrow the sentence to what the check is about. For example: "no figure of your own: no count, no total, no option number ('1.', 'option 2'); quote each description as it is written." Then re-measure under rev 2, or at least show that the narrowed text holds case 10. The ceiling moves only by the measured bytes. If the seat's L2 judges the blanket form the better trade, that ruling closes this item instead.

Notes

Next: S1, a skill-text change that takes a ceiling re-measure and an L1-c delta read. Then the seat's fable L2 (published-skill rule change), the Tier H record and os-zhuang. The body's regraded rows after #35023 need no re-read unless the head moves.

…description as written

Narrows the measured "no numerals" sentence per L1 review: a candidate's
description may carry a number, and option places and dates are no longer
graded as figures.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9rnXEpD9ne7yFhD
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT (delta) · 2026-11-18T00:38Z

Head-sha: b431dc0
Reviewer: seat 3 L1-c. This is a delta read of 7f6156c2..b431dc04 against my 6964869106.

席位核对

Delta. One commit on top of my ACCEPTed head. It touches two paths, +6/-6: the skill's ask-back sentence and the regenerated ask-skill.generated.ts. Tier H is unchanged (skills/**).

S1, in the skill: closed. The sentence now reads: "State no figure of your own in it (no count, total or option number): name each option by its label in a bullet, and quote its description as written."

  • The contradiction is gone. A description is quoted as written, so a definition that holds a number keeps it, as step 2's rows and D1 ask.
  • The ban now covers exactly the client's own figures (a count, a total, an option number), which is what asked-back:no-figure checks. Dates and years are no longer banned, matching the grader's rev 2.

Ceiling. 6979 bytes, so ceil((6979 − 20) / 4) = ceil(6959 / 4) = 1740. That is still at the row, and I recomputed it on this head.

Measurement. Iteration 6, offline on grader rev 2 (the #35023 branch): 问数 25/25, datasets 24/25, asked-back 9/10, 0 leaks. Overall it equals iteration 5. The body names the one miss, a correct Chinese ask-back with no "?", as a grader false negative. That is plausible, but I have not checked it against the recording. If it holds, it belongs to a grader follow-up, not to this skill.

CI. It was running on this head when I read it (25 pending, nothing failed). This verdict holds on the condition that Lint & Repo Gates, TypeScript Type Check and Test Core finish green on this head.

Must-fix

None.

Should-fix

  • S1′. Three texts still describe the old rule. They are text only, and the changeset reaches customers.

    • The changeset, which ships as CHANGELOG.md. The summary line says "asks back without numerals", and its third bullet says "carries no numerals at all … with no counts, dates or years". Please restate both as the new rule: no figure of its own, labels in bullets, descriptions quoted as written.
    • Eval case 10's expected_output. It says "It carries no numerals at all: no figure, no count of claims, no date or year, and no numbered option." Please align that sentence with the new rule. The assertions themselves still hold, because the expected reply has no figure.
    • The CEILINGS comment. It says "an asked-back reply carries no numerals", and its arithmetic reads 6977 bytes and ceil(6957 / 4). The file is now 6979 and ceil(6959 / 4). Same row, so only the comment moves.

    None of this changes the skill text or the ceiling. A push of those three files gets a short delta read.

Notes

  • N1 and N2 of my first read stand as notes, and neither is owed.

Next: S1′, then the seat's fable L2, the Tier H record and os-zhuang.

… ask-back rule

The changelog lines, the so-far eval's expected output and the ceiling
comment still described the earlier "no numerals" rule and 6977/6957
bytes; they now match the skill text (6979/6959, still 1740 tokens).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9rnXEpD9ne7yFhD
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT (delta) · 2026-11-18T00:41Z

Head-sha: 32ba36e
Reviewer: seat 3 L1-c. This is a delta read of b431dc04..32ba36e0 against my 6965346880.

席位核对

Delta. One commit on top of my ACCEPTed head. It touches three paths, +9/-7, and moves neither the skill text nor the generated module.

S1′: closed.

  • The changeset summary line now reads "asks back without a figure of its own". The third bullet states the new rule: no count, total or option number, labels in bullets, and each description quoted as written.
  • Eval case 10's expected_output states the same rule. I re-ran the self-check on all 11 cases on this head: every must_contain token is in its expected_output, and no must_not_contain token is.
  • The CEILINGS comment names the narrowed rule, and its arithmetic now reads +1057, −61, +2 = 6979 bytes, so ceil(6959 / 4) = 1740. The row is unchanged.

CI. This verdict holds on the condition that Lint & Repo Gates, TypeScript Type Check and Test Core finish green on this head.

Must-fix

None.

Should-fix

None.

Notes

None new.

Next: the seat's fable L2 (a published-skill rule change), then the Tier H record and os-zhuang. The low-risk arm is refused because of the @objectstack/mcp patch.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head 32ba36e004d5ab43cce19cc30e5fc4444ea5ca23 · 2026-11-18T00:42Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 32ba36e004d5ab43cce19cc30e5fc4444ea5ca23
Local-runs: none
Scope: skills/objectstack-ask/SKILL.md, skills/objectstack-ask/evals/metric-selection-fallback.json + packages/mcp/src/ask-skill.generated.ts, scripts/check-skills-token-ratchet.mjs
Security-touching: yes

PR #35038 (Part of #34996), net diff against main (merge-base 44430146), six paths, +94/-12. Read: the card's body and both comments (claim 6963056752, os-dev report 6964461791), the PR body and its five comments (three L1 records, the docs-drift note, the review claim), the diff, the cited code in the head tree, and the check-runs on this head. Nothing was built, run or re-run; the diff and the head tree were read with git diff / git show only.

This review is rendered at CONTRACT_REVIEW_TIER and covers the measured skill wording the dev authored at TIER_DEFAULT (the PR body's served-tier line, which names TIER_DEFAULT, stays as the truthful account of the authoring): every changed sentence of SKILL.md and both new eval cases were judged here against the code they teach, not taken from the authoring run.

Why the security line reads yes: the step 4 hunk teaches behaviour on a permission boundary. It tells the client that records of a kind it cannot list "may be hidden from you" and that it must never answer from a different object that merely links to them, i.e. not to reconstruct a withheld object through a lookup on a visible one. That is permission behaviour the path name does not show. The direction is the restrictive one (it narrows what the client answers), and it agrees with the membersWithheld row already on main.

① Derived judgments

  • Accept-set. No schema, no tool input or output, no executor and no door changes. No value is newly accepted or refused anywhere. Right.
  • Public surface, skill text. skills/objectstack-ask/SKILL.md (published in @objectstack/skills) changes its frontmatter description (the trigger) and three body passages: the term form in step 1, the ask-back paragraph under step 2's table, a new first bullet in step 4. Two clauses leave step 2's candidates row. Right: each is judged in ④.
  • Public surface, served page. packages/mcp/src/ask-skill.generated.ts changes the text GET /mcp/skill serves under "Answering a business question". Read against the generator's rule (scripts/gen-mcp-ask-skill.mjs: every line after the one H1, blank ends dropped, each line a single-quoted literal): the head's module holds 89 literals and the head's skill body is 89 lines, equal line for line after unescaping. The module is the regeneration, not a hand edit. Right.
  • Generated docs. content/docs/ai/skills-reference.mdx changes one paragraph, the "Use for" sentence of the Ask entry, and it is the new description's middle sentence word for word. Consistent with the source; generated output, not reviewed further.
  • Gate row. scripts/check-skills-token-ratchet.mjs moves one CEILINGS row, skills/objectstack-ask/SKILL.md 1491 to 1740. The head's file is 6979 bytes; less the 20-byte stamp line, ceil(6959 / 4) = 1740. Pinned at the measurement, zero headroom, no other row moved. The comment's arithmetic holds on the tree: main's file is 5981 bytes, +1057 text, -61 cuts (the two removed clauses are 40 and 21 bytes), +2 for the narrowed sentence, 6979. Right.
  • Raise path. The gate's own header (lines 155-169) recognises a raise when the diff shows deletion of restatement in the same file and the PR body quotes the standing ruling. Both hold: the diff deletes ", and never treat a candidate as a match" and " Compute nothing yet." from the candidates row, and the PR body quotes 「A:先削重复,余额按实测提高」 with record 6513306068, letter B. Each cut keeps another home in the same file: step 1 line 49 "A candidate is not a match." and line 64 "no figure, and no tool call until the user answers". The 10402 principle (no growth for a small feature) is not breached in my judgment: +249 buys four behaviours, each tied to a measured miss on the card, and the restatement available in the touched rows was cut first. Right.
  • Eval file. Two cases added, ids 10 and 11, ids 1-11 distinct, the file's existing shape. For all 11 cases every must_contain token is a literal substring of its own expected_output and no must_not_contain token is (read off the JSON; the grader is answer.includes, literal and case-sensitive, packages/qa/scenarios/README.md:765-767). Right.
  • Check-runs on this head (56). No run has failed. Completed with success: Build Core, Build Docs, Check Changeset (both), Governed Surface Queue Guard, PR-body guards (both), Lint · repo & tooling gates, Lint · docs & code guards, Lint · ESLint, Lint · scoped (tooling self-tests, query-options erasure, slot lookup & corpus), Type Check · workspace, source gates and debt ledger, Spec property liveness, Check Documentation Links, Flag docs affected, Test UI, Live E2E UI, Dogfood Regression Gate. The rest of the completed runs are path-filtered skips.
    ⛔ Still in_progress at my last read (2026-11-18, after 00:46Z): Test Core 1/10 to 10/10, Type Check · consumer gates, Lint · PM dispatch-gates, Lint · CI, release & engine gates. Test Core carries skill-single-source-34686.test.ts, the pin that holds the generated module equal to the skill. I read the two as equal, but a pending run is not a verdict. This record's PASS is on the reading of the tree; the seat confirms those thirteen runs green on this head before it adopts the record, and a red one voids it.
  • PR prose, not reviewed, named for the seat. The PR title still says "numeral-free ask-back" and the body's ratchet paragraph still reads "5961 -> 6957 priced bytes, ceil(6957 / 4)"; the tree is 6959. The body's "id 10 (... no numerals, no figure)" is the same leftover. If the title becomes the squash subject it describes the rule L1 S1 narrowed away. A body and title edit; no head move.

② Semver level

.changeset/34996-ask-skill-iter-2.md releases @objectstack/skills and @objectstack/mcp at patch. That is what the diff publishes: the skill's text in one package and the generated copy that ships in the other's dist. No export, type, schema, tool name, tool input or served route changes; the page at GET /mcp/skill keeps its shape and changes its words. patch is right for both, and @objectstack/mcp must be named because its built output changes. The changeset's four bullets state the head's text accurately, including the narrowed ask-back rule ("states no figure of its own (no count, total or option number) ... its description is quoted as written").

Clause-②: no — correct. Nothing a consumer compiles or parses against narrows or moves. Metadata-protocol: none — correct.

③ Boundary flags

  • Dev open question 1, served tier (authored at TIER_DEFAULT where skills/** authoring mandates CONTRACT_REVIEW_TIER). Answered: option A, as the seat ruled. This record is that review; see the statement under the header. I add one limit: it covers the wording as text against code. It does not re-measure the wording.
  • Dev open question 2, grader order (the claim says iteration 0 is rerun on the scenarios grader: the asked-back "no figure" check counts list ordinals (1. 2. 3.) and ISO dates in a clarifying reply as figures #34997 grader before any comparison, and scenarios grader: the asked-back "no figure" check counts list ordinals (1. 2. 3.) and ISO dates in a clarifying reply as figures #34997 lands first; fix(scenarios): asked-back no-figure no longer reads option places or dates as figures #35023 was still open). Partly answered by the tree's history, the rest escalated to the seat as a landing condition, not a text finding. The PR body reports the head's exact text as iteration 6 on grader rev 2, so the kept text is already read on the new grader; iterations 0-5 are not. The card's rule is "keep a change only when the 5-rep round improves on the last kept one", and the only same-grader comparison for the baseline is still owed. The margin the body reports (datasets 17/25 to 24/25, asked-back 3/10 to 9/10) is far larger than a grader revision that only stops counting option places and dates as figures should move, but that is my inference and not a reading. Escalated: the regraded iteration 0 row goes into the PR body before the Tier H record, as the body's own acceptance note promises.
  • Measurements are not verified here. The records under /mnt/project-files/issue-34869/skill-iter/ are outside this review's inputs. The scores are the PR body's account; ④ rests on the tree. The one claim I can check against a fixed number holds: the card's target is asked-back at or above 8/10 and iteration 6 reports 9/10.
  • Dev deviation: two cuts not in the measured v2 text. Answered: both are restatements with a surviving home (①), and the body reports them measured as iteration 5.
  • Dev out-of-scope note, the over-long line (SKILL.md:69). Accepted as a deviation: a re-wrap moves no token and would change the measured bytes for nothing; the generated module carries the same line.
  • L1 S1 and S1′. Both closed on this head, read in the tree: SKILL.md:65-67 carries the narrowed sentence, and the changeset, eval 10's expected_output and the CEILINGS comment state the same rule. No "numerals" wording is left in any file of the diff.
  • SQL push-down (Prime Directive 5). No query, no id materialisation and no in-app join is added: the diff is text, a generated string array, an eval file and one number. Nothing to find.

④ Design judgment

No must-fix, no should-fix.

skills/objectstack-ask/SKILL.md, each taught clause against the code on the head.

  • (a) The trigger (frontmatter, lines 8-13). The description is 829 characters. It widens from "a number, a ranking ..." to every question answered from the app's records, before the first data tool call, and keeps both exclusions (metadata work, application-code queries to objectstack-query). No other published skill claims that ground: skills/README.md:57 and skills/objectstack-ai/SKILL.md:186 both route the connected agent's question to this skill. It agrees with DATASET_SELECTION_RULE (packages/mcp/src/mcp-server-runtime.ts:1819-1827), which already tells a client to look for a governed metric first. Holds.
  • (c) The term form (lines 38-42). True to the matcher. A hit is equality after normalizeDatasetTerm and nothing else (packages/services/service-analytics/src/dataset-term-matcher.ts:58-68), so "trip days requested" or 「报销金额合计是多少」 cannot equal a label that "trip days" or 「报销金额」 equals. A fragment does produce answers that are not the user's: isNear is containment either way (dataset-term-matcher.ts:138-145), so "budget" alone draws every member whose name, label or synonym contains it as candidates (:171-199). The sentence adds no word of the client's own, so it stays inside "do not translate or reword". Holds.
  • (b) The ask-back paragraph (lines 64-69). "State no figure of your own ... quote its description as written" agrees with rows 58 and 60 (list each candidate's label, its dataset's label and its description) and with the tool description, which asks for the same three things (packages/services/service-analytics/src/dataset-tools.ts:91-95). A description that holds a number is quoted with it, so the contradiction L1 S1 named is gone. "Ask only about matches or candidates for words the user wrote ... go to step 4" is the tool description's last branch ("No match and no candidates: fall back", dataset-tools.ts:95-96) and ADR-0149 D3's amendment note ("With no candidate, rule 4 is unchanged"). It also follows from the executor: a term has candidates only when it has no hit in any listed dataset (dataset-term-matcher.ts:186-188), and every candidate carries the term it was offered for, so "some other word's matches" is checkable from the answer. Holds.
  • The two cuts (row 60). "never treat a candidate as a match" survives at line 49 and in both other carriers of the rule (dataset-tools.ts:94-95, mcp-server-runtime.ts:1825); "Compute nothing yet." survives at line 64. No rule is lost and none now reads differently. Holds.
  • (d) The declined record kind (lines 87-90). Consistent with what the door serves: list_objects lists what this caller is served and hides the rest (packages/mcp/src/mcp-http-tools.ts:2569-2611; the served page says so, packages/mcp/src/skill-md.ts:426-427), and list_datasets leaves out a dataset the caller may not query "the same answer as one that does not exist" (packages/spec/src/ai/dataset-tools.zod.ts:219-221). "They may be hidden from you" is hedged, and it is the same stance as row 62's membersWithheld wording. It does not collide with step 5 (data that records nothing): step 5 is for a missing fact, this bullet for a missing record kind, and the bullet is the stricter of the two. Holds.

skills/objectstack-ask/evals/metric-selection-fallback.json, against the skill and the executor.

  • Case 10. The fixture is what the executor would answer. claimed equals no name, label or synonym; it is contained in "Claimed Amount" and in total_claimed (normalised "total claimed"), and in neither "Claims" nor claim_count, so candidates is the one pointer the prompt shows, in the shape { term, dataset, member } the spec declares. The expected reply is row 60 with one candidate plus the new paragraph. Tokens are literal substrings.
  • Case 11. The fixture is a row-61 answer (no match, no candidates) followed by a list_objects in which no object is a trip request, and the expected reply is the new step 4 bullet. Holds against the text.

packages/mcp/src/ask-skill.generated.ts agrees with the skill line for line (①). scripts/check-skills-token-ratchet.mjs: the row equals the measurement and the comment's account of what was cut, where each cut survives and which ruling carries the raise is true of the tree (①).

Tried to break it. Findings, all nits: none changes what the skill makes a client do wrongly, and none touches the contract.

  • N1 (nit) — Case 11 forbids 非指标口径, and the skill does not clearly say a declined reply drops the fallback label. Row 61 (unchanged) sends this exact situation to "Step 4, and say in the answer that no governed metric was used", and the canonical spelling of that label in the skill is 非指标口径 (line 98). A reply that declines and also carries the label follows the text as written and fails the case. The new bullet's "and stop" is the only thing that implies the label is dropped. The eval is not a gate, so nothing lands wrongly; follow-up for the next text batch (skills: the ask-data skill says what the client does after the user answers an ask-back #35004): either drop the token from case 11 or have the bullet say the reply carries no fallback label.
  • N2 (nit) — Case 11's other forbidden tokens are bare tool names (aggregate_records, query_records, query_dataset) under a "What do you do?" prompt. An answer that says it does not run aggregate_records on expense_claim is correct and fails. Cases 2, 3 and 8 already carry the same trade, so this is the file's existing shape, not new. Same follow-up.
  • N3 (nit) — Case 10's must_not_contain: "1." is a layout token: it catches one numbering style and not "(1)" or "①" (L1's N2, confirmed). And its expected_output says the description "is quoted as written" and the option is "named by its label in a bullet", while its own sample reply lower-cases the description ("sum of submitted ...", the fixture has "Sum of ...") and uses no bullet. The sample is copied from case 8's shape. Wording of a reference answer only.
  • N4 (nit) — "Ask only about matches or candidates for words the user wrote" sits beside row 59, whose question ("ask which number is meant") is not about a match or a candidate. Read strictly, a question with only a dimension word now goes to step 4 instead of that question. Both outcomes are inside ADR-0149 D3 rule 5 ("still needs a measure hit (or asks)") and the tool description's fallback branch, so no client is taught a wrong act; the two sentences could be reconciled in the next batch.
  • N5 (nit) — The body's opening still says the user "asked for a figure or a list" (lines 27-28) while the description now loads the skill for every records question, including a single-record lookup that measures nothing. Such a question runs step 1 with no word for a thing measured and reaches step 4 with the fallback label. Correct, slightly heavy. Worth one sentence when the body is next edited.
  • N6 (nit) — The term rule's examples are the travel_expense round's own vocabulary, and "without the verbs ... around it" can strip a participle that is part of a label (a measure labelled "Trip Days Requested" no longer equals "trip days"). The failure is in the safe direction: the shorter term is contained in the label, so it comes back as a candidate and the client asks instead of computing. No wrong figure results. L1's N1 (a synonym for a listed object must not trip rule (d); case 11 tests only the true positive) stands beside it as a guard the eval file does not yet have.

No sentence of the diff contradicts a tool description, the initialize selection rule, ADR-0149 D3 or another published skill. The nits are accepted as deviations on this head; N1-N3 are named for the area's next text batch, where a fix moves the eval file together with its measurement.

Implemented-by: claude/issue-34996-ask-skill-iter-2
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet objectstack-fleet Bot changed the title docs(skills): objectstack-ask iteration 2: trigger on every records question, numeral-free ask-back, whole terms, hidden record kinds declined 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 Nov 18, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位记录 · 2026-11-18T01:08Z

Head-sha: 32ba36e004d5ab43cce19cc30e5fc4444ea5ca23

维护者速读(终稿)

席位意见:建议批准。每句教学都对照了数据集工具的代码,生成文件与源文逐行一致,实测分数没有因为压缩上限而下降。

席位核对

@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 02:00
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 3b4ffb2 Nov 18, 2026
69 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-34996-ask-skill-iter-2 branch November 18, 2026 02:23
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m 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