Skip to content

feat(spec): list list_flow_runs among the service-ai-studio platform tools - #38193

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-vh3bpu
Nov 28, 2026
Merged

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

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #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 (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, PR feat(i18n): label the list_flow_runs chat step in every locale pack #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 feat(spec, i18n): register the ask agent tool get_record_history and label it in every locale pack #32668 and fix(spec,i18n): list the cloud ask_which tool and label it in every locale #37989.
  • Resumed from claude/project-thread-a7rk9c@f754db19 (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.
Ablation
  • 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.

Acceptance notes

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

…tools

The cloud build agent registers a read-only list_flow_runs tool that reads
one flow's recent runs as the caller. The registry now lists it, so a skill
naming it resolves under ADR-0109 reference integrity instead of being
reported as a fictional tool. Pins: the registry carries the name, and the
tool-reference lint still reports a fictional neighbour.

Claude-Session: https://claude.ai/code/session_01L6bhgXM39VND2qb8HbebbK
Co-authored-by: Claude <noreply@anthropic.com>
The spec registry now lists list_flow_runs, so the label-parity suite's
hand-held list loses it and GRADUATED pins it in the registry instead.

Claude-Session: https://claude.ai/code/session_01L6bhgXM39VND2qb8HbebbK
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 2 documentable anchor(s).

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

  • content/docs/releases/v18/18-3.mdx (via PLATFORM_TOOLS_BY_PACKAGE (symbol, a top-level const object))
  • content/docs/releases/v18/18-4.mdx (via PLATFORM_TOOLS_BY_PACKAGE (symbol, a top-level const object))

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

Coarse fallback — 177 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 4f7aa88a1cd376afbcfcfb51e80c2cce4300586a → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json 4f7aa88a1cd376afbcfcfb51e80c2cce4300586a

⚠️ 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 4f7aa88a1cd376afbcfcfb51e80c2cce4300586a → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@github-actions github-actions Bot added documentation Improvements or additions to documentation protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c5e44f02f492b8be18709f906e1678a5697af79b
Local-runs: none
Scope: packages/spec/src/system/constants/platform-tool-names.ts + packages/spec/src/system/constants/platform-tool-names.test.ts, packages/lint/src/validate-ai-tool-references.test.ts, ui/packages/plugin-chatbot/src/tests/toolLabels-locale-parity-7481.test.ts

Read: card #34372 (body and all 8 comments), PR #38193 (body, 5 files, net diff against merge-base 7605e0c9), the check-runs on this head. The changeset is judged in ② only.

① Derived judgments

  • PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] gains 'list_flow_runs', between get_record_history and list_metadata. Sorted order holds. Right.
  • PLATFORM_PROVIDED_TOOL_NAMES.has('list_flow_runs') and isPlatformProvidedToolName('list_flow_runs') move from false to true. No export is added, removed or retyped; api-surface/, authorable-surface/ and authorable-defaults/ are untouched by the diff. Right.
  • validateAiToolReferences (packages/lint/src/validate-ai-tool-references.ts, read, not in the diff) stops emitting the ai-skill-tool-unresolved finding for a skill naming list_flow_runs. That finding is severity: 'warning' at all four emit sites; SkillSchema.tools is a free string array and parsed this name before and after. So the widening is of the lint's resolution universe (a public surface), not of any schema accept set. Clause-②: yes (widening) is right, as on feat(spec, i18n): register the ask agent tool get_record_history and label it in every locale pack #32668.
  • MCP bridge (packages/mcp/src/mcp-server-runtime.ts, read): worldAnnotation now answers openWorldHint: false for a bridged tool of this name. It gets no readOnlyHint, since PLATFORM_READ_ONLY_TOOL_NAMES is a curated five and omission is the conservative default; get_record_history is treated the same. Right; the changeset does not mention it, as no earlier registry row did.
  • Chat labels: chatbot.tool.list_flow_runs is present in all 11 packs under ui/packages/i18n/src/locales/ on this head (landed by feat(i18n): label the list_flow_runs chat step in every locale pack #34379), so the 7481 parity case over COVERED holds with the name now read from the registry. Right.
  • Cherry-pick resolution: against 7605e0c9 the diff of the hits file is additive apart from one list-comma rewording (, and the ask agent's ask_which became , the ask agent's ask_which); main's ask_which sentence with cloud#4773 and main's get_record_context spec case are both intact. main moved to 4f7aa88a without touching any of the four source files. Nothing lost.

② Semver level

Clause-②: yes (widening) — agreed.

M1 (must-fix) — the changeset grades @objectstack/spec minor under Metadata-protocol: added, and the diff does not earn it. AGENTS.md defines the kind as "the change to what a metadata author can write — a new key, accepted value or metadata type ... all else is none", and check-changeset-no-major.mjs states "a minor is earned by a change to the metadata protocol and by nothing else". Here nothing an author can write changes: skill.tools[] accepted the string list_flow_runs before and after, no authorable-surface shard moves, and the only behavioural difference is one advisory lint warning that is no longer emitted. The two earlier rows in this same array were landed as Metadata-protocol: none with @objectstack/spec patch: get_record_history (#32668, Clause-②: yes / none) and ask_which (#37989). The card itself asks for patch (Expected, item 3). The Check Changeset run is green only because added beside a minor is self-consistent; the gate cannot see whether the kind is true ("the declaration, not the diff, is still the carrier"). Because the fixed group versions in lockstep, an unearned minor lifts every package. Fix: Metadata-protocol: none in the PR body and the changeset body, and the entry graded patch; Clause-②: yes (widening) stays. If the seat holds that a newly resolved tool name IS an added accepted value, that reverses two landed precedents and is the maintainer's ruling to make, not this PR's.

The changeset prose is otherwise accurate against the tree.

③ Boundary flags

  • open_questions: empty in dev report 7235338658. Nothing to answer.
  • Dev flag, three gates not measured locally (check:dual-build-cjs-loads, check:lean-entry-closure, pnpm --dir ui exec vitest run scripts/): CI owns them. At read time the head had 0 failed check-runs; Check Changeset, Governed Surface Queue Guard, Spec property liveness, Lint & Repo Gates, Type Check · source gates, Live E2E UI and the lint families concluded success; Build Core, Test Core 1-10, Test UI 1-16, Build & E2E UI, Type Check · workspace and · consumer gates were still in progress. Those conclusions are owed before any PASS on a later head; this record does not rest on them.
  • Producer: the cloud repository is not readable from this seat, so "cloud service-ai-studio registers list_flow_runs" is taken from the card and from the 7481 file on main (its AHEAD_OF_PIN note, sourced from cloud plugin.ts), not read first-hand. The cloud conformance test is the owner of that fact (card item 4).
  • SQL push-down: not applicable; the diff has no data access.

④ Design judgment

platform-tool-names.ts (hits): the row sits in the right group (the build agent's package), in order, and the jsdoc sentence agrees with the card's description and with the changeset. Every reader of the registry in the tree was read (lint universe, MCP world hint, 7481 parity, check-i18n-call-site-keys exemption, qa door-rules corpus prose): none enumerates the group in a way this row breaks. The group's own invariant, "the exact set that package registers", holds on the card's word (see ③).

platform-tool-names.test.ts: the pin and its control (list_flow_run misses) agree with the contract. validate-ai-tool-references.test.ts: the pin resolves the name and the control (retry_flow_run reported at skills[0].tools[1]) fails on an over-wide universe. Both agree.

toolLabels-locale-parity-7481.test.ts: AHEAD_OF_PIN empties and GRADUATED gains the name, which is what the file's own note prescribes; the GRADUATED guard makes the row's removal red.

  • M1 (must-fix) — see ②.
  • N1 (nit) — the jsdoc names no cloud reference for list_flow_runs, where every other late arrival in that sentence carries one (cloud#3565, #3656, #4347, #4773). Follow-up or accepted deviation.
  • N2 (nit) — in the 7481 file, zh: the other four newly-mapped tools resolve too loops over AHEAD_OF_PIN, which this PR empties, so the case asserts nothing again; iterating GRADUATED would keep it live. Label presence in every pack is still held by the it.each case.

Implemented-by: claude/project-thread-vh3bpu
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: FAIL


Generated by Claude Code

…ase iterates GRADUATED

Contract review M1: SkillSchema.tools is a free string array, so what an
author can write parses the same; only an advisory lint warning goes away.
Metadata-protocol none, @objectstack/spec patch. N2: the zh label case
looped over AHEAD_OF_PIN, which this change empties; it now loops over
GRADUATED so it asserts again.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2c464d444b8b4d97ead6992e19071d78bcc8cee2
Local-runs: none
Scope: packages/spec/src/system/constants/platform-tool-names.ts + packages/spec/src/system/constants/platform-tool-names.test.ts, packages/lint/src/validate-ai-tool-references.test.ts, ui/packages/plugin-chatbot/src/tests/toolLabels-locale-parity-7481.test.ts

Delta review of record 7235393865 (head c5e44f02). Read: the one commit since that head (2c464d44, two files), the PR body as it now stands, claim amendment 7235409030 on #34372, and the check-runs on this head.

① Derived judgments

Unchanged from 7235393865. The delta touches no source under packages/: the hits file, its spec pin and the lint pin are byte-identical to c5e44f02. The registry row, the membership answers, the lint universe, the MCP world hint and the locale labels stand as judged there, all right.

② Semver level

Clause-②: yes (widening) — agreed, kept on the PR body, the changeset and the amended claim.

M1: closed. The changeset now grades @objectstack/spec patch and reads Metadata-protocol: none; the PR body reads Metadata-protocol: none; claim amendment 7235409030 writes the same. That matches what the diff publishes (no authorable key, value or type changes; one advisory lint warning stops firing) and the two earlier rows of the same array (#32668, #37989). Check Changeset run 140895059049 on this head concluded failure at 06:42:17Z; it started at 06:40:23Z, before the body edit, and so read added beside a patch. The later run 140895250895 (started 06:41:12Z, on the edited body) concluded success and is the governing one.

③ Boundary flags

  • open_questions: none carried into this head.
  • Check-runs on 2c464d44: every run completed. Success on Build Core, Test Core and its 10 shards, Test UI and its 16 shards, Build & E2E UI, Live E2E UI, Type Check (workspace, source, consumer, debt ledger, UI), every Lint family, Governed Surface Queue Guard, Spec property liveness, PR-body guards. The one failure is the superseded Check Changeset run named in ②. This answers the three gates the dev left to CI and the conclusions the first record said were owed.
  • Producer: still taken from the card and the 7481 file on main, not read first-hand; the cloud conformance test owns that fact.
  • SQL push-down: not applicable; the diff has no data access.

④ Design judgment

No must-fix, no should-fix.

  • M1: closed (see ②).
  • N2: closed. The zh case is renamed zh: every graduated tool resolves to its pack label too, guards GRADUATED.length above zero and loops over GRADUATED, asserting humanizeToolName returns the zh-Hans pack value for each of the six names, list_flow_runs included. A missing label would fail it, since the fallback is the English title-caser. AHEAD_OF_PIN is still read by COVERED and the last case, so nothing is left unused. This fix is in a test file, so it moved the head; this record covers it.
  • N1: left as an accepted deviation. The PR body records why: no cloud issue number is named on 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 or the card. A nit, with no effect on the contract.

Implemented-by: claude/project-thread-vh3bpu
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA (isolated contract-review sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 2c464d4 · card #34372 · area s2-ai · 2026-11-28T07:26Z

L1 checklist

  • Shape and checks. Every check on the head is green apart from expected skips; mergeable clean. The governing Check Changeset run is 140895250895 (success, after the body edit); 140895059049 read the pre-edit body. The PR touches platform-tool-names.ts, its spec test, the lint validate-ai-tool-references test, the chatbot 7481 locale test and a changeset. check-governed-merges: not governed, 71 changed lines.
  • Contract review at CONTRACT_REVIEW_TIER. Round 1 7235393865 found M1 (the Metadata-protocol kind and the semver level); the seat adopted it and amended the claim (7235409030). Delta 7235934700 at this head is a PASS: M1: closed, N2: closed, N1 (no cloud reference in the jsdoc; none is recorded on the card) is an accepted deviation. Both transcripts pass verify-review-tier. The seat adopts the record.
  • What changes. list_flow_runs joins the platform tool-name registry in its group and in sorted order, so os lint stops warning ai-skill-tool-unresolved on a skill that lists it, and a bridged tool of that name gets the same hints as get_record_history. chatbot.tool.list_flow_runs is in all 11 locale packs. The cherry-pick onto main lost nothing (the review read both resolved conflicts).
  • Declarations. Clause-②: yes (widening) — the registry set and the lint's resolution universe widen; no export is added or removed. Metadata-protocol: none, @objectstack/spec patch, as the two earlier rows of the same registry landed. Fixes #34372 is right.

Tier: S. Landing: ready and auto-merge in this stroke.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 28, 2026 07:27
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 22e1089 Nov 28, 2026
73 of 74 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-vh3bpu branch November 28, 2026 08:40
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:system size/s 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.

Add list_flow_runs to the platform tool-name registry (service-ai-studio)

2 participants