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
{{ message }}
Repository navigation
i18n: the serving layer reads defaultLocale, not i18n.sourceLocale, as the authored label's language — with defaultLocale: 'zh-CN' and no fallbackLocale, an en request is served the zh-CN row instead of the English inline label #33634
Filing gate: ③ a follow-up that #33232 (PR #33357) reported out of scope. Contract review record 6882834204 (③, open question 1, answered A) found it owed before PR #33357 lands. The changeset, jsdoc and docs page of PR #33357 say "not yet read by the serving layer", and this card is where that "not yet" points.
Business reason: an app authored in English that defaults its users to Chinese (defaultLocale: 'zh-CN', English inline labels, a zh-CN pack) serves English users the Chinese label, unless it also declares fallbackLocale: 'en'. Once PR #33357 lands and the app declares sourceLocale: 'en', the coverage gate reports en as 100% covered while an en request still gets zh-CN.
Reader who acts: the owner of the label resolver seam: packages/spec/src/system/i18n-resolver.tsResolveOptions.defaultLocale ("the language its metadata labels are authored in"), and its callers.
Measured (the #33232 dev, report 6881427009; not booted end to end)
packages/rest/src/meta-item-read-gate.tsmetaTranslateOptions builds { locale, fallbackChain: [getFallbackLocale()], defaultLocale: getDefaultLocale() }, and the REST metadata reads spread it into @objectstack/spec/systemtranslateObject.
On the built resolver, with defaultLocale: 'zh-CN' and no fallbackLocale: an en request for an object with inline label Account and a zh-CN row 客户 answers 客户. With fallbackLocale: 'en' it answers Account.
serve.ts collapses the fallback to fallbackLocale, else defaultLocale (review record 6882834204).
The HTTP door (GET /api/v1/meta/object/NAME with Accept-Language: en) was not booted.
Ask (the dev's option A, for the lane to judge)
Thread i18n.sourceLocale ?? defaultLocale into the serving layer as the authored label's language: the i18n service, AppPlugin, metaTranslateOptions, and the objectql and plugin-email option-label seams. A request in the source locale is then answered from the inline text. The dev estimated about 8 packages, medium work, and a contract widening of the i18n service.
Dedupe
repo:objectstack-ai/objectstack is:issue sourceLocale → only #33232 (review record 6882834204). Related: #33232, PR #33357, #33231 (the console's user default).
With defaultLocale: 'zh-CN' and no fallbackLocale, an en request is served the zh-CN row instead of the English inline label, because the serving layer reads defaultLocale as the authored language rather than i18n.sourceLocale. Users see the wrong language and nothing errors, but no data is wrong, so p2. Request locale is A2. It closes PR #33357's "not yet read by the serving layer" note.
Claim: server area S1 (A1+A2) under #33751 §2 area-lease mode, area A2, seat domain:server#5 · p2 · executed by an os-dev subagent of the area S1 thread · posted at 2026-11-15T12:59Z
Session: session_01QsR2jVPGBoi3MCGoKbW1Hv
Account: zhuangjianguo
Branch: claude/area-A2-33634
Worktree: objectstack-area-A2-33634
Domain: domain:server
Seat: domain:server#5
File surface: the CALLERS that build the label resolver's options: packages/rest/src/meta-item-read-gate.ts (metaTranslateOptions), packages/services/service-i18n/src/**, packages/runtime/src/domains/i18n.ts, packages/objectql/src/formula-option-labels.ts, packages/plugins/plugin-email/src/option-label-table.ts, packages/services/service-messaging/src/{notification-text,recipient-locale}.ts, their tests, a changeset. NOT packages/spec/** (route without widening), NOT plugin-auth/src/auth-plugin.ts / auth-manager*.ts hunks of #33268 (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default (no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: the serving layer passes defaultLocale, not i18n.sourceLocale ?? defaultLocale, as the authored label's language (objectstack) | fallbackLocale: 'en' masks it when declared | apps authored in one language that default users to another
Thread-read: 6888741763
Premise: holds
Serial constraints cleared: #33649 merged (PR #33779, service-messaging); #33268 (server#6 Tier H, auth-plugin.ts/auth-manager*.ts) excluded from the surface; the seat ruled the no-widening route first and a hand-off to the spec lane if a widening proves unavoidable
{
"issue": 33634,
"status": "needs_decision",
"branch": "claude/area-A2-33634",
"pr": null,
"session": "session_01QsR2jVPGBoi3MCGoKbW1Hv",
"premise_still_valid": true,
"summary": "Stopped before writing code: the no-widening route does not exist. The defect holds and the resolver half of the PM hypothesis holds (ResolveOptions.defaultLocale already means the authored language; passing sourceLocale there fixes the card's shape). But every caller that builds those options holds only the II18nService object, and the only channel from the stack's i18n block to them is that service. The contract has getDefaultLocale/getFallbackLocale and no source-locale accessor, so reading i18n.sourceLocale at the callers needs a new optional method pair on packages/spec/src/contracts/i18n-service.ts, a published-contract widening. Per the seat routing this card moves to the spec lane. The four-axis analysis is in open_questions.",
"tests": "No code, so no test suite was run. Measurement on objectstack origin/main a32d50b6, @objectstack/spec src i18n-resolver.ts translateObject run through tsx (object label Account, zh-CN bundle row 客户). (1) Today's serving options for defaultLocale zh-CN with no fallbackLocale {locale en, fallbackChain [zh-CN], defaultLocale zh-CN} answer 客户 (defect reproduced). (2) Hypothesis {locale en, fallbackChain [zh-CN], defaultLocale en} answers Account. (3) A zh-CN request with the hypothesis options answers 客户. (4) A ja-JP request with the hypothesis options answers 客户 (the fallback chain is unchanged). (5) The documented workaround {locale en, fallbackChain [en], defaultLocale zh-CN} answers Account. HTTP door not booted.",
"gates": "None run: no diff. dispatch-gates --commands not derived (empty change set).",
"dogfood_battery": "n/a: no PR",
"mcp_calls": "0",
"api_writes": "1: POST issues/33634/comments (this report, via post-stamped). Also a git push of the empty branch claude/area-A2-33634 at a32d50b6 (landing marker; not a REST write). The branch carries no commits and can be deleted or reused by the spec lane.",
"open_questions": [
{
"question": "How should the serving layer learn the authored language (i18n.sourceLocale)? Census on a32d50b6: six resolver-option builders read the authored language from II18nService.getDefaultLocale() and hold nothing else. They are rest meta-item-read-gate.ts metaTranslateOptions (which also serves rest-server.ts translateOptionsFor and form-routes.ts), objectql formula-option-labels.ts, plugin-email option-label-table.ts, service-analytics plugin.ts translateSelectOptions, and service-storage record-file-access.ts. The last two are outside the claim surface. Users'-default readers stay as they are: service-messaging recipient-locale and notification-text, runtime domains/i18n.ts toLocaleDescriptors, discovery in metadata-protocol and http-dispatcher, AppPlugin resolveSeedLocale and seed-locale, and plugin-auth (out of bounds). Only AppPlugin, cli serve.ts and plugin-dev dev-i18n.ts see the config block.",
"options": [
"A. Widen II18nService with an optional getSourceLocale/setSourceLocale pair. This copies the getFallbackLocale/setFallbackLocale precedent: the producers set it (AppPlugin; FileI18nAdapter and I18nServicePlugin options via serve.ts and plugin-dev; core memory-i18n), and every caller passes getSourceLocale, else getDefaultLocale, as ResolveOptions.defaultLocale. The fallback chain is not touched. In the same PR the spec prose stops saying the serving layer ignores the key: TranslationConfig jsdoc and .describe 'Not yet read by the serving layer', the ResolveOptions.defaultLocale jsdoc naming i18n.defaultLocale, and the getDefaultLocale jsdoc 'Also the language ... authored in'. Business need: real. Named producer: steedos-labs blackcat-crm via #33232; the shape is measured above, and today the coverage gate reports en as 100% covered while en is served zh-CN. Long term: one declared contract fact, same shape as the fallback pair; contract-first. AI-error axis: best, because the key an author writes is then honoured at runtime and declared equals enforced. Start-up scope: adds two optional methods and no new gate; it closes a gap the spec already advertises. Cost: about 10 packages and 300-400 lines; Clause-② yes (widening); spec minor; Metadata-protocol likely semantic (the served answer moves for stacks that declare the key), the spec lane's call.",
"B. No contract change: the producers fold the key into the fallback collapse (fallbackLocale, else sourceLocale, else defaultLocale). Business need: fixes only the card's exact shape. Measured: it is wrong when a fallbackLocale other than the source is declared (en is still served 客户). It also reroutes every t() message fallback for other locales to the source language, and contradicts the getFallbackLocale jsdoc in spec, so spec prose moves anyway. Long term: a workaround that overloads one fact with another, which is the defect class #33232 split apart. AI-error axis: worse, because two keys interact non-obviously. Start-up scope: small (3 producers), but serve.ts is outside the claim.",
"C. No runtime change: keep the 'not yet read' note and the documented fallbackLocale en workaround. Business need: leaves the measured wrong-language answer and the misleading 100% coverage reading in place. AI-error axis: worst, because a declared key is not enforced. Cost: zero.",
"D. An undeclared duck-typed getSourceLocale on the implementations only, with no spec file edited. Long term and AI-error axes: rejected. It creates a protocol method outside the contract that the kernel fallback, plugin-dev and third-party providers do not know about. That is a dialect, which AGENTS.md Prime Directive 12 forbids."
],
"recommendation": "A, in the spec lane as one PR (contract pair plus the three prose sentences plus the producers and six callers), so the 'not yet read' sentence flips in the same commit that makes it false. Sub-question for that lane: where the shared 'authored locale of this service' read lives (six inline copies today, each about 3 lines), either inline per caller or as one helper. A helper in @objectstack/spec/system would be a further export."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: spec lane (this card, on hand-off) · noted, not filed: service-analytics plugin.ts translateSelectOptions and service-storage record-file-access.ts carry the same getDefaultLocale-as-authored read and are outside this claim's file surface; the fix under option A must include them",
"carrier: spec lane (this card, on hand-off) · noted, not filed: the review record's follow-up on #33357 (.describe omits the serving caveat) becomes moot under A, since the caveat is deleted rather than copied"
],
"deviations": "none: no file outside the claim surface was touched (no file was touched at all)",
"files_changed": [],
"line_budget": "0 changed lines"
}
Release: claim 6894680728 (session session_01QsR2jVPGBoi3MCGoKbW1Hv, branch claude/area-A2-33634) · 2026-11-15T13:06Z · nothing landed, no commits; the branch sits empty at a32d50b as a marker for the next holder
Why: the os-dev measured (report 6894743586) that no fix avoids widening a published contract.
The resolver already reads defaultLocale as the authored language. On a32d50b, passing defaultLocale: 'en' answers Account, and today's options answer 客户.
But all six places that build the resolver options hold only the i18n service. Those are metaTranslateOptions (rest; it also serves rest-server.ts and form-routes.ts), objectql formula-option-labels.ts, plugin-email option-label-table.ts, service-analytics plugin.ts and service-storage record-file-access.ts.
packages/spec/src/contracts/i18n-service.ts offers getDefaultLocale and getFallbackLocale, and nothing that returns sourceLocale.
Recommended route (A, four axes in 6894743586): an optional getSourceLocale / setSourceLocale pair on the contract, shaped like the fallback pair. That is Clause-②: yes (widening), a published contract. In the same PR: fix the spec texts that still say "not yet read by the serving layer", and fix all six callers, including the analytics and storage ones.
Per the seat's routing for this card (a widening ⇒ the spec lane), the remaining work goes to domain:spec. Triage re-lanes it. pm:dispatched → pm:queue, the assignee is cleared, and pm:retriage is added.
Claim: PM loop round 1 · 2026-11-15T14:15Z
Session: session_01ADHkmQjrEpxMVxEiDUJHqC (seat); a card thread of this account's project is the dev and reports its session id
Account: os-steve
Branch: pending — the card thread's designated branch; a follow-up Claim: from this session names it before the dev builds
Worktree: objectstack-issue-33634
Domain: domain:spec
Seat: domain:spec#2
File surface: packages/spec/src/contracts/i18n-service.ts, packages/spec/src/system/translation.zod.ts, packages/spec/src/system/i18n-resolver.ts (prose), the producers packages/runtime/src/app-plugin.ts, packages/core/src/fallbacks/memory-i18n.ts, packages/services/service-i18n/src/** (and cli serve.ts / plugin-dev dev-i18n.ts only where measured to configure the service), the option builders packages/rest/src/meta-item-read-gate.ts, packages/objectql/src/formula-option-labels.ts, packages/plugins/plugin-email/src/option-label-table.ts, packages/services/service-analytics/src/plugin.ts, packages/services/service-storage/src/record-file-access.ts, their tests, regenerated spec references, root .changeset/. ⛔ Not packages/plugins/plugin-auth/** (stop on breach; explain in the report)
Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate; Clause-② widening, so the seat owes a CONTRACT_REVIEW_TIER review before the queue), effort: high
Clause-②: yes
Metadata-protocol: semantic (expected; the PR declares the final reading)
Responsibility: objectstack: every resolver-option builder passes II18nService.getDefaultLocale() as the authored language and the contract has no source-locale accessor (report 6894743586) | fallbackLocale: 'en' masks it when declared | apps authored in one language that default users to another (steedos-labs blackcat-crm via #33232)
Thread-read: 6895278811
Premise: holds at origin/main895783a: translation.zod.ts:2684/:2692 still say "Not yet read by the serving layer"; II18nService (contracts/i18n-service.ts) has the fallback pair (~:96, ~:139) and no source-locale accessor. Route A, precedent the fallback pair. Ruling-ref: none on the card. Order: /mnt/project-files/spec-seat2/33634-delta.md (project share).
Serial constraints cleared: server#5 released its claim 6894767686 (empty branch claude/area-A2-33634); open PR #33268 touches plugin-auth only and is excluded; spec seat 1's #33757 (automation-service.ts) and seat 4's #33698 (DriverCapabilities) share no file.
Claim: PM loop round 1 · 2026-11-15T14:21Z (names the branch; supersedes claim 6895823378, same session)
Session: session_01ADHkmQjrEpxMVxEiDUJHqC (seat); card thread session_01ADHkmRFB7DnbZ57susY8Uv is the dev
Account: os-steve
Branch: claude/project-thread-6v36u4 (the card thread's designated branch; the platform lets a thread push only that branch, so not claude/issue-33634-*)
Worktree: objectstack-issue-33634
Domain: domain:spec
Seat: domain:spec#2
File surface: packages/spec/src/contracts/i18n-service.ts, packages/spec/src/system/translation.zod.ts, packages/spec/src/system/i18n-resolver.ts (prose), the producers packages/runtime/src/app-plugin.ts, packages/core/src/fallbacks/memory-i18n.ts, packages/services/service-i18n/src/** (and cli serve.ts / plugin-dev dev-i18n.ts only where measured to configure the service), the option builders packages/rest/src/meta-item-read-gate.ts, packages/objectql/src/formula-option-labels.ts, packages/plugins/plugin-email/src/option-label-table.ts, packages/services/service-analytics/src/plugin.ts, packages/services/service-storage/src/record-file-access.ts, their tests, regenerated spec references, root .changeset/. ⛔ Not packages/plugins/plugin-auth/** (stop on breach; explain in the report)
Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate; Clause-② widening, so the seat owes a CONTRACT_REVIEW_TIER review before the queue), effort: high
Clause-②: yes
Metadata-protocol: semantic (expected; the PR declares the final reading)
Responsibility: objectstack: every resolver-option builder passes II18nService.getDefaultLocale() as the authored language and the contract has no source-locale accessor (report 6894743586) | fallbackLocale: 'en' masks it when declared | apps authored in one language that default users to another (steedos-labs blackcat-crm via #33232)
Thread-read: 6895823378
Premise: holds at origin/main895783a: translation.zod.ts:2684/:2692 still say "Not yet read by the serving layer"; II18nService (contracts/i18n-service.ts) has the fallback pair (~:96, ~:139) and no source-locale accessor. Route A, precedent the fallback pair. Ruling-ref: none on the card. Order: /mnt/project-files/spec-seat2/33634-delta.md (project share).
Serial constraints cleared: server#5 released its claim 6894767686 (empty branch claude/area-A2-33634); open PR #33268 touches plugin-auth only and is excluded; spec seat 1's #33757 (automation-service.ts) and seat 4's #33698 (DriverCapabilities) share no file.
{
"issue": 33634,
"status": "done",
"branch": "claude/project-thread-6v36u4",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34025",
"session": "session_01ADHkmRFB7DnbZ57susY8Uv",
"premise_still_valid": true,
"summary": "Route A. II18nService gains an optional getSourceLocale/setSourceLocale pair shaped like the fallback pair (neither obliges the other; the getter reports only what was declared, never defaultLocale). AppPlugin threads i18n.sourceLocale (guarded on declared); FileI18nAdapter and the in-memory fallback implement both. All six resolver-option builders (rest metaTranslateOptions, objectql formula-option-labels, plugin-email option-label-table, analytics translateSelectOptions, storage labelsIn) pass getSourceLocale, else getDefaultLocale, as ResolveOptions.defaultLocale; fallback chain untouched; census re-run on 895783a1 found no seventh builder. serve.ts / dev-i18n.ts measured and left untouched (AppPlugin calls the setters on the adapter they build). The stale prose (translation.zod jsdoc + describe, ResolveOptions jsdoc, getDefaultLocale jsdoc, RestServer.translateOptionsFor docblock, three doc pages) is corrected; reference regenerated. HTTP door booted: en answers Task, zh-CN answers the zh-CN row, control without sourceLocale answers the zh-CN row.",
"tests": "Head 5156e558 (suites ran at 75656a8b; the only later commit adds a module-top import to the rest pin file, re-run 25/25). New pins: rest meta-i18n-declared-fallback-chain §6 (6 cases), objectql engine-formula-option-label (2), plugin-email template-option-labels.integration (2), analytics picklist-dimension-label-i18n (2 per strategy), storage record-file-access.integration (1), core fallbacks (2), service-i18n file-i18n-adapter (2), runtime app-plugin (3), spec contracts i18n-service (2). Full suites, downstream consumers of the contract, one locked run, all passed: spec 842 files/26958 tests, core 147/3404, objectql 596/13174, service-i18n 4/73, plugin-email 53/1020, analytics 215/5220, storage 86/1652, rest 412/8448, runtime 605/10961. Typecheck green in all nine (runtime test layer after building driver-turso). Ablation via scripts/ablation-replace.mjs (on-disk proof, restored to HEAD blob): rest 2/25 red, objectql 1/9, plugin-email 1/4, analytics 2/30, storage 1/90, AppPlugin setter call 1/39; source imported directly, no rebuild needed. HTTP: todo example (defaultLocale zh-CN, sourceLocale en, no fallbackLocale, en bundle dropped), GET /api/v1/meta/object/todo_task: en Task/Tasks/Subject, zh-CN 任务/主题, ja-JP タスク, no header 任务; control without sourceLocale: en 任务.",
"gates": "dispatch-gates --commands on 5156e558: 130 commands, 130 exit 0; --ran reconciliation 130 derived/130 run/0 NOT-MEASURED/0 UNRUN (exit 0). Round 1 on 75656a8b: check:test-source-alias red on the edited rest pin file (real, fixed in 5156e558); check-plugin-teardown-shape --self-test exit 3 (pinned commit missing from shallow clone, fetched, then exit 0); spec check:generated exit 1 from its embedded test-typecheck tsc at default heap (exit 0 at 4096 MB). check-changeset-no-major offline with the PR body as event: exit 0, LEVEL AXIS ok. CI check-runs: not yet concluded at report time (in_progress).",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "5 — mcp__github__issue_read x4 (get, get_comments x3), mcp__github__pull_request_read x1 (get); no write tool",
"api_writes": "2 — relay pr_create (PR #34025, fleet-write run 43735970452, 9687 bytes sent = stored, assignee os-steve); POST issues/33634/comments (this report, post-stamped). git push of 6 commits is not a REST write.",
"open_questions": [
{
"question": "Shared read helper for the authored locale (getSourceLocale else getDefaultLocale), or inline per builder?",
"options": [
"A. Inline per builder (done: five 3-line copies, each pinned and ablated)",
"B. One helper exported from @objectstack/spec/system (a further public name, e.g. authoredLocaleOf(i18n))"
],
"recommendation": "A: the read is three lines, the builders live in five packages with their own structural i18n slices, and a new spec export adds a public name and an api-surface row for no behaviour."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: a regional request in the source language (en-US against sourceLocale en) is not recognised as the authored one; isDefaultLocale compares tags exactly, as it always did for defaultLocale (pre-existing, unchanged here). Dedupe words: isDefaultLocale regional, en-US authored label, ResolveOptions.defaultLocale base language",
"carrier: none · noted, not filed: ui/packages/i18n/src/utils/spec-formatters.ts builds its own fallbackChain from client config, not from II18nService; outside this route"
],
"deviations": "Surface additions beyond the claim, all prose this change makes false (os-dev rule 3, fix-in-place): packages/rest/src/rest-server.ts (translateOptionsFor docblock), packages/objectql/src/engine.ts and engine-references-and-master-detail.ts (structural i18n type gains getSourceLocale), content/docs/ui/translations.mdx, content/docs/protocol/kernel/i18n-standard.mdx, content/docs/kernel/services-checklist.mdx. Clause-② copied verbatim as bare yes (claim line), no direction arm. Tests touched outside the six builders: the pins listed in tests; no forced edits.",
"files_changed": [
".changeset/33634-serve-labels-by-source-locale.md",
"content/docs/kernel/services-checklist.mdx",
"content/docs/protocol/kernel/i18n-standard.mdx",
"content/docs/references/system/translation.mdx",
"content/docs/ui/translations.mdx",
"packages/core/src/fallbacks/fallbacks.test.ts",
"packages/core/src/fallbacks/memory-i18n.ts",
"packages/objectql/src/engine-formula-option-label.test.ts",
"packages/objectql/src/engine-references-and-master-detail.ts",
"packages/objectql/src/engine.ts",
"packages/objectql/src/formula-option-labels.ts",
"packages/plugins/plugin-email/src/option-label-table.ts",
"packages/plugins/plugin-email/src/template-option-labels.integration.test.ts",
"packages/rest/src/meta-i18n-declared-fallback-chain.test.ts",
"packages/rest/src/meta-item-read-gate.ts",
"packages/rest/src/rest-server.ts",
"packages/runtime/src/app-plugin.test.ts",
"packages/runtime/src/app-plugin.ts",
"packages/services/service-analytics/src/__tests__/picklist-dimension-label-i18n.test.ts",
"packages/services/service-analytics/src/plugin.ts",
"packages/services/service-i18n/src/file-i18n-adapter.test.ts",
"packages/services/service-i18n/src/file-i18n-adapter.ts",
"packages/services/service-storage/src/record-file-access.integration.test.ts",
"packages/services/service-storage/src/record-file-access.ts",
"packages/spec/src/contracts/i18n-service.test.ts",
"packages/spec/src/contracts/i18n-service.ts",
"packages/spec/src/system/i18n-resolver.ts",
"packages/spec/src/system/translation.zod.ts"
],
"line_budget": "28 files, +562 / -70 (git diff --shortstat origin/main...HEAD at 5156e558)"
}
Activity
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server·lease:A2· p2 · 2026-11-15T03:45Z⛔ Not a claim.
With
defaultLocale: 'zh-CN'and nofallbackLocale, anenrequest is served the zh-CN row instead of the English inline label, because the serving layer readsdefaultLocaleas the authored language rather thani18n.sourceLocale. Users see the wrong language and nothing errors, but no data is wrong, so p2. Request locale is A2. It closes PR #33357's "not yet read by the serving layer" note.objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv
Claim: server area S1 (A1+A2) under #33751 §2 area-lease mode, area A2, seat
domain:server#5· p2 · executed by anos-devsubagent of the area S1 thread · posted at 2026-11-15T12:59ZSession:
session_01QsR2jVPGBoi3MCGoKbW1HvAccount:
zhuangjianguoBranch:
claude/area-A2-33634Worktree:
objectstack-area-A2-33634Domain:
domain:serverSeat:
domain:server#5File surface: the CALLERS that build the label resolver's options:
packages/rest/src/meta-item-read-gate.ts(metaTranslateOptions),packages/services/service-i18n/src/**,packages/runtime/src/domains/i18n.ts,packages/objectql/src/formula-option-labels.ts,packages/plugins/plugin-email/src/option-label-table.ts,packages/services/service-messaging/src/{notification-text,recipient-locale}.ts, their tests, a changeset. NOTpackages/spec/**(route without widening), NOTplugin-auth/src/auth-plugin.ts/auth-manager*.tshunks of #33268 (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default (no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
the serving layer passes defaultLocale, not i18n.sourceLocale ?? defaultLocale, as the authored label's language (objectstack) | fallbackLocale: 'en' masks it when declared | apps authored in one language that default users to anotherThread-read: 6888741763
Premise: holds
Serial constraints cleared: #33649 merged (PR #33779, service-messaging); #33268 (server#6 Tier H, auth-plugin.ts/auth-manager*.ts) excluded from the surface; the seat ruled the no-widening route first and a hand-off to the spec lane if a widening proves unavoidable
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv
os-dev-report
{ "issue": 33634, "status": "needs_decision", "branch": "claude/area-A2-33634", "pr": null, "session": "session_01QsR2jVPGBoi3MCGoKbW1Hv", "premise_still_valid": true, "summary": "Stopped before writing code: the no-widening route does not exist. The defect holds and the resolver half of the PM hypothesis holds (ResolveOptions.defaultLocale already means the authored language; passing sourceLocale there fixes the card's shape). But every caller that builds those options holds only the II18nService object, and the only channel from the stack's i18n block to them is that service. The contract has getDefaultLocale/getFallbackLocale and no source-locale accessor, so reading i18n.sourceLocale at the callers needs a new optional method pair on packages/spec/src/contracts/i18n-service.ts, a published-contract widening. Per the seat routing this card moves to the spec lane. The four-axis analysis is in open_questions.", "tests": "No code, so no test suite was run. Measurement on objectstack origin/main a32d50b6, @objectstack/spec src i18n-resolver.ts translateObject run through tsx (object label Account, zh-CN bundle row 客户). (1) Today's serving options for defaultLocale zh-CN with no fallbackLocale {locale en, fallbackChain [zh-CN], defaultLocale zh-CN} answer 客户 (defect reproduced). (2) Hypothesis {locale en, fallbackChain [zh-CN], defaultLocale en} answers Account. (3) A zh-CN request with the hypothesis options answers 客户. (4) A ja-JP request with the hypothesis options answers 客户 (the fallback chain is unchanged). (5) The documented workaround {locale en, fallbackChain [en], defaultLocale zh-CN} answers Account. HTTP door not booted.", "gates": "None run: no diff. dispatch-gates --commands not derived (empty change set).", "dogfood_battery": "n/a: no PR", "mcp_calls": "0", "api_writes": "1: POST issues/33634/comments (this report, via post-stamped). Also a git push of the empty branch claude/area-A2-33634 at a32d50b6 (landing marker; not a REST write). The branch carries no commits and can be deleted or reused by the spec lane.", "open_questions": [ { "question": "How should the serving layer learn the authored language (i18n.sourceLocale)? Census on a32d50b6: six resolver-option builders read the authored language from II18nService.getDefaultLocale() and hold nothing else. They are rest meta-item-read-gate.ts metaTranslateOptions (which also serves rest-server.ts translateOptionsFor and form-routes.ts), objectql formula-option-labels.ts, plugin-email option-label-table.ts, service-analytics plugin.ts translateSelectOptions, and service-storage record-file-access.ts. The last two are outside the claim surface. Users'-default readers stay as they are: service-messaging recipient-locale and notification-text, runtime domains/i18n.ts toLocaleDescriptors, discovery in metadata-protocol and http-dispatcher, AppPlugin resolveSeedLocale and seed-locale, and plugin-auth (out of bounds). Only AppPlugin, cli serve.ts and plugin-dev dev-i18n.ts see the config block.", "options": [ "A. Widen II18nService with an optional getSourceLocale/setSourceLocale pair. This copies the getFallbackLocale/setFallbackLocale precedent: the producers set it (AppPlugin; FileI18nAdapter and I18nServicePlugin options via serve.ts and plugin-dev; core memory-i18n), and every caller passes getSourceLocale, else getDefaultLocale, as ResolveOptions.defaultLocale. The fallback chain is not touched. In the same PR the spec prose stops saying the serving layer ignores the key: TranslationConfig jsdoc and .describe 'Not yet read by the serving layer', the ResolveOptions.defaultLocale jsdoc naming i18n.defaultLocale, and the getDefaultLocale jsdoc 'Also the language ... authored in'. Business need: real. Named producer: steedos-labs blackcat-crm via #33232; the shape is measured above, and today the coverage gate reports en as 100% covered while en is served zh-CN. Long term: one declared contract fact, same shape as the fallback pair; contract-first. AI-error axis: best, because the key an author writes is then honoured at runtime and declared equals enforced. Start-up scope: adds two optional methods and no new gate; it closes a gap the spec already advertises. Cost: about 10 packages and 300-400 lines; Clause-② yes (widening); spec minor; Metadata-protocol likely semantic (the served answer moves for stacks that declare the key), the spec lane's call.", "B. No contract change: the producers fold the key into the fallback collapse (fallbackLocale, else sourceLocale, else defaultLocale). Business need: fixes only the card's exact shape. Measured: it is wrong when a fallbackLocale other than the source is declared (en is still served 客户). It also reroutes every t() message fallback for other locales to the source language, and contradicts the getFallbackLocale jsdoc in spec, so spec prose moves anyway. Long term: a workaround that overloads one fact with another, which is the defect class #33232 split apart. AI-error axis: worse, because two keys interact non-obviously. Start-up scope: small (3 producers), but serve.ts is outside the claim.", "C. No runtime change: keep the 'not yet read' note and the documented fallbackLocale en workaround. Business need: leaves the measured wrong-language answer and the misleading 100% coverage reading in place. AI-error axis: worst, because a declared key is not enforced. Cost: zero.", "D. An undeclared duck-typed getSourceLocale on the implementations only, with no spec file edited. Long term and AI-error axes: rejected. It creates a protocol method outside the contract that the kernel fallback, plugin-dev and third-party providers do not know about. That is a dialect, which AGENTS.md Prime Directive 12 forbids." ], "recommendation": "A, in the spec lane as one PR (contract pair plus the three prose sentences plus the producers and six callers), so the 'not yet read' sentence flips in the same commit that makes it false. Sub-question for that lane: where the shared 'authored locale of this service' read lives (six inline copies today, each about 3 lines), either inline per caller or as one helper. A helper in @objectstack/spec/system would be a further export." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: spec lane (this card, on hand-off) · noted, not filed: service-analytics plugin.ts translateSelectOptions and service-storage record-file-access.ts carry the same getDefaultLocale-as-authored read and are outside this claim's file surface; the fix under option A must include them", "carrier: spec lane (this card, on hand-off) · noted, not filed: the review record's follow-up on #33357 (.describe omits the serving caveat) becomes moot under A, since the caveat is deleted rather than copied" ], "deviations": "none: no file outside the claim surface was touched (no file was touched at all)", "files_changed": [], "line_budget": "0 changed lines" }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv
Release: claim 6894680728 (session
session_01QsR2jVPGBoi3MCGoKbW1Hv, branchclaude/area-A2-33634) · 2026-11-15T13:06Z · nothing landed, no commits; the branch sits empty at a32d50b as a marker for the next holderWhy: the os-dev measured (report 6894743586) that no fix avoids widening a published contract.
defaultLocaleas the authored language. On a32d50b, passingdefaultLocale: 'en'answersAccount, and today's options answer 客户.metaTranslateOptions(rest; it also serves rest-server.ts and form-routes.ts), objectqlformula-option-labels.ts, plugin-emailoption-label-table.ts, service-analyticsplugin.tsand service-storagerecord-file-access.ts.packages/spec/src/contracts/i18n-service.tsoffersgetDefaultLocaleandgetFallbackLocale, and nothing that returnssourceLocale.Recommended route (A, four axes in 6894743586): an optional
getSourceLocale/setSourceLocalepair on the contract, shaped like the fallback pair. That isClause-②: yes (widening), a published contract. In the same PR: fix the spec texts that still say "not yet read by the serving layer", and fix all six callers, including the analytics and storage ones.Per the seat's routing for this card (a widening ⇒ the spec lane), the remaining work goes to
domain:spec. Triage re-lanes it.pm:dispatched→pm:queue, the assignee is cleared, andpm:retriageis added.4 remaining items
objectstack-fleet commentedon Nov 15, 2026
domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC
Claim: PM loop round 1 · 2026-11-15T14:15Z
Session:
session_01ADHkmQjrEpxMVxEiDUJHqC(seat); a card thread of this account's project is the dev and reports its session idAccount:
os-steveBranch: pending — the card thread's designated branch; a follow-up
Claim:from this session names it before the dev buildsWorktree:
objectstack-issue-33634Domain:
domain:specSeat:
domain:spec#2File surface:
packages/spec/src/contracts/i18n-service.ts,packages/spec/src/system/translation.zod.ts,packages/spec/src/system/i18n-resolver.ts(prose), the producerspackages/runtime/src/app-plugin.ts,packages/core/src/fallbacks/memory-i18n.ts,packages/services/service-i18n/src/**(and cliserve.ts/ plugin-devdev-i18n.tsonly where measured to configure the service), the option builderspackages/rest/src/meta-item-read-gate.ts,packages/objectql/src/formula-option-labels.ts,packages/plugins/plugin-email/src/option-label-table.ts,packages/services/service-analytics/src/plugin.ts,packages/services/service-storage/src/record-file-access.ts, their tests, regenerated spec references, root.changeset/. ⛔ Notpackages/plugins/plugin-auth/**(stop on breach; explain in the report)Container & model:
M,mode:thread,model: default tier (dispatch-gates --tier: no path-derived mandate; Clause-② widening, so the seat owes a CONTRACT_REVIEW_TIER review before the queue),effort: highClause-②: yes
Metadata-protocol: semantic (expected; the PR declares the final reading)
Responsibility:
objectstack: every resolver-option builder passes II18nService.getDefaultLocale() as the authored language and the contract has no source-locale accessor (report 6894743586) | fallbackLocale: 'en' masks it when declared | apps authored in one language that default users to another (steedos-labs blackcat-crm via #33232)Thread-read: 6895278811
Premise: holds at
origin/main895783a:translation.zod.ts:2684/:2692 still say "Not yet read by the serving layer";II18nService(contracts/i18n-service.ts) has the fallback pair (~:96, ~:139) and no source-locale accessor. Route A, precedent the fallback pair. Ruling-ref: none on the card. Order:/mnt/project-files/spec-seat2/33634-delta.md(project share).Serial constraints cleared: server#5 released its claim 6894767686 (empty branch
claude/area-A2-33634); open PR #33268 touches plugin-auth only and is excluded; spec seat 1's #33757 (automation-service.ts) and seat 4's #33698 (DriverCapabilities) share no file.objectstack-fleet commentedon Nov 15, 2026
domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC
Claim: PM loop round 1 · 2026-11-15T14:21Z (names the branch; supersedes claim 6895823378, same session)
Session:
session_01ADHkmQjrEpxMVxEiDUJHqC(seat); card threadsession_01ADHkmRFB7DnbZ57susY8Uvis the devAccount:
os-steveBranch:
claude/project-thread-6v36u4(the card thread's designated branch; the platform lets a thread push only that branch, so notclaude/issue-33634-*)Worktree:
objectstack-issue-33634Domain:
domain:specSeat:
domain:spec#2File surface:
packages/spec/src/contracts/i18n-service.ts,packages/spec/src/system/translation.zod.ts,packages/spec/src/system/i18n-resolver.ts(prose), the producerspackages/runtime/src/app-plugin.ts,packages/core/src/fallbacks/memory-i18n.ts,packages/services/service-i18n/src/**(and cliserve.ts/ plugin-devdev-i18n.tsonly where measured to configure the service), the option builderspackages/rest/src/meta-item-read-gate.ts,packages/objectql/src/formula-option-labels.ts,packages/plugins/plugin-email/src/option-label-table.ts,packages/services/service-analytics/src/plugin.ts,packages/services/service-storage/src/record-file-access.ts, their tests, regenerated spec references, root.changeset/. ⛔ Notpackages/plugins/plugin-auth/**(stop on breach; explain in the report)Container & model:
M,mode:thread,model: default tier (dispatch-gates --tier: no path-derived mandate; Clause-② widening, so the seat owes a CONTRACT_REVIEW_TIER review before the queue),effort: highClause-②: yes
Metadata-protocol: semantic (expected; the PR declares the final reading)
Responsibility:
objectstack: every resolver-option builder passes II18nService.getDefaultLocale() as the authored language and the contract has no source-locale accessor (report 6894743586) | fallbackLocale: 'en' masks it when declared | apps authored in one language that default users to another (steedos-labs blackcat-crm via #33232)Thread-read: 6895823378
Premise: holds at
origin/main895783a:translation.zod.ts:2684/:2692 still say "Not yet read by the serving layer";II18nService(contracts/i18n-service.ts) has the fallback pair (~:96, ~:139) and no source-locale accessor. Route A, precedent the fallback pair. Ruling-ref: none on the card. Order:/mnt/project-files/spec-seat2/33634-delta.md(project share).Serial constraints cleared: server#5 released its claim 6894767686 (empty branch
claude/area-A2-33634); open PR #33268 touches plugin-auth only and is excluded; spec seat 1's #33757 (automation-service.ts) and seat 4's #33698 (DriverCapabilities) share no file.objectstack-fleet commentedon Nov 15, 2026
domain:spec#2 · os-steve · session_01ADHkmRFB7DnbZ57susY8Uv
os-dev-report
{ "issue": 33634, "status": "done", "branch": "claude/project-thread-6v36u4", "pr": "https://github.com/objectstack-ai/objectstack/pull/34025", "session": "session_01ADHkmRFB7DnbZ57susY8Uv", "premise_still_valid": true, "summary": "Route A. II18nService gains an optional getSourceLocale/setSourceLocale pair shaped like the fallback pair (neither obliges the other; the getter reports only what was declared, never defaultLocale). AppPlugin threads i18n.sourceLocale (guarded on declared); FileI18nAdapter and the in-memory fallback implement both. All six resolver-option builders (rest metaTranslateOptions, objectql formula-option-labels, plugin-email option-label-table, analytics translateSelectOptions, storage labelsIn) pass getSourceLocale, else getDefaultLocale, as ResolveOptions.defaultLocale; fallback chain untouched; census re-run on 895783a1 found no seventh builder. serve.ts / dev-i18n.ts measured and left untouched (AppPlugin calls the setters on the adapter they build). The stale prose (translation.zod jsdoc + describe, ResolveOptions jsdoc, getDefaultLocale jsdoc, RestServer.translateOptionsFor docblock, three doc pages) is corrected; reference regenerated. HTTP door booted: en answers Task, zh-CN answers the zh-CN row, control without sourceLocale answers the zh-CN row.", "tests": "Head 5156e558 (suites ran at 75656a8b; the only later commit adds a module-top import to the rest pin file, re-run 25/25). New pins: rest meta-i18n-declared-fallback-chain §6 (6 cases), objectql engine-formula-option-label (2), plugin-email template-option-labels.integration (2), analytics picklist-dimension-label-i18n (2 per strategy), storage record-file-access.integration (1), core fallbacks (2), service-i18n file-i18n-adapter (2), runtime app-plugin (3), spec contracts i18n-service (2). Full suites, downstream consumers of the contract, one locked run, all passed: spec 842 files/26958 tests, core 147/3404, objectql 596/13174, service-i18n 4/73, plugin-email 53/1020, analytics 215/5220, storage 86/1652, rest 412/8448, runtime 605/10961. Typecheck green in all nine (runtime test layer after building driver-turso). Ablation via scripts/ablation-replace.mjs (on-disk proof, restored to HEAD blob): rest 2/25 red, objectql 1/9, plugin-email 1/4, analytics 2/30, storage 1/90, AppPlugin setter call 1/39; source imported directly, no rebuild needed. HTTP: todo example (defaultLocale zh-CN, sourceLocale en, no fallbackLocale, en bundle dropped), GET /api/v1/meta/object/todo_task: en Task/Tasks/Subject, zh-CN 任务/主题, ja-JP タスク, no header 任务; control without sourceLocale: en 任务.", "gates": "dispatch-gates --commands on 5156e558: 130 commands, 130 exit 0; --ran reconciliation 130 derived/130 run/0 NOT-MEASURED/0 UNRUN (exit 0). Round 1 on 75656a8b: check:test-source-alias red on the edited rest pin file (real, fixed in 5156e558); check-plugin-teardown-shape --self-test exit 3 (pinned commit missing from shallow clone, fetched, then exit 0); spec check:generated exit 1 from its embedded test-typecheck tsc at default heap (exit 0 at 4096 MB). check-changeset-no-major offline with the PR body as event: exit 0, LEVEL AXIS ok. CI check-runs: not yet concluded at report time (in_progress).", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "5 — mcp__github__issue_read x4 (get, get_comments x3), mcp__github__pull_request_read x1 (get); no write tool", "api_writes": "2 — relay pr_create (PR #34025, fleet-write run 43735970452, 9687 bytes sent = stored, assignee os-steve); POST issues/33634/comments (this report, post-stamped). git push of 6 commits is not a REST write.", "open_questions": [ { "question": "Shared read helper for the authored locale (getSourceLocale else getDefaultLocale), or inline per builder?", "options": [ "A. Inline per builder (done: five 3-line copies, each pinned and ablated)", "B. One helper exported from @objectstack/spec/system (a further public name, e.g. authoredLocaleOf(i18n))" ], "recommendation": "A: the read is three lines, the builders live in five packages with their own structural i18n slices, and a new spec export adds a public name and an api-surface row for no behaviour." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: a regional request in the source language (en-US against sourceLocale en) is not recognised as the authored one; isDefaultLocale compares tags exactly, as it always did for defaultLocale (pre-existing, unchanged here). Dedupe words: isDefaultLocale regional, en-US authored label, ResolveOptions.defaultLocale base language", "carrier: none · noted, not filed: ui/packages/i18n/src/utils/spec-formatters.ts builds its own fallbackChain from client config, not from II18nService; outside this route" ], "deviations": "Surface additions beyond the claim, all prose this change makes false (os-dev rule 3, fix-in-place): packages/rest/src/rest-server.ts (translateOptionsFor docblock), packages/objectql/src/engine.ts and engine-references-and-master-detail.ts (structural i18n type gains getSourceLocale), content/docs/ui/translations.mdx, content/docs/protocol/kernel/i18n-standard.mdx, content/docs/kernel/services-checklist.mdx. Clause-② copied verbatim as bare yes (claim line), no direction arm. Tests touched outside the six builders: the pins listed in tests; no forced edits.", "files_changed": [ ".changeset/33634-serve-labels-by-source-locale.md", "content/docs/kernel/services-checklist.mdx", "content/docs/protocol/kernel/i18n-standard.mdx", "content/docs/references/system/translation.mdx", "content/docs/ui/translations.mdx", "packages/core/src/fallbacks/fallbacks.test.ts", "packages/core/src/fallbacks/memory-i18n.ts", "packages/objectql/src/engine-formula-option-label.test.ts", "packages/objectql/src/engine-references-and-master-detail.ts", "packages/objectql/src/engine.ts", "packages/objectql/src/formula-option-labels.ts", "packages/plugins/plugin-email/src/option-label-table.ts", "packages/plugins/plugin-email/src/template-option-labels.integration.test.ts", "packages/rest/src/meta-i18n-declared-fallback-chain.test.ts", "packages/rest/src/meta-item-read-gate.ts", "packages/rest/src/rest-server.ts", "packages/runtime/src/app-plugin.test.ts", "packages/runtime/src/app-plugin.ts", "packages/services/service-analytics/src/__tests__/picklist-dimension-label-i18n.test.ts", "packages/services/service-analytics/src/plugin.ts", "packages/services/service-i18n/src/file-i18n-adapter.test.ts", "packages/services/service-i18n/src/file-i18n-adapter.ts", "packages/services/service-storage/src/record-file-access.integration.test.ts", "packages/services/service-storage/src/record-file-access.ts", "packages/spec/src/contracts/i18n-service.test.ts", "packages/spec/src/contracts/i18n-service.ts", "packages/spec/src/system/i18n-resolver.ts", "packages/spec/src/system/translation.zod.ts" ], "line_budget": "28 files, +562 / -70 (git diff --shortstat origin/main...HEAD at 5156e558)" }Stamped 2026-11-15T16:33Z.
Generated by Claude Code
objectstack-fleet commentedon Nov 15, 2026
domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC
Landed · #33634 via PR #34025 · 2026-11-15T23:21Z
2068e037c07d9af5c9ba5970442b9a888f63812bat 2026-11-15T23:21ZFixes #33634State:
pm:dispatchedremoved and assignee cleared; the card is done. Dependents told it merged: #34053, #34030.feat(spec,cli): i18n.sourceLocale names the inline text's language ap…
docs(skills): objectstack-i18n teaches i18n.sourceLocale (objectstack…
feat(i18n): serve labels by i18n.sourceLocale as the authored language (