@aithorized/core 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,424 +1,424 @@
1
- {
2
- "$schema": "aithorized/test-vector/v1",
3
- "name": "policy-eval",
4
- "description": "Deterministic policy evaluation (docs/02 section 3.4). Order: kill switch -> breaker -> DENY -> auto-rules -> REQUIRE_APPROVAL -> OBSERVE -> default.",
5
- "policy": {
6
- "version": 14,
7
- "defaults": {
8
- "unmatched": "ALLOW",
9
- "ttlSeconds": 300
10
- },
11
- "rules": [
12
- {
13
- "id": "sql-block-drop",
14
- "match": {
15
- "tool": "sql.*",
16
- "args": {
17
- "query": {
18
- "regex": "(?i)\\bdrop\\b"
19
- }
20
- }
21
- },
22
- "effect": "DENY"
23
- },
24
- {
25
- "id": "sql-destructive",
26
- "match": {
27
- "tool": "sql.*",
28
- "args": {
29
- "query": {
30
- "regex": "(?i)\\b(drop|truncate|delete|alter)\\b"
31
- }
32
- }
33
- },
34
- "effect": "REQUIRE_APPROVAL",
35
- "riskLevel": "CRITICAL"
36
- },
37
- {
38
- "id": "stripe-refund-large",
39
- "match": {
40
- "tool": "stripe.refund",
41
- "args": {
42
- "amount": {
43
- "gt": 10000
44
- }
45
- }
46
- },
47
- "effect": "REQUIRE_APPROVAL",
48
- "riskLevel": "HIGH"
49
- },
50
- {
51
- "id": "stripe-refund-any",
52
- "match": {
53
- "tool": "stripe.refund"
54
- },
55
- "effect": "OBSERVE"
56
- },
57
- {
58
- "id": "fs-delete-outside-tmp",
59
- "match": {
60
- "tool": "fs.delete",
61
- "args": {
62
- "path": {
63
- "notGlob": "/tmp/**"
64
- }
65
- }
66
- },
67
- "effect": "REQUIRE_APPROVAL",
68
- "riskLevel": "HIGH",
69
- "approversRequired": 1,
70
- "ttlSeconds": 600
71
- },
72
- {
73
- "id": "fs-delete-any",
74
- "match": {
75
- "tool": "fs.delete"
76
- },
77
- "effect": "OBSERVE"
78
- },
79
- {
80
- "id": "git-push-approve",
81
- "match": {
82
- "tool": "git.push"
83
- },
84
- "effect": "REQUIRE_APPROVAL",
85
- "riskLevel": "MEDIUM"
86
- },
87
- {
88
- "id": "slow-op",
89
- "match": {
90
- "tool": "slow.op"
91
- },
92
- "effect": "REQUIRE_APPROVAL",
93
- "riskLevel": "MEDIUM",
94
- "ttlSeconds": 7200
95
- },
96
- {
97
- "id": "ping-deny",
98
- "match": {
99
- "tool": "ping"
100
- },
101
- "effect": "DENY"
102
- }
103
- ],
104
- "autoRules": [
105
- {
106
- "id": "ar-git-push-staging",
107
- "match": {
108
- "tool": "git.push",
109
- "args": {
110
- "remote": {
111
- "eq": "origin"
112
- },
113
- "branch": {
114
- "glob": "staging/**"
115
- }
116
- }
117
- },
118
- "agentIds": [
119
- "agt_01JDCODER"
120
- ],
121
- "maxRiskLevel": "MEDIUM",
122
- "expiresAt": "2026-12-01T00:00:00.000Z",
123
- "maxUses": 50,
124
- "uses": 12
125
- },
126
- {
127
- "id": "ar-slow-maxed",
128
- "match": {
129
- "tool": "slow.op"
130
- },
131
- "agentIds": [
132
- "agt_01JDCODER"
133
- ],
134
- "maxRiskLevel": "MEDIUM",
135
- "expiresAt": "2026-12-01T00:00:00.000Z",
136
- "maxUses": 5,
137
- "uses": 5
138
- }
139
- ]
140
- },
141
- "vectors": [
142
- {
143
- "name": "kill-switch",
144
- "input": {
145
- "tool": "stripe.refund",
146
- "args": {
147
- "amount": 45000
148
- },
149
- "agentId": "agt_01JDBILLINGBOT",
150
- "nowMs": 1795773600000
151
- },
152
- "flags": {
153
- "killSwitchActive": true
154
- },
155
- "expected": {
156
- "effect": "DENY",
157
- "reason": "KILL_SWITCH"
158
- }
159
- },
160
- {
161
- "name": "breaker-frozen",
162
- "input": {
163
- "tool": "stripe.refund",
164
- "args": {
165
- "amount": 45000
166
- },
167
- "agentId": "agt_01JDBILLINGBOT",
168
- "nowMs": 1795773600000
169
- },
170
- "flags": {
171
- "breakerState": "FROZEN"
172
- },
173
- "expected": {
174
- "effect": "DENY",
175
- "reason": "CIRCUIT_BREAKER"
176
- }
177
- },
178
- {
179
- "name": "deny-beats-approval",
180
- "input": {
181
- "tool": "sql.execute",
182
- "args": {
183
- "query": "DROP TABLE users"
184
- },
185
- "agentId": "agt_01JDCODER",
186
- "environment": "prod",
187
- "nowMs": 1795773600000
188
- },
189
- "flags": {},
190
- "expected": {
191
- "effect": "DENY",
192
- "reason": "DENY_RULE",
193
- "ruleId": "sql-block-drop"
194
- }
195
- },
196
- {
197
- "name": "approval-critical-sql",
198
- "input": {
199
- "tool": "sql.execute",
200
- "args": {
201
- "query": "DELETE FROM sessions WHERE expired"
202
- },
203
- "agentId": "agt_01JDCODER",
204
- "environment": "prod",
205
- "nowMs": 1795773600000
206
- },
207
- "flags": {},
208
- "expected": {
209
- "effect": "REQUIRE_APPROVAL",
210
- "reason": "APPROVAL_RULE",
211
- "ruleId": "sql-destructive",
212
- "riskLevel": "CRITICAL",
213
- "approversRequired": 1,
214
- "ttlSeconds": 300
215
- }
216
- },
217
- {
218
- "name": "refund-large",
219
- "input": {
220
- "tool": "stripe.refund",
221
- "args": {
222
- "amount": 45000
223
- },
224
- "agentId": "agt_01JDBILLINGBOT",
225
- "nowMs": 1795773600000
226
- },
227
- "flags": {},
228
- "expected": {
229
- "effect": "REQUIRE_APPROVAL",
230
- "reason": "APPROVAL_RULE",
231
- "ruleId": "stripe-refund-large",
232
- "riskLevel": "HIGH",
233
- "approversRequired": 1,
234
- "ttlSeconds": 300
235
- }
236
- },
237
- {
238
- "name": "refund-observe",
239
- "input": {
240
- "tool": "stripe.refund",
241
- "args": {
242
- "amount": 5000
243
- },
244
- "agentId": "agt_01JDBILLINGBOT",
245
- "nowMs": 1795773600000
246
- },
247
- "flags": {},
248
- "expected": {
249
- "effect": "OBSERVE",
250
- "reason": "OBSERVE_RULE",
251
- "ruleId": "stripe-refund-any"
252
- }
253
- },
254
- {
255
- "name": "fs-delete-outside-tmp",
256
- "input": {
257
- "tool": "fs.delete",
258
- "args": {
259
- "path": "/var/data/x"
260
- },
261
- "agentId": "agt_01JDCODER",
262
- "nowMs": 1795773600000
263
- },
264
- "flags": {},
265
- "expected": {
266
- "effect": "REQUIRE_APPROVAL",
267
- "reason": "APPROVAL_RULE",
268
- "ruleId": "fs-delete-outside-tmp",
269
- "riskLevel": "HIGH",
270
- "approversRequired": 1,
271
- "ttlSeconds": 600
272
- }
273
- },
274
- {
275
- "name": "fs-delete-tmp-observe",
276
- "input": {
277
- "tool": "fs.delete",
278
- "args": {
279
- "path": "/tmp/x"
280
- },
281
- "agentId": "agt_01JDCODER",
282
- "nowMs": 1795773600000
283
- },
284
- "flags": {},
285
- "expected": {
286
- "effect": "OBSERVE",
287
- "reason": "OBSERVE_RULE",
288
- "ruleId": "fs-delete-any"
289
- }
290
- },
291
- {
292
- "name": "auto-rule-allows",
293
- "input": {
294
- "tool": "git.push",
295
- "args": {
296
- "remote": "origin",
297
- "branch": "staging/feat-x"
298
- },
299
- "agentId": "agt_01JDCODER",
300
- "nowMs": 1795773600000
301
- },
302
- "flags": {},
303
- "expected": {
304
- "effect": "ALLOW",
305
- "reason": "AUTO_RULE",
306
- "ruleId": "git-push-approve",
307
- "autoRuleId": "ar-git-push-staging",
308
- "riskLevel": "MEDIUM",
309
- "approversRequired": 1,
310
- "ttlSeconds": 300
311
- }
312
- },
313
- {
314
- "name": "auto-rule-agent-scope",
315
- "input": {
316
- "tool": "git.push",
317
- "args": {
318
- "remote": "origin",
319
- "branch": "staging/feat-x"
320
- },
321
- "agentId": "agt_OTHER",
322
- "nowMs": 1795773600000
323
- },
324
- "flags": {},
325
- "expected": {
326
- "effect": "REQUIRE_APPROVAL",
327
- "reason": "APPROVAL_RULE",
328
- "ruleId": "git-push-approve",
329
- "riskLevel": "MEDIUM",
330
- "approversRequired": 1,
331
- "ttlSeconds": 300
332
- }
333
- },
334
- {
335
- "name": "auto-rule-branch-not-covered",
336
- "input": {
337
- "tool": "git.push",
338
- "args": {
339
- "remote": "origin",
340
- "branch": "prod"
341
- },
342
- "agentId": "agt_01JDCODER",
343
- "nowMs": 1795773600000
344
- },
345
- "flags": {},
346
- "expected": {
347
- "effect": "REQUIRE_APPROVAL",
348
- "reason": "APPROVAL_RULE",
349
- "ruleId": "git-push-approve",
350
- "riskLevel": "MEDIUM",
351
- "approversRequired": 1,
352
- "ttlSeconds": 300
353
- }
354
- },
355
- {
356
- "name": "auto-rule-expired",
357
- "input": {
358
- "tool": "git.push",
359
- "args": {
360
- "remote": "origin",
361
- "branch": "staging/feat-x"
362
- },
363
- "agentId": "agt_01JDCODER",
364
- "nowMs": 1796169600000
365
- },
366
- "flags": {},
367
- "expected": {
368
- "effect": "REQUIRE_APPROVAL",
369
- "reason": "APPROVAL_RULE",
370
- "ruleId": "git-push-approve",
371
- "riskLevel": "MEDIUM",
372
- "approversRequired": 1,
373
- "ttlSeconds": 300
374
- }
375
- },
376
- {
377
- "name": "auto-rule-max-uses-and-ttl-clamp",
378
- "input": {
379
- "tool": "slow.op",
380
- "args": {},
381
- "agentId": "agt_01JDCODER",
382
- "nowMs": 1795773600000
383
- },
384
- "flags": {},
385
- "expected": {
386
- "effect": "REQUIRE_APPROVAL",
387
- "reason": "APPROVAL_RULE",
388
- "ruleId": "slow-op",
389
- "riskLevel": "MEDIUM",
390
- "approversRequired": 1,
391
- "ttlSeconds": 3600
392
- }
393
- },
394
- {
395
- "name": "unmatched-allow",
396
- "input": {
397
- "tool": "other.tool",
398
- "args": {},
399
- "agentId": "agt_01JDCODER",
400
- "nowMs": 1795773600000
401
- },
402
- "flags": {},
403
- "expected": {
404
- "effect": "ALLOW",
405
- "reason": "DEFAULT"
406
- }
407
- },
408
- {
409
- "name": "deny-simple",
410
- "input": {
411
- "tool": "ping",
412
- "args": {},
413
- "agentId": "agt_01JDCODER",
414
- "nowMs": 1795773600000
415
- },
416
- "flags": {},
417
- "expected": {
418
- "effect": "DENY",
419
- "reason": "DENY_RULE",
420
- "ruleId": "ping-deny"
421
- }
422
- }
423
- ]
424
- }
1
+ {
2
+ "$schema": "aithorized/test-vector/v1",
3
+ "name": "policy-eval",
4
+ "description": "Deterministic policy evaluation (docs/02 section 3.4). Order: kill switch -> breaker -> DENY -> auto-rules -> REQUIRE_APPROVAL -> OBSERVE -> default.",
5
+ "policy": {
6
+ "version": 14,
7
+ "defaults": {
8
+ "unmatched": "ALLOW",
9
+ "ttlSeconds": 300
10
+ },
11
+ "rules": [
12
+ {
13
+ "id": "sql-block-drop",
14
+ "match": {
15
+ "tool": "sql.*",
16
+ "args": {
17
+ "query": {
18
+ "regex": "(?i)\\bdrop\\b"
19
+ }
20
+ }
21
+ },
22
+ "effect": "DENY"
23
+ },
24
+ {
25
+ "id": "sql-destructive",
26
+ "match": {
27
+ "tool": "sql.*",
28
+ "args": {
29
+ "query": {
30
+ "regex": "(?i)\\b(drop|truncate|delete|alter)\\b"
31
+ }
32
+ }
33
+ },
34
+ "effect": "REQUIRE_APPROVAL",
35
+ "riskLevel": "CRITICAL"
36
+ },
37
+ {
38
+ "id": "stripe-refund-large",
39
+ "match": {
40
+ "tool": "stripe.refund",
41
+ "args": {
42
+ "amount": {
43
+ "gt": 10000
44
+ }
45
+ }
46
+ },
47
+ "effect": "REQUIRE_APPROVAL",
48
+ "riskLevel": "HIGH"
49
+ },
50
+ {
51
+ "id": "stripe-refund-any",
52
+ "match": {
53
+ "tool": "stripe.refund"
54
+ },
55
+ "effect": "OBSERVE"
56
+ },
57
+ {
58
+ "id": "fs-delete-outside-tmp",
59
+ "match": {
60
+ "tool": "fs.delete",
61
+ "args": {
62
+ "path": {
63
+ "notGlob": "/tmp/**"
64
+ }
65
+ }
66
+ },
67
+ "effect": "REQUIRE_APPROVAL",
68
+ "riskLevel": "HIGH",
69
+ "approversRequired": 1,
70
+ "ttlSeconds": 600
71
+ },
72
+ {
73
+ "id": "fs-delete-any",
74
+ "match": {
75
+ "tool": "fs.delete"
76
+ },
77
+ "effect": "OBSERVE"
78
+ },
79
+ {
80
+ "id": "git-push-approve",
81
+ "match": {
82
+ "tool": "git.push"
83
+ },
84
+ "effect": "REQUIRE_APPROVAL",
85
+ "riskLevel": "MEDIUM"
86
+ },
87
+ {
88
+ "id": "slow-op",
89
+ "match": {
90
+ "tool": "slow.op"
91
+ },
92
+ "effect": "REQUIRE_APPROVAL",
93
+ "riskLevel": "MEDIUM",
94
+ "ttlSeconds": 7200
95
+ },
96
+ {
97
+ "id": "ping-deny",
98
+ "match": {
99
+ "tool": "ping"
100
+ },
101
+ "effect": "DENY"
102
+ }
103
+ ],
104
+ "autoRules": [
105
+ {
106
+ "id": "ar-git-push-staging",
107
+ "match": {
108
+ "tool": "git.push",
109
+ "args": {
110
+ "remote": {
111
+ "eq": "origin"
112
+ },
113
+ "branch": {
114
+ "glob": "staging/**"
115
+ }
116
+ }
117
+ },
118
+ "agentIds": [
119
+ "agt_01JDCODER"
120
+ ],
121
+ "maxRiskLevel": "MEDIUM",
122
+ "expiresAt": "2026-12-01T00:00:00.000Z",
123
+ "maxUses": 50,
124
+ "uses": 12
125
+ },
126
+ {
127
+ "id": "ar-slow-maxed",
128
+ "match": {
129
+ "tool": "slow.op"
130
+ },
131
+ "agentIds": [
132
+ "agt_01JDCODER"
133
+ ],
134
+ "maxRiskLevel": "MEDIUM",
135
+ "expiresAt": "2026-12-01T00:00:00.000Z",
136
+ "maxUses": 5,
137
+ "uses": 5
138
+ }
139
+ ]
140
+ },
141
+ "vectors": [
142
+ {
143
+ "name": "kill-switch",
144
+ "input": {
145
+ "tool": "stripe.refund",
146
+ "args": {
147
+ "amount": 45000
148
+ },
149
+ "agentId": "agt_01JDBILLINGBOT",
150
+ "nowMs": 1795773600000
151
+ },
152
+ "flags": {
153
+ "killSwitchActive": true
154
+ },
155
+ "expected": {
156
+ "effect": "DENY",
157
+ "reason": "KILL_SWITCH"
158
+ }
159
+ },
160
+ {
161
+ "name": "breaker-frozen",
162
+ "input": {
163
+ "tool": "stripe.refund",
164
+ "args": {
165
+ "amount": 45000
166
+ },
167
+ "agentId": "agt_01JDBILLINGBOT",
168
+ "nowMs": 1795773600000
169
+ },
170
+ "flags": {
171
+ "breakerState": "FROZEN"
172
+ },
173
+ "expected": {
174
+ "effect": "DENY",
175
+ "reason": "CIRCUIT_BREAKER"
176
+ }
177
+ },
178
+ {
179
+ "name": "deny-beats-approval",
180
+ "input": {
181
+ "tool": "sql.execute",
182
+ "args": {
183
+ "query": "DROP TABLE users"
184
+ },
185
+ "agentId": "agt_01JDCODER",
186
+ "environment": "prod",
187
+ "nowMs": 1795773600000
188
+ },
189
+ "flags": {},
190
+ "expected": {
191
+ "effect": "DENY",
192
+ "reason": "DENY_RULE",
193
+ "ruleId": "sql-block-drop"
194
+ }
195
+ },
196
+ {
197
+ "name": "approval-critical-sql",
198
+ "input": {
199
+ "tool": "sql.execute",
200
+ "args": {
201
+ "query": "DELETE FROM sessions WHERE expired"
202
+ },
203
+ "agentId": "agt_01JDCODER",
204
+ "environment": "prod",
205
+ "nowMs": 1795773600000
206
+ },
207
+ "flags": {},
208
+ "expected": {
209
+ "effect": "REQUIRE_APPROVAL",
210
+ "reason": "APPROVAL_RULE",
211
+ "ruleId": "sql-destructive",
212
+ "riskLevel": "CRITICAL",
213
+ "approversRequired": 1,
214
+ "ttlSeconds": 300
215
+ }
216
+ },
217
+ {
218
+ "name": "refund-large",
219
+ "input": {
220
+ "tool": "stripe.refund",
221
+ "args": {
222
+ "amount": 45000
223
+ },
224
+ "agentId": "agt_01JDBILLINGBOT",
225
+ "nowMs": 1795773600000
226
+ },
227
+ "flags": {},
228
+ "expected": {
229
+ "effect": "REQUIRE_APPROVAL",
230
+ "reason": "APPROVAL_RULE",
231
+ "ruleId": "stripe-refund-large",
232
+ "riskLevel": "HIGH",
233
+ "approversRequired": 1,
234
+ "ttlSeconds": 300
235
+ }
236
+ },
237
+ {
238
+ "name": "refund-observe",
239
+ "input": {
240
+ "tool": "stripe.refund",
241
+ "args": {
242
+ "amount": 5000
243
+ },
244
+ "agentId": "agt_01JDBILLINGBOT",
245
+ "nowMs": 1795773600000
246
+ },
247
+ "flags": {},
248
+ "expected": {
249
+ "effect": "OBSERVE",
250
+ "reason": "OBSERVE_RULE",
251
+ "ruleId": "stripe-refund-any"
252
+ }
253
+ },
254
+ {
255
+ "name": "fs-delete-outside-tmp",
256
+ "input": {
257
+ "tool": "fs.delete",
258
+ "args": {
259
+ "path": "/var/data/x"
260
+ },
261
+ "agentId": "agt_01JDCODER",
262
+ "nowMs": 1795773600000
263
+ },
264
+ "flags": {},
265
+ "expected": {
266
+ "effect": "REQUIRE_APPROVAL",
267
+ "reason": "APPROVAL_RULE",
268
+ "ruleId": "fs-delete-outside-tmp",
269
+ "riskLevel": "HIGH",
270
+ "approversRequired": 1,
271
+ "ttlSeconds": 600
272
+ }
273
+ },
274
+ {
275
+ "name": "fs-delete-tmp-observe",
276
+ "input": {
277
+ "tool": "fs.delete",
278
+ "args": {
279
+ "path": "/tmp/x"
280
+ },
281
+ "agentId": "agt_01JDCODER",
282
+ "nowMs": 1795773600000
283
+ },
284
+ "flags": {},
285
+ "expected": {
286
+ "effect": "OBSERVE",
287
+ "reason": "OBSERVE_RULE",
288
+ "ruleId": "fs-delete-any"
289
+ }
290
+ },
291
+ {
292
+ "name": "auto-rule-allows",
293
+ "input": {
294
+ "tool": "git.push",
295
+ "args": {
296
+ "remote": "origin",
297
+ "branch": "staging/feat-x"
298
+ },
299
+ "agentId": "agt_01JDCODER",
300
+ "nowMs": 1795773600000
301
+ },
302
+ "flags": {},
303
+ "expected": {
304
+ "effect": "ALLOW",
305
+ "reason": "AUTO_RULE",
306
+ "ruleId": "git-push-approve",
307
+ "autoRuleId": "ar-git-push-staging",
308
+ "riskLevel": "MEDIUM",
309
+ "approversRequired": 1,
310
+ "ttlSeconds": 300
311
+ }
312
+ },
313
+ {
314
+ "name": "auto-rule-agent-scope",
315
+ "input": {
316
+ "tool": "git.push",
317
+ "args": {
318
+ "remote": "origin",
319
+ "branch": "staging/feat-x"
320
+ },
321
+ "agentId": "agt_OTHER",
322
+ "nowMs": 1795773600000
323
+ },
324
+ "flags": {},
325
+ "expected": {
326
+ "effect": "REQUIRE_APPROVAL",
327
+ "reason": "APPROVAL_RULE",
328
+ "ruleId": "git-push-approve",
329
+ "riskLevel": "MEDIUM",
330
+ "approversRequired": 1,
331
+ "ttlSeconds": 300
332
+ }
333
+ },
334
+ {
335
+ "name": "auto-rule-branch-not-covered",
336
+ "input": {
337
+ "tool": "git.push",
338
+ "args": {
339
+ "remote": "origin",
340
+ "branch": "prod"
341
+ },
342
+ "agentId": "agt_01JDCODER",
343
+ "nowMs": 1795773600000
344
+ },
345
+ "flags": {},
346
+ "expected": {
347
+ "effect": "REQUIRE_APPROVAL",
348
+ "reason": "APPROVAL_RULE",
349
+ "ruleId": "git-push-approve",
350
+ "riskLevel": "MEDIUM",
351
+ "approversRequired": 1,
352
+ "ttlSeconds": 300
353
+ }
354
+ },
355
+ {
356
+ "name": "auto-rule-expired",
357
+ "input": {
358
+ "tool": "git.push",
359
+ "args": {
360
+ "remote": "origin",
361
+ "branch": "staging/feat-x"
362
+ },
363
+ "agentId": "agt_01JDCODER",
364
+ "nowMs": 1796169600000
365
+ },
366
+ "flags": {},
367
+ "expected": {
368
+ "effect": "REQUIRE_APPROVAL",
369
+ "reason": "APPROVAL_RULE",
370
+ "ruleId": "git-push-approve",
371
+ "riskLevel": "MEDIUM",
372
+ "approversRequired": 1,
373
+ "ttlSeconds": 300
374
+ }
375
+ },
376
+ {
377
+ "name": "auto-rule-max-uses-and-ttl-clamp",
378
+ "input": {
379
+ "tool": "slow.op",
380
+ "args": {},
381
+ "agentId": "agt_01JDCODER",
382
+ "nowMs": 1795773600000
383
+ },
384
+ "flags": {},
385
+ "expected": {
386
+ "effect": "REQUIRE_APPROVAL",
387
+ "reason": "APPROVAL_RULE",
388
+ "ruleId": "slow-op",
389
+ "riskLevel": "MEDIUM",
390
+ "approversRequired": 1,
391
+ "ttlSeconds": 3600
392
+ }
393
+ },
394
+ {
395
+ "name": "unmatched-allow",
396
+ "input": {
397
+ "tool": "other.tool",
398
+ "args": {},
399
+ "agentId": "agt_01JDCODER",
400
+ "nowMs": 1795773600000
401
+ },
402
+ "flags": {},
403
+ "expected": {
404
+ "effect": "ALLOW",
405
+ "reason": "DEFAULT"
406
+ }
407
+ },
408
+ {
409
+ "name": "deny-simple",
410
+ "input": {
411
+ "tool": "ping",
412
+ "args": {},
413
+ "agentId": "agt_01JDCODER",
414
+ "nowMs": 1795773600000
415
+ },
416
+ "flags": {},
417
+ "expected": {
418
+ "effect": "DENY",
419
+ "reason": "DENY_RULE",
420
+ "ruleId": "ping-deny"
421
+ }
422
+ }
423
+ ]
424
+ }