Skip to content

feat(i18n): label the list_flow_runs chat step in every locale pack - #34379

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-597wr3
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-597wr3

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #34368

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:10 个内置语言包各加一条 chatbot.tool.list_flow_runs 聊天步骤标签(en「Check automation runs」,zh-Hans「查看自动化运行记录」,zh-Hant 由生成器重生成);7481 标签覆盖测试的 AHEAD_OF_PIN 暂挂这个工具名。
  • 为什么改:cloud 新增的 list_flow_runs 工具(读一个流程最近的运行记录)在中文等界面里显示成英文「List flow runs」,用户看不懂。
  • 风险与回滚:只加文案和一行测试名单,不动运行逻辑;回滚即撤本 PR。
  • 先看:ui/packages/i18n/src/locales/zh-Hans.ts(新标签与改正的注释)、ui/packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts(AHEAD_OF_PIN)。
  • 两分钟验证:pnpm --dir ui exec vitest run packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts,预期全部通过。
  • 需要你做的:无,席位落地。

What changes

  • Every built-in locale pack (ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans}.ts) gains chatbot.tool.list_flow_runs, placed in the tool block's sorted order. en 'Check automation runs', zh-Hans '查看自动化运行记录' as the card asks; the other eight are a short verb-first sentence that names the flow the way each pack's test_flow / toggle_flow neighbours already do (no pack says "automation" in a user-facing value today).
  • zh-Hant.ts is regenerated with pnpm --filter @object-ui/i18n gen:zh-hant, not hand-edited.
  • toolLabels-locale-parity-7481.test.ts: AHEAD_OF_PIN carries 'list_flow_runs', the file's hatch for a tool the cloud registers before the pinned @objectstack/spec lists it. Its header note no longer says the list is empty. Forced test edit: this is the only edit to a test, and it adds coverage (every pack must now carry the label, and the zh case resolves it through the pack).
  • The comment above each pack's chatbot block said test_flow / toggle_flow are "newer than the registry". The 7481 suite's GRADUATED list asserts they are in it, so that sentence is corrected in the packs this PR already edits, and the suite name it cited is spelled as the file is (toolLabels-locale-parity-7481).
  • Changeset .changeset/34368-list-flow-runs-label.md: @object-ui/i18n patch.

Why

The cloud package service-ai-studio registers list_flow_runs so the build agent can answer "did my automation work?" from a run's own error. With no pack entry, humanizeToolName fell back to the English title-caser, so the step read "List flow runs" in every language.

The registry half (PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] in packages/spec) is split off to the spec-lane card #34372, because it widens what tool-reference validation accepts. When #34372 lands, list_flow_runs moves from AHEAD_OF_PIN to GRADUATED in the 7481 suite; that suite's last case reds until it does. The cloud side deletes its AHEAD entry for this name on the pin bump that carries the registry entry; that is not done here.

Tests

plugin-chatbot + i18n, head 0be35fa
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-chatbot/src/__tests__/ packages/i18n/
 Test Files  201 passed (201)
      Tests  2841 passed | 13 skipped (2854)
os-verify-lock: VERDICT command-exit 0

pnpm --dir ui exec vitest run --maxWorkers=2 (toolLabels-locale-parity-7481, toolLabels-sentences-12724, all-locales-key-parity, zh-hant-generated)
 Test Files  4 passed (4)
      Tests  89 passed (89)
os-verify-lock: VERDICT command-exit 0

No ablation: the diff adds data and one hand-held list entry; no tested behaviour changed.

Acceptance notes

  • None filed. Eight packs name the flow with the word their test_flow / toggle_flow labels already use, while en and zh-Hans say "automation" as the card asks.

Verification

Local subset at head 0be35fa8: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 40 families from this diff; all 40 ran and exited 0, and --ran reconciled them: "40 derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED". Every other family (the repo-wide lint, type-check and UI build/E2E jobs) is CI's; read this PR's check-runs.

40 derived gates, each with its exit code
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-sdui-manifest.mjs :: exit 0
node scripts/check-sdui-manifest.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --dir ui exec vitest run scripts/ :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (No formatter ran; the repo-wide pnpm lint was not run locally, CI's Lint jobs carry it.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 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)
  • 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

…pack

PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] gains list_flow_runs, the
build agent's read-only reader of a flow's recent runs, and every built-in
locale pack gains its chatbot.tool step label (zh-Hant regenerated). The
packs' parity comment now says what holds today: the registry, plus the
parity suite's AHEAD_OF_PIN list, is the set every pack must cover.

Claude-Session: https://claude.ai/code/session_01ADHkmSeJvm9gZwTpkEMwzc
Co-authored-by: Claude <noreply@anthropic.com>
…the pin

The registry entry for list_flow_runs lands with its own spec change, so this
branch keeps packages/spec untouched and lists the name on the parity suite's
AHEAD_OF_PIN hatch until the registry carries it.

Claude-Session: https://claude.ai/code/session_01ADHkmSeJvm9gZwTpkEMwzc
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 16, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

维护者速读

  • 卡:List the new service-ai-studio tool list_flow_runs in PLATFORM_TOOLS_BY_PACKAGE and give it a chatbot.tool label in every locale #34368(p2)。cloud 的 service-ai-studio 新增了构建助手工具 list_flow_runs(查看流程最近的运行记录),但各语言包没有它的步骤标题。中文对话里也会显示英文的 "List flow runs"。
  • 改了什么:10 个语言包各加一行 chatbot.tool.list_flow_runs(en "Check automation runs",zh-Hans「查看自动化运行记录」,其余按各包已有的说法),zh-Hant 由生成脚本产出。7481 对齐测试的 AHEAD_OF_PIN 列入这个名字。各包 chatbot 上方那句已过时的注释(说 test_flow / toggle_flow 尚未进注册表)一并更正。
  • 拆分:把名字加进 PLATFORM_TOOLS_BY_PACKAGE 属于 packages/spec 契约面(会放宽 lint 接受的工具名),已拆到 spec 车道卡 Add list_flow_runs to the platform tool-name registry (service-ai-studio) #34372。它落地时要把名字从 AHEAD_OF_PIN 移到 GRADUATED,测试会强制这一点。本 PR 净改动不碰 packages/**。分支里有一个范围变更前的 spec 提交和它的逐字节回退,两者相互抵消。
  • 钉子:plugin-chatbot 和 i18n 共 201 个文件、2841 个测试通过;7481、12724、all-locales-key-parity、zh-hant-generated 共 89 个通过。派生门禁 40/40 exit 0。
  • CI:head 0be35fa,success 45 · skipped 13 · 无失败;main 领先 5。非 governed。Clause-② no,Metadata-protocol none。

席位意见

用户读到的步骤标题不该等 spec 跟进,所以 AHEAD_OF_PIN 正是为这种情况准备的出口。测试保证注册表跟上后这个名字会被移走,不会变成第二份注册表。同意落地。

席位核对 — ACCEPT · domain:ui#2 · head 0be35fa · 2026-11-16T11:17Z

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 16, 2026 11:17
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 2b267b7 Nov 16, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-597wr3 branch November 16, 2026 11:49
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…tools (objectstack-ai#38193)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuEKqL1r3otpmPGByaZzap4u)_

Fixes objectstack-ai#34372

Clause-②: yes (widening)
Metadata-protocol: none

## 维护者速读

- 搭建助手新增的「查看自动化运行记录」工具,现在登记进平台工具名表;技能里写上这个工具名,校验不再把它当成不存在的工具拒掉。
- 替云端搭建助手解决:它要回答「我的自动化跑成功了吗」,靠的就是这个工具。
- 只是多认一个工具名,不改任何已有工具;出问题直接撤回这个改动即可。
- 无。

## What changes

- `packages/spec/src/system/constants/platform-tool-names.ts`:
`'list_flow_runs'` joins
`PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio']` in its alphabetical
place (after `get_record_history`, before `list_metadata`), and the
group's doc comment names it. `PLATFORM_PROVIDED_TOOL_NAMES` therefore
carries it and `isPlatformProvidedToolName('list_flow_runs')` answers
`true`, so a skill whose `tools[]` names it resolves under ADR-0109
reference integrity instead of being reported as
`ai-skill-tool-unresolved`.
-
`ui/packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts`:
`list_flow_runs` moves from `AHEAD_OF_PIN` (now empty) to `GRADUATED`,
per the file's own note. The ui half (objectstack-ai#34368, PR objectstack-ai#34379) already put its
label in every locale pack. This move must ride with the registry entry:
with the entry and without the move, the `AHEAD_OF_PIN carries only
names the pinned registry still lacks` case turns red (plugin-chatbot
reads `@objectstack/spec` as `workspace:^`).
- Changeset: `@objectstack/spec` patch
(`.changeset/34372-list-flow-runs-registry.md`). Contract review M1
(7235393865, seat revision 7235409030): `SkillSchema.tools` is a free
string array, so what an author can write parses the same; the only
behaviour change is that one advisory lint warning no longer fires. Same
as the registry's earlier additions objectstack-ai#32668 and objectstack-ai#37989.
- Resumed from `claude/project-thread-a7rk9c@f754db1` (release comment
6929523318): its two commits were cherry-picked onto current `main`; the
old main merge was not reused. Two conflicts resolved by keeping both
sides: the `service-ai-studio` doc comment (main had added `ask_which`,
cloud#4773) and the spec test (main had added the `get_record_context`
case).

## Tests

- `platform-tool-names.test.ts`: new case, the group contains
`list_flow_runs`, `isPlatformProvidedToolName('list_flow_runs')` is
`true`, control `list_flow_run` is `false`. 13/13 pass.
- `packages/lint/src/validate-ai-tool-references.test.ts`: new case, a
skill naming `list_flow_runs` yields no finding; control, a fictional
neighbour `retry_flow_run` in the same list is still reported at
`skills[0].tools[1]`. 46/46 pass.
- ui `toolLabels-locale-parity-7481.test.ts` +
`toolLabels-sentences-12724.test.ts`: 30/30 pass at c5e44f0. Review N2,
at 2c464d4: the zh case that looped over `AHEAD_OF_PIN` (now empty,
so it asserted nothing) loops over `GRADUATED` with a non-empty guard;
7481 file 17/17.

<details><summary>Ablation</summary>

- Deleted the `'list_flow_runs',` registry line, rebuilt
`@objectstack/spec`, re-ran: the spec case `lists the build agent's
read-only flow-run reader` red (1 failed / 12 passed); the ui 7481 file
red on `reads a non-empty coverage set` and `AHEAD_OF_PIN carries only
names the pinned registry still lacks` (the GRADUATED guard). Restored
from the index, rebuilt, green again.

</details>

## Acceptance notes

- No other enumerating reader of the registry: `git grep
get_record_history` outside the registry hits only locale packs,
changelogs and a release page.
- Review N1 (nit, not taken): the jsdoc carries no cloud reference for
`list_flow_runs`; no cloud issue number is named on objectstack-ai#34368 or this card,
and the cloud repo is outside this session's reach.
- The cloud side deletes its AHEAD entry for this name on the pin bump
that carries this (card item 4, cloud repo, not in this PR).

## Verification

- `pnpm --filter @objectstack/spec build && pnpm --filter
@objectstack/spec exec vitest run
src/system/constants/platform-tool-names.test.ts` — expect 13 passed.

- Local derived gates (`dispatch-gates.mjs --commands`, 89 commands at
c5e44f0): 86 exit 0 (two of them, `lint check:doc-formula-expressions`
and `check:docs-transcript-drift`, after building the
`@objectstack/lint` closure; first run was PREREQUISITE NOT MET). Not
measured locally, CI runs them: `check:dual-build-cjs-loads` and
`check:lean-entry-closure` (PREREQUISITE NOT MET: they load built output
of packages this worktree did not build), and `pnpm --dir ui exec vitest
run scripts/` (1 of 5146 red: `unit-registry-absence-collision` cannot
resolve the unbuilt `@objectstack/client` entry; the closure-budget half
wants a built console). No `!` in the title and no narrowing arm, so no
dogfood battery is owed.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgXM39VND2qb8HbebbK)_

<!-- signed: repo:objectstack#2 · os-sales ·
session_01L6bhgXM39VND2qb8HbebbK -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m 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.

List the new service-ai-studio tool list_flow_runs in PLATFORM_TOOLS_BY_PACKAGE and give it a chatbot.tool label in every locale

2 participants