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
Print failure messages (503 'print engine is not ready', 504, 500) are hard-coded English and ignore the request locale #37260
area:uxbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p1High: required for production / M2
When a print fails on the server, the message the user sees is always English, whatever the UI language. In a zh-CN console, clicking a print action shows a red toast:
Records cannot be printed to a file right now: the print engine is not ready. The server log records why.
The rest of the page is in Chinese. The API answers the same English sentence even when the request sends accept-language: zh-CN.
Repro
Run an app with a print action (HotCRM's quote Print Quote / crm_quote.print_quote) on a server where no print engine is available, e.g. no Chromium configured.
Open the console in zh-CN and open a draft quote.
Click 打印报价.
The toast is the English sentence above.
POST /api/v1/actions/crm_quote/print_quote with accept-language: zh-CN → 503 SERVICE_UNAVAILABLE, error.message in English.
Where
packages/services/service-print/src/print-routes.ts: serverAnswerFor(status) returns hard-coded English for 503, 504 and the 500 fallback. relayPrintFailure passes it to sendServerFault without looking at the request locale. Released as @objectstack/service-print 18.6.0 and still on main.
Expected
The three print-failure sentences are translated like the platform's other user-facing server messages. The request's locale (accept-language / user locale) picks the language, and the console shows the toast in the UI language.
Why p1
Print is a user-facing action that business users click directly. On any deployment without a ready print engine, every print click in a non-English UI shows an untranslated error, which looks broken and is hard to understand for users who don't read English.
Area: area:i18n → area:ux (was area:i18n). area:i18n is not one of the North Star areas; North Star sends i18n to area:ux, "even when the thing cannot be done".
Domain: domain:ui → domain:server (was domain:ui). The sentences live in packages/services/service-print/src/print-routes.ts (serverAnswerFor), and the console only shows what the API answers.
Type: Bug. Grade: priority:p1 (set by a person, stays). It was released in @objectstack/service-print 18.6.0.
Claim: PM loop round 1
Session: session_01QSeKYnagJvGbCtNg2PhvgW
Account: os-justin
Branch: claude/issue-37260-print-failure-locale
Worktree: objectstack-issue-37260
Domain: domain:server
Seat: repo:objectstack#4
Area: a4-C (moved from a4-U by the seat, whose three slots are on p1s)
Epic: none (standalone p1 Bug)
File surface: packages/services/service-print/src/print-routes.ts (serverAnswerFor, relayPrintFailure), the service's message catalogue or the platform's existing server-message translation mechanism it reuses, the print-action relay path if /api/v1/actions/*/print_* produces its own sentence, their tests, the locale files that mechanism reads (only keys it already carries, or new keys in it), and .changeset/*. Stop on breach; explain in the report.
Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high (reason: the seat's dispatch order for this p1 names effort high)
Clause-②: no
Metadata-protocol: none
Responsibility: platform server code in objectstack (service-print's 5xx sentences are fixed English and ignore the request locale) | none | every non-English user who clicks a print action on a deployment without a ready print engine; reached today
Thread-read: 7157207588
Premise: holds. On origin/main, print-routes.ts:306serverAnswerFor(status) returns fixed English for 503, 504 and the 500 fallback, and relayPrintFailure (:313) passes it to sendServerFault without reading the request locale. This was released in @objectstack/service-print 18.6.0.
Serial constraints cleared: open-PR search for service-print finds no PR touching packages/services/service-print (#35129 Version Packages, #37247 and #36158 do not touch it).
Pre-claim lane: domain:server; every path is under packages/services/service-print/** or a shared server-message mechanism the dev names.
Pre-claim deps: none.
Prior rulings read: server message locale,accept-language,sendserverfault,print engine → 0 hits; none; thread: none; repo: objectstack-ai/objectstack
{
"issue": 37260,
"status": "done",
"branch": "claude/issue-37260-print-failure-locale",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37272",
"session": "session_01QSeKYnagJvGbCtNg2PhvgW",
"premise_still_valid": true,
"summary": "The print door's own 5xx sentences now follow the request's Accept-Language: 503 (print_engine_unavailable), 504 (print_timed_out), the 5xx fallback (print_failed) and, as a declared bounded in-place fix in the same file and class, the caller-resolution 500 (print_caller_unresolved). They are four new keys of the platform's existing operation-message catalog (BUILTIN_OPERATION_MESSAGES, packages/spec/src/system) in its full locale set en/zh-CN/ja-JP/es-ES, rendered through the shared core helper operationUserMessage; English is byte-identical, code/status/fault-log/4xx relay unchanged. The repro's action route (POST /api/v1/actions/.../print_quote) produces no sentence of its own: the /actions door forwards accept-language (API_FORWARD_HEADER_ALLOWLIST) and relays the target's message as written (restAnswerOf forward-refused), so nothing changed in packages/runtime. The localized text rides error.message (sendServerFault's message is already the route's generic user text and declares no userMessage channel; widening it would touch an @objectstack/types export outside the claim's surface) — see open_questions.",
"tests": "At head 3dfbfdb5a. pnpm --filter @objectstack/service-print test: Test Files 9 passed (9), Tests 145 passed (145). pnpm --filter @objectstack/spec test: Test Files 891 passed (891), Tests 28371 passed | 1 todo. pnpm --filter @objectstack/service-print exec vitest run --maxWorkers=2 --reporter=verbose src/print-routes.test.ts: 36 passed, 10 new under 'its own 5xx sentences, in the request's language' (503/504/500 zh-CN pins; en-US + absent controls for each; English equals pre-change text; ja->ja-JP, de-DE->en; caller-resolution 500 zh/absent; 4xx keeps producer text). Catalog pins in operation-message.test.ts (60 passed in file). Ablation via scripts/ablation-replace.mjs on print-routes.ts (anchor 'return operationUserMessage(serverAnswerKeyFor(status), { locale });' -> the three original hard-coded English returns): anchor x1->x0, blob 44b2c38dcc4e -> 97403a9b77a9; result 'Tests 4 failed | 32 passed (36)' — the 503/504/500 zh-CN pins and the ja pin red, the three English controls green; restore proven 'blob == HEAD (44b2c38dcc4e) and git diff HEAD is empty'. No build/dist preflight: the subject is imported by relative path and core/spec are aliased to source in the package vitest config.",
"gates": "Local: pnpm --filter @objectstack/service-print typecheck exit 0; pnpm --filter @objectstack/spec typecheck exit 0. dispatch-gates --commands derived 91 families at 3dfbfdb5a; all run, exit captured before any pipe; --ran reconciliation with exit codes: '91 derived famil(ies) accounted for — 88 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)'. 88 exit 0. NOT MEASURED: check-plugin-teardown-shape --self-test, reason: shallow clone cannot reach its pinned positive control; check:dual-build-cjs-loads, reason: needs every package's dist (only the service-print closure was built); check:type-check-debt, reason: its re-measure never acquired the shared verify lock (exit 99 twice, holder a long dogfood run). test:repo not run locally (no diff in that project), declared to CI Test Core. PR check-runs at report time: Governed Surface Queue Guard success; skipped: 18.x upgrade harness, Schedule gate, Borrowed queue verdict, Queue verdict, Packed-tarball smoke; in_progress: Lint (CI/release/engine, docs & code guards, ESLint, scoped slot lookup, scoped query-options erasure, scoped tooling self-tests, repo & tooling, PM dispatch-gates), Type Check (workspace, source gates, consumer gates, debt ledger), Check Changeset, Spec property liveness, PR-body guards, Check PR Size, Flag docs affected, filter.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 — git push of the branch (not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches -> fleet-write run 45592979116: pulls create + issues/37272/assignees); post-stamped os-dev-report comment on #37260",
"open_questions": [
{
"question": "Which envelope channel should carry the localized print 5xx sentence?",
"options": [
"A (shipped) — localize error.message itself: sendServerFault's message is the route's generic user-facing text (the thrown detail goes only to the fault log); no export change; the console's toast reads userMessage, then message, so it shows the localized text.",
"B — keep error.message English and add a localized userMessage, the shape the platform's 4xx refusals use (message = diagnostic, userMessage = end user's half): needs sendServerFault in @objectstack/types to accept a userMessage (a widening of a published export, outside this claim's file surface, Clause-② yes (widening)); about half a day plus a types changeset."
],
"recommendation": "A, because a 5xx generic text has no separate diagnostic half on the wire to preserve, it stays inside the claimed surface, and English callers read byte-identical bodies; B only if the maintainer wants one uniform channel rule for every localized server sentence."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — the /actions door's own forward-unavailable 503 sentence (apiActionForwardUnavailableError) and the print bridge's 501 are English too; observation only, not reproduced, not on this card's path when the door is mounted",
"carrier: none · noted, not filed — the print door's 4xx refusals (impersonation, request shape) stay English developer text; outside this card's 5xx scope",
"carrier: none · noted, not filed — deviation: the empty-branch probe push before the first edit was refused by the session's permission classifier; the first push carried the commit and was gated on overlap-check exit 0"
]
}
Seat direction recorded (2026-11-25T10:18Z). It answers the dev's open question in 7159457263 on which envelope channel carries the localized print 5xx sentence. The seat repo:objectstack#4 directs A, as built in PR #37272: localize the wire error.message, and add no userMessage to a fault.
Governing text:
sendServerFault's docblock (packages/types/src/response-envelope.ts): the wire message IS the route's generic, caller-facing text.
The actions-door fault exit (actions-door-answer.ts ~L311): by design, a fault's userMessage does not ride a 5xx answer.
B would add a userMessage to a fault, against both. A localizes the authored generic text and leaves the envelope shape unchanged.
Also recorded:
The entries added to the exported BUILTIN_OPERATION_MESSAGES (packages/spec/src/system) are judged at L1 by the record-recognisers paths check, which decides whether a contract review is owed. They are not routed to the spec lane.
Deviation: the session refused the empty-branch probe push, so the first push carried the commit, gated on overlap-check. That is the normal route, not a workaround.
The same-family English sentences outside this card (/actions' own 503 apiActionForwardUnavailableError and the print bridge's 501) are filed as one follow-up card.
area:uxbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
First touch 2026-11-25T08:33Z.
area:i18nis not one of the North Star areas; North Star sends i18n toarea:ux, "even when the thing cannot be done".packages/services/service-print/src/print-routes.ts(serverAnswerFor), and the console only shows what the API answers.@objectstack/service-print18.6.0.pm:queue→ seat 4 (p1 outside area:cloud).objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Claim: PM loop round 1
Session:
session_01QSeKYnagJvGbCtNg2PhvgWAccount:
os-justinBranch:
claude/issue-37260-print-failure-localeWorktree:
objectstack-issue-37260Domain:
domain:serverSeat:
repo:objectstack#4Area: a4-C (moved from a4-U by the seat, whose three slots are on p1s)
Epic: none (standalone p1 Bug)
File surface:
packages/services/service-print/src/print-routes.ts(serverAnswerFor,relayPrintFailure), the service's message catalogue or the platform's existing server-message translation mechanism it reuses, the print-action relay path if/api/v1/actions/*/print_*produces its own sentence, their tests, the locale files that mechanism reads (only keys it already carries, or new keys in it), and.changeset/*. Stop on breach; explain in the report.Container & model:
S,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: high (reason: the seat's dispatch order for this p1 names effort high)Clause-②: no
Metadata-protocol: none
Responsibility:
platform server code in objectstack (service-print's 5xx sentences are fixed English and ignore the request locale) | none | every non-English user who clicks a print action on a deployment without a ready print engine; reached todayThread-read: 7157207588
Premise: holds. On
origin/main,print-routes.ts:306serverAnswerFor(status)returns fixed English for 503, 504 and the 500 fallback, andrelayPrintFailure(:313) passes it tosendServerFaultwithout reading the request locale. This was released in@objectstack/service-print18.6.0.Serial constraints cleared:
open-PR search for service-print finds no PR touching packages/services/service-print (#35129 Version Packages, #37247 and #36158 do not touch it).Pre-claim lane:
domain:server; every path is underpackages/services/service-print/**or a shared server-message mechanism the dev names.Pre-claim deps: none.
Prior rulings read: server message locale,accept-language,sendserverfault,print engine → 0 hits; none; thread: none; repo: objectstack-ai/objectstack
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
os-dev-report
{ "issue": 37260, "status": "done", "branch": "claude/issue-37260-print-failure-locale", "pr": "https://github.com/objectstack-ai/objectstack/pull/37272", "session": "session_01QSeKYnagJvGbCtNg2PhvgW", "premise_still_valid": true, "summary": "The print door's own 5xx sentences now follow the request's Accept-Language: 503 (print_engine_unavailable), 504 (print_timed_out), the 5xx fallback (print_failed) and, as a declared bounded in-place fix in the same file and class, the caller-resolution 500 (print_caller_unresolved). They are four new keys of the platform's existing operation-message catalog (BUILTIN_OPERATION_MESSAGES, packages/spec/src/system) in its full locale set en/zh-CN/ja-JP/es-ES, rendered through the shared core helper operationUserMessage; English is byte-identical, code/status/fault-log/4xx relay unchanged. The repro's action route (POST /api/v1/actions/.../print_quote) produces no sentence of its own: the /actions door forwards accept-language (API_FORWARD_HEADER_ALLOWLIST) and relays the target's message as written (restAnswerOf forward-refused), so nothing changed in packages/runtime. The localized text rides error.message (sendServerFault's message is already the route's generic user text and declares no userMessage channel; widening it would touch an @objectstack/types export outside the claim's surface) — see open_questions.", "tests": "At head 3dfbfdb5a. pnpm --filter @objectstack/service-print test: Test Files 9 passed (9), Tests 145 passed (145). pnpm --filter @objectstack/spec test: Test Files 891 passed (891), Tests 28371 passed | 1 todo. pnpm --filter @objectstack/service-print exec vitest run --maxWorkers=2 --reporter=verbose src/print-routes.test.ts: 36 passed, 10 new under 'its own 5xx sentences, in the request's language' (503/504/500 zh-CN pins; en-US + absent controls for each; English equals pre-change text; ja->ja-JP, de-DE->en; caller-resolution 500 zh/absent; 4xx keeps producer text). Catalog pins in operation-message.test.ts (60 passed in file). Ablation via scripts/ablation-replace.mjs on print-routes.ts (anchor 'return operationUserMessage(serverAnswerKeyFor(status), { locale });' -> the three original hard-coded English returns): anchor x1->x0, blob 44b2c38dcc4e -> 97403a9b77a9; result 'Tests 4 failed | 32 passed (36)' — the 503/504/500 zh-CN pins and the ja pin red, the three English controls green; restore proven 'blob == HEAD (44b2c38dcc4e) and git diff HEAD is empty'. No build/dist preflight: the subject is imported by relative path and core/spec are aliased to source in the package vitest config.", "gates": "Local: pnpm --filter @objectstack/service-print typecheck exit 0; pnpm --filter @objectstack/spec typecheck exit 0. dispatch-gates --commands derived 91 families at 3dfbfdb5a; all run, exit captured before any pipe; --ran reconciliation with exit codes: '91 derived famil(ies) accounted for — 88 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)'. 88 exit 0. NOT MEASURED: check-plugin-teardown-shape --self-test, reason: shallow clone cannot reach its pinned positive control; check:dual-build-cjs-loads, reason: needs every package's dist (only the service-print closure was built); check:type-check-debt, reason: its re-measure never acquired the shared verify lock (exit 99 twice, holder a long dogfood run). test:repo not run locally (no diff in that project), declared to CI Test Core. PR check-runs at report time: Governed Surface Queue Guard success; skipped: 18.x upgrade harness, Schedule gate, Borrowed queue verdict, Queue verdict, Packed-tarball smoke; in_progress: Lint (CI/release/engine, docs & code guards, ESLint, scoped slot lookup, scoped query-options erasure, scoped tooling self-tests, repo & tooling, PM dispatch-gates), Type Check (workspace, source gates, consumer gates, debt ledger), Check Changeset, Spec property liveness, PR-body guards, Check PR Size, Flag docs affected, filter.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push of the branch (not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches -> fleet-write run 45592979116: pulls create + issues/37272/assignees); post-stamped os-dev-report comment on #37260", "open_questions": [ { "question": "Which envelope channel should carry the localized print 5xx sentence?", "options": [ "A (shipped) — localize error.message itself: sendServerFault's message is the route's generic user-facing text (the thrown detail goes only to the fault log); no export change; the console's toast reads userMessage, then message, so it shows the localized text.", "B — keep error.message English and add a localized userMessage, the shape the platform's 4xx refusals use (message = diagnostic, userMessage = end user's half): needs sendServerFault in @objectstack/types to accept a userMessage (a widening of a published export, outside this claim's file surface, Clause-② yes (widening)); about half a day plus a types changeset." ], "recommendation": "A, because a 5xx generic text has no separate diagnostic half on the wire to preserve, it stays inside the claimed surface, and English callers read byte-identical bodies; B only if the maintainer wants one uniform channel rule for every localized server sentence." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — the /actions door's own forward-unavailable 503 sentence (apiActionForwardUnavailableError) and the print bridge's 501 are English too; observation only, not reproduced, not on this card's path when the door is mounted", "carrier: none · noted, not filed — the print door's 4xx refusals (impersonation, request shape) stay English developer text; outside this card's 5xx scope", "carrier: none · noted, not filed — deviation: the empty-branch probe push before the first edit was refused by the session's permission classifier; the first push carried the commit and was gated on overlap-check exit 0" ] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Seat direction recorded (2026-11-25T10:18Z). It answers the dev's open question in 7159457263 on which envelope channel carries the localized print 5xx sentence. The seat repo:objectstack#4 directs A, as built in PR #37272: localize the wire
error.message, and add nouserMessageto a fault.Governing text:
sendServerFault's docblock (packages/types/src/response-envelope.ts): the wiremessageIS the route's generic, caller-facing text.actions-door-answer.ts~L311): by design, a fault'suserMessagedoes not ride a 5xx answer.B would add a
userMessageto a fault, against both. A localizes the authored generic text and leaves the envelope shape unchanged.Also recorded:
BUILTIN_OPERATION_MESSAGES(packages/spec/src/system) are judged at L1 by the record-recognisers paths check, which decides whether a contract review is owed. They are not routed to the spec lane./actions' own 503apiActionForwardUnavailableErrorand the print bridge's 501) are filed as one follow-up card.