Repository navigation
fix(plugin-approvals): the no-approver decide refusal and a multi-slot submitter notice read in the reader's language - #36846
Conversation
…age as userMessage; the notice names several slots inline Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB Co-Authored-By: Claude <noreply@anthropic.com>
…ide refusal Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB Co-Authored-By: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 2 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 1 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 22 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin dc3dc14d5f1680d517d9195a6606c20d665b05cb && git checkout dc3dc14d5f1680d517d9195a6606c20d665b05cb
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5c2e34cdb2b436f356ebba523e284e239f6ea351 a6c6666adee23afc20e585b0cc95a3fea78c0ed1 && git checkout -B drift-repro 5c2e34cdb2b436f356ebba523e284e239f6ea351 && git merge --no-ff a6c6666adee23afc20e585b0cc95a3fea78c0ed1
node scripts/docs-audit/affected-docs.mjs --json 5c2e34cdb2b436f356ebba523e284e239f6ea351
|
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 Contract-review-claim: session_01WGufziwMkZG34d69p8BHb4 · head 869d5de · 2026-11-24T04:56Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 席位核对 — REWORK · repo:objectstack#3 · head 869d5de · 2026-11-24T04:59ZL1: REWORK Checklist
FindingsS1 (should-fix) —
Nits:
Landing notesAfter the fix: the delta L1 and the L2 record on the same head, then the area lands. |
…Message as a widening Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 Contract reviewServed-tier: Inputs read: card #36463 (body and all four comments: triage 7080090045, unlock 7107672290, claim 7121106831, dev report 7122061191), the PR #36846 body and file list (13 files), the net diff ① Derived judgments
② Semver level
③ Boundary flags
Findings: F1 must-fix, F2 should-fix. Because of F1 the verdict is FAIL. Once F1 and F2 are fixed, only the declaration text and the changeset front matter change. The original reviewer then reads that delta. Implemented-by: VERDICT: FAIL |
…nged Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 Contract-review-claim: session_01WGufziwMkZG34d69p8BHb4 · head a6c6666 · 2026-11-24T05:05Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 席位核对 — ACCEPT · repo:objectstack#3 · head a6c6666 · 2026-11-24T05:06ZL1: ACCEPT (delta, after REWORK 7122520696 at 869d5de) Delta read
FindingsMust-fix: none. Should-fix: none. Nits N1 and N2 from the first round are with the seat as carrier-card requests (7122552986). Landing notesNot governed (626 lines). The area lands once this ACCEPT, a PASS contract-review record on this head, and a green CI are all in place. |
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 Contract reviewServed-tier: Delta round on the previous record for head 869d5de (F1 and F2). Inputs read:
Nothing was built, run or re-run. ① Derived judgmentsThe code is unchanged, so round 1's J1 to J7 stand as judged.
② Semver level
③ Boundary flags
F1 and F2 are closed. F3 and F4 leave correctness and the contract untouched, so this is the final round. Both can be accepted as recorded deviations or fixed in prose alone. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB Landing · 2026-11-24T05:30Z · ACCEPT 7122641847 (L1-b, delta after REWORK 7122520696) at head a6c6666
State: ready + auto-merge (area ux-D, not governed, ≤3000 lines). |
…rk (objectstack#36898) (objectstack-ai#36983) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB2BRcLs2zJH6mZWG94VVuew)_ Fixes objectstack-ai#36898 Part of objectstack-ai#36890 Clause-②: yes (widening) Metadata-protocol: none The widening: `MetadataListAnswer`, exported from `@object-ui/data-objectstack`'s entry, gains an optional `changedAt` member (an addition to that published package's public surface; precedents 36011-restore-factory-view, objectstack-ai#36846). No metadata an author writes changes, so `Metadata-protocol: none` and the patch level stand. Corrected in round 2 per L1-b (3) S1 (7133485320). repo:objectstack#3 · os-support-ai · session_01WGufzgNtKtppbRbXmHGH8x ## 维护者速读 - 搭建者在 Studio 和设置的元数据列表里,多了「修改时间」一列,可按它排序;有草稿的项下面标出「有未发布的改动」,AI 写的草稿单独标成「AI 的改动未发布」。 - 属于「Studio 重构」专题的列表部分,替搭建者回答「哪些项最近改过、哪些还没发布」。 - 出错时最多是时间显示为空或标记不显示,不影响打开、编辑和发布;可直接撤回。 - 无。 ## What changes - **「修改时间」 column** on the generic metadata list (Setup's catalog lists and Studio's "All metadata" area), read off the list answer's `changedAt` sibling (`GetMetaItemsResponseSchema.changedAt`, served since the list-response change for the card that added it). An item served from a stored row shows its time in the reader's locale (full instant on hover); a code-shipped item shows the empty-value dash, never an error. - **Sortable**: new sort key `changed` in `metadataListState.ts` (the seam the list-state change left): "修改时间(最新在前)" / "(最早在前)", in the address as `sort=-changed` / `sort=changed`. Items without a time sort last in both directions; ties read A to Z by name. `orderedListNames` runs the same `applyListState`, and the detail side (`useListOrderedNames`) now reads the same times, so ‹ › follow the drawn order (pinned). - **「有未发布的改动」 mark** beneath the time, from the existing `GET /api/v1/meta/_drafts` ledger — no protocol change; drafts that existed before this change are marked too (epic decision 14). Measured: Studio's `StudioPendingDraftsContext` wraps the area's list but not Setup's, and its rows carry no package or bundle member, so the list reads the ledger through its own metadata client (`listDrafts`, the read the client's draft reads already ask first; same scope as the list's items), re-read with the list and on the publish pulse (`emitMetadataRefresh`). - **AI vs person**: each marked item's strict draft read (`getDraft`, `draftChanges`) judged with `isAgentDraftSurface` — the rule `StudioAiDraftNotice`'s line uses (copilot or MCP build door ⇒ 「AI 的改动未发布」, violet with a sparkle; anything else or no recorded provenance ⇒ 「有未发布的改动」, amber). Not forked. - **Client reader**: `MetadataClient.listResponse` dropped `changedAt`; it now carries it (each entry parsed with the spec's own rule; absence stays absence). `list` unchanged; `list` and `listResponse` share one in-flight GET (measured in the browser: one `/meta/dashboard` request per list load). - New modules, each with its own test file named for the card: `listChangedAt.ts` (cell value, comparison, read hook), `listDraftMarks.ts` (ledger match + AI judgement + hook), `ListChangedCell.tsx` (the cell). Mounted in `ResourceListPage.tsx` with one header cell, one body cell and the reader member (15 lines) so the ObjectGrid re-host can move them as they are. `StudioDesignSurface.tsx` untouched. ## Screenshots (real boot, showcase app, deviceScaleFactor 2) Own backend on a random port, Console from this branch's `ui/` via Vite. Data written for real: a live save of `showcase_revenue_pulse` into `com.example.showcase.custom`; a person's draft (`surface=studio`) of `showcase_ops_dashboard`; an AI draft of `showcase_chart_gallery` saved through the MCP build door (`save_metadata_draft` with an OAuth token, `draftChanges[].by = mcp`). Both mark kinds and a time; code-shipped items empty:  Sorted newest first (`?sort=-changed`), items without a time last:  After publishing the AI draft: its mark is gone and its time appears at the top:   ## Tests Run on head `3671d2304` (after merging origin/main): - `pnpm --dir ui exec vitest run --maxWorkers=2` over the four new test files, `metadata-client.listRegistrations-12349`, `metadataListState-36896`, `useListScrollRestore-36896` and every `ResourceListPage.*` test: **Test Files 19 passed (19), Tests 130 passed (130)**. - `pnpm --filter @object-ui/data-objectstack --filter @object-ui/i18n --filter @object-ui/app-shell run type-check`: exit 0 (all three scripts echoed). <details><summary>Ablations (one-off, through scripts/ablation-replace.mjs, restored and blob-verified)</summary> - `listChangedAt.ts` missing-last flipped (`ta === null ? 1 : -1` → `-1 : 1`): 4 red — both sort-direction cases, the unparseable-time case, and the page's `?sort=-changed` order. Restored blob 8212f4d = before. - `listDraftMarks.ts` AI judgement removed (`some(() => false)`): 2 red — the copilot/MCP case and the page's AI-vs-person mark. Restored blob 9d8aae3 = before. </details> ## Acceptance notes - A person's **draft** save does not move the time: the list serves the published row (`changedAt` is that row's time); the mark shows instead, and the time moves on publish (screenshot 3). A live save moves the time at once (`showcase_revenue_pulse`). - An item that exists only as a never-published draft is not on the plain list at all, so it has no row to mark; unchanged by this card. - Bundle types: a row that declares no member matches a draft of any member of its name (the canonical member's spelling is not known to the list). - Line budget: 734 changed lines vs the ~600 S-card guide — about 400 source/locale/changeset lines and 335 test lines. Reported rather than trimmed. ## Verification Two-minute check: open `/studio/PACKAGE/metadata/dashboard` for a package with one stored item and one drafted item — the 修改时间 column shows the stored item's time, the drafted one carries 「有未发布的改动」; pick 「修改时间(最新在前)」 and the stored item moves to the top. Read first (by risk): `listDraftMarks.ts` (ledger match across a base and its `.custom` pair), `metadataListState.ts` (the `changed` sort branch), `metadata-client.ts` (`readChangedAt`). Overlap: `ResourceListPage.tsx` conflicts textually with the ObjectGrid swap's PR (objectstack-ai#36978, head 1137895); declared in both claims — whichever lands second merges the other. Its list-row test selector was checked against this branch's new test ids (they do not start with `metadata-row-`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzgNtKtppbRbXmHGH8x <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzgNtKtppbRbXmHGH8x --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ad in the recipient's language (objectstack-ai#37701) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuQVQdf3PvoJbKFFCUA4gwJB)_ Fixes objectstack-ai#36853 ## What changes - **`@objectstack/service-messaging`, `notification-text.ts`.** `EmitInput.keyedText.params` accepts a list-shaped value, `{ list, separator }` (`NotificationListParam`). - Each `list` item is `{ key, params?, fallback }`: a catalog sentence with its own `{{hole}}` params, which are scalar only (`NotificationScalarParam`: text, `{ key, fallback }` or `{ object, fallback }`). - The renderer fills each item per recipient through the same scalar resolution a top-level hole uses. An item with no entry falls back to its `fallback`. - The items are joined by the `separator` entry, else its `fallback`. `lookupSeparator` keeps a whitespace or punctuation answer such as `、`, which `lookup` would treat as a blank sentence. - `problemOf` is split into `scalarParamProblem`, `keyedParamProblem` and `listParamProblem`. `emit()` refuses an empty list, a list over `NOTIFICATION_LIST_PARAM_MAX_ITEMS` (100), an undeclared member, a malformed separator or item, and a list nested in an item. A stored malformed row reads back as `undefined` and is delivered as its literal, as any malformed row is. - New exports: `NotificationListParam`, `NotificationListItem`, `NotificationScalarParam` and `NOTIFICATION_LIST_PARAM_MAX_ITEMS`. Every existing param shape renders byte for byte as before. - **`@objectstack/plugin-approvals`.** - `noApproverNotice` spells a slate of two or more slots as `approvalNoApproverHolding` with `who` the list param: one `approvalNoApproverSlot` per slot with its `type` / `value` params, joined by `approvalNoApproverSlotSeparator`. Each item falls back to the English clause the row stores. - `approval-notification-text.ts` mirrors the new shapes structurally (`ApprovalListParam`, `ApprovalScalarParam`), because the plugin keeps no runtime dependency on the messaging package. `interpolate` renders a list's literal from its items' fallbacks. - A one-slot slate keeps `approvalNoApproverHoldingSlot`. - Tests and a changeset (both packages `patch`). ## Why A `{ key }` param resolves through `t(key, locale)` with no params, so a hole held one text or one hole-free key. objectstack-ai#36463 (PR objectstack-ai#36846) spelled slates of 2 to 8 slots with one derived sentence per size. A slate of more than 8 slots still named its slots in English inside a zh-CN, ja-JP or other non-English submitter's sentence. ## Verification - `admin-rescue-named-slate.integration.test.ts` adds a 9-slot slate opened by the real service. It is rendered through the real `NotificationTextRenderer` in zh-CN, and the body is entirely Chinese, with `not.toMatch(/[A-Za-z]/)`. The `en` render equals the literal the row stores. This is the card's acceptance test. - `notification-text-list-param-36853.test.ts` drives the real renderer over the kernel's in-memory `i18n`, with 9 tests: - nine items in zh-CN, joined by `、`, and the same list in `en` - per-item and separator fallback - an object-label param and a plain-text param inside an item - every refusal `emit()` makes, and a stored row read back - `no-approver-note.test.ts`: - the two-slot notice shape is now the list - "every slate size reads the timeline's sentence in every pack" now runs from 2 to 12 slots, past the 8 objectstack-ai#36463 spelled - the old "more than 8 keeps English" pin is replaced by "nine slots name no English approver type in any pack but `en`" - `vitest run`: `service-messaging` 82 files, 1107 passed; `plugin-approvals` 130 files, 1965 passed. - `pnpm typecheck` passes in both packages. `plugin-approvals` `check:test-typecheck` is OK, with no change to its ledger. - `eslint` is clean on every changed file. `check-test-source-alias` is OK, and `overlap-check` is clean against `origin/main`. ## Small decisions - The `approvalNoApproverHoldingSlots2` to `…Slots8` sentences are **not** retired. Notices already delivered carry those keys in their stored `keyedText`, and the inbox renders them again at every read (`renderForReader`). Retiring them would turn those rows back into English. New notices no longer emit them. - A list item's params are scalar only, never another list. One level covers the card. A nested list would need a second separator and a depth bound for no current producer. - An item or separator that misses falls back alone, the way every other keyed param falls back. The rest of the list stays in the reader's language. - The list is capped at 100 items, because it is rendered item by item at every delivery and every inbox read. An approval slate is a handful of slots. Clause-②: yes (widening) Metadata-protocol: none The widening is the published `keyedText.params` value shape of `@objectstack/service-messaging`: a new accepted shape, with every existing shape unchanged. No metadata author writes it. ## Owed - L1 (seat). Clause-② widening of a service package's exported emit contract, so the seat rules whether a contract review is owed. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgU7eeqHgQrtv5CeJK6 --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgU7eeqHgQrtv5CeJK6)_ <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgU7eeqHgQrtv5CeJK6 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Yibo Wang · project thread
Fixes #36463
Clause-②: yes (widening)
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB
维护者速读
Widened door response (Clause-②)
The approvals routes (
packages/rest/src/approvals-routes.ts, all nine that sharehandleApprovalError) now carry a markeduserMessageat the top level of their flat{ code, error }refusal body on any mapped row whose thrown error is marked, the same member #34619 added forRESUME_FAILEDon this door and thatApiErrorSchemaalready declares and@objectstack/clientalready lifts. Producers today: the two self-approve decide refusals, both on the403 FORBIDDENrow (excludeSubmitter, and the override self-approve kept under maintainer ruling 2026-11-17 option B). The member is absent when no producer marked one, so every other refusal body is byte-identical. Additive, soyes (widening), patch,Metadata-protocol: none(precedents #34619, #35811; L1 S1 7122520696).Census
type: 'api'actionapproval_approve. Its failure text is read byrefusalEnvelopeMessageinui/packages/app-shell/src/utils/flowResponse.ts, throughapiActionRefusalResult. Both callers use it: theapiHandlerinuseConsoleActionRuntimeand the one inRecordDetailView. Before this PR it read onlyerror.userMessageof the ADR-0112 envelope. The approvals door answers the flat{ code, error }body, so the toast showed the Englisherror.humanizeErrorinui/apps/console/src/pages/system/ApprovalsInboxPage.tsx, called byinlineApprove. It answered everyFORBIDDENwith the generic "You are not allowed to perform this action.", so the remedy was lost.userMessageon the thrown error. The plugin already does this inlockedError(lifecycle-hooks.ts) andsnapshotQueryRefusal(payload-predicate-guard.ts). The approvals mapper carries it at the top level of its flat body, the member itsRESUME_FAILEDstranded envelope already uses foruserMessage.@objectstack/clientliftsuserMessagefrom that member too (errorBody?.userMessage ?? errorBody?.error?.userMessage). Where this differs from the dispatch: thedeclaredUserMessageblock aroundrecognisedRefusalrelays an engine resume refusal. It is not a producer of approvals' own refusal text, so it was not the pattern used here.excludeSubmitterand the override self-approve now throw through one local helper,refuseOwnApproval. It keeps themessagebyte for byte (the existing English pins are unchanged and green) and setsuserMessagefromsubmitterRefusalUserMessage(no-approver-note.ts). That text uses the decider'sreaderLabels(context).sentence, with the position labels from the samenotePositionLabelsread. If the decider asked in no language, or the pack lacks one of the sentences, the whole text is English and names no user id. It is never half one language and half the other.NotificationTextRenderer.render). It resolves a keyed param witht(key, locale)and no params, so a hole holds one text or one hole-free key. One list param cannot carry translated clauses, and the plugin cannot compose a list per reader, because the emit does not know the recipient's locale. This falsifies the dispatch's flatten-into-one-param route as stated. The route taken flattens the list into the sentence instead.approvalNoApproverHoldingSlots2to…Slots8are derived in every pack from that pack's ownapprovalNoApproverHolding,approvalNoApproverSlotandapprovalNoApproverSlotSeparator. Each slot is a keyedtypeN/valueNpair, the single-slot shape repeated. Nothing is translated twice, the messaging contract does not move, and the notice reads exactly what the timeline reads for the same slate (pinned for every pack and every size 2 to 8).localizeRoutingNotes) uses the samenoApproverWhocomposition, throughnoApproverNoteText(note, labels.sentence, …). It already renders any number of slots in the reader's language and is not touched.What changes
packages/plugins/plugin-approvals/src/translations/messages.ts:approvalDecideRefusedSubmitterExcluded,…OverrideOwnRequest,…AnotherApprover,…OverrideAnotherApproverand…OverrideWithdraw, in all eleven packs;approvalNoApproverHoldingSlotsNsentences, built inslotListSentencesand added to every shipped locale bywithSlotLists;NO_APPROVER_NOTICE_MAX_SLOTS = 8.no-approver-note.ts:noApproverNoticespells 2 to 8 slots inline (sharedslotParams). It addssubmitterRefusalUserMessage.approval-service.ts: the two decide refusals go throughrefuseOwnApproval. Behaviour is unchanged: both still refuse, with the same Englishmessage.packages/rest/src/approvals-routes.ts:handleApprovalErroraddsuserMessage(read once throughdeclaredUserMessage) to every mapped row when the producer marked one. An unmarked refusal gets exactly the body it had before.ui/packages/app-shell/src/utils/flowResponse.ts:refusalBodyUserMessagereads the envelope'serror.userMessage, else a flat body's top-leveluserMessage. These are the two members the client lifts, through one predicate.ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx:humanizeErrorshows a marked refusal first..changeset/36463-no-approver-text-in-reader-language.md, patch for@objectstack/plugin-approvals,@objectstack/rest,@object-ui/consoleand@object-ui/app-shell(private, inert).Prior rulings that govern the edited lines (check-prior-rulings over the touched files; quoted as they stand in the tree):
[Maintainer ruling 2026-11-17, option B]on the override refusal: "The Approval routed to an empty position permanently locks the record (no admin override, no recovery) #3424 override never approves a request its actor submitted, whateverexcludeSubmittersays." Kept exactly. Only the language of its text changes.ApiErrorSchema.userMessage(packages/spec/src/api/contract.zod.ts), "ruling record 6819749037, option C: text addressed to the end user comes back in the request's language, composed where it is produced". TheuserMessageis composed in the service, in the decider's language, withenas the last rung.[#13807, maintainer ruling 2026-09-04 batch #37]stranded envelope and the code-anchored prefix strip ("converged here by the 2026-08-31 ruling") are not changed. The stranded spread still comes last.First reads (by risk)
packages/plugins/plugin-approvals/src/no-approver-note.ts:submitterRefusalUserMessage(the all-or-nothing English fallback) and the multi-slot arm ofnoApproverNotice.packages/plugins/plugin-approvals/src/translations/messages.ts:slotListSentences, and the change ofenMessagesinto the authored set plus the derived set.ui/packages/app-shell/src/utils/flowResponse.ts:refusalBodyUserMessage. It is shared by everytype: 'api'action, so the top-level read is gated by the samedeclaredUserMessagepredicate.Tests
no-approver-note.test.ts:who;exclude-submitter.integration.test.ts: each refusal carries the zh-CNuserMessagewhile itsmessagekeeps the English byte for byte; a decider with no locale gets English that names no id; the control (another approver on the slate) gets the English "another approver" text.admin-rescue-named-slate.integration.test.ts: a two-slot submitter notice goes through the realNotificationTextRenderer, entirely Chinese in zh-CN, in Japanese for ja-JP, and with the English literal body unchanged.rest-approvals-wire-codes.test.ts:403 FORBIDDENwithuserMessageat the top level,ApiErrorSchemaparse green; control: unmarked and blank markings add no member.flowLaunch.preDispatchRefusal-36390.test.tsx: a flat approvals refusal's top-leveluserMessageis the toast, through a realActionRunner; control: an unmarked or blank one shows theerror.ApprovalsInboxPage.inlineActionsVisible-34587.test.tsx: the inline Approve's failure toast is the marked text; control: the generic line.Acceptance notes
@objectstack/service-messaging, which is outside this card's surface. 8 is a declared constant, and the derived sentences cost one bundle entry per size per pack.messages.approvalNoApproverHoldingdoes not reach the derived…SlotsNsentences. Those are their own catalog keys and can be overridden the same way.Verification
Two-minute check:
pnpm --filter @objectstack/plugin-approvals exec vitest run --maxWorkers=2 src/no-approver-note.test.ts. Expect every test to pass, including "a zh-CN decider reads each refusal entirely in Chinese, the position by its label".Local readings at 869d5de
@objectstack/plugin-approvals^...,@objectstack/rest^...): lock VERDICT command-exit 0.pnpm --filter @objectstack/plugin-approvals --filter @objectstack/rest typecheck: VERDICT command-exit 0 (both includecheck:test-typecheck).@objectstack/plugin-approvalsvitest: Test Files 127 passed (127), Tests 1899 passed (1899).@objectstack/restvitest: Test Files 433 passed (433), Tests 9114 passed, 376 skipped (9490).pnpm --dir ui exec vitest runon the two touched UI test files: Test Files 2 passed, Tests 17 passed.pnpm --dir ui exec vitest run scripts/: Test Files 172 passed, 2 skipped (174).pnpm check:new-line-citations(ui): 0 new, exit 0.pnpm check:i18n: OK, 10 packages, all bundles in sync, exit 0 (after its declared prerequisite build).dispatch-gates.mjs --commands, 78 commands): 76 exit 0, 2 exit 3 (PREREQUISITE NOT MET, so NOT MEASURED):check-plugin-teardown-shape --self-test(shallow checkout) andcheck:dual-build-cjs-loads(needs a full workspace build).--ranwith exit codes: "78 derived famil(ies) accounted for — 76 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)".type-checkof@object-ui/app-shelland@object-ui/console. Locally every error is TS2307 module-not-found for unbuilt@object-ui/*declarations, with none in the touched files. CIType Check UIis the reading.scripts/ablation-replace.mjswith the restore proven bygit diff HEADempty and blob equal to HEAD:userMessagespread deleted:rest-approvals-wire-codes1 failed / 15 passed;err.userMessageassignment voided:exclude-submitter2 failed / 23 passed.overlap-check --branch=HEAD: VERDICT clean exit 0.Generated by Claude Code