Skip to content

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

Description

@objectstack-fleet

domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

Priority p2. Split from #34368 by the ui seat: this is that card's packages/spec half, moved to the spec lane because dispatch-gates --tier flags packages/spec/src/** as a contract surface.

What happens

The cloud package service-ai-studio registers a build-agent tool, list_flow_runs. It reads a flow's recent runs as the caller, so the in-app agent can answer "did my automation work?". PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] in packages/spec/src/system/constants/platform-tool-names.ts does not list it.

That registry is what packages/lint/src/validate-ai-tool-references.ts checks an authored tool reference against (PLATFORM_PROVIDED_TOOL_NAMES). Adding the name WIDENS what that check accepts. So the seat reads this as Clause-②: yes, and it owes the contract review.

Expected

  1. Add 'list_flow_runs' to PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] in alphabetical order (after 'get_record_history', before 'list_metadata'). Keep platform-tool-names.test.ts green and update its expectations if it enumerates the list.
  2. The ui half lands first 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. It puts the name in AHEAD_OF_PIN in ui/packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts, with labels in every locale pack. That file's last case fails while a name is in both the registry and AHEAD_OF_PIN. So this PR also moves list_flow_runs from AHEAD_OF_PIN to GRADUATED in that test, per the file's own note.
  3. Add a changeset for @objectstack/spec (patch) in root .changeset/.
  4. The cloud side deletes its AHEAD entry for this name on the pin bump that carries this.

Blocked-by #34368 (the ui half, for item 2 only; item 1 alone does not depend on it).

Activity

  1. added
    enhancement
    priority:p2
    pm:queue
    domain:spec
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:spec · p2 (kept) · 2026-11-16T11:10Z

    ⛔ Not a claim.

    This is the packages/spec half of #34368. Cloud's service-ai-studio registers list_flow_runs, but the platform tool-name registry does not list it, so the lint that checks authored tool references would refuse an agent that names it. It lets the in-app agent answer "did my automation work?", a user-facing capability, so p2 as filed. The lane is spec, because packages/spec/src/** is a contract surface. #34368 keeps the ui locale half.

  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Claim: PM loop round 6 · 2026-11-16T11:12Z
    Session: session_01ADHkmQjrEpxMVxEiDUJHqC (seat); a card thread of this account's project is the dev and reports its session id
    Account: os-steve
    Branch: pending — the card thread's designated branch; a follow-up Claim: from this session names it before the dev builds
    Worktree: objectstack-issue-34372
    Domain: domain:spec
    Seat: domain:spec#2
    File surface: packages/spec/src/system/constants/platform-tool-names.ts (+ its test), any enumerating reader of the registry, root .changeset/; after #34379 merges, the one-line AHEAD_OF_PIN → GRADUATED move in ui/packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts
    Container & model: S, mode:thread, model: default tier
    Clause-②: yes (widening)
    Metadata-protocol: as measured by check-changeset-no-major (declared in the PR)
    Responsibility: objectstack: the cloud build-agent tool list_flow_runs is not in the platform tool registry | in-app AI agent authors | a skill that names list_flow_runs is refused by the tool-reference lint
    Premise: holds at origin/main (seat read: AHEAD_OF_PIN empty, service-ai-studio lacks the name). Order: /mnt/project-files/spec-seat2/34372-delta.md. Lands after #34379 (ui half).
    Priority: p2 (triage 6914792137).

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Claim: PM loop round 6 · 2026-11-16T11:14Z (names the branch; supersedes claim 6914825294, same session)
    Session: session_01ADHkmQjrEpxMVxEiDUJHqC (seat); card thread session_01ADHkmPAynvFRWaSF8pwXsi is the dev
    Account: os-steve
    Branch: claude/project-thread-a7rk9c (the card thread's designated branch)
    Worktree: objectstack-issue-34372
    Domain: domain:spec
    Seat: domain:spec#2
    File surface: packages/spec/src/system/constants/platform-tool-names.ts (+ its test), any enumerating reader of the registry, root .changeset/; after #34379 merges, the one-line AHEAD_OF_PIN → GRADUATED move in ui/packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts
    Container & model: S, mode:thread, model: default tier
    Clause-②: yes (widening)
    Metadata-protocol: as measured by check-changeset-no-major (declared in the PR)
    Responsibility: objectstack: the cloud build-agent tool list_flow_runs is not in the platform tool registry | in-app AI agent authors | a skill that names list_flow_runs is refused by the tool-reference lint
    Premise: holds at origin/main (seat read: AHEAD_OF_PIN empty, service-ai-studio lacks the name). Order: /mnt/project-files/spec-seat2/34372-delta.md. Lands after #34379 (ui half).
    Priority: p2 (triage 6914792137).

  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: regrade p2 → p3 · cloud-side in-app builder (claim stands) · 2026-11-16T16:31Z

    ⛔ Not a claim.

    Backlog re-grade (p2 batch 3). This is the spec half of #34368, registering cloud's list_flow_runs build-agent tool, and it follows #34368 to p3. The work is small and already claimed, so the seat may finish it.

  7. added and removed
    priority:p2
    on Nov 16, 2026
  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Release: seat stand-down · 2026-11-16T21:10Z

    The maintainer ordered seats to finish the work in hand and stand down, with no new cards. This card's dev thread stopped in the platform incident around 2026-11-16T12:15Z, before any commit or PR was made. Branch: claude/project-thread-a7rk9c, with no commits beyond its base. So the claim goes back to pm:queue and the assignee is cleared.
    Resume-from: none (no produce). The order still stands for a successor: /mnt/project-files/spec-seat2/34372-delta.md (project share; the seat's measured reading of origin/main and its rulings). It is now p3 (triage regrade 6922430246). The ui half (#34368 / PR #34379) is merged, so item 2 is unblocked.

  9. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 16, 2026
  10. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Release correction · amends 6929446485 · 2026-11-16T21:12Z

    The dev thread resumed shortly before the release and had already pushed work, so "no produce" above is wrong. Correct resume point:
    Resume-from: claude/project-thread-a7rk9c@f754db19

    Dev measurement: adding the registry entry before the ui labels exist turns 11 packs red, and adding it after #34379 without the test move turns the AHEAD_OF_PIN case red. So the move rides in the same PR. Still owed: a fresh main merge, the full build, tests and gates, a draft PR, and the report. The card stays in pm:queue.

  11. added
    area:ai
    on Nov 18, 2026
  12. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 2 · 2026-11-28T05:52Z
    Picked by card-pick.mjs --order area:ai --seat repo:objectstack#2 at 2026-11-28T05:42Z, p3 close-out. The maintainer in this seat's project, verbatim: 「并发5」.
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgXM39VND2qb8HbebbK
    Account: os-sales
    Branch: claude/project-thread-vh3bpu (from main)
    Domain: domain:spec
    Seat: repo:objectstack#2
    Area: s2-ai
    File surface: packages/spec/src/system/constants/platform-tool-names.ts (list_flow_runs under service-ai-studio) and its spec pin; the packages/lint/src/validate-ai-tool-references.ts pin with its control; ui/packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts (the name moves from AHEAD_OF_PIN to the graduated list); one changeset. Items 1, 2 and 3 of the card go in one PR: item 2's blocker #34368 closed 2026-11-16T11:49Z (ui PR #34379 merged), and item 1 alone turns the 7481 test red, as the previous dev measured in 6929523318.
    Container & model: S, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high (reason: the thread session serves effort high)
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: an agent that names list_flow_runs in its tools is accepted by the platform tool-name registry and its lint, like every other service-ai-studio tool.
    Thread-read: 6929523318
    Premise: read by the thread on main 7605e0c: the registry still lacks list_flow_runs, and the 7481 test still carries it in AHEAD_OF_PIN.
    Resume-from: claude/project-thread-a7rk9c@f754db19. Commits 26adb84 and 8387522 are cherry-picked onto the current main; the old main merge is not reused.
    Serial constraints cleared: no open PR names platform-tool-names or list_flow_runs (search 2026-11-28T05:49Z).

    Owed review: Clause-②: yes (widening) on a published @objectstack/spec export, so an L2 at CONTRACT_REVIEW_TIER reviews it before the queue. The changeset is @objectstack/spec minor. The PR says Fixes #34372.

  13. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  14. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgXM39VND2qb8HbebbK
    os-dev-report

    {
      "issue": 34372,
      "status": "done",
      "branch": "claude/project-thread-vh3bpu",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38193",
      "session": "session_01L6bhgXM39VND2qb8HbebbK",
      "premise_still_valid": true,
      "summary": "Items 1-3 in one PR per claim 7234941169: list_flow_runs joins PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] (alphabetical, doc comment names it), the 7481 ui test moves it from AHEAD_OF_PIN (now empty) to GRADUATED, and a @objectstack/spec minor changeset. Resumed from claude/project-thread-a7rk9c@f754db19 by cherry-picking 26adb845 and 83875220 onto main 7605e0c9; two conflicts resolved keeping both sides (main's ask_which doc sentence, main's get_record_context spec case). Head c5e44f02.",
      "tests": "spec platform-tool-names.test.ts 13/13; lint validate-ai-tool-references.test.ts 46/46; ui toolLabels-locale-parity-7481 + toolLabels-sentences-12724 30/30 (run from ui root). Ablation: registry line deleted + spec rebuilt -> spec case red (1 failed/12), ui 7481 red on 'reads a non-empty coverage set' and 'AHEAD_OF_PIN carries only names the pinned registry still lacks'; restored from index, rebuilt.",
      "gates": "dispatch-gates --commands at c5e44f02: 89 commands, 86 exit 0 (lint check:doc-formula-expressions and check:docs-transcript-drift after building the lint closure). NOT MEASURED locally, CI runs: check:dual-build-cjs-loads, check:lean-entry-closure (PREREQUISITE NOT MET, unbuilt dist), pnpm --dir ui exec vitest run scripts/ (1/5146 red: unit-registry-absence-collision cannot resolve unbuilt @objectstack/client). PR checks at report time: 21 success, 12 expected skip, 0 failed, 36 pending.",
      "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "3 - issue_read x3 (read-only)",
      "api_writes": "2 relay - pr_create (+assignees leg) on #38193, issue_patch body of #38193; plus this report",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  15. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim amendment · 2026-11-28T06:36Z · amends claim 7234941169

    Writes: Metadata-protocol: none, and the changeset is @objectstack/spec patch. Clause-②: yes (widening) stands, and so does the owed review at CONTRACT_REVIEW_TIER (a delta on the corrected head). Every other line of the claim stands.

    Reason: contract review 7235393865 on PR #38193, finding M1, which the seat adopts. SkillSchema.tools is a free string array, so nothing an author writes parses differently; the one behavioural change is an advisory lint warning that stops firing. The two earlier rows of the same registry (#32668, #37989) landed as Metadata-protocol: none with spec patch, and the card asks for patch. The claim's added / minor was the seat's misreading.

  16. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed · 2026-11-28T08:41Z

    PR #38193 merged at 2026-11-28T08:39Z through the merge queue on the seat's ACCEPT (7235949854), and its Fixes line closed this card. What changed:

    • list_flow_runs is listed among the service-ai-studio platform tools in the tool-name registry.

    The card's fourth item (dropping the AHEAD entry when the cloud bumps its pin) belongs to the cloud repository and was not done here. pm:dispatched is cleared on this card.

  17. removed
    pm:dispatched
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:specenhancementpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions