Skip to content

spec + i18n: register the ask agent tool get_record_history (cloud#4347) in PLATFORM_TOOLS_BY_PACKAGE and add its chatbot.tool label to every locale pack #32623

Closed

Description

@objectstack-fleet

repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

Filing gate: ④ the platform half of a cloud card (cloud#4347, cross-repo-coordination rule 1). The cloud PR objectstack-ai/cloud#4374 is otherwise complete and waits on this registration, then on a pin bump.

维护者速读

cloud 给问答助手加了一个只读工具 get_record_history:读当前用户有权看的那条记录的修改历史,用来「撤销上一次修改」,恢复仍然走确认卡。框架的平台工具名登记表要先列上这个名字,各语言包要加上它的显示名,cloud 的一致性测试才能通过。改动很小:一行登记加 14 个语言包里各一个标签。

Work

  1. packages/spec/src/system/constants/platform-tool-names.ts: add get_record_history to PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] (~L58-70 on main), following the file's own maintenance rule (its header).
  2. ui/packages/i18n/src/locales/*.ts (14 packs on main): add chatbot.tool.get_record_history beside open_record (en.ts ~L4853 has open_record: 'Open the record'). Suggested en: 'Read record history'. Translate per pack.
  3. Whatever conformance or ledger test in this repo pins the registry list (the registry header names it).

Clause-②: the dev measures. A new name in a published constant list widens it, so likely yes.

Acceptance

The name is listed and each locale pack carries the label. Then cloud's platform-tool-names-conformance.test.ts on #4374 passes after the pin bump that carries this change.

Reader: the lane owning packages/spec/src/system/constants (spec), with ui i18n in the same PR or a twin.

Dedupe: get_record_history → 0 hits in this repository (seat grep on main).

Activity

  1. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:spec · p2 · pm:queue (platform half of cloud#4347) · 2026-11-12T08:49Z

    ⛔ Not a claim.

    • Lane: domain:spec (packages/spec/src/system/constants/platform-tool-names.ts). The 14 ui/packages/i18n label lines ride the same PR under the cross-lane exception; the claim declares both surfaces.
    • Routing: cross-repo rule 1: the platform card carries the platform half; cloud PR objectstack-ai/cloud#4374 waits on it, then on a pin bump.
    • Grade: p2. One registration line plus one label per locale, following the file's own maintenance rule.

    Generated by Claude Code

  2. added
    area:ai
    domain:spec
    pm:queue
    priority:p2
    on Nov 12, 2026
  3. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · sunhaolin · session_017xRBcSbLCxEmyHf9upz3pz

    Claim: PM loop round 1
    Session: session_017xRBcSbLCxEmyHf9upz3pz (seat); dev = a cloud session (mode:cloud), its id posted on this card when created
    Account: sunhaolin
    Branch: claude/issue-32623-get-record-history-tool
    Worktree: objectstack-issue-32623 (the cloud container's own checkout)
    Domain: domain:spec
    Seat: domain:spec#2
    File surface: packages/spec/src/system/constants/platform-tool-names.ts (PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'], per the file header's maintenance rule), the in-repo test or ledger that pins that list (the header names it), ui/packages/i18n/src/locales/*.ts (one chatbot.tool.get_record_history label in each of the 13 packs beside open_record; cross-lane exception declared, triage 6819079464), a changeset (stop on breach; explain in the report)
    Container & model: S, mode:cloud (packages/spec/src plus another package = build-heavy, one card per container), model: opus (TIER_DEFAULT; --tier: no path-derived mandate); owes one CONTRACT_REVIEW_TIER review (packages/spec/src non-test), effort: medium
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (the platform half of cloud#4347, cross-repo rule 1)
    Thread-read: 6819079464
    Premise: holds (seat read on origin/main: get_record_history absent; open_record at en.ts:4853; 13 locale packs)
    Serial constraints cleared: none — no open PR touches platform-tool-names.ts or ui/packages/i18n/src/locales

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

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · sunhaolin · session_017xRBcSbLCxEmyHf9upz3pz

    Dispatched 2026-11-12T09:07Z (claim 6819375781): mode:cloud, dev session session_017xRBcSNTYTx2TpA25geuvV (outcome branch claude/issue-32623-get-record-history-tool, model opus). The seat archives the session after the card lands.

  6. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · sunhaolin · session_017xRBcSNTYTx2TpA25geuvV
    os-dev-report

    {
      "issue": 32623,
      "status": "done",
      "branch": "claude/issue-32623-get-record-history-tool",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/32668",
      "session": "session_017xRBcSNTYTx2TpA25geuvV",
      "premise_still_valid": true,
      "summary": "Added get_record_history to PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] in sorted position (after get_package) and named it in the group's doc comment (read-only, cloud#4347), per the file header's maintenance rule; added chatbot.tool.get_record_history to each of the 11 locale packs on main (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant; the claim said 13/14, the directory holds 11 and the parity suite iterates exactly those); changeset .changeset/32623-get-record-history-tool.md (@objectstack/spec + @object-ui/i18n patch, Clause-②: yes / Metadata-protocol: none line-leading in changeset and PR body). Clause-② measured: the built dist/system/index.d.ts declares PLATFORM_TOOLS_BY_PACKAGE as Readonly Record of string to readonly string[], so declaration bytes do not move; the widening is the published runtime value (PLATFORM_PROVIDED_TOOL_NAMES / isPlatformProvidedToolName accept one more name); line kept as yes. Labels sit in the registry's sorted slot (after get_package), a few lines above open_record rather than directly beside it.",
      "tests": "head 3f2b78433. pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/system/constants/platform-tool-names.test.ts: Test Files 1 passed, Tests 5 passed. cd ui && pnpm exec vitest run --maxWorkers=2 (plugin-chatbot toolLabels-locale-parity-7481, toolLabels-sentences-12724, tool-display-i18n + packages/i18n/): Test Files 105 passed (105), Tests 1931 passed, 13 skipped (first attempt 17 files failed on 'Failed to resolve entry for @objectstack/formula' until the i18n/plugin-chatbot dependency closure was built: pnpm --workspace-concurrency=2 --filter '@object-ui/i18n^...' --filter '@object-ui/plugin-chatbot^...' run build, lock VERDICT command-exit 0). Reverse check (one-off, committed first): deleting the ko label turned toolLabels-locale-parity-7481 red ('ko is missing chatbot.tool entries: expected [ get_record_history ] to deeply equal []', 1 failed | 16 passed), restored via git checkout HEAD --, blob hash matched HEAD, git diff HEAD empty. No ablation: no tested runtime behaviour changed, only data.",
      "gates": "node scripts/pm/dispatch-gates.mjs --commands at 3f2b78433 (after git fetch --deepen; first derivation on the shallow clone read a stale merge base) derived 79; all 79 run with exit codes captured before any pipe; --ran reconciliation: '79 derived famil(ies) accounted for — 78 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. 78 exit 0 (incl. check-adr-0087-registration --base origin/main, check-changeset-no-major --base origin/main, check-issue-citations, pnpm check:issue-citations, pnpm check:keyed-text-bounds, the spec check:* family, pnpm --dir ui exec vitest run scripts/). NOT MEASURED: pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (35 packages without dist/ in this container), CI builds the tree. check-plugin-teardown-shape --self-test first exit 3 (shallow clone lacked pinned fixture commit 621a4876), exit 0 after fetching it. keyed-text-bounds, nul-bytes, ui vitest scripts/, check-sdui-manifest rerun after the reverse-check window, all exit 0. Local-only: check-dev-prereqs exit 1 'workspace is not built' (container state). CI check-runs: in_progress at report time, not awaited.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/32668/assignees), and this report via post-stamped.mjs (POST /issues/32623/comments); git push not counted",
      "open_questions": [
        {
          "question": "packages/mcp/src/mcp-server-runtime.ts PLATFORM_READ_ONLY_TOOL_NAMES is hand-held and does not list the read-only get_record_history, so the MCP bridge gives it openWorldHint:false but no readOnlyHint. Add it?",
          "options": [
            "A leave as is: the set is a by-name fallback; the tool's own definition should source readOnlyHint",
            "B add get_record_history to the set in a separate mcp card"
          ],
          "recommendation": "A, because the file's own header says the hints should come from the tool definition and the name set is a fallback that only shrinks; outside this card's surface either way"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — ui/packages/i18n/src/locales/en.ts (and every pack) keeps the objectui#7481 comment saying five tool.* entries are 'NEWER than the registry'; all five are in the registry now (the parity test's own header says AHEAD_OF_PIN is empty), so the comment is stale prose; polish, no class"
      ],
      "deviations": "Hook guard blocked writes in the shared primary checkout; the first two edits (python) had landed there, so they were moved by patch file into worktree /home/user/objectstack-issue-32623 (primary checkout left detached at 1216abf1, then restored). Commit trailer pair written model-free per AGENTS.md (the harness reminder's model-named Co-Authored-By was not used). en label is 'Read the record history' (not the card's suggested 'Read record history') to match sibling style."
    }
  7. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · sunhaolin · session_017xRBcSbLCxEmyHf9upz3pz

    Release: claim 6819375781 (domain:spec#2, session_017xRBcSbLCxEmyHf9upz3pz; dev = cloud session session_017xRBcSNTYTx2TpA25geuvV, now archived) — the seat stands down on the account user's order 「当前任务处理完,合并后下班」 and 「开发完就收工,契约复审留一个下一任」 (2026-11-12T11:59Z). Development is done; the contract review is left to the next spec seat.
    Resume-from: claude/issue-32623-get-record-history-tool@3f2b78433b095ec330eeca9062b7764faa733ed8

    • State: PR feat(spec, i18n): register the ask agent tool get_record_history and label it in every locale pack #32668 (draft, Fixes #32623) at head 3f2b7843: get_record_history added to PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] (sorted, named in the group doc comment) and chatbot.tool.get_record_history in each of the 11 locale packs on main (the claim's "13/14" was the triage estimate; the registry lists 11). Dev report 6820150398; Clause-②: yes declared.
    • Owed before the queue (the next seat): one contract review at CONTRACT_REVIEW_TIER (packages/spec/src non-test, a widened published constant list) on the current head; the seat's ACCEPT also answers the dev's open question (PLATFORM_READ_ONLY_TOOL_NAMES in packages/mcp — the dev recommends A, leave as is: a by-name fallback; a separate mcp card if not). Then CI green → ## 席位核对 → land, then the cloud PR objectstack-ai/cloud#4374 needs the pin bump.
    • Out of scope noted by the dev: a stale objectui#7481 comment in the locale packs (polish, no class).
  8. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 12, 2026
  9. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#3 · os-elon-musk · session_016WV4d1T5HEokjRgR6vCBX8

    Claim: PM loop round 1 (takeover of release 6822991810 by domain:spec#2 · sunhaolin on the account user's stand-down order, so no live claim is displaced)
    Session: session_016WV4d1T5HEokjRgR6vCBX8
    Account: os-elon-musk
    Branch: claude/issue-32623-get-record-history-tool
    Worktree: objectstack-issue-32623
    Domain: domain:spec
    Seat: domain:spec#3
    File surface: PR #32668's committed file list at head 3f2b7843 (packages/spec/src/system/constants/platform-tool-names.ts, the 11 ui/packages/i18n/src/locales/*.ts packs, one changeset). No new surface is opened by this claim.
    Container & model: S, mode:subagent, model: CONTRACT_REVIEW_TIER (reason: contract-review.md face rule — packages/spec/src non-test is in the diff, so the owed review runs at this tier), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6822991810
    Premise: holds (the dev measured the widening as the published runtime value of PLATFORM_TOOLS_BY_PACKAGE, report 6820150398; no comment after the release)
    Serial constraints cleared: none — no other open claim names platform-tool-names.ts or the chatbot.tool.* locale keys
    Resume-from: claude/issue-32623-get-record-history-tool@3f2b78433b095ec330eeca9062b7764faa733ed8

    Next: the contract review at CONTRACT_REVIEW_TIER on the current head; the seat's ACCEPT answers the dev's open question (PLATFORM_READ_ONLY_TOOL_NAMES in packages/mcp); then CI → ## 席位核对 → landing, after which cloud#4374 owes the pin bump.

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

    @objectstack-fleet
    ContributorAuthor

    domain:spec#3 · os-elon-musk · session_016WV4d1T5HEokjRgR6vCBX8

    Landed · 2026-11-12T22:32Z

    Reading Value
    PR #32668 MERGED 2026-11-12T22:30:08Z as 386891ebc7 through the merge queue (second enqueue; the first was an inherited ejection, disposition 6837546172)
    This card closed completed by Fixes #32623

    State change: pm:dispatched removed in this stroke; the card is done. Owed elsewhere: objectstack-ai/cloud#4374 bumps its platform pin to a release carrying 386891ebc7 (cloud lane, after the next platform release).

  12. removed
    pm:dispatched
    on Nov 12, 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:specpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions