Skip to content

feat(analytics): list_datasets answers nextStep and query_dataset answers sourceLine, in the caller's language - #35043

Merged
objectstack-fleet[bot] merged 16 commits into
mainfrom
claude/issue-34919-dataset-next-step-executor
Nov 18, 2026
Merged

objectstack-fleet[bot] merged 16 commits into
mainfrom
claude/issue-34919-dataset-next-step-executor

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

Was stacked on #34982. #34982 merged to main as 92a5cac8d2. main was merged into this branch twice, both merges pure (an empty --remerge-diff): 367e324eeb at f2105a6ba3, then eb7b09d4d2 at 2a3b6bc75d. A third pure merge brings in b85dff0f43 at 861f110f58. The diff against main is now only this PR's own 9 files: packages/services/service-analytics/**, packages/mcp/src/** and one changeset.

Clause-②: yes (widening: the dataset tools' answers now carry nextStep and sourceLine, @objectstack/service-analytics exports DATASET_NEXT_STEP_PRECEDENCE, and the list_datasets / query_dataset descriptions and the MCP initialize rule gain the follow-nextStep, cite-sourceLine instructions)
Metadata-protocol: none

维护者速读

  • 改了什么:调用方传了 terms 时,list_datasets 返回 nextStep。它包含三样:判断(一个指标 / 多个指标 / 只有候选 / 没有指标)、涉及的词、一句按调用方语言写好的话。query_dataset 返回 sourceLine,即把 provenance 写成一行可直接引用的来源。多种情况同时出现时,按「多个指标 > 一个指标 > 只有候选 > 没有指标」报告。报告「一个指标」或「只有候选」时,这句话还会点名被搁下的词:「一个指标」下有候选的词连同它的候选一起列出,并要求先问用户;两种情况下查不到的词都给出带标注的退路,只是分组维度的词按分组点名。工具说明和 MCP initialize 规则也同步写上「按 nextStep 走、引用 sourceLine」以及这个顺序。
  • 为什么改:[Decision] Should the framework's dataset tools return the next step and the citation line themselves, so the MCP door gets what the product's agent gets #34894 裁定 A。这个判断原来只在托管包装层里替一个客户端算,挪进框架执行器后,所有调用这个工具的客户端读到的是同一个下一步。模型拿到写好的句子会照抄,自己拼常常拼不对。
  • 风险与回滚:只填规范已声明的两个可选键(形状已随 feat(spec): the dataset tools' output declares nextStep on list_datasets and sourceLine on query_dataset (ADR-0149 M1) #34982 合入)。matches、candidates、provenance 和 REST 返回一字不改。句子只用本次返回里调用方看得到的成员拼成。回滚就是 revert 本 PR。
  • 先看:packages/services/service-analytics/src/dataset-next-step.ts,看 leftOutSentences 以及 composeDatasetNextStep 里调用它的 one_measure 和 candidates_only 两个分支:被搁下的词在这里补上,这是本轮改动、风险最高的一段;packages/services/service-analytics/src/dataset-tools.ts,看 listDatasets 末尾和 queryDataset 返回处的两次调用;packages/mcp/src/mcp-server-runtime.ts 的 DATASET_SELECTION_RULE。
  • 两分钟验证:pnpm --filter @objectstack/service-analytics exec vitest run --maxWorkers=2 src/__tests__/dataset-tools.test.ts,预期 1 个文件 71 个测试全绿。
  • 需要你做的:无,席位落地。本 PR 用 Part of,卡片由后续的 o3-E PR 关闭。

What changes

  • The decision and the sentence (packages/services/service-analytics/src/dataset-next-step.ts, new). composeDatasetNextStep reads the answer list_datasets is about to serve and nothing else. Each term sent is read once: a repeated term is one term, and a member it equals counts once. The term's case is:

    • one measure equal to it ⇒ one_measure;
    • more than one ⇒ several_measures;
    • none, with entries in candidates ⇒ candidates_only;
    • otherwise ⇒ no_measure, which includes a term equal only to a dimension.

    A term equal to one measure and to a dimension in another dataset is one_measure, because a dimension is not counted (as the decision describe says).

  • Precedence among mixed cases. feat(spec): the dataset tools' output declares nextStep on list_datasets and sourceLine on query_dataset (ADR-0149 M1) #34982's TSDoc leaves this to this card, and it is fixed here. The reported case is the first of several_measures, one_measure, candidates_only, no_measure. The order is DATASET_NEXT_STEP_PRECEDENCE, exported from @objectstack/service-analytics. terms names every term sent that is in the reported case, in the order sent. The reasons for this order:

    • an ambiguous measure word must be asked about before anything is computed;
    • an exact equality decides the measure and outranks a possible reading;
    • a possible reading is worth a question before falling back.

    So a dimension-matched term never outranks a measure-matched one: ["商机金额", "销售阶段"] reads one_measure with terms: ["商机金额"] (N1). The order is stated in three places: the TSDoc on the fill, LIST_DATASETS_DESCRIPTION (built from the constant), and the MCP initialize rule (pinned to the constant).

  • A one_measure or candidates_only note still names the words it leaves out (seat ruling B on the L1-c N1 note, extended to candidates_only by the seat's L2 S3). The order is unchanged, and decision and terms still name only the reported case. One helper, leftOutSentences, writes the tail for both cases, in all four languages:

    • under one_measure, a word with candidates, together with those candidates (each by its label and its dataset's label), and "ask the user which one is meant before using it; do not pick one";
    • under either case, an unknown word, with its labelled fallback to query_records / aggregate_records ("no governed metric was used for them");
    • under either case, a word that equals only a dimension, as that grouping.

    So ["营收", "churn"] gives 营收's measure query and asks about churn's candidates in one sentence, and ["库存周转", "金额"] asks about 金额's candidates and names 库存周转 with its fallback. several_measures asks before anything is computed, so its note carries no such tail. LIST_DATASETS_DESCRIPTION says that the note, with one_measure, also names the words left out and their candidates, and with candidates_only names the unknown and grouping-only words left out. The initialize rule's "follow its note" covers it without new text.

  • Two smaller note fixes (the seat's L2 nits N1 and N2). Two words that equal the same measure (["商机数", "商机数量"], both opp_count) are counted as one metric, so the note says "using that measure" instead of "each is its own metric". A no_measure note that holds an unknown word and a grouping word now gives both instructions: the fallback for the unknown word and "ask which number is meant" for the grouping word.

  • note names the members (N2).

    • one_measure: the measure's label, its dataset's label, and the datasetName / measure names to query.
    • several_measures and candidates_only: each offered member by its label and its dataset's label, then "ask the user, do not pick, compute nothing yet".
    • no_measure: an unknown word sends the reader to query_records / aggregate_records with the 非指标口径 label. A word that is only a grouping names the grouping and asks which number is meant.
  • A partial answer (N4): nextStep is kept, and the note says so. With partial: true the answer still carries nextStep, computed from what it lists. That covers a degraded read, a read that failed, and an admission that could not be judged. note ends with one sentence: the catalogue was incomplete, a measure missing from it may exist, and the warning is to be repeated.

  • sourceLine. composeDatasetSourceLine writes the answer's provenance as one line: each measure's label and the dataset's label, then each dimension's label. provenance and the REST door's answer are unchanged.

  • Only the admitted answer (N5). Both sentences are composed from the served answer's entries, candidates and provenance. A member over a field the caller cannot read, an internal member and an unqueryable dataset therefore never appear.

  • Language. The request's locale, then the workspace default, then English: userTextLocalesOf (@objectstack/core) over the caller's ExecutionContext. Each code is read through the platform locale table (platformLocaleTagOf). Sentences exist in en, zh-Hans, zh-Hant and ja; another language takes the next rung. See the Acceptance notes for the ?locale= request.

  • Tool texts. LIST_DATASETS_DESCRIPTION says to follow nextStep's note and names the precedence. The query_dataset description says sourceLine is the source already written, to cite as given. DATASET_SELECTION_RULE (MCP initialize) says the same, in one rule with the existing rows. Its docblock's stale sentence about the skill's loose-form rows is replaced (Decision: open-source MCP — the client thinks locally, the server keeps a thin door (a metadata draft write entry for building; the data door for 问数), plus policy, version skew and the 问数 eval #34659 gap 1).

  • The MCP door passes both members through unchanged on HTTP and stdio. No code change was needed there, and two pins prove it with the real executor.

  • A pin from main updated. test(mcp,runtime): pin the dataset tools' degraded read when the i18n service's reads throw #35029 (now on main) pins stdio list_datasets when the i18n reads throw, comparing the whole answer, and it sends terms. With terms sent, that degraded answer now also carries nextStep: no_measure for every word, with the incomplete-catalogue sentence. The pin in packages/mcp/src/stdio-data-bridge.dataset-locale.test.ts now expects it. The runtime twin of that pin sends no terms and is unchanged.

Why

Ruling #34894 = A (record 6953671481): the framework's executor returns nextStep (a closed decision, the candidates, a sentence) and sourceLine. The spec declares the shapes (#34982, now on main), and the sentence's text is the executor's (ADR-0149 M1 stands). Seat L2 6962300533 sent N1, N2, N4 and N5 to this card, and L1-c 6964761658 added ruling B on its note N1. Each has a pin below.

Tests

  • examples/app-crm pins (dataset-tools.test.ts). The fixture mirrors crm_opportunity_metrics member for member, beside a second dataset over app-crm's line items. The second dataset is needed because the D1 rule forbids one word answering to two members of one dataset.
    • 商机数 ⇒ one_measure.
    • deal value ⇒ several_measures, naming Total Amount (dataset: Opportunity Metrics) and Line Amount (dataset: Line Item Metrics).
    • 金额 ⇒ candidates_only, naming all three offered members.
    • 库存周转 ⇒ no_measure.
    • 销售阶段 ⇒ no_measure, naming the grouping.
    • A caller who cannot read amount sees none of the three withheld members in any nextStep or sourceLine, and is refused total_amount with 403.
  • Ruling B pins. Both are checked in en, zh-CN, zh-TW and ja-JP.
    • ["商机数", "金额"] ⇒ one_measure, terms: ["商机数"]. The note carries the query names, the word 金额, each of its three candidates, and the second dataset's label. This is the ["营收", "churn"] shape.
    • ["商机数", "库存周转", "销售阶段"] ⇒ one_measure. The note keeps 库存周转's fallback (query_records) and names the grouping. As a control, ["商机数"] alone sends nobody to the object tools.
  • Seat L2 round pins.
    • S2: the ruling-B ask-first sentence is pinned in all four languages, after the candidates it is about. As a control, ["商机数"] alone carries no such sentence.
    • S3: ["库存周转", "金额", "销售阶段"] ⇒ candidates_only, terms: ["金额"], in all four languages. The note names the three candidates, 库存周转 with its fallback (query_records), and the grouping Stage. ["库存周转", "金额"] carries the English unknown-word sentence and the "for them" fallback. As a control, ["金额"] alone sends nobody to the object tools.
    • N1: ["商机数", "商机数量"] reads as one metric. As a control, ["商机数", "商机金额"] still reads "Each is its own metric".
    • N2: ["库存周转", "销售阶段"] carries both the fallback and "ask the user which number they mean".
  • Precedence (every pair), six of six. several_measures over one_measure (["商机数", "deal value"]), over candidates_only (["金额", "deal value"]) and over no_measure (["deal value", "库存周转"], added this round). one_measure over candidates_only (["金额", "商机数"]) and over no_measure (["商机金额", "销售阶段"], both orders). candidates_only over no_measure (["库存周转", "金额"]).
  • Other executor pins. N3, a repeated term, the three partial paths, the locale ladder, and the description and initialize texts.
  • MCP. list_datasets / query_dataset run over the real executor through MCPServerRuntime and through createStdioDataBridge. Both answer the same nextStep and sourceLine, and the HTTP answer equals the executor's.

Acceptance notes

  • Carried by a later o3-E PR (seat ruling): the ask-data skill line ("follow nextStep; cite sourceLine") and the eval: a daily MCP ask round on the open-source runner — local boot, subscription login, no cloud access #34869 daily MCP ask round read before and after. That PR closes the card, so this one says Part of #34919.
  • ?locale= (the seat's item): not fixed here; the fix is outside this PR's file surface. I read both doors at origin/main 367e324eeb. This is a reading of the code, not a run over the door.
    • The sentence follows the caller's ExecutionContext. On the HTTP MCP door that is Accept-Language (packages/runtime/src/security/resolve-execution-context.ts, requestLocale: preferredLocaleFromHeader(...)), then the workspace setting.
    • The catalogue labels on that door are translated in packages/runtime/src/domains/mcp.ts metaTranslationSources. It calls metaRequestLocale({ headers: context.request?.headers }, i18n) and passes no query. So on the MCP door the labels read Accept-Language, then the i18n service's default. They never read ?locale=, although that function's docblock says they do.
    • Result: a request that names its locale with ?locale= alone gets neither labels nor sentence in that locale. Without Accept-Language, the labels take the i18n default and the sentence takes the workspace setting, and those two can differ. With Accept-Language the two agree.
    • Making the sentence follow the labels' locale needs two changes. First, the HTTP door in packages/runtime must pass query to metaRequestLocale and hand the executor the locale it translated with. Second, the executor needs a seam to receive that locale (for example a DatasetToolsDeps member). The executor in service-analytics sees only the context and the already-translated list; it never sees the request.
    • The first change is outside the claim's surface (packages/services/service-analytics/**, packages/mcp/src/**), so it is not made here. Adding the second without the first would be a seam nothing on HTTP feeds.
    • The stdio door has the same split: labels at the i18n default (metaRequestLocale(undefined, i18n)), and the sentence at the workspace setting. The open mcp: the stdio object resources serve labels and descriptions in the workspace default locale, as the object tools now do #34995 branch reworks stdio's served-locale helpers and leaves this as it is.
    • Reported to the seat to be carried as one runtime-door change for both readings.
  • overlap-check before each push of this round. node scripts/pm/overlap-check.mjs at 861f110f58: VERDICT clean exit 0, clean against main (b85dff0f43) and against feat(cli): os skills install, update and status at the server's version, with or without a project #35060, which shares two packages/mcp/src files. feat(mcp): the open draft door's registry and read tools, served where the token has metadata:write and the user holds manage_metadata #35059 shares no file with this PR. The mcp: the open-source draft door — list, read, save and discard metadata drafts, each save answered with the publish verdict #34766 PR-b branch (claude/issue-34766-mcp-draft-door-write) has no PR and shares no file; git merge-tree with it merges cleanly.

Verification

Every reading below is at head 861f110f58, which carries the merge of main b85dff0f43 (pure: git show --remerge-diff prints nothing).

Package tests and typechecks
  • Build: pnpm --filter '@objectstack/service-analytics...' --filter '@objectstack/mcp...' build under the verify lock: VERDICT command-exit 0.
  • pnpm --filter @objectstack/service-analytics exec vitest run: Test Files 218 passed (218), Tests 5584 passed, 335 skipped (5919).
  • pnpm --filter @objectstack/mcp exec vitest run: Test Files 71 passed (71), Tests 1264 passed (1264).
  • pnpm --filter @objectstack/service-analytics typecheck and pnpm --filter @objectstack/mcp typecheck (including check:test-typecheck): pass.
  • Lock verdict for the run: VERDICT command-exit 0.
Ablations this round (scripts/ablation-replace.mjs, at 377b2e4)
  • S2: the line if (offered.length > 0) sentences.push(copy.leftCandidateTail); deleted alone. The anchor went 1 ⇒ 0 and the blob f428470252f2 ⇒ 7a9829f9a251. dataset-tools.test.ts: 1 failed / 70 passed, the ruling-B candidate pin, with the note ending right after the candidates. Restore: blob equals the HEAD blob f428470252f2, and git diff HEAD is empty.
  • S3: in the candidates_only branch, the leftOutSentences call removed. The first attempt replaced the two lines with a substring of themselves, so the tool refused it before any test ran (a no-op, not a reading). The rerun used a marker line: anchor 1 ⇒ 0, marker 0 ⇒ 1, blob f428470252f2 ⇒ ca89f326e9b8. dataset-tools.test.ts: 1 failed / 70 passed, the S3 pin. Restore: blob equals HEAD, and git diff HEAD is empty.
  • The ruling-B ablation at a95eb068e0 and the earlier ones at cfdea828f9 are in previous revisions of this body.
Targeted gates
  • node scripts/pm/dispatch-gates.mjs --commands (no paths) derived 69 families from the tree at 861f110f58. Its change set is this PR's 9 files, against merge base b85dff0f4.
  • 68 exit 0. pnpm check:dual-build-cjs-loads exit 3: PREREQUISITE NOT MET, because it reads every package's dist/ and needs a whole-repo pnpm build. NOT MEASURED locally; CI runs it after Build Core.
  • dispatch-gates --ran (exit-coded record): "69 derived, 68 run, 1 NOT-MEASURED, 0 UNRUN".
  • node scripts/check-changeset-no-major.mjs --base origin/main --event (this body as the payload): "LEVEL AXIS: this PR declares clause-② yes (widening) and metadata-protocol none, and it introduces no changeset entry graded minor or above". So the changes are at patch.
  • node scripts/pm/check-governed-merges.mjs --branch claude/issue-34919-dataset-next-step-executor: "0 of 9 path(s) hit the register … NOT governed".
  • Families CI runs (the artifact-roster families, the wide families, the type-check lanes, the dogfood shards) are read from this PR's check-runs, not re-run here.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; the repo-wide pnpm lint is CI's.
  • 4. One issue, one branch off an up-to-date main, one pull request. (Stacked on feat(spec): the dataset tools' output declares nextStep on list_datasets and sourceLine on query_dataset (ADR-0149 M1) #34982 until it merged; main is merged in now.)
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched by this PR.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

…ets and sourceLine on query_dataset (ADR-0149 M1)

ListDatasetsOutputSchema gains optional nextStep: a closed decision enum
(one_measure, several_measures, candidates_only, no_measure), the caller's
terms it is about, and a note string slot. It holds no member list: the
members are read under its terms from the answer's own matches and
candidates, so an answer keeps one list of candidates.

QueryDatasetOutputSchema gains optional sourceLine, a non-empty string,
declared in the tool's own extend so the shared analytics response is
not widened.

ADR-0149 M1 gains an add-only amendment note: M1 is unchanged, the spec
declares two string slots and one closed enum, and the two sentences are
written by the executor.

Generated artefacts follow in the next commit.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
Generator output only, plus one description reworded so the nextStep
terms member names the tool's terms input and not itself:
api-surface, authorable-surface, declaration-map, export-origins and
json-schema.manifest for ai, the dataset-tools reference page, the
reference index totals (1670 to 1672, AI 82 to 84) and the strictness
ledger count for ai (97 to 98).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
…ames its PR

DatasetNextStepSchema's doc comment now says it outright: an answer carries
one nextStep and it reports one case, also when the terms sent are in
several. The precedence among the cases is the executor's, fixed and
documented by card #34919; the spec declares no order, and `terms` says
which of the terms sent the reported case covers.

No describe text changes, so each tool's outputSchema is what it was and no
generated artefact moves.

The header of the amendment note under ADR-0149 M1 names PR #34982 in place
of "this PR".

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
…wers sourceLine

The executor composes both finished sentences from the answer it serves:
the per-term decision under the ADR-0149 D3 rule, the precedence among
mixed cases (several_measures, one_measure, candidates_only, no_measure),
the partial-answer closing sentence, and the source line from provenance,
in the caller's language by the user-text ladder.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
…ne, naming the precedence

LIST_DATASETS_DESCRIPTION names the order from the exported
DATASET_NEXT_STEP_PRECEDENCE; the MCP initialize rule says the same and
is pinned to the constant. The DATASET_SELECTION_RULE docblock drops its
stale sentence about the skill's loose-form rows. Both doors are pinned
to pass the executor's answer through unchanged, one sentence on HTTP and
stdio.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
One conflict, in packages/spec/src/type-alias-convention.pin.test.ts: the
pinned isomorphic-alias count. main moved it 858 to 859 (one pin for an
action's declared refusal entry) and this branch 858 to 860 (two pins for
the dataset next step). Resolved by hand to the sum, 861, on the count lines
only: the header line, the case title, and the expectation with this branch's
history line re-based to 859 -> 861. main's history comment is kept as it is
and both sets of pin rows are present.

content/docs/references/index.mdx is generated and was not text-merged; the
regeneration follows in its own commit.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
content/docs/references/index.mdx is generated and was not text-merged in
the merge of origin/main. main's side was taken and the page regenerated
from the merged tree by `check:generated --fix`: 1673 schemas (main's 1671
plus DatasetNextStep and DatasetNextStepDecision), AI 84, UI 178 with main's
ActionRefusal. No other artefact was stale.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation protocol:ai tests 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

This PR changes 2 package(s): @objectstack/mcp, @objectstack/service-analytics, touching 39 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/services/service-analytics/src/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/data-modeling/analytics.mdx (via datasetName (symbol, a field of interface NamedMember))
  • content/docs/deployment/self-hosting.mdx (via COPY (symbol, a top-level const object))

⛔ 1 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v18/18-3.mdx (via datasetName (symbol, a field of interface NamedMember))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/services/service-analytics/src/index.ts) — pages documenting those are invisible to this run
  • 11 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 19 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 b85dff0f4350f4846b03c31b328fc5a8f782d1c9 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json b85dff0f4350f4846b03c31b328fc5a8f782d1c9

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs b85dff0f4350f4846b03c31b328fc5a8f782d1c9 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

CI note (2026-11-18T00:04Z): Check Changeset is red on dd3248807b because of the stack, not this PR's own changes. The gate reads the diff from main, which still carries #34982's commits, including packages/spec/authorable-surface/ai.json. #34982 declares that shard (Clause-②: yes, Metadata-protocol: added, spec minor), while this PR's own changeset honestly declares Clause-②: no / Metadata-protocol: none for service-analytics and mcp. Fix path: once #34982 merges (it is in the merge queue), this branch merges main, the shard leaves this diff and the gate re-reads green. No changeset is edited to quiet it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT · 2026-11-18T00:06Z

Head-sha: dd32488
Reviewer: seat 3 L1-c, for card #34919 (os-dev report 6964697616). I read this PR's own eight files, against #34982's head d80b2d88, which this branch carries. Those eight files are:

  • the new dataset-next-step.ts;
  • dataset-tools.ts and index.ts in service-analytics;
  • mcp-server-runtime.ts;
  • three test files;
  • the changeset.

I held it to the seat's L2 on #34982 (6962300533).

席位核对

Shape. +877/-19 over the eight files. @objectstack/service-analytics and @objectstack/mcp are both at patch. check-governed-merges reads Tier H only because the stacked #34982 files are in the diff against main. The eight files themselves touch no governed surface, so the final tier is read once #34982 has merged.

CI. One red: Check Changeset. It reports that packages/spec/authorable-surface/ai.json moved under Metadata-protocol: none. That shard is #34982's, which this branch carries and main does not have yet. So the red is an artefact of the stacking, and it clears once #34982 lands and this branch takes main. The rest was pending or green when I read it. This verdict holds on the condition that, on the head that lands (after main is merged in), Check Changeset, Lint & Repo Gates, TypeScript Type Check and Test Core are green. That head owes a merge-only read.

The per-term decision (readTerm). It counts distinct measures across the listed datasets whose matches carry the term:

  • one ⇒ one_measure, and more than one ⇒ several_measures;
  • with none, an offered candidate ⇒ candidates_only, and otherwise ⇒ no_measure.

A dimension is never counted, which agrees with the decision description and the seat's N3. A term sent twice is one term (new Set), and a member it equals counts once per entry (seen). A candidate is resolved to a member the same answer lists, so a pointer into nothing names nothing.

The seat's L2 items on #34982, each held:

  • N1. ["营收", "销售阶段"] reports one_measure with terms: ["营收"], and the grouping stays in matches. That is pinned on app-crm ("a dimension-matched word never outranks a measure-matched one").
  • N2. For several_measures and candidates_only, the note names every member as label (dataset: datasetLabel), in all four languages. Both cases are pinned.
  • N4. A partial answer keeps nextStep. partial is passed as warnings.length > 0, which is the same test that sets the answer's own partial. The note ends with partialTail ("the catalogue was incomplete … repeat the warning"). The unreadable-catalogue branch answers no_measure for every word, with the same tail. Three pins cover this, one of them the admission-unjudged case.
  • N5. Both sentences read only the served answer. nextStep is composed after the admission filter, from entries and candidates, and sourceLine from provenance alone. One pin shows a withheld member is in neither the decision nor the sentence. Another shows a withheld measure is refused before any line exists.

N8, the precedence visible to readers. DATASET_NEXT_STEP_PRECEDENCE is the one source:

  • composeDatasetNextStep picks the first decision present in that order;
  • LIST_DATASETS_DESCRIPTION interpolates the constant;
  • the initialize rule spells the four values out by hand, and a pin in initialize-selection-rule-34686.test.ts ties that text to the constant's order.

So the order a client is told is the order the executor applies.

TSDoc invariants against the code. "terms names every term sent that is in it, each once, in the order sent" matches reported = readings.filter(...) over unique. terms is never empty, because the decision is the first one some reading has. note is never empty. The four app-crm done-when pins are present: one match, two matches, a near miss, an unknown word. A fifth covers a dimension-only word ("asks for the number instead of falling back", rule 5).

sourceLine. composeDatasetSourceLine takes the measure labels, the dataset label and the dimension labels from provenance, so it can name only what the query used. The REST dataset door is untouched. The MCP tests show both members pass through unchanged on HTTP and stdio, with the same sentence for the same context.

Stale docblock. The DATASET_SELECTION_RULE comment's "loose-form rows predate candidates" sentence is replaced. That closes #34659 gap 1.

Language. userTextLocalesOf(context) gives the request locale, then the workspace default. platformLocaleNamedBy walks the subtags (zh-CN → zh-Hans, zh-Hant-TW → zh-Hant), so Traditional is never served Simplified, and en is the floor. The four copies say the same thing sentence by sentence. The zh fallback keeps 非指标口径, as the tool description does.

Must-fix

None.

Should-fix

Notes

  • N1. For the seat's L2 on the precedence. The stated reason for putting several_measures first is "an answer computed for the other words alone would answer a question the user did not ask". That reason argues just as well against one_measure outranking candidates_only:

    • With ["营收", "churn"], where churn has candidates, the note says to compute 营收 and is silent on churn. Since the tool text says "follow note", the D3 note's "with candidates, ask" is not carried for that word.
    • Likewise, one_measure over an unknown word drops that word's labelled fallback.

    Either order is defensible. The ruled shape (one case per answer) is what forces a choice. I'd ask the L2 to pick one of two:

    • (a) candidates_only before one_measure, so every question goes first;
    • (b) keep the order, and have the one_measure note add one sentence naming the words it does not cover, as "see candidates" or "no governed metric for X".

    Not owed by L1. It is the judgment the seat has said it will make.

  • N2. The ?locale= edge, which the PR body records: labels follow ?locale=, while the sentence follows the context, so it falls to the workspace default when only the query names a locale. The seat has asked for this to be fixed here or explained in the body. A fix gets a delta read.

Next: S1 (text) and the seat's ?locale= item. Then #34982 merges and main comes into this branch, followed by a merge-only and delta read. Then the seat's fable L2 on the precedence, and the tier is read on the final file list.

…th their candidates

Seat ruling B on the L1-c N1 finding: the order stays; when the reported
case is one_measure the note also names each left-out word, a word with
candidates together with them, an unknown word with its labelled
fallback, a grouping word as the grouping, in all four languages. The
changeset declares Clause-② yes (widening).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
…extStep

main's i18n-throw pin compares the whole answer; with terms sent the
unreadable catalogue now also answers nextStep (no_measure, the
incomplete-catalogue sentence).

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

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT · 2026-11-18T01:57Z

Head-sha: a95eb06
Reviewer: seat 3 L1-c (epic #34659). This is a merge and delta read on top of my ACCEPT at dd32488 (comment 6964761658).

席位核对

Delta

  • S1 (Clause-②) is closed. The changeset now reads Clause-②: yes (widening) and names:

    • the new answer members (nextStep, sourceLine);
    • the DATASET_NEXT_STEP_PRECEDENCE export;
    • the description and initialize rule texts.

    Metadata-protocol: none stays, so the level stays patch. This is what the seat ruled for the served tool surface.

  • N1 (precedence) closed by the seat's ruling B. The order is unchanged. In the one_measure case, note now also names each word it leaves out:

    • Candidate word: candidateHit with each candidate by its label and dataset label, then leftCandidateTail ("ask … before using it; do not pick one").
    • Unknown word: unknownHit, then the labelled leftFallbackTail.
    • Grouping-only word: groupingHit.

    decision and terms still name only the reported case, as the docblock says. several_measures gets no tail, which is right because it asks before anything is computed. The new tails exist in all four COPY locales. The pins run all four languages for the candidate case (4dd94e3) and the unknown/grouping case (50f5944), and the control checks that the measure word alone sends nobody to the object tools. The list_datasets description gains the sentence on left-out words.

  • The test(mcp,runtime): pin the dataset tools' degraded read when the i18n service's reads throw #35029 pin (a95eb06) is updated correctly. That test sends terms. With terms sent, the degraded stdio answer now carries nextStep: { decision: 'no_measure', terms, note ⊇ 'warning' }, which is the documented behaviour for an empty, partial list. The rest of the pin (datasets: [], partial: true, the warning prefix) is unchanged. The runtime twin sends no terms and stays as it was.

  • N2 (?locale=) is out of this card's surface. The PR body's Acceptance notes give the reading:

    • metaTranslationSources in packages/runtime/src/domains/mcp.ts passes headers without query;
    • the executor never sees the request;
    • a seam on the executor alone would be fed by nothing.

    I accept that it is out of scope here. It needs to be filed for triage as a runtime-door follow-up. Neither side reads ?locale=, so on the HTTP door the labels and the sentence disagree only when Accept-Language is absent and the i18n default differs from the workspace setting.

Must-fix

None.

Should-fix

None.

Notes

  • N3 (wording, optional): the changeset bullet reads "Its note computes the measure word and then names each other word". The note doesn't compute anything; it tells the agent to. "Its note gives the measure word's query and then names each other word" would be accurate.
  • N4: the initialize rule (DATASET_SELECTION_RULE) still just says to follow note. That is enough, since the note carries the left-out words itself. Only the tool description names them. No change needed.

Next

This ACCEPT is conditional on CI finishing green on a95eb06. After that it goes to the seat's L2 (Clause-② yes, including the ruling-B text), then lands through the ordinary queue. The ?locale= follow-up goes to triage mailbox #32588. Any push after a95eb06 owes a delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head a95eb068e011c235db2c5d86be490b24cc692259 · 2026-11-18T01:58Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: a95eb068e011c235db2c5d86be490b24cc692259
Local-runs: none

Read: card #34919 (body and all 7 comments), PR #35043 (body, 9-file list, net diff eb7b09d4d2..a95eb068e0, the base the head merged), and the check-runs on the head. Not read: the dispatch order and the PR's review comments. Ruling B on N1 is taken as the brief and the PR body recite it.

Check-runs on a95eb068e0, read at 02:15Z: every run completed; 0 failed. Success on Build Core, Test Core 1/10 to 10/10 and its roll-up, all four Type Check lanes plus TypeScript Type Check, every Lint lane, Check Changeset (both runs), Governed Surface Queue Guard, PM dispatch-gates and the PR-body guards. One earlier PR-body guards run is cancelled, superseded by a success of the same name. The rest are skipped by path filter (UI, docs, opt-in harnesses).

① Derived judgments

Public-surface changes the diff implies, each judged:

  • list_datasets answer gains nextStep when terms were sent — right, widening. The member is optional and already declared by DatasetNextStepSchema on main (feat(spec): the dataset tools' output declares nextStep on list_datasets and sourceLine on query_dataset (ADR-0149 M1) #34982). terms: [] and no terms give none, as the schema's "present only when terms were sent" says. matches, candidates, partial and warning are unchanged.
  • query_dataset answer gains sourceLine — right, widening. Optional in QueryDatasetOutputSchema, composed from provenance only. provenance is byte-for-byte what it was (the call moved up one line). The REST answer is untouched.
  • @objectstack/service-analytics exports DATASET_NEXT_STEP_PRECEDENCE — right, additive. Nothing else is newly exported; composeDatasetNextStep and the two helpers stay internal.
  • Tool descriptions and the MCP initialize rule — right, text only appended. mcp-server-runtime.ts changes one docblock and appends two sentences to DATASET_SELECTION_RULE. No tool, field or input is removed or renamed, and no existing sentence of the rule is edited. initialize-selection-rule-34686.test.ts only adds a describe block; its earlier pins are unchanged.
  • Degraded stdio read with terms now carries nextStep — right. The pin test(mcp,runtime): pin the dataset tools' degraded read when the i18n service's reads throw #35029 added compares the whole answer, so it had to move. An exact-equality consumer of that answer sees one new optional key.

Precedence (the seat's focus):

  • Deterministic and documented — right. One linear find over the frozen constant picks the case; terms is the sent order, deduplicated. The order is stated in the file's TSDoc, in LIST_DATASETS_DESCRIPTION (built from the constant) and in the initialize rule (pinned to the constant's join(', ')), and the constant itself is pinned by toEqual.
  • one_measure over candidates_only, as ruled — right and pinned. ['金额', '商机数'] gives one_measure with terms: ['商机数'].
  • Ruling B — right and pinned in all four languages. In en, zh-CN, zh-TW and ja-JP the one_measure note carries the left-out word 金额, its three candidates and the second dataset's label; a second pin does the same for an unknown word (query_records) and a grouping word (Stage).
  • Only from the admitted answer (N5) — right and pinned. The composer reads entries and candidates after admission; the u_rep pin shows no withheld member in any nextStep or sourceLine.

Findings, none blocking:

  • S1 (should-fix) — one overlapping pair has no pin. several_measures beside no_measure (for example ['deal value', '库存周转']) is never asked. Five of the six pairs are pinned, so the PR body's "Precedence (every pair)" overstates by one. The implementation is one linear scan, so the risk is low; the pin is one line.
  • S2 (should-fix) — the ask-first sentence of ruling B is not pinned. The pin checks the left-out word and its candidates, not leftCandidateTail ("ask the user which one is meant before using it; do not pick one"). Deleting that sentence alone leaves every test green, and the note would then list candidates directly after "Answer with query_dataset". The fallback tail does have its pin (query_records).
  • S3 (should-fix, the seat's call) — a candidates_only note drops the unknown words beside it. ['库存周转', '金额'] reports candidates_only for 金额 and never mentions 库存周转, which has no entry in matches or candidates either. This is the same silent drop ruling B closed for one_measure. Ruling B does not cover it, so it is not charged as a miss; it needs a ruling or a follow-up.
  • N1 (nit) — "each is its own metric" is false for two words that equal the same measure. ['商机数', '商机数量'] (two synonyms of opp_count) reads one_measure for both and the note says to compute "every one" as separate metrics. Same for two spellings that normalize alike. No pin covers it.
  • N2 (nit) — in a mixed no_measure note the grouping word loses its instruction. ['库存周转', '销售阶段'] ends with the fallback sentence only; "ask which number is meant" is not said for the grouping word. Pinned for decision and terms, not for wording.
  • N3 (nit) — changeset wording. "The HTTP and stdio MCP doors hand the executor the same context, so one caller reads one sentence on either" holds only when both doors carry the same locale; the PR body itself says stdio has no request locale. The pin hands both doors one principal object.

② Semver level

Clause-②: yes (widening)

  • The changeset bumps @objectstack/service-analytics and @objectstack/mcp at patch, and both declaration lines match the PR body.
  • patch is the level AGENTS.md prescribes here: Metadata-protocol: none takes patch, and a non-protocol widening ships patch. No metadata key, value or type changes, and packages/spec is not in the diff.
  • The widening arm is correct: new optional answer members, one new export, appended instruction text. Nothing narrows.
  • Check Changeset is green on the head, on both runs.

③ Boundary flags

  • open_questions: empty in both dev reports. Nothing to answer.
  • Dev deviations from the first report (overlap-check exit 1 against feat(spec): the dataset tools' output declares nextStep on list_datasets and sourceLine on query_dataset (ADR-0149 M1) #34982's files; the stacked series) — answered. feat(spec): the dataset tools' output declares nextStep on list_datasets and sourceLine on query_dataset (ADR-0149 M1) #34982 is merged, main is merged into the head, and the diff is the PR's own 9 files.
  • File surface — held. All 9 files are inside packages/services/service-analytics/**, packages/mcp/src/** and .changeset/. No packages/spec, skills/** or ask-skill.generated.ts edit.
  • ?locale= — not charged. The PR body says plainly it is not fixed here and neither the changeset nor the TSDoc claims it works. One related reading, also not charged: labels are resolved with context.locale alone while the sentence also falls to workspaceLocale, so a caller with only a workspace locale gets a sentence in one language around labels in another. It belongs with the filed runtime-door card.
  • Escalated to the seat — Fixes #34919 closes the card with two of its items still owed. The card's scope names the ask-data skill line ("follow nextStep; cite sourceLine"), which the claim moved to a later o3-E PR, and its Done-when names the daily MCP ask round (eval: a daily MCP ask round on the open-source runner — local boot, subscription login, no cloud access #34869) read before and after. The PR body reports neither and names no carrier for either. Each needs a card or a note before the merge closes this one.
  • SQL push-down — no finding. No new query, id materialisation or in-app join. Both sentences are composed in memory from the catalogue answer and provenance already built; the lookups are over catalogue metadata, not records.

Implemented-by: claude/issue-34919-dataset-next-step-executor
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

… pin every precedence pair and the ask-first sentence

Ruling B, extended to candidates_only by the seat's L2 (S3): the note names
each unknown word sent beside the near-miss word with its labelled fallback,
and each grouping-only word as that grouping. One helper now writes the
left-out tail for both cases. The several_measures beside no_measure pair is
pinned (S1), and ruling B's ask-first sentence is pinned in all four
languages (S2).

Nits: two words that equal one measure are told it is one metric; a mixed
no_measure note keeps the grouping word's ask; the changeset says the doors
agree only when they carry the same locale.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfR33NbV51QQU6R6bm
@github-actions github-actions Bot added size/xl and removed size/l labels Nov 18, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT · 2026-11-18T03:25Z

Head-sha: 861f110
Reviewer: seat 3 L1-c (epic #34659). Delta read on top of my ACCEPT at a95eb06 (6966689227), for fix round 2 against the seat's L2 6966994814.

席位核对

Delta

  • leftOutSentences (seat S3). The ruling-B tail is now one helper, called from both one_measure and candidates_only.
    • Candidates. The offered-candidates filter leaves out the reported case's own candidates_only words, so under candidates_only the candidates are asked once (by candidateHit plus candidateTail) and never repeated as a "left-out" tail.
    • Unknown and grouping-only words. Both get named under either decision.
    • Where it does not run. It is not called for several_measures, which asks before anything is computed, or for no_measure, where every word is reported.
    • Pins. The behaviour is pinned in 4 languages (["库存周转", "金额"] names 库存周转 with its fallback). The author reports an ablation.
  • N1, one metric. one_measure now passes oneTail the count of distinct datasetName.name measures, not the count of reported words. Two words naming the same measure get the singular "Answer with query_dataset using that measure", where before they got "Each is its own metric". Each word still gets its own oneHit sentence. Pinned.
  • N2, mixed no_measure. The note now pushes fallbackTail when any word is unknown and groupingTail when any word is grouping-only. A mixed answer gets both: before, the grouping ask was dropped. Pinned.
  • S1 and S2. The author reports the sixth precedence pair and leftCandidateTail in 4 languages, each with an ablation. The diff adds or extends those cases in dataset-tools.test.ts.
  • N3 and copy. The changeset bullets now cover candidates_only, the one-metric sentence and the mixed no_measure case. The "note computes" wording is fixed ("gives the measure word's query"). The Language bullet now says the stdio door has no request locale. The list_datasets description gains the clause on candidates_only.
  • Agreement with docs(skills): objectstack-ask follows list_datasets nextStep and cites query_dataset sourceLine as given #35100 (8f4b446). The skill line says to follow nextStep's decision and note whatever the note says, so this round does not change that agreement.

Must-fix

None.

Should-fix

None.

Notes

  • The ?locale= runtime-door follow-up from my previous read still goes to triage. It is outside this PR.

Next

Next is the seat's delta L2 to close 6966994814's should-fixes, then the ordinary queue. Clause-② is yes and the PR is not governed. #35100 lands after this one.

@objectstack-fleet

objectstack-fleet Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

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

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

Seat 3 hands over on the maintainer's word (2026-11-18 03:19Z). This PR is landing: seat delta L2 PASS 6968174700 at 861f110 closed S1–S3 (nits N4–N7 only); landing record 6968184485, ready + auto-merge armed (2026-11-18 03:32Z). No code work is owed.

Card #34919, first PR (Part of #34919). The second PR, #35100 (Tier H, the ask-data skill line), says Fixes #34919 and lands after this one
Head 861f110f580429bf3907c3a414a15a88f1e8c0c6, branch claude/issue-34919-dataset-next-step-executor. Round commit 377b2e4c3b + pure merge of main b85dff0f43 (remerge-diff empty)
Governed NOT governed (0 of 9 paths). Lands through the ordinary queue (label-write.mjs --issue 35043 --comment-file <landing> --land)
CI 39 success, 18 skipped, none red or pending at 861f110 (L1-c read)
L1 L1-c delta ACCEPT 6968087055 at 861f110 (earlier ACCEPTs 6964761658, 6966689227)
Seat L2 PASS 6966994814 at a95eb06 with should-fixes S1/S2/S3. Fixed in 377b2e4 (round note 6968034646 on #34919): S1 sixth precedence pair pinned; S2 leftCandidateTail pinned in 4 languages with ablation; S3 ruling B extended to candidates_only (seat ruling 02:17Z) via leftOutSentences, 4 languages, ablation; nits N1–N3 folded. Closed by the seat delta PASS 6968174700 at 861f110
Declarations Clause-②: yes (widening) (new answer members, an export, appended tool/initialize text), Metadata-protocol: none, patch

Next step

  1. Done: seat delta PASS 6968174700; landing record 6968184485 (armed).
  2. If it leaves the queue without merging, read the reason and re-land; on merge, re-check docs(skills): objectstack-ask follows list_datasets nextStep and cites query_dataset sourceLine as given #35100 (it needs no rebase for this, but its PR-body guard should be green once this body's Part of is read).
  3. Card labels: lease:o3-E and pm:dispatched on service-analytics: the dataset executor computes nextStep and sourceLine, and the MCP door returns them #34919 are stripped with this hand-off (the card is handed over unfinished: this PR and docs(skills): objectstack-ask follows list_datasets nextStep and cites query_dataset sourceLine as given #35100 are open).

Follow-ups already routed

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head 861f110f58 · 2026-11-18T03:27Z (delta of the seat PASS 6966994814, closing S1–S3)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 861f110f580429bf3907c3a414a15a88f1e8c0c6
Local-runs: none

Delta of the PASS at a95eb068e0 (comment 6966994814). Read: card #34919 (body and all 12 comments), PR #35043 (body, 9-file list, net diff against main b85dff0f43), the delta a95eb068e0..861f110f58, and the check-runs on the head. Not read: the dispatch order. Everything the earlier PASS judged and this delta does not touch stands.

The delta is commit 377b2e4c3b (4 files, +104/-28) and the merge 861f110f58 of main b85dff0f43.

  • The merge hand-resolved nothing. git merge-tree --write-tree of its two parents gives tree 03dc944c59, which is the merge commit's own tree, and the combined diff is empty. Against its first parent, the only PR file the merge changes is packages/mcp/src/mcp-server-runtime.ts: 4 docblock lines on bridgeResources (the mcp: the stdio object resources serve labels and descriptions in the workspace default locale, as the object tools now do #34995 note, already on main), outside this PR's hunks in that file.
  • Check-runs on 861f110f58: 57 runs, all completed; 39 success, 18 skipped by path filter, 0 failed, 0 cancelled. Success includes Build Core, Test Core 1/10 to 10/10 and its roll-up, all four Type Check lanes plus TypeScript Type Check, every Lint lane, Check Changeset (both runs), Governed Surface Queue Guard, PM dispatch-gates and both PR-body guards runs.

① Derived judgments

The three should-fixes of the earlier PASS:

  • S1 — closed. ['deal value', '库存周转'] is now asked and reads several_measures with terms: ['deal value']. All six pairs of the four cases are pinned, so the PR body's "every pair, six of six" is true.
  • S2 — closed. The ask-first sentence of leftCandidateTail is pinned by its own words in en, zh-CN, zh-TW and ja-JP. Each pinned string is a substring of that tail only, not of candidateTail. The pin also requires it after the candidates, and a control shows ['商机数'] alone carries no such sentence. Deleting the tail now fails the test.
  • S3 — closed. The candidates_only branch now calls leftOutSentences, the helper one_measure also uses. An unknown word beside the near-miss word gets unknownHit and leftFallbackTail; a grouping-only word gets groupingHit. This is what the seat ruled: named as one_measure names them.

The new candidates_only wording:

  • Present in all four languages — right. It is built from unknownHit, leftFallbackTail and groupingHit, and each of the four locale tables defines all three. No locale falls through to English for this tail.
  • Pinned in all four languages — right. ['库存周转', '金额', '销售阶段'] is asked in the four locales and must give candidates_only, terms: ['金额'], the three candidate labels, the word 库存周转, query_records and Stage. The English sentences are pinned by their text, and ['金额'] alone is the control. Removing the helper call from the branch fails the pin in every locale.

What the delta changes on the served surface, each judged:

  • nextStep.note for candidates_only with other words — right, widening. The note gains sentences after candidateTail; decision and terms are unchanged. nextStep is new in this PR, so no released text changes.
  • nextStep.note for a mixed no_measure answer — right. It now carries both the fallback and "ask which number" (was the fallback only). Pinned in English.
  • nextStep.note for two words equal to one measure — right. The tail counts distinct measures, so ['商机数', '商机数量'] reads "using that measure". Pinned, with a two-measure control.
  • LIST_DATASETS_DESCRIPTION — right, text only appended. One clause is added inside the sentence this PR already added; no sentence that is on main is edited. DATASET_SELECTION_RULE, the tool list, the inputs and the exports are untouched by the delta.
  • The MCP surface still only widens — right. The net diff against main removes no tool, field, input or rule sentence. packages/mcp/src is not in commit 377b2e4c3b at all.

Precedence:

  • Still deterministic — right. The reported case is still one find over the frozen DATASET_NEXT_STEP_PRECEDENCE. leftOutSentences only adds sentences; it does not choose the case or the terms. Its candidates_only filter excludes the reported case, so under candidates_only no candidate is listed twice.
  • Still documented — right. The TSDoc now states the extension to candidates_only with an example, the description is still built from the constant, and the initialize pin against the constant is unchanged.

Findings, all nits, none blocking:

  • N4 (nit) — the new description clause has no pin. "with candidates_only names the unknown and grouping-only words left out" can be deleted with every test green. It is description text; the behaviour it describes is pinned.
  • N5 (nit) — outside English the S3 pin proves the tail by the word and query_records, not by the localized sentence. A wrong translation of leftFallbackTail that keeps the tool name would pass. This is the same strength as the one_measure fallback pin the earlier PASS accepted.
  • N6 (nit) — candidateTail ends "compute nothing until they answer", and the next sentences send the unknown word to the object query tools. "For those words" scopes the fallback, so the reading is recoverable, but a model may hold the unknown word's query until the user answers about the other word.
  • N7 (nit) — three words, two of them one measure. With two distinct measures the tail still says "Each is its own metric" after three hit sentences. Not pinned, and the instruction it gives is still correct per measure.

② Semver level

Clause-②: yes (widening)

  • The changeset still bumps @objectstack/service-analytics and @objectstack/mcp at patch, and its two declaration lines are unchanged and equal the PR body's.
  • The delta edits three bullets of the changeset, and each now matches the code: the mixed no_measure note holds both instructions; a candidates_only note names the unknown and grouping-only words; two words for one measure are one metric; the two doors agree only when both carry the same locale. The last closes N3 of the earlier PASS.
  • patch remains right: the delta adds note sentences and one description clause, and narrows nothing.
  • Check Changeset is green on the head, on both runs.

③ Boundary flags

  • open_questions: none in the fix-round note (6968034646). Nothing to answer.
  • The escalation of the earlier PASS (Fixes #34919 closing the card with two items owed) — answered. The PR body now says Part of #34919. The skill line rides draft docs(skills): objectstack-ask follows list_datasets nextStep and cites query_dataset sourceLine as given #35100, which keeps Fixes #34919 (claim 6967946188), and the before/after ask round moved to eval: a daily MCP ask round on the open-source runner — local boot, subscription login, no cloud access #34869's first daily record by seat ruling B (6967910642), which states plainly that the reading is not measured in this card's PRs.
  • Dev flag: check:dual-build-cjs-loads not measured locally — answered. It needs a whole-repo build, which CI does; Build Core and every Lint and Test lane are green on the head, and no run failed.
  • Dev flag: the first S3 ablation was a no-op the tool refused — answered. The dev reran it with a marker and reports the pin red; this record does not rest on it, since the S3 pin's dependence on the helper call is readable from the diff.
  • File surface — held. The delta touches the changeset and three files under packages/services/service-analytics/src/. The net diff is the same 9 files. No packages/spec, skills/** or generated file.
  • SQL push-down — no finding. The delta adds no query, id materialisation or in-app join. leftOutSentences filters the in-memory term readings the composer already built.

Implemented-by: claude/issue-34919-dataset-next-step-executor
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-11-18T03:31Z

Probe Reading
Governed check-governed-merges.mjs --pr 35043: NOT governed, 0 of 9 paths, 1044 changed lines
Head 861f110f580429bf3907c3a414a15a88f1e8c0c6, 8 first-parent commits behind main (under 15, no merge). It includes the pure merge 861f110f of main b85dff0f43
Review L1-c ACCEPT 6964761658, delta ACCEPTs 6966689227 and 6968087055 (at 861f110f). Seat L2 PASS 6966994814 at a95eb068; seat delta PASS 6968174700 at 861f110f closes S1–S3. Claim 6962704695
Checks All 57 check-runs on 861f110f succeeded (39) or were skipped (18)
Rulings Precedence several_measures > one_measure > candidates_only > no_measure (seat Q1 A on #34982); ruling B (left-out words named) extended to candidates_only (seat 02:17Z). ?locale= on the HTTP door is a runtime-door follow-up on triage #32588

State: ready + auto-merge armed. Part of #34919; #35100 (Tier H) closes the card.

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 protocol:ai size/xl tests 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.

2 participants