Repository navigation
Expand file tree
/
Copy pathtarget-binding-report.json
More file actions
349 lines (349 loc) · 12.9 KB
/
Copy pathtarget-binding-report.json
File metadata and controls
349 lines (349 loc) · 12.9 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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
{
"protocol": "aml-target-binding-report/1",
"provenance": "Project-authored local Node simulation. Both paths call the same action-boundary reference; the bound path adds a host-owned resolver. Callbacks append to memory only.",
"binding": "The host derives the actual recipient from frozen arguments and requires exact equality with the proposal resource before approval or callback.",
"caveat": "A trustworthy, tool-specific host mapper is essential. This example does not authenticate a person, validate message content, prove delivery, or guarantee a downstream tool uses the mapped field. The baseline is intentionally permissive and no real message is sent.",
"cases": [
{
"id": "aligned",
"title": "Declared and actual target agree",
"description": "Control: the rule, resource, and recipient match.",
"declared_resource": "team@example.test",
"argument_to": "team@example.test",
"body": "The release is ready.",
"digest_fixture_only": false,
"reference": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "cce9d0e21c4683cefc33d6fc154cd27eaf36db797ca58dc958ce5b05341c744d",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "cce9d0e21c4683cefc33d6fc154cd27eaf36db797ca58dc958ce5b05341c744d",
"policy_decision": "allow",
"execution_status": "dispatched",
"reason": "host_dispatch_returned"
},
"simulated_callbacks": 1,
"simulated_callback_targets": [
"team@example.test"
],
"mapped_targets": []
},
"target_bound": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "cce9d0e21c4683cefc33d6fc154cd27eaf36db797ca58dc958ce5b05341c744d",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "cce9d0e21c4683cefc33d6fc154cd27eaf36db797ca58dc958ce5b05341c744d",
"policy_decision": "allow",
"execution_status": "dispatched",
"reason": "host_dispatch_returned"
},
"simulated_callbacks": 1,
"simulated_callback_targets": [
"team@example.test"
],
"mapped_targets": [
"team@example.test"
]
}
},
{
"id": "forged_recipient",
"title": "Same rule. Different recipient.",
"description": "The declared resource stays approved, while arguments.to points outside.",
"declared_resource": "team@example.test",
"argument_to": "outside@example.test",
"body": "The release is ready.",
"digest_fixture_only": false,
"reference": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "a5d8ceaa36341aae025620b1d0d0e68ca62a5cb1d54adf5cc60b722eb01d2723",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "a5d8ceaa36341aae025620b1d0d0e68ca62a5cb1d54adf5cc60b722eb01d2723",
"policy_decision": "allow",
"execution_status": "dispatched",
"reason": "host_dispatch_returned"
},
"simulated_callbacks": 1,
"simulated_callback_targets": [
"outside@example.test"
],
"mapped_targets": []
},
"target_bound": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "a5d8ceaa36341aae025620b1d0d0e68ca62a5cb1d54adf5cc60b722eb01d2723",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "a5d8ceaa36341aae025620b1d0d0e68ca62a5cb1d54adf5cc60b722eb01d2723",
"policy_decision": "allow",
"execution_status": "blocked",
"reason": "target_mismatch"
},
"simulated_callbacks": 0,
"simulated_callback_targets": [],
"mapped_targets": [
"outside@example.test"
]
}
},
{
"id": "fresh_digest",
"title": "A fresh digest still needs a target check",
"description": "A project-authored approval fixture accepts this exact changed digest. It is not human consent; binding still rejects the recipient mismatch.",
"declared_resource": "team@example.test",
"argument_to": "outside@example.test",
"body": "The release is ready.",
"digest_fixture_only": true,
"reference": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "a5d8ceaa36341aae025620b1d0d0e68ca62a5cb1d54adf5cc60b722eb01d2723",
"decision": "requires_approval",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "a5d8ceaa36341aae025620b1d0d0e68ca62a5cb1d54adf5cc60b722eb01d2723",
"policy_decision": "requires_approval",
"execution_status": "dispatched",
"reason": "host_dispatch_returned"
},
"simulated_callbacks": 1,
"simulated_callback_targets": [
"outside@example.test"
],
"mapped_targets": []
},
"target_bound": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "a5d8ceaa36341aae025620b1d0d0e68ca62a5cb1d54adf5cc60b722eb01d2723",
"decision": "requires_approval",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "a5d8ceaa36341aae025620b1d0d0e68ca62a5cb1d54adf5cc60b722eb01d2723",
"policy_decision": "requires_approval",
"execution_status": "blocked",
"reason": "target_mismatch"
},
"simulated_callbacks": 0,
"simulated_callback_targets": [],
"mapped_targets": [
"outside@example.test"
]
}
},
{
"id": "missing_recipient",
"title": "The recipient is missing",
"description": "A permissive rule alone reaches the simulated callback with no to argument; the resolver fails closed.",
"declared_resource": "team@example.test",
"argument_to": null,
"body": "The release is ready.",
"digest_fixture_only": false,
"reference": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "2795c2438f42d0b429561172f7fc3600738df2a4843f90d5fcf69d29b164c0a2",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "2795c2438f42d0b429561172f7fc3600738df2a4843f90d5fcf69d29b164c0a2",
"policy_decision": "allow",
"execution_status": "dispatched",
"reason": "host_dispatch_returned"
},
"simulated_callbacks": 1,
"simulated_callback_targets": [
null
],
"mapped_targets": []
},
"target_bound": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "2795c2438f42d0b429561172f7fc3600738df2a4843f90d5fcf69d29b164c0a2",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "2795c2438f42d0b429561172f7fc3600738df2a4843f90d5fcf69d29b164c0a2",
"policy_decision": "allow",
"execution_status": "blocked",
"reason": "target_unavailable"
},
"simulated_callbacks": 0,
"simulated_callback_targets": [],
"mapped_targets": [
null
]
}
},
{
"id": "resolver_error",
"title": "The host mapper fails",
"description": "A thrown target resolver stops the bound path before approval or callback.",
"declared_resource": "team@example.test",
"argument_to": "team@example.test",
"body": "The release is ready.",
"digest_fixture_only": false,
"reference": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "cce9d0e21c4683cefc33d6fc154cd27eaf36db797ca58dc958ce5b05341c744d",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "cce9d0e21c4683cefc33d6fc154cd27eaf36db797ca58dc958ce5b05341c744d",
"policy_decision": "allow",
"execution_status": "dispatched",
"reason": "host_dispatch_returned"
},
"simulated_callbacks": 1,
"simulated_callback_targets": [
"team@example.test"
],
"mapped_targets": []
},
"target_bound": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "cce9d0e21c4683cefc33d6fc154cd27eaf36db797ca58dc958ce5b05341c744d",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "cce9d0e21c4683cefc33d6fc154cd27eaf36db797ca58dc958ce5b05341c744d",
"policy_decision": "allow",
"execution_status": "blocked",
"reason": "target_resolution_error"
},
"simulated_callbacks": 0,
"simulated_callback_targets": [],
"mapped_targets": []
}
},
{
"id": "changed_body",
"title": "Target binding is not content approval",
"description": "The recipient is aligned, while the body changes. Both unreviewed paths reach the simulated callback.",
"declared_resource": "team@example.test",
"argument_to": "team@example.test",
"body": "Different release text.",
"digest_fixture_only": false,
"reference": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "e7310ffcbd46ff98b3b967eaaf5d5945ed4ea63f803ed17f5ccd65bde15b26cf",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "e7310ffcbd46ff98b3b967eaaf5d5945ed4ea63f803ed17f5ccd65bde15b26cf",
"policy_decision": "allow",
"execution_status": "dispatched",
"reason": "host_dispatch_returned"
},
"simulated_callbacks": 1,
"simulated_callback_targets": [
"team@example.test"
],
"mapped_targets": []
},
"target_bound": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "e7310ffcbd46ff98b3b967eaaf5d5945ed4ea63f803ed17f5ccd65bde15b26cf",
"decision": "allow",
"reason": "exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "e7310ffcbd46ff98b3b967eaaf5d5945ed4ea63f803ed17f5ccd65bde15b26cf",
"policy_decision": "allow",
"execution_status": "dispatched",
"reason": "host_dispatch_returned"
},
"simulated_callbacks": 1,
"simulated_callback_targets": [
"team@example.test"
],
"mapped_targets": [
"team@example.test"
]
}
},
{
"id": "changed_resource",
"title": "The rule rejects a declared route change",
"description": "Changing the resource itself misses the exact rule before the target resolver runs.",
"declared_resource": "outside@example.test",
"argument_to": "outside@example.test",
"body": "The release is ready.",
"digest_fixture_only": false,
"reference": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "2ecec9856ab4d3c5a38c801d83408e50f08d97bcaa7027081471611ae6386f65",
"decision": "deny",
"reason": "no_exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "2ecec9856ab4d3c5a38c801d83408e50f08d97bcaa7027081471611ae6386f65",
"policy_decision": "deny",
"execution_status": "blocked",
"reason": "no_exact_rule"
},
"simulated_callbacks": 0,
"simulated_callback_targets": [],
"mapped_targets": []
},
"target_bound": {
"plan": {
"protocol": "aml-action-plan/1",
"proposal_sha256": "2ecec9856ab4d3c5a38c801d83408e50f08d97bcaa7027081471611ae6386f65",
"decision": "deny",
"reason": "no_exact_rule"
},
"receipt": {
"protocol": "aml-action-dispatch/1",
"proposal_sha256": "2ecec9856ab4d3c5a38c801d83408e50f08d97bcaa7027081471611ae6386f65",
"policy_decision": "deny",
"execution_status": "blocked",
"reason": "no_exact_rule"
},
"simulated_callbacks": 0,
"simulated_callback_targets": [],
"mapped_targets": []
}
}
]
}