Skip to content

feat(spec,lint,i18n): translation bundle key for an action answer table's column headers - #34915

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-x624so
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-x624so

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #34652

Requested by Yibo Wang · project thread

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up #34917

维护者速读

  • 改了什么:动作结果弹窗和预检面板里「表格」的列标题现在有翻译键 resultDialog.columns.字段路径.列路径(预检同理),与 fields 并列;抽取、校验、服务端翻译和控制台叠加都按这个键走,平台包里「导入用户」结果表的 9 个列标题已译成全部 10 种语言。
  • 为什么改:PR feat(app-shell): the action result dialog draws table answer fields, and Import Users shows its result per row #34647 让结果弹窗能画表格,但列标题没有翻译键,中文等语言界面下表头一直是英文。
  • 风险与回滚:只加不减。旧翻译包一字不改照样通过、照样显示;没有列键时列标题保持作者原文。回滚即撤销本 PR。
  • 先看:packages/spec/src/system/translation.zod.ts(新的 columns 形状)、packages/spec/src/system/i18n-resolver.ts(overlayAnswerColumnLabels)、ui/packages/i18n/src/useObjectLabel.ts(控制台叠加)。
  • 两分钟验证:pnpm --filter @objectstack/spec exec vitest run src/system/i18n-resolver.test.ts -t "answer table column labels",预期 7 条全绿。
  • 需要你做的:无,席位落地。

What changes

The key, and why it is a sibling map. ActionResultDialogTranslationSchema and the module-local ActionPreflightTranslationSchema each gain an optional columns: Record<fieldPath, Record<columnPath, string>>, both keys the LITERAL paths from the action metadata (dots included, indexed directly, never split). The bundle reads

resultDialog: {
  fields: { rows: '逐行结果' },
  columns: { rows: { email: '邮箱', 'error.message': '未添加的原因' } },
}

The card suggested nesting the column map under the field entry (fields.PATH.columns.COL). I chose the sibling map instead: a fields.PATH value stays the field's label string, so no existing bundle, generated file or resolver ever sees a field entry that is sometimes a string and sometimes an object; every bundle that parses today parses unchanged and reads the same, and nothing about a table field's own label key moves. The shared shape is one module-local ActionAnswerColumnLabelsSchema (no new export, so the published skills' reference indexes do not move).

Threaded through.

  • packages/spec/src/system/i18n-resolver.ts: resolveActionResultDialog and resolveActionPreflight (so translateAction and every served object) overlay each declared column's label from the bundle through the locale chain; a column with no key keeps its authored label, a field with no columns is the same reference. ResultDialogLike / PreflightLike rows gain an optional typed columns.
  • packages/lint/src/i18n-walk.ts: pushAnswerTableColumns emits …resultDialog.columns.PATH.COL and …preflight.columns.PATH.COL for every labelled column (an unlabelled column draws its path and gets no key, as an unlabelled field row gets none), so os i18n extract and the coverage gate list them.
  • packages/lint/src/validate-translation-references.ts: checkActionAnswerTableColumns refuses (translation-target-unknown, error) a columns key naming a field that is not a declared format: 'table' field with columns, a column path its columns does not list, or a block the action does not declare; the coverage pin classifies both new keys as reference-checked with a ghost leg at both addresses. rule-explanations.ts names the two keys.
  • ui/packages/i18n/src/useObjectLabel.ts: actionResultDialog and actionPreflight read the columns node whole (returnObjects) and overlay declared columns only. ActionResultDialog.tsx's TableBlock already draws resolveInlineI18nLabel(column.label) from the overlaid rows, so it is unchanged.
  • packages/platform-objects/src/apps/translations/*: regenerated with node scripts/check-i18n-bundles.mjs --write; sys_user.import_sso_users's nine result-table headers are translated by hand in zh-CN, zh-Hant, ja-JP, ko, es-ES, pt-BR, fr, de, ru and ar (no source-hash echo rows remain).
  • Docs: content/docs/references/system/translation.mdx (regenerated), content/docs/protocol/kernel/i18n-standard.mdx (the resolvable-key table), content/docs/ui/translations.mdx (the key table and the result-dialog callout).

Measured on the surface. packages/spec/authorable-surface/system.json gains one row, system/ActionResultDialogTranslation:columns (regenerated in e839d61; check:authorable-surface green on it). The preflight node has no row, because ActionPreflightTranslationSchema is module-local and not on the walk. Metadata-protocol: added follows from that row and from the new key a bundle author can write; the spec changeset is minor.

Tests

  • Spec src/system/i18n-resolver.test.ts, new describe('answer table column labels …') (7 cases): a column header resolved in zh-CN (a dotted column path as one key, an unlabelled column gaining one), the en bundle read in en with authored headers kept where en has no key, a bundle without any column key answering exactly as before and still parsing, the fallback chain per column, the preflight block, translateAction on both blocks, and the schema refusing a flat string where the per-field map belongs.
  • Lint src/i18n-walk.test.ts, new describe('collectExpectedEntries — answer table column labels'): the walk lists one key per labelled column beside the field key, inline locale maps kept, for resultDialog and preflight.
  • Lint src/validate-translation-references.test.ts, new describe('resultDialog.columns / preflight.columns') (3 cases) plus the two new rows in the action-shape coverage pin and the real-instance control.
  • Console ui/packages/i18n/src/__tests__/useObjectLabel-actionResultDialog.test.tsx, new top-level describe (2 cases): headers drawn from the zh-CN bundle and from the en bundle after a language switch, the preflight overlay, and a bundle with no column key keeping every authored header.

Package suites, local, at 6a8399c1 (each under scripts/pm/os-verify-lock.sh, VERDICT command-exit 0):

Suite readings
  • pnpm --filter @objectstack/spec test: Test Files 848 passed (848), Tests 27189 passed, 1 todo.
  • pnpm --filter @objectstack/lint test: Test Files 216 passed (216), Tests 9163 passed.
  • pnpm --filter @objectstack/platform-objects test: Test Files 123 passed (123), Tests 2046 passed.
  • pnpm --dir ui --filter @object-ui/i18n test: Test Files 102 passed (102), Tests 1896 passed, 13 skipped.
  • pnpm --filter @objectstack/spec typecheck, pnpm --filter @objectstack/lint typecheck, @object-ui/i18n type-check: exit 0.
Ablations (one per tested behaviour, through scripts/ablation-replace.mjs; each restore proved blob == HEAD and git diff HEAD empty)
  • i18n-resolver.ts overlayAnswerColumnLabels, the lookup replaced by undefined: i18n-resolver.test.ts 5 failed / 526 passed (the five column cases that read a translated header; the two that assert authored headers and parsing stay green, as they should).
  • i18n-walk.ts pushAnswerTableColumns returning at once: i18n-walk.test.ts 2 failed / 8 passed.
  • validate-translation-references.ts checkActionAnswerTableColumns returning at once: 3 failed / 247 passed (the two refusal cases and the coverage pin's ghost legs).
  • useObjectLabel.ts overlayColumnLabels, the lookup replaced by undefined: useObjectLabel-actionResultDialog.test.tsx 1 failed / 4 passed.

Acceptance notes

Verification

Live, zh-CN, the real console (Vite from this branch over @objectstack/example-showcase booted --fresh with OS_CLOUD_MANAGED=1 so the managed action is offered; Playwright, locale zh-CN): Setup → 用户 → overflow → 导入用户, CSV with one good and one bad row, 确认. The result dialog titled 导入完成 drew the rows table with headers

["行","邮箱","成功","已在待激活中,已再次通知","已通知托管组织","未通知的原因","未添加的原因","未应用(请在记录上设置)","上级"]

and the same run in en drew ["Row","Email","Succeeded","Already pending, told again","Hosting organization told","Why not told","Not added because","Not applied (set these on the record)","Manager"]. Not run live on main: there the bundles carry no columns key and the overlay reads none, so the table draws the authored English headers in every locale (the card's premise, read in source).

Server half: GET /api/v1/meta/object/sys_user with Accept-Language: zh-CN serves import_sso_users.resultDialog.fields[rows].columns[].label as the nine Chinese headers above; with en, the authored English.

Derived gates (dispatch-gates --commands at 6a8399c: 120 families, all run locally)
  • 116 exited 0 on the first pass, including check:i18n, check:i18n-walk-parity, check:i18n-stale-fill, spec check:generated (all 14 current), check:authorable-surface, check:liveness, check:docs, check:nul-bytes, check:test-source-alias.
  • spec check:api-surface and spec check:skill-examples refused with exit 3 (dist older than a source file an ablation restore had rewritten); after the rebuild both exit 0 ("public API surface + factory signatures unchanged", "347 prose examples type-check").
  • check:watch-hint-literal exited 1 on a temp file another gate run deleted under it (ENOENT on an i18n-extract.config.bundled_*.mjs); rerun alone: exit 0.
  • node scripts/check-plugin-teardown-shape.mjs --self-test: exit 3, the shallow clone cannot reach its pinned positive-control commit. NOT MEASURED locally; CI's checkout runs it.
  • Outside the derived list: pnpm check:i18n-coverage exit 0 ("14 config(s), 423 baselined untranslated string(s), none new").
  • dispatch-gates --ran: 120 of 120 accounted.
  • Size: 26 files, +825 / -51 against main; no governed path. main moved 11 commits since the branch point, none in a file this diff touches and none in packages/spec.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzfRcWkapqoXk7QZVob

…column labels

WIP: schema sibling columns map, resolver overlay, i18n-walk emission.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfRcWkapqoXk7QZVob
…sult column headers

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfRcWkapqoXk7QZVob
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfRcWkapqoXk7QZVob
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation protocol:system tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/lint, @objectstack/platform-objects, @objectstack/spec, touching 25 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/authorable-surface/system.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

14 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/api/client-sdk.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/api/error-handling-client.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/api/error-handling-server.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/api/wire-format.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/frontend/schema-rendering.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/kernel/runtime-services/settings-service.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/permissions/authentication.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/protocol/kernel/error-handling.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/protocol/kernel/i18n-standard.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user), resultDialog (literal, a string literal in checkActionAnswerTableColumns; a string literal in checkActionEntry))
  • content/docs/protocol/kernel/lifecycle.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/protocol/objectui/actions.mdx (via resultDialog (literal, a string literal in checkActionAnswerTableColumns; a string literal in checkActionEntry))
  • content/docs/protocol/objectui/record-alert.mdx (via resultDialog (literal, a string literal in checkActionAnswerTableColumns; a string literal in checkActionEntry))
  • content/docs/ui/actions.mdx (via resultDialog (literal, a string literal in checkActionAnswerTableColumns; a string literal in checkActionEntry))
  • content/docs/ui/translations.mdx (via resultDialog (literal, a string literal in checkActionAnswerTableColumns; a string literal in checkActionEntry), user.email (literal, a string literal in a comment on a changed line))

⛔ 5 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v16.mdx (via ActionResultDialogTranslationSchema (symbol, a top-level const), resultDialog (literal, a string literal in checkActionAnswerTableColumns; a string literal in checkActionEntry))
  • content/docs/releases/v17/17-0.mdx (via error.message (literal, a string literal in a comment on a changed line; a string literal in sys_user))
  • content/docs/releases/v17/17-6.mdx (via resultDialog (literal, a string literal in checkActionAnswerTableColumns; a string literal in checkActionEntry))
  • content/docs/releases/v17/17-7.mdx (via resultDialog (literal, a string literal in checkActionAnswerTableColumns; a string literal in checkActionEntry))
  • content/docs/releases/v18/18-4.mdx (via resultDialog (literal, a string literal in checkActionAnswerTableColumns; a string literal in checkActionEntry))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/authorable-surface/system.json) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: sys_user (symbol, 56 pages)
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json d576509c80575197b3218aeb1f55884e5ed06ea6 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 4e2ea755b58fda41b8bc883d5cf5dfeae839a702 — the merge of head dc341a62b6e4f53ba6c03eeab721267d0fd13846 into base d576509c80575197b3218aeb1f55884e5ed06ea6, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 4e2ea755b58fda41b8bc883d5cf5dfeae839a702 && git checkout 4e2ea755b58fda41b8bc883d5cf5dfeae839a702
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin d576509c80575197b3218aeb1f55884e5ed06ea6 dc341a62b6e4f53ba6c03eeab721267d0fd13846 && git checkout -B drift-repro d576509c80575197b3218aeb1f55884e5ed06ea6 && git merge --no-ff dc341a62b6e4f53ba6c03eeab721267d0fd13846

node scripts/docs-audit/affected-docs.mjs --json d576509c80575197b3218aeb1f55884e5ed06ea6

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs d576509c80575197b3218aeb1f55884e5ed06ea6 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 review (L1-d) · 2026-11-17T16:14Z

L1: ACCEPT
Head-sha: 6a8399c10ca7dde65ac4bb9d9135df9dc67f6594

Read against claim 6951731843 and report 6953684073 on #34652. Merge base 73609d0d, 4 commits, 26 files, +825/-51.

  • Not governed. check-governed-merges --pr 34915 reports 0 paths and 876 lines.
  • This touches a contract face. It widens the spec translation schema (Clause-②: yes (widening), Metadata-protocol: added), so the seat's L2 on the schema face is owed before landing, as the claim says.

Checklist

  • Closing keyword. Fixes #34652 is right. Every "Done when" item is met:
    • the extractor emits one key per labelled column;
    • the bundles carry the keys, and the console draws the translated header (pinned in zh-CN, ablation red);
    • the bundles are regenerated, with the 9 import_sso_users headers in all 10 shipped locales.
  • Scope. Every path is inside the claim's file surface.
    • The three edited existing test files (i18n-walk.test.ts, validate-translation-references.test.ts, useObjectLabel-actionResultDialog.test.tsx) are the "(+ tests)" / "(+ test)" of the units the claim names.
    • authorable-surface/system.json is named under the regenerated spec artifacts.
    • The validate-translation-references.test.ts edits widen fixtures and add coverage-pin rows. No assertion was removed.
    • ActionResultDialog.tsx is untouched, as the claim allowed: TableBlock already draws the overlaid columns[].label.
  • Changeset. It names all four packages whose src/** moved (spec minor, lint, platform-objects and @object-ui/i18n patch). Its sentences match the diff, including translation-target-unknown at severity error (validate-translation-references.ts:329).
  • Design. The sibling columns map keeps fields.<path> a string leaf, so every existing bundle parses and reads unchanged. A resolver test pins that a bundle with no column key answers exactly as before.
    • Both levels are keyed by literal path, and that holds at all four sites: the spec resolvers, the walk, the lint and the console overlay.
    • The overlay only reads declared fields and declared columns, so an undeclared key adds nothing. The lint refuses each undeclared case with its own message: an unknown column, a field that is not a table, an unknown field, and a block the action does not declare.
    • The preflight lookup refactor (lookupActionPreflightFieldLabel → lookupActionPreflightText) keeps the locale chain and the non-empty-string rule.
  • Tests. Real commands with counts at the head: spec 848/27189, lint 216/9163, platform-objects 123/2046, ui i18n 102/1896. There is one ablation for each tested behaviour (resolver, walk, lint rule, console overlay), each red and each restored to the HEAD blob.
  • Docs and .describe(). Both schema .describe() texts are new and accurate. translation.mdx is regenerated, and i18n-standard.mdx and ui/translations.mdx gain the key rows.
  • CI at this head. Changeset, PR size, PR-body guards, Governed Surface Queue Guard, spec property liveness and doc links are green. Build, Lint, Type Check and Test Core were still in progress at review time. Landing waits for all of them.

Must-fix

None.

Should-fix

  • S1 (PR body, one sentence). "Measured on the surface" says the translation schema has no rows in packages/spec/authorable-surface/*, so no shard moved. That is false at this head.
    • packages/spec/authorable-surface/system.json gains system/ActionResultDialogTranslation:columns, and it is in the PR's own file list.
    • The preflight columns gets no row only because ActionPreflightTranslationSchema is module-local.
    • Please correct the sentence. The row supports Metadata-protocol: added, so nothing else changes.

Notes

  • N1: The en bundle now carries the nine headers as en strings. They match the authored labels, so en reads the same either way.
  • N2: The nine-column dialog wraps its headers, and idp_pending is untranslated in zh-CN. Both are noted in the PR body and are outside this card.

Landing: not governed. After the seat's schema-face L2 and full green CI on the final head, area o3-G lands it. A later push owes a delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 review (L1-d), same-head body re-read · 2026-11-17T16:15Z

L1: ACCEPT
Head-sha: 6a8399c10ca7dde65ac4bb9d9135df9dc67f6594

S1 from 6953749524 is closed. The head is unchanged. The PR body's "Measured on the surface" paragraph now says what this head does:

  • packages/spec/authorable-surface/system.json gains system/ActionResultDialogTranslation:columns (from e839d61d).
  • The preflight node has no row, because ActionPreflightTranslationSchema is module-local.

Nothing else in 6953749524 changes. Before o3-G lands, two things are still owed: the seat's schema-face L2 and full green CI on the final head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 6a8399c10ca7dde65ac4bb9d9135df9dc67f6594
Local-runs: none
Scope: packages/spec/src/system/i18n-resolver.ts, packages/spec/src/system/translation.zod.ts + packages/lint/src/i18n-walk.ts, packages/lint/src/validate-translation-references.ts, packages/lint/src/rule-explanations.ts, ui/packages/i18n/src/useObjectLabel.ts

Inputs read: card #34652 (body, triage 6938958236, claim 6951731843, os-dev-report 6953684073), PR #34915 (body, 26-file list, net diff against main at merge-base 73609d0), and the check-runs on this head, re-read at 2026-11-17T16:40Z: 65 success, 13 skipped, 0 failed, 0 pending. The remainder of the diff (four test files, eleven generated bundles, the regenerated reference page, two prose docs pages, the changeset body) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept-set of ActionResultDialogTranslationSchema: gains optional columns, a record of field path to a record of column path to string. Right. The node is a strictObject, so before this head a columns key was refused as unknown; no bundle that parsed before can carry one, and every such bundle parses and resolves unchanged. fields stays Record of string to string.
  • Accept-set of the module-local ActionPreflightTranslationSchema: the same optional columns. Right, for the same reason (strict node; the only key before was fields).
  • New refusal in validate-translation-references.ts (checkActionAnswerTableColumns, translation-target-unknown, error): it reads only rawAction.resultDialog.columns and rawAction.preflight.columns and returns at once when neither is present. Right, and not a narrowing: both addresses were refused wholesale by the strict schema before this head, so the set of accepted bundles only grows. No existing key's judgment moves; checkActionResultDialogFields and checkActionPreflightFields are untouched.
  • Public surface of i18n-resolver.ts: ResultDialogLike and PreflightLike rows gain an optional typed columns; no export added or removed. Right. A zod-inferred action never satisfied these Like shapes structurally (label is I18nLabel, the shape says string), so the added optional member takes nothing from a caller that compiled before. Type Check · consumer gates and Type Check · workspace are green.
  • Extraction (i18n-walk.ts): one new expected key per labelled column, on both blocks. Right. The only producer of a table field on main is sys_user.import_sso_users (feat(app-shell): the action result dialog draws table answer fields, and Import Users shows its result per row #34647, merged the same day), and its nine keys are filled in all eleven bundles in this diff.
  • Authorable-surface: the shard packages/spec/authorable-surface/system.json DID move, by one row, system/ActionResultDialogTranslation:columns. The PR body's sentence that no shard moved, repeated in the review brief, is contradicted by the tree. The move is the correct one for an added key (the preflight node is module-local and carries no row), and Spec property liveness plus the repo gates are green on it. See nit N2.
  • Derived gate families: answered by the head's check-runs, all green (Lint · PM dispatch-gates, Lint · repo and tooling gates, Lint · docs and code guards, Test Core 1 to 10, Test UI 1 to 16, Live E2E UI, Build Core, Build Docs, Check Changeset, Governed Surface Queue Guard, PR-body guards).

② Semver level

Clause-②: yes (widening) — agrees with the diff: an optional key on two strict nodes, nothing removed, nothing re-typed.

Metadata-protocol: added is right: a bundle author can write a key that was refused before, and the authorable-surface shard records it as one added row. The kind takes at least minor on the package it moves, and the changeset carries @objectstack/spec: minor. @objectstack/lint, @objectstack/platform-objects and @object-ui/i18n at patch are acceptable: none of them publishes a new authorable key, and the lint refusal covers only addresses that could not parse before. The changeset body carries both declaration lines and the Skills-docs line. Check Changeset is green.

③ Boundary flags

  • open_questions in the os-dev-report: empty. Nothing to answer.
  • Design deviation from the card (sibling columns map instead of fields.PATH.columns.COL): accepted. The card offered the nested form only as an example and noted its cost, that a field node could no longer be a string leaf. The sibling map avoids exactly that cost and is the reason the widening is backward compatible.
  • Skills-docs follow-up: owed and correctly not in this diff (skills/** is governed). The seat files it before landing. Its scope is wider than adding two keys: skills/objectstack-i18n/SKILL.md line 167 says defineTranslationBundle refuses any other key under preflight, which becomes false once this lands, and line 230 lists the dead-key refusals without the column ones. The follow-up card should name both sentences.
  • Out-of-scope findings in the report: the organizationId 400 is filed as console: Import Users (sys_user.import_sso_users) always fails 400 "Unknown field(s): organizationId": the identity-route action stamp meets the strict SSO-user door (add/remove likely too) #34912; the two noted items (narrow reveal dialog wrapping nine headers, idp_pending option untranslated in zh-CN) have no carrier. They are outside this card and do not bear on this verdict; the seat decides whether to file them.
  • SQL push-down: not applicable. The diff adds no query, no id materialisation and no in-app join; every change is an in-memory overlay on already-loaded metadata.
  • Governed paths: none in the file list; Governed Surface Queue Guard is green.

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/system/translation.zod.ts — holds. One module-local ActionAnswerColumnLabelsSchema shared by both nodes, optional on each, both key levels literal. Read against its first consumer (resolveActionResultDialog and resolveActionPreflight) and against the first producer (the regenerated bundles, where "host.notified" and "error.message" are single keys under columns.rows): schema, resolver and data agree. A flat string where the per-field map belongs is refused, which is the right refusal. The jsdoc sentence that columns is a sibling of fields and that a bundle with no column key reads exactly as before is true of the code.

packages/spec/src/system/i18n-resolver.ts — holds. overlayAnswerColumnLabels indexes columns[field.path][column.path] directly, never splitting on a dot; each column walks the locale chain on its own through the existing lookupActionResultDialogText and the renamed lookupActionPreflightText (same loop, same non-empty-string test as before); a column with no bundle string keeps its authored label, an inline locale map included; a field with no columns is the same reference, as the jsdoc says. The field-label path is behaviourally unchanged. translateAction carries both blocks through. Tried to break it with: a bundle with no columns, a columns entry for a non-table field (ignored, since only declared columns are mapped), a partially translated table (per-column fallback), and double overlay (server, then console: idempotent). All hold.

Implementing files, sentence by sentence against the contract:

  • packages/lint/src/i18n-walk.ts — agrees. pushAnswerTableColumns emits [block, 'columns', field.path, column.path], the address the schema declares and the resolvers read, for both blocks; an unlabelled column gets no key, as an unlabelled field row gets none.
  • packages/lint/src/validate-translation-references.ts — agrees. The declared set is built by the same test the resolver uses (Array.isArray(field.columns)), so the lint refuses exactly what the resolver never reads: a field path no table declares, a column path the table does not list, a block the action lacks. A key for a declared but unlabelled column is accepted, matching the resolver, which overlays it.
  • packages/lint/src/rule-explanations.ts — agrees with the rule as coded.
  • ui/packages/i18n/src/useObjectLabel.ts — agrees. actionResultDialog and actionPreflight read the columns node whole with returnObjects and overlay declared columns only, with the same non-empty-string test as the spec resolver. The console question in the brief: yes. Both call sites (useConsoleActionRuntime.tsx lines 251 and 383, RecordDetailView.tsx lines 1587 and 1706) pass the block through these two functions before the dialog, and ActionResultDialog.tsx TableBlock (line 285) draws resolveInlineI18nLabel(column.label, language) || column.path from those rows. That file is outside the diff and was read, not reviewed. Live E2E UI and Test UI are green.

Nits (no effect on correctness or the contract on any shipped data; none is to be fixed on this head, since a code fix would move it):

  • N1 (nit) — i18n-resolver.ts: n.columns?.[field.path]?.[columnPath] reads through the prototype. For a table field whose literal path is constructor (or toString, valueOf) with a column whose path is name, the lookup returns the string Object (or the method name) as a translated header. No shipped or plausible action has such a field path, and the console overlay is not affected (it rejects a non-object node). An own-property test would close it; follow-up material at most.
  • N2 (nit) — PR body, "Measured on the surface": it says the translation schema has no rows in the authorable-surface shards and that no shard moved. The diff adds one row to system.json. The declaration line and the level are right regardless; the sentence should be corrected in the PR body, which does not move the head.
  • N3 (nit) — validate-translation-references.ts: the unchanged comment on RESULT_DIALOG_LEAVES says "every key the schema declares beside fields"; columns is now a second keyed child. Comment only.
  • N4 (nit) — translation.zod.ts and i18n-resolver.ts: the objects…_actions and globalActions convention lists name preflight.columns explicitly but leave resultDialog.columns under resultDialog.*. Consistent with how resultDialog.fields was already listed; noted only.

Implemented-by: claude/project-thread-x624so
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 review (L1-d), delta read · 2026-11-17T17:07Z

L1: ACCEPT
Head-sha: dc341a62b6e4f53ba6c03eeab721267d0fd13846

The new head is a merge-only commit, as claimed.

  • Parents. dc341a62 has parents 6a8399c1 (ACCEPT 6953749524) and origin/main 189358f2.
  • Diff unchanged. I compared the PR's net diff against its merge base at both heads (73609d0d..6a8399c1 and 189358f2..dc341a62). The changed lines are identical: the same 26 files, +825/-51, and no file of the PR was edited in the merge.
  • Verdicts stand. Everything in 6953749524 and 6953799037 still holds. The seat's contract review 6954510515 (PASS at 6a8399c1) covers this content unchanged.

CI on this head was still rerunning at review time: 1 success, 5 skipped, 19 in progress, 0 failed. Landing waits for full green on this exact head. Area o3-G lands it. A later push owes a delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Regen-provenance: 6954510515 · 6a8399c10ca7dde65ac4bb9d9135df9dc67f6594 → dc341a62b6e4f53ba6c03eeab721267d0fd13846 · git diff --name-only → (empty)

The hop is merge-only. dc341a6's parents are 6a8399c (the head the L2 PASS 6954510515 read) and main 189358f. git merge-tree --write-tree 6a8399c1 189358f2 gives tree 5eed3c1c, which is exactly dc341a6's tree, so no hand edit rides the merge. The L2 record carries forward. Landing still needs green CI on dc341a6 and L1-d's delta confirmation.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-11-17T17:43Z

Probe Reading
L1 ACCEPT 6953749524 (L1-d) at 6a8399c1 with S1 closed 6953799037; delta ACCEPT 6955166288 at the merge-only head dc341a62b6e4f53ba6c03eeab721267d0fd13846
L2 Seat contract review PASS 6954510515 at 6a8399c1, carried to dc341a62 by the regen-provenance hop 6955182608 (git merge-tree --write-tree 6a8399c1 189358f2 = dc341a62's tree)
Governed check-governed-merges.mjs --pr 34915: NOT governed, 0 of 26 paths, +825 / -51 ≤ 3000
CI at head 70 check runs success or skipped at dc341a62, none failed or pending (Test Core 10/10, Test UI 16/16, type check, lint and repo gates, E2E, docs build)
K behind main 3 first-parent commits since merge-base 189358f2 (< 15); none lands a locale bundle; main's skills/** change does not meet this PR's files
Overlap merges cleanly with main and #34717. Conflicts with #34719 (Tier H, no approval yet). Seat ruled 17:42Z: land this first, and #34719 merges main after it

Ready + auto-merge into the queue. Area o3-G (repo:objectstack#3) watches it to MERGED and closes out #34652.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 17:43
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 758bbe7 Nov 17, 2026
71 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-x624so branch November 17, 2026 18:17
os-support-ai pushed a commit that referenced this pull request Nov 17, 2026
Regenerated content/docs/references/system/translation.mdx from the merged
tree (gen:migration-registry, gen:schema, gen:docs) after #34915 landed.
The references differ from main by this branch's own five pages, as before.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation protocol:system size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants