Skip to content

approvals: the no-approver decide refusal and a multi-slot submitter notice still carry English words #36463

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Follow-up from #36308 (PR #36450, the no-approver position is named by its label). The PR states two gaps in its Acceptance notes. Filed by the seat. Parent: #36308.

What happens

  1. When a decide is refused because a position has no approver, the refusal reaches the reader as an English sentence with the position's label inside it. The REST error mapper has no userMessage channel for this refusal, so the console cannot show it in the reader's language.
  2. A submitter notice for a step with several approver slots keeps one English word for "who", because the messaging layer's keyed parameters cannot nest a translated list.

To do

  1. Carry a translatable userMessage (or a key and parameters) on the approvals decide refusal through the REST mapper, and have the console show it.
  2. Let the submitter notice name several slots in the reader's language, either by flattening the list into one translated parameter or by a messaging change that allows it.

Acceptance

  • In zh-CN, the no-approver refusal and a multi-slot submitter notice read entirely in Chinese, with the position labels as stored.

Blocked-by: #36450

Grade

p3 · area:ux · domain:ui. English words left in two approval messages.


Generated by Claude Code

Activity

  1. added
    enhancement
    pm:blocked
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: pm:blocked as filed; rationale: area:ux · Bug · the no-approver decide refusal and a multi-slot submitter notice still carry English words in a translated session. UX has no p3 → p2 (was p3) · size XS. Linked under topic #36243 (审批收尾).

  3. added
    priority:p2
    and removed on Nov 22, 2026
  4. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Unlock (daily scan): every Blocked-by: target is closed, so pm:blocked → pm:queue; grade unchanged.

    Target #36450 merged at 2026-11-22T13:11Z. No newer Blocked-by: line in the thread, no Unlock-action: line, no assignee. Same repository, so no installability check is owed.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 23, 2026
  6. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    Claim: PM loop round 1 (area ux-D)
    Session: session_01WGufziH9MVhWYLVCiw5eXB
    Account: os-support-ai
    Branch: claude/issue-36463-no-approver-text-in-reader-language
    Worktree: objectstack-issue-36463
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: ux-D
    File surface: packages/plugins/plugin-approvals/src/approval-service.ts (the two FORBIDDEN decide refusals that carry the no-approver remedy, ~5960–5990), packages/plugins/plugin-approvals/src/no-approver-note.ts (noApproverNotice multi-slot who), packages/plugins/plugin-approvals/src/approval-notification-text.ts (keyed params, only if the list must travel as one translated parameter), packages/rest/src/approvals-routes.ts (the decide error mapper's userMessage channel), the console reader that shows the decide refusal, the approvals message packs for any new key, their tests, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7107672290
    Premise: holds — measured on origin/main f77d078: both decide refusals (excludeSubmitter self-approve and the override self-approve) throw new Error('FORBIDDEN: …') with noApproverNoteText({ who }) in English and no userMessage; noApproverNotice keys only the single-slot case (approvalNoApproverHoldingSlot with keyed type/value) and passes multi-slot who as one English-joined string to approvalNoApproverHolding
    Pre-claim lane: packages/plugins/plugin-approvals, packages/rest and the console are repo:objectstack lane paths; no non-test packages/spec/src/** path expected (if the messaging change needs one, the dev stops and reports)
    Pre-claim deps: Blocked-by: #36450 merged 2026-11-22T13:11Z (unlock 7107672290); #36695 (same file) merged; no other dependency
    Prior rulings read: check-prior-rulings --card 36463 --paths (approval-service.ts, no-approver-note.ts, approvals-routes.ts) → 139 hit lines in 2 files, 15 with an id shape, read by the dev near every line it edits; [Maintainer ruling 2026-11-17, option B] (override never approves own request) sits on the refusal being changed and is kept as is: this card changes only the language of its text; same-day churn 65ee4b7 on approval-service.ts — work on current main; epic #36243 (审批收尾) open; repo: objectstack-ai/objectstack
    Serial constraints cleared: none — no open PR touches approval-service.ts, no-approver-note.ts, approval-notification-text.ts or approvals-routes.ts (open-PR file census of all 44 open PRs, 03:28Z)

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB
    os-dev-report

    {
      "issue": 36463,
      "status": "done",
      "branch": "claude/issue-36463-no-approver-text-in-reader-language",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36846",
      "session": "session_01WGufziH9MVhWYLVCiw5eXB",
      "premise_still_valid": true,
      "summary": "Both decide refusals of a submitter's own approval (excludeSubmitter and the override self-approve, behaviour per [Maintainer ruling 2026-11-17, option B] unchanged) now throw with the English message byte-identical plus a userMessage composed in the decider's language (5 new approvalDecideRefused* keys in all 11 packs, submitterRefusalUserMessage in no-approver-note.ts, all-or-nothing English fallback). The approvals REST mapper carries a marked userMessage at the top level of its flat body (RESUME_FAILED's existing member; @objectstack/client lifts it there), and the console shows it: the record page's type:'api' Approve via refusalEnvelopeMessage/refusalBodyUserMessage in ui/packages/app-shell/src/utils/flowResponse.ts (line 430 on f77d078da), and the Approval Center inline Approve via humanizeError in ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx (879, called at 1429). The multi-slot submitter notice: messaging renders per recipient at delivery but a keyed param is one hole-free key, so a translated list cannot be one param (PM flatten-into-one-param assumption falsified); instead approvalNoApproverHoldingSlots2..8 are derived per pack from that pack's Holding/Slot/Separator entries, one keyed typeN/valueN pair per slot, so a zh-CN multi-slot notice reads entirely in Chinese; more than 8 slots keeps the old English who (Acceptance notes). Timeline overlay (localizeRoutingNotes) shares noApproverWho via noApproverNoteText(render) and already handled any slot count: untouched.",
      "tests": "All at head 869d5de0a. plugin-approvals full vitest: Test Files 127 passed (127), Tests 1899 passed (1899). rest full vitest: Test Files 433 passed (433), Tests 9114 passed | 376 skipped (9490). Targeted (no-approver-note, exclude-submitter, admin-rescue-named-slate, keyed-text, admin-rescue-note): 5 files / 86 tests passed; rest-approvals-wire-codes 16 passed. UI: flowLaunch.preDispatchRefusal-36390 + ApprovalsInboxPage.inlineActionsVisible-34587: 2 files / 17 tests passed. Ablations via scripts/ablation-replace.mjs (src-resolved suites, no dist leg): mapper userMessage spread deleted -> rest-approvals-wire-codes 1 failed | 15 passed, restored blob==HEAD 081349619977, git diff HEAD empty; service err.userMessage assignment voided -> exclude-submitter 2 failed | 23 passed, restored blob==HEAD cf6aeeceab14, git diff HEAD empty.",
      "gates": "Local, head 869d5de0a, exit captured before any pipe: closure build (plugin-approvals^... + rest^...) VERDICT command-exit 0; pnpm --filter plugin-approvals --filter rest typecheck VERDICT command-exit 0; dispatch-gates --commands = 78 families: 76 exit 0, 2 exit 3 PREREQUISITE NOT MET = NOT MEASURED (check-plugin-teardown-shape --self-test: shallow checkout; check:dual-build-cjs-loads: needs full workspace build); pnpm check:i18n first exit 3 (CLI not built), after its declared prerequisite build: OK 10 packages exit 0; pnpm --dir ui exec vitest run scripts/ first exit 1 (51 modules failed to resolve @objectstack/client, unbuilt), after building client: 172 passed | 2 skipped, exit 0; ui check:new-line-citations 0 new exit 0; overlap-check VERDICT clean exit 0 before each push. --ran with exit codes: '78 derived famil(ies) accounted for — 76 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. NOT MEASURED: type-check of @object-ui/app-shell and @object-ui/console (2103 errors, all cascading from TS2307 unbuilt @object-ui/* declarations, none non-resolution in touched files) -> CI Type Check UI. check-platform-checklist not owed (no export renamed or removed, only added). CI check-runs: in_progress at report time (PR just opened), not awaited.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST pulls #36846 + its assignee leg) via scripts/pm/fleet-write/dispatch.mjs; issue comment (os-dev-report) on #36463 via scripts/pm/post-stamped.mjs. git push is not a REST write.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: a multi-slot notice for a slate of more than 8 slots still names its slots in English; naming any number would need a list-shaped keyed param in @objectstack/service-messaging (outside this card's surface). In PR Acceptance notes.",
        "carrier: none · noted, not filed: the Approval Center bulk approve reports failures by record title only, no reason for any refusal (pre-existing; observation). In PR Acceptance notes."
      ],
      "line_budget": "13 files, +575 / -48 (diff f77d078da..869d5de0a): source +153/-27, tests +267/-6, packs +139/-15 (55 authored strings + derivation), changeset +15",
      "deviations": [
        "File surface: two console readers changed instead of one — the record page's type:'api' refusal reader (flowResponse.ts refusalBodyUserMessage, shared by every type:'api' action, gated by the same declaredUserMessage predicate) and the inbox humanizeError; both are 'the console reader that shows the decide refusal'.",
        "PM mechanism assumption corrected: the declaredUserMessage block near recognisedRefusal relays an engine resume refusal, not an approvals refusal producer; the reused producer pattern is lockedError/snapshotQueryRefusal (thrown .userMessage) plus the mapper's top-level userMessage member.",
        "PM flatten-into-one-param route falsified (messaging resolves a keyed param as one hole-free key at delivery; emit knows no recipient locale); flattened into derived arity sentences instead, capped at 8.",
        "userMessage set on both branches of both refusals (also the another-approver branch), not only the no-approver branch, so the same refusal never shows half localized.",
        "The commit history carries two wip: commits; trailers model-free."
      ],
      "files_changed": [
        ".changeset/36463-no-approver-text-in-reader-language.md",
        "packages/plugins/plugin-approvals/src/admin-rescue-named-slate.integration.test.ts",
        "packages/plugins/plugin-approvals/src/approval-service.ts",
        "packages/plugins/plugin-approvals/src/exclude-submitter.integration.test.ts",
        "packages/plugins/plugin-approvals/src/no-approver-note.test.ts",
        "packages/plugins/plugin-approvals/src/no-approver-note.ts",
        "packages/plugins/plugin-approvals/src/translations/messages.ts",
        "packages/rest/src/approvals-routes.ts",
        "packages/rest/src/rest-approvals-wire-codes.test.ts",
        "ui/apps/console/src/pages/system/ApprovalsInboxPage.inlineActionsVisible-34587.test.tsx",
        "ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx",
        "ui/packages/app-shell/src/utils/__tests__/flowLaunch.preDispatchRefusal-36390.test.tsx",
        "ui/packages/app-shell/src/utils/flowResponse.ts"
      ],
      "Dev-effort": "high",
      "Rounds": 1
    }
  9. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    Claim amendment · 2026-11-24T05:00Z · Area: ux-D · Clause-②: yes (widening) (was no), per L1 S1 7122520696 on PR #36846: the approvals decide door's flat refusal body gains a marked top-level userMessage for the two self-approve refusals (precedent #34619 on the same door). Metadata-protocol: none and patch stay. Lane-keep: stays in area ux-D; the declaration-face L2 (TIER_DEFAULT) runs in L1-b (claim 7122485541).

  10. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB
    os-dev-report

    {
      "issue": 36463,
      "status": "done",
      "branch": "claude/issue-36463-no-approver-text-in-reader-language",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36846",
      "session": "session_01WGufziH9MVhWYLVCiw5eXB",
      "premise_still_valid": true,
      "summary": "Round 2 for L1-b REWORK 7122520696 S1. Changed the changeset only: its Clause-② line now reads `Clause-②: yes (widening)`, and a new paragraph names the widened body: the approvals decide door (packages/rest/src/approvals-routes.ts) gains an optional top-level `userMessage` in its flat { code, error } refusal body. Today only the two self-approve 403 FORBIDDEN decide refusals answer it (excludeSubmitter and the administrator-override self-approve); it is absent when no producer marked one. Metadata-protocol: none and the patch levels are unchanged. No code change; the PR body and the claim were left for the seat.",
      "head": "5743d28df",
      "tests": "No code change in this round. The round-1 readings at 869d5de0a stand for every non-changeset file; the diff 869d5de0a..5743d28df touches only .changeset/36463-no-approver-text-in-reader-language.md.",
      "gates": "At 5743d28df, each exit captured before any pipe: node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0 (its level axis is PR-scoped, so locally it reads NOT APPLICABLE); node scripts/check-empty-changeset.mjs --base origin/main :: exit 0; node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0 ('adds no declared-breaking changeset'); pnpm changeset status --since=origin/main :: exit 0; overlap-check --branch=HEAD :: VERDICT clean exit 0 (origin/main merges cleanly; open PR #36845 shares flowResponse.ts and also merges cleanly). PR check-runs not awaited.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment on #36463 via scripts/pm/post-stamped.mjs (git push is not a REST write)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "line_budget": "1 file, +3 / -1 (.changeset only)",
      "deviations": [
        "The worktree was recreated from origin at 869d5de0a. Nobody else had pushed the branch."
      ],
      "files_changed": [
        ".changeset/36463-no-approver-text-in-reader-language.md"
      ],
      "Dev-effort": "high",
      "Rounds": 2
    }
  11. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB
    os-dev-report

    {
      "issue": 36463,
      "status": "done",
      "branch": "claude/issue-36463-no-approver-text-in-reader-language",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36846",
      "session": "session_01WGufziH9MVhWYLVCiw5eXB",
      "premise_still_valid": true,
      "summary": "Round 3 for contract review 7122570708 F2. I added one frontmatter line to .changeset/36463-no-approver-text-in-reader-language.md, `'@object-ui/app-shell': patch`, because ui/packages/app-shell/src/utils/flowResponse.ts changed. Nothing else changed.",
      "head": "a6c6666ad",
      "tests": "No code change in this round. Only the changeset frontmatter differs between 5743d28df and a6c6666ad, so the round-1 test readings at 869d5de0a stand for every code file.",
      "gates": "At a6c6666ad, each exit captured before any pipe: node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0; node scripts/check-empty-changeset.mjs --base origin/main :: exit 0; node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0; pnpm changeset status --since=origin/main :: exit 0 (its output now lists @object-ui/app-shell); overlap-check --branch=HEAD :: VERDICT clean exit 0 (origin/main merges cleanly; #36845, which shares flowResponse.ts, also merges cleanly). PR check-runs not awaited.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment on #36463 via scripts/pm/post-stamped.mjs (git push is not a REST write)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "line_budget": "1 file, +1 / -0 (.changeset frontmatter)",
      "deviations": [
        "The worktree was recreated from origin at 5743d28df; nobody else had pushed the branch."
      ],
      "files_changed": [
        ".changeset/36463-no-approver-text-in-reader-language.md"
      ],
      "Dev-effort": "high",
      "Rounds": 3
    }
  12. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    Close-out · 2026-11-24T05:53Z: delivered by PR #36846, merged as 76bff41f (Fixes #36463; L1 delta ACCEPT 7122641847, contract review PASS 7122655613, landing 7123018096). Both self-approve decide refusals now carry a userMessage in the decider's language (English message unchanged; override keeps maintainer ruling 2026-11-17 option B), the approvals routes pass it through the top-level userMessage member (Clause-②: yes (widening)), the record page and Approval Center show it, and a 2–8 slot submitter notice reads in the recipient's language. pm:dispatched removed; area and domain stay. Carriers: >8 slots (service-messaging list param, with the seat) and bulk-approve reason (#36855).

  13. removed
    pm:dispatched
    on Nov 24, 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:uienhancementpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions