Skip to content

docs(approvals): document the full decision surface, send-back/resubmit, declared actions + viewer gating - #3349

Merged
os-zhuang merged 1 commit into
mainfrom
claude/enterprise-delegation-ooo-proxy-1v3m8l
Jul 20, 2026
Merged

docs(approvals): document the full decision surface, send-back/resubmit, declared actions + viewer gating#3349
os-zhuang merged 1 commit into
mainfrom
claude/enterprise-delegation-ooo-proxy-1v3m8l

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Docs catch-up for content/docs/automation/approvals.mdx. The guide only documented approve/reject; this brings it in line with everything shipped across the recent approvals work (framework#3300/#3332/#3310, objectui#2697/#2710/#2719).

What

  • Full decision-verb surface as a table — approve/reject/reassign/revise/request-info/remind/recall/resubmit/comment — with route, who-may-call, and effect. This is the first time the /revise (send-back) and /resubmit routes appear in the docs.
  • Send-back → resubmit lifecycle (ADR-0044): revise finalizes the round returned and unlocks the record; the submitter reworks and resubmits (new round) or recalls; past maxRevisions a send-back auto-rejects; the node needs a revise edge.
  • Decision attachments: attachments: string[] of sys_file ids on the audit row (e.g. a signed contract on the approve).
  • New "Acting on requests in the console" section: the verbs ship as server-declared actions on sys_approval_request, rendered + executed by the generic console action runtime (the Approvals inbox), so a decision needs no per-action UI.
  • The server-computed viewer block (viewer.can_act / viewer.is_submitter) that gates the declared actions — why a submitter never sees Approve/Reject and a position-addressed approver is never wrongly hidden.
  • Generalized the FORBIDDEN error-code wording to cover submitter-only verbs.

Scope

Docs-only — no code or schema change. This also addresses the docs-drift advisory that flagged approvals.mdx on the recent approvals PRs.

Verification

node scripts/check-doc-authoring.mjs passes; section structure unchanged in shape (new ### subsections sit alongside Timeouts / Out-of-office under the lifecycle heading).

Refs

framework#3300 (declared action set + routes) · framework#3332 (decision attachments) · framework#3310 (viewer gating) · objectui#2697 / #2710 / #2719 (console inbox) · ADR-0044 (send-back/resubmit)

🤖 Generated with Claude Code


Generated by Claude Code

…it, declared actions + viewer gating
The approvals guide only covered approve/reject. Bring it up to date with what
has shipped:
- Full decision-verb surface as a table (approve/reject/reassign/revise/
request-info/remind/recall/resubmit/comment) with route, who-may-call, and
effect — including the /revise and /resubmit routes.
- Send-back → resubmit revision lifecycle (ADR-0044), incl. the maxRevisions
auto-reject and the required `revise` edge.
- Decision file attachments (`attachments: string[]` on the audit row).
- "Acting on requests in the console": the verbs ship as server-declared
`sys_approval_request` actions rendered by the generic console action runtime
(the inbox), so decisions need no per-action UI.
- The server-computed per-viewer block (`viewer.can_act` / `viewer.is_submitter`)
that gates the declared actions, and why a submitter never sees approver
buttons while a position-addressed approver is never wrongly hidden.
- Generalize the FORBIDDEN error-code wording to cover submitter-only verbs.
Docs-only; no code or schema change.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ypkQikZ55oWUHUnMebwXA
@vercel

vercelBot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specErrorErrorJul 20, 2026 6:00am

Request Review

@os-zhuangos-zhuang added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Jul 20, 2026 — with Claude
@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation size/s labels Jul 20, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review July 20, 2026 06:02
@os-zhuang
os-zhuang merged commit 10c2b85 into mainJul 20, 2026
17 of 18 checks passed
@os-zhuang
os-zhuang deleted the claude/enterprise-delegation-ooo-proxy-1v3m8l branch July 20, 2026 06:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/sskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@os-zhuang@claude