@runfile-ai/schemas 0.1.1 → 0.2.0
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.
- package/README.md +4 -4
- package/dist/event.d.ts +931 -105
- package/dist/event.d.ts.map +1 -1
- package/dist/event.js +252 -14
- package/dist/event.js.map +1 -1
- package/dist/evidence.d.ts +588 -115
- package/dist/evidence.d.ts.map +1 -1
- package/dist/ingest.d.ts +4981 -335
- package/dist/ingest.d.ts.map +1 -1
- package/dist/ingest.js +153 -24
- package/dist/ingest.js.map +1 -1
- package/dist/vault.d.ts +6 -6
- package/generated/json-schema/event.json +670 -41
- package/generated/json-schema/evidence.json +269 -11
- package/generated/json-schema/ingest.json +738 -93
- package/generated/json-schema/vault.json +17 -1
- package/package.json +1 -1
|
@@ -4,24 +4,157 @@
|
|
|
4
4
|
"description": "Runfile event schemas. Source: src/event.ts (Zod). Do not edit by hand.",
|
|
5
5
|
"$ref": "#/definitions/_RunfileBundle",
|
|
6
6
|
"definitions": {
|
|
7
|
-
"
|
|
7
|
+
"RunfileRun": {
|
|
8
8
|
"type": "object",
|
|
9
9
|
"properties": {
|
|
10
10
|
"schema_version": {
|
|
11
11
|
"type": "string",
|
|
12
12
|
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"run_id": {
|
|
15
15
|
"type": "string",
|
|
16
|
-
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
16
|
+
"pattern": "^run_[0-9A-HJKMNP-TV-Z]{26}$"
|
|
17
17
|
},
|
|
18
18
|
"tenant_id": {
|
|
19
19
|
"type": "string",
|
|
20
20
|
"pattern": "^tnt_[0-9a-z]{12}$"
|
|
21
21
|
},
|
|
22
|
-
"
|
|
22
|
+
"agent_identity": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^did:[a-z][a-z0-9]*:[A-Za-z0-9._:-]+$"
|
|
25
|
+
},
|
|
26
|
+
"conversation_id": {
|
|
23
27
|
"type": "string",
|
|
24
|
-
"
|
|
28
|
+
"maxLength": 256
|
|
29
|
+
},
|
|
30
|
+
"lifecycle_state": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": [
|
|
33
|
+
"active",
|
|
34
|
+
"awaiting_human",
|
|
35
|
+
"awaiting_webhook",
|
|
36
|
+
"awaiting_schedule",
|
|
37
|
+
"ended"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"started_at": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": "date-time"
|
|
43
|
+
},
|
|
44
|
+
"ended_at": {
|
|
45
|
+
"anyOf": [
|
|
46
|
+
{
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "date-time"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "null"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"outcome": {
|
|
56
|
+
"anyOf": [
|
|
57
|
+
{
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"success",
|
|
61
|
+
"failure",
|
|
62
|
+
"incomplete",
|
|
63
|
+
"abandoned"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "null"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"delegated_from": {
|
|
72
|
+
"$ref": "#/definitions/RunReference"
|
|
73
|
+
},
|
|
74
|
+
"handed_off_from": {
|
|
75
|
+
"$ref": "#/definitions/RunReference"
|
|
76
|
+
},
|
|
77
|
+
"scheduled_from": {
|
|
78
|
+
"$ref": "#/definitions/RunReference"
|
|
79
|
+
},
|
|
80
|
+
"invoked_by": {
|
|
81
|
+
"$ref": "#/definitions/RunReference"
|
|
82
|
+
},
|
|
83
|
+
"continued_from": {
|
|
84
|
+
"$ref": "#/definitions/RunReference"
|
|
85
|
+
},
|
|
86
|
+
"active_duration_seconds": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"minimum": 0
|
|
89
|
+
},
|
|
90
|
+
"suspension_intervals": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"$ref": "#/definitions/SuspensionInterval"
|
|
94
|
+
},
|
|
95
|
+
"maxItems": 100
|
|
96
|
+
},
|
|
97
|
+
"environment": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"enum": [
|
|
100
|
+
"production",
|
|
101
|
+
"staging",
|
|
102
|
+
"development"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"labels": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"additionalProperties": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"maxLength": 128
|
|
110
|
+
},
|
|
111
|
+
"propertyNames": {
|
|
112
|
+
"pattern": "^[a-z][a-z0-9_]{0,31}$"
|
|
113
|
+
},
|
|
114
|
+
"maxProperties": 16
|
|
115
|
+
},
|
|
116
|
+
"redaction_policy_version": {
|
|
117
|
+
"$ref": "#/definitions/RunfileRun/properties/schema_version"
|
|
118
|
+
},
|
|
119
|
+
"regulatory_scope_version": {
|
|
120
|
+
"$ref": "#/definitions/RunfileRun/properties/schema_version"
|
|
121
|
+
},
|
|
122
|
+
"sdk_at_start": {
|
|
123
|
+
"$ref": "#/definitions/SdkMetadata"
|
|
124
|
+
},
|
|
125
|
+
"merkle_inclusions": {
|
|
126
|
+
"type": "array",
|
|
127
|
+
"items": {
|
|
128
|
+
"$ref": "#/definitions/MerkleInclusion"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": [
|
|
133
|
+
"schema_version",
|
|
134
|
+
"run_id",
|
|
135
|
+
"tenant_id",
|
|
136
|
+
"agent_identity",
|
|
137
|
+
"lifecycle_state",
|
|
138
|
+
"started_at",
|
|
139
|
+
"redaction_policy_version"
|
|
140
|
+
],
|
|
141
|
+
"additionalProperties": false
|
|
142
|
+
},
|
|
143
|
+
"RunfileEvent": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"schema_version": {
|
|
147
|
+
"$ref": "#/definitions/RunfileRun/properties/schema_version"
|
|
148
|
+
},
|
|
149
|
+
"event_id": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
152
|
+
},
|
|
153
|
+
"tenant_id": {
|
|
154
|
+
"$ref": "#/definitions/RunfileRun/properties/tenant_id"
|
|
155
|
+
},
|
|
156
|
+
"run_id": {
|
|
157
|
+
"$ref": "#/definitions/RunfileRun/properties/run_id"
|
|
25
158
|
},
|
|
26
159
|
"parent_event_id": {
|
|
27
160
|
"anyOf": [
|
|
@@ -33,6 +166,10 @@
|
|
|
33
166
|
}
|
|
34
167
|
]
|
|
35
168
|
},
|
|
169
|
+
"parallel_group_id": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"pattern": "^pg_[0-9A-HJKMNP-TV-Z]{26}$"
|
|
172
|
+
},
|
|
36
173
|
"captured_at": {
|
|
37
174
|
"type": "string",
|
|
38
175
|
"format": "date-time"
|
|
@@ -68,14 +205,29 @@
|
|
|
68
205
|
"decision": {
|
|
69
206
|
"$ref": "#/definitions/Decision"
|
|
70
207
|
},
|
|
208
|
+
"suspension_details": {
|
|
209
|
+
"$ref": "#/definitions/SuspensionDetails"
|
|
210
|
+
},
|
|
211
|
+
"resume_details": {
|
|
212
|
+
"$ref": "#/definitions/ResumeDetails"
|
|
213
|
+
},
|
|
214
|
+
"delegation_details": {
|
|
215
|
+
"$ref": "#/definitions/DelegationDetails"
|
|
216
|
+
},
|
|
217
|
+
"handoff_details": {
|
|
218
|
+
"$ref": "#/definitions/HandoffDetails"
|
|
219
|
+
},
|
|
71
220
|
"payload_ref": {
|
|
72
221
|
"$ref": "#/definitions/PayloadRef"
|
|
73
222
|
},
|
|
223
|
+
"otel_attributes": {
|
|
224
|
+
"$ref": "#/definitions/OtelAttributes"
|
|
225
|
+
},
|
|
74
226
|
"redaction_policy_version": {
|
|
75
|
-
"$ref": "#/definitions/
|
|
227
|
+
"$ref": "#/definitions/RunfileRun/properties/schema_version"
|
|
76
228
|
},
|
|
77
229
|
"regulatory_scope_version": {
|
|
78
|
-
"$ref": "#/definitions/
|
|
230
|
+
"$ref": "#/definitions/RunfileRun/properties/schema_version"
|
|
79
231
|
},
|
|
80
232
|
"anomaly_flags": {
|
|
81
233
|
"type": "array",
|
|
@@ -85,29 +237,17 @@
|
|
|
85
237
|
"maxItems": 32
|
|
86
238
|
},
|
|
87
239
|
"environment": {
|
|
88
|
-
"
|
|
89
|
-
"enum": [
|
|
90
|
-
"production",
|
|
91
|
-
"staging",
|
|
92
|
-
"development"
|
|
93
|
-
]
|
|
240
|
+
"$ref": "#/definitions/RunfileRun/properties/environment"
|
|
94
241
|
},
|
|
95
242
|
"labels": {
|
|
96
|
-
"
|
|
97
|
-
"additionalProperties": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"maxLength": 128
|
|
100
|
-
},
|
|
101
|
-
"propertyNames": {
|
|
102
|
-
"pattern": "^[a-z][a-z0-9_]{0,31}$"
|
|
103
|
-
}
|
|
243
|
+
"$ref": "#/definitions/RunfileRun/properties/labels"
|
|
104
244
|
},
|
|
105
|
-
"
|
|
245
|
+
"prev_event_hash": {
|
|
106
246
|
"type": "string",
|
|
107
247
|
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
108
248
|
},
|
|
109
249
|
"event_hash": {
|
|
110
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
250
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
111
251
|
},
|
|
112
252
|
"merkle_inclusion": {
|
|
113
253
|
"$ref": "#/definitions/MerkleInclusion"
|
|
@@ -117,7 +257,7 @@
|
|
|
117
257
|
"schema_version",
|
|
118
258
|
"event_id",
|
|
119
259
|
"tenant_id",
|
|
120
|
-
"
|
|
260
|
+
"run_id",
|
|
121
261
|
"parent_event_id",
|
|
122
262
|
"captured_at",
|
|
123
263
|
"received_at",
|
|
@@ -125,12 +265,166 @@
|
|
|
125
265
|
"sdk",
|
|
126
266
|
"actor",
|
|
127
267
|
"action",
|
|
128
|
-
"subject",
|
|
129
268
|
"redaction_policy_version",
|
|
130
|
-
"
|
|
269
|
+
"prev_event_hash",
|
|
131
270
|
"event_hash"
|
|
132
271
|
],
|
|
133
|
-
"additionalProperties": false
|
|
272
|
+
"additionalProperties": false,
|
|
273
|
+
"allOf": [
|
|
274
|
+
{
|
|
275
|
+
"if": {
|
|
276
|
+
"properties": {
|
|
277
|
+
"action": {
|
|
278
|
+
"properties": {
|
|
279
|
+
"kind": {
|
|
280
|
+
"const": "llm_call"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"then": {
|
|
287
|
+
"required": [
|
|
288
|
+
"model_ref"
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"if": {
|
|
294
|
+
"properties": {
|
|
295
|
+
"action": {
|
|
296
|
+
"properties": {
|
|
297
|
+
"kind": {
|
|
298
|
+
"const": "decision"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"then": {
|
|
305
|
+
"required": [
|
|
306
|
+
"decision"
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"if": {
|
|
312
|
+
"properties": {
|
|
313
|
+
"action": {
|
|
314
|
+
"properties": {
|
|
315
|
+
"kind": {
|
|
316
|
+
"const": "run_suspend"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"then": {
|
|
323
|
+
"required": [
|
|
324
|
+
"suspension_details"
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"if": {
|
|
330
|
+
"properties": {
|
|
331
|
+
"action": {
|
|
332
|
+
"properties": {
|
|
333
|
+
"kind": {
|
|
334
|
+
"const": "run_resume"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"then": {
|
|
341
|
+
"required": [
|
|
342
|
+
"resume_details"
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"if": {
|
|
348
|
+
"properties": {
|
|
349
|
+
"action": {
|
|
350
|
+
"properties": {
|
|
351
|
+
"kind": {
|
|
352
|
+
"const": "delegate"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"then": {
|
|
359
|
+
"required": [
|
|
360
|
+
"delegation_details"
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"if": {
|
|
366
|
+
"properties": {
|
|
367
|
+
"action": {
|
|
368
|
+
"properties": {
|
|
369
|
+
"kind": {
|
|
370
|
+
"const": "handoff"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"then": {
|
|
377
|
+
"required": [
|
|
378
|
+
"handoff_details"
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"if": {
|
|
384
|
+
"properties": {
|
|
385
|
+
"actor": {
|
|
386
|
+
"properties": {
|
|
387
|
+
"type": {
|
|
388
|
+
"const": "agent"
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"then": {
|
|
395
|
+
"properties": {
|
|
396
|
+
"actor": {
|
|
397
|
+
"required": [
|
|
398
|
+
"agent_identity"
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"if": {
|
|
406
|
+
"properties": {
|
|
407
|
+
"actor": {
|
|
408
|
+
"properties": {
|
|
409
|
+
"type": {
|
|
410
|
+
"const": "tool"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"then": {
|
|
417
|
+
"properties": {
|
|
418
|
+
"actor": {
|
|
419
|
+
"required": [
|
|
420
|
+
"tool_id",
|
|
421
|
+
"tool_version_hash"
|
|
422
|
+
]
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
]
|
|
134
428
|
},
|
|
135
429
|
"Actor": {
|
|
136
430
|
"type": "object",
|
|
@@ -145,8 +439,7 @@
|
|
|
145
439
|
]
|
|
146
440
|
},
|
|
147
441
|
"agent_identity": {
|
|
148
|
-
"
|
|
149
|
-
"pattern": "^did:[a-z][a-z0-9]*:[A-Za-z0-9._:-]+$",
|
|
442
|
+
"$ref": "#/definitions/RunfileRun/properties/agent_identity",
|
|
150
443
|
"description": "DID-format identifier of the agent. Required when type=agent."
|
|
151
444
|
},
|
|
152
445
|
"human_principal": {
|
|
@@ -167,7 +460,7 @@
|
|
|
167
460
|
"pattern": "^tool:[a-z0-9_.-]+:[a-z0-9_.-]+$"
|
|
168
461
|
},
|
|
169
462
|
"tool_version_hash": {
|
|
170
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
463
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
171
464
|
}
|
|
172
465
|
},
|
|
173
466
|
"required": [
|
|
@@ -181,17 +474,28 @@
|
|
|
181
474
|
"kind": {
|
|
182
475
|
"type": "string",
|
|
183
476
|
"enum": [
|
|
184
|
-
"agent_run_start",
|
|
185
|
-
"agent_run_end",
|
|
186
477
|
"graph_node_enter",
|
|
187
478
|
"graph_node_exit",
|
|
188
479
|
"llm_call",
|
|
480
|
+
"llm_call_chunk",
|
|
189
481
|
"tool_call",
|
|
190
482
|
"tool_result",
|
|
483
|
+
"tool_approval_requested",
|
|
484
|
+
"tool_approval_granted",
|
|
485
|
+
"tool_approval_denied",
|
|
191
486
|
"state_read",
|
|
192
487
|
"state_write",
|
|
193
488
|
"decision",
|
|
489
|
+
"run_create",
|
|
490
|
+
"run_end",
|
|
491
|
+
"run_suspend",
|
|
492
|
+
"run_resume",
|
|
493
|
+
"run_abandon",
|
|
494
|
+
"delegate",
|
|
194
495
|
"handoff",
|
|
496
|
+
"schedule_task",
|
|
497
|
+
"parallel_group_open",
|
|
498
|
+
"parallel_group_close",
|
|
195
499
|
"human_approval",
|
|
196
500
|
"human_input",
|
|
197
501
|
"policy_check",
|
|
@@ -241,7 +545,8 @@
|
|
|
241
545
|
"pii",
|
|
242
546
|
"phi",
|
|
243
547
|
"pci",
|
|
244
|
-
"fci"
|
|
548
|
+
"fci",
|
|
549
|
+
"audit_of_audit"
|
|
245
550
|
]
|
|
246
551
|
},
|
|
247
552
|
"regulatory_tags": {
|
|
@@ -276,13 +581,13 @@
|
|
|
276
581
|
"maxLength": 128
|
|
277
582
|
},
|
|
278
583
|
"model_version_hash": {
|
|
279
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
584
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
280
585
|
},
|
|
281
586
|
"system_prompt_hash": {
|
|
282
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
587
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
283
588
|
},
|
|
284
589
|
"tools_hash": {
|
|
285
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
590
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
286
591
|
},
|
|
287
592
|
"input_tokens": {
|
|
288
593
|
"type": "integer",
|
|
@@ -296,6 +601,9 @@
|
|
|
296
601
|
"type": "number",
|
|
297
602
|
"minimum": 0,
|
|
298
603
|
"maximum": 2
|
|
604
|
+
},
|
|
605
|
+
"streaming": {
|
|
606
|
+
"type": "boolean"
|
|
299
607
|
}
|
|
300
608
|
},
|
|
301
609
|
"required": [
|
|
@@ -347,6 +655,192 @@
|
|
|
347
655
|
],
|
|
348
656
|
"additionalProperties": false
|
|
349
657
|
},
|
|
658
|
+
"SuspensionDetails": {
|
|
659
|
+
"type": "object",
|
|
660
|
+
"properties": {
|
|
661
|
+
"reason": {
|
|
662
|
+
"type": "string",
|
|
663
|
+
"enum": [
|
|
664
|
+
"awaiting_human_approval",
|
|
665
|
+
"awaiting_human_input",
|
|
666
|
+
"awaiting_webhook",
|
|
667
|
+
"awaiting_schedule",
|
|
668
|
+
"awaiting_external_system",
|
|
669
|
+
"awaiting_subagent",
|
|
670
|
+
"other"
|
|
671
|
+
]
|
|
672
|
+
},
|
|
673
|
+
"expected_resumer": {
|
|
674
|
+
"type": "string"
|
|
675
|
+
},
|
|
676
|
+
"expected_resume_by": {
|
|
677
|
+
"type": "string",
|
|
678
|
+
"format": "date-time"
|
|
679
|
+
},
|
|
680
|
+
"detection_source": {
|
|
681
|
+
"type": "string",
|
|
682
|
+
"enum": [
|
|
683
|
+
"framework_inferred",
|
|
684
|
+
"customer_explicit",
|
|
685
|
+
"derived"
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
"framework_signal": {
|
|
689
|
+
"type": "object",
|
|
690
|
+
"properties": {
|
|
691
|
+
"framework": {
|
|
692
|
+
"type": "string",
|
|
693
|
+
"enum": [
|
|
694
|
+
"langgraph",
|
|
695
|
+
"openai_agents",
|
|
696
|
+
"claude_agent_sdk",
|
|
697
|
+
"vercel_ai_sdk",
|
|
698
|
+
"mcp",
|
|
699
|
+
"manual",
|
|
700
|
+
"otel"
|
|
701
|
+
]
|
|
702
|
+
},
|
|
703
|
+
"signal_name": {
|
|
704
|
+
"type": "string",
|
|
705
|
+
"maxLength": 128
|
|
706
|
+
},
|
|
707
|
+
"signal_payload_hash": {
|
|
708
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"additionalProperties": false
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"required": [
|
|
715
|
+
"reason"
|
|
716
|
+
],
|
|
717
|
+
"additionalProperties": false
|
|
718
|
+
},
|
|
719
|
+
"ResumeDetails": {
|
|
720
|
+
"type": "object",
|
|
721
|
+
"properties": {
|
|
722
|
+
"triggered_by": {
|
|
723
|
+
"type": "string",
|
|
724
|
+
"enum": [
|
|
725
|
+
"human_approval_granted",
|
|
726
|
+
"human_input_received",
|
|
727
|
+
"webhook_received",
|
|
728
|
+
"schedule_fired",
|
|
729
|
+
"external_system_response",
|
|
730
|
+
"subagent_completed",
|
|
731
|
+
"manual_resume",
|
|
732
|
+
"other"
|
|
733
|
+
]
|
|
734
|
+
},
|
|
735
|
+
"resumer_principal": {
|
|
736
|
+
"$ref": "#/definitions/Actor/properties/human_principal"
|
|
737
|
+
},
|
|
738
|
+
"suspension_duration_seconds": {
|
|
739
|
+
"type": "integer",
|
|
740
|
+
"minimum": 0
|
|
741
|
+
},
|
|
742
|
+
"suspension_started_event_id": {
|
|
743
|
+
"$ref": "#/definitions/RunfileEvent/properties/event_id"
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
"required": [
|
|
747
|
+
"triggered_by"
|
|
748
|
+
],
|
|
749
|
+
"additionalProperties": false
|
|
750
|
+
},
|
|
751
|
+
"DelegationDetails": {
|
|
752
|
+
"type": "object",
|
|
753
|
+
"properties": {
|
|
754
|
+
"delegated_run_id": {
|
|
755
|
+
"$ref": "#/definitions/RunfileRun/properties/run_id"
|
|
756
|
+
},
|
|
757
|
+
"delegated_agent_identity": {
|
|
758
|
+
"$ref": "#/definitions/RunfileRun/properties/agent_identity"
|
|
759
|
+
},
|
|
760
|
+
"wait_for_completion": {
|
|
761
|
+
"type": "boolean"
|
|
762
|
+
},
|
|
763
|
+
"framework_signal": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"enum": [
|
|
766
|
+
"langgraph_subgraph",
|
|
767
|
+
"openai_agents_as_tool",
|
|
768
|
+
"claude_agent_sdk_subagent",
|
|
769
|
+
"manual",
|
|
770
|
+
"other"
|
|
771
|
+
]
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
"required": [
|
|
775
|
+
"delegated_run_id",
|
|
776
|
+
"delegated_agent_identity"
|
|
777
|
+
],
|
|
778
|
+
"additionalProperties": false
|
|
779
|
+
},
|
|
780
|
+
"HandoffDetails": {
|
|
781
|
+
"type": "object",
|
|
782
|
+
"properties": {
|
|
783
|
+
"target_run_id": {
|
|
784
|
+
"$ref": "#/definitions/RunfileRun/properties/run_id"
|
|
785
|
+
},
|
|
786
|
+
"target_agent_identity": {
|
|
787
|
+
"$ref": "#/definitions/RunfileRun/properties/agent_identity"
|
|
788
|
+
},
|
|
789
|
+
"handoff_reason": {
|
|
790
|
+
"type": "string",
|
|
791
|
+
"maxLength": 256
|
|
792
|
+
},
|
|
793
|
+
"framework_signal": {
|
|
794
|
+
"type": "string",
|
|
795
|
+
"enum": [
|
|
796
|
+
"openai_agents_handoff",
|
|
797
|
+
"langgraph_explicit",
|
|
798
|
+
"manual",
|
|
799
|
+
"other"
|
|
800
|
+
]
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
"required": [
|
|
804
|
+
"target_run_id",
|
|
805
|
+
"target_agent_identity"
|
|
806
|
+
],
|
|
807
|
+
"additionalProperties": false
|
|
808
|
+
},
|
|
809
|
+
"SuspensionInterval": {
|
|
810
|
+
"type": "object",
|
|
811
|
+
"properties": {
|
|
812
|
+
"started": {
|
|
813
|
+
"type": "string",
|
|
814
|
+
"format": "date-time"
|
|
815
|
+
},
|
|
816
|
+
"ended": {
|
|
817
|
+
"anyOf": [
|
|
818
|
+
{
|
|
819
|
+
"type": "string",
|
|
820
|
+
"format": "date-time"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"type": "null"
|
|
824
|
+
}
|
|
825
|
+
]
|
|
826
|
+
},
|
|
827
|
+
"reason": {
|
|
828
|
+
"$ref": "#/definitions/SuspensionDetails/properties/reason"
|
|
829
|
+
},
|
|
830
|
+
"trigger_event_id": {
|
|
831
|
+
"$ref": "#/definitions/RunfileEvent/properties/event_id"
|
|
832
|
+
},
|
|
833
|
+
"resume_event_id": {
|
|
834
|
+
"$ref": "#/definitions/RunfileEvent/properties/event_id"
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"required": [
|
|
838
|
+
"started",
|
|
839
|
+
"reason",
|
|
840
|
+
"trigger_event_id"
|
|
841
|
+
],
|
|
842
|
+
"additionalProperties": false
|
|
843
|
+
},
|
|
350
844
|
"PayloadRef": {
|
|
351
845
|
"type": "object",
|
|
352
846
|
"properties": {
|
|
@@ -356,7 +850,7 @@
|
|
|
356
850
|
"maxLength": 1024
|
|
357
851
|
},
|
|
358
852
|
"sha256": {
|
|
359
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
853
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
360
854
|
},
|
|
361
855
|
"size_bytes": {
|
|
362
856
|
"type": "integer",
|
|
@@ -375,7 +869,8 @@
|
|
|
375
869
|
"application/vnd.runfile.llm-response+json",
|
|
376
870
|
"application/vnd.runfile.tool-call+json",
|
|
377
871
|
"application/vnd.runfile.tool-result+json",
|
|
378
|
-
"application/vnd.runfile.state-snapshot+json"
|
|
872
|
+
"application/vnd.runfile.state-snapshot+json",
|
|
873
|
+
"application/vnd.runfile.framework-signal+json"
|
|
379
874
|
]
|
|
380
875
|
},
|
|
381
876
|
"redaction_applied": {
|
|
@@ -430,7 +925,80 @@
|
|
|
430
925
|
"maxItems": 32
|
|
431
926
|
},
|
|
432
927
|
"classifier_version": {
|
|
433
|
-
"$ref": "#/definitions/
|
|
928
|
+
"$ref": "#/definitions/RunfileRun/properties/schema_version"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"additionalProperties": false
|
|
932
|
+
},
|
|
933
|
+
"OtelAttributes": {
|
|
934
|
+
"type": "object",
|
|
935
|
+
"properties": {
|
|
936
|
+
"gen_ai_system": {
|
|
937
|
+
"type": "string"
|
|
938
|
+
},
|
|
939
|
+
"gen_ai_operation_name": {
|
|
940
|
+
"type": "string"
|
|
941
|
+
},
|
|
942
|
+
"gen_ai_provider_name": {
|
|
943
|
+
"type": "string"
|
|
944
|
+
},
|
|
945
|
+
"gen_ai_request_model": {
|
|
946
|
+
"type": "string"
|
|
947
|
+
},
|
|
948
|
+
"gen_ai_response_model": {
|
|
949
|
+
"type": "string"
|
|
950
|
+
},
|
|
951
|
+
"gen_ai_request_temperature": {
|
|
952
|
+
"type": "number"
|
|
953
|
+
},
|
|
954
|
+
"gen_ai_request_top_p": {
|
|
955
|
+
"type": "number"
|
|
956
|
+
},
|
|
957
|
+
"gen_ai_request_max_tokens": {
|
|
958
|
+
"type": "integer"
|
|
959
|
+
},
|
|
960
|
+
"gen_ai_response_id": {
|
|
961
|
+
"type": "string"
|
|
962
|
+
},
|
|
963
|
+
"gen_ai_response_finish_reasons": {
|
|
964
|
+
"type": "array",
|
|
965
|
+
"items": {
|
|
966
|
+
"type": "string"
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
"gen_ai_usage_input_tokens": {
|
|
970
|
+
"type": "integer"
|
|
971
|
+
},
|
|
972
|
+
"gen_ai_usage_output_tokens": {
|
|
973
|
+
"type": "integer"
|
|
974
|
+
},
|
|
975
|
+
"gen_ai_tool_name": {
|
|
976
|
+
"type": "string"
|
|
977
|
+
},
|
|
978
|
+
"gen_ai_tool_call_id": {
|
|
979
|
+
"type": "string"
|
|
980
|
+
},
|
|
981
|
+
"gen_ai_agent_id": {
|
|
982
|
+
"type": "string"
|
|
983
|
+
},
|
|
984
|
+
"gen_ai_agent_name": {
|
|
985
|
+
"type": "string"
|
|
986
|
+
},
|
|
987
|
+
"gen_ai_agent_description": {
|
|
988
|
+
"type": "string"
|
|
989
|
+
},
|
|
990
|
+
"gen_ai_conversation_id": {
|
|
991
|
+
"type": "string"
|
|
992
|
+
},
|
|
993
|
+
"extra": {
|
|
994
|
+
"type": "object",
|
|
995
|
+
"additionalProperties": {
|
|
996
|
+
"type": [
|
|
997
|
+
"string",
|
|
998
|
+
"number",
|
|
999
|
+
"boolean"
|
|
1000
|
+
]
|
|
1001
|
+
}
|
|
434
1002
|
}
|
|
435
1003
|
},
|
|
436
1004
|
"additionalProperties": false
|
|
@@ -450,7 +1018,14 @@
|
|
|
450
1018
|
"policy_threshold_without_hitl",
|
|
451
1019
|
"unauthorized_tool_invocation",
|
|
452
1020
|
"redaction_policy_mismatch",
|
|
453
|
-
"schema_version_warning"
|
|
1021
|
+
"schema_version_warning",
|
|
1022
|
+
"agent_identity_mismatch_with_run",
|
|
1023
|
+
"suspension_sla_exceeded",
|
|
1024
|
+
"apparent_crash_detected",
|
|
1025
|
+
"active_duration_exceeds_threshold",
|
|
1026
|
+
"framework_signal_unrecognised",
|
|
1027
|
+
"otel_attribute_missing",
|
|
1028
|
+
"delegation_loop_detected"
|
|
454
1029
|
]
|
|
455
1030
|
},
|
|
456
1031
|
"severity": {
|
|
@@ -496,8 +1071,11 @@
|
|
|
496
1071
|
"openai_agents_js",
|
|
497
1072
|
"anthropic_claude",
|
|
498
1073
|
"anthropic_claude_js",
|
|
1074
|
+
"claude_agent_sdk",
|
|
499
1075
|
"mastra",
|
|
500
1076
|
"vercel_ai_sdk",
|
|
1077
|
+
"pydantic_ai",
|
|
1078
|
+
"crewai",
|
|
501
1079
|
"mcp_client",
|
|
502
1080
|
"otel_generic",
|
|
503
1081
|
"manual"
|
|
@@ -506,6 +1084,10 @@
|
|
|
506
1084
|
"framework_version": {
|
|
507
1085
|
"$ref": "#/definitions/SdkMetadata/properties/version"
|
|
508
1086
|
},
|
|
1087
|
+
"adapter": {
|
|
1088
|
+
"type": "string",
|
|
1089
|
+
"maxLength": 64
|
|
1090
|
+
},
|
|
509
1091
|
"host": {
|
|
510
1092
|
"type": "string",
|
|
511
1093
|
"maxLength": 256
|
|
@@ -518,6 +1100,21 @@
|
|
|
518
1100
|
],
|
|
519
1101
|
"additionalProperties": false
|
|
520
1102
|
},
|
|
1103
|
+
"RunReference": {
|
|
1104
|
+
"type": "object",
|
|
1105
|
+
"properties": {
|
|
1106
|
+
"run_id": {
|
|
1107
|
+
"$ref": "#/definitions/RunfileRun/properties/run_id"
|
|
1108
|
+
},
|
|
1109
|
+
"event_id": {
|
|
1110
|
+
"$ref": "#/definitions/RunfileEvent/properties/event_id"
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
"required": [
|
|
1114
|
+
"run_id"
|
|
1115
|
+
],
|
|
1116
|
+
"additionalProperties": false
|
|
1117
|
+
},
|
|
521
1118
|
"MerkleInclusion": {
|
|
522
1119
|
"type": "object",
|
|
523
1120
|
"properties": {
|
|
@@ -530,7 +1127,7 @@
|
|
|
530
1127
|
"minimum": 0
|
|
531
1128
|
},
|
|
532
1129
|
"merkle_root": {
|
|
533
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
1130
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
534
1131
|
}
|
|
535
1132
|
},
|
|
536
1133
|
"required": [
|
|
@@ -543,6 +1140,9 @@
|
|
|
543
1140
|
"_RunfileBundle": {
|
|
544
1141
|
"type": "object",
|
|
545
1142
|
"properties": {
|
|
1143
|
+
"RunfileRun": {
|
|
1144
|
+
"$ref": "#/definitions/RunfileRun"
|
|
1145
|
+
},
|
|
546
1146
|
"RunfileEvent": {
|
|
547
1147
|
"$ref": "#/definitions/RunfileEvent"
|
|
548
1148
|
},
|
|
@@ -561,6 +1161,21 @@
|
|
|
561
1161
|
"Decision": {
|
|
562
1162
|
"$ref": "#/definitions/Decision"
|
|
563
1163
|
},
|
|
1164
|
+
"SuspensionDetails": {
|
|
1165
|
+
"$ref": "#/definitions/SuspensionDetails"
|
|
1166
|
+
},
|
|
1167
|
+
"ResumeDetails": {
|
|
1168
|
+
"$ref": "#/definitions/ResumeDetails"
|
|
1169
|
+
},
|
|
1170
|
+
"DelegationDetails": {
|
|
1171
|
+
"$ref": "#/definitions/DelegationDetails"
|
|
1172
|
+
},
|
|
1173
|
+
"HandoffDetails": {
|
|
1174
|
+
"$ref": "#/definitions/HandoffDetails"
|
|
1175
|
+
},
|
|
1176
|
+
"SuspensionInterval": {
|
|
1177
|
+
"$ref": "#/definitions/SuspensionInterval"
|
|
1178
|
+
},
|
|
564
1179
|
"PayloadRef": {
|
|
565
1180
|
"$ref": "#/definitions/PayloadRef"
|
|
566
1181
|
},
|
|
@@ -570,28 +1185,42 @@
|
|
|
570
1185
|
"RedactionApplied": {
|
|
571
1186
|
"$ref": "#/definitions/RedactionApplied"
|
|
572
1187
|
},
|
|
1188
|
+
"OtelAttributes": {
|
|
1189
|
+
"$ref": "#/definitions/OtelAttributes"
|
|
1190
|
+
},
|
|
573
1191
|
"AnomalyFlag": {
|
|
574
1192
|
"$ref": "#/definitions/AnomalyFlag"
|
|
575
1193
|
},
|
|
576
1194
|
"SdkMetadata": {
|
|
577
1195
|
"$ref": "#/definitions/SdkMetadata"
|
|
578
1196
|
},
|
|
1197
|
+
"RunReference": {
|
|
1198
|
+
"$ref": "#/definitions/RunReference"
|
|
1199
|
+
},
|
|
579
1200
|
"MerkleInclusion": {
|
|
580
1201
|
"$ref": "#/definitions/MerkleInclusion"
|
|
581
1202
|
}
|
|
582
1203
|
},
|
|
583
1204
|
"required": [
|
|
1205
|
+
"RunfileRun",
|
|
584
1206
|
"RunfileEvent",
|
|
585
1207
|
"Actor",
|
|
586
1208
|
"Action",
|
|
587
1209
|
"Subject",
|
|
588
1210
|
"ModelRef",
|
|
589
1211
|
"Decision",
|
|
1212
|
+
"SuspensionDetails",
|
|
1213
|
+
"ResumeDetails",
|
|
1214
|
+
"DelegationDetails",
|
|
1215
|
+
"HandoffDetails",
|
|
1216
|
+
"SuspensionInterval",
|
|
590
1217
|
"PayloadRef",
|
|
591
1218
|
"PayloadEncryption",
|
|
592
1219
|
"RedactionApplied",
|
|
1220
|
+
"OtelAttributes",
|
|
593
1221
|
"AnomalyFlag",
|
|
594
1222
|
"SdkMetadata",
|
|
1223
|
+
"RunReference",
|
|
595
1224
|
"MerkleInclusion"
|
|
596
1225
|
],
|
|
597
1226
|
"additionalProperties": false
|