Repository navigation
docs(approvals): descriptions name the four-leaf viewer block; the automation skill says who admin_rescue opens on - #35066
Conversation
…ill says who admin_rescue opens on The served approval `viewer` block carries `can_act`, `is_submitter`, `can_override` and `can_override_approve`. Approve's override arm reads `can_override_approve`; Reject, Reassign and Recall read `can_override`. Three in-code descriptions and three platform-checklist items still named three leaves or tied Approve to `can_override`. The automation skill's `onEmptyApprovers` row said that under `admin_rescue` only a privileged admin can act via Reassign. The runtime opens the request on the organization's administrators. The letter-case case in approval-override-audit.test.ts puts the double's `find` back in a finally block. No behaviour change. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…he edited comment Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
📓 Docs Drift Check
What this run could not see
Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB L1 review (#34839) · 2026-11-18T01:27ZL1: ACCEPT I ran Must-fixNone. Should-fixNone. What I checked
Notes (nit-level, may stay open)
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Inputs read: card #34839 body and its three comments (triage 6949955415, claim 6964781167, os-dev-report 6966130282); PR #35066 body, its seven-file list, the net diff ① Derived judgments
② Semver levelChangeset Clause-②: no — the PR body and the changeset both carry it, and it holds: nothing a consumer could author or call is narrowed, widened or re-typed. ③ Boundary flags
④ Design judgmentRead against the head tree. The facts every changed sentence rests on:
No must-fix, no should-fix. Nits:
Security-touching is Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG 席位记录 · 2026-11-18T01:32ZHead-sha: 维护者速读(终稿)
席位意见:建议批准。每句说明都对照了审批服务代码( 席位核对
|
Requested by Yibo Wang · project thread
Fixes #34839
Clause-②: no
Metadata-protocol: none
Served-tier: CONTRACT_REVIEW_TIER
维护者速读
viewer块有四个字段(can_act、is_submitter、can_override、can_override_approve),「批准」读can_override_approve,「驳回 / 改派 / 撤回」仍读can_override。② 对外发布的自动化技能里onEmptyApprovers一行,原来说admin_rescue下「只有特权管理员能通过改派处理」,现在改成运行时的真实行为:请求直接落到本组织管理员的待办里。③ 一条测试用例把替换掉的find在 finally 里放回去。can_override_approve,这些描述还停在三个字段;技能那一句会让照着技能搭审批的 AI 向用户讲错admin_rescue的行为。skills/objectstack-automation/references/state-machines-and-approvals.md的onEmptyApprovers行(对外发布,唯一受治理的文件);docs/qa/platform-checklist/areas/approvals.json里approvals.record-page-decisions的 steps[9] 和 acceptance[4](期望从「菜单里有 Override Approve」改成「没有 Approve」,依据是源码,没有在浏览器里重跑);ui/packages/app-shell/src/utils/approvalOverride.ts的文件头注释。node scripts/check-skills-token-ratchet.mjs,预期看到state-machines-and-approvals.md is 5913 tokens (ceiling 5916; headroom 3)且整体通过。check-governed-merges --branch的实测输出是landing tier: H(人合) — the maintainer's hand, or an authorized APPROVED review (GOVERNED_APPROVERS) and then the owning seat lands it。低风险技能通道用不上,原因见 Acceptance notes 第 1 条。What changes
No behaviour change. Seven files.
The served block, as read from the runtime.
ApprovalService.attachViewers(packages/plugins/plugin-approvals/src/approval-service.ts) sets four leaves on every request it serves:can_act,is_submitter,can_overrideandcan_override_approve. The object declares the same four underattachedOnRead(sys-approval-request.object.ts).can_override_approveiscan_overrideminus an approval of the viewer's own request. Of the nine declared actions,approval_approvereadscan_override_approvein its override arm;approval_reject,approval_reassignandapproval_recallreadcan_override.Descriptions brought to that reading (items 1 to 4):
packages/spec/src/data/object.zod.ts: the docblock over theattachedOnReadschema names the four leaves and which action reads which override leaf. Comment only; the docblock sits on a non-exported const.packages/platform-objects/src/apps/account.app.ts: the comment over the Approvals nav entry said all eight actions gate oncan_act || can_override. It now says every action gates on a leaf of the served block, and names the four.ui/packages/app-shell/src/utils/approvalOverride.ts: the module docblock, theViewerBlockLikedocblock and theactionAdmittedByOverridedocblock say that the override test is a substring match oncan_override, which both leaf names carry. No code line changes.docs/qa/platform-checklist/areas/approvals.json: three items, each with its revision bumped and a history entry dated 2026-11-18, ref Approvals viewer-block descriptions: name can_override_approve (follow-up to #34755) #34839.approvals.inbox-metadata-actions(9 to 10): steps[3], steps[4] and acceptance[2].verify name the four leaves.approvals.viewer-gating-submitter-side(7 to 8): acceptance[0].verify no longer says Approve is visible oncan_override.approvals.record-page-decisions(8 to 9): steps[9], acceptance[4].verify and source[4]. The admin of this item submitted the request, so off the slate the row readscan_overridetrue andcan_override_approvefalse, and the folded override menu lists Override Reject, Override Reassign and the plain Recall, and no Approve. The text listed Override Approve.The skill row (item 5).
skills/objectstack-automation/references/state-machines-and-approvals.md, theonEmptyApproversrow: "request opens, only a privileged admin can act via Reassign" becomes "request opens on the organization's administrators". The rest of the row is unchanged. This matchescontent/docs/automation/approvals.mdx(the manager callout, theonEmptyApproversparagraph and the section "When a slate names no one") and the runtime: theadmin_rescuebranch ofopenNodeRequestresolvesorganizationAdministratorsand opens the request on them as ordinary approvers.Test hygiene (item 6).
approval-override-audit.test.ts: the letter-case case keeps the double's originalfindand puts it back in afinallyblock.Changeset.
.changeset/34839-approvals-viewer-block-descriptions.md, patch for@objectstack/skillsand@objectstack/platform-objects.Tests
Head
77dbe40f6e.pnpm --filter @objectstack/plugin-approvals exec vitest run --maxWorkers=2 src/approval-override-audit.test.ts: 20 of 20 passed on the base copy of the file (367e324eeb), and 20 of 20 on the edited copy.pnpm --filter @objectstack/plugin-approvals exec vitest run --maxWorkers=2: Test Files 122 passed (122), Tests 1741 passed (1741).pnpm --filter @objectstack/plugin-approvals typecheck: exit 0.pnpm --filter @objectstack/spec check:generated: all 14 generated artifacts up to date, against adistbuilt from this branch.Acceptance notes
check-governed-merges --branchprintslow-risk skills arm: NOT MEASURED — no reading of the pull request was handed inand answers Tier H, fail closed. Read against the arm's own allowlist in the same script (LOW_RISK_RIDER_PATTERNS,LOW_RISK_ARM_FILE_PATTERNS), the arm cannot apply to this PR: every changed path has to lie under a hit catalog row or be a changeset or docs Markdown, and five of the seven paths are neither (packages/spec,packages/platform-objects,packages/plugins/plugin-approvals,ui/packages/app-shell, and the checklist JSON underdocs/). The changeset also releases@objectstack/platform-objects, and the arm admits nothing but a skills patch.beforeEachcallsmakeFakeEngine()), so the replacedfindcould not reach another case. Thefinallymakes the case self-contained; it fixes no observed leak.Temporal Conformance (live PG + MySQL)inci.yml, and it runs thedriver-sqlsuite only. No lane runsApprovalServiceon a store whose collation folds letter case: plugin-approvals' integration tests usedriver-sqlon SQLite, which compares text case-exactly. A pin for the email-target rule would need a new lane, so none was added.approvals.record-page-decisions. The new expectation (no Approve in the override menu for the admin who submitted the request) is read from source:attachViewers, theapproval_approvepredicate, andDeclaredActionsBardrawing each action by its own declaredvisible. It was not re-run in a browser.packages/specdocblock does not reachpackages/spec/dist(0 files carry the new sentence; controlattachedOnRead, 12 files). Theplatform-objectscomment does reachpackages/platform-objects/dist(4 files), so the changeset names that package.@object-ui/app-shellis private.scripts/check-skills-token-ratchet.mjsholds a row for it at 5916, and it sat at 5916 with headroom 0. The edit shortens the file from 23661 to 23652 bytes (5913 tokens), so the row is not touched. The whole published bundle moves by the same 9 bytes; noSKILL.mdchanges.overlap-checkmerges it cleanly with this branch.Verification
Derived gates (dispatch-gates --commands, then --ran)
dispatch-gates --commandsderived 113 families from the tree at77dbe40f6e. Each was run with its exit code captured before any pipe.pnpm check:dual-build-cjs-loads: exit 3, PREREQUISITE NOT MET (needs a full workspace build). NOT MEASURED locally.pnpm check:i18n: exit 3, PREREQUISITE NOT MET (the workspace CLI is not built). NOT MEASURED locally.pnpm --dir ui exec vitest run scripts/: exit 1. Test Files 1 failed, 170 passed, 2 skipped. The one failure,unit-registry-absence-collision.test.ts, could not resolve@objectstack/client, which was not built in this worktree. After building that package's closure the file was re-run alone: 15 of 15 passed, exit 0. The full family was not re-run.dispatch-gates --ran:113 derived famil(ies) accounted for — 111 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3), exit 0.Outside the derived list:
node scripts/check-platform-checklist.mjs --changed-from origin/main:OK — 2 anchored file(s) in the change set, 20 anchor(s) judged, 0 lost, exit 0.pnpm gen:checklist-status: exit 0, working tree clean after it.node scripts/check-skills-token-ratchet.mjs:state-machines-and-approvals.md is 5913 tokens (ceiling 5916; headroom 3), 58 authored bundle files within their ceilings.node scripts/pm/overlap-check.mjs: clean againstorigin/mainand docs(skills): teach the fault edge on a write after an approval decision and the RESUME_FAILED refusal members #35002.Not run locally, left to CI
@objectstack/spec,@objectstack/platform-objectsand@object-ui/app-shell: their diffs are comments only.test:repo, the repo-wide lint run and the full dogfood battery (the title carries no!and the declaration carries no narrowing arm).Human Minimum
packages/specholds no runtime logic. (a comment changed, no schema)pnpm lintpasses. (the repo-wide lint run is CI's)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (check:generatedreports all 14 up to date)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code