Explanation gallery
Six garden compose diagrams for RBAC, SSO, an auth stack, API checks, an agent policy point, and OAuth PKCE.
These six diagrams are garden compose. Color comes only from the theme tokens. A narrow screen stacks each row into one column.
1How the atoms fit together
| On the diagram | How to write it |
|---|---|
| Soft full-width band (Role, IdP, steps 2 and 5, Agent) | card with frame: band. The two emphasis fills are tone: accent and tone: tip |
| Small capsule (the browser) | card with frame: pill |
| Plain title plus a gray line | card with frame: text, or title + text |
| Bordered card | card |
| Circled index | badge set to a circled number |
| Shield | mark: shield |
| One downward arrow | arrow: down |
| Several downward arrows in a row | fan, then a row with the same count |
| V connector with a label in the notch | join. Both arms meet at one vertex, then a short stem |
| Swimlane, dashed lifelines, both arrow directions | lanes. The label sits above the shaft. forward and back are two emphasis colors |
| Footer line | text with tone: muted |
| Two-by-two grid | two row nodes, two cells each |
A band wraps only the highlighted layer. Inside a centered stack, a footer that should sit on the left uses align: start.
2RBAC
User
Alice
Bob
Admin
Reviewer
Permission
orders:read
orders:approve
User ↔ Role ↔ Permission
3SSO
HR
Finance
Project
All three systems trust the same identity provider
4Auth stack
Not every request walks the stack in this order. The identity service is usually involved at sign-in. The business service calls the decision system when it executes a request.
5Six checks on an API call
The user starts an API request
Example: change an order address
Who are you?
Authentication
How do you prove it?
Credential
May you change this order?
Authorization
Is the payload valid?
Verification
Work and storage
These six checks are not a single sequence. Transport covers the network. Confidentiality can cover both client and server.
6Agent, policy point, and tool
User Intent + Authorization
State the task, the user, and the granted scope
A deterministic check outside the LLM
Scope and resources
Argument checks
Task limits
High-risk review
Tool Executor
Least privilege, an audit record, and a way to stop
7OAuth authorization code + PKCE
User
Client
Authorization server
This sketch leaves out the browser redirect, callback binding, and token checks.