Commit 06772eb
docs(spec): state what the action requiredPermissions server gate does NOT cover (#3923)
`ActionSchema.requiredPermissions` documented itself as a dual-surface gate
whose server half is "the source of truth". An app author reasonably reads that
as "any action I declare this on is enforced somewhere", and it isn't.
Server enforcement lives on the platform action route — POST
/api/v1/actions/<object>/<action> and the MCP/AI path — which is where
`type: 'script' | 'flow' | 'modal'` actions execute. A `type: 'api'` action
pointed at a self-authored endpoint is fetched by the browser directly; that
request never reaches the platform, so nothing checks the declaration
server-side and the endpoint must re-check the capability itself. The doc
comment, the `describe()` string (what surfaces in generated schema docs and
editor tooltips) and ADR-0066 D4 now say so.
Behaviour is unchanged. The UI half's gaps were separate and are fixed in
objectui.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent cd6b9f2 commit 06772eb
3 files changed
Lines changed: 37 additions & 4 deletions
File tree
- .changeset
- docs/adr
- packages/spec/src/ui
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
584 | 584 | | |
585 | | - | |
586 | | - | |
| 585 | + | |
| 586 | + | |
587 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
588 | 597 | | |
589 | | - | |
| 598 | + | |
590 | 599 | | |
591 | 600 | | |
592 | 601 | | |
| |||
0 commit comments