Skip to content

flow: a record-change or schedule flow cannot write stored text in the org's language (no effective-locale read in value slots, 18.5.0) #34062

Closed

Description

@objectstack-fleet

repo:hotcrm#1 · huangyiirene · session_01J8VVAnPkgK6CWrJa6t7Fk5

Ruled: 6913660232 · letter B · 2026-11-16T10:19Z

Downstream need (hotcrm#2494, p1 under the zh-CN rule). A record-change or schedule flow that writes user-visible text into a record cannot write it in the organization's language. In a zh-CN org, HotCRM's case escalation flow stores escalation_reason = 'Auto-escalated: critical priority' in English on every critical case, and the SLA monitor does the same. Nothing on 18.5.0 lets the app do better without hard-coding one language.

Measured on @objectstack 18.5.0, 2026-11-15 (hotcrm PSA thread, real engine via bootStack, artifact i18n.defaultLocale: 'zh-CN', four throwaway autolaunched runAs: 'system' flows, each run with no user and with a user plus context.locale: 'zh-CN'):

  1. CEL value slots have no locale. current_user.locale → value expression failed to evaluate as CEL: No such key: locale. current_user carries id, positions and organizationId only, and the scope claims {vars, current_user} only (FLOW_SCOPE_CLAIMED_IDENTIFIERS). No locale or organization root exists.
  2. The run locale reaches only text slots, never record values. renderFlowTextSlot picks flows.* translations in the run's locale for end-node refusals, terminal messages and screen copy. It never translates update_record / create_record field values. A record-change or schedule run carries no locale anyway (the engine doc says so).
  3. The deployment default is not readable. On a zh-CN boot, get_record sys_setting {namespace:'localization', key:'locale'} returns null, because the build-time i18n.defaultLocale lives in the settings cascade's default layer, not in a row.
  4. A raw get_record on sys_setting returns 'zh-CN' only after a tenant localization.locale has been written through the settings service. That read skips the cascade (tenant → platform → build-time default) and still misses case 3. hotcrm did not use it: it would be a workaround.

Ask (either shape closes it):

  • A. A flow value slot can read the org's effective locale (settings localization.locale resolved through the cascade, falling back to i18n.defaultLocale). One example is a CEL root such as org.locale, so an app can pick from a per-locale map.
  • B. update_record / create_record string values can be translatable text slots that resolve flows.* keys in the org's effective locale when no run locale exists.

Either way: the effective-locale resolution matches what the console uses for the org, it is documented on the flow value-slot page, and a test boots a zh-CN default and reads zh-CN in a record-change run with no user.

Who it reaches: every zh-CN (and ja-JP, es-ES) tenant of any app whose flows write stored text. In HotCRM the known stored literals are:

  • case-escalation.flow.ts:113 and case-sla-monitor.flow.ts:195 (escalation_reason)
  • hook-side task subjects in case.hook.ts:541 and lead.hook.ts:446
  • the log_meeting prefix in activity-actions.ts:445

Hooks are a sibling question, for whether ctx should expose the same effective locale. Answer it in the same design if cheap.

Probe log: in the hotcrm project files (case-escalation-2494/probe-18.5.0.txt). No duplicate found (searched open issues for flow+locale, locale+CEL, current_user.locale).

Activity

  1. added
    priority:p1
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · lease:A5 · p1 (pre-graded) · 2026-11-15T17:44Z

    ⛔ Not a claim.

    HotCRM needs it (hotcrm#2494, p1 under the zh-CN rule). On 18.5.0 a record-change or schedule flow has no way to write user-visible text in the organization's language: there is no effective-locale read in value slots. So a zh-CN org stores English sentences such as 'Auto-escalated: critical priority' on every escalated case. A real customer blocked on a core surface, so p1 stands. A5 (service-automation). The contract half, what a value slot may read, may need a spec card; the seat decides.

  3. added
    domain:server
    pm:queue
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · os-project-manager · session_01FEkQ5nRw8bhCopND1ssXLb

    Ruling: letter B · maintainer 「B 平台按组织语言挑译文」 (the option he chose on the decision card) · recorded 2026-11-16T10:18Z

    Recorded by the project's decision thread for this card. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T10:15:51Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1X4oPshkf9nWpP2BECUPkF8Z, card cmsg_01TenzsRopZj4jMbvjX8uz1X7w3A7eKkSNs9FvvRHLeL9z, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XPY2CrKM5DXpfAaKb85YMTf.

    Thread-read: 6898631452 (the triage first touch, the only comment; none added since the analysis). Body unchanged since filing. Labels priority:p1, pm:queue, domain:server, lease:A5, unassigned.

    The question he was asked

    In a Chinese organization, the sentence the system writes into a record when it escalates a case is English, and nothing on 18.5.0 lets an app write it in the organization's language. Which shape closes it: the platform tells the flow which language the organization uses and the app writes each language's sentence itself (A), or the app hands the sentence to the platform, which picks the translation from the app's bundle (B)?

    The three options on the card, as he read them:

    • 「B 平台按组织语言挑译文」: 「句子标成文字,译文进翻译包,平台按组织语言写入;漏译写原文不中断。钩子另立一张 p1 卡,平台工作量约两倍。」 (recommended)
    • 「A 只给组织语言,应用自译」: 「流程和钩子能读到组织语言,各语言句子由应用写在流程里。最快,但译文散在代码里,漏一种语言会让流程失败。」
    • 「两个都做」: 「同一件事有两种写法,应用和 AI 会混用,平台要长期维护两套。」

    The ruling

    B. A sentence a flow writes into a record for people to read is translated where it is written: the platform picks the translation in the organization's language, then fills the run's values. This card's ask A (a CEL root such as org.locale) is not taken, and neither is "both".

    The parameters below are the ones the analysis attached to B. The thread message that carried the card named them (「完整分析和八条随裁参数」) and called out parameter 2 as a departure from this card's wording. He chose B without amending any.

    1. The rule, once. A user-read sentence that a flow writes into a record is translated at the write: the translated template is picked first, then its {{ }} holes are filled. It is the A screen flow's select options and screen description have no key in the flows translation face — the zh-CN intake wizard translates its labels and placeholders and keeps its options and body text in English (17.7.0) #22507 rule (ruling 6093472708) carried from the text a person is shown to the text a record keeps, through the same i18n channel.
    2. Always the organization's language, never the starter's. A flow a person starts with a button writes in the organization's language too. Stored text is data the whole organization reads, not a prompt for the person who clicked. This departs from the card's ask B, which read "in the org's effective locale when no run locale exists".
    3. One reading of the organization's language. The Localization setting when somebody set it (source !== 'default'), else the app's declared i18n.defaultLocale, else the authored text is written. That is the deployment-default ladder already ruled on 2026-09-02 (quoted in packages/plugins/plugin-auth/src/auth-manager.ts). Build it as one shared reader, not a fourth copy beside the auth mail, the notification template rung and resolveSeedLocaleForLoad.
    4. The author marks the text. Only a field value marked as text is translated. A bare string stays a literal data value exactly as today (status: 'escalated' is untouched). Scope: the fields values of create_record and update_record only.
    5. A missing translation never fails the run. With no entry the authored text is written. The existing translation coverage check demands the key at build time and os i18n extract scaffolds it. No new gate.
    6. No backfill. Rows already stored keep their text.
    7. Hooks and actions follow the same rule on a sibling card, p1. A hook declares its sentences and the runner picks them in the organization's language, the way a declared hook refusal is picked. hotcrm#2494's hook part (the follow-up task subject) waits on that card. Not built under this card.
    8. No org.locale. A use beyond translation gets its own card on measured pull.

    ⛔ Not taken: A (translations would live inside flow expressions and hook bodies, outside the bundle and the coverage check; a locale missing from an app's own map fails the write that also sets is_escalated, or falls back to English with nothing saying so; and it opens the org namespace ADR-0068 deferred). Both (two spellings of one capability). A first and B later (a staged half that ships a root to retire).

    Effort of the chosen letter

    From the analysis's effort column: spec + server, one or two PRs for the flow half. Precedents: PR #22626 (the engine picks a screen's translated body text, +882/−169, 29 files) and PR #28753 (the save notice). The hook half is a second card; its shape precedent is the declared hook refusal (HookSchema.refusals), with no line count read. A skills-docs follow-up is owed. Against A this is roughly twice the platform work and less than three times, estimated from the shape of those PRs, not from a like-for-like precedent.

    Governing text

    • Ruling 6093472708 on A screen flow's select options and screen description have no key in the flows translation face — the zh-CN intake wizard translates its labels and placeholders and keeps its options and body text in English (17.7.0) #22507 (2026-10-10): "a user-read flow string the server renders per run is translated where it is rendered, in the run's locale, before its holes are filled".
    • packages/spec/src/system/translation.zod.ts, the flows group: "Every user-read string slot of the flow schemas is either one of these keys or recorded, with its reason, in the family pin".
    • ADR-0032 Decision 3: a text template "keeps display strings declarative — real logic is forced back into validated Predicate/Expr fields".
    • ADR-0068, non-goals: "Deeper formula/RLS unification beyond the current_user object (e.g. record/org/env namespaces) — only the user object is in scope here."
    • The 2026-09-02 ruling on the deployment default language: 「……其次才是部署默认(localization.locale → i18n.defaultLocale)。」
    • No text rules on the language of text a flow stores, so this was a decision and not an execution question.

    Protocol: Metadata-protocol: added. A field value gains a text form, the flows translation group gains a key family, and the run context gains the organization's language. Nothing an existing stack writes changes meaning.

    Readings behind the clauses (checkout 2c96e0df, main of 2026-11-16; code read, nothing run)

    • The flow CEL scope binds two roots: FLOW_SCOPE_CLAIMED_IDENTIFIERS = new Set(['vars', 'current_user']) (packages/spec/src/automation/flow-template-token.ts:174).
    • The record-writing nodes read no locale and call no translation: 0 hits for renderFlowTextSlot or locale in packages/services/service-automation/src/builtin/crud-nodes.ts.
    • The Localization setting's default layer is the platform placeholder: key: 'locale' … default: 'en-US' (packages/services/service-settings/src/manifests/localization.manifest.ts:84). The seed reader treats it as not set (packages/runtime/src/seed-locale.ts:139).
    • Run setup already reads the organization's localization once, for the default currency: setTenantCurrencyResolver (packages/services/service-automation/src/plugin.ts:2614). The organization's language can ride the same seam.
    • A { dialect: 'template', source } envelope already exists in the spec (templateExpressionInput, packages/spec/src/shared/typed-expression-input.ts:117; a notify node's title and message take it). Whether it fits a fields value unchanged: unverified, the building seat reads it.
    • The hook half's shape: unverified, only the precedent is named.
    • hotcrm 5030768: grep -rn "Auto-escalated" src shows the two flow literals.

    One correction to this card's premise 3. The build-time i18n.defaultLocale does not live in the settings cascade's default layer. That layer holds en-US; the app's default lives on the i18n service (getDefaultLocale()). So a build that reads resolveLocalizationContext().locale answers en-US on HotCRM's zh-CN boot and fails this card's own acceptance test. Parameter 3 is the reading to build.

    Four facets (the analysis the maintainer read)

    os-decision-facets
    ① 项目长远合理性:B 把“写进记录的句子”并入已裁的一条翻译路径(#22507),语言由平台按一条规则挑;A 开第二条翻译路径,并打开 ADR-0068 留到以后的“组织”命名空间。
    ② 实际业务拉动:有;HotCRM 中文组织每张紧急工单存英文(DM-06 扫描 3 行),流程 2 处、钩子与动作 3 处;仅 HotCRM 一家实测。A、B 都满足。
    ③ 防 AI 犯错:B 漏译在构建期变红、运行时写原文不中断;A 漏一种语言要么运行时失败(升级不发生),要么静默落回英文,覆盖检查看不到。
    ④ 创业阶段不扩散:A 面小但是开放命名空间的开头;B 面大但每项有今天的读者,不新增门禁;两种写法并存不取。
    Prior rulings read: locale,defaultlocale,localization,renderflowtextslot,current_user,org namespace,value slot → 24 hits; ADR-0032 Decision §3, ADR-0068 D1 and its non-goals; thread: none; repo: objectstack-ai/objectstack
    自检:只看①选 B;②③④ 是否翻转:否。
    

    Confidence gaps, as stated to the maintainer: the Salesforce and ServiceNow comparison is from memory; the card's four runtime readings were checked against the code and not re-run on an engine; "a missing locale in an app's own map fails the escalation" is inferred from the measured CEL fault, not measured.

    State

    • No label changes: the card was never in the decision box and stays pm:queue, priority:p1, for the repo:objectstack#1 seat, which builds it in its area o1-C. The body gains the Ruled: line.
    • The building seat files the hook sibling card at p1 (parameter 7) and the skills-docs follow-up.
    • hotcrm#2494 stays pm:blocked on this card until the release an app can install.
    • Knock: Notify: ruling to the repo:objectstack#1 mailbox, PR pm:mailbox — repo:objectstack#1 · os-project-manager #34367.

    Generated by Claude Code

  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac

    Claim · #34062 · 2026-11-16T13:21Z

    Claim: repo:objectstack area-lease mode, area o1-C, lease lease:o1-C (p1 handed to this area by seat repo:objectstack#1 under the maintainer's intake rule 「除了前任的任务继续处理,后续只认领 p1 或者阻塞 p1 的任务」) · built by an os-dev sub-agent (mode:subagent) · posted at 2026-11-16T13:21Z
    Session: session_01FEkQ5kgF3mo9f7LXuv5hac
    Account: os-project-manager
    Branch: claude/issue-34062-flow-stored-text-org-locale
    Worktree: objectstack-issue-34062
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: packages/spec/src/automation/** (the text form of a create_record / update_record fields value; builtin-node-config.zod.ts and its tests), packages/spec/src/system/translation.zod.ts (the flows group's new key family) and the spec generated artifacts they regenerate; packages/services/service-automation/src/** (builtin/crud-nodes.ts, the run-setup seam in plugin.ts beside setTenantCurrencyResolver); one shared reader of the organization's language where the existing deployment-default ladder lives (packages/runtime/src/seed-locale.ts or the module the auth mail and notification rung already share), replacing no reader's behaviour; packages/cli/src/utils/i18n-bundle-extract.ts / i18n-coverage.ts only to scaffold and cover the new keys; content/docs/automation/**; new tests; a minor changeset (stop on breach; explain in the report)
    Container & model: L, mode:subagent, model: default (dispatch-gates --tier at 162fe54: no path-derived mandate; build at the default tier; the spec face's review ceiling is CONTRACT_REVIEW_TIER, reason: Clause-② widening of a published schema, owed by surface), effort: xhigh
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: objectstack platform: the record-writing flow nodes write authored text verbatim, so a zh-CN organization stores English sentences (hotcrm#2494) | none: renderFlowTextSlot reaches end-node, terminal and screen text only, never record values | every non-English organization whose app flows write user-read text into records; HotCRM today (2 flow literals)
    Thread-read: 6913660232
    Premise: holds (ruling 6913660232 corrects the card's premise 3: the app's default language lives on the i18n service, not the settings default layer; parameter 3 is the reading to build)
    Serial constraints cleared: open PR #34284 (egress guard, draft) also touches packages/services/service-automation/src/plugin.ts, a different seam; whichever lands second merges main. No in-flight claim on crud-nodes.ts or translation.zod.ts.
    Ruling-ref: 6913660232 (maintainer 「B 平台按组织语言挑译文」, 2026-11-16T10:15Z, eight parameters as recorded there)
    Pre-claim lane: repo:objectstack lane (seat's area o1-C); spec half plus server half in one PR unless the dev reports a split.
    Pre-claim deps: none open. Sibling hook/action card #34374 (parameter 7) is not built here and waits on this one.
    Prior rulings read: 6913660232 (B, eight parameters); #22507 ruling 6093472708; the 2026-09-02 deployment-default-language ruling (quoted in packages/plugins/plugin-auth/src/auth-manager.ts); ADR-0032 Decision 3; ADR-0068 non-goals. No ⛔ conflict.

    State change: pm:queue → pm:dispatched, lease:A5 → lease:o1-C, assigned os-project-manager. The dev starts at this area's next free slot (three fix rounds on inherited PRs are running now).


    Generated by Claude Code

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac

    Release · #34062 · 2026-11-16T16:39Z

    Release: area o1-C releases its claim 6917626045 (session session_01FEkQ5kgF3mo9f7LXuv5hac, account os-project-manager, lease lease:o1-C) on the seat's order. The card moves to its own card thread, which claims it again. Who: Leehom (maintainer). Words: 「ok」 (rule card #34424). Where: this account's fleet project, seat thread 「运行 objectstack 仓库车道席位」, 2026-11-16T16:33Z.
    Hand-over: branch claude/issue-34062-flow-stored-text-org-locale pushed at c881dac19d9ee0c6a1ba371133bb4029d9f334f6 (origin/main merged at 485d1c7c), no force. No PR is open yet; the os-dev-report is not yet posted. Ruling parameters 1–5 are built; 6, 7 and 8 are not built, by design. What is left (draft PR, report, check:generated and --ran on the final head, L2 to review#1, L1, the skills follow-up card) and the drafted PR body are in the project's hand-over folder pm-orders/objectstack/34062-handoff/. pm:dispatched stays.


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5oC2FdKXYRD1jEVYJP

    Claim · #34062 · 2026-11-16T16:40Z

    Claim: card thread for seat repo:objectstack#1 (fresh claim after area o1-C's release 6922675261; card threads run large cards in their own container, maintainer 「ok」, rule card #34424) · built by this thread as os-dev (mode:thread)
    Session: session_01FEkQ5pmEYLVFDcQ1Z1CS8H
    Thread session: session_01FEkQ5oC2FdKXYRD1jEVYJP
    Account: os-project-manager
    Seat: repo:objectstack#1
    Branch: claude/project-thread-psfmz0 (the platform pins this thread to its harness branch, so it is not the earlier claim's branch; it continues from claude/issue-34062-flow-stored-text-org-locale at c881dac19d9ee0c6a1ba371133bb4029d9f334f6, no history rewritten)
    Resume-from: claude/issue-34062-flow-stored-text-org-locale@c881dac19d9ee0c6a1ba371133bb4029d9f334f6
    Worktree: objectstack-issue-34062
    Domain: domain:server
    File surface: as claim 6917626045, plus packages/core/** (the one shared reader of the organization's language, resolveOrganizationLocale), packages/lint/src/** (the extract, coverage and validate walk of the marked field text) and content/docs/ui/translations.mdx (one key row)
    Container & model: L (contract change), mode:thread, model: default, effort: default
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: objectstack platform: the record-writing flow nodes write authored text verbatim, so a zh-CN organization stores English sentences (hotcrm#2494) | none: renderFlowTextSlot reaches end-node, terminal and screen text only, never record values | every non-English organization whose app flows write user-read text into records; HotCRM today (2 flow literals)
    Thread-read: 6922675261
    Premise: holds (as claim 6917626045; ruling 6913660232 corrects the card's premise 3)
    Ruling-ref: 6913660232 (maintainer 「B 平台按组织语言挑译文」, eight parameters as recorded there; 1 to 5 built, 6 to 8 not built by the ruling)
    Seat route (not a maintainer ruling): when the Localization setting cannot be read (the settings service throws), the node fails and writes nothing (route A). A missing translation is the ruled no-fail case; an unreadable setting means the language cannot be known, so writing authored text would silently store the wrong language. The PR states it for the maintainer to veto at review.
    Pre-claim deps: none open. Sibling hook/action card #34374 (parameter 7) is not built here.

    State change: none by this thread. Labels stay pm:dispatched, priority:p1; the seat swaps lease:*.

  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5oC2FdKXYRD1jEVYJP

    os-dev-report
    {
    "issue": 34062,
    "status": "done",
    "branch": "claude/project-thread-psfmz0 (platform-pinned harness branch of this card thread; continues claude/issue-34062-flow-stored-text-org-locale at c881dac with no history rewritten, as claim 6922715269 says)",
    "pr": "#34438",
    "session": "session_01FEkQ5oC2FdKXYRD1jEVYJP",
    "premise_still_valid": true,
    "summary": "Ruling 6913660232 parameters 1 to 5 are built (area o1-C built them; this thread took over at c881dac, merged origin/main at 920f54c with one import conflict in service-automation plugin.ts resolved by keeping both sides, reran everything and opened the PR). A create_record / update_record fields value marked as text ({ dialect: 'template', source }) is written in the organization's language: the translation at flows.FLOW.records.NODE_ID.fields.FIELD is picked first, then the holes are filled; the language comes from one shared reader in @objectstack/core (Localization setting when somebody set it, else i18n.defaultLocale, else authored text), never the starter's locale. A missing translation writes the authored text; a settings read that throws fails the node and writes nothing (seat route A, stated in the PR for the maintainer to veto). Parameters 6 to 8 are not built by the ruling; hooks and actions stay on #34374. Skills follow-up filed as #34434.",
    "tests": "At 920f54c after a full build (VERDICT command-exit 0, 654s) and all under os-verify-lock (VERDICT command-exit 0, 2199s): spec check:generated exit 0; typecheck exit 0 for spec, core, runtime, service-automation, lint, cli; core 150 files / 3600 passed; service-automation 286 / 4070 passed (incl. new record-field-text.test.ts, 18); lint 212 / 9072 passed; runtime 609 / 11218 passed, 19 skipped; cli --project unit 425 / 6032 passed; spec 846 / 27066 passed, 1 todo; dogfood test/flow-record-text-org-locale.dogfood.test.ts 1 / 3 passed. Ablation of the translate call was run by area o1-C at 485d1c7 (10 red / 8 green, restored 18/18), quoted in the PR; not rerun here (b585364 changes only the changeset line since). CLI integration tier declared to CI (the diff touches no integration-tier file or spawn entry).",
    "gates": "dispatch-gates --commands at 920f54c: 125 commands, each exit code recorded (file pm-orders/objectstack/34062-handoff/ran-b585364d.list in the project folder); changeset gates and the teardown self-test rerun on final head b585364, all exit 0. --ran: 125 derived, 125 run, 0 NOT-MEASURED (exit 0). 124 exit 0; one red from main, not this diff: pnpm check:platform-checklist exit 1, approvals.approver-resolution-matrix VARIANTS STALE (ApproverType 11 members on main since 27c0b20, item expects 10; branch identical to main in approval.zod.ts and docs/qa/platform-checklist). check-plugin-teardown-shape --self-test exit 3 on the shallow clone, exit 0 after fetching its control commit 621a487. PR check-runs: in_progress at report time (not awaited, per os-dev.md).",
    "dogfood_battery": "n/a — no ! in the PR title and Clause-② arm is (widening); the new dogfood file ran alone (3/3)",
    "mcp_calls": "3 — mcp__github__issue_read x2 (get, get_comments on #34062), mcp__claude-code-remote__get_session x1; no GitHub write tools",
    "api_writes": "5 — relay: comment #34062 (claim 6922715269), issue_create #34434, pr_create #34438, comment #34062 (this report), comment #34438 (green-head note)",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "class: a · reach: pnpm check:platform-checklist (part of Lint & Repo Gates) exits 1 on the current main tree: approvals.approver-resolution-matrix VARIANTS STALE, ApproverType has 11 members since 27c0b20 (platform_admin approver) and docs/qa/platform-checklist/areas/approvals.json enumSource.expect is still 10 · evidence: this branch's gate log at 920f54c, branch identical to main in both files · dedupe words: approver-resolution-matrix, VARIANTS STALE, ApproverType 11, platform_admin checklist",
    "carrier: none · noted, not filed: auth mail and notification text keep their own copies of the organization-language ladder because converging them would change their answers (PR acceptance notes)"
    ]
    }

  10. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5oC2FdKXYRD1jEVYJP

    Claim amendment · #34062 · 2026-11-16T18:07Z

    Claim: card thread for seat repo:objectstack#1, amending claim 6922715269 so its branch line names only the PR's head branch (L1-b R1, record 6924770159 on PR #34438)
    Session: session_01FEkQ5pmEYLVFDcQ1Z1CS8H
    Thread session: session_01FEkQ5oC2FdKXYRD1jEVYJP
    Account: os-project-manager
    Seat: repo:objectstack#1
    Branch: claude/project-thread-psfmz0
    PR: #34438
    Everything else stands as claim 6922715269 records it (file surface, Clause-② yes (widening), Metadata-protocol added, Ruling-ref 6913660232, seat route A). The earlier claim's branch line also quoted the hand-over branch it continues from, which the closing-target guard reads as a claim on that other branch.

  11. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · os-project-manager · session_01FEkQ5p4EDYGbWWuSCnZKXN

    Ruling: letter A · maintainer 「A 这一步失败,不写入」 (the option he chose on the decision card) · recorded 2026-11-16T20:55Z

    Recorded by the project's decision thread for this question. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T20:54:12Z. Decision thread cmsg_01TenzsRopZj4jMbvjX8uz1XXm2dPQNqjraNUSjcmdmRay, card cmsg_01TenzsRopZj4jMbvjX8uz1XJfP6iwYYENU3A27bBKSJsh, choice record cmsg_01TenzsRopZj4jMbvjX8uz1XFTg7SPQZZdxyH9jCMQ7SPR.

    Why it was asked: review#1's contract review 6924979595 on PR #34438 (finding S3) requires the seat's route A to reach the maintainer as a recorded choice. Ruling 6913660232 has no parameter for it.

    Thread-read: 6924838331 (the newest comment on this card when this was written). PR #34438 read at head 2b13583e, draft, open.

    The question he was asked

    Before a flow writes a sentence into a record, the platform looks up which language the organization uses. When that lookup itself fails (not "nothing is set", but "it could not be read"), what happens to this write?

    The three options on the card, as he read them:

    • 「A 这一步失败,不写入」: 「流程这一步报错、记录不动,设置恢复后重跑即可写对。故障期间那次写入(比如升级标记)不会发生。PR 已按此做好。」 (recommended)
    • 「B 照写原文,记错误日志」: 「流程不会因此失败,但中文组织会存进英文句子,流程显示成功,事后不回填,只有翻日志才知道。改一行。」
    • 「C 改用应用默认语言,记日志」: 「流程不失败,按应用声明的默认语言写。没改过语言的组织结果正确,改过的组织会悄悄存错语言。小改动。」

    The ruling

    A. When the organization's Localization setting cannot be READ, a create_record / update_record node that marks text fails and writes nothing. It is an addition to ruling 6913660232, whose eight parameters stand as recorded.

    1. A failed read is not "not set". The node fails as a runtime failure, a fault edge routes it, and a re-run writes the right text once the setting can be read. Nothing is written in a guessed language.
    2. Parameter 5 is unchanged. A missing translation still writes the authored text and never fails the run. This ruling covers only a read of the setting that failed.
    3. Only marked text reaches it. A write that marks no text never reads the organization's language, so no flow that exists today can fail this way.

    Not asked and so not ruled here: the reading that a host which registers no localization setting counts as "not set" and takes the app default (review 6924979595 S1, commit ce287ea5). He was told of it as the state of the PR; it stays the seat's and review#1's reading of parameter 3.

    The sibling card #34374 (hooks and actions, parameter 7) meets the same question. It was not put to him separately; its seat reads this record as the precedent.

    ⛔ Not taken: B (the stored sentence is wrong for almost every non-English organization, the run reports success, and parameter 6 means it is never backfilled). C (it reads a failed read as "not set", the opposite of what this engine already does for the default currency, and an organization that chose another language gets the app default stored silently).

    Effort of the chosen letter

    None beyond PR #34438 as built. The PR body's quick-read and acceptance notes still call route A "not a maintainer ruling" and ask him to decide; the seat rewrites those lines to cite this record.

    Governing text

    Protocol: no change beyond the PR's own Metadata-protocol: added.

    Readings behind the clauses (PR head f4212591 when analysed; code read, nothing run)

    • What still throws after S1: SettingsService.get answers an env override without touching the store, else loads the sys_setting rows (resolveStored → loadRows). A failure of that load is the remaining case.
    • resolveFieldValues (packages/services/service-automation/src/builtin/crud-nodes.ts) catches the reader's throw and answers { error }; the pin is in record-field-text.test.ts ("a settings read that throws fails the node and writes nothing").
    • The automation bridge (unregisteredSettingIsUnset, plugin.ts) turns only SETTINGS_UNKNOWN_NAMESPACE / SETTINGS_UNKNOWN_KEY into "not set".

    Four facets (the analysis the maintainer read)

    os-decision-facets
    ① 项目长远合理性:A 沿用引擎已有的“读失败不等于没设置”(#28056、#27257),不立特例;B、C 在同一引擎里为语言另立一个相反的规则。
    ② 实际业务拉动:今天零流程触及;HotCRM 采用标记文字后仅在数据库读故障时触及。三个选项都满足 hotcrm#2494。
    ③ 防 AI 犯错:A 运行失败、错误点名原因、重跑即对;B、C 运行成功但记录存错语言,只有服务器日志知道,且不回填。
    ④ 创业阶段不扩散:三者均不新增键、设置或门禁;B、C 多一条需要长期解释的例外。
    Prior rulings read: could not be read,readFailed,localization.locale,fail the run,silent → 6913660232 parameter 5 and its not-taken A; #28056; #27257; AGENTS.md Degradation log levels; ADR: none; thread: none; repo: objectstack-ai/objectstack
    自检:只看①选 A;②③④ 是否翻转:否。
    

    Confidence gaps, as stated to the maintainer: every reading is from code, no settings read fault was produced on a real engine; "the record write would mostly fail too when the database cannot be read" is an inference, and it does not hold for an object on an external data source; whether the platform retries a failed run by itself was not checked; the Salesforce comparison is from memory.

    Analysis file: pm-orders/objectstack/34062-unreadable-setting-decision-analysis.md in the project folder.

    State


    Generated by Claude Code

  12. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

domain:serverpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions