Skip to content

An action answer's table column labels have no translation bundle key, so their headers stay English in every locale #34652

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC

Filing gate ① (class b): an out-of-scope finding from the dev report on #33187 (comment 6938771548, PR #34647); filed by area o2-B on the seat's word. Dedupe: column label translation, resultDialog columns i18n, table header bundle key, i18n-walk columns: no other card. The seat knocks triage.

Suggested-grade: p2 · domain:spec

维护者速读

  • 现象:PR feat(app-shell): the action result dialog draws table answer fields, and Import Users shows its result per row #34647 让动作结果弹窗能画「表格」,托管环境「设置 → 用户 → 导入用户」的结果用它逐行显示。但表头(列的 label)没有翻译键,中文和其他语言界面下表头都是英文。
  • 原因:契约把列的 label 声明为可翻译的 I18nLabel,但翻译抽取只为 resultDialog.fields.PATH 生成一个字符串键,控制台叠加翻译时也只按这个键读字符串,列没有自己的键。
  • 需要你做的:无。

Evidence

Change (for the spec lane to settle)

Define one bundle-key convention for a column label (for example resultDialog.fields.PATH.columns.COLPATH, which means the field node can no longer be a leaf string), then have the extractor, the resolver and the console overlay follow it, for resultDialog and preflight. Inline locale maps on platform objects are the other route; the dev recommends against it, since it splits the convention.

Done when

  • The extractor emits a key per column label, a translated bundle carries it, and the console draws the translated header (pinned in a non-English locale, ablation red).
  • The platform-object bundles are regenerated, and sys_user.import_sso_users's headers are translated in the shipped locales.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p1 · domain:spec · pm:blocked · 2026-11-17T05:01Z

    ⛔ Not a claim.

  3. added
    domain:spec
    pm:blocked
    priority:p1
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfRcWkapqoXk7QZVob

    Claim: PM loop round o3-G · 2026-11-17T14:58Z
    Session: session_01WGufzgh1zkZzDXL36ckWAG
    Thread session: session_01WGufzfRcWkapqoXk7QZVob
    Account: os-support-ai
    Branch: claude/project-thread-x624so (card-thread pinned branch: the harness lets the thread push only this name)
    Worktree: objectstack-issue-34652
    Domain: domain:spec
    Seat: repo:objectstack#3
    File surface: packages/spec/src/system/translation.zod.ts, packages/spec/src/system/i18n-resolver.ts (+ their tests), the regenerated spec artifacts (json-schema, authorable-surface shards, content/docs/references/**, liveness anchors if they rot), packages/lint/src/i18n-walk.ts, packages/lint/src/validate-translation-references.ts, packages/lint/src/rule-explanations.ts (+ tests), ui/packages/i18n/src/useObjectLabel.ts (+ test), ui/packages/app-shell/src/views/ActionResultDialog.tsx (table-block reader, only if the overlay cannot carry it), packages/platform-objects/src/apps/translations/*.generated.ts (regenerated), content/docs/protocol/kernel/i18n-standard.mdx, content/docs/ui/translations.mdx, root .changeset/
    Container & model: L, mode:thread, model: TIER_DEFAULT (dispatch-gates --tier at 73609d0d: no path-derived mandate; Clause-② suspect on translation.zod.ts and i18n-resolver.ts, so the seat runs the schema-face L2 at CONTRACT_REVIEW_TIER), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: objectstack packages/spec translation.zod.ts (no column key in the action translation node) + packages/lint i18n-walk.ts (emits resultDialog.fields.PATH only) + ui/packages/i18n useObjectLabel.ts (overlays fields only) | none | every non-English admin who runs sys_user.import_sso_users on a hosted environment (its 9 result-table headers render English); one producer today, every future table field on resultDialog or preflight
    Thread-read: 6938958236
    Premise: holds (card thread grep at 73609d0: translation.zod.ts:293 and :328 type fields as a string record; i18n-walk.ts pushActionResultDialog / pushActionPreflight push fields.PATH only; useObjectLabel.ts:261-270 overlayActionFieldLabels reads labels[field.path] as a string; i18n-resolver.ts resolveActionResultDialog / resolveActionPreflight overlay field labels only; ActionResultDialog.tsx TableBlock draws resolveInlineI18nLabel(column.label); check-prior-rulings --terms resultDialog,i18n-walk,bundle-key,column-label → 0 hits)
    Serial constraints cleared: none named (blocker #33187 / PR #34647 merged); overlap-check runs on the first push

    Lease o3-G (seat post #34584). Unblocked: PR #34647 merged at 2026-11-17T10:09Z.

  5. added
    pm:dispatched
    and removed
    pm:blocked
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzfRcWkapqoXk7QZVob
    os-dev-report

    {
      "issue": 34652,
      "status": "done",
      "branch": "claude/project-thread-x624so",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34915",
      "session": "session_01WGufzfRcWkapqoXk7QZVob",
      "premise_still_valid": true,
      "summary": "An answer table's column headers get a bundle key: a sibling map resultDialog.columns.FIELDPATH.COLPATH (and preflight.columns), both keys literal, so fields stays a string leaf and every existing bundle parses and reads unchanged. Threaded through the spec schema and resolvers (translateAction / served metadata), the i18n walk (extract lists a key per labelled column), the translation-reference lint (dead column keys refused as translation-target-unknown), the console useObjectLabel overlay, and the platform bundles (sys_user.import_sso_users's 9 headers translated in all 10 shipped locales). TableBlock needed no change: it already draws the overlaid columns[].label.",
      "tests": "At head 6a8399c1: spec test 848 files / 27189 passed; lint test 216 / 9163; platform-objects test 123 / 2046; ui i18n test 102 / 1896 (13 skipped); spec, lint typecheck and ui i18n type-check exit 0. Ablations via ablation-replace (restore blob == HEAD each): resolver overlay 5 failed/526; walk 2 failed/8; lint rule 3 failed/247; console overlay 1 failed/4. No dist path involved (all four suites import src). Live: console on a showcase boot with OS_CLOUD_MANAGED=1, zh-CN import result table headers read the 9 Chinese labels, en control reads English; served /meta sys_user in zh-CN carries the same 9.",
      "gates": "dispatch-gates --commands at 6a8399c1: 120 families run locally; 116 exit 0 first pass; spec check:api-surface and check:skill-examples exit 3 (stale dist after an ablation restore) then exit 0 after rebuild; check:watch-hint-literal exit 1 on a concurrent temp-file race, rerun exit 0; check-plugin-teardown-shape --self-test exit 3 on the shallow clone (NOT MEASURED, CI). check:i18n-coverage exit 0 (none new). --ran: 120 of 120 accounted. PR check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "1 — subscribe_pr_activity (claude-code-remote); no GitHub MCP write",
      "api_writes": "3 — relay: label-write claim (comment + labels + assignee on #34652), pr_create #34915, this os-dev-report comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: console Import Users on a cloud-managed boot answers 400 Unknown field(s): organizationId (runtime action-execution.ts identity-route organizationId stamp vs plugin-auth pending-sso-users.ts:614) · filed by the seat as #34912",
        "carrier: none · noted in PR Acceptance notes: nine-column result table wraps headers in the narrow reveal dialog; sys_user source option idp_pending untranslated in zh-CN"
      ]
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Seat note: follow-ups from the #34915 L2 · 2026-11-17T16:44Z

    The L2 contract review passed on #34915 (record 6954510515). These items are outside this card. They are for the filer to file or drop; none of them blocks landing.

    • The skills docs go stale when feat(spec,lint,i18n): translation bundle key for an action answer table's column headers #34915 lands. skills/objectstack-i18n/SKILL.md line 167 says defineTranslationBundle refuses any other key under preflight, which stops being true. Line 230 lists the dead-key refusals without the two new columns ones. The skills-docs follow-up needs both lines, beyond adding the two keys.
    • A nine-column answer table wraps its headers in the narrow reveal dialog. This was noted in the dev report and not measured by the seat.
    • The idp_pending option is untranslated in zh-CN. This was noted in the dev report.
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgNCAXyGfBQFZBwixH

    Delivered · 2026-11-17T18:19Z

    PR #34915 merged to main at 758bbe75b and closed this card (Fixes). An action answer's table column labels now have a translation bundle key, so their headers follow the caller's locale instead of staying English. The bundle schema accepts the key, the i18n walk and the reference lint know it, the resolver reads it, and the console's action-result dialog reads the translated header. The generated platform bundles and the translations docs carry it.

    Reviews: L1-d ACCEPT 6953749524, with a delta ACCEPT 6955166288 on the merge-only head; seat contract review PASS 6954510515, carried forward by 6955182608. Left for others: the Skills-docs follow-up is #34917. pm:dispatched and lease:o3-G removed in this stroke.

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

Metadata

Metadata

Assignees

Labels

domain:specenhancementfindingpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions