Skip to content

Platform: user-facing refusal and advisory text comes back in the request's language, composed by its producer (ruling C on #32440, #32043) #32654

Open
4 of 5 issues completed

Description

@objectstack-fleet

domain:ui#1 · sunhaolin · session_017xRBcSf5S4Kkc7aL9t5DSd

Filing gate: ② a maintainer ruling's carrier. ⛔ Not a claim. Triage sets the lane, grade and split.

Ruling (maintainer, this seat's session, 2026-11-12 about 09:19 UTC), verbatim: 「32440 选C,32043 一起按C处理」. Option C of the analysis on #32440 (6819513436): "服务端按请求语言返回本地化的 advisory 文案(规则 id 不变);控制台、CLI、MCP 都直接得到译文。" #32043 asked the same question for error codes (os-zhuang, 6760104871): 「类似需求,是否建议服务端直接返回对应语言的错误消息。」

What the platform owes

Text the platform marks as addressed to the END USER comes back in the request's language, composed where it is produced. The machine code or rule id stays stable, and consumers render the text without a per-code key table of their own.

Readings on origin/main 1216abf1a

  • The carrier exists for errors: ApiErrorSchema.userMessage (packages/spec/src/api/contract.zod.ts ~line 93; EnhancedApiErrorSchema.userMessage in packages/spec/src/api/errors.zod.ts ~line 413) is "Producer-marked user-facing refusal text, verbatim". It was ruled on 2026-08-19 (objectui#5210). What it does not say today is which language that text is in.
  • The request's language is already parsed: requestLocale in packages/core/src/security/request-execution-context.ts (~line 161), from Accept-Language or ?locale.
  • Advisories have no such carrier: the runtime authoring gate's findings (packages/lint, e.g. security-private-no-readscope in validate-security-posture.ts) ride a 200 with English message/hint. grep -rn "messageKey\|message_key" packages/lint/src returns 0 hits. The console renders that text verbatim by design (ui/packages/app-shell/src/providers/saveAdvisoryToast.ts header).

Scope (for triage to split)

  1. Contract (spec lane): say in the spec that userMessage and an advisory's user-facing text are in the request's locale, with the fallback rule (the workspace default, then en). Give advisory findings a user-facing text field beside the stable rule id, or extend an existing one. Whether the catalog is a spec-shipped table or each producer's own is the spec lane's call within the ruling.
  2. Server: the save door's advisory findings and the userMessage producers compose their text in requestLocale.
  3. Consumers: the console stops substituting raw server prose (Studio: an unconfigured nav item vanishes from the navigation editor after reload while still counted as a pending draft; publish dialog shows raw type names in zh #32440's remaining half: saveAdvisoryToast.ts) and renders the localized text. console: the invite dialog names the Developer Edition member limit when cloud refuses DEVELOPER_ORGANIZATION_MEMBER_LIMIT_REACHED #32043's member-limit refusal (DEVELOPER_ORGANIZATION_MEMBER_LIMIT_REACHED) is raised by cloud. Under this ruling cloud composes its userMessage in the request's locale through the same contract, which is a repo:cloud card once (1) lands.

Waiting on this card

Dedupe: repo:objectstack-ai/objectstack is:issue localized error message request locale server → 43 hits; … advisory translate locale lint message → 75 hits. The nearest is #32278 (closed: 403s that carried no userMessage), which is about presence, not language. No card covers the language of producer text.

Sub-issues

Sub-issues

4 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. added
    enhancement
    on Nov 12, 2026
  2. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch (requested by domain:ui#1) → tracking parent · split into three layers · 2026-11-12T09:26Z

    ⛔ Not a claim. This parent is never dispatched.


    Generated by Claude Code

  3. added
    area:i18n
    priority:p1
    tracking
    on Nov 12, 2026
  4. objectstack-fleet commented on Nov 13, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: H14 · pm:blocking derived · 2026-11-13T12:20Z

    ⛔ Not a claim; grade and state unchanged. Open card(s) #32440 #32043 name this card on a line-leading Blocked-by:, so the derived cache is added. It comes off when they close or drop the line.

  5. added
    pm:blocking
    on Nov 13, 2026
  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: lane added → domain:server · p1 kept · 2026-11-16T15:08Z

    ⛔ Not a claim.

    Backlog re-grade: the card carried no lane, so no seat could claim it. It is the platform rule that user-facing refusal and advisory text comes back in the request's language, composed by its producer (ruling C on #32440 / #32043). Focus theme: zh-CN customers. The producers live in the server packages, so domain:server. It stays p1 and keeps pm:blocking.

  7. added
    domain:server
    on Nov 16, 2026
  8. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Regraded p1 → p2: p1 is now kept for queue jumps. The maintainer, in triage's session: 「以后我都会要求专门作有一个专题…p1 是不是应该留给真的需要插队的」. He then confirmed triage's review of every open p1 (「确认」). Development is dispatched by epic, and an epic orders its own work. p1 is kept for cards that must jump ahead of it: a regression users meet in a released version, a broken hosted first impression or core flow, data loss or a breach in normal use, or a release or customer blocker.

    Why this card: a tracking card for request-language refusal text; it advances like an epic, through its children. Any claim on the card is unchanged.

  9. added
    priority:p2
    and removed
    priority:p1
    on Nov 18, 2026
  10. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    2026-11-19T15:37Z · pm:blocking removed: the rules at 895dd437 retired the label (blocking is read from Blocked-by: lines by script; no blocking label is set). Grade and state unchanged.

  11. removed
    pm:blocking
    area:i18n
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxdomain:serverenhancementpriority:p2tracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions