Skip to content

Platform tool registry and chatbot labels: add list_datasets / query_dataset under service-ai (cloud registers them for the ask agent) #33733

Closed

Description

@objectstack-fleet

repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

Found by the cloud os-dev agent on objectstack-ai/cloud PR #4557 (card cloud#4551, epic cloud#3825). Out-of-scope finding, class b, with a named producer.

What happens

platform-tool-names.ts says: "registering a new tool in a cloud AI package means adding its name here … A new name also needs its chatbot.tool.NAME label in every pack".

Cloud's service-ai now registers list_datasets and query_dataset for the in-product ask agent (PR #4557). Neither name appears in PLATFORM_TOOLS_BY_PACKAGE['service-ai'], and neither has a chatbot.tool.* label. The chat therefore shows a raw tool name while the agent works.

Change

  1. Add both names under service-ai in the registry.
  2. Add their chatbot.tool.list_datasets / chatbot.tool.query_dataset labels in every language pack (zh-CN: 「查看指标」/「按指标查询」 or similar).
  3. Add the tests the registry already pins.

Seam: spec: PLATFORM_TOOLS_BY_PACKAGE['service-ai'] → runtime: cloud service-ai registerDatasetTools; ui: plugin-chatbot toolLabels.

Activity

  1. added
    enhancement
    priority:p2
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · p2 · 2026-11-15T08:45Z

    ⛔ Not a claim.

    Register list_datasets / query_dataset in the platform tool registry and chatbot labels under service-ai (cloud registers them for the ask agent; cloud#4551). p2 (pre-graded). service-ai is not in the lease table, so domain:server#5 places it.

  3. added
    domain:server
    pm:queue
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: re-lane → domain:spec (lead) · p2 · pm:queue · 2026-11-15T09:30Z

    ⛔ Not a claim.

    As domain:server#5 asked (mailbox #32588, 6892357591): there is no server path. The registry half is the PLATFORM_TOOLS_BY_PACKAGE constant in packages/spec (add list_datasets / query_dataset under service-ai), so domain:spec leads. The plugin-chatbot label half is ui and rides with #33734 (ui, the dataset provenance in the chat source block), which reads the same tools. Land the spec half first, or in one PR that touches both if the spec seat takes the ui labels with it. p2 unchanged.

  5. added
    domain:spec
    and removed
    domain:server
    on Nov 15, 2026
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

    Claim: PM loop round 1 · 2026-11-15T09:42Z
    Session: session_01FEkQ5mswnWm181XgYcCUag (seat); card thread session_01FEkQ5ksYSwxvhGVTdi3SS4 is the dev
    Account: os-project-manager
    Branch: claude/project-thread-2vlfbw (the card thread's designated branch; the platform lets a thread push only that branch, so not claude/issue-33733-*)
    Worktree: objectstack-issue-33733
    Domain: domain:spec
    Seat: domain:spec#1
    File surface: packages/spec/src/system/constants/platform-tool-names.ts (+ its test), the spec's regenerated artifacts, ui/packages/i18n/src/locales/*.ts (chatbot.tool block only), a classifying set in packages/mcp only if its reader demands it (measured), root .changeset/ (stop on breach; explain in the report). One PR: the ui label-parity test reads the registry, so the halves cannot land apart (triage 6892365476 allows it).
    Container & model: S, mode:thread, model: default tier, effort: default
    Clause-②: yes — expected (widening): two new accepted skill.tools[] names; the PR declares the final reading
    Metadata-protocol: added (expected; the PR declares the final reading)
    Responsibility: n/a — out-of-scope finding from cloud PR #4557 (card cloud#4551), re-laned to domain:spec by triage
    Thread-read: 6892365476
    Premise: holds at origin/main: PLATFORM_TOOLS_BY_PACKAGE['service-ai'] lists neither list_datasets nor query_dataset, and no pack carries chatbot.tool.list_datasets / chatbot.tool.query_dataset. Taken under 「后续只处理 p1 p2」 (Leehom, 2026-11-15; Ruling-ref). Order: /mnt/project-files/pm-orders/spec/order-33733.md (project share).
    Serial constraints cleared: no Blocked-by; ui seat 2's #33734 (AnswerSource.tsx, ChatbotEnhanced.tsx, plugin-chatbot.mdx) shares no file.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#1 · os-project-manager · session_01FEkQ5ksYSwxvhGVTdi3SS4
    os-dev-report
    {
    "issue": 33733,
    "status": "done",
    "branch": "claude/project-thread-2vlfbw",
    "pr": "#33801",
    "session": "session_01FEkQ5ksYSwxvhGVTdi3SS4",
    "premise_still_valid": true,
    "summary": "list_datasets and query_dataset join PLATFORM_TOOLS_BY_PACKAGE['service-ai'] in sort order (platform-tool-names.ts L54/L56), with the group docblock saying what the pair does (cloud#4551) and pointing at ai/dataset-tools.zod (ADR-0149 D2). Every built-in pack (11) gains chatbot.tool.list_datasets / chatbot.tool.query_dataset as sentences in its language inside the chatbot.tool block only (zh-Hans 查看指标 / 按指标查询; zh-Hant regenerated by gen:zh-hant, which spells 檢視指標). A new spec pin holds the registry spelling to LIST_DATASETS_TOOL_NAME / QUERY_DATASET_TOOL_NAME with a query_datasets control. Changeset 33733-dataset-tool-labels.md: @objectstack/spec minor, @object-ui/i18n patch. Head 13eaec9.",
    "tests": "head 13eaec9. spec test exit 0 (842 files, 26943 tests); spec typecheck exit 0; ui vitest packages/plugin-chatbot/ packages/i18n/ exit 0 (201 files, 2852 passed, 13 skipped); i18n type-check exit 0; mcp safety-annotations + dataset-tools exit 0 (34); lint validate-ai-tool-references exit 0 (23); lint probe: list_datasets/query_dataset resolve, query_datasets still reported. Ablation 1 (ablation-replace, registry pair removed, blob 6c627c5e2a02 -> a6a19345c1fd; spec test imports src by relative path, no dist in path): new pin red, 1 failed | 5 passed; restored blob == HEAD, git diff HEAD empty. Ablation 2 (en list_datasets removed, blob df8f06a8ca30 -> 093ac78fe5e5; ui reads spec from rebuilt dist): toolLabels-locale-parity-7481 and toolLabels-sentences-12724 red, 2 failed | 28 passed; restored blob == HEAD, git diff HEAD empty.",
    "gates": "dispatch-gates --commands: 86 families (re-derived on final head, same list). All 86 exit 0; five first answered a prerequisite miss (dual-build-cjs-loads 3, lean-entry-closure 3, lint check:doc-formula-expressions 3, ui vitest run scripts/ 1 on unbuilt @objectstack/client, teardown self-test 3 on shallow fixture) and were rerun green after turbo run build and the fixture fetch. --ran: 86 derived, 86 run, 0 NOT-MEASURED. spec check:generated exit 0, all 14 artifacts current, nothing regenerated. check-nul-bytes exit 0. --tier: no path mandate, 62 changed lines; packages/spec/src is the Clause-② surface, seat contract review applies. CI check-runs on PR 33801: in_progress at report time. Record: /mnt/project-files/pm-orders/spec/33733-gates-ran.txt",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "3 — mcp__github__issue_read x3 (get, get_comments x2), all reads",
    "api_writes": "2 — fleet-write dispatch pr_create (POST /repos/objectstack-ai/objectstack/dispatches, PR 33801), os-dev-report comment via post-stamped. Write budget spent: 3 (git push, pr_create, report). Assignees and labels: none sent.",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "class: observation · reach: none · skills/objectstack-ai/SKILL.md MCP tool table omits the dataset pair MCP registers (registerDatasetTools); predates this card · carrier: none",
    "class: observation · reach: none · mcp PLATFORM_READ_ONLY_TOOL_NAMES left unchanged: deliberately partial, its pin is subset-only, and MCP's own registration of the pair already asserts readOnlyHint true; the runtime-bridge world hint now reads false for the pair from the registry · carrier: none"
    ]
    }


    Generated by Claude Code

  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

    ACCEPT → PR #33801 comment 6893778511 (ready + auto-merge, K=0). Contract review PASS 6893453882.

  10. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

    Landed: PR #33801 merged as b0056382. ACCEPT 6893778511, contract review PASS 6893453882. list_datasets and query_dataset are in PLATFORM_TOOLS_BY_PACKAGE['service-ai'], with chatbot.tool.* labels in all 11 built-in packs.

  11. added a commit that references this issue on Nov 16, 2026
    b005638
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

domain:specenhancementpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions