Skip to content

Approvals: the note for a position with no approver still shows the position's internal name #36035

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Follow-up from #35418 (PR #36030, the seat's declaration L2 record 7060479330, nit N2). Under epic #34571.

What PR #36030 leaves

PR #36030 makes a routing note name an unstaffed position by its label: the reader's language pack, then the position's declared label, then the internal name. The no-approver note is not covered. Its "who" part is stored as a finished string when the note is written, so a reader still sees the internal position name (for example regional_manager) instead of its label.

To do

  1. Store the no-approver note's position as a reference, not a finished string, so the read can name it the same way the other routing notes are named in fix(approvals): name an unstaffed position by its label on the timeline; system rows read as the system's #36030.
  2. Keep the stored audit text unchanged for notes already written; only the shown text changes.
  3. Pin it: a no-approver note for a position with a declared label shows the label in the reader's language, and falls back to the internal name when no label exists.

Acceptance

  • A reader in any of the eleven languages sees the position's label in the no-approver note, never the internal name, when the position declares one.

Blocked-by: #36030

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (approvals) · pm:queue; rationale: area:ux · Bug · the approval note for a position with no approver still shows the position's internal name (e.g. regional_manager) because its "who" is stored as a finished string; PR #36030 fixed the other routing notes; topic #34571 → p2 (UX has no p3; the filed p3 is raised) · size S.

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

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop · area a4-D · 2026-11-22T03:57Z
    Session: session_01FEkQ5okniknzVVR3KTSVr1
    Account: os-project-manager
    Branch: claude/issue-36035-no-approver-position-label
    Worktree: objectstack-issue-36035
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-D
    File surface: packages/plugins/plugin-approvals/src/admin-rescue-note.ts and reader-locale-labels.ts (the no-approver note's stored position and its read), ui/packages/app-shell/src/utils/approvalSystemNote.ts / ApprovalActionTimeline.tsx if the read side needs it, tests, a changeset; approval-service.ts only if unavoidable (three open PRs touch it) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; seat order a4-D 2026-11-22T02:55Z, dispatch-gates --tier: no path-derived mandate on these paths), effort: high (seat order)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the approval timeline's no-approver system note in objectstack | store the position as a reference so the read names it by the reader's language pack, then its declared label, then the internal name, as PR #36030 does for the other routing notes; stored audit text of notes already written stays unchanged | approval readers in any of the eleven languages who see regional_manager instead of the position's label
    Thread-read: 7060804425
    Premise: holds — Blocked-by: #36030 merged (fe75349, 2026-11-21T09:40Z); its L2 record 7060479330 N2 names this note's who as stored pre-composed and out of that PR's scope.
    Pre-claim lane: repo:objectstack whole-repo lane, area:ux (seat 4 intake 2026-11-22T02:48Z).
    Pre-claim deps: PR #36030 merged. Open PRs #36144, #36135 and #36247 touch plugin-approvals/src/approval-service.ts (not the note files) — overlap-check before each push.
    Prior rulings read: approvals,note,position,approver,shows,internal,name → 177 hits; 1 hit line on the surface carries no ruling id. thread: none.
    Fold-or-serial: not folded; no a4-D dev works in plugin-approvals.
    Serial constraints cleared: none on the note files at origin/main a5a5312

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 36035,
      "status": "done",
      "branch": "claude/issue-36035-no-approver-position-label",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36306",
      "session": "session_01FEkQ5okniknzVVR3KTSVr1",
      "premise_still_valid": true,
      "summary": "Premise held at origin/main c30ce97cd7: the no-approver note stored its literals pre-composed as who (noApproverWho), so a reader saw position 'regional_manager'. A new note now stores slots (the type:value literals) in the __noApproverNote snapshot entry; the read in localizeRoutingNotes builds the label map through the existing notePositionLabels (reader pack positions.NAME.label, else declared label, else name) and noApproverNoteText names each position by it. The stored English comment is byte-identical in shape (position 'NAME'), and a note written before this change (snapshot who) renders exactly as before; noApproverNoteOf reads both shapes. Position-name extraction reuses adminRescuePositions' body, factored to slatePositions; no second resolver, no routing change.",
      "tests": "At 8a83eed2d5: new describe '[#36035] the no-approver note names its position by its label' in admin-rescue-named-slate.integration.test.ts, 5 cases (snapshot stores slots + stored English keeps the name + no-locale read; zh-CN pack label, no sales_manager; en/ja-JP declared label; unlabelled position keeps its name; CONTROL legacy who row unchanged in zh-CN/en/no locale). pnpm --filter @objectstack/plugin-approvals test: Test Files 126 passed (126), Tests 1813 passed (1813). typecheck exit 0. eslint on 4 changed sources exit 0. Ablations via scripts/ablation-replace.mjs (tests import src, no dist leg), each restored to HEAD blob with empty git diff HEAD: A1 read site without positionLabel -> 2 failed/3 passed; A2 write site stores composed who -> 3 failed/2 passed; A3 unknown position name dropped -> 3 failed/2 passed; A4 stored who not read -> 1 failed (legacy CONTROL)/4 passed.",
      "gates": "Local at 8a83eed2d5: dispatch-gates --commands derived 103 families, all run under os-verify-lock (VERDICT command-exit 0, held 1654s shared box); exit codes captured per command before any pipe; 99 exit 0 first pass, 4 exit 3 prerequisite (check-plugin-teardown-shape --self-test: pinned fixture 621a487607 fetched into a temp ref, then exit 0; check:skill-examples, check:i18n, check:dual-build-cjs-loads: rerun exit 0). dispatch-gates --ran with exit codes: 103 derived, 103 run, 0 NOT-MEASURED (derived zero), exit 0. overlap-check --branch: VERDICT clean exit 0 vs origin/main and PRs 36295, 36247, 36144, 36135. CI: PR check-runs at 8a83eed2d5 read once at open: 24 runs, 4 skipped, 19 in_progress, 1 queued; not waited on (in_progress).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (repository_dispatch -> POST /repos/objectstack-ai/objectstack/pulls, PR 36306, draft, read-back identical 7219 bytes); post-stamped.mjs os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36035/comments). git push x3 (empty branch probe + 2 commits) not REST.",
      "files_changed": [
        ".changeset/36035-no-approver-position-label.md",
        "content/docs/automation/approvals.mdx",
        "packages/plugins/plugin-approvals/src/admin-rescue-named-slate.integration.test.ts",
        "packages/plugins/plugin-approvals/src/admin-rescue-note.ts",
        "packages/plugins/plugin-approvals/src/approval-service.ts",
        "packages/plugins/plugin-approvals/src/no-approver-note.ts"
      ],
      "net_added_lines": "141 (+163 / -22, 6 files)",
      "line_budget": "size S; the order names no numeric budget; 185 changed lines vs the 3000 human-merge threshold",
      "deviations": [
        "Zone 3 suggested a new card-named test file; the pins went into admin-rescue-named-slate.integration.test.ts as a sibling describe of the #35418 one, per AGENTS.md (ruling record 6583487846: a pin for a component with a shared harness goes into that file); it reuses that file's engine, organizations and open helper.",
        "approval-service.ts touched (Zone 2.4): three minimal hunks (import, write line, read line), +7/-2; the note module cannot change the write and the read alone. overlap-check clean vs 36144, 36135, 36247 and 36295.",
        "Commit trailers model-free (Co-authored-by: Claude) per AGENTS.md and the order, against the harness reminder's model-named trailer; PR footer uses AGENTS.md's session-URL form, not the harness reminder's form.",
        "overlap-check ran before the first code push but not before the second push (changeset commit); rerun at the same final head 8a83eed2d5 afterwards: clean exit 0.",
        "check:* gates ran under os-verify-lock per the order (os-dev.md says check gates need not take it); held 27m34s.",
        "Card's Acceptance: the label is shown inside the English type token (zh-CN reads 担任 position '销售经理' 的成员); the type word is not translated (see out_of_scope_findings)."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: public door — POST decide refusal (FORBIDDEN text ends with the no-approver remedy) and the submitter's approval.comment notice body both compose who from the slate with no labels, so they still name the machine name (exclude-submitter.integration.test.ts pins ...holds position 'legal'...; approval-service.ts noApproverRemedy and noApproverSentence(noApproverNote) at the notify site) · same family as 36035, fold into its family card, do not file single · dedupe words: no-approver remedy position label, approvalNoApproverHolding notification label, refusal remedy machine name",
        "class: a · reach: public door — the approvals actions read in zh-CN returns 目前还没有其他人能审批此请求。组织管理员需要添加一名担任 position '销售经理' 的成员... (pinned in this PR's test): the who hole carries the English approver-type token in all eleven packs, while the admin-rescue note translates it (岗位「销售经理」) · fix needs a per-type clause in every catalog · dedupe words: approvalNoApproverHolding who type token, no-approver note mixed language, position type word untranslated"
      ]
    }
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered · area a4-D · 2026-11-22T06:45Z
    PR #36306 merged (L1-b ACCEPT 7075146645 after a body-only REWORK, landing record 7075202413): the "no approver" note names the approval step's position instead of a raw id. pm:dispatched removed in this stroke; the assignee stays as the delivery record.
    Residuals carried by #36308 (pm:queue): the decide-door refusal remedy and submitter notice, and the English type word in the notice.

  8. removed
    pm:dispatched
    on Nov 22, 2026
  9. added 2 commits that reference this issue on Nov 22, 2026
    83e545a
    a3381cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions