Skip to content

i18n: approval and audit texts still read object and option labels through t(), so a declared i18n.sourceLocale reader is shown the defaultLocale row (follow-up to #34030) #35384

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Filing gate: ② out-of-scope finding from the #34030 os-dev report (comment 7001158402, out_of_scope_findings class b), routed by the L1-a ACCEPT of PR #35351 (7002854859, out of scope (a)). ⛔ Not a claim; triage sets lane and grade.

What the user sees

In a deployment whose i18n.sourceLocale differs from i18n.defaultLocale (for example English-authored, users defaulting to zh-CN), an en reader of an approval request, an approval notification or an audit activity summary sees the object or option label in the defaultLocale language, while /meta and (after PR #35351) every validation and refusal message show the authored label.

Why (read from source at the #35351 head; not measured at a public door)

PR #35351 (#34030) moved the objectql label readers and the plugin-security denial texts onto translateObject with the metadata route's resolve options (request locale, declared fallback chain, sourceLocale else defaultLocale). These producers still read labels through t():

  • plugin-approvals readerLabelsFor (object label via t(objectLabelKey)) and the approval-notification-text subject params.
  • plugin-audit activity-summary-message.ts (field option labels via t()).

Fix direction

The #34030 rule: resolve the label through translateObject with the same resolve options /meta builds, so t() carries messages only.

Reader

plugin-approvals / plugin-audit owners (domain:server).

Dedupe: issue search readerLabelsFor sourceLocale, activity summary option label sourceLocale, approval label sourceLocale t() → only #34030 itself.

Activity

  1. added
    finding
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: area:ux · Bug · Cosmetic (approval and audit texts show defaultLocale labels to a sourceLocale reader; a Chinese or English UI with stray other-language words) · rare configuration (sourceLocale differs from defaultLocale) → p2 under the UX rule, domain:server · pm:queue. Type set.

  3. added
    domain:server
    pm:queue
    priority:p2
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Add to scope · 2026-11-19T10:01Z: two more readers, routed by seat 5's round-2 CONTRACT_REVIEW_TIER record on PR #35351. Neither gates that PR.

    • authoredRuleMessage (objectql validation) still reads through t(). So an en validation-rule refusal gets the zh-CN row of an authored rule message, while /meta serves the English text.
    • en-US under sourceLocale: 'en' can make objectql and /meta disagree on a label. This was read from source, not run.
      Same fix direction as this card: one resolve path, the one /meta uses, with a pin that the reader and /meta agree for the same request.
  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTyyBmoPBsURQjeJGq

    Claim: PM loop · area f7-text · 2026-11-22T10:22Z
    Session: session_01QsR2jTyyBmoPBsURQjeJGq
    Account: zhuangjianguo
    Branch: claude/issue-35384-reader-labels-translate-object
    Worktree: objectstack-issue-35384
    Domain: domain:server
    Seat: repo:objectstack#7
    Area: f7-text
    File surface: packages/plugins/plugin-approvals/src/reader-locale-labels.ts (+ the approval-notification-text subject params), packages/plugins/plugin-audit/src/activity-summary-message.ts, packages/objectql/src/validation/rule-validator.ts (authoredRuleMessage), their tests, a changeset (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack approvals/audit/objectql label readers read object and option labels through t() | PR #35351 (#34030) moved objectql labels and plugin-security denials onto translateObject with the /meta resolve options; these readers are outside it | readers in a deployment whose i18n.sourceLocale differs from defaultLocale
    Thread-read: 7005854835
    Premise: holds — on origin/main 4e55e4e readerLabelsFor picks objectLabel through service.t(objectLabelKey(…)); authoredRuleMessage is in packages/objectql/src/validation/rule-validator.ts.
    Pre-claim lane: repo:objectstack whole-repo lane, area f7-text (seat 7 partition; the maintainer's 「同意」 2026-11-22T10:11Z on the seat thread).
    Pre-claim deps: #34030 closed, PR #35351 merged.
    Prior rulings read: title terms → 362 ADR hits (top: ADR-0154 proposed, ADR-0061 D4 label↔value resolve server-side), card thread 0 rulings of 2 comments; the binding rule is the #34030 one quoted on the card: "resolve the label through translateObject with the same resolve options /meta builds, so t() carries messages only".
    Fold-or-serial: not folded with #36308 (different mechanism).
    Serial constraints cleared: open PR #36399 (#36290 PR 1, seat 7 card thread) touches plugin-audit/src/activity-summary-message.ts — the audit commit runs scripts/pm/overlap-check.mjs; on a textual conflict it waits for #36399 to queue.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTyyBmoPBsURQjeJGq

    Claim amended · 2026-11-22T12:02Z · claim 7077751863
    File surface: adds the one packages/services/service-messaging/src/** file where approval notification subject params are resolved through t(), plus its test. This is narrow only: the approvals producer hands a label already resolved through translateObject with the /meta resolve options, or messaging resolves that one param through the same builder. ⛔ service-messaging/src/objects/** is excluded because open PR #36399 touches it, and so is any change to messaging's general t() path. If narrow is impossible, the PR is Part of #35384 and the remainder is filed.
    Reason: the dev measured that the subject params resolve in service-messaging, not in plugin-approvals.

  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTyyBmoPBsURQjeJGq
    os-dev-report

    {
      "issue": 35384,
      "status": "done",
      "branch": "claude/issue-35384-reader-labels-translate-object",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36464",
      "session": "session_01QsR2jTyyBmoPBsURQjeJGq",
      "premise_still_valid": true,
      "summary": "Three of the card's readers now resolve metadata text through translateObject with the /meta resolve options (reader locale, declared fallback chain, sourceLocale else defaultLocale), so t() carries messages only. (1) objectql authoredRuleMessage reads the rule message through the refusal's existing ValidationMessageContext.labelTranslation (no new options copy). (2) plugin-approvals readerLabelsFor().objectLabel covers the inbox, request page, data-door rows and lifecycle refusals. (3) plugin-audit readerSummaryLocale serves translated object definitions, so object, field and option labels in a reader's activity summary come off them. The PR body opens with 'Part of #35384': the approval NOTIFICATION subject param ({key: objects.OBJECT.label, fallback}) is resolved per recipient at delivery by service-messaging notification-text.ts renderWith through t(). The producer has no recipient locale, and the messaging fix would change the general keyed-param resolver every producer shares, so per the area's limit it was not made and is listed in open_questions for the area to file. The en-US item from the add-to-scope comment was measured and reproduces when the service holds an en locale; it is an open question, not changed. The #36399 overlap is textually and semantically clean (overlap-check clean; its authoredLabelsLocale still fits the unchanged ActivitySummaryLocale shape), so the audit commit is in. The diff does not edit packages/spec/src/**.",
      "tests": "objectql `pnpm --filter @objectstack/objectql test` @8be4929bd (objectql unchanged after): Test Files 628 passed (628), Tests 14286 passed (14286), lock VERDICT command-exit 0. plugin-audit full suite @b61713eeb: 107/109 files, 1798/1800, with 2 failures (my pin's list wording; #7289 bare-string option case, triaged: spec-illegal shape that translateObject and /meta serve as written). After the fix @b81511248: audit-option-label-summary + activity-summary-message Tests 31 passed (31). plugin-approvals full suite @b61713eeb: 125/126 files, 1846/1853, with 7 failures all in record-lock-user-facing-message.test.ts (t()-only doubles). After the doubles gained getTranslations @b81511248: that file + reader-locale-labels.test.ts Tests 41 passed (41). Typecheck @b81511248: objectql 0, plugin-audit 0, plugin-approvals 0 (it was 2 @b61713eeb, TS2339 on the label-only doc literal, fixed with an ObjectLike annotation). Reverse verification @b61713eeb, one lock call, script with trap restore: each fixed src file restored to BASE 4e55e4eb with `git restore --source` (tree only), BASE blob hash verified on disk. Results: rule-validator.ts -> engine-label-source-locale.test.ts 1 failed/8 ('an en write reads the authored English sentence'); reader-locale-labels.ts -> 4 failed/22 (both en-reader cases, inbox row, t()-only); activity-summary-message.ts -> 4 failed/18 (both en-reader cases, t()-only, throwing translations). Controls green on every leg. Restored with `git checkout HEAD --`, HEAD blob hash verified, `git diff HEAD` empty. Pins resolve src/ directly, so no dist leg. Declared narrowing: the full approvals/audit suites were not re-run at the final head b81511248 (the final commit touched only those 4 test files plus one type annotation). The lock queue had cost about 75 min; CI Test Core runs the full suites.",
      "gates": "`node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (stderr: tree objectstack-ai/objectstack @b61713eeb) derived 74 families. `--ran` reconciliation: 74 derived, 74 run, 0 UNRUN. 70 exit 0 @b61713eeb. Re-run @b81511248, all exit 0: check:type-check-debt (exit 3 PREREQUISITE on the first pass), check:type-check-coverage, check:cross-package-test-inputs, check:test-source-alias, check:undeclared-dep-imports, check:nul-bytes, check:engine-double-contract, check:doc-authoring, check:issue-citations. NOT MEASURED, exit 3 PREREQUISITE NOT MET: check:i18n (needs the built CLI closure), check:dual-build-cjs-loads (needs a full build), `node scripts/check-plugin-teardown-shape.mjs --self-test` (positive-control commit 621a4876 not in this shallow clone); left to CI. overlap-check --branch=HEAD @b81511248: VERDICT clean exit 0 (origin/main clean; #36399 merges cleanly). PR check-runs at b81511248 when this report was written: Check Changeset, Lint · (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped ×3), PR-body guards, Governed Surface Queue Guard, Type Check · (workspace, source, consumer, debt ledger), Check PR Size, Flag docs: in_progress; opt-in/queue jobs skipped. Test Core / Build Core not yet listed.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + its assignees leg POST /issues/36464/assignees, run 45024154286, read-back identical 9589 bytes, assignee zhuangjianguo); post-stamped issue comment on #35384 (POST /repos/objectstack-ai/objectstack/issues/35384/comments). git push not counted",
      "files_changed": [
        ".changeset/35384-reader-labels-translate-object.md",
        "packages/objectql/src/validation/rule-validator.ts",
        "packages/objectql/src/validation/rule-validator.test.ts",
        "packages/objectql/src/engine-label-source-locale.test.ts",
        "packages/objectql/src/engine-validation-locale-negotiation.test.ts",
        "packages/objectql/src/engine-validation-tenant-rewrite.test.ts",
        "packages/plugins/plugin-approvals/src/reader-locale-labels.ts",
        "packages/plugins/plugin-approvals/src/reader-locale-labels.test.ts",
        "packages/plugins/plugin-approvals/src/record-lock-user-facing-message.test.ts",
        "packages/plugins/plugin-audit/src/activity-summary-message.ts",
        "packages/plugins/plugin-audit/src/activity-summary-message.test.ts",
        "packages/plugins/plugin-audit/src/audit-option-label-summary.test.ts"
      ],
      "line_budget": "n/a — no skills/** or byte-ratchet ledger touched",
      "deviations": [
        "Order said '⛔ no second copy of the resolve options' (hypothesis: reuse #35351's builder). Measured: no builder is reachable from plugin-approvals or plugin-audit. rest metaTranslateOptions is not a dependency; objectql labelTranslationOf is private; #35351 itself inlined the lines in objectql and plugin-security. So each plugin carries one inlined copy whose docblock names metaTranslateOptions. objectql reuses labelTranslation (no copy). Consolidation is in open_questions.",
        "Test files outside the three named readers' own tests, edited as fixture triage of doubles that answered labels through t() only: objectql engine-validation-locale-negotiation.test.ts and engine-validation-tenant-rewrite.test.ts (doubles gain getTranslations/getFallbackLocale; the three t()-locale probes now trip a built-in max_length message), approvals record-lock-user-facing-message.test.ts (doubles gain getTranslations), audit audit-option-label-summary.test.ts (bare-string option case re-pinned to what /meta serves).",
        "Behaviour narrowing for a spec-illegal declaration: a bare-string select option (options: ['p1']; SelectOptionSchema is a strict object) is no longer translated in an audit reader's summary through the t() key. It reads as /meta serves it, i.e. as written. No consumer-side normalizer was added (Prime Directive 12).",
        "The area's offered widening (one service-messaging file) was not used: the only messaging fix is in renderWith, the per-delivery keyed-param resolver every producer shares, and needs an objects.OBJECT.label key-shape parse. That is outside the 'narrow' limit, so the PR keeps 'Part of #35384'.",
        "The reader locale handed to translateObject is the negotiated one, following #35351's objectql/plugin-security precedent, not /meta's raw request tag. The two differ only for a regional tag of the authored locale (en-US under sourceLocale en while an en locale is held): see open_questions.",
        "Declared narrowing: the full plugin-approvals/plugin-audit suites ran at b61713eeb, not at the final head b81511248. Only the 4 test files changed after it, plus typecheck, were re-run there (lock queue).",
        "Commit trailers use the model-free pair AGENTS.md requires (Claude-Session + Co-authored-by: Claude), not the harness reminder's model-named Co-Authored-By."
      ],
      "open_questions": [
        {
          "question": "Approval notification subject param: objects.OBJECT.label rides as a keyed param and service-messaging resolves it per recipient at delivery through t() (notification-text.ts renderWith: lookup(i18n, param.key, locale) ?? param.fallback). A sourceLocale recipient reads the defaultLocale row. Which fix?",
          "options": [
            "A: renderWith resolves a keyed param whose key parses as objects.OBJECT.label through translateObject with the /meta options. Small (one file + tests), but it is a key-shape parse inside the resolver every producer shares, and a fourth inlined options copy.",
            "B: declare a typed object-label param in NotificationTextKeys (e.g. { object: NAME, fallback }) that messaging resolves through translateObject. approvals subjectParams emits it, and the validator (KEYED_PARAM_MEMBERS) admits it. Contract change in service-messaging, about 1 day.",
            "C: leave it; notifications keep the t() row for sourceLocale recipients."
          ],
          "recommendation": "B, because it names the param's meaning in the contract instead of parsing a key, and it fixes every producer that names an object in a notification. It is a separate card in the domain:server lane."
        },
        {
          "question": "Measured (translateObject from this branch's spec dist @c0111e2ed): under sourceLocale en / defaultLocale zh-CN with an en locale held, an en-US request gets 客户 (the defaultLocale row) from /meta, which hands the raw tag, and Account from objectql/plugin-security/these readers, which hand the negotiated tag. With no en locale held, both answer 客户. Which side moves?",
          "options": [
            "A: the spec resolver counts a regional tag of the authored locale as authored (negotiated isDefaultLocale). This reverses the #15711 'a different tag is a different locale' reading, so it needs a ruling, at contract tier.",
            "B: the server readers hand translateObject the raw request tag (objectql engine-validation-messages.ts, plugin-security, approvals, audit). All agree with /meta, but an en-US reader reads the defaultLocale row everywhere.",
            "C: /meta negotiates the request tag against the held locales before translating (rest meta-item-read-gate.ts), the rule every server reader already uses. One rest change, no spec change."
          ],
          "recommendation": "C, because it makes /meta use the one negotiation rule the rest of the server uses, needs no resolver ruling, and gives the en-US reader the authored text whenever an en catalog exists."
        },
        {
          "question": "The /meta ResolveOptions builder is now inlined about 9 times (rest metaTranslateOptions, objectql x2, plugin-security, plugin-email, service-analytics, service-storage, plugin-approvals, plugin-audit). Consolidate?",
          "options": [
            "A: one exported builder beside ResolveOptions in @objectstack/spec/system (from an II18nService-shaped source and a locale), with every copy migrated. A new spec export, so contract tier and api-surface regen; about 1 day.",
            "B: leave the inlined copies."
          ],
          "recommendation": "A, because one builder is what keeps 'the same resolve options /meta builds' true by construction rather than by review."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: area f7-text (repo:objectstack#7) · plugin-approvals readerLabelsFor still reads flow, step and position labels through t() (flows.FLOW.label, flows.FLOW.approvals.NODE.label, positions.NAME.label), which /meta serves through its own translators. Same sourceLocale shape, read from source only, not measured at a public door · dedupe words: readerLabelsFor flowLabel sourceLocale, approval step label t() sourceLocale, position label sourceLocale · noted, not filed"
      ]
    }
  9. 7 remaining items

  10. removed
    pm:queue
    on Nov 23, 2026
  11. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX

    Scope note — card #35384 · area s2-E · 2026-11-23T01:07Z

  12. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX
    os-dev-report

    Stage 2 of the remainder, items 2 and 3, as of 2026-11-23T01:57Z.

    {
      "issue": 35384,
      "status": "done",
      "branch": "claude/issue-35384-approval-labels-remainder",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36598",
      "session": "session_01ADHkmPTDM2MxHR8cvoMVUX",
      "premise_still_valid": true,
      "summary": "Remainder items 2 and 3 of release 7082136476; the PR body opens with 'Part of #35384'. Item 2: in plugin-approvals readerLabelsFor, flowLabel and positionLabel no longer read through t(). They resolve through translateFlow and translatePosition (@objectstack/spec/system) over every locale the i18n service holds, with the /meta resolve options (negotiated reader locale, declared fallback chain, sourceLocale else defaultLocale). So en and en-US readers in a sourceLocale-en / default-zh-CN deployment read the authored labels on the inbox, the request page, the data-door rows and timeline position notes. Item 3: approvals objectLabel and audit translatedObjectDef now hand translateObject the object's served definition plus packagedBase, read off the engine's registry (registry.getPackagedObjectBase, the body the protocol accessor reads). A code-renamed packaged object therefore reads its rename in every locale, as /meta does. Not done, and raised as an open question: the approval STEP label (flows.FLOW.approvals.NODE.label) stays on t(), because no spec translator reads that key. Mechanism assumption falsified: /meta does not translate flows (translateFlow is deliberately unregistered), so the flow side reuses translateFlow itself. The en-US assumption holds: negotiatedReaderLocale answers en for en-US when an en pack exists, measured in a pin.",
      "tests": "Head 0e315358fa. `pnpm --filter @objectstack/plugin-approvals test`: Test Files 127 passed (127), Tests 1880 passed (1880). `pnpm --filter @objectstack/plugin-audit test`: Test Files 109 passed (109), Tests 1821 passed (1821). Typecheck of both packages (tsc + scripts tsconfig + check:test-typecheck): lock VERDICT command-exit 0. The first typecheck had 2 TS2339 errors on untyped translator docs, fixed in 0e315358fa. New pins: reader-locale-labels.test.ts 37 passed, activity-summary-message.test.ts 24 passed. Ablation: one lock call, scripts/ablation-replace.mjs per leg plus a trap restore; the subject is imported from src/, so there is no dist leg. Leg 1 (approvals objectLabel without packagedBase): 3 failed / 37 (en, en-US, zh-CN rename). Leg 2 (flowLabel back on t()): 3 failed / 37 (en and en-US authored, t()-only). Leg 3 (positionLabel back on t()): 3 failed / 37 (same three). Leg 4 (audit translatedObjectDef without packagedBase): 3 failed / 24 (en, en-US, zh-CN rename). Each leg's anchor went x1 to x0 on disk and was restored with blob equal to HEAD. Final hashes match HEAD, `git diff HEAD` is empty, and the marker count is 0 in both files. Downstream sweep by grep: tests outside the two packages that boot approvals or audit assert no reader-locale flow, position or object label or summary. None ran red (none was run); the changed modules are not exported.",
      "gates": "`node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (stderr: tree objectstack-ai/objectstack @0e315358fa, 7 paths vs merge base 934ac0775) derived 72 families. Each exit code was captured before any pipe: 70 exit 0. NOT MEASURED, exit 3 PREREQUISITE NOT MET: check:dual-build-cjs-loads (needs a full build) and check:i18n (needs the built CLI closure); CI runs both. `--ran /mnt/project-files/objectstack-seat2/35384-gates-ran.txt`: 72 derived, 70 run, 2 NOT-MEASURED, 0 UNRUN, exit 0. overlap-check --branch=HEAD: clean exit 0 before the first push (302a70b607) and at 0e315358fa. No exported symbol was renamed or removed, so check-platform-checklist is not owed. PR check-runs at 0e315358fa when this report was written: Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards, Lint (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3) and Type Check (workspace, source, consumer, debt ledger) in_progress; opt-in and queue jobs skipped; Test Core and Build Core not yet listed.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (repository_dispatch, run 45097321878: POST /repos/objectstack-ai/objectstack/pulls plus its assignees leg POST /issues/36598/assignees; read-back identical, 8574 bytes; assignee os-steve; no labels); post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35384/comments). git push not counted",
      "files_changed": [
        ".changeset/35384-approval-labels-remainder.md",
        "packages/plugins/plugin-approvals/src/reader-locale-labels.ts",
        "packages/plugins/plugin-approvals/src/reader-locale-labels.test.ts",
        "packages/plugins/plugin-approvals/src/approval-service.ts",
        "packages/plugins/plugin-approvals/src/lifecycle-hooks.ts",
        "packages/plugins/plugin-audit/src/activity-summary-message.ts",
        "packages/plugins/plugin-audit/src/activity-summary-message.test.ts"
      ],
      "line_budget": "n/a — no skills/** or byte-ratchet ledger touched",
      "deviations": [
        "File surface: packages/plugins/plugin-approvals/src/approval-service.ts (readerLabels passes this.engine) and lifecycle-hooks.ts (two readerLabelsFor calls pass engine) are outside the claim's listed files. They are the callers that hand objectLabel its served definition and packaged base; this is not reachable from reader-locale-labels.ts alone.",
        "The packaged base is read off the engine's registry (registry.getPackagedObjectBase), not through the 'protocol' service as #36460 does. It is the same body the protocol accessor reads. Threading the protocol into ApprovalService would have needed a new member on the exported ApprovalServiceOptions (public widening; Clause-② must stay no).",
        "The first `git push -u` of the empty branch, before any edit, was refused by the auto-mode classifier. Nothing was re-routed. The branch was first pushed with commit 302a70b607, after overlap-check came back clean.",
        "Item 2 is partial: the step label stays on t() (see open_questions)."
      ],
      "open_questions": [
        {
          "question": "How should the approval step label (flows.FLOW.approvals.NODE.label) leave t()? No spec translator reads that key today.",
          "options": [
            "A: a spec export, for example translateFlow overlaying an approval node's label from flows.FLOW.approvals.NODE.label, or a resolveFlowApprovalStepLabel(bundle, flow, node, opts). This touches packages/spec/src, needs Clause-② yes (widening), and is about 1 file plus pins in spec and 1 call site in plugin-approvals. One resolver serves every reader.",
            "B: walk the bundle along the locale chain inside plugin-approvals. No public change, but it is a second copy of spec's private localeChain rule, which the module docblock and the #34030 rule forbid.",
            "C: leave the step label on t(). An en reader keeps seeing the zh-CN step label next to the authored flow label."
          ],
          "recommendation": "A, as its own stage card: it keeps one resolver for the flows face and is the only option that meets the #34030 rule; B duplicates the resolver, and C leaves the defect."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  13. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPTDM2MxHR8cvoMVUX

    Partial landing — card #35384 · area s2-E · 2026-11-23T02:49Z

    • Delivered by PR fix(approvals,audit): flow and position labels, and a renamed object's label, read as the metadata translators serve them #36598 (MERGED): items 2–3. Approval flow and position labels resolve through translateFlow / translatePosition with the /meta resolve options; a renamed packaged object reads its rename in approvals and activity summaries (packagedBase off the engine registry).
    • Remaining, with the seat's card thread (queued until seat 2's concurrency drops under 10): item 1 (typed object-label param in NotificationTextKeys, Clause-②: yes) and the approval STEP label (flows.<flow>.approvals.<node_id>.label), option A — a spec translator export, Clause-②: yes (widening).
    • State: pm:dispatched and assignee stay as they are, held by seat repo:objectstack#2 for that thread; area s2-E is done with this card.
  14. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQNmyLgnBbCoc2iFjL

    Claim: PM loop · card thread · continuation of remainder item 1 and the approval step label (scope note 7088898841, partial landing 7090254542) · 2026-11-23T02:53Z
    Session: session_01ADHkmQNmyLgnBbCoc2iFjL
    Thread session: session_01ADHkmQNmyLgnBbCoc2iFjL
    Account: os-steve
    Branch: claude/project-thread-xn01j3
    Worktree: objectstack-issue-35384
    Domain: domain:server (spec half rides as the card's Clause-② widening; card thread of seat repo:objectstack#2, reporting to area s2-E)
    Seat: repo:objectstack#2
    File surface: packages/spec/src/system/i18n-resolver.ts (one new exported resolver for flows.<flow>.approvals.<node_id>.label, in the resolveFlowScreenTitle / translateFlow family) + its spec test and any spec liveness/API-surface baseline the export moves; packages/services/service-messaging/src/notification-text.ts (+ index.ts re-export, the dispatcher/inbox render callers only as needed) for a typed object-label param in NotificationTextKeys, resolved through translateObject with the /meta resolve options; packages/plugins/plugin-approvals/src/approval-notification-text.ts (subjectParams emits that param), packages/plugins/plugin-approvals/src/reader-locale-labels.ts (stepLabel off t()); their tests; one .changeset/*.md. ⛔ Not skills/**, not docs/adr/**, not the TranslateDocumentOptions.packagedBase docblock (#36595 item 3), not service-messaging/src/objects/** (open PR #36605). Stop on breach; explain in the report.
    Container & model: M, mode:thread (one os-dev subagent in this card thread's container), model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate; i18n-resolver.ts flagged Clause-② SUSPECT, judged yes from the card content), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: service-messaging resolves the approval notification's object param through t(), and plugin-approvals reads the approval step label through t(), because no spec translator reads flows.<flow>.approvals.<node_id>.label (objectstack-ai/objectstack) | /meta's translateObject resolve options; translateFlow/translatePosition already serve the flow and position labels (PR #36598) | approval notification recipients and approval readers in a deployment whose sourceLocale differs from defaultLocale
    Thread-read: 7090254542
    Premise: holds — main aff34ba: service-messaging/src/notification-text.ts renderWith resolves a { key, fallback } param through lookup(i18n, param.key, locale) (t()); plugin-approvals/src/approval-notification-text.ts subjectParams emits { key: objectLabelKey(objectName), fallback }; plugin-approvals/src/reader-locale-labels.ts:380 stepLabel picks approvalStepLabelKey(...) through t(); packages/spec/src/system/i18n-resolver.ts has no reader of approvals.<node_id>.label (translateFlow overlays screen nodes only).
    Pre-claim lane: card thread of seat repo:objectstack#2 (whole-repo lane); packages/spec/src/** widening stays in this lane under the area-lease keep-lane rule; L2 owed on the spec export and the Clause-②: yes declaration.
    Pre-claim deps: PR #36464 and PR #36598 merged (items 2–3 delivered).
    Prior rulings read: seat ruling on the step label — option A, a spec export (not a copied locale chain in the plugin, not leaving it); the #34030 rule quoted on the card ("resolve the label through translateObject with the same resolve options /meta builds, so t() carries messages only"); check-prior-rulings --card 35384 names ADR-0029 D8 (catalog keys for notification text) and ADR-0061 D4 — no conflict with a typed param that still falls back to the literal.
    Serial constraints cleared: open PRs touching the surface: #36605 (service-messaging/src/objects/**, plugin-approvals *.object.ts — disjoint files), #36386 (a plugin-approvals integration test — disjoint); #36595 (same i18n-resolver.ts, docblock of TranslateDocumentOptions.packagedBase) is pm:queue, unclaimed — this PR leaves that docblock alone; #36467 (one exported options builder) is p3 pm:queue and not folded; overlap-check runs at first push
    Proposed export name (the seat names it): resolveFlowApprovalStepLabel(bundle, flowName, nodeId, literal?, opts?), precedent resolveFlowScreenTitle (same file, same flows.<flow>.<group>.<node_id> shape). Alternative: an approval-node overlay inside translateFlow.
    Fixes: this PR closes the card (Fixes #35384) when both remainder items land in it.

  15. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Seat name ruling for the approval step label (claim 7090303882), with a premise.

    • Preferred: no new export. translateFlow also overlays the approval nodes' label (flows.FLOW.approvals.NODE.label). PR fix(approvals,audit): flow and position labels, and a renamed object's label, read as the metadata translators serve them #36598 already routes the approvals plugin's flow and position labels through translateFlow / translatePosition, so the same call yields the step label and the public surface does not grow. The nearest named precedent, resolveFlowScreenTitle, is documented as retiring, so it is not copied.
    • Premise (the dev measures it first): the read point that draws the step label holds, or already reads, the flow document.
    • If the premise fails (the read point has only the flow name and node id, and the document would need an extra read): resolveFlowApprovalStepLabel(bundle, flowName, nodeId, literal?, opts?) is accepted, with the premise reading in the PR body.
  16. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQNmyLgnBbCoc2iFjL
    os-dev-report

    Card thread round, remainder items 1 and 2: the approval notification object label and the approval step label. As of 2026-11-23T04:03Z.

    {
      "issue": 35384,
      "status": "done",
      "branch": "claude/project-thread-xn01j3",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36620",
      "session": "session_01ADHkmQNmyLgnBbCoc2iFjL",
      "head": "0b91c34bf0fc966efdf72ebfc528abbc6dcb920e",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 0b91c34b (14 paths vs merge base c6075a785) derived 97 families; each run with stdin from /dev/null, exit captured before any pipe; record /mnt/project-files/objectstack-seat2/35384-item1-gates-ran.txt. 97 exit 0. check-plugin-teardown-shape --self-test was exit 3 (PREREQUISITE) on the first pass; after git fetch --depth=1 of 621a4876 it re-ran with exit 0. --ran reconciliation: 97 derived, 97 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. A full pnpm build ran first (lock VERDICT command-exit 0, 120/120 tasks), so check:dual-build-cjs-loads and check:i18n were measured with exit 0. Local-only check:dev-prereqs exit 0. overlap-check --branch=HEAD VERDICT clean exit 0 at 06b0d43d, 0b91c34b and before pr_create. PR check-runs at 0b91c34b when written: Governed Surface Queue Guard success; Check Changeset, Lint (all lanes), Type Check (all lanes), Spec property liveness and PR-body guards in_progress; Test Core and Build Core not yet listed.",
      "tests": "Full suites at 2dfa8720 (code head; the merge of origin/main after it touched none of these packages): service-messaging 80/80 files, 1084/1084 tests; plugin-approvals 127/127 files, 1883/1883 tests; spec at 9d5362af 880/880 files, 28058 passed + 1 todo. Typecheck of all three packages (with check:test-typecheck): exit 0. Ablation via ablation-replace.mjs with trap restore, src subjects, no dist leg: leg 1a (messaging label via t()) 5 failed/7; leg 1b (no packagedBase) 1 failed/7; leg 2 (approvals stepLabel via t()) 5 failed/37; leg 3 (spec chain ignores authored locale) 1 failed/5; leg 4 (approvals emits { key }) 2 failed/8. Every leg restored: blob == HEAD, git diff HEAD empty.",
      "line_budget": "n/a — no skills/** or byte-ratchet ledger touched",
      "deviations": [
        "Worktree branch: git refused worktree add -B claude/project-thread-xn01j3 because the shared checkout /home/user/objectstack has that branch checked out. The worktree uses a local branch c35384-thread, pushed as HEAD:refs/heads/claude/project-thread-xn01j3. The shared checkout was not edited.",
        "Step label export: the seat's ruling was conditional on the read points holding or reading the flow document. Measured false: localizeRequestLabels has only process_name and current_step for every list row, and flowLabel hands translateFlow a name-only stub. So it is resolveFlowApprovalStepLabel; translateFlow is untouched. Readings are in the PR body.",
        "Changeset level patch, not minor: Metadata-protocol none takes patch under AGENTS.md Post-Task step 3.",
        "Maintainer brief has 4 lines, per os-dev.md, against the order's 6.",
        "Forced test edits: reader-locale-labels.test.ts (two t()-only step pins re-triaged onto getTranslations) and no-approver-note.test.ts (narrows the widened param union; TS2339 from check:test-typecheck).",
        "Ablation leg 1b's first attempt was refused by ablation-replace as a no-op (its replacement text already existed in the file) and was re-run with a distinct replacement.",
        "Commit trailers use the model-free pair AGENTS.md requires."
      ],
      "files_changed": [
        ".changeset/35384-step-label-and-notification-object-label.md",
        "packages/plugins/plugin-approvals/src/approval-notification-keyed-text.integration.test.ts",
        "packages/plugins/plugin-approvals/src/approval-notification-text.ts",
        "packages/plugins/plugin-approvals/src/no-approver-note.test.ts",
        "packages/plugins/plugin-approvals/src/reader-locale-labels.test.ts",
        "packages/plugins/plugin-approvals/src/reader-locale-labels.ts",
        "packages/services/service-messaging/src/index.ts",
        "packages/services/service-messaging/src/keyed-notification-text.integration.test.ts",
        "packages/services/service-messaging/src/notification-text.ts",
        "packages/spec/api-surface/system.json",
        "packages/spec/export-origins/system.json",
        "packages/spec/liveness/translation.json",
        "packages/spec/src/system/i18n-resolver.test.ts",
        "packages/spec/src/system/i18n-resolver.ts"
      ],
      "security_findings": "none"
    }
  17. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Seat name rulings for PR #36620 (#35384).

    1. Approval step label: the premise of ruling 7090334812 failed as measured (the read points hold only the process name and current step, approval-service.ts and the middleware; no flow document), so resolveFlowApprovalStepLabel stands as accepted there. translateFlow is untouched.
    2. Service-messaging param member: { object, fallback }, type name NotificationObjectLabelParam (the dev's type name kept). Not objectLabel: the member holds an object's API name, not a label, and a member named for a label invites a caller to pass a label. Precedent: object is the spec's word for an object's API name across views, flows and actions, and the sibling arm { key, fallback } names its member for what it holds.
  18. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQNmyLgnBbCoc2iFjL
    os-dev-report

    Rework round on PR #36620 (seat naming 7091274184, plus the three CI reds on 0b91c34). As of 2026-11-23T04:52Z.

    {
      "issue": 35384,
      "status": "done",
      "branch": "claude/project-thread-xn01j3",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36620",
      "session": "session_01ADHkmQNmyLgnBbCoc2iFjL",
      "head": "cfce553f641ece82053a0eb1997a8958accecdd2",
      "gates": "Re-derived at cfce553f (14 paths vs merge base c6075a785): 97 families, each run with stdin from /dev/null and exit captured before any pipe; 97 exit 0. Record: /mnt/project-files/objectstack-seat2/35384-item1-gates-ran-r2.txt (cmp identical after 10s). --ran: 97 derived, 97 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. A cache-backed full pnpm build ran first (120/120 tasks, lock VERDICT command-exit 0). check:dev-prereqs exit 0. overlap-check --branch=HEAD VERDICT clean exit 0, run right after the cfce553f push and again before this report. PR check-runs at cfce553f when written: Test Core, Test UI, Lint & Repo Gates, TypeScript Type Check, Build Core, Type Check UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Governed Surface Queue Guard and Spec property liveness all success; Lint UI skipped; Check Changeset and PR-body guards in_progress (58 success, 13 skipped, 2 in_progress).",
      "ci_reds_on_0b91c34b": "None is a test or type failure. Run 45109434849 concluded cancelled at 04:07:57Z, superseded by the cfce553f push (committed 04:07:17Z; its run 45109928513 created 04:07:32Z). Every Test UI (16), Test Core (10), Lint and Type Check lane on 0b91c34b concluded cancelled between 04:07:33Z and 04:07:57Z. Test UI 137479709844 logged: the shards concluded cancelled. Lint & Repo Gates 137479794854 logged four lint lanes concluded cancelled. TypeScript Type Check 137479807142 logged three type-check lanes concluded cancelled, with no error TS line. All three are success on cfce553f. git grep finds no consumer of NotificationTextParam, ApprovalTextParam or keyed_text under ui/** or examples/**. No rerun was sent.",
      "tests": "At cfce553f: build of both closures 40/40; typecheck of service-messaging and plugin-approvals (incl. check:test-typecheck) exit 0; service-messaging 80/80 files, 1084/1084 tests; plugin-approvals 127/127 files, 1883/1883 tests (lock VERDICT command-exit 0). The closed-shape pin still refuses { object, fallback, key }. Spec is unchanged this round.",
      "line_budget": "n/a — no skills/** or byte-ratchet ledger touched",
      "deviations": [
        "The cfce553f push went out before overlap-check; the check, run right after, is clean.",
        "The PR body patch carries the signed trailer as its last line, after the 'Generated with' line. dispatch.mjs refuses an issue_patch PR body without it, and refuses any footer after it."
      ],
      "files_changed": [
        ".changeset/35384-step-label-and-notification-object-label.md",
        "packages/plugins/plugin-approvals/src/approval-notification-keyed-text.integration.test.ts",
        "packages/plugins/plugin-approvals/src/approval-notification-text.ts",
        "packages/plugins/plugin-approvals/src/no-approver-note.test.ts",
        "packages/services/service-messaging/src/keyed-notification-text.integration.test.ts",
        "packages/services/service-messaging/src/notification-text.ts"
      ],
      "security_findings": "none"
    }
  19. removed
    pm:dispatched
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:serverfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions