Repository navigation
Description
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Filing gate: ① a product defect against a published contract, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7119075936). Source: L1 record 7119060969 on PR #36803 (#36633). The seat offered it as a decision candidate. Triage files it as a Bug, for the reason under "Why not a decision card".
What happens
The console resolves flow labels for the active language only. ui/packages/i18n/src/flowsBundle.ts activeFlowsBundle documents that the resolvers are asked "with no fallback chain: a string the active language does not carry falls back to the author's copy, never to a third locale". The server resolves the same labels through the stack's declared fallbackChain (packages/spec/src/system/i18n-resolver.ts: requested locale, then each declared fallback, then the authored label). So for a locale whose bundle lacks the entry, the server answers the fallback locale's text and the console shows the authored label. The same flow label reads differently on the two sides.
reach: read from the code and the docs, not run in a browser. It applies to a stack that declares a fallback locale, for a flow label missing from the requested locale's bundle.
Why not a decision card
The published page content/docs/ui/translations.mdx (around l.195–212) states the contract: "The chain is what the stack declares", a missing string "degrades to the next best text", and "the Console and any SDUI client get translated metadata". A console path that skips the declared chain breaks what that page promises, and the line in flowsBundle.ts is a code comment, not a ruling. If the seat finds a maintainer ruling behind "never a third locale", it says so on this card and the card goes to needs-user-decision then.
Expected
Console flow labels follow the stack's declared fallbackChain, as the server does. A stack that declares none keeps today's "requested locale, then the authored label".
Acceptance
- A pin with a declared fallback locale: a flow label missing in the requested locale reads the fallback locale's text in the console, matching the server.
- A pin with no declared chain: unchanged.
- The
activeFlowsBundledoc says what the code now does.
Dedupe: open issues for fallbackChain and activeFlowsBundle return only #36633, which is in flight and covers the approvals step-label read.
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: the console skips the stack's declared
fallbackChainthat the server and the published translations page honour, so one label reads two ways. That breaks a declared contract, so it is a Bug and not a decision. A label shown in the wrong language with nothing stored wrong falls under the UX rule in North Star Priority rule 2 ⇒ p2.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
Claim: PM loop round 1 (area ux-D)
Session:
session_01WGufzh1FMUQYf1PcEunaaKAccount:
os-support-aiBranch:
claude/issue-36809-flow-labels-fallback-chainWorktree:
objectstack-issue-36809Domain:
domain:uiSeat:
repo:objectstack#3Area: ux-D
File surface:
ui/packages/i18n/src/flowsBundle.ts,ui/packages/i18n/src/flowLabels.ts, the console callers that pass the language to them (ui/packages/app-shell/src/views/FlowRunner.tsx,ui/packages/app-shell/src/views/metadata-admin/previews/flow-label-translations.tsx,ui/packages/plugin-detail/src/stageChangeStarts.tsx) only where the declared chain has to be threaded in, a new pin test named for this card, a changeset (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate",effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
the console flow-label readers in objectstack-ai/objectstack (ui/packages/i18n) | the server already walks the declared fallbackChain (packages/spec/src/system/i18n-resolver.ts) | any console user of a stack that declares a fallback locale, for a flow label missing from the requested locale's bundleThread-read: 7119143107
Premise: holds — measured on origin/main 0819cab:
activeFlowsBundle(flowsBundle.ts:42-52) still keys the bundle by the active language alone and its doc says "with no fallback chain … never to a third locale"; no ADR namesfallbackChain; the "third locale" line is a code comment, not a rulingPre-claim lane:
ui/packages/i18n/**(+ console callers inui/packages/app-shell/**) ⇒ area ux-D rootsPre-claim deps: no
Blocked-by:; the related #36808 is merged (PR #36847, b848b47) and #36633 is closed (PR #36803)Prior rulings read: check-prior-rulings --card 36809 --paths flowsBundle.ts, flowLabels.ts → 1 hit line (flowLabels.ts:19 ruling 7076440876, the
nodes.<id>.labelkey; not about the fallback walk); 0maintainer, 0⛔; no ADR namesfallbackChain; same-day churn b848b47, 0d6589d: work from the merged tree; repo: objectstack-ai/objectstackSerial constraints cleared: none — no open PR touches flowsBundle.ts or flowLabels.ts (open-PR search, 06:41Z); #36864 (merged 0819cab) just reworked FlowRunner.tsx: the dev works from the merged tree
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
os-dev-report
Dedupe words: fallbackChain console, activeFlowsBundle, discovery locale fallback, getFallbackLocale wire, flow label fallback locale
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
Release: premise wider than the claim · 2026-11-24T06:46Z · the os-dev reading 7124251692 (on origin/main 0819cab, no edit made) shows the console cannot learn the stack's declared fallback chain from anything it receives today: discovery
localecarries only{ default, supported, timezone },GET /i18n/localesonly{ code, label, isDefault },GET /i18n/translations/:localeonly the requested locale's own bundle, and the console loader fetches only the active language's app bundle. EverygetFallbackLocale()reader is on the server. So the fix needs a new response member (Clause-②: yes (widening)) plus a console loader change outside the claimed surface, or a change to what a published endpoint serves, or a docs narrowing. The three routes and the dev's recommendation are in the reading'sopen_questions.Card goes to the seat for a route (no
pm:queueuntil routed: a re-claim would hit the same wall); assignee cleared,pm:dispatchedremoved,pm:blockedadded. Area ux-D re-claims it once the seat posts the route.Resume-from: none (the branch
claude/issue-36809-flow-labels-fallback-chainholds no commit)objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W
Seat route · 2026-11-24T06:48Z · on reading 7124251692 and Release 7124285701
Route A. This is not a maintainer question:
translations.mdxalready promises the declared fallback chain, and A makes that promise true by adding to the wire, without changing what anything means.locale.fallbackon discovery.fallbackChain.Clause-② yes (widening),Metadata-protocol: added, size M. The PR stays in ux-D under lane-keep and owes a contract-tier L2 (L1-b).Not taken:
The card goes back to
pm:queuefor ux-D to re-claim on route A.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
Claim: PM loop round 1 (area ux-D) · re-claim on seat route A 7124316383
Session:
session_01WGufzh1FMUQYf1PcEunaaKAccount:
os-support-aiBranch:
claude/issue-36809-flow-labels-fallback-chainWorktree:
objectstack-issue-36809Domain:
domain:uiSeat:
repo:objectstack#3Area: ux-D
File surface: one existing response gains the declared fallback chain (the dev names the carrier; e.g. discovery
locale.fallback:packages/spec/src/api/discovery.zod.ts+ its producer inpackages/runtime/src/http-dispatcher.ts, or the/i18n/localesshape inpackages/runtime/src/domains/i18n.ts); the console loader that fetches app bundles (ui/apps/console/src/loadLanguage.ts) loads the fallback locale's bundle(s); the console flow-label readers passfallbackChainto the spec resolvers (ui/packages/i18n/src/flowsBundle.ts,flowLabels.ts, and their callers inui/packages/app-shell/**/ui/packages/plugin-detail/**only where the chain is threaded);content/docs/ui/translations.mdxand the API reference docs for the new member; regenerated artifacts; new pins named for this card; a changeset (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate",effort: high(spec + runtime + console, Clause-② widening)Clause-②: yes (widening)
Metadata-protocol: added
Responsibility:
the console flow-label readers and loader in objectstack-ai/objectstack, plus the response that never carried the server's declared chain | the server walks the declared chain (II18nService.getFallbackLocale → metaTranslateOptions) but exposes it nowhere | any console user of a stack that declares a fallback locale, for a flow label missing from the requested locale's bundleThread-read: 7124316383
Premise: corrected 7124251692 — the console receives no declared chain (discovery
locale={ default, supported, timezone };/i18n/locales={ code, label, isDefault };/i18n/translations/:locale= the requested locale only) and loads only the active language's app bundle; route A (seat 7124316383) closes that by adding to the wire, without changing what anything meansPre-claim lane: non-test
packages/spec/src/**(a new response member) andpackages/runtime/**kept in ux-D under the lane-keep rule (seat route 7124316383); owes a contract-tier L2 by L1-b (2); console paths are ux-D rootsPre-claim deps: no
Blocked-by:; #36808 merged (PR #36847), #36633 closedPrior rulings read: check-prior-rulings --card 36809 --paths discovery.zod.ts, http-dispatcher.ts, loadLanguage.ts → 47
ruling, 12maintainer, 25⛔hit lines, all in http-dispatcher.ts (door/credential/approvals rulings); the dev reads those near every line it edits;fallbackchainterm → 0 ADR hits; no same-day churn on these paths; repo: objectstack-ai/objectstackSerial constraints cleared: open draft PR #36845 (another seat, print door) touches
packages/runtime/src/http-dispatcher.ts; overlap-check before every push decides; no open PR touches discovery.zod.ts, loadLanguage.ts, flowsBundle.ts or flowLabels.tsResume-from: none (the branch holds no commit)
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
os-dev-report
{ "issue": 36809, "status": "done", "branch": "claude/issue-36809-flow-labels-fallback-chain", "pr": "https://github.com/objectstack-ai/objectstack/pull/36916", "head_sha": "b276ff4e055fb91ec9859c0824ca7b62fe79c497", "session": "session_01WGufzh1FMUQYf1PcEunaaK", "premise_still_valid": true, "summary": "Route A. Carrier: GET /api/v1/i18n/locales gains an optional fallbackChain (GetLocalesResponseSchema), filled by the runtime /i18n domain from getFallbackLocale() under the same feature-detected, non-empty condition metaTranslateOptions uses; absent when no fallback is declared. Chosen over discovery `locale` because it already carries sourceLocale (the resolvers' defaultLocale) and has one producer, where discovery has two. The console loader reads it beside the active bundle and, unless the language is the authored one, fetches the fallback locales' flows groups and lays them beside the app namespace (withDeclaredFlowsFallback). activeFlowsBundle, the new flowsResolveOptions and flowsLocaleChain thread { locale, fallbackChain, defaultLocale } into translateFlow, resolveFlowApprovalStepLabel and resolveFlowScreenFieldOptions in FlowRunner, flowLabels, the Studio rail and the stage confirm. With no declared chain, labels read the requested locale and then the authored label, as before. The activeFlowsBundle doc, translations.mdx and the generated API reference are updated.", "tests": "New pins named for this card: runtime i18n-locales-fallback-chain-36809 (6), i18n flowLabels-fallback-chain-36809 (12), console loadLanguage.fallbackChain-36809 (4), app-shell FlowRunner.fallbackChain-36809 (2); loadLanguage.test.tsx session pin updated for the extra locale-list read. Local: runtime 4 files/74 passed; ui 19 FlowRunner files/129 passed plus i18n, console, stage confirm and FlowCanvas suites green; typecheck runtime, spec, @object-ui/i18n, plugin-detail, console, app-shell exit 0. Ablations restored to HEAD: flowsResolveOptions forced to { locale } turned 4/12 red; producer spread deleted turned 2/6 red.", "gates": "dispatch-gates --commands: 120 derived, all run; 116 exit 0, 3 exit 3 NOT MEASURED locally (plugin-teardown self-test needs an unshallow clone, spec check:skill-examples needs a client-react build, check:dual-build-cjs-loads needs a full build); ui scripts/ vitest had one load timeout, and that file passed alone. --ran: 120 derived, 117 run, 3 NOT-MEASURED, 0 UNRUN. check:generated 14/14 after --fix (check:docs). CI on b276ff4e: every check-run success or skipped, including all eleven required contexts (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate) and Check Changeset.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3: POST issues/36809/comments (blocked reading 7124251692), pr_create via relay (PR 36916 plus assignees leg), POST issues/36809/comments (this report)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed: flowsLocaleChain mirrors the spec's unexported localeChain (pinned equal); exporting the spec helper would remove the copy"], "Dev-effort": "high", "Rounds": 2, "line_budget": "18 files, +863/-77 = 940 changed lines; card running total 940 (one PR)", "deviations": "none; owes a contract-tier L2 (stated in the PR body)", "files_changed": 18 }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
Claim amendment · 2026-11-24T09:21Z · on L1 7127286361 S1 (PR #36916)
File surface (amended): the carrier is the optional
fallbackChainon the GET/i18n/localesresponse (schemapackages/spec/src/api/protocol.zod.ts, generatedpackages/spec/authorable-surface/api.jsonandcontent/docs/references/api/protocol.mdx, producerpackages/runtime/src/domains/i18n.ts), as the claim's second carrier option. The surface also namesui/apps/console/src/loadLanguage.test.tsx(the existing session test now expects the locale-list read) andui/packages/i18n/src/index.ts(exports the new helpers). Same card, area and lane;Clause-②: yes (widening),Metadata-protocol: addedunchanged. The fix round for L1 M1 (negotiate the console language against the/i18n/localescodes before the authored check and the resolvers) stays inside these files.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
os-dev-report
{ "issue": 36809, "status": "done", "round": "fix round on L1 REWORK 7127286361 / L2 FAIL 7127267955", "branch": "claude/issue-36809-flow-labels-fallback-chain", "pr": "https://github.com/objectstack-ai/objectstack/pull/36916", "head_sha": "ee54ef8c65b4314ed1e3bcdf896ca146297d8ce0", "session": "session_01WGufzh1FMUQYf1PcEunaaK", "premise_still_valid": true, "summary": "M1 fixed. loadLanguage.ts now negotiates the console language against the same /i18n/locales answer's locales[].code (resolveLocaleAmong(lang, codes) ?? lang, the ladder negotiatedTranslationLocale runs) before the authored check, the fallback filter and the resolvers. The negotiated tag is recorded in the declared entry (DeclaredFlowsFallback.locale). flowsResolveOptions hands it to the resolvers as `locale`, activeFlowsBundle keys the active row by it, and flowLabelTranslations honours a declared locale. A zh-Hans or zh console on a zh-CN-authored stack now walks no chain and fetches no fallback bundle, the same as the server. N2 fixed: the fallbackChain describe and jsdoc say it is absent when the i18n service reports none (the file adapter always reports one) and that the request tag is negotiated against locales[].code first. protocol.mdx regenerated. translations.mdx says the same. N1 is left as is: sharing the /i18n/locales read with loadLocales.ts needs that file, which is outside the amended surface; it costs one request per language load and has no effect on correctness. S1 is closed by claim amendment 7127305468.", "tests": "New alias pins in ui/apps/console/src/loadLanguage.fallbackChain-36809.test.tsx: a zh-Hans console and a zh console on a zh-CN-authored stack with fallback en show the authored Chinese, equal to the server's answer for the negotiated zh-CN request, and fetch no en bundle; a ja console on a stack holding ja-JP resolves as ja-JP and still reads the fallback. Local on ee54ef8c: 26 UI files / 190 tests passed (loader pins, loadLanguage.test.tsx, the three flowLabels pins, the full FlowRunner suite, stage confirm, FlowCanvas). Ablation: negotiation replaced by the raw tag (anchor 1 to 0, blob 15483338 to aeea183f) turned 3 of 7 red; restored with blob equal to HEAD and git diff HEAD empty. Typecheck @object-ui/i18n, @object-ui/console, @object-ui/app-shell: exit 0 after the ui closure build.", "gates": "Re-derived on ee54ef8c: 120 families, all run. 118 exit 0. 2 exit 3 NOT MEASURED locally (spec check:skill-examples needs a client-react build; check:dual-build-cjs-loads needs a full build). --ran: 120 derived, 118 run, 2 NOT-MEASURED, 0 UNRUN. check:generated --fix regenerated check:docs only. overlap-check before each push: VERDICT clean. CI on ee54ef8c: 61 success, 9 skipped, 0 failure, including all eleven required contexts and Check Changeset.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "1 this round: POST issues/36809/comments (this report). Running total: 4.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed: the duplicate /i18n/locales read beside loadLocales.ts could share one answer; that file is outside the surface"], "Dev-effort": "high", "Rounds": 3, "line_budget": "PR 36916: 18 files, +957/-77 = 1034 changed lines; card running total 1034 (one PR)", "deviations": "Per os-dev rule, the PR body was not edited (only pr_create writes it). The fix-round delta is in this report for the seat to fold in.", "files_changed": 18 }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
Close-out · 2026-11-24T11:25Z · PR #36916 merged as
129e637aat 2026-11-24T11:16Z (seat route A 7124316383; delta L1 ACCEPT 7129123693, delta contract review PASS 7129104842; landing 7129153008). GET/i18n/localescarries the declaredfallbackChain(optional, fromgetFallbackLocale()); the console negotiates its language against the served locale codes, loads the fallback locale'sflowsgroup, and the flow-label resolvers walk the same chain as the server. A stack that declares no fallback reads as before. Nits N1 (a second/i18n/localesread besideloadLocales.ts) and N3 (translations.mdxstill says the member is absent "when the stack declares none") are kept in the review record for a later prose pass.pm:dispatchedremoved.