Skip to content

Approvals: the decide refusal and the submitter notice still name a no-approver position by its internal name, and the approver-type word stays English in every pack #36308

Closed

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1

Filing gate: ① product defects with a named producer, found by the #36035 developer on PR #36306 (dev report on #36035, comment 7074647364, out_of_scope_findings). Filed as one family card on the seat's word. ⛔ Not a claim.

维护者速读

  • 问题:Approvals: the note for a position with no approver still shows the position's internal name #36035 让审批时间线上的「没有审批人」说明用岗位的显示名,但同一句话还出现在另外两处(审批被拒时的提示、给提交人的通知),那里仍是机器名;而且这句话里的「岗位」这个类型词在十一种语言里都是英文 position。
  • 影响:中文读者会看到「担任 position '销售经理' 的成员」这样中英混杂的句子,或者直接看到 legal 这类内部名。
  • 这一步做什么:让这几处共用同一个按读者语言命名的写法,并把类型词翻译进各语言包。
  • 要你做的:无。

What happens

  1. Two more doors still show the machine name. The decide refusal (POST decide, FORBIDDEN; its text ends with the no-approver remedy) and the submitter's approval.comment notice both compose the no-approver who from the slate with no labels. The code is noApproverRemedy and noApproverSentence(noApproverNote) at the notify site in packages/plugins/plugin-approvals/src/approval-service.ts. exclude-submitter.integration.test.ts pins "…holds position 'legal'…".
  2. The approver-type word stays English in every language. The who hole in approvalNoApproverHolding carries the English approver-type token in all eleven packs. A zh-CN read of an approvals actions list returns 目前还没有其他人能审批此请求。组织管理员需要添加一名担任 position '销售经理' 的成员… (pinned in PR fix(approvals): the no-approver note names its position by its label #36306's test). The admin-rescue note translates the same thing (岗位「销售经理」). A fix needs a per-type clause in every catalog.

Asked

Done when

  • The decide refusal and the submitter notice name a labelled position by its label in the reader's language; an unlabelled one keeps its name.
  • A zh-CN reader sees no English approver-type token in the no-approver sentence.

Reader: domain:ui / approvals, area:ux. Related: #36035 (PR #36306), #35418 (PR #36030), epic #34571.

Dedupe: no-approver remedy position label, approvalNoApproverHolding notification label, refusal remedy machine name, approvalNoApproverHolding who type token, no-approver note mixed language, position type word untranslated (objectstack issues, open) → none found at filing.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui + approvals texts · pm:queue; rationale: area:ux · Bug · the decide refusal and the submitter notice still name a no-approver position by its internal name, so users read a machine name → p2 as filed · size S. Linked under topic #36243 (审批收尾).

  3. 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:21Z
    Session: session_01QsR2jTyyBmoPBsURQjeJGq
    Account: zhuangjianguo
    Branch: claude/issue-36308-no-approver-label-doors
    Worktree: objectstack-issue-36308
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-text
    File surface: packages/plugins/plugin-approvals/src/** (approval-service.ts decide refusal noApproverRemedy and the submitter approval.comment notice site, no-approver-note.ts, translations/messages.ts all eleven packs), their tests incl. exclude-submitter.integration.test.ts, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the decide refusal and submitter notice in objectstack packages/plugins/plugin-approvals compose the no-approver who from the slate with no labels, and approvalNoApproverHolding carries the English approver-type token in all eleven packs | PR #36306 / #36030 already label the timeline note through notePositionLabels; these two doors are outside it | every approvals user who hits a no-approver slot (submitter, a decider refused)
    Thread-read: 7074937034
    Premise: holds — on origin/main 4e55e4e approval-service.ts builds noApproverRemedy = noApproverNoteText({ who: noApproverWho(pendingApprovers) }) with no labels, and translations/messages.ts approvalNoApproverHolding takes {{who}} in every pack.
    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); fix lands in a server plugin under triage's domain:ui (noted, not changed).
    Pre-claim deps: #36035 closed, PR #36306 merged, PR #36030 merged.
    Prior rulings read: title terms → 230 ADR hits (top: ADR-0150 D7/D9 position naming, ADR-0061 D2), card thread 0 rulings of 1 comment; no ruling found that binds the label order beyond the card's own (#36030 / #36035 order: reader pack label, declared label, name).
    Fold-or-serial: not folded with #35384 (different mechanism; same package, disjoint functions) — overlap-check before each push.
    Serial constraints cleared: none on this file surface among open PRs (read 2026-11-22T10:21Z); same-day churn on plugin-approvals (8e415bd, 99bd6d1, 40e22f1, e100a37, 83e545a).
    Declaration note: no as claimed; the dev measures on the built declaration closure whether new per-type catalog keys in translations/messages.ts are reachable from the package entry, and the claim is amended to yes (widening) if they are.

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 36308,
      "status": "done",
      "branch": "claude/issue-36308-no-approver-label-doors",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36450",
      "session": "session_01QsR2jTyyBmoPBsURQjeJGq",
      "premise_still_valid": true,
      "summary": "Measured on origin/main 4e55e4eb, the premise holds: the decide refusal built its remedy as noApproverNoteText of noApproverWho(pendingApprovers) with no labels, and the submitter notice used noApproverSentence(note) with no labels. Both doors now name positions through notePositionLabels, the timeline's resolver, which now accepts no reader labels: the decider's pack label, then the declared label, then the name. The refusal sentence stays English with the label inside it. The notice keys a single-slot slate as approvalNoApproverHoldingSlot, with the type word and positions.NAME.label as keyed params falling back to declared label, else name, so the label is resolved per recipient at delivery. All eleven packs gained four approver-type words (position, team, department, org_membership_level; each en word is the machine token, so stored English is byte-identical), an approvalNoApproverSlot clause and a separator. zh-CN, zh-Hant and ja-JP lost the spaces around the who hole. A zh-CN reader now reads 担任岗位「销售经理」的成员. Gap noted in Acceptance notes: a notice for a slate of two or more slots still carries one English who, because messaging keyed params cannot nest.",
      "tests": "Package suite at 59de66622, under the verify lock: cd packages/plugins/plugin-approvals && vitest run --maxWorkers=2 -> 'Test Files 127 passed (127) / Tests 1858 passed (1858)', TEST_EXIT=0. Targeted: no-approver-note.test.ts (new, 8 tests), admin-rescue-named-slate.integration.test.ts (32/32 after the notice pin was routed through the labelled service; the first run had 2 failures because the notice test opened through the unlabelled svc), exclude-submitter.integration.test.ts, approval-notification-keyed-text.integration.test.ts (the hole parity pin over every pack), admin-rescue-note.test.ts. Flipped pins (same-meaning sweep: git grep for the sentence text, approvalNoApproverHolding, holds position, and 担任 across the repo found pins only in these two integration files): zh-CN 岗位「销售经理」 with no position token, ja-JP 役職「Sales Manager」, unlabelled 岗位「treasury」, legacy who control on the no-space template. The exclude-submitter 'holds position legal' pin stays as the unlabelled control, beside new labelled-refusal pins (zh-CN pack label 法务, ja-JP and no-locale declared label Legal Counsel, excludeSubmitter refusal declared label). Typecheck: pnpm --filter @objectstack/plugin-approvals typecheck -> TYPECHECK_EXIT=0, check:test-typecheck OK, the new test file compiled under tsconfig.test.json. No ablation: the behaviour pinned is new text, and the flipped and new pins assert it directly against the pre-change shape (the unlabelled control).",
      "gates": "Local derived set, dispatch-gates --commands --repo objectstack-ai/objectstack at 59de66622 (7 paths vs merge base 4e55e4eb7): 72 commands, each exit captured before any pipe. 68 exit 0. 4 exit 3, PREREQUISITE NOT MET, so NOT MEASURED: check-plugin-teardown-shape --self-test (shallow clone, wants --unshallow on the shared object store); check:dual-build-cjs-loads and check:i18n (need dist for about 30 packages outside the plugin-approvals dependency closure); check:type-check-debt (its re-measure build hit queue-timeout 99 on the verify lock). --ran reconciliation with exit codes recorded: '72 derived famil(ies) accounted for — 68 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3)', exit 0. check-platform-checklist --changed-from origin/main (noApproverSentence renamed to noApproverNotice, a module export not on the package entry): 'OK — 1 anchored file(s) in the change set, 20 anchor(s) judged, 0 lost'. overlap-check --branch=HEAD: 'VERDICT clean exit 0'. Dependency closure build pnpm --filter '@objectstack/plugin-approvals^...' build: lock VERDICT command-exit 0. The package's own build could not get the lock: four tries, each 'VERDICT queue-timeout (exit 99)'. The first holder was pid 12792, an issue-36390 app-shell vitest whose child had used 29 min CPU in 29 min; the later holders were issue-35724 and issue-35384 runs. PR #36450 check-runs at 59de66622 when read: Lint & Repo Gates success, Build Core success, Check Changeset success, Governed Surface Queue Guard success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, Type Check · debt ledger success, Type Check · workspace success, Type Check · consumer gates success, Type Check · source gates success, Lint · ESLint success, Test Core 4/7/8/9/10 of 10 success and 1/2/3/5/6 in_progress, TypeScript Type Check queued, so in_progress overall.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 relay REST writes as objectstack-fleet[bot]: POST /repos/objectstack-ai/objectstack/pulls (pr_create, draft forced; read back 7779 bytes sent, 7779 stored, identical), POST /repos/objectstack-ai/objectstack/issues/36450/assignees (the pr_create assignees leg; read back zhuangjianguo), POST /repos/objectstack-ai/objectstack/issues/36308/comments (this os-dev-report via post-stamped.mjs). git push is not counted here.",
      "files_changed": [
        ".changeset/36308-no-approver-label-doors.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"
      ],
      "line_budget": "503 changed lines (+462 / -41) over 7 files, under the 3000 human-merge threshold; no skills/** touched.",
      "deviations": [
        "Clause-② read from the source export graph, not from the built declarations (narrowing, declared): src/index.ts re-exports nothing from translations/messages.ts, no-approver-note.ts or approval-notification-text.ts; ApprovalsTranslations reaches only approvals-plugin.ts through a dynamic import; and no public ApprovalService signature names ApprovalMessageId or enMessages (enMessages appears only inside two private method bodies). The claim's 'Clause-②: no' holds on that reading. The dist/index.d.ts grep is NOT MEASURED, because the package build never got the verify lock (4 queue-timeouts). CI's Build Core plus the Type Check lanes built it.",
        "The four derived families that exited 3 are NOT MEASURED locally; CI runs them (Lint & Repo Gates success and Type Check · debt ledger success at 59de66622).",
        "The diff does not edit packages/spec/src/**, so L2 stays at the area's ordinary tier.",
        "The PR body carries no attribution footer: the relay stored the bytes sent identically and the platform appended none."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in the PR's Acceptance notes, not filed: (1) a submitter notice for a slate of two or more slots keeps an English who, because @objectstack/service-messaging keyed params take one hole-free key (no nested params); (2) the approvals REST mapper answers FORBIDDEN as code plus error with no userMessage channel, so the decide refusal stays English; (3) the administrators' note clause approvalAdminRescueSlotUnresolved still names non-position types by their token. None is filed: (1) and (3) are a narrower feature gap in a different sentence, not a reproducible defect against a stated contract, and (2) is the door's declared shape.",
        "carrier: none · observation, not filed: the verify lock was held for more than 30 min by pid 12792 (an issue-36390 app-shell vitest whose child used 29 min CPU in 29 min); it was released later. Dedupe words: verify lock stuck holder, app-shell vitest spin."
      ]
    }
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTyyBmoPBsURQjeJGq

    Delivered · 2026-11-22T13:12Z · PR #36450 merged (Fixes #36308). Both doors now name a no-approver position by the reader's pack label, then the declared label, then the name, through notePositionLabels. The approver-type word is translated in all 11 packs. The residuals (multi-slot notice who, English decide refusal) are carried by #36463. pm:dispatched removed in this stroke.

  7. removed
    pm:dispatched
    on Nov 22, 2026
  8. added a commit that references this issue on Nov 23, 2026
    a3381cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions