-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcapabilities.yaml
More file actions
334 lines (308 loc) · 10.8 KB
/
Copy pathcapabilities.yaml
File metadata and controls
334 lines (308 loc) · 10.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
# What 0.6 does — the single source the README table, the docs home grid and the PyPI text
# are rendered from. Edit this file; never a rendered copy.
#
# python tools/docs_audit/render_capabilities.py --write # refresh generated/
# python tools/docs_audit/render_capabilities.py --check # what CI runs
#
# One entry per capability. Fields:
#
# id kebab-case, unique
# name what a reader would call it
# description one sentence, at most 15 words, no exclamation mark
# guarantee true for exactly six entries — the six rows of the README matrix, one per
# group of the verify catalogue (G1–G2, G3–G4, G5+G10, G6–G7, G8–G9, G11)
# ways_in decorator / gateway / adapter: true, false, or a short note for a qualified yes
# since the version that shipped it, v0.1 … v0.6
# page the docs-site path that owns it (IA.md), without extension
# claim the exact quoted text of the docs/CLAIMS.md row that proves it, or null with a
# claim_note saying which session adds the sentence and its row
#
# Entries are rendered in this order. The six guarantees come first because the README
# matrix is the first table a stranger reads.
capabilities:
- id: approval-binding
name: Approval binding
description: An approval is bound to the exact action; a mutated or replayed one is refused.
guarantee: true
ways_in:
decorator: true
gateway: true
adapter: prevention or attribution, per adapter
since: v0.1
page: docs/concepts/approval-binding
claim: An approval is bound to the exact action; a mutated or replayed one is refused.
- id: one-effect-once
name: One effect, once
description: One logical effect happens at most once, across threads, processes and hosts.
guarantee: true
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.1
page: docs/concepts/effect-keys
claim: One logical effect happens at most once, across threads, processes and hosts.
- id: ambiguous-outcomes
name: Unknown is not failed
description: An unknown outcome is AMBIGUOUS, never FAILED, and blocks a blind retry.
guarantee: true
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.1
page: docs/concepts/outcomes-and-ambiguous
claim: An unknown outcome is AMBIGUOUS, never FAILED, and blocks a blind retry.
- id: fail-closed
name: Fail closed
description: An unknown action, a missing policy or a missing principal is denied.
guarantee: true
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.1
page: docs/concepts/fail-closed
claim: An unknown action, a missing policy or a missing principal is denied.
- id: authority-containment
name: Authority and delegation
description: With authority on, every principal needs a grant, and delegation cannot widen one.
guarantee: true
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.3
page: docs/concepts/authority-and-delegation
claim: provably a subset of its parent on every dimension, at creation and again at every evaluation
- id: receipts
name: Receipts
description: Every executed action leaves a portable JSON receipt of who, what and outcome.
guarantee: true
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.1
page: docs/concepts/receipts-and-evidence
claim: Every executed action leaves a portable JSON receipt
- id: per-action-policy
name: Per-action policy
description: One YAML file decides allow, approve or deny per action and argument.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.1
page: docs/reference/policy-yaml
claim: cheap to undo is autonomous, anything that leaves the building needs a human, money is by amount with both ends bound
- id: operator-cli
name: Operator CLI
description: Approve, deny, resolve, inspect and count from the shell, against any store.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.1
page: docs/reference/cli
claim: "`ctrlrun approve`, `deny`, `resolve`, `inspect`, `receipts` and `stats` work from the shell against any store"
- id: mcp-gateway
name: MCP gateway
description: Every guarantee in front of an MCP tool server, with no agent changes.
guarantee: false
ways_in:
decorator: false
gateway: true
adapter: false
since: v0.2
page: docs/guides/gateway-in-front-of-mcp
claim: No agent changes
- id: reconciliation
name: Reconciliation
description: A reconcile hook asks the remote what happened and resolves an AMBIGUOUS effect.
guarantee: false
ways_in:
decorator: true
gateway: false
adapter: true
since: v0.2
page: docs/guides/reconcile-automatically
claim: the only thing besides a human permitted to move a record out of `AMBIGUOUS`
- id: webhook-approvals
name: Webhook approvals
description: Approval requests go to a webhook, such as Slack, and the answer comes back.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: false
since: v0.2
page: docs/guides/approvals-in-slack
claim: "`WebhookApprovalProvider` sends an approval request to a webhook, such as Slack, and takes the answer back through the same grant calls"
- id: otel-export
name: OpenTelemetry export
description: One span per action, one span event per step; argument values are opt-in.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.2
page: docs/guides/export-to-opentelemetry
claim: one OpenTelemetry span per action, one span event per step
- id: identity
name: Consumed identity
description: A principal comes from a verified header or JWT; CTRLRun issues nothing.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.3
page: docs/concepts/authority-and-delegation
claim: CTRLRun issues no credential and defines no identity format
- id: delegation
name: Runtime delegation
description: A principal narrows its own grant at runtime; one revocation cuts the chain.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.3
page: docs/concepts/authority-and-delegation
claim: "`ctrlrun revoke` cuts a chain of any depth with one write"
- id: observe-mode
name: Observe mode
description: Records what enforcement would have blocked, blocks nothing, and counts it.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.3
page: docs/concepts/observe-mode
claim: "`mode: observe` … records what *would* have been blocked, without blocking anything"
- id: verify
name: Verify
description: Runs the guarantee catalogue against your policy and store; N/A is not a pass.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.4
page: docs/guides/verify-in-ci
claim: Not applicable is not a pass
- id: verify-badge
name: The verified badge
description: A GitHub Action and a badge that means the declared guarantees pass.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.4
page: docs/verify/get-the-badge
claim: means the **declared guarantees pass**
- id: framework-adapters
name: Framework adapters
description: An approval routed through the framework's own interrupt; never a second path.
guarantee: false
ways_in:
decorator: false
gateway: false
adapter: true
since: v0.5
page: docs/get-started/three-ways-in
claim: There is never a second place to say yes
- id: durable-runtime
name: Runs on one host or many
description: SQLite on one host, Postgres across hosts, the same guarantees either way.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.6
page: docs/production/index
claim: Runs in production on a single file, or on Postgres across hosts
- id: postgres
name: Postgres store
description: The same store on Postgres, graded by the suite written for SQLite.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.6
page: docs/production/postgres
claim: Same `StateStore` protocol, extended by nothing
- id: migrations
name: Versioned schema
description: Migrations run at open, forward only, and an unknown schema is refused.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.6
page: docs/production/migrations
claim: migrations are automatic at open, forward-only
- id: recovery
name: Recovery on restart
description: A dead worker's effect stays AMBIGUOUS until a human or a hook resolves it.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.6
page: docs/production/recovery
claim: A crashed worker's effect stays `AMBIGUOUS` until a human runs `ctrlrun resolve` or a `reconcile` hook asks the remote what happened
- id: receipt-chain
name: Receipt chain
description: Each receipt carries the hash of the one before; alteration is detected and named.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.6
page: docs/security/receipt-chain
claim: Each receipt carries the hash of the one before it
- id: policy-versioning
name: Policy versioning
description: Every receipt names the policy hash and version that decided it.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.6
page: docs/concepts/receipts-and-evidence
claim: every receipt records which policy decided it
- id: control-registry
name: Control registry
description: Name the house controls an action satisfies, and receipts cite them.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.6
page: docs/reference/policy-yaml
claim: Receipts in a `ctrlrun.policy/v4` document can cite the `controls:` an action satisfies
- id: data-scope
name: Data scope
description: Label arguments by data class and condition a rule on the labels present.
guarantee: false
ways_in:
decorator: true
gateway: true
adapter: true
since: v0.6
page: docs/reference/policy-yaml
claim: a rule can condition on the `data:` labels present in an action's arguments