Repository navigation
Description
repo:objectstack#8 · sunhaolin · session_017xRBcSDjvWBXnmuJ45MTuf
Filing gate: ② (only the maintainer can decide; the parent card's last item, split off so PR #39822 can close #39695) · Source: fleet · Parent: #39695.
维护者速读
- 是什么:繁体中文的系统设置里,菜单写「職位成員」,点进去页面标题和正文写「崗位成員」。Console 繁体包里共 21 处用「崗位」,平台的繁体包(安全、审批、共享插件)都用「職位」。
- 为什么要你定:繁体包由简体自动转换生成,转换规则与官网共用(规则头注:改规则须两处同改),选哪个词是产品用语决定。
- 选项:A 在转换规则里加「岗位→職位」(推荐,Console 与官网同改,约 22 处随之变);B 平台繁体包改成「崗位」(约 35 处手改);C 维持现状。
- 要你做什么:回复 A / B / C。
Analysis
Mechanism. ui/packages/i18n/src/locales/zh-Hant.ts is generated from zh-Hans by gen:zh-hant (ui/packages/i18n/scripts/zh-hant.mjs, OpenCC s2twp plus global phrase overrides). OpenCC keeps 岗位 as 崗位. The platform's hand-written zh-Hant bundles say 職位 (plugin-security 10, plugin-sharing 9, plugin-approvals 3 occurrences in zh-Hant.objects.generated.ts), including the Setup menu entry nav_position_holders = 職位成員. Result: the zh-Hant 職位成員 entry opens a page headed 崗位成員 (setupAssignments.positionsTitle), and 21 Console strings say 崗位.
Governing text: ui/packages/i18n/scripts/zh-hant.mjs header: the rules are copied from the marketing site's converter "so the Console and the site write one product in one Traditional vocabulary … A change to the rules belongs in both places." AGENTS.md: translated platform bundle values are hand-written.
| Option | What changes | Effort |
|---|---|---|
| A (recommended) | Add a 岗位 → 職位 phrase override to zh-hant.mjs and to the site's src/lib/zhconvert.ts; regenerate the Console pack (~22 strings move to 職位) |
S, two repos |
| B | Hand-edit the platform zh-Hant bundles 職位 → 崗位 (~22 values + the menu entry) | S–M, one repo |
| C | Leave both terms | none |
Four axes.
- Real business need: a Traditional-Chinese admin sees two words for one concept on one click path (the exact defect class of Setup: renamed menu entries whose page still shows the old name (共享明细 and siblings) #39695). 職位 is the usual Taiwan term for a job position; 崗位 reads as mainland usage.
- Long-term soundness: A fixes it at the one conversion every Console string goes through, so new strings inherit it; B fights the generator's output in hand-written bundles and must be redone by every new platform string.
- Preventing AI mistakes: A leaves one rule; B leaves two sources that agents must keep aligned by hand, which they will not.
- Startup focus: both are small; C keeps a visible inconsistency on a core Setup path.
Recommendation: A. Dispatch shape after the ruling: one S card on ui/packages/i18n/scripts/zh-hant.mjs + regenerated zh-Hant.ts + a CONVERSION_CASES entry, with the site change filed for its owner; then positionsMenuTerm-39408.test.ts adds zh-Hant positionsTitle to MENU_LABELS.
Re-check: grep -c 崗位 ui/packages/i18n/src/locales/zh-Hant.ts (21 at filing) and grep -rc 職位 packages/plugins/*/src/translations/zh-Hant.objects.generated.ts.
Dedupe: 崗位 職位 (2 hits: #39695 open = parent, #39408 closed). No other open card.
Grading: area:ux · Bug · p2 (same family and level as #39695) · reach: zh-Hant Console, Setup → 職位成員, read in the bundles.
Activity
objectstack-fleet commentedon Dec 5, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Decision analysis at tier, re-run before presenting · 2026-12-05T22:37Z
维护者速读
Analysis
Served-tier:
CONTRACT_REVIEW_TIERAnalysed-by:
subagent of session_01Q4EjjMnyLqJdzuktEmRPXHRead at: objectstack
origin/maine37358096d(2026-12-05T22:02Z). Cloud not read as code (the decision does not touch it; a grep of the local cloud checkout for either term returned nothing).Background
A Traditional-Chinese admin clicks the Setup entry 職位成員 and lands on a page headed 崗位成員. The entry's label comes from the platform's hand-written zh-Hant app bundle; the page comes from the Console's zh-Hant pack, which is generated from the zh-Hans pack by OpenCC
s2twpplus a short list of phrase overrides. OpenCC converts 岗位 character by character to 崗位. The platform bundles were AI-translated per locale (#30512, precedent #17508) and chose 職位.PR #39822 (merged 2026-12-05, closes #39695) first hand-edited the generated title to 職位成員, then dropped that edit when it found the pack is generated, and left this one item for a ruling. #39408 aligned the zh-CN page with its menu (岗位成员) and is not affected by any option here.
Governing text
ui/packages/i18n/scripts/zh-hant.mjsheader (git show origin/main:ui/packages/i18n/scripts/zh-hant.mjs | sed -n 3,40p): "The rules are copied, not re-derived, so the Console and the site write one product in one Traditional vocabulary … A change to the rules belongs in both places." And: "⛔ Not a post-pass rewrite of the output" (a term change goes into the phrase overrides, not a search-and-replace on the generated file).TWP_PHRASE_OVERRIDES, all ofSTRADDLE_OVERRIDES). So a Console-first rule with the site following is an existing practice, and no gate compares the two rule lists.AGENTS.mdline 651 (**/translations/*.generated.tsrow): translated-locale values in the platform bundles are hand-written and kept by merge mode.docs/adr/0090-permission-model-v2-concept-convergence.mdline 208):position"is the exact translation of the enterprise-HR term (岗位)". This fixes the zh-CN word. It says nothing about Traditional Chinese.git grep -n -e 崗位 -e 職位 origin/main -- docs AGENTS.md content/docs/getting-started/glossary.mdx(only zh-CN 岗位 hits in ADR-0057, 0084, 0090, 0117, 0131 anddocs/design/permission-model.md); GitHub issue search崗位 職位(5 hits, none a ruling).Protocol statement
Does not change the metadata protocol, any spec schema or any API. Display text only, in one generator rule or in translated bundle values.
Premises, re-checked on
origin/mainorigin/mainsources reproduces the committed files byte for byteZH_HANT_TARGETSwithopencc-js@1.3.1git grep -n 職位成員 origin/main -- packages/platform-objects/src/apps/translations/zh-Hant.ts;git grep -n positionsTitle origin/main -- ui/packages/i18n/src/locales/zh-Hant.tsgit grep -c 崗位 origin/main -- ui/packages/i18n/srcplugin-approvalsmessages.ts2,plugin-securitybuiltin-positions.ts3,sys-user.page.ts2. Total 45 occurrences in 9 files, plus 4 occurrences in 2 pin testsgit grep -o 職位 origin/main -- packages | sort | uniq -cpackages/lint/src/validate-approval-approvers.user-text.tslines 172 and 298git grep -n 崗位 origin/main -- packagesgh api repos/objectstack-ai/www.objectos.ai/contents/src/lib/zhconvert.tsAdditional measurements the card does not have:
['崗位', '職位']inTWP_PHRASE_OVERRIDES: all 37 pinnedCONVERSION_CASESstill pass; exactly 28 lines change across the four generated catalogues; every changed line differs only by 崗位 → 職位; no 崗位 remains. The one other 崗 in the pack (暫無在崗人員, "nobody on duty") is untouched, correctly.git grep -o <term> origin/main -- ui/packages/i18n/src/locales/zh-Hant.ts 'ui/packages/i18n/src/namespaces/*/zh-Hant.ts'against'packages/**/zh-Hant*'. No open card covers them (issue search業務單元 業務單位: 0 hits). This card rules one word; the ruling will be read as the precedent for the others.examples/app-startertitle: 職位, and in hotcrm's contact docs). Under 職位, a zh-Hant tenant that also has a job-title field labelled 職位 sees one word for both. This is already true today on the platform side (45 places) and is the same overlap English has between "position" and "title/position"; it is a cost of the term, not of this card's mechanism.The concrete problem
One concept, two Traditional-Chinese words, split along a line the customer cannot see (which package served the string). The admin meets it on one click path (menu → page) and again between Setup forms (職位) and the invite, import, user-list and marketplace screens (崗位).
Options
Business reading. A: the product speaks the local word and the translation machine learns it once. B: the product keeps the mainland word, written in Traditional characters, because that is what the machine produces. C: accept a visible wording seam on the access-administration path.
Four axes
os-decision-facets
Prior rulings read:
崗位 職位,zh-Hant vocabulary Console platform bundles,業務單元 業務單位→ 5 + 8 + 0 hits; ADR-0090 (zh-CN term only), ruling F of [Decision] One locale list, one completeness rule — the long-term i18n regime across Console, platform metadata, cloud and mobile #29349 (generation, not vocabulary); thread: none (0 comments on the card).Recommendation
A. End state by ① alone: one Traditional vocabulary, owned by the conversion rules, with 職位 as the word a Taiwan enterprise admin expects for an HR position.
Self-check: 只看①选 A;②③④ 是否翻转:否. Effort is not a 3× gap in either direction (one PR each in this repository; A carries one extra small PR in the site repository).
Timing, set by ②④ and by the limit below, not by the letter: land the Console rule first. The converter already holds Console-first rules the site has not taken, so the site PR does not block this one.
After the ruling
If A: one S card, domain:ui. Add the override to
TWP_PHRASE_OVERRIDESand a['岗位成员', '職位成員']entry toCONVERSION_CASES; rungen:zh-hantand commit the two regenerated catalogues; hand-edit the two 崗位 lines inpackages/lint/src/validate-approval-approvers.user-text.ts; add zh-HantpositionsTitle: '職位成員'toMENU_LABELSinpositionsMenuTerm-39408.test.ts; changeset. File a card in the site repository for the same rule, asking its owner to grep the site's Simplified sources for 岗位 and for the straddle case first. Tell the hotcrm seat about its one doc line that says 崗位 (content/docs/reference/security-and-compliance.zh-Hant.mdxline 89). File one ① card for the three sibling terms, citing this ruling.If B: one S–M card, domain:server, hand-editing the 45 occurrences and the two pin tests;
pnpm check:i18nmust stay green; then the same test addition with 崗位成員.If C: close the card as not planned and note the exception in
positionsMenuTerm-39408.test.ts, which already documents it.Confidence gaps
origin/mainconverter with the pinned OpenCC version, outside the workspace.Related cards and PRs
Delta from the card's existing analysis:
objectstack-fleet commentedon Dec 5, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling: letter A · maintainer 「39526 三个都做。其他都接受你的建议」 · 2026-12-05T22:59Z
Maintainer ruling recorded: 職位 everywhere in zh-Hant, by one phrase rule 岗位 → 職位 in the Console converter (regenerate the two catalogues), plus the two hand-written 崗位 lines in the lint approver messages; the marketing site follows in its own PR.
Provenance
hotlong). Where: the triage seat's sessionsession_01Q4EjjMnyLqJdzuktEmRPXH, typed words, recorded within minutes. Words, verbatim: 「39526 三个都做。其他都接受你的建议」Next
needs-user-decisionoff,pm:queueon: this card is now the build card.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmPC9UyxNHfB2SRvzsr
Claim: PM loop round 1 · 2026-12-06T17:25Z · zone ost-T; file-level claim outside the zone lease on the seat's routing (seat session
session_01ADHkmPYzrxSKZTDFiBNRx7, project thread, 2026-12-06T17:24Z: "#39831: yes. Claim it with a file-level claim on the two lines in packages/lint/src/validate-approval-approvers.user-text.ts plus the ui/packages/i18n files, and start it.")Session:
session_01ADHkmPC9UyxNHfB2SRvzsrAccount:
os-steveArea: ost-T
Branch:
claude/issue-39831-zh-hant-position-termWorktree:
objectstack-issue-39831Domain:
domain:uiSeat:
repo:objectstack@os-steveFile surface:
ui/packages/i18n/scripts/zh-hant.mjs(one phrase override),ui/packages/i18n/src/locales/zh-Hant.tsandui/packages/i18n/src/namespaces/marketplace/zh-Hant.ts(regenerated, never hand-edited),ui/packages/i18n/src/__tests__/zh-hant-generated.test.ts(aCONVERSION_CASESentry),ui/packages/app-shell/src/views/setup/positionsMenuTerm-39408.test.ts(zh-HantpositionsTitlerow),packages/lint/src/validate-approval-approvers.user-text.ts(the two hand-written 崗位 lines only), one changeset. Stop on breach; explain in the report.Container & model:
S (one converter rule + regeneration, per a recorded ruling),mode:subagent,model: default (dispatch-gates --tier at ef68c6e6: "no path-derived mandate"),effort: medium (S mechanical regeneration plus pins)Clause-②: no
Metadata-protocol: none
Responsibility: platform Console zh-Hant pack (objectstack, generated by
ui/packages/i18n/scripts/zh-hant.mjs) | the platform's hand-written zh-Hant bundles already say 職位 | every zh-Hant admin opening Setup → 職位成員, todayThread-read: 7447226205
Premise: holds — ruling A recorded 7447226205 (maintainer 「39526 三个都做。其他都接受你的建议」);
崗位appears inzh-Hant.tsandmarketplace/zh-Hant.tsand inpackages/lint/src/validate-approval-approvers.user-text.tson ef68c6e (git grep -l 崗位).Pre-claim lane:
domain:ui(ui/packages/i18n/**,ui/packages/app-shell/**) pluspackages/lint/**(domain:specfile ownership) at file level on the seat's word abovePre-claim deps: none open (#39695 closed, PR #39822 merged)
Prior rulings read: ruling 7447226205 and analysis 7446934245 on this card;
check-prior-rulings.mjs --card 39831read 8 refs (#29428 open, no ruling on the zh-Hant word). The site's converter is a separate card in the site repository (not this claim).Serial constraints cleared:
check-handover.mjs --inflightat ef68c6e: no overlap read; #39918's claim names no path, read by hand (CI battery timeout, unrelated). PR #39955 (#39941) also regenerateszh-Hant.ts: a generated output, merged with the os-regen driver, the later lander regenerates.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmPC9UyxNHfB2SRvzsr
os-dev-report
{ "issue": 39831, "status": "done", "branch": "claude/issue-39831-zh-hant-position-term", "pr": "https://github.com/objectstack-ai/objectstack/pull/39973", "head": "1974655913c12036c65e04fe5fde9b6bc2485bfe", "session": "session_01ADHkmPC9UyxNHfB2SRvzsr (parent PM session; subagent)", "premise_still_valid": true, "summary": "Ruling 7447226205 letter A executed. One phrase override ['崗位','職位'] appended to TWP_PHRASE_OVERRIDES in ui/packages/i18n/scripts/zh-hant.mjs, marked as a Console addition not yet in the site's converter; two CONVERSION_CASES (岗位成员 -> 職位成員, 暂无在岗人员 -> 暫無在崗人員). Regenerated with gen:zh-hant: exactly 28 lines changed (zh-Hant.ts 21, marketplace/zh-Hant.ts 7), every changed line differs only by 崗位 -> 職位, no 崗位 left, 暫無在崗人員 untouched, developer and timesheet catalogues already current (no other generated target moved). Two hand-written 崗位 lines in packages/lint/src/validate-approval-approvers.user-text.ts now say 職位. Pins: zh-Hant positionsTitle added to MENU_LABELS parity; a new test in zh-hant-generated.test.ts. Card assignee not touched; PR assignee os-steve via pr_create.", "tests": "At head 19746559: `pnpm --dir ui exec vitest run packages/i18n/src/__tests__/zh-hant-generated.test.ts packages/app-shell/src/views/setup/positionsMenuTerm-39408.test.ts` -> Test Files 2 passed, Tests 16 passed (VERDICT command-exit 0). Ablation (on-disk delete of the override line, restored via git checkout HEAD, status clean): 5 failed in zh-hant-generated.test.ts (4 byte-for-byte catalogue cases + 'answers every pinned conversion case'), exit 1. `pnpm --filter @objectstack/lint test` -> 264 files passed, 10440 passed / 5 skipped; `pnpm --filter @objectstack/lint typecheck` exit 0 (check:test-typecheck OK); `pnpm --filter @object-ui/i18n type-check` exit 0 (after building its ui closure). All 39 CONVERSION_CASES pass (37 prior + 2 new).", "gates": "dispatch-gates --commands at 19746559 vs merge base ef68c6e6: 69 derived; `--ran` reconciliation exit 0: 64 run with exit 0 (incl. check:nul-bytes, check:issue-citations, check:published-files, check:cross-package-test-inputs, check:test-source-alias, check:docs-transcript-drift after building @objectstack/lint, `pnpm --dir ui exec vitest run scripts/` 172 files passed), 5 NOT-MEASURED: check-plugin-teardown-shape --self-test (shallow clone cannot reach pinned positive-control commit, exit 3), check:dual-build-cjs-loads and check:lean-entry-closure (need full build, exit 3), check:query-options-erasure and check:type-check-debt (repo-wide, exceeded a 280s local timeout, exit 124) -> CI. PR check-runs at head 1974655: at report time all gate-carrying jobs in_progress (Lint * , Type Check *, Check Changeset, Governed Surface Queue Guard, PR-body guards); opt-in dogfood/tarball skipped. CI convergence left to PM.", "line_budget": "+66/-34, 7 files, 100 changed lines (dispatch-gates), under 3000", "files_changed": [ ".changeset/39831-zh-hant-position-term.md", "packages/lint/src/validate-approval-approvers.user-text.ts", "ui/packages/app-shell/src/views/setup/positionsMenuTerm-39408.test.ts", "ui/packages/i18n/scripts/zh-hant.mjs", "ui/packages/i18n/src/__tests__/zh-hant-generated.test.ts", "ui/packages/i18n/src/locales/zh-Hant.ts", "ui/packages/i18n/src/namespaces/marketplace/zh-Hant.ts" ], "deviations": [ "The two CONVERSION_CASES entries live in ui/packages/i18n/scripts/zh-hant.mjs (where CONVERSION_CASES is defined; the dispatch placed it in the test file). The test file instead carries a new test pinning positionsTitle 職位成員, 暫無在崗人員 untouched, and no 崗位 in either catalogue. Both files are on the claimed surface.", "The ablation run of the two UI test files ran outside os-verify-lock (about 10 s); every other build/test went through the lock.", "One derived-gate batch overran the 10-minute foreground limit and the harness moved it to the background; I waited for it in the foreground to completion before going on; no process left running.", "Relay pr_create returned exit 6 UNCONFIRMED (read-back GET answered 502); a single REST read confirmed PR 39973 draft, head 1974655, assignee os-steve, body intact. No re-dispatch." ], "mcp_calls": "0", "api_writes": "3 relay writes in 2 relay strokes plus 3 git pushes: relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/39973/assignees); post-stamped report comment (POST /repos/objectstack-ai/objectstack/issues/39831/comments); git push x3 (probe, two commits)", "classifier_refusals": [], "open_questions": [], "l2_routing": "No contract review owed in my reading: display text only, no spec/Zod/API/authorable key; Clause-②: no, Metadata-protocol: none. Diff touches no governed surface.", "security_findings": "none", "out_of_scope_findings": [ "carrier: www.objectos.ai site card (separate repo, per ruling) · the same 岗位 -> 職位 rule plus the straddle check (站岗位置) · noted, not filed", "carrier: maintainer · sibling term splits 業務單元/業務單位, 共享/共用, 分配/指派 recorded as precedent on ruling 7447226205 · noted, not filed" ] }objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmRM92nyNXbcm2LJn1N
L1 at 2026-12-06T18:52Z: ACCEPT → PR #39973 comment 7462868713 (head
19746559).objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmPC9UyxNHfB2SRvzsr
Close-out · 2026-12-06T19:56Z · zone ost-T · PR #39973 merged 2026-12-06T19:36Z and closed this card by
Fixes. Delivered: one converter rule 岗位 → 職位 (28 generated lines) plus the two hand-written lint lines.pm:dispatchedoff. Left outside this repo, per ruling 7447226205: the marketing site's converter rule (its own repository and card).