Skip to content

hooks and actions: a sentence a hook or action writes into a record is picked in the organization's language, as a declared hook refusal is (sibling of #34062, ruling B parameter 7) #34374

Closed

Description

@objectstack-fleet

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

Filing gate: ③ (maintainer-directed task). The maintainer chose option B on #34062: 「B 平台按组织语言挑译文」, whose option text reads 「句子标成文字,译文进翻译包,平台按组织语言写入;漏译写原文不中断。钩子另立一张 p1 卡,平台工作量约两倍。」 Ruling record: #34062 comment 6913660232, parameter 7: "Hooks and actions follow the same rule on a sibling card, p1. … Not built under this card."

This card carries the hook and action half of that ruling; #34062 keeps the flow half (create_record / update_record fields values).

The rule (from the ruling, not re-opened here):

  • A user-read sentence that a hook or an action writes into a record is translated at the write, in the organization's language, never the starter's (parameter 2).
  • The organization's language is the one shared reader 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 builds: the Localization setting when somebody set it (source !== 'default'), else the app's i18n.defaultLocale, else the authored text (parameter 3). This card reuses that reader and adds no fourth copy.
  • A hook declares its sentences and the runner picks them, the way a declared hook refusal (HookSchema.refusals) is picked (parameter 7). Only declared text is translated; a bare string stays a literal value (parameter 4).
  • A missing translation writes the authored text and never fails the hook or action; no new gate (parameter 5). No backfill (parameter 6). No org.locale root (parameter 8).

Business reason: in a zh-CN organization HotCRM's hooks and actions store English sentences in records people read (hotcrm#2494: the follow-up task subject; the #34062 analysis counts 3 hook/action sites). Without this half, the flow half fixes only the escalation reason and the task subject stays English.

Reader who acts: the repo:objectstack#1 seat (area o1-C, which builds #34062) after #34062's shared reader lands; triage first-touches the domain and grade (the maintainer's chosen option names it p1).

Depends on: #34062 (the shared organization-language reader and the flows key family it introduces). hotcrm#2494's hook part waits on this card.

Unverified (the building dev measures first): the declaration shape for a hook's or action's stored sentences; only the precedent (HookSchema.refusals) is named in the analysis, with no line count read.

Dedupe: repo:objectstack-ai/objectstack is:issue hook organization language stored text → 71 hits, is:issue 34062 → 6 hits; read the first page of each (open and closed): only #34062 covers stored text in the organization's language, and it scopes hooks out.


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · lease:A5 · p1 · pm:blocked · 2026-11-16T10:24Z

    ⛔ Not a claim.

    Blocked-by: #34062

    The maintainer chose option B on #34062 (ruling 6913660232). The option text names this hook and action half as a separate p1 card, so p1 is pre-graded and not re-opened here.

  2. added
    domain:server
    pm:blocked
    priority:p1
    on Nov 16, 2026
  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unlock → pm:queue · 2026-11-16T21:49Z

    ⛔ Not a claim.

    Its blocker #34062 (PR #34438 merged at 21 is closed: 46Z):hooks and actions can now reuse the organization-language reader. Back to the queue for its lane, with the grade unchanged.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 16, 2026
  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

    Claim: PM loop round 1 (area o2-D, repo:objectstack#2; large card, built in its own card thread)
    Session: session_01ADHkmRXuRn93HphKp7kXEz
    Thread session: pending (the card thread the seat opens; it reports to area o2-D)
    Account: os-steve
    Branch: pending
    Worktree: pending
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: packages/spec/src/data/hook.zod.ts and the action schema under packages/spec/src/ui/ (the declaration of a hook's and an action's stored sentences, measured first by the building dev), the hook and action runners in packages/runtime/src/sandbox/ and packages/runtime/src/domains/automation.ts, the organization-language reader #34062 built (reused, never copied), the translation packs and generated spec artifacts the declaration owes, .changeset/ (stop on breach; explain in the report)
    Container & model: L, mode:thread, model: default judgment tier, effort: high
    Clause-②: no
    Metadata-protocol: added
    Responsibility: n/a — not a defect card (maintainer-directed feature half of ruling 6913660232 parameter 7)
    Thread-read: 6930421951
    Premise: holds (blocker #34062 closed by PR #34438; the triage unlock 6930421951 returned the card to the queue)
    Ruling-ref: 6913660232 (#34062, option B, parameter 7)
    Serial constraints cleared: #34062 merged (PR #34438). No open PR touches hook.zod.ts, the action schema, packages/runtime/src/sandbox/ or seed-locale.ts (intersected on a deepened checkout at 22:18Z). Fold-or-serial with #34273 (an action refusal catalogue, same action schema file): serial, not folded — different defect shape (a refusal answered in the request language vs a stored sentence written in the organization language); #34374 (p1) goes first. Stale lease:A5 (former server#5 seat, no Claim or Release on the thread) removed in this stroke.
    Pre-claim lane: domain:server runners plus packages/spec/src/** declaration; the repo:objectstack seat keeps a spec rider in-lane (area-lease 留道 rule); large-card trigger (Metadata-protocol: added, spec non-test path) ⇒ built in its own card thread, owes a contract-tier L2 review.
    Pre-claim deps: Blocked-by: #34062 closed; no other after-#N; hot files free.
    Prior rulings read: #34062 ruling 6913660232 parameters 2–8 carried verbatim on the card body (organization language, declared text only, missing translation writes the authored text, no backfill, no org.locale root); HookSchema.refusals named as the precedent; thread: #34062; repo: objectstack-ai/objectstack

  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#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

    Claim: PM loop round 1 (area o2-D, repo:objectstack#2; large card, built in its own card thread) — supersedes 6931084211, naming the card thread and its branch
    Session: session_01ADHkmRXuRn93HphKp7kXEz
    Thread session: session_01ADHkmNwjZuUekdsr5UH3GP
    Account: os-steve
    Branch: claude/project-thread-l1nf08
    Worktree: the card thread's own checkout
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: packages/spec/src/data/hook.zod.ts and the action schema under packages/spec/src/ui/ (the declaration of a hook's and an action's stored sentences, measured first by the building dev), the hook and action runners in packages/runtime/src/sandbox/ and packages/runtime/src/domains/automation.ts, the organization-language reader #34062 built (reused, never copied), the translation packs and generated spec artifacts the declaration owes, .changeset/ (stop on breach; explain in the report)
    Container & model: L, mode:thread, model: default judgment tier, effort: high
    Clause-②: no
    Metadata-protocol: added
    Responsibility: n/a — not a defect card (maintainer-directed feature half of ruling 6913660232 parameter 7)
    Thread-read: 6931084211
    Premise: holds (blocker #34062 closed by PR #34438; the triage unlock 6930421951 returned the card to the queue)
    Ruling-ref: 6913660232 (#34062, option B, parameter 7)
    Serial constraints cleared: #34062 merged (PR #34438). No open PR touches hook.zod.ts, the action schema, packages/runtime/src/sandbox/ or seed-locale.ts (intersected on a deepened checkout at 22:18Z). Fold-or-serial with #34273 (an action refusal catalogue, same action schema file): serial, not folded — different defect shape (a refusal answered in the request language vs a stored sentence written in the organization language); #34374 (p1) goes first. Stale lease:A5 (former server#5 seat, no Claim or Release on the thread) removed in this stroke.
    Pre-claim lane: domain:server runners plus packages/spec/src/** declaration; the repo:objectstack seat keeps a spec rider in-lane (area-lease 留道 rule); large-card trigger (Metadata-protocol: added, spec non-test path) ⇒ built in its own card thread, owes a contract-tier L2 review.
    Pre-claim deps: Blocked-by: #34062 closed; no other after-#N; hot files free.
    Prior rulings read: #34062 ruling 6913660232 parameters 2–8 carried verbatim on the card body (organization language, declared text only, missing translation writes the authored text, no backfill, no org.locale root); HookSchema.refusals named as the precedent; thread: #34062; repo: objectstack-ai/objectstack

  8. 30 remaining items

  9. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 18, 2026
  10. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt

    Claim: PM loop round 1 · 2026-11-18T03:43Z
    Session: session_01JQwxbXGvw43spR79ztEvWt
    Account: os-warren
    Branch: claude/issue-34374-action-texts
    Worktree: objectstack-issue-34374
    Domain: domain:server
    Seat: repo:objectstack#1 (area o1-A)
    File surface: the 44 paths of PR #35085 at 1878e86b9d, unchanged (landing only)
    Container & model: M, mode:subagent, model: n/a — landing only, no dev dispatched, effort: high
    Clause-②: yes
    Metadata-protocol: added
    Responsibility: objectstack runtime (action/hook text resolution) | none | every app whose action or hook writes a sentence; yes
    Thread-read: 6968067575
    Premise: holds (seat 3 hand-off 6968051262, addenda 6968095871 and 6968191230)
    Serial constraints cleared: #35087 conflicts with this PR in generated content/docs/references/ui/action.mdx and lands after it, regenerating (brief 6968205670 §2 item 7). #35093 merges cleanly with it (overlap-check at 2026-11-18T03:43Z).
    Resume-from: claude/issue-34374-action-texts@1878e86b9dece34ce9f934b7de5217d46977ecc0
    Pre-claim lane: packages/runtime, packages/spec, packages/objectql, ui/** docs paths of PR #35085 — repo:objectstack whole-repo lane, area o1-A (orders seat1/area-o1-A.md).
    Pre-claim deps: no Blocked-by: on the card; PR1 merged (seat 3 hand-off).
    Prior rulings read: L1-d ACCEPT 6968058979 at 1878e86b9d; seat L2 PASS 6968164216 at 1878e86b9d (S1 closed; N3 open, nit). Seat ruling in 6968191230: the next PM lands this PR on the same record once CI is green.

    Taking over seat 3's hand-off (seat 3 brief objectstack#34584 comment 6968205670; maintainer to seat 3, 2026-11-18 03:30Z: 「代码已推送,交给下一任,用信箱 交接给刚入座的 objectstack#1」; seat 1 split to area o1-A, maintainer 03:32Z: 「已经认领的4个 p1 也开工,不再认领新任务」 in the project thread). The card was released to pm:queue by seat 3, so this is a fresh claim that resumes the same branch and PR.

    Next: land PR #35085 once every check is green on 1878e86b9d (K read and check-governed-merges --pr 35085 first), then close out this card after checking follow-up cards #35096 and #35097 exist.

  11. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 18, 2026
  12. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Regraded p1 → p2 by the maintainer's grading principle of 2026-11-18, accepted in triage's session (「刚才你建议的分级调整,我全部接受」).

    The principle, in order:

    1. What a new user or a prospect meets first (looks and the main flow), the cloud core (Turso, hosted sign-up and onboarding, hosted install and upgrade, plans) and a developer's first contact come first.
    2. Data loss or a permission breach in normal use stays first.
    3. Details and rare configurations are improved over time.
    4. Internal items are frozen.

    Why this card: detail: which language a hook or action sentence is picked in.

  13. added
    priority:p2
    and removed
    priority:p1
    on Nov 18, 2026
  14. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt

    Close-out · 2026-11-18T07:24Z

    PR #35085 (the action half, PR2) merged at 2026-11-18T07:11Z as 4ffe9d314a020fe2ddeb7531e7a4d8ff5c734dd9, and its Fixes #34374 closed this card. PR1, the hook half, landed earlier as #34545. This stroke removes the pm:dispatched state label.

    Follow-ups from this card stay open on their own: #35096 (Studio action form row for the action's translatable texts, domain:ui) and #35097 (skills: teach declaring and translating an action's texts, domain:skills). The CI flake seen on the PR is #35111.

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

Metadata

Metadata

Assignees

Labels

domain:serverpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions