@runfile-ai/schemas 0.1.2 → 0.4.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/dist/event.d.ts +978 -122
- package/dist/event.d.ts.map +1 -1
- package/dist/event.js +269 -18
- package/dist/event.js.map +1 -1
- package/dist/evidence.d.ts +624 -126
- package/dist/evidence.d.ts.map +1 -1
- package/dist/ingest.d.ts +5111 -360
- package/dist/ingest.d.ts.map +1 -1
- package/dist/ingest.js +155 -24
- package/dist/ingest.js.map +1 -1
- package/dist/vault.d.ts +6 -6
- package/generated/json-schema/event.json +692 -44
- package/generated/json-schema/evidence.json +291 -14
- package/generated/json-schema/ingest.json +758 -96
- 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,20 @@
|
|
|
33
166
|
}
|
|
34
167
|
]
|
|
35
168
|
},
|
|
169
|
+
"parallel_group_id": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"pattern": "^pg_[0-9A-HJKMNP-TV-Z]{26}$"
|
|
172
|
+
},
|
|
173
|
+
"segment_index": {
|
|
174
|
+
"type": "integer",
|
|
175
|
+
"minimum": 0,
|
|
176
|
+
"description": "Which execution segment of the run this event belongs to. 0 for the initial segment; incremented each time the run resumes after a suspension. With local_seq this gives a total order within a segment: (run_id, segment_index, local_seq)."
|
|
177
|
+
},
|
|
178
|
+
"local_seq": {
|
|
179
|
+
"type": "integer",
|
|
180
|
+
"minimum": 0,
|
|
181
|
+
"description": "Monotonic capture counter assigned by the SDK within a single process segment, starting at 0. Authoritative ordering for the hash chain within a segment; resets to 0 at the start of each segment. A gap (e.g. 0,1,3) means an event was lost (sequence_gap anomaly)."
|
|
182
|
+
},
|
|
36
183
|
"captured_at": {
|
|
37
184
|
"type": "string",
|
|
38
185
|
"format": "date-time"
|
|
@@ -68,14 +215,29 @@
|
|
|
68
215
|
"decision": {
|
|
69
216
|
"$ref": "#/definitions/Decision"
|
|
70
217
|
},
|
|
218
|
+
"suspension_details": {
|
|
219
|
+
"$ref": "#/definitions/SuspensionDetails"
|
|
220
|
+
},
|
|
221
|
+
"resume_details": {
|
|
222
|
+
"$ref": "#/definitions/ResumeDetails"
|
|
223
|
+
},
|
|
224
|
+
"delegation_details": {
|
|
225
|
+
"$ref": "#/definitions/DelegationDetails"
|
|
226
|
+
},
|
|
227
|
+
"handoff_details": {
|
|
228
|
+
"$ref": "#/definitions/HandoffDetails"
|
|
229
|
+
},
|
|
71
230
|
"payload_ref": {
|
|
72
231
|
"$ref": "#/definitions/PayloadRef"
|
|
73
232
|
},
|
|
233
|
+
"otel_attributes": {
|
|
234
|
+
"$ref": "#/definitions/OtelAttributes"
|
|
235
|
+
},
|
|
74
236
|
"redaction_policy_version": {
|
|
75
|
-
"$ref": "#/definitions/
|
|
237
|
+
"$ref": "#/definitions/RunfileRun/properties/schema_version"
|
|
76
238
|
},
|
|
77
239
|
"regulatory_scope_version": {
|
|
78
|
-
"$ref": "#/definitions/
|
|
240
|
+
"$ref": "#/definitions/RunfileRun/properties/schema_version"
|
|
79
241
|
},
|
|
80
242
|
"anomaly_flags": {
|
|
81
243
|
"type": "array",
|
|
@@ -85,29 +247,17 @@
|
|
|
85
247
|
"maxItems": 32
|
|
86
248
|
},
|
|
87
249
|
"environment": {
|
|
88
|
-
"
|
|
89
|
-
"enum": [
|
|
90
|
-
"production",
|
|
91
|
-
"staging",
|
|
92
|
-
"development"
|
|
93
|
-
]
|
|
250
|
+
"$ref": "#/definitions/RunfileRun/properties/environment"
|
|
94
251
|
},
|
|
95
252
|
"labels": {
|
|
96
|
-
"
|
|
97
|
-
"additionalProperties": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"maxLength": 128
|
|
100
|
-
},
|
|
101
|
-
"propertyNames": {
|
|
102
|
-
"pattern": "^[a-z][a-z0-9_]{0,31}$"
|
|
103
|
-
}
|
|
253
|
+
"$ref": "#/definitions/RunfileRun/properties/labels"
|
|
104
254
|
},
|
|
105
|
-
"
|
|
255
|
+
"prev_event_hash": {
|
|
106
256
|
"type": "string",
|
|
107
257
|
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
108
258
|
},
|
|
109
259
|
"event_hash": {
|
|
110
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
260
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
111
261
|
},
|
|
112
262
|
"merkle_inclusion": {
|
|
113
263
|
"$ref": "#/definitions/MerkleInclusion"
|
|
@@ -117,20 +267,176 @@
|
|
|
117
267
|
"schema_version",
|
|
118
268
|
"event_id",
|
|
119
269
|
"tenant_id",
|
|
120
|
-
"
|
|
270
|
+
"run_id",
|
|
121
271
|
"parent_event_id",
|
|
272
|
+
"segment_index",
|
|
273
|
+
"local_seq",
|
|
122
274
|
"captured_at",
|
|
123
275
|
"received_at",
|
|
124
276
|
"wall_clock_source",
|
|
125
277
|
"sdk",
|
|
126
278
|
"actor",
|
|
127
279
|
"action",
|
|
128
|
-
"subject",
|
|
129
280
|
"redaction_policy_version",
|
|
130
|
-
"
|
|
281
|
+
"prev_event_hash",
|
|
131
282
|
"event_hash"
|
|
132
283
|
],
|
|
133
|
-
"additionalProperties": false
|
|
284
|
+
"additionalProperties": false,
|
|
285
|
+
"allOf": [
|
|
286
|
+
{
|
|
287
|
+
"if": {
|
|
288
|
+
"properties": {
|
|
289
|
+
"action": {
|
|
290
|
+
"properties": {
|
|
291
|
+
"kind": {
|
|
292
|
+
"const": "llm_call"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"then": {
|
|
299
|
+
"required": [
|
|
300
|
+
"model_ref"
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"if": {
|
|
306
|
+
"properties": {
|
|
307
|
+
"action": {
|
|
308
|
+
"properties": {
|
|
309
|
+
"kind": {
|
|
310
|
+
"const": "decision"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"then": {
|
|
317
|
+
"required": [
|
|
318
|
+
"decision"
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"if": {
|
|
324
|
+
"properties": {
|
|
325
|
+
"action": {
|
|
326
|
+
"properties": {
|
|
327
|
+
"kind": {
|
|
328
|
+
"const": "run_suspend"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"then": {
|
|
335
|
+
"required": [
|
|
336
|
+
"suspension_details"
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"if": {
|
|
342
|
+
"properties": {
|
|
343
|
+
"action": {
|
|
344
|
+
"properties": {
|
|
345
|
+
"kind": {
|
|
346
|
+
"const": "run_resume"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"then": {
|
|
353
|
+
"required": [
|
|
354
|
+
"resume_details"
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"if": {
|
|
360
|
+
"properties": {
|
|
361
|
+
"action": {
|
|
362
|
+
"properties": {
|
|
363
|
+
"kind": {
|
|
364
|
+
"const": "delegate"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"then": {
|
|
371
|
+
"required": [
|
|
372
|
+
"delegation_details"
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"if": {
|
|
378
|
+
"properties": {
|
|
379
|
+
"action": {
|
|
380
|
+
"properties": {
|
|
381
|
+
"kind": {
|
|
382
|
+
"const": "handoff"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"then": {
|
|
389
|
+
"required": [
|
|
390
|
+
"handoff_details"
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"if": {
|
|
396
|
+
"properties": {
|
|
397
|
+
"actor": {
|
|
398
|
+
"properties": {
|
|
399
|
+
"type": {
|
|
400
|
+
"const": "agent"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"then": {
|
|
407
|
+
"properties": {
|
|
408
|
+
"actor": {
|
|
409
|
+
"required": [
|
|
410
|
+
"agent_identity"
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"if": {
|
|
418
|
+
"properties": {
|
|
419
|
+
"actor": {
|
|
420
|
+
"properties": {
|
|
421
|
+
"type": {
|
|
422
|
+
"const": "tool"
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"then": {
|
|
429
|
+
"properties": {
|
|
430
|
+
"actor": {
|
|
431
|
+
"required": [
|
|
432
|
+
"tool_id",
|
|
433
|
+
"tool_version_hash"
|
|
434
|
+
]
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
]
|
|
134
440
|
},
|
|
135
441
|
"Actor": {
|
|
136
442
|
"type": "object",
|
|
@@ -145,8 +451,7 @@
|
|
|
145
451
|
]
|
|
146
452
|
},
|
|
147
453
|
"agent_identity": {
|
|
148
|
-
"
|
|
149
|
-
"pattern": "^did:[a-z][a-z0-9]*:[A-Za-z0-9._:-]+$",
|
|
454
|
+
"$ref": "#/definitions/RunfileRun/properties/agent_identity",
|
|
150
455
|
"description": "DID-format identifier of the agent. Required when type=agent."
|
|
151
456
|
},
|
|
152
457
|
"human_principal": {
|
|
@@ -167,7 +472,7 @@
|
|
|
167
472
|
"pattern": "^tool:[a-z0-9_.-]+:[a-z0-9_.-]+$"
|
|
168
473
|
},
|
|
169
474
|
"tool_version_hash": {
|
|
170
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
475
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
171
476
|
}
|
|
172
477
|
},
|
|
173
478
|
"required": [
|
|
@@ -181,17 +486,28 @@
|
|
|
181
486
|
"kind": {
|
|
182
487
|
"type": "string",
|
|
183
488
|
"enum": [
|
|
184
|
-
"agent_run_start",
|
|
185
|
-
"agent_run_end",
|
|
186
489
|
"graph_node_enter",
|
|
187
490
|
"graph_node_exit",
|
|
188
491
|
"llm_call",
|
|
492
|
+
"llm_call_chunk",
|
|
189
493
|
"tool_call",
|
|
190
494
|
"tool_result",
|
|
495
|
+
"tool_approval_requested",
|
|
496
|
+
"tool_approval_granted",
|
|
497
|
+
"tool_approval_denied",
|
|
191
498
|
"state_read",
|
|
192
499
|
"state_write",
|
|
193
500
|
"decision",
|
|
501
|
+
"run_create",
|
|
502
|
+
"run_end",
|
|
503
|
+
"run_suspend",
|
|
504
|
+
"run_resume",
|
|
505
|
+
"run_abandon",
|
|
506
|
+
"delegate",
|
|
194
507
|
"handoff",
|
|
508
|
+
"schedule_task",
|
|
509
|
+
"parallel_group_open",
|
|
510
|
+
"parallel_group_close",
|
|
195
511
|
"human_approval",
|
|
196
512
|
"human_input",
|
|
197
513
|
"policy_check",
|
|
@@ -241,7 +557,8 @@
|
|
|
241
557
|
"pii",
|
|
242
558
|
"phi",
|
|
243
559
|
"pci",
|
|
244
|
-
"fci"
|
|
560
|
+
"fci",
|
|
561
|
+
"audit_of_audit"
|
|
245
562
|
]
|
|
246
563
|
},
|
|
247
564
|
"regulatory_tags": {
|
|
@@ -276,13 +593,13 @@
|
|
|
276
593
|
"maxLength": 128
|
|
277
594
|
},
|
|
278
595
|
"model_version_hash": {
|
|
279
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
596
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
280
597
|
},
|
|
281
598
|
"system_prompt_hash": {
|
|
282
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
599
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
283
600
|
},
|
|
284
601
|
"tools_hash": {
|
|
285
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
602
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
286
603
|
},
|
|
287
604
|
"input_tokens": {
|
|
288
605
|
"type": "integer",
|
|
@@ -296,6 +613,9 @@
|
|
|
296
613
|
"type": "number",
|
|
297
614
|
"minimum": 0,
|
|
298
615
|
"maximum": 2
|
|
616
|
+
},
|
|
617
|
+
"streaming": {
|
|
618
|
+
"type": "boolean"
|
|
299
619
|
}
|
|
300
620
|
},
|
|
301
621
|
"required": [
|
|
@@ -347,6 +667,192 @@
|
|
|
347
667
|
],
|
|
348
668
|
"additionalProperties": false
|
|
349
669
|
},
|
|
670
|
+
"SuspensionDetails": {
|
|
671
|
+
"type": "object",
|
|
672
|
+
"properties": {
|
|
673
|
+
"reason": {
|
|
674
|
+
"type": "string",
|
|
675
|
+
"enum": [
|
|
676
|
+
"awaiting_human_approval",
|
|
677
|
+
"awaiting_human_input",
|
|
678
|
+
"awaiting_webhook",
|
|
679
|
+
"awaiting_schedule",
|
|
680
|
+
"awaiting_external_system",
|
|
681
|
+
"awaiting_subagent",
|
|
682
|
+
"other"
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
|
+
"expected_resumer": {
|
|
686
|
+
"type": "string"
|
|
687
|
+
},
|
|
688
|
+
"expected_resume_by": {
|
|
689
|
+
"type": "string",
|
|
690
|
+
"format": "date-time"
|
|
691
|
+
},
|
|
692
|
+
"detection_source": {
|
|
693
|
+
"type": "string",
|
|
694
|
+
"enum": [
|
|
695
|
+
"framework_inferred",
|
|
696
|
+
"customer_explicit",
|
|
697
|
+
"derived"
|
|
698
|
+
]
|
|
699
|
+
},
|
|
700
|
+
"framework_signal": {
|
|
701
|
+
"type": "object",
|
|
702
|
+
"properties": {
|
|
703
|
+
"framework": {
|
|
704
|
+
"type": "string",
|
|
705
|
+
"enum": [
|
|
706
|
+
"langgraph",
|
|
707
|
+
"openai_agents",
|
|
708
|
+
"claude_agent_sdk",
|
|
709
|
+
"vercel_ai_sdk",
|
|
710
|
+
"mcp",
|
|
711
|
+
"manual",
|
|
712
|
+
"otel"
|
|
713
|
+
]
|
|
714
|
+
},
|
|
715
|
+
"signal_name": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"maxLength": 128
|
|
718
|
+
},
|
|
719
|
+
"signal_payload_hash": {
|
|
720
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
"additionalProperties": false
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"required": [
|
|
727
|
+
"reason"
|
|
728
|
+
],
|
|
729
|
+
"additionalProperties": false
|
|
730
|
+
},
|
|
731
|
+
"ResumeDetails": {
|
|
732
|
+
"type": "object",
|
|
733
|
+
"properties": {
|
|
734
|
+
"triggered_by": {
|
|
735
|
+
"type": "string",
|
|
736
|
+
"enum": [
|
|
737
|
+
"human_approval_granted",
|
|
738
|
+
"human_input_received",
|
|
739
|
+
"webhook_received",
|
|
740
|
+
"schedule_fired",
|
|
741
|
+
"external_system_response",
|
|
742
|
+
"subagent_completed",
|
|
743
|
+
"manual_resume",
|
|
744
|
+
"other"
|
|
745
|
+
]
|
|
746
|
+
},
|
|
747
|
+
"resumer_principal": {
|
|
748
|
+
"$ref": "#/definitions/Actor/properties/human_principal"
|
|
749
|
+
},
|
|
750
|
+
"suspension_duration_seconds": {
|
|
751
|
+
"type": "integer",
|
|
752
|
+
"minimum": 0
|
|
753
|
+
},
|
|
754
|
+
"suspension_started_event_id": {
|
|
755
|
+
"$ref": "#/definitions/RunfileEvent/properties/event_id"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
"required": [
|
|
759
|
+
"triggered_by"
|
|
760
|
+
],
|
|
761
|
+
"additionalProperties": false
|
|
762
|
+
},
|
|
763
|
+
"DelegationDetails": {
|
|
764
|
+
"type": "object",
|
|
765
|
+
"properties": {
|
|
766
|
+
"delegated_run_id": {
|
|
767
|
+
"$ref": "#/definitions/RunfileRun/properties/run_id"
|
|
768
|
+
},
|
|
769
|
+
"delegated_agent_identity": {
|
|
770
|
+
"$ref": "#/definitions/RunfileRun/properties/agent_identity"
|
|
771
|
+
},
|
|
772
|
+
"wait_for_completion": {
|
|
773
|
+
"type": "boolean"
|
|
774
|
+
},
|
|
775
|
+
"framework_signal": {
|
|
776
|
+
"type": "string",
|
|
777
|
+
"enum": [
|
|
778
|
+
"langgraph_subgraph",
|
|
779
|
+
"openai_agents_as_tool",
|
|
780
|
+
"claude_agent_sdk_subagent",
|
|
781
|
+
"manual",
|
|
782
|
+
"other"
|
|
783
|
+
]
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"required": [
|
|
787
|
+
"delegated_run_id",
|
|
788
|
+
"delegated_agent_identity"
|
|
789
|
+
],
|
|
790
|
+
"additionalProperties": false
|
|
791
|
+
},
|
|
792
|
+
"HandoffDetails": {
|
|
793
|
+
"type": "object",
|
|
794
|
+
"properties": {
|
|
795
|
+
"target_run_id": {
|
|
796
|
+
"$ref": "#/definitions/RunfileRun/properties/run_id"
|
|
797
|
+
},
|
|
798
|
+
"target_agent_identity": {
|
|
799
|
+
"$ref": "#/definitions/RunfileRun/properties/agent_identity"
|
|
800
|
+
},
|
|
801
|
+
"handoff_reason": {
|
|
802
|
+
"type": "string",
|
|
803
|
+
"maxLength": 256
|
|
804
|
+
},
|
|
805
|
+
"framework_signal": {
|
|
806
|
+
"type": "string",
|
|
807
|
+
"enum": [
|
|
808
|
+
"openai_agents_handoff",
|
|
809
|
+
"langgraph_explicit",
|
|
810
|
+
"manual",
|
|
811
|
+
"other"
|
|
812
|
+
]
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
"required": [
|
|
816
|
+
"target_run_id",
|
|
817
|
+
"target_agent_identity"
|
|
818
|
+
],
|
|
819
|
+
"additionalProperties": false
|
|
820
|
+
},
|
|
821
|
+
"SuspensionInterval": {
|
|
822
|
+
"type": "object",
|
|
823
|
+
"properties": {
|
|
824
|
+
"started": {
|
|
825
|
+
"type": "string",
|
|
826
|
+
"format": "date-time"
|
|
827
|
+
},
|
|
828
|
+
"ended": {
|
|
829
|
+
"anyOf": [
|
|
830
|
+
{
|
|
831
|
+
"type": "string",
|
|
832
|
+
"format": "date-time"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"type": "null"
|
|
836
|
+
}
|
|
837
|
+
]
|
|
838
|
+
},
|
|
839
|
+
"reason": {
|
|
840
|
+
"$ref": "#/definitions/SuspensionDetails/properties/reason"
|
|
841
|
+
},
|
|
842
|
+
"trigger_event_id": {
|
|
843
|
+
"$ref": "#/definitions/RunfileEvent/properties/event_id"
|
|
844
|
+
},
|
|
845
|
+
"resume_event_id": {
|
|
846
|
+
"$ref": "#/definitions/RunfileEvent/properties/event_id"
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
"required": [
|
|
850
|
+
"started",
|
|
851
|
+
"reason",
|
|
852
|
+
"trigger_event_id"
|
|
853
|
+
],
|
|
854
|
+
"additionalProperties": false
|
|
855
|
+
},
|
|
350
856
|
"PayloadRef": {
|
|
351
857
|
"type": "object",
|
|
352
858
|
"properties": {
|
|
@@ -356,7 +862,7 @@
|
|
|
356
862
|
"maxLength": 1024
|
|
357
863
|
},
|
|
358
864
|
"sha256": {
|
|
359
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
865
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
360
866
|
},
|
|
361
867
|
"size_bytes": {
|
|
362
868
|
"type": "integer",
|
|
@@ -375,7 +881,8 @@
|
|
|
375
881
|
"application/vnd.runfile.llm-response+json",
|
|
376
882
|
"application/vnd.runfile.tool-call+json",
|
|
377
883
|
"application/vnd.runfile.tool-result+json",
|
|
378
|
-
"application/vnd.runfile.state-snapshot+json"
|
|
884
|
+
"application/vnd.runfile.state-snapshot+json",
|
|
885
|
+
"application/vnd.runfile.framework-signal+json"
|
|
379
886
|
]
|
|
380
887
|
},
|
|
381
888
|
"redaction_applied": {
|
|
@@ -401,14 +908,19 @@
|
|
|
401
908
|
"type": "string",
|
|
402
909
|
"maxLength": 4096
|
|
403
910
|
},
|
|
404
|
-
"
|
|
911
|
+
"key_id": {
|
|
405
912
|
"type": "string",
|
|
406
|
-
"
|
|
913
|
+
"maxLength": 256
|
|
914
|
+
},
|
|
915
|
+
"nonce": {
|
|
916
|
+
"type": "string",
|
|
917
|
+
"maxLength": 64
|
|
407
918
|
}
|
|
408
919
|
},
|
|
409
920
|
"required": [
|
|
410
921
|
"algorithm",
|
|
411
|
-
"data_key_wrapped"
|
|
922
|
+
"data_key_wrapped",
|
|
923
|
+
"nonce"
|
|
412
924
|
],
|
|
413
925
|
"additionalProperties": false
|
|
414
926
|
},
|
|
@@ -430,7 +942,80 @@
|
|
|
430
942
|
"maxItems": 32
|
|
431
943
|
},
|
|
432
944
|
"classifier_version": {
|
|
433
|
-
"$ref": "#/definitions/
|
|
945
|
+
"$ref": "#/definitions/RunfileRun/properties/schema_version"
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"additionalProperties": false
|
|
949
|
+
},
|
|
950
|
+
"OtelAttributes": {
|
|
951
|
+
"type": "object",
|
|
952
|
+
"properties": {
|
|
953
|
+
"gen_ai_system": {
|
|
954
|
+
"type": "string"
|
|
955
|
+
},
|
|
956
|
+
"gen_ai_operation_name": {
|
|
957
|
+
"type": "string"
|
|
958
|
+
},
|
|
959
|
+
"gen_ai_provider_name": {
|
|
960
|
+
"type": "string"
|
|
961
|
+
},
|
|
962
|
+
"gen_ai_request_model": {
|
|
963
|
+
"type": "string"
|
|
964
|
+
},
|
|
965
|
+
"gen_ai_response_model": {
|
|
966
|
+
"type": "string"
|
|
967
|
+
},
|
|
968
|
+
"gen_ai_request_temperature": {
|
|
969
|
+
"type": "number"
|
|
970
|
+
},
|
|
971
|
+
"gen_ai_request_top_p": {
|
|
972
|
+
"type": "number"
|
|
973
|
+
},
|
|
974
|
+
"gen_ai_request_max_tokens": {
|
|
975
|
+
"type": "integer"
|
|
976
|
+
},
|
|
977
|
+
"gen_ai_response_id": {
|
|
978
|
+
"type": "string"
|
|
979
|
+
},
|
|
980
|
+
"gen_ai_response_finish_reasons": {
|
|
981
|
+
"type": "array",
|
|
982
|
+
"items": {
|
|
983
|
+
"type": "string"
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
"gen_ai_usage_input_tokens": {
|
|
987
|
+
"type": "integer"
|
|
988
|
+
},
|
|
989
|
+
"gen_ai_usage_output_tokens": {
|
|
990
|
+
"type": "integer"
|
|
991
|
+
},
|
|
992
|
+
"gen_ai_tool_name": {
|
|
993
|
+
"type": "string"
|
|
994
|
+
},
|
|
995
|
+
"gen_ai_tool_call_id": {
|
|
996
|
+
"type": "string"
|
|
997
|
+
},
|
|
998
|
+
"gen_ai_agent_id": {
|
|
999
|
+
"type": "string"
|
|
1000
|
+
},
|
|
1001
|
+
"gen_ai_agent_name": {
|
|
1002
|
+
"type": "string"
|
|
1003
|
+
},
|
|
1004
|
+
"gen_ai_agent_description": {
|
|
1005
|
+
"type": "string"
|
|
1006
|
+
},
|
|
1007
|
+
"gen_ai_conversation_id": {
|
|
1008
|
+
"type": "string"
|
|
1009
|
+
},
|
|
1010
|
+
"extra": {
|
|
1011
|
+
"type": "object",
|
|
1012
|
+
"additionalProperties": {
|
|
1013
|
+
"type": [
|
|
1014
|
+
"string",
|
|
1015
|
+
"number",
|
|
1016
|
+
"boolean"
|
|
1017
|
+
]
|
|
1018
|
+
}
|
|
434
1019
|
}
|
|
435
1020
|
},
|
|
436
1021
|
"additionalProperties": false
|
|
@@ -443,6 +1028,8 @@
|
|
|
443
1028
|
"enum": [
|
|
444
1029
|
"missing_ambient_context",
|
|
445
1030
|
"chain_break",
|
|
1031
|
+
"sequence_gap",
|
|
1032
|
+
"causality_violation",
|
|
446
1033
|
"out_of_order_arrival",
|
|
447
1034
|
"model_version_drift",
|
|
448
1035
|
"unknown_agent_identity",
|
|
@@ -450,7 +1037,14 @@
|
|
|
450
1037
|
"policy_threshold_without_hitl",
|
|
451
1038
|
"unauthorized_tool_invocation",
|
|
452
1039
|
"redaction_policy_mismatch",
|
|
453
|
-
"schema_version_warning"
|
|
1040
|
+
"schema_version_warning",
|
|
1041
|
+
"agent_identity_mismatch_with_run",
|
|
1042
|
+
"suspension_sla_exceeded",
|
|
1043
|
+
"apparent_crash_detected",
|
|
1044
|
+
"active_duration_exceeds_threshold",
|
|
1045
|
+
"framework_signal_unrecognised",
|
|
1046
|
+
"otel_attribute_missing",
|
|
1047
|
+
"delegation_loop_detected"
|
|
454
1048
|
]
|
|
455
1049
|
},
|
|
456
1050
|
"severity": {
|
|
@@ -496,8 +1090,11 @@
|
|
|
496
1090
|
"openai_agents_js",
|
|
497
1091
|
"anthropic_claude",
|
|
498
1092
|
"anthropic_claude_js",
|
|
1093
|
+
"claude_agent_sdk",
|
|
499
1094
|
"mastra",
|
|
500
1095
|
"vercel_ai_sdk",
|
|
1096
|
+
"pydantic_ai",
|
|
1097
|
+
"crewai",
|
|
501
1098
|
"mcp_client",
|
|
502
1099
|
"otel_generic",
|
|
503
1100
|
"manual"
|
|
@@ -506,6 +1103,10 @@
|
|
|
506
1103
|
"framework_version": {
|
|
507
1104
|
"$ref": "#/definitions/SdkMetadata/properties/version"
|
|
508
1105
|
},
|
|
1106
|
+
"adapter": {
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
"maxLength": 64
|
|
1109
|
+
},
|
|
509
1110
|
"host": {
|
|
510
1111
|
"type": "string",
|
|
511
1112
|
"maxLength": 256
|
|
@@ -518,6 +1119,21 @@
|
|
|
518
1119
|
],
|
|
519
1120
|
"additionalProperties": false
|
|
520
1121
|
},
|
|
1122
|
+
"RunReference": {
|
|
1123
|
+
"type": "object",
|
|
1124
|
+
"properties": {
|
|
1125
|
+
"run_id": {
|
|
1126
|
+
"$ref": "#/definitions/RunfileRun/properties/run_id"
|
|
1127
|
+
},
|
|
1128
|
+
"event_id": {
|
|
1129
|
+
"$ref": "#/definitions/RunfileEvent/properties/event_id"
|
|
1130
|
+
}
|
|
1131
|
+
},
|
|
1132
|
+
"required": [
|
|
1133
|
+
"run_id"
|
|
1134
|
+
],
|
|
1135
|
+
"additionalProperties": false
|
|
1136
|
+
},
|
|
521
1137
|
"MerkleInclusion": {
|
|
522
1138
|
"type": "object",
|
|
523
1139
|
"properties": {
|
|
@@ -530,7 +1146,7 @@
|
|
|
530
1146
|
"minimum": 0
|
|
531
1147
|
},
|
|
532
1148
|
"merkle_root": {
|
|
533
|
-
"$ref": "#/definitions/RunfileEvent/properties/
|
|
1149
|
+
"$ref": "#/definitions/RunfileEvent/properties/prev_event_hash"
|
|
534
1150
|
}
|
|
535
1151
|
},
|
|
536
1152
|
"required": [
|
|
@@ -543,6 +1159,9 @@
|
|
|
543
1159
|
"_RunfileBundle": {
|
|
544
1160
|
"type": "object",
|
|
545
1161
|
"properties": {
|
|
1162
|
+
"RunfileRun": {
|
|
1163
|
+
"$ref": "#/definitions/RunfileRun"
|
|
1164
|
+
},
|
|
546
1165
|
"RunfileEvent": {
|
|
547
1166
|
"$ref": "#/definitions/RunfileEvent"
|
|
548
1167
|
},
|
|
@@ -561,6 +1180,21 @@
|
|
|
561
1180
|
"Decision": {
|
|
562
1181
|
"$ref": "#/definitions/Decision"
|
|
563
1182
|
},
|
|
1183
|
+
"SuspensionDetails": {
|
|
1184
|
+
"$ref": "#/definitions/SuspensionDetails"
|
|
1185
|
+
},
|
|
1186
|
+
"ResumeDetails": {
|
|
1187
|
+
"$ref": "#/definitions/ResumeDetails"
|
|
1188
|
+
},
|
|
1189
|
+
"DelegationDetails": {
|
|
1190
|
+
"$ref": "#/definitions/DelegationDetails"
|
|
1191
|
+
},
|
|
1192
|
+
"HandoffDetails": {
|
|
1193
|
+
"$ref": "#/definitions/HandoffDetails"
|
|
1194
|
+
},
|
|
1195
|
+
"SuspensionInterval": {
|
|
1196
|
+
"$ref": "#/definitions/SuspensionInterval"
|
|
1197
|
+
},
|
|
564
1198
|
"PayloadRef": {
|
|
565
1199
|
"$ref": "#/definitions/PayloadRef"
|
|
566
1200
|
},
|
|
@@ -570,28 +1204,42 @@
|
|
|
570
1204
|
"RedactionApplied": {
|
|
571
1205
|
"$ref": "#/definitions/RedactionApplied"
|
|
572
1206
|
},
|
|
1207
|
+
"OtelAttributes": {
|
|
1208
|
+
"$ref": "#/definitions/OtelAttributes"
|
|
1209
|
+
},
|
|
573
1210
|
"AnomalyFlag": {
|
|
574
1211
|
"$ref": "#/definitions/AnomalyFlag"
|
|
575
1212
|
},
|
|
576
1213
|
"SdkMetadata": {
|
|
577
1214
|
"$ref": "#/definitions/SdkMetadata"
|
|
578
1215
|
},
|
|
1216
|
+
"RunReference": {
|
|
1217
|
+
"$ref": "#/definitions/RunReference"
|
|
1218
|
+
},
|
|
579
1219
|
"MerkleInclusion": {
|
|
580
1220
|
"$ref": "#/definitions/MerkleInclusion"
|
|
581
1221
|
}
|
|
582
1222
|
},
|
|
583
1223
|
"required": [
|
|
1224
|
+
"RunfileRun",
|
|
584
1225
|
"RunfileEvent",
|
|
585
1226
|
"Actor",
|
|
586
1227
|
"Action",
|
|
587
1228
|
"Subject",
|
|
588
1229
|
"ModelRef",
|
|
589
1230
|
"Decision",
|
|
1231
|
+
"SuspensionDetails",
|
|
1232
|
+
"ResumeDetails",
|
|
1233
|
+
"DelegationDetails",
|
|
1234
|
+
"HandoffDetails",
|
|
1235
|
+
"SuspensionInterval",
|
|
590
1236
|
"PayloadRef",
|
|
591
1237
|
"PayloadEncryption",
|
|
592
1238
|
"RedactionApplied",
|
|
1239
|
+
"OtelAttributes",
|
|
593
1240
|
"AnomalyFlag",
|
|
594
1241
|
"SdkMetadata",
|
|
1242
|
+
"RunReference",
|
|
595
1243
|
"MerkleInclusion"
|
|
596
1244
|
],
|
|
597
1245
|
"additionalProperties": false
|