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
Filing gate: ① a defect, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7123598133, item 2). Source: seat 3's ux-A dev on #36504 (PR #36858). It existed before that PR.
What happens
A label can be authored as an inline locale map, for example { en: 'Orders', 'zh-CN': '订单' }. When a builder renames such an item in design mode in the source language, the save writes the new text as a plain string over the whole map, and every other locale's value is lost from the stored metadata.
reach: reported by the dev, not measured in a browser. It reaches builders renaming in the source language an item whose label is an inline locale map, which is uncommon. Packages usually keep translations in locale packs.
Expected
A source-language rename over an inline locale map replaces only the source-language entry and keeps the other locales' values.
Acceptance
The design-mode rename write path (menus and record tabs) updates only the source-language entry of an inline locale-map label.
A test renames such a label in the source language and reads back every other locale's value unchanged.
Dedupe: open issues for a rename over an inline locale-map label return none. #36504 is the related parent.
Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size S.
Rationale: ux · Bug · Severe (stored label translations are lost) · rare configuration (an inline locale-map label renamed in the source language) · evidence reported by the dev, not measured. The table gives p2. The values can be re-entered, and the loss stays within one tenant. Seat 3 takes the card, as its request said.
Premise corrected · area a4-U · 2026-11-24T16:23Z · authorized by the seat session session_01QSeKYpEsWWE9Y5YtSsDgqZ (seat repo:objectstack#4, message to this zone at 2026-11-24T16:22Z: narrow to the menu rename, readings below as evidence)
Original premise: a source-language design-mode rename of a menu item or a record tab whose label is an inline locale map writes a plain string over the whole map.
Readings at origin/maina73edb3 (unchanged on these paths at 8e4ac50):
Menu: ui/packages/app-shell/src/layout/DesignModeMenu.tsx:636-641 sets patch.label to the typed string and patchEntry replaces entry.label wholesale; nothing in patchEntry / splitLabelEdits (designModeMenuModel.ts:782-815) merges into a map. labelGoesToTranslation (designModeMenuModel.ts:753-762) sends a source-language rename to the stored label only when the served label equals the stored one (JSON.stringify compare). Whether translateApp serves an inline map as a resolved string — which would route the rename to a translation item and keep the map — is not measured; the dev measures it before writing code.
Record tabs: relatedLists[].label is z.string().min(1).optional() (packages/spec/src/data/object.zod.ts:1366); an inline locale map is not a legal value there, so the record-tab half has no stored map to lose.
Corrected scope: the menu rename only (app navigation label is I18nLabelSchema, packages/spec/src/ui/app.zod.ts:333, which admits an inline map). Goal unchanged. Acceptance reads: a source-language rename over an inline locale-map menu label replaces only the source-language entry and keeps the other locales' values; a test pins it.
If the measurement shows the map already survives (the rename routes to a translation item), the premise is falsified: the card is released with that reading, not built elsewhere.
Claim: PM loop round 1 · area a4-U · 2026-11-24T16:24Z
Session: session_01QSeKYmRepQK9DkZeU7F53D
Account: os-justin
Branch: claude/issue-36876-menu-rename-locale-map
Worktree: objectstack-issue-36876
Domain: domain:ui
Seat: repo:objectstack#4
Area: a4-U
File surface: ui/packages/app-shell/src/layout/ (design-mode menu rename: DesignModeMenu.tsx, designModeMenuModel.ts, designModeMenuSave.ts), a new test file named for this card, one patch changeset. Record tabs out of scope (premise correction 7137601229) (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier at 8e4ac50: no path-derived mandate), effort: high (reason: S but not mechanical — a precondition to measure and a write-merge design, M treatment)
Clause-②: no
Metadata-protocol: none
Responsibility: the platform's own code (ui/packages/app-shell design-mode menu save, objectstack) carries the defect | no platform path merges one locale into an inline-map label today (no write helper; resolveI18nLabel is read-side only) | a builder renaming, in the source language, a menu item whose stored label is an inline locale map; uncommon, unmeasured — the dev counts inline-map navigation labels in examples and showcase
Thread-read: 7137601229
Premise: corrected 7137601229
Serial constraints cleared: none — no open PR touches ui/packages/app-shell/src/layout/DesignModeMenu* or designModeMenu* (42 open PR file lists read now); no other card in this zone touches app-shell
Pre-claim lane: ui/** — this seat's whole-repo lane
Pre-claim deps: no Blocked-by:; parent #36504's PR #36858 is merged
Prior rulings read: labelgoestotranslation,inlinelocalemap,i18nlabel,splitlabeledits → 0 hits in ADRs/AGENTS.md; thread: none; surface: 5 ruling-shaped lines, all on the routing rule "ruling (4) of objectstack#36363, relaxed by objectstack#36504" (DesignModeMenu.tsx:24-25, designModeMenuModel.ts:743, designModeMenuSave.ts:445): a source-language rename over an entry shown by its stored label goes to the stored label, any other to a translation. This card keeps that routing and changes only how the stored write treats an inline map. Repo: objectstack-ai/objectstack
{
"issue": 36876,
"status": "done",
"branch": "claude/issue-36876-menu-rename-locale-map",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37056",
"session": "session_01QSeKYmRepQK9DkZeU7F53D",
"premise_still_valid": true,
"summary": "PRECONDITION (measured before any code): translateApp (packages/spec/src/system/i18n-resolver.ts, translateNav) copies each nav node and replaces label only when the catalog holds apps.APP.navigation.ID.label, so an inline locale-map label is served as the map itself; labelGoesToTranslation then finds served JSON-equal to stored and routes a source-language rename to the stored label. A throwaway test (discarded, never committed) ran the stored app through translateApp (with no bundle, and with a bundle translating another node; read in en and zh-CN): all 4 cases served {en:'Orders','zh-CN':'订单'}, and saveAppMenu stored the plain string 'Sales orders'. The premise HOLDS. FIX: splitLabelEdits (designModeMenuModel.ts) merges a stored-label rename into an inline-map label through Studio's existing nav-label writers renamedLabel/clearedLabel (navItemLabel.ts, which wrap setLocalized/clearLocalized from @object-ui/i18n). No new export, and the key choice is not copied. A cleared name drops only that entry. Plain strings behave as before, and the routing is unchanged. splitLabelEdits gains a 5th argument, shownIn (the session language), which prepareAppMenuSave passes as input.labels.language. PM mechanism assumption 2 was FALSIFIED: a write helper already existed (setLocalized/clearLocalized, and app-shell's renamedLabel/clearedLabel), so the dispatch's 'small local helper' was not built. SOURCE-KEY CHOICE: the entry replaced is the one the editor showed for the SESSION language, not the deployment's sourceLocale code: the exact tag, else the bare language (en under en-US), else a same-script sibling; a map with none gains an entry under the session tag. This keeps read and write symmetric: labelLanguageOf maps 'EN-us' to the deployment code 'en', and keying by that code could write 'en' while an en-US reader is shown an 'en-US' entry. REACH: 0 inline-map navigation labels in examples/** (showcase included) at 6a5b50dd (crm 0/9, todo 0/9, multi-package 0/11, showcase 0/58 label: lines in app files); this count is recorded in the PR body.",
"tests": "At head 6a5b50dd. New top-level describe in the shared harness ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-36363.test.ts with 6 pins: the served label is the map itself (via translateApp); {en:'Orders','zh-CN':'订单'} renamed in en to 'Sales orders' stores {en:'Sales orders','zh-CN':'订单'} with no translation write; an en-US session over an en key; a map without a source entry gains en; a cleared name keeps only zh-CN; CONTROL: a plain string stays a plain string. Model test call sites were updated for the new argument. Scoped app-shell run under lock (13 files importing designModeMenu*/DesignModeMenu/navItemLabel): 'Test Files 13 passed (13) · Tests 235 passed (235)', VERDICT command-exit 0. Ablation (src is the resolution path, so no build was needed): scripts/ablation-replace.mjs replaced the merge-branch condition with false, anchor 1 -> 0, blob dd3d8692 -> a9d96821; '-t 36876' gave '4 failed | 2 passed' (the 4 map pins went red, e.g. received \"label\": \"Sales orders\"; the served-reading pin and the CONTROL stayed green, as expected). Restore: blob == HEAD dd3d8692 and git diff HEAD empty. DECLARED NARROWING: the full app-shell suite (2425 files) was started, then stopped to release the shared lock (others were queued); the full suite is declared to CI Test UI.",
"gates": "Local, at 6a5b50dd, each exit captured before any pipe: all 38 'dispatch-gates --commands' families exit 0; '--ran' reconciliation: '38 derived, 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code)'. pnpm check:query-options-erasure and pnpm check:type-check-debt hit my 280 s timeout (exit 124) on a contended box; both were rerun with no timeout and exited 0 ('query-options-erasure ratchet holds' and 'check-type-check-coverage --re-measure: OK — 0 raw tsc error(s)'). pnpm --dir ui exec vitest run scripts/ (seven @objectstack packages built first, as Test UI does): 'Test Files 172 passed | 2 skipped (174)', VERDICT command-exit 0. overlap-check --branch=claude/issue-36876-menu-rename-locale-map: exit 0, 'origin/main: merges cleanly', 'VERDICT clean exit 0'. @object-ui/app-shell type-check: NOT MEASURED locally. Reason: the @object-ui/* deps were not built in this worktree, so every error is TS2307 or a TS7006 that follows from it, and none is in designModeMenuModel.ts or designModeMenuSave.ts; it is declared to CI Type Check UI. PR check-runs at 6a5b50dd, read once at report time: success for Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · tooling self-tests, PR-body guards, Test Core, Type Check · source gates, Live E2E UI, Dogfood Regression Gate, Build UI Deps and Plan Test UI shards; in_progress for Test UI 1-9/16, Type Check UI, Lint UI, Build & E2E UI, Type Check · workspace/debt ledger/consumer gates, Lint · CI release & engine gates, Lint · PM dispatch-gates and Lint · scoped query-options erasure/slot lookup.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /issues/37056/assignees os-justin; read-back 7201 bytes sent and 7201 stored, identical); post-stamped os-dev-report comment (POST /issues/36876/comments). Two git pushes as well (empty-branch probe, then 6a5b50dd); these are not REST.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"line_budget": "6 files, +103/-5 (dispatch-gates count); skills/** untouched",
"deviations": "(1) The full app-shell suite and the app-shell type-check were narrowed, as declared above; both are left to CI. (2) My first background app-shell run passed vitest flags after a bare '--'. I stopped it by its own process group before it reached tests and reran it correctly. (3) Two gates timed out under my own 280 s timeout and were rerun to exit 0 (see gates). (4) The test went into the existing shared harness as a top-level describe, not a new file, per AGENTS.md's shared-harness rule (the dispatch allowed this). (5) The dispatch's suggested 'small local helper' was not written, because the shared writer already exists. Commit trailers are the model-free pair.",
"files_changed": [
".changeset/36876-menu-rename-locale-map.md",
"ui/packages/app-shell/src/layout/DesignModeMenu.tsx",
"ui/packages/app-shell/src/layout/designModeMenuModel.ts",
"ui/packages/app-shell/src/layout/designModeMenuSave.ts",
"ui/packages/app-shell/src/layout/__tests__/designModeMenuModel-36363.test.ts",
"ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-36363.test.ts"
]
}
Delivered · area a4-U · 2026-11-24T18:25Z · PR #37056 merged as faf1d5f (L1 ACCEPT 7140072389)
A design-mode menu rename in the source language over an inline locale-map label now replaces only the entry shown and keeps every other language; a plain-string label behaves as before; the translation routing is unchanged.
Scope as corrected in 7137601229: menus only (record-tab labels are z.string() in the spec, so no map is stored there). Nothing remains on this card.
pm:dispatched removed with the close; domain:ui, area:ux stay.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:ux·domain:ui·priority:p2· Bug ·pm:queue· size S.Rationale: ux · Bug · Severe (stored label translations are lost) · rare configuration (an inline locale-map label renamed in the source language) · evidence reported by the dev, not measured. The table gives p2. The values can be re-entered, and the loss stays within one tenant. Seat 3 takes the card, as its request said.
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Premise corrected · area a4-U · 2026-11-24T16:23Z · authorized by the seat session
session_01QSeKYpEsWWE9Y5YtSsDgqZ(seat repo:objectstack#4, message to this zone at 2026-11-24T16:22Z: narrow to the menu rename, readings below as evidence)origin/maina73edb3 (unchanged on these paths at 8e4ac50):ui/packages/app-shell/src/layout/DesignModeMenu.tsx:636-641setspatch.labelto the typed string andpatchEntryreplacesentry.labelwholesale; nothing inpatchEntry/splitLabelEdits(designModeMenuModel.ts:782-815) merges into a map.labelGoesToTranslation(designModeMenuModel.ts:753-762) sends a source-language rename to the stored label only when the served label equals the stored one (JSON.stringifycompare). WhethertranslateAppserves an inline map as a resolved string — which would route the rename to a translation item and keep the map — is not measured; the dev measures it before writing code.relatedLists[].labelisz.string().min(1).optional()(packages/spec/src/data/object.zod.ts:1366); an inline locale map is not a legal value there, so the record-tab half has no stored map to lose.labelisI18nLabelSchema,packages/spec/src/ui/app.zod.ts:333, which admits an inline map). Goal unchanged. Acceptance reads: a source-language rename over an inline locale-map menu label replaces only the source-language entry and keeps the other locales' values; a test pins it.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Claim: PM loop round 1 · area a4-U · 2026-11-24T16:24Z
Session:
session_01QSeKYmRepQK9DkZeU7F53DAccount:
os-justinBranch:
claude/issue-36876-menu-rename-locale-mapWorktree:
objectstack-issue-36876Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-U
File surface:
ui/packages/app-shell/src/layout/(design-mode menu rename:DesignModeMenu.tsx,designModeMenuModel.ts,designModeMenuSave.ts), a new test file named for this card, onepatchchangeset. Record tabs out of scope (premise correction 7137601229) (stop on breach; explain in the report)Container & model: S, mode:subagent, model: default (dispatch-gates --tier at 8e4ac50: no path-derived mandate), effort: high (reason: S but not mechanical — a precondition to measure and a write-merge design, M treatment)
Clause-②: no
Metadata-protocol: none
Responsibility: the platform's own code (
ui/packages/app-shelldesign-mode menu save, objectstack) carries the defect | no platform path merges one locale into an inline-map label today (no write helper;resolveI18nLabelis read-side only) | a builder renaming, in the source language, a menu item whose stored label is an inline locale map; uncommon, unmeasured — the dev counts inline-map navigation labels in examples and showcaseThread-read: 7137601229
Premise: corrected 7137601229
Serial constraints cleared: none — no open PR touches
ui/packages/app-shell/src/layout/DesignModeMenu*ordesignModeMenu*(42 open PR file lists read now); no other card in this zone touches app-shellPre-claim lane:
ui/**— this seat's whole-repo lanePre-claim deps: no
Blocked-by:; parent #36504's PR #36858 is mergedPrior rulings read: labelgoestotranslation,inlinelocalemap,i18nlabel,splitlabeledits → 0 hits in ADRs/AGENTS.md; thread: none; surface: 5 ruling-shaped lines, all on the routing rule "ruling (4) of objectstack#36363, relaxed by objectstack#36504" (
DesignModeMenu.tsx:24-25,designModeMenuModel.ts:743,designModeMenuSave.ts:445): a source-language rename over an entry shown by its stored label goes to the stored label, any other to a translation. This card keeps that routing and changes only how the stored write treats an inline map. Repo: objectstack-ai/objectstackobjectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 36876, "status": "done", "branch": "claude/issue-36876-menu-rename-locale-map", "pr": "https://github.com/objectstack-ai/objectstack/pull/37056", "session": "session_01QSeKYmRepQK9DkZeU7F53D", "premise_still_valid": true, "summary": "PRECONDITION (measured before any code): translateApp (packages/spec/src/system/i18n-resolver.ts, translateNav) copies each nav node and replaces label only when the catalog holds apps.APP.navigation.ID.label, so an inline locale-map label is served as the map itself; labelGoesToTranslation then finds served JSON-equal to stored and routes a source-language rename to the stored label. A throwaway test (discarded, never committed) ran the stored app through translateApp (with no bundle, and with a bundle translating another node; read in en and zh-CN): all 4 cases served {en:'Orders','zh-CN':'订单'}, and saveAppMenu stored the plain string 'Sales orders'. The premise HOLDS. FIX: splitLabelEdits (designModeMenuModel.ts) merges a stored-label rename into an inline-map label through Studio's existing nav-label writers renamedLabel/clearedLabel (navItemLabel.ts, which wrap setLocalized/clearLocalized from @object-ui/i18n). No new export, and the key choice is not copied. A cleared name drops only that entry. Plain strings behave as before, and the routing is unchanged. splitLabelEdits gains a 5th argument, shownIn (the session language), which prepareAppMenuSave passes as input.labels.language. PM mechanism assumption 2 was FALSIFIED: a write helper already existed (setLocalized/clearLocalized, and app-shell's renamedLabel/clearedLabel), so the dispatch's 'small local helper' was not built. SOURCE-KEY CHOICE: the entry replaced is the one the editor showed for the SESSION language, not the deployment's sourceLocale code: the exact tag, else the bare language (en under en-US), else a same-script sibling; a map with none gains an entry under the session tag. This keeps read and write symmetric: labelLanguageOf maps 'EN-us' to the deployment code 'en', and keying by that code could write 'en' while an en-US reader is shown an 'en-US' entry. REACH: 0 inline-map navigation labels in examples/** (showcase included) at 6a5b50dd (crm 0/9, todo 0/9, multi-package 0/11, showcase 0/58 label: lines in app files); this count is recorded in the PR body.", "tests": "At head 6a5b50dd. New top-level describe in the shared harness ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-36363.test.ts with 6 pins: the served label is the map itself (via translateApp); {en:'Orders','zh-CN':'订单'} renamed in en to 'Sales orders' stores {en:'Sales orders','zh-CN':'订单'} with no translation write; an en-US session over an en key; a map without a source entry gains en; a cleared name keeps only zh-CN; CONTROL: a plain string stays a plain string. Model test call sites were updated for the new argument. Scoped app-shell run under lock (13 files importing designModeMenu*/DesignModeMenu/navItemLabel): 'Test Files 13 passed (13) · Tests 235 passed (235)', VERDICT command-exit 0. Ablation (src is the resolution path, so no build was needed): scripts/ablation-replace.mjs replaced the merge-branch condition with false, anchor 1 -> 0, blob dd3d8692 -> a9d96821; '-t 36876' gave '4 failed | 2 passed' (the 4 map pins went red, e.g. received \"label\": \"Sales orders\"; the served-reading pin and the CONTROL stayed green, as expected). Restore: blob == HEAD dd3d8692 and git diff HEAD empty. DECLARED NARROWING: the full app-shell suite (2425 files) was started, then stopped to release the shared lock (others were queued); the full suite is declared to CI Test UI.", "gates": "Local, at 6a5b50dd, each exit captured before any pipe: all 38 'dispatch-gates --commands' families exit 0; '--ran' reconciliation: '38 derived, 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code)'. pnpm check:query-options-erasure and pnpm check:type-check-debt hit my 280 s timeout (exit 124) on a contended box; both were rerun with no timeout and exited 0 ('query-options-erasure ratchet holds' and 'check-type-check-coverage --re-measure: OK — 0 raw tsc error(s)'). pnpm --dir ui exec vitest run scripts/ (seven @objectstack packages built first, as Test UI does): 'Test Files 172 passed | 2 skipped (174)', VERDICT command-exit 0. overlap-check --branch=claude/issue-36876-menu-rename-locale-map: exit 0, 'origin/main: merges cleanly', 'VERDICT clean exit 0'. @object-ui/app-shell type-check: NOT MEASURED locally. Reason: the @object-ui/* deps were not built in this worktree, so every error is TS2307 or a TS7006 that follows from it, and none is in designModeMenuModel.ts or designModeMenuSave.ts; it is declared to CI Type Check UI. PR check-runs at 6a5b50dd, read once at report time: success for Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint · ESLint, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · tooling self-tests, PR-body guards, Test Core, Type Check · source gates, Live E2E UI, Dogfood Regression Gate, Build UI Deps and Plan Test UI shards; in_progress for Test UI 1-9/16, Type Check UI, Lint UI, Build & E2E UI, Type Check · workspace/debt ledger/consumer gates, Lint · CI release & engine gates, Lint · PM dispatch-gates and Lint · scoped query-options erasure/slot lookup.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /issues/37056/assignees os-justin; read-back 7201 bytes sent and 7201 stored, identical); post-stamped os-dev-report comment (POST /issues/36876/comments). Two git pushes as well (empty-branch probe, then 6a5b50dd); these are not REST.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "line_budget": "6 files, +103/-5 (dispatch-gates count); skills/** untouched", "deviations": "(1) The full app-shell suite and the app-shell type-check were narrowed, as declared above; both are left to CI. (2) My first background app-shell run passed vitest flags after a bare '--'. I stopped it by its own process group before it reached tests and reran it correctly. (3) Two gates timed out under my own 280 s timeout and were rerun to exit 0 (see gates). (4) The test went into the existing shared harness as a top-level describe, not a new file, per AGENTS.md's shared-harness rule (the dispatch allowed this). (5) The dispatch's suggested 'small local helper' was not written, because the shared writer already exists. Commit trailers are the model-free pair.", "files_changed": [ ".changeset/36876-menu-rename-locale-map.md", "ui/packages/app-shell/src/layout/DesignModeMenu.tsx", "ui/packages/app-shell/src/layout/designModeMenuModel.ts", "ui/packages/app-shell/src/layout/designModeMenuSave.ts", "ui/packages/app-shell/src/layout/__tests__/designModeMenuModel-36363.test.ts", "ui/packages/app-shell/src/layout/__tests__/designModeMenuSave-36363.test.ts" ] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Delivered · area a4-U · 2026-11-24T18:25Z · PR #37056 merged as faf1d5f (L1 ACCEPT 7140072389)
z.string()in the spec, so no map is stored there). Nothing remains on this card.pm:dispatchedremoved with the close;domain:ui,area:uxstay.