Skip to content

fix(plugin-approvals): the no-approver decide refusal and a multi-slot submitter notice read in the reader's language - #36846

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-36463-no-approver-text-in-reader-language
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-36463-no-approver-text-in-reader-language

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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 share handleApprovalError) now carry a marked userMessage at the top level of their flat { code, error } refusal body on any mapped row whose thrown error is marked, the same member #34619 added for RESUME_FAILED on this door and that ApiErrorSchema already declares and @objectstack/client already lifts. Producers today: the two self-approve decide refusals, both on the 403 FORBIDDEN row (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, so yes (widening), patch, Metadata-protocol: none (precedents #34619, #35811; L1 S1 7122520696).

Census

  • The console reader that shows a decide refusal. Two places:
    • The request page's Approve button is the declared type: 'api' action approval_approve. Its failure text is read by refusalEnvelopeMessage in ui/packages/app-shell/src/utils/flowResponse.ts, through apiActionRefusalResult. Both callers use it: the apiHandler in useConsoleActionRuntime and the one in RecordDetailView. Before this PR it read only error.userMessage of the ADR-0112 envelope. The approvals door answers the flat { code, error } body, so the toast showed the English error.
    • The Approval Center's inline Approve: humanizeError in ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx, called by inlineApprove. It answered every FORBIDDEN with the generic "You are not allowed to perform this action.", so the remedy was lost.
  • Which channel was reused. A producer marks userMessage on the thrown error. The plugin already does this in lockedError (lifecycle-hooks.ts) and snapshotQueryRefusal (payload-predicate-guard.ts). The approvals mapper carries it at the top level of its flat body, the member its RESUME_FAILED stranded envelope already uses for userMessage. @objectstack/client lifts userMessage from that member too (errorBody?.userMessage ?? errorBody?.error?.userMessage). Where this differs from the dispatch: the declaredUserMessage block around recognisedRefusal relays an engine resume refusal. It is not a producer of approvals' own refusal text, so it was not the pattern used here.
  • The two refusals. Both excludeSubmitter and the override self-approve now throw through one local helper, refuseOwnApproval. It keeps the message byte for byte (the existing English pins are unchanged and green) and sets userMessage from submitterRefusalUserMessage (no-approver-note.ts). That text uses the decider's readerLabels(context).sentence, with the position labels from the same notePositionLabels read. 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.
  • The submitter notice. The messaging layer renders at delivery, per recipient (NotificationTextRenderer.render). It resolves a keyed param with t(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. approvalNoApproverHoldingSlots2 to …Slots8 are derived in every pack from that pack's own approvalNoApproverHolding, approvalNoApproverSlot and approvalNoApproverSlotSeparator. Each slot is a keyed typeN / valueN pair, 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).
  • The timeline overlay (localizeRoutingNotes) uses the same noApproverWho composition, through noApproverNoteText(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:
    • five authored sentences, approvalDecideRefusedSubmitterExcluded, …OverrideOwnRequest, …AnotherApprover, …OverrideAnotherApprover and …OverrideWithdraw, in all eleven packs;
    • the derived approvalNoApproverHoldingSlotsN sentences, built in slotListSentences and added to every shipped locale by withSlotLists;
    • NO_APPROVER_NOTICE_MAX_SLOTS = 8.
  • no-approver-note.ts: noApproverNotice spells 2 to 8 slots inline (shared slotParams). It adds submitterRefusalUserMessage.
  • approval-service.ts: the two decide refusals go through refuseOwnApproval. Behaviour is unchanged: both still refuse, with the same English message.
  • packages/rest/src/approvals-routes.ts: handleApprovalError adds userMessage (read once through declaredUserMessage) 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: refusalBodyUserMessage reads the envelope's error.userMessage, else a flat body's top-level userMessage. These are the two members the client lifts, through one predicate.
  • ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx: humanizeError shows a marked refusal first.
  • Changeset .changeset/36463-no-approver-text-in-reader-language.md, patch for @objectstack/plugin-approvals, @objectstack/rest, @object-ui/console and @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, whatever excludeSubmitter says." 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". The userMessage is composed in the service, in the decider's language, with en as the last rung.
  • The mapper's [#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)

  1. packages/plugins/plugin-approvals/src/no-approver-note.ts: submitterRefusalUserMessage (the all-or-nothing English fallback) and the multi-slot arm of noApproverNotice.
  2. packages/plugins/plugin-approvals/src/translations/messages.ts: slotListSentences, and the change of enMessages into the authored set plus the derived set.
  3. ui/packages/app-shell/src/utils/flowResponse.ts: refusalBodyUserMessage. It is shared by every type: 'api' action, so the top-level read is gated by the same declaredUserMessage predicate.

Tests

  • no-approver-note.test.ts:
    • the two-slot keyed shape;
    • zh-CN delivery is entirely Chinese, with each position by its pack label or else as stored;
    • every pack and every size 2 to 8 equals the timeline's sentence;
    • 9 slots keep one English who;
    • both refusals are entirely Chinese in zh-CN;
    • every pack composes every refusal with no hole left;
    • English when there is no reader language, and the whole text is English when a pack lacks any one sentence.
  • exclude-submitter.integration.test.ts: each refusal carries the zh-CN userMessage while its message keeps 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 real NotificationTextRenderer, entirely Chinese in zh-CN, in Japanese for ja-JP, and with the English literal body unchanged.
  • rest-approvals-wire-codes.test.ts: 403 FORBIDDEN with userMessage at the top level, ApiErrorSchema parse green; control: unmarked and blank markings add no member.
  • flowLaunch.preDispatchRefusal-36390.test.tsx: a flat approvals refusal's top-level userMessage is the toast, through a real ActionRunner; control: an unmarked or blank one shows the error.
  • ApprovalsInboxPage.inlineActionsVisible-34587.test.tsx: the inline Approve's failure toast is the marked text; control: the generic line.

Acceptance notes

  • Slates of more than 8 slots. The notice still names their slots in English inside the recipient's sentence, as every multi-slot notice did before this PR. Naming any number of slots would need a list-shaped keyed param in @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.
  • A deployment override of messages.approvalNoApproverHolding does not reach the derived …SlotsN sentences. Those are their own catalog keys and can be overridden the same way.
  • The Approval Center's bulk approve still reports failures by record title only. It shows no reason for any refusal, as before.

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
  • Dependency closure build (@objectstack/plugin-approvals^..., @objectstack/rest^...): lock VERDICT command-exit 0.
  • pnpm --filter @objectstack/plugin-approvals --filter @objectstack/rest typecheck: VERDICT command-exit 0 (both include check:test-typecheck).
  • Full @objectstack/plugin-approvals vitest: Test Files 127 passed (127), Tests 1899 passed (1899).
  • Full @objectstack/rest vitest: Test Files 433 passed (433), Tests 9114 passed, 376 skipped (9490).
  • UI: pnpm --dir ui exec vitest run on 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).
  • Derived gate list (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) and check:dual-build-cjs-loads (needs a full workspace build). --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. Locally every error is TS2307 module-not-found for unbuilt @object-ui/* declarations, with none in the touched files. CI Type Check UI is the reading.
  • Ablations, each through scripts/ablation-replace.mjs with the restore proven by git diff HEAD empty and blob equal to HEAD:
    • the mapper's userMessage spread deleted: rest-approvals-wire-codes 1 failed / 15 passed;
    • the service's err.userMessage assignment voided: exclude-submitter 2 failed / 23 passed.
  • overlap-check --branch=HEAD: VERDICT clean exit 0.

Generated by Claude Code

…age as userMessage; the notice names several slots inline

Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/plugin-approvals, @objectstack/rest, touching 32 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/automation/approvals.mdx (via excludeSubmitter (literal, a string literal in SubmitterApprovalRefusal; a string literal in decideNode; a string literal in submitterRefusalUserMessage))

⛔ 1 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v18/18-2.mdx (via excludeSubmitter (literal, a string literal in SubmitterApprovalRefusal; a string literal in decideNode; a string literal in submitterRefusalUserMessage))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 22 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 5c2e34cdb2b436f356ebba523e284e239f6ea351 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from dc3dc14d5f1680d517d9195a6606c20d665b05cb — the merge of head a6c6666adee23afc20e585b0cc95a3fea78c0ed1 into base 5c2e34cdb2b436f356ebba523e284e239f6ea351, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 5c2e34cdb2b436f356ebba523e284e239f6ea351 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufziwMkZG34d69p8BHb4 · head 869d5de · 2026-11-24T04:56Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 — REWORK · repo:objectstack#3 · head 869d5de · 2026-11-24T04:59Z

L1: REWORK
Head-sha: 869d5de0ab657337f689ead79df7f9700cb0ef9d
Card: #36463 (epic #36243) · claim 7121106831 · os-dev-report 7122061191 (Dev-effort: high, Rounds: 1).

Checklist

  • Shape: l1-face CLEAN, 13 items. Draft, base main, first line Fixes #36463, no closing keyword next to another card. mergeable_state clean.
  • Checks at this head: 52 success, 10 expected skip, 0 failed, 0 pending. Lint & Repo Gates, TypeScript Type Check and Type Check UI: success. The local UI type-check was NOT MEASURED in the report, and CI answers it.
  • Governance: check-governed-merges.mjs --pr 36846: NOT governed, 623 lines.
  • Changeset: plugin-approvals, rest and console, all at patch. Each package is published or touched, and its touched files ship. The prose, read sentence by sentence:
    • the decide refusal: true. Both FORBIDDEN refusals still build their English message byte for byte from the same strings; only the throw moved into refuseOwnApproval;
    • the REST door: true (approvals-routes.ts +11 lines), with a control for unmarked and blank values;
    • the console: true (flowResponse.ts refusalBodyUserMessage, ApprovalsInboxPage.tsx humanizeError);
    • the submitter notice: true, with the cap of 8 stated.
  • Premise and route: maintainer ruling 2026-11-17 option B is kept: the same predicates refuse, and only the text moved. The dispatch assumed the slots could be flattened into one param; the report measured the messaging layer and showed that cannot work (a keyed param is one hole-free key). The route it took instead, sentences derived per pack, is sound: nothing is translated twice, and every pack and size 2 to 8 is pinned.
  • Scope: inside the claim surface. The claim named "the console reader that shows the decide refusal"; the diff touches two of them, record page and Approval Center, both declared in deviations and both direct consequences. approval-notification-text.ts was not needed and was not touched.
  • Tests: real commands with output. plugin-approvals: 127 files, 1899 tests. rest: 433 files, 9114 tests. UI: 2 files, 17 tests. Two ablations turned red: deleting the mapper spread turned 1 test red, and voiding the service's userMessage turned 2 red. Both restore lines were pinned to the HEAD blob.

Findings

S1 (should-fix) — Clause-② declares no, but the approvals door's response body gains a member.
packages/rest/src/approvals-routes.ts:313 now puts userMessage at the top level of the flat { code, error } refusal body. It does this for both decide refusals and, as written ("status-agnostic"), for every mapped row whose thrown error carries a marking. A door's response is part of the published contract that Clause-② declares (ADR-0150 §Clause-②: "spec, protocol, SDK, a door's request or response").
This repository's precedent for exactly this shape is yes (widening):

  • fix(approvals): RESUME_FAILED carries the refusal that stranded the run #34619 (62d9d0d998) added the same top-level userMessage to this same door's RESUME_FAILED body and declared Clause-②: yes (widening);
  • feat(rest): the cross-object batch refusal names the failing operation, and a multi-pick related-list add names that record #35811 (a8126d244d) added failedOperation to the batch door's refusal body, with no type export moving, and declared yes (widening).
    That ApiErrorSchema already declares userMessage, and that @objectstack/client already lifts it, makes the change additive. Additive is the widening arm, not no.
    Fix: in the changeset and the PR body, change the line to Clause-②: yes (widening) and add one paragraph naming the widened body:
    • which door and member;
    • which rows answer it today, the two decide refusals, and that it is absent when no producer marked one.
      Metadata-protocol: none and patch stay (AGENTS.md Post-Task item 3: a non-protocol widening ships patch). Amend the claim's Clause-②: line on the card as paper.
      Consequence: with yes, the PR carries the declaration face, which owes an L2 at TIER_DEFAULT. I have claimed and started it on this head (claim 7122485541). It will be re-read against the fixed head, so you do not need to request anything.

Nits:

  • N1: a slate of more than 8 slots still names its slots in English. The report lists this with carrier: none, but it sits inside the card's own Acceptance ("a multi-slot submitter notice reads entirely in Chinese"). Fixes stays right, because the limit sits in service-messaging, outside this card's surface. To the seat: file a carrier card (a list-shaped keyed param in service-messaging), or record a decision not to.
  • N2: the report's second out-of-scope observation (the Approval Center bulk approve names failures by record title only, with no reason) also has no carrier. To the seat, the same choice.

Landing notes

After the fix: the delta L1 and the L2 record on the same head, then the area lands. Fixes #36463 closes the card.

…Message as a widening

Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 869d5de0ab657337f689ead79df7f9700cb0ef9d
Local-runs: none

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 origin/main...869d5de0a, and the check-runs on this head (62 runs: every one success or skipped, none failed or pending). Precedents were read off main with git log -S. Nothing was built, run or re-run.

① Derived judgments

  • J1. Approvals REST door, wire body: a widening. The behaviour is right; the declaration is wrong (F1). handleApprovalError in packages/rest/src/approvals-routes.ts now adds an optional top-level userMessage member to the flat { code, error } body. It does so on every mapped row (400 VALIDATION_FAILED, 409 DUPLICATE_REQUEST / INVALID_STATE / RESUME_TARGET_LOST, 429 THROTTLED, 403 FORBIDDEN, 404 REQUEST_NOT_FOUND, 500 RESUME_FAILED / READ_BACK_FAILED) whenever the thrown error carries a marking that declaredUserMessage accepts. Before this head the member appeared only on RESUME_FAILED, through the stranded spread. So the change adds a member to a public response body: it widens the public surface. The shape is correct:
  • J2. ApprovalService.decide thrown error: additive and correct. Both refusals of a submitter's own approval (excludeSubmitter, and the override under [Maintainer ruling 2026-11-17, option B]) still refuse. Their message is byte-identical, and the existing English pins are unchanged. They gain userMessage, composed in the service from readerLabels(context).sentence. When the reader has no language, or the pack lacks a sentence, the whole text falls back to English. It never mixes the two languages and never names a user id. This holds the contract's "composed where it is produced" clause.
  • J3. Error-code surface: unchanged, which is right. No new code is introduced, and FORBIDDEN was already registered. ERROR_CODE_LEDGER / StandardErrorCode are untouched.
  • J4. Approvals translation catalog: added keys, Clause-②: no by precedent. Right. The PR adds five authored approvalDecideRefused* sentences in all eleven packs and seven derived approvalNoApproverHoldingSlots2..8 per pack. The precedent for adding keys to this same catalog is a3381cc (fix(plugin-approvals): name a no-approver position by its label at the decide refusal and the submitter notice; translate the approver-type word #36450), which declared Clause-②: no. messages.ts is not reachable from the package exports entry (src/index.ts re-exports none of it). The narrowed TypeScript annotation on the per-locale pack constants is internal.
  • J5. Messaging notice payload: right. A notice for 2 to 8 slots now emits a new message id with keyed typeN / valueN params. One slot, and more than 8 slots, keep their earlier ids and shapes. The literal English body is unchanged, which is pinned through the real NotificationTextRenderer. @objectstack/service-messaging's keyed-param contract does not move.
  • J6. Console readers: consumer-side reads, right. refusalBodyUserMessage (ui/packages/app-shell/src/utils/flowResponse.ts) reads the envelope's error.userMessage, else a flat body's top-level userMessage. Both go through one declaredUserMessage predicate, the same two members the client lifts. The inbox humanizeError shows a marked refusal before the generic line. Consumer reads of an existing contract are Clause-②: no by precedent c13af73 (fix(console): a pre-dispatch action refusal toast shows the envelope's userMessage #36440). See F2 for the changeset coverage.
  • J7. Metadata protocol: none, right. No author-writable key, value or type changes, and the diff touches no packages/spec/src/** path.

② Semver level

  • Levels: patch on @objectstack/plugin-approvals and @objectstack/rest is right. AGENTS.md Post-Task Checklist item 3 says a non-protocol change, widening or not, ships patch with Metadata-protocol: none.

  • F1 (must-fix): Clause-②: no is wrong; it must read Clause-②: yes (widening). J1 adds a member to the approvals door's published response body. Under execution-duties.md's Clause ②, widening an accept set or enlarging a public surface is yes. The repository has declared this exact kind of change yes (widening) every time:

    The only nearby no precedent is e17c2ae (fix(plugin-security): a refusal negotiates the label locale, so en-US names the master as /meta does #36581). It changed the language of an existing userMessage and added no member, so it does not cover this head. The PR's own changeset says the door now answers "with userMessage at the top level ... on every mapped row" where it answered none before, which describes a widening. landing-operations.md calls a wrong no "an auditable false declaration". Fix: rewrite the line in three places: the PR body, the changeset body (.changeset/36463-no-approver-text-in-reader-language.md), and the card's claim line, which is the carrier the Clause-② queue gate reads. The changeset's "The REST door" bullet already describes the widening and can stay. The level stays patch.

  • F2 (should-fix): the changeset omits @object-ui/app-shell. The diff changes ui/packages/app-shell/src/utils/flowResponse.ts, but the changeset names @object-ui/console, not @object-ui/app-shell. Every earlier change to this file named @object-ui/app-shell: c13af73, 5bca14f, b357250, 9da2f4b and f7ff693. The package is private, but privatePackages.version is true, so it is versioned and its CHANGELOG is compiled from changesets. Fix: add '@object-ui/app-shell': patch. Check Changeset is green, so the gate does not catch this omission.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviations (dev report 7122061191):
    1. Two console readers changed instead of one. Accepted. Both are "the console reader that shows the decide refusal". The shared type: 'api' reader is gated by the same predicate the client applies, so no unmarked text gets promoted.
    2. The PM's producer-pattern assumption was corrected (lockedError / snapshotQueryRefusal rather than the recognisedRefusal block). Accepted. It was a third-zone assumption, and the correction holds against the code.
    3. The PM's flatten-into-one-param route was falsified, and derived arity sentences capped at 8 replace it. Accepted. The falsification is reasoned against NotificationTextRenderer's one-text-or-one-hole-free-key holes. The cap is a declared constant, and the shape over 8 is unchanged from main.
    4. userMessage is also set on the another-approver branch. Accepted. One refusal never reads half-localized, and the card's Acceptance (entirely Chinese in zh-CN) is served by it. It enlarges the producer set behind F1's widening and adds no separate surface.
    5. Two wip: commits are in the history. Accepted. History only, with no contract effect.
  • out_of_scope_findings:
    • More than 8 slots still names its slots in English. Accepted as a recorded deviation. It is in the PR's Acceptance notes and matches main's behaviour for every multi-slot notice. Removing it needs a list-shaped keyed param in @objectstack/service-messaging. Whether to file a follow-up card is the seat's call under filing-gate.md.
    • Bulk approve reports failures by title only. Accepted. It is pre-existing and was observed, not introduced here. Filing is the seat's call.
  • SQL push-down: no finding. The diff adds no id materialisation and no in-app join. notePositionLabels(slatePositions(...)) is the existing label read, still reached only when no one else is on the slate. The derived sentences are built at module load.
  • Author: the PR's user.login is objectstack-fleet[bot], so no author note is owed.
  • Prior rulings on the edited lines: all three hold. Option B (the override never approves its actor's own request) is kept. The POST /api/v1/approvals/requests/{id}/reject returns 500 while its effect lands AND strands the workflow run — three inconsistent outcomes from one call #13807 stranded envelope still spreads last. The 2026-08-31 anchored strip is unchanged.

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: claude/issue-36463-no-approver-text-in-reader-language
Reviewed-by: session_01WGufziwMkZG34d69p8BHb4

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufziwMkZG34d69p8BHb4 · head a6c6666 · 2026-11-24T05:05Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 — ACCEPT · repo:objectstack#3 · head a6c6666 · 2026-11-24T05:06Z

L1: ACCEPT (delta, after REWORK 7122520696 at 869d5de)
Head-sha: a6c6666adee23afc20e585b0cc95a3fea78c0ed1
Dev reports: 7122558196 (5743d28), 7122608140 (a6c6666). Claim amendment: 7122541004. Contract-review delta claimed on this head (7122622868); the record follows from the same reviewer.

Delta read

Findings

Must-fix: none. Should-fix: none. Nits N1 and N2 from the first round are with the seat as carrier-card requests (7122552986).

Landing notes

Not 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. Fixes #36463 closes the card.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: a6c6666adee23afc20e585b0cc95a3fea78c0ed1
Local-runs: none

Delta round on the previous record for head 869d5de (F1 and F2). Inputs read:

Nothing was built, run or re-run.

① Derived judgments

The code is unchanged, so round 1's J1 to J7 stand as judged.

  • J1, the approvals REST door's wire body. Handlers for nine routes (approve, reject, recall, revise, resubmit, reassign, remind, request-info, comment) share handleApprovalError. On every mapped row, its flat { code, error } refusal body gains an optional top-level userMessage when the thrown error carries a marking. The only in-tree producers are the two 403 FORBIDDEN decide refusals of a submitter's own approval. This widens a public surface, and it is now declared that way (see ②).
  • J2 to J7 are unchanged:
    • J2: the thrown error gains userMessage, and message stays byte-identical.
    • J3: no new error code.
    • J4: the new catalog keys follow precedent a3381cc.
    • J5: messaging payload ids for 2 to 8 slots, and the English body is unchanged.
    • J6: the console reads the body as a consumer.
    • J7: Metadata-protocol: none.

② Semver level

  • F1: closed. All three carriers now read Clause-②: yes (widening): the changeset body, the PR body, and the card's claim amendment 7122541004 (a line-initial key, "was no"). This matches the same-door precedent 62d9d0d (fix(approvals): RESUME_FAILED carries the refusal that stranded the run #34619) and the REST-body precedents 568d416 (fix(objectql): the duplicate-record refusal reaches the writer's locale on the action door and on bulk rows #34304) and a8126d2 (feat(rest): the cross-object batch refusal names the failing operation, and a multi-pick related-list add names that record #35811). patch on @objectstack/plugin-approvals and @objectstack/rest stays right for a non-protocol widening with Metadata-protocol: none.

  • F2: closed. The changeset front matter now names '@object-ui/app-shell': patch for ui/packages/app-shell/src/utils/flowResponse.ts. That matches c13af73 and the four earlier changesets for that file.

  • F3 (nit): the new changeset paragraph states the widened scope too narrowly. The paragraph "Widened door response" says "The approvals decide door ... gains one optional member" and "Two rows answer it today". Two points are off:

    • The member rides every mapped row of all nine approvals routes that share handleApprovalError, not only the decide door.
    • Both refusals answer through one mapping row (FORBIDDEN). What the paragraph counts as two rows are two producers.

    The bullet below it in the same entry ("The approvals routes answer ... on every mapped row") states the full scope correctly, so the CHANGELOG entry still declares the whole widening. The PR body's section has the same wording. Optional fix in prose: "the approvals routes (approvals-routes.ts) gain ... ; two refusals produce it today, both on the 403 FORBIDDEN row".

  • F4 (nit): the PR body's "What changes" line is stale. It still lists the changeset as "patch for @objectstack/plugin-approvals, @objectstack/rest and @object-ui/console", without @object-ui/app-shell. This is PR-body prose only: the shipped changeset is right.

③ 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: claude/issue-36463-no-approver-text-in-reader-language
Reviewed-by: session_01WGufziwMkZG34d69p8BHb4

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-11-24T05:30Z · ACCEPT 7122641847 (L1-b, delta after REWORK 7122520696) at head a6c6666

reading value
check-governed-merges.mjs --pr 36846 NOT governed · +578/−48
landing-k.mjs --pr 36846 OK · K = 3 < 15 · no new locale pack, no shared book moved
contract review PASS 7122655613 (TIER_DEFAULT, declaration face) on a6c6666; F1 (Clause-② widening) and F2 (app-shell changeset line) closed; nits F3/F4 fixed in the PR body prose
Clause-② yes (widening): approvals routes' flat refusal body gains an optional top-level userMessage (precedent #34619); patch, Metadata-protocol: none; claim amended 7122541004
checks at a6c6666 54 success, 12 expected skip, 0 failed, 0 pending; mergeable clean

State: ready + auto-merge (area ux-D, not governed, ≤3000 lines). Fixes #36463: merging closes the card. Carriers for L1 N1 (>8 slots) and N2 (bulk approve reason, now #36855) are with the seat / triage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants