You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcp: list_objects and describe_object serve labels and descriptions in the caller's locale, as the REST metadata door does #34872
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic). The maintainer set who files this epic's cards, in this session's chat, 2026-11-17, verbatim: 「你应该负责立卡,对方只是派发处理」. The gap was reported to this session by the dispatching seat repo:objectstack#3 on #34659 (comment 6947101471); the filer did not re-read the code behind it. Source: that seat's contract review on PR #34814, record 6947074946.
Why
A business user asking in Chinese falls back to the object tools when no metric answers, and the client is shown English labels and descriptions for an app that has Chinese ones. The REST metadata door translates the same text per request.
Evidence
Neither MCP door localizes list_objects / describe_object; the REST /meta object door translates objects.NAME.label and .description through translateMetadataDocument.
ADR-0149 D2 binds list_datasets only, so this is a gap, not a breach of a ruled line.
Both doors return object and field labels, option labels and descriptions in the caller's locale, by the path REST uses, never a second translation routine.
A pin for each door: a translated label under the locale, the source label without one.
Done when
describe_object on a translated example app returns the bundle's labels under Accept-Language: zh-CN.
First touch (R1197, 14:5xZ): p1 · domain:server → pm:queue.
Themes: zh-CN customers and MCP (in focus), with a named user effect. A business user asking in Chinese who falls back to the object tools is shown English labels and descriptions, for an app that has Chinese ones. The REST door already translates the same text. So p1.
Claim: PM loop round 1 · 2026-11-17T15:04Z
Session: session_01WGufzgNCAXyGfBQFZBwixH
Account: os-support-ai
Branch: claude/issue-34872-mcp-object-tools-locale
Worktree: objectstack-issue-34872
Domain: domain:server
Seat: repo:objectstack#3
File surface: packages/runtime/src/domains/mcp.ts (HTTP listObjectSummaries / describeObject), packages/mcp/src/stdio-data-bridge.ts and packages/mcp/src/mcp-server-runtime.ts (stdio twins), the REST translation exports they reuse in packages/rest/src/** only if an existing translator needs exporting (no second routine), new card-named tests, root .changeset/ (stop on breach; explain in the report)
Container & model: M, mode:subagent (area o3-G), model: TIER_DEFAULT (dispatch-gates --tier on packages/runtime + packages/mcp paths: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card (epic #34659 child: a gap ADR-0149 D2 does not rule, per the card)
Thread-read: 6951506643
Premise: holds (area code read at origin/main fc5913e: HTTP listObjectSummaries (packages/runtime/src/domains/mcp.ts:1029-1049) serves o.label ?? o.name and the authored description off the served object with no translation, and describeObject (:1117-1126) projects describeServedObject over the untranslated served definition; the same file's loadDatasets (:1541-1558) already localizes with translateMetaList + metaRequestLocale for this request; the stdio bridge localizes datasets to the i18n service's default locale (packages/mcp/src/stdio-data-bridge.ts:1424-1458, #34787) and serves objects untranslated. The live reading on a translated example app decides.)
Serial constraints cleared: o3-E holds PR #34881 (/mcp/skill render) and #34763 (server matcher, no PR yet) on the MCP door: overlap-check before every push against both; no other in-flight claim of this seat on packages/mcp or runtime domains/mcp.ts
Pre-claim lane: domain:server — packages/runtime/src/domains/mcp.ts, packages/mcp/**; routed to area o3-G by seat 3 (15:03Z)
Pre-claim deps: no Blocked-by:; related #34721 (descriptions, merged path), #34787 (stdio datasets locale)
Prior rulings read: list_objects,describe_object,labels,descriptions,locale,metadata,door → 210 hits; ADR-0106 D3 (mask after cache, schema per locale) and D5 (every schema-serving outlet masked: translation must apply to the object as the caller is served it, never re-open a masked field); ADR-0156 D3 (translation into the caller's locale computed per request); ADR-0149 D2 binds list_datasets only (the card: a gap, not a breach); ADR-0061 D2, ADR-0096 D4, ADR-0098 §1, ADR-0045 §3 keyword-only; thread: triage 6951506643 only.
Lease o3-G (seat post #34584); child of epic #34659. Route: reuse the REST door's object translation (translateMetadataDocument / translateMetaList + metaRequestLocale) on the HTTP door for this request's locale, and the stdio bridge's existing default-locale reading for its twin; object and field labels, option labels and descriptions; source label without a locale or bundle entry.
{
"issue": 34872,
"status": "done",
"branch": "claude/issue-34872-mcp-object-tools-locale",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34922",
"session": "session_01WGufzgNCAXyGfBQFZBwixH",
"premise_still_valid": true,
"summary": "Both MCP object tools now serve object label/description, field label/description (bundle `help` key) and option labels in the caller's locale. They use the REST /meta door's own translateMetaList and add no second routine. The HTTP door (packages/runtime/src/domains/mcp.ts, inCallerLocale plus a shared metaTranslationSources that loadDatasets now also uses) reads this request's Accept-Language via metaRequestLocale. The stdio door (packages/mcp/src/stdio-data-bridge.ts, inServedLocale plus a shared defaultLocaleSources) uses the i18n default locale, as #34787's datasets do. Translation runs on the object as the caller is served it (after the ADR-0106 mask), so masked fields stay absent with their text; names, option values and the answer shape are unchanged (Clause-② no, Metadata-protocol none, patch changeset). Done-when measured live on app-crm over HTTP MCP with Accept-Language zh-CN. describe_object crm_opportunity answered 'Opportunity' / English stage options at fc5913e11. At 5334bf961 it answers '商机' / '与客户关联的潜在销售机会。' / stage options '初步接洽, 需求确认, 方案报价, 赢单', identical to REST /meta/object under zh-CN. mcp-server-runtime.ts needed no change: describeServedObject receives the translated object. Deviations: (1) the live readings booted app-crm with `pnpm --filter @objectstack/example-crm dev --fresh -p 38472`, not `pnpm dev:crm`, because check-dev-prereqs refuses unless every workspace package is built and only the crm closure was built; (2) overlap-check was not run before the first two pushes (the empty-branch probe and the WIP commit), only before the PR opened, when it was clean; (3) the PR-body signature is a plain-text line above the footer, not an HTML comment (see open_questions).",
"tests": "New: packages/runtime/src/domains/mcp-object-locale-34872.test.ts (real SecurityPlugin/ObjectQL/SqlDriver through the /mcp entry) 5/5; packages/mcp/src/stdio-data-bridge.object-locale-34872.test.ts (real tools over the stdio bridge, securityDoubleFor) 5/5. With the siblings at 5334bf961: mcp 3 files/13 tests passed (34872+34721+dataset-locale), runtime 2 files/9 tests passed. Whole packages at 2ba60e904: `pnpm --filter @objectstack/mcp test` Test Files 70 passed (70), Tests 1246 passed (1246); `pnpm --filter @objectstack/runtime test` Test Files 615 passed (615), Tests 11415 passed | 23 skipped (11438); lock VERDICT command-exit 0 both. `pnpm --filter @objectstack/mcp --filter @objectstack/runtime typecheck` exit 0 (incl. check:test-typecheck). Ablation, 4 legs via scripts/ablation-replace.mjs, src subjects imported relatively so no dist involved, each anchor 1 to 0 and restored blob == HEAD with empty git diff HEAD: HTTP skip-translation b4a8eb66b4e3 to 7199ebfa2457, Tests 3 failed | 2 passed (5); HTTP translate-declared-not-served to 15a308b1cfbe, 1 failed (masked case at toBeUndefined); stdio skip f4f5d631df30 to cf940693b548, 3 failed; stdio translate-declared to c1f5e4a46e50, 1 failed (masked case). test:repo not run locally (diff touches no repo-project test), declared to CI.",
"gates": "Local: dispatch-gates --commands (tree objectstack-ai/objectstack @2ba60e904, merge base fc5913e11) derived 68 commands, all 68 run: 66 exit 0 (incl. check:nul-bytes, check:test-source-alias, check:cross-package-test-inputs, check:doc-authoring, check:issue-citations, check:empty-changeset, check:adr-0087-registration, check:changeset-no-major). 2 exit 3, NOT MEASURED: check:dual-build-cjs-loads (PREREQUISITE NOT MET, only the example-crm closure is built, 14 packages lack dist) and check-plugin-teardown-shape.mjs --self-test (shallow clone cannot reach the pinned control commit; checker-health only). --ran: 68 derived, 68 run, 0 NOT-MEASURED, 0 UNRUN. Exit codes captured by redirect-then-capture. overlap-check --branch: VERDICT clean exit 0 (origin/main 13e0305c33, 0 PR heads meet the file set); with --pr=34881: merges cleanly, VERDICT clean exit 0. CI at report time (head 2ba60e904): 23 check-runs, Check Changeset, Lint (all lanes), Type Check (4 lanes), Governed Surface Queue Guard and PR-body guards in_progress; opt-in, queue-only and schedule jobs skipped. CI convergence is PM's.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — (1) pr_create through the fleet-write relay: POST /repos/objectstack-ai/objectstack/dispatches (request fw-20261117T161802Z-28f984, run 44124182312 success), which executed POST /repos/objectstack-ai/objectstack/pulls (draft #34922) and POST /repos/objectstack-ai/objectstack/issues/34922/assignees (os-support-ai). Read-back: 9314 bytes sent, 9314 stored, identical. (2) this os-dev-report via post-stamped: POST /repos/objectstack-ai/objectstack/issues/34872/comments. Plus 3 git pushes (empty-branch probe, WIP, changeset). These are not REST writes.",
"open_questions": [
{
"question": "The dispatch asked for an HTML-comment signature `signed: ...` as the very last PR-body line. os-dev.md forbids dev-written HTML comments (only the harness attribution first line is exempt) and wants the footer block last. I wrote the signature as a plain-text line just above the footer. Which is the standard?",
"options": [
"A keep plain-text signature line above the footer (os-dev.md as written)",
"B amend os-dev.md to exempt the seat's signed comment as the last line"
],
"recommendation": "A, because os-dev.md says it wins over the dispatch text and the sanitizer risk it names applies to any tag-shaped fragment"
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #34659 · The stdio MCP resources objectstack://objects and objectstack://objects/{name} (packages/mcp/src/mcp-server-runtime.ts buildObjectListResource/buildObjectSchemaResource) still serve the authored text. Same gap as this card, but the card names the two tools only. Noted in Acceptance notes, not filed.",
"carrier: none · A field that authors inlineHelpText gets the bundle's help translation on inlineHelpText, and its description stays in the source language (translateObject's slot rule in @objectstack/spec/system). MCP serves description only, so that field's description is untranslated on both MCP doors. This is the shared translator's documented rule. Noted only.",
"carrier: none · With no Accept-Language, HTTP now serves the i18n default (en) bundle's values. app-crm's en bundle relabels amount to 'Deal Value' and close_date to 'Expected Close', away from the authored labels. REST /meta does the same, so this is parity and the observation is about the example bundle. Noted only."
]
}
PR #34922 merged to main at 46991d0e6 and closed this card (Fixes). MCP list_objects and describe_object now serve object and field labels, option labels and descriptions in the caller's locale. They use the same translateMetaList routine the /meta door uses: Accept-Language, then ?locale=, then the i18n default on HTTP, and the i18n default locale on stdio, matching list_datasets. Translation runs on the object as the caller is served it, so a masked field stays absent. Names and option values never change, and the publish-gate passes still judge the authored definition.
Worth knowing (L1-c note N1, no card owed): an HTTP caller that sends no Accept-Language now gets the default locale's bundle text, as /meta already did. A label can move with no locale sent, for example app-crm's amount reads "Deal Value". pm:dispatched and lease:o3-G removed in this stroke.
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1197, 14:5xZ): p1 · domain:server →
pm:queue.Themes: zh-CN customers and MCP (in focus), with a named user effect. A business user asking in Chinese who falls back to the object tools is shown English labels and descriptions, for an app that has Chinese ones. The REST door already translates the same text. So p1.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgNCAXyGfBQFZBwixH
Claim: PM loop round 1 · 2026-11-17T15:04Z
Session:
session_01WGufzgNCAXyGfBQFZBwixHAccount:
os-support-aiBranch:
claude/issue-34872-mcp-object-tools-localeWorktree:
objectstack-issue-34872Domain:
domain:serverSeat:
repo:objectstack#3File surface:
packages/runtime/src/domains/mcp.ts(HTTPlistObjectSummaries/describeObject),packages/mcp/src/stdio-data-bridge.tsandpackages/mcp/src/mcp-server-runtime.ts(stdio twins), the REST translation exports they reuse inpackages/rest/src/**only if an existing translator needs exporting (no second routine), new card-named tests, root.changeset/(stop on breach; explain in the report)Container & model:
M,mode:subagent(area o3-G),model: TIER_DEFAULT (dispatch-gates --tier on packages/runtime + packages/mcp paths: no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect card (epic #34659 child: a gap ADR-0149 D2 does not rule, per the card)Thread-read: 6951506643
Premise: holds (area code read at origin/main fc5913e: HTTP
listObjectSummaries(packages/runtime/src/domains/mcp.ts:1029-1049) serveso.label ?? o.nameand the authored description off the served object with no translation, anddescribeObject(:1117-1126) projectsdescribeServedObjectover the untranslated served definition; the same file'sloadDatasets(:1541-1558) already localizes withtranslateMetaList+metaRequestLocalefor this request; the stdio bridge localizes datasets to the i18n service's default locale (packages/mcp/src/stdio-data-bridge.ts:1424-1458, #34787) and serves objects untranslated. The live reading on a translated example app decides.)Serial constraints cleared:
o3-E holds PR #34881 (/mcp/skill render) and #34763 (server matcher, no PR yet) on the MCP door: overlap-check before every push against both; no other in-flight claim of this seat on packages/mcp or runtime domains/mcp.tsPre-claim lane:
domain:server—packages/runtime/src/domains/mcp.ts,packages/mcp/**; routed to area o3-G by seat 3 (15:03Z)Pre-claim deps: no
Blocked-by:; related #34721 (descriptions, merged path), #34787 (stdio datasets locale)Prior rulings read: list_objects,describe_object,labels,descriptions,locale,metadata,door → 210 hits; ADR-0106 D3 (mask after cache, schema per locale) and D5 (every schema-serving outlet masked: translation must apply to the object as the caller is served it, never re-open a masked field); ADR-0156 D3 (translation into the caller's locale computed per request); ADR-0149 D2 binds
list_datasetsonly (the card: a gap, not a breach); ADR-0061 D2, ADR-0096 D4, ADR-0098 §1, ADR-0045 §3 keyword-only; thread: triage 6951506643 only.Lease
o3-G(seat post #34584); child of epic #34659. Route: reuse the REST door's object translation (translateMetadataDocument/translateMetaList+metaRequestLocale) on the HTTP door for this request's locale, and the stdio bridge's existing default-locale reading for its twin; object and field labels, option labels and descriptions; source label without a locale or bundle entry.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgNCAXyGfBQFZBwixH
os-dev-report
{ "issue": 34872, "status": "done", "branch": "claude/issue-34872-mcp-object-tools-locale", "pr": "https://github.com/objectstack-ai/objectstack/pull/34922", "session": "session_01WGufzgNCAXyGfBQFZBwixH", "premise_still_valid": true, "summary": "Both MCP object tools now serve object label/description, field label/description (bundle `help` key) and option labels in the caller's locale. They use the REST /meta door's own translateMetaList and add no second routine. The HTTP door (packages/runtime/src/domains/mcp.ts, inCallerLocale plus a shared metaTranslationSources that loadDatasets now also uses) reads this request's Accept-Language via metaRequestLocale. The stdio door (packages/mcp/src/stdio-data-bridge.ts, inServedLocale plus a shared defaultLocaleSources) uses the i18n default locale, as #34787's datasets do. Translation runs on the object as the caller is served it (after the ADR-0106 mask), so masked fields stay absent with their text; names, option values and the answer shape are unchanged (Clause-② no, Metadata-protocol none, patch changeset). Done-when measured live on app-crm over HTTP MCP with Accept-Language zh-CN. describe_object crm_opportunity answered 'Opportunity' / English stage options at fc5913e11. At 5334bf961 it answers '商机' / '与客户关联的潜在销售机会。' / stage options '初步接洽, 需求确认, 方案报价, 赢单', identical to REST /meta/object under zh-CN. mcp-server-runtime.ts needed no change: describeServedObject receives the translated object. Deviations: (1) the live readings booted app-crm with `pnpm --filter @objectstack/example-crm dev --fresh -p 38472`, not `pnpm dev:crm`, because check-dev-prereqs refuses unless every workspace package is built and only the crm closure was built; (2) overlap-check was not run before the first two pushes (the empty-branch probe and the WIP commit), only before the PR opened, when it was clean; (3) the PR-body signature is a plain-text line above the footer, not an HTML comment (see open_questions).", "tests": "New: packages/runtime/src/domains/mcp-object-locale-34872.test.ts (real SecurityPlugin/ObjectQL/SqlDriver through the /mcp entry) 5/5; packages/mcp/src/stdio-data-bridge.object-locale-34872.test.ts (real tools over the stdio bridge, securityDoubleFor) 5/5. With the siblings at 5334bf961: mcp 3 files/13 tests passed (34872+34721+dataset-locale), runtime 2 files/9 tests passed. Whole packages at 2ba60e904: `pnpm --filter @objectstack/mcp test` Test Files 70 passed (70), Tests 1246 passed (1246); `pnpm --filter @objectstack/runtime test` Test Files 615 passed (615), Tests 11415 passed | 23 skipped (11438); lock VERDICT command-exit 0 both. `pnpm --filter @objectstack/mcp --filter @objectstack/runtime typecheck` exit 0 (incl. check:test-typecheck). Ablation, 4 legs via scripts/ablation-replace.mjs, src subjects imported relatively so no dist involved, each anchor 1 to 0 and restored blob == HEAD with empty git diff HEAD: HTTP skip-translation b4a8eb66b4e3 to 7199ebfa2457, Tests 3 failed | 2 passed (5); HTTP translate-declared-not-served to 15a308b1cfbe, 1 failed (masked case at toBeUndefined); stdio skip f4f5d631df30 to cf940693b548, 3 failed; stdio translate-declared to c1f5e4a46e50, 1 failed (masked case). test:repo not run locally (diff touches no repo-project test), declared to CI.", "gates": "Local: dispatch-gates --commands (tree objectstack-ai/objectstack @2ba60e904, merge base fc5913e11) derived 68 commands, all 68 run: 66 exit 0 (incl. check:nul-bytes, check:test-source-alias, check:cross-package-test-inputs, check:doc-authoring, check:issue-citations, check:empty-changeset, check:adr-0087-registration, check:changeset-no-major). 2 exit 3, NOT MEASURED: check:dual-build-cjs-loads (PREREQUISITE NOT MET, only the example-crm closure is built, 14 packages lack dist) and check-plugin-teardown-shape.mjs --self-test (shallow clone cannot reach the pinned control commit; checker-health only). --ran: 68 derived, 68 run, 0 NOT-MEASURED, 0 UNRUN. Exit codes captured by redirect-then-capture. overlap-check --branch: VERDICT clean exit 0 (origin/main 13e0305c33, 0 PR heads meet the file set); with --pr=34881: merges cleanly, VERDICT clean exit 0. CI at report time (head 2ba60e904): 23 check-runs, Check Changeset, Lint (all lanes), Type Check (4 lanes), Governed Surface Queue Guard and PR-body guards in_progress; opt-in, queue-only and schedule jobs skipped. CI convergence is PM's.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — (1) pr_create through the fleet-write relay: POST /repos/objectstack-ai/objectstack/dispatches (request fw-20261117T161802Z-28f984, run 44124182312 success), which executed POST /repos/objectstack-ai/objectstack/pulls (draft #34922) and POST /repos/objectstack-ai/objectstack/issues/34922/assignees (os-support-ai). Read-back: 9314 bytes sent, 9314 stored, identical. (2) this os-dev-report via post-stamped: POST /repos/objectstack-ai/objectstack/issues/34872/comments. Plus 3 git pushes (empty-branch probe, WIP, changeset). These are not REST writes.", "open_questions": [ { "question": "The dispatch asked for an HTML-comment signature `signed: ...` as the very last PR-body line. os-dev.md forbids dev-written HTML comments (only the harness attribution first line is exempt) and wants the footer block last. I wrote the signature as a plain-text line just above the footer. Which is the standard?", "options": [ "A keep plain-text signature line above the footer (os-dev.md as written)", "B amend os-dev.md to exempt the seat's signed comment as the last line" ], "recommendation": "A, because os-dev.md says it wins over the dispatch text and the sanitizer risk it names applies to any tag-shaped fragment" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: #34659 · The stdio MCP resources objectstack://objects and objectstack://objects/{name} (packages/mcp/src/mcp-server-runtime.ts buildObjectListResource/buildObjectSchemaResource) still serve the authored text. Same gap as this card, but the card names the two tools only. Noted in Acceptance notes, not filed.", "carrier: none · A field that authors inlineHelpText gets the bundle's help translation on inlineHelpText, and its description stays in the source language (translateObject's slot rule in @objectstack/spec/system). MCP serves description only, so that field's description is untranslated on both MCP doors. This is the shared translator's documented rule. Noted only.", "carrier: none · With no Accept-Language, HTTP now serves the i18n default (en) bundle's values. app-crm's en bundle relabels amount to 'Deal Value' and close_date to 'Expected Close', away from the authored labels. REST /meta does the same, so this is parity and the observation is about the example bundle. Noted only." ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgNCAXyGfBQFZBwixH
Delivered · 2026-11-17T17:16Z
PR #34922 merged to
mainat46991d0e6and closed this card (Fixes). MCPlist_objectsanddescribe_objectnow serve object and field labels, option labels and descriptions in the caller's locale. They use the sametranslateMetaListroutine the/metadoor uses:Accept-Language, then?locale=, then the i18n default on HTTP, and the i18n default locale on stdio, matchinglist_datasets. Translation runs on the object as the caller is served it, so a masked field stays absent. Names and option values never change, and the publish-gate passes still judge the authored definition.Worth knowing (L1-c note N1, no card owed): an HTTP caller that sends no
Accept-Languagenow gets the default locale's bundle text, as/metaalready did. A label can move with no locale sent, for example app-crm'samountreads "Deal Value".pm:dispatchedandlease:o3-Gremoved in this stroke.