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

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

vercel Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
spec Error Error Jul 20, 2026 6:00am

Request Review

@os-zhuang os-zhuang added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Jul 20, 2026 — with Claude
@github-actions github-actions Bot 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 main Jul 20, 2026
17 checks passed
@os-zhuang
os-zhuang deleted the claude/enterprise-delegation-ooo-proxy-1v3m8l branch July 20, 2026 06:03
os-steve pushed a commit that referenced this pull request Aug 25, 2026
…at sets it

git history (full clone): the file was created (#3349) with `"rootDir": "."`
and no comment. The very same commit that later broadened it to
`"rootDir": "../../.."` (#7526/#7584) also introduced the seven-line comment
whose opening sentence claims there is none — the contradiction was there from
the moment the comment was written, not a later drift. `git log -S'rootDir'`
on this path finds only those two commits; no earlier form of the file ever
had a bare "no rootDir" state, so disposition is a one-sentence wording fix,
not a removal.

Verified the comment's own argument still holds: the only file in the package
importing outside it (route-ledger-live-mount-parity.dogfood.test.ts) resolves
all five of its relative imports under `../../..`, so the declared rootDir
still never constrains anything. `tsc --showConfig` is byte-identical
before/after (comments are stripped before parsing) — no behaviour change.

Scope: this one file's comment text only, per #10899's standing fence.

Fixes #11476

Claude-Session: https://claude.ai/code/session_015ahemw8RcTgqtxrj15PEZx

Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal pushed a commit to akarma-synetal/framework that referenced this pull request Sep 1, 2026
…at sets it (objectstack-ai#11919)

git history (full clone): the file was created (objectstack-ai#3349) with `"rootDir": "."`
and no comment. The very same commit that later broadened it to
`"rootDir": "../../.."` (objectstack-ai#7526/objectstack-ai#7584) also introduced the seven-line comment
whose opening sentence claims there is none — the contradiction was there from
the moment the comment was written, not a later drift. `git log -S'rootDir'`
on this path finds only those two commits; no earlier form of the file ever
had a bare "no rootDir" state, so disposition is a one-sentence wording fix,
not a removal.

Verified the comment's own argument still holds: the only file in the package
importing outside it (route-ledger-live-mount-parity.dogfood.test.ts) resolves
all five of its relative imports under `../../..`, so the declared rootDir
still never constrains anything. `tsc --showConfig` is byte-identical
before/after (comments are stripped before parsing) — no behaviour change.

Scope: this one file's comment text only, per objectstack-ai#10899's standing fence.

Fixes objectstack-ai#11476

Claude-Session: https://claude.ai/code/session_015ahemw8RcTgqtxrj15PEZx

Co-authored-by: Claude <noreply@anthropic.com>

This branch had an error being deployed

1 failed deployment
Preview — 6a9593dd Deployed Jul 20, 2026 by vercel[bot]
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/s skip-changeset PR 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