Repository navigation
feat(spec): list list_flow_runs among the service-ai-studio platform tools - #38193
Conversation
…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>
📓 Docs Drift CheckThis PR changes 1 package(s): ⛔ 2 release-owned page(s) name something this change touched. These are read-only:
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): Which tree this was computed onThis run read A worktree cut from an older # 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
|
Contract reviewServed-tier: Read: card #34372 (body and all 8 comments), PR #38193 (body, 5 files, net diff against merge-base ① Derived judgments
② Semver levelClause-②: yes (widening) — agreed. M1 (must-fix) — the changeset grades The changeset prose is otherwise accurate against the tree. ③ Boundary flags
④ Design judgment
Implemented-by: 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>
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Delta review of record 7235393865 (head ① Derived judgmentsUnchanged from 7235393865. The delta touches no source under ② Semver levelClause-②: yes (widening) — agreed, kept on the PR body, the changeset and the amended claim. M1: closed. The changeset now grades ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 2c464d4 · card #34372 · area s2-ai · 2026-11-28T07:26ZL1 checklist
Tier: S. Landing: ready and auto-merge in this stroke. |
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'joinsPLATFORM_TOOLS_BY_PACKAGE['service-ai-studio']in its alphabetical place (afterget_record_history, beforelist_metadata), and the group's doc comment names it.PLATFORM_PROVIDED_TOOL_NAMEStherefore carries it andisPlatformProvidedToolName('list_flow_runs')answerstrue, so a skill whosetools[]names it resolves under ADR-0109 reference integrity instead of being reported asai-skill-tool-unresolved.ui/packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts:list_flow_runsmoves fromAHEAD_OF_PIN(now empty) toGRADUATED, 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, theAHEAD_OF_PIN carries only names the pinned registry still lackscase turns red (plugin-chatbot reads@objectstack/specasworkspace:^).@objectstack/specpatch (.changeset/34372-list-flow-runs-registry.md). Contract review M1 (7235393865, seat revision 7235409030):SkillSchema.toolsis 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.claude/project-thread-a7rk9c@f754db19(release comment 6929523318): its two commits were cherry-picked onto currentmain; the old main merge was not reused. Two conflicts resolved by keeping both sides: theservice-ai-studiodoc comment (main had addedask_which, cloud#4773) and the spec test (main had added theget_record_contextcase).Tests
platform-tool-names.test.ts: new case, the group containslist_flow_runs,isPlatformProvidedToolName('list_flow_runs')istrue, controllist_flow_runisfalse. 13/13 pass.packages/lint/src/validate-ai-tool-references.test.ts: new case, a skill naminglist_flow_runsyields no finding; control, a fictional neighbourretry_flow_runin the same list is still reported atskills[0].tools[1]. 46/46 pass.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 overAHEAD_OF_PIN(now empty, so it asserted nothing) loops overGRADUATEDwith a non-empty guard; 7481 file 17/17.Ablation
'list_flow_runs',registry line, rebuilt@objectstack/spec, re-ran: the spec caselists the build agent's read-only flow-run readerred (1 failed / 12 passed); the ui 7481 file red onreads a non-empty coverage setandAHEAD_OF_PIN carries only names the pinned registry still lacks(the GRADUATED guard). Restored from the index, rebuilt, green again.Acceptance notes
git grep get_record_historyoutside the registry hits only locale packs, changelogs and a release page.list_flow_runs; 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 this card, and the cloud repo is outside this session's reach.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-expressionsandcheck:docs-transcript-drift, after building the@objectstack/lintclosure; first run was PREREQUISITE NOT MET). Not measured locally, CI runs them:check:dual-build-cjs-loadsandcheck:lean-entry-closure(PREREQUISITE NOT MET: they load built output of packages this worktree did not build), andpnpm --dir ui exec vitest run scripts/(1 of 5146 red:unit-registry-absence-collisioncannot resolve the unbuilt@objectstack/cliententry; 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