@runfile-ai/schemas 0.1.2 → 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.
@@ -11,10 +11,23 @@
11
11
  "type": "string",
12
12
  "pattern": "^b_[0-9A-HJKMNP-TV-Z]{26}$"
13
13
  },
14
- "events": {
14
+ "items": {
15
15
  "type": "array",
16
16
  "items": {
17
- "$ref": "#/definitions/EventSubmission"
17
+ "anyOf": [
18
+ {
19
+ "$ref": "#/definitions/RunCreateItem"
20
+ },
21
+ {
22
+ "$ref": "#/definitions/RunUpdateItem"
23
+ },
24
+ {
25
+ "$ref": "#/definitions/RunEndItem"
26
+ },
27
+ {
28
+ "$ref": "#/definitions/EventItem"
29
+ }
30
+ ]
18
31
  },
19
32
  "minItems": 1,
20
33
  "maxItems": 100
@@ -22,49 +35,194 @@
22
35
  },
23
36
  "required": [
24
37
  "batch_id",
25
- "events"
38
+ "items"
26
39
  ],
27
40
  "additionalProperties": false
28
41
  },
29
- "EventSubmission": {
42
+ "RunCreateItem": {
30
43
  "type": "object",
31
44
  "properties": {
32
- "schema_version": {
45
+ "type": {
33
46
  "type": "string",
34
- "pattern": "^\\d+\\.\\d+\\.\\d+$"
47
+ "const": "run_create"
35
48
  },
36
- "event_id": {
49
+ "run": {
50
+ "$ref": "#/definitions/RunSubmission"
51
+ }
52
+ },
53
+ "required": [
54
+ "type",
55
+ "run"
56
+ ],
57
+ "additionalProperties": false
58
+ },
59
+ "RunUpdateItem": {
60
+ "type": "object",
61
+ "properties": {
62
+ "type": {
37
63
  "type": "string",
38
- "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
64
+ "const": "run_update"
39
65
  },
40
- "agent_run_id": {
66
+ "run_id": {
41
67
  "type": "string",
42
68
  "pattern": "^run_[0-9A-HJKMNP-TV-Z]{26}$"
43
69
  },
44
- "parent_event_id": {
45
- "anyOf": [
46
- {
47
- "$ref": "#/definitions/EventSubmission/properties/event_id"
48
- },
49
- {
50
- "type": "null"
51
- }
70
+ "lifecycle_state": {
71
+ "type": "string",
72
+ "enum": [
73
+ "active",
74
+ "awaiting_human",
75
+ "awaiting_webhook",
76
+ "awaiting_schedule",
77
+ "ended"
52
78
  ]
53
79
  },
54
- "captured_at": {
80
+ "triggered_by_event_id": {
81
+ "type": "string",
82
+ "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
83
+ }
84
+ },
85
+ "required": [
86
+ "type",
87
+ "run_id",
88
+ "lifecycle_state",
89
+ "triggered_by_event_id"
90
+ ],
91
+ "additionalProperties": false
92
+ },
93
+ "RunEndItem": {
94
+ "type": "object",
95
+ "properties": {
96
+ "type": {
97
+ "type": "string",
98
+ "const": "run_end"
99
+ },
100
+ "run_id": {
101
+ "$ref": "#/definitions/RunUpdateItem/properties/run_id"
102
+ },
103
+ "ended_at": {
55
104
  "type": "string",
56
105
  "format": "date-time"
57
106
  },
58
- "wall_clock_source": {
107
+ "outcome": {
59
108
  "type": "string",
60
109
  "enum": [
61
- "aws_time_sync",
62
- "ntp",
63
- "host_system",
64
- "unknown"
110
+ "success",
111
+ "failure",
112
+ "incomplete",
113
+ "abandoned"
65
114
  ]
66
115
  },
67
- "sdk": {
116
+ "final_event_id": {
117
+ "$ref": "#/definitions/RunUpdateItem/properties/triggered_by_event_id"
118
+ }
119
+ },
120
+ "required": [
121
+ "type",
122
+ "run_id",
123
+ "ended_at",
124
+ "outcome"
125
+ ],
126
+ "additionalProperties": false
127
+ },
128
+ "EventItem": {
129
+ "type": "object",
130
+ "properties": {
131
+ "type": {
132
+ "type": "string",
133
+ "const": "event"
134
+ },
135
+ "event": {
136
+ "$ref": "#/definitions/EventSubmission"
137
+ }
138
+ },
139
+ "required": [
140
+ "type",
141
+ "event"
142
+ ],
143
+ "additionalProperties": false
144
+ },
145
+ "RunSubmission": {
146
+ "type": "object",
147
+ "properties": {
148
+ "schema_version": {
149
+ "type": "string",
150
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
151
+ },
152
+ "run_id": {
153
+ "$ref": "#/definitions/RunUpdateItem/properties/run_id"
154
+ },
155
+ "agent_identity": {
156
+ "type": "string",
157
+ "pattern": "^did:[a-z][a-z0-9]*:[A-Za-z0-9._:-]+$"
158
+ },
159
+ "conversation_id": {
160
+ "type": "string",
161
+ "maxLength": 256
162
+ },
163
+ "lifecycle_state": {
164
+ "type": "string",
165
+ "const": "active"
166
+ },
167
+ "started_at": {
168
+ "type": "string",
169
+ "format": "date-time"
170
+ },
171
+ "delegated_from": {
172
+ "type": "object",
173
+ "properties": {
174
+ "run_id": {
175
+ "type": "string",
176
+ "pattern": "^run_[0-9A-HJKMNP-TV-Z]{26}$"
177
+ },
178
+ "event_id": {
179
+ "type": "string",
180
+ "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
181
+ }
182
+ },
183
+ "required": [
184
+ "run_id"
185
+ ],
186
+ "additionalProperties": false
187
+ },
188
+ "handed_off_from": {
189
+ "$ref": "#/definitions/RunSubmission/properties/delegated_from"
190
+ },
191
+ "scheduled_from": {
192
+ "$ref": "#/definitions/RunSubmission/properties/delegated_from"
193
+ },
194
+ "invoked_by": {
195
+ "$ref": "#/definitions/RunSubmission/properties/delegated_from"
196
+ },
197
+ "continued_from": {
198
+ "$ref": "#/definitions/RunSubmission/properties/delegated_from"
199
+ },
200
+ "environment": {
201
+ "type": "string",
202
+ "enum": [
203
+ "production",
204
+ "staging",
205
+ "development"
206
+ ]
207
+ },
208
+ "labels": {
209
+ "type": "object",
210
+ "additionalProperties": {
211
+ "type": "string",
212
+ "maxLength": 128
213
+ },
214
+ "propertyNames": {
215
+ "pattern": "^[a-z][a-z0-9_]{0,31}$"
216
+ },
217
+ "maxProperties": 16
218
+ },
219
+ "redaction_policy_version": {
220
+ "$ref": "#/definitions/RunSubmission/properties/schema_version"
221
+ },
222
+ "regulatory_scope_version": {
223
+ "$ref": "#/definitions/RunSubmission/properties/schema_version"
224
+ },
225
+ "sdk_at_start": {
68
226
  "type": "object",
69
227
  "properties": {
70
228
  "name": {
@@ -87,15 +245,22 @@
87
245
  "openai_agents_js",
88
246
  "anthropic_claude",
89
247
  "anthropic_claude_js",
248
+ "claude_agent_sdk",
90
249
  "mastra",
91
250
  "vercel_ai_sdk",
251
+ "pydantic_ai",
252
+ "crewai",
92
253
  "mcp_client",
93
254
  "otel_generic",
94
255
  "manual"
95
256
  ]
96
257
  },
97
258
  "framework_version": {
98
- "$ref": "#/definitions/EventSubmission/properties/sdk/properties/version"
259
+ "$ref": "#/definitions/RunSubmission/properties/sdk_at_start/properties/version"
260
+ },
261
+ "adapter": {
262
+ "type": "string",
263
+ "maxLength": 64
99
264
  },
100
265
  "host": {
101
266
  "type": "string",
@@ -109,6 +274,63 @@
109
274
  ],
110
275
  "additionalProperties": false
111
276
  },
277
+ "prev_event_hash_intent": {
278
+ "type": "string",
279
+ "pattern": "^sha256:[a-f0-9]{64}$"
280
+ }
281
+ },
282
+ "required": [
283
+ "schema_version",
284
+ "run_id",
285
+ "agent_identity",
286
+ "lifecycle_state",
287
+ "started_at",
288
+ "redaction_policy_version"
289
+ ],
290
+ "additionalProperties": false
291
+ },
292
+ "EventSubmission": {
293
+ "type": "object",
294
+ "properties": {
295
+ "schema_version": {
296
+ "$ref": "#/definitions/RunSubmission/properties/schema_version"
297
+ },
298
+ "event_id": {
299
+ "$ref": "#/definitions/RunUpdateItem/properties/triggered_by_event_id"
300
+ },
301
+ "run_id": {
302
+ "$ref": "#/definitions/RunUpdateItem/properties/run_id"
303
+ },
304
+ "parent_event_id": {
305
+ "anyOf": [
306
+ {
307
+ "$ref": "#/definitions/RunUpdateItem/properties/triggered_by_event_id"
308
+ },
309
+ {
310
+ "type": "null"
311
+ }
312
+ ]
313
+ },
314
+ "parallel_group_id": {
315
+ "type": "string",
316
+ "pattern": "^pg_[0-9A-HJKMNP-TV-Z]{26}$"
317
+ },
318
+ "captured_at": {
319
+ "type": "string",
320
+ "format": "date-time"
321
+ },
322
+ "wall_clock_source": {
323
+ "type": "string",
324
+ "enum": [
325
+ "aws_time_sync",
326
+ "ntp",
327
+ "host_system",
328
+ "unknown"
329
+ ]
330
+ },
331
+ "sdk": {
332
+ "$ref": "#/definitions/RunSubmission/properties/sdk_at_start"
333
+ },
112
334
  "actor": {
113
335
  "type": "object",
114
336
  "properties": {
@@ -159,17 +381,28 @@
159
381
  "kind": {
160
382
  "type": "string",
161
383
  "enum": [
162
- "agent_run_start",
163
- "agent_run_end",
164
384
  "graph_node_enter",
165
385
  "graph_node_exit",
166
386
  "llm_call",
387
+ "llm_call_chunk",
167
388
  "tool_call",
168
389
  "tool_result",
390
+ "tool_approval_requested",
391
+ "tool_approval_granted",
392
+ "tool_approval_denied",
169
393
  "state_read",
170
394
  "state_write",
171
395
  "decision",
396
+ "run_create",
397
+ "run_end",
398
+ "run_suspend",
399
+ "run_resume",
400
+ "run_abandon",
401
+ "delegate",
172
402
  "handoff",
403
+ "schedule_task",
404
+ "parallel_group_open",
405
+ "parallel_group_close",
173
406
  "human_approval",
174
407
  "human_input",
175
408
  "policy_check",
@@ -219,7 +452,8 @@
219
452
  "pii",
220
453
  "phi",
221
454
  "pci",
222
- "fci"
455
+ "fci",
456
+ "audit_of_audit"
223
457
  ]
224
458
  },
225
459
  "regulatory_tags": {
@@ -274,6 +508,9 @@
274
508
  "type": "number",
275
509
  "minimum": 0,
276
510
  "maximum": 2
511
+ },
512
+ "streaming": {
513
+ "type": "boolean"
277
514
  }
278
515
  },
279
516
  "required": [
@@ -317,8 +554,7 @@
317
554
  "maxItems": 16
318
555
  },
319
556
  "reversed_by_event": {
320
- "type": "string",
321
- "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
557
+ "$ref": "#/definitions/RunSubmission/properties/delegated_from/properties/event_id"
322
558
  }
323
559
  },
324
560
  "required": [
@@ -326,14 +562,238 @@
326
562
  ],
327
563
  "additionalProperties": false
328
564
  },
565
+ "suspension_details": {
566
+ "type": "object",
567
+ "properties": {
568
+ "reason": {
569
+ "type": "string",
570
+ "enum": [
571
+ "awaiting_human_approval",
572
+ "awaiting_human_input",
573
+ "awaiting_webhook",
574
+ "awaiting_schedule",
575
+ "awaiting_external_system",
576
+ "awaiting_subagent",
577
+ "other"
578
+ ]
579
+ },
580
+ "expected_resumer": {
581
+ "type": "string"
582
+ },
583
+ "expected_resume_by": {
584
+ "type": "string",
585
+ "format": "date-time"
586
+ },
587
+ "detection_source": {
588
+ "type": "string",
589
+ "enum": [
590
+ "framework_inferred",
591
+ "customer_explicit",
592
+ "derived"
593
+ ]
594
+ },
595
+ "framework_signal": {
596
+ "type": "object",
597
+ "properties": {
598
+ "framework": {
599
+ "type": "string",
600
+ "enum": [
601
+ "langgraph",
602
+ "openai_agents",
603
+ "claude_agent_sdk",
604
+ "vercel_ai_sdk",
605
+ "mcp",
606
+ "manual",
607
+ "otel"
608
+ ]
609
+ },
610
+ "signal_name": {
611
+ "type": "string",
612
+ "maxLength": 128
613
+ },
614
+ "signal_payload_hash": {
615
+ "$ref": "#/definitions/EventSubmission/properties/actor/properties/tool_version_hash"
616
+ }
617
+ },
618
+ "additionalProperties": false
619
+ }
620
+ },
621
+ "required": [
622
+ "reason"
623
+ ],
624
+ "additionalProperties": false
625
+ },
626
+ "resume_details": {
627
+ "type": "object",
628
+ "properties": {
629
+ "triggered_by": {
630
+ "type": "string",
631
+ "enum": [
632
+ "human_approval_granted",
633
+ "human_input_received",
634
+ "webhook_received",
635
+ "schedule_fired",
636
+ "external_system_response",
637
+ "subagent_completed",
638
+ "manual_resume",
639
+ "other"
640
+ ]
641
+ },
642
+ "resumer_principal": {
643
+ "$ref": "#/definitions/EventSubmission/properties/actor/properties/human_principal"
644
+ },
645
+ "suspension_duration_seconds": {
646
+ "type": "integer",
647
+ "minimum": 0
648
+ },
649
+ "suspension_started_event_id": {
650
+ "$ref": "#/definitions/RunSubmission/properties/delegated_from/properties/event_id"
651
+ }
652
+ },
653
+ "required": [
654
+ "triggered_by"
655
+ ],
656
+ "additionalProperties": false
657
+ },
658
+ "delegation_details": {
659
+ "type": "object",
660
+ "properties": {
661
+ "delegated_run_id": {
662
+ "$ref": "#/definitions/RunSubmission/properties/delegated_from/properties/run_id"
663
+ },
664
+ "delegated_agent_identity": {
665
+ "$ref": "#/definitions/EventSubmission/properties/actor/properties/agent_identity"
666
+ },
667
+ "wait_for_completion": {
668
+ "type": "boolean"
669
+ },
670
+ "framework_signal": {
671
+ "type": "string",
672
+ "enum": [
673
+ "langgraph_subgraph",
674
+ "openai_agents_as_tool",
675
+ "claude_agent_sdk_subagent",
676
+ "manual",
677
+ "other"
678
+ ]
679
+ }
680
+ },
681
+ "required": [
682
+ "delegated_run_id",
683
+ "delegated_agent_identity"
684
+ ],
685
+ "additionalProperties": false
686
+ },
687
+ "handoff_details": {
688
+ "type": "object",
689
+ "properties": {
690
+ "target_run_id": {
691
+ "$ref": "#/definitions/RunSubmission/properties/delegated_from/properties/run_id"
692
+ },
693
+ "target_agent_identity": {
694
+ "$ref": "#/definitions/EventSubmission/properties/actor/properties/agent_identity"
695
+ },
696
+ "handoff_reason": {
697
+ "type": "string",
698
+ "maxLength": 256
699
+ },
700
+ "framework_signal": {
701
+ "type": "string",
702
+ "enum": [
703
+ "openai_agents_handoff",
704
+ "langgraph_explicit",
705
+ "manual",
706
+ "other"
707
+ ]
708
+ }
709
+ },
710
+ "required": [
711
+ "target_run_id",
712
+ "target_agent_identity"
713
+ ],
714
+ "additionalProperties": false
715
+ },
329
716
  "payload_ref": {
330
717
  "$ref": "#/definitions/PayloadSubmission"
331
718
  },
719
+ "otel_attributes": {
720
+ "type": "object",
721
+ "properties": {
722
+ "gen_ai_system": {
723
+ "type": "string"
724
+ },
725
+ "gen_ai_operation_name": {
726
+ "type": "string"
727
+ },
728
+ "gen_ai_provider_name": {
729
+ "type": "string"
730
+ },
731
+ "gen_ai_request_model": {
732
+ "type": "string"
733
+ },
734
+ "gen_ai_response_model": {
735
+ "type": "string"
736
+ },
737
+ "gen_ai_request_temperature": {
738
+ "type": "number"
739
+ },
740
+ "gen_ai_request_top_p": {
741
+ "type": "number"
742
+ },
743
+ "gen_ai_request_max_tokens": {
744
+ "type": "integer"
745
+ },
746
+ "gen_ai_response_id": {
747
+ "type": "string"
748
+ },
749
+ "gen_ai_response_finish_reasons": {
750
+ "type": "array",
751
+ "items": {
752
+ "type": "string"
753
+ }
754
+ },
755
+ "gen_ai_usage_input_tokens": {
756
+ "type": "integer"
757
+ },
758
+ "gen_ai_usage_output_tokens": {
759
+ "type": "integer"
760
+ },
761
+ "gen_ai_tool_name": {
762
+ "type": "string"
763
+ },
764
+ "gen_ai_tool_call_id": {
765
+ "type": "string"
766
+ },
767
+ "gen_ai_agent_id": {
768
+ "type": "string"
769
+ },
770
+ "gen_ai_agent_name": {
771
+ "type": "string"
772
+ },
773
+ "gen_ai_agent_description": {
774
+ "type": "string"
775
+ },
776
+ "gen_ai_conversation_id": {
777
+ "type": "string"
778
+ },
779
+ "extra": {
780
+ "type": "object",
781
+ "additionalProperties": {
782
+ "type": [
783
+ "string",
784
+ "number",
785
+ "boolean"
786
+ ]
787
+ }
788
+ }
789
+ },
790
+ "additionalProperties": false
791
+ },
332
792
  "redaction_policy_version": {
333
- "$ref": "#/definitions/EventSubmission/properties/schema_version"
793
+ "$ref": "#/definitions/RunSubmission/properties/schema_version"
334
794
  },
335
795
  "regulatory_scope_version": {
336
- "$ref": "#/definitions/EventSubmission/properties/schema_version"
796
+ "$ref": "#/definitions/RunSubmission/properties/schema_version"
337
797
  },
338
798
  "anomaly_flags": {
339
799
  "type": "array",
@@ -352,7 +812,14 @@
352
812
  "policy_threshold_without_hitl",
353
813
  "unauthorized_tool_invocation",
354
814
  "redaction_policy_mismatch",
355
- "schema_version_warning"
815
+ "schema_version_warning",
816
+ "agent_identity_mismatch_with_run",
817
+ "suspension_sla_exceeded",
818
+ "apparent_crash_detected",
819
+ "active_duration_exceeds_threshold",
820
+ "framework_signal_unrecognised",
821
+ "otel_attribute_missing",
822
+ "delegation_loop_detected"
356
823
  ]
357
824
  },
358
825
  "severity": {
@@ -378,43 +845,184 @@
378
845
  "maxItems": 32
379
846
  },
380
847
  "environment": {
381
- "type": "string",
382
- "enum": [
383
- "production",
384
- "staging",
385
- "development"
386
- ]
848
+ "$ref": "#/definitions/RunSubmission/properties/environment"
387
849
  },
388
850
  "labels": {
389
- "type": "object",
390
- "additionalProperties": {
391
- "type": "string",
392
- "maxLength": 128
393
- },
394
- "propertyNames": {
395
- "pattern": "^[a-z][a-z0-9_]{0,31}$"
396
- }
851
+ "$ref": "#/definitions/RunSubmission/properties/labels"
397
852
  },
398
- "prev_hash_intent": {
399
- "type": "string",
400
- "pattern": "^sha256:[a-f0-9]{64}$"
853
+ "prev_event_hash_intent": {
854
+ "$ref": "#/definitions/RunSubmission/properties/prev_event_hash_intent"
401
855
  }
402
856
  },
403
857
  "required": [
404
858
  "schema_version",
405
859
  "event_id",
406
- "agent_run_id",
860
+ "run_id",
407
861
  "parent_event_id",
408
862
  "captured_at",
409
863
  "wall_clock_source",
410
864
  "sdk",
411
865
  "actor",
412
866
  "action",
413
- "subject",
414
867
  "redaction_policy_version",
415
- "prev_hash_intent"
868
+ "prev_event_hash_intent"
416
869
  ],
417
- "additionalProperties": false
870
+ "additionalProperties": false,
871
+ "allOf": [
872
+ {
873
+ "if": {
874
+ "properties": {
875
+ "action": {
876
+ "properties": {
877
+ "kind": {
878
+ "const": "llm_call"
879
+ }
880
+ }
881
+ }
882
+ }
883
+ },
884
+ "then": {
885
+ "required": [
886
+ "model_ref"
887
+ ]
888
+ }
889
+ },
890
+ {
891
+ "if": {
892
+ "properties": {
893
+ "action": {
894
+ "properties": {
895
+ "kind": {
896
+ "const": "decision"
897
+ }
898
+ }
899
+ }
900
+ }
901
+ },
902
+ "then": {
903
+ "required": [
904
+ "decision"
905
+ ]
906
+ }
907
+ },
908
+ {
909
+ "if": {
910
+ "properties": {
911
+ "action": {
912
+ "properties": {
913
+ "kind": {
914
+ "const": "run_suspend"
915
+ }
916
+ }
917
+ }
918
+ }
919
+ },
920
+ "then": {
921
+ "required": [
922
+ "suspension_details"
923
+ ]
924
+ }
925
+ },
926
+ {
927
+ "if": {
928
+ "properties": {
929
+ "action": {
930
+ "properties": {
931
+ "kind": {
932
+ "const": "run_resume"
933
+ }
934
+ }
935
+ }
936
+ }
937
+ },
938
+ "then": {
939
+ "required": [
940
+ "resume_details"
941
+ ]
942
+ }
943
+ },
944
+ {
945
+ "if": {
946
+ "properties": {
947
+ "action": {
948
+ "properties": {
949
+ "kind": {
950
+ "const": "delegate"
951
+ }
952
+ }
953
+ }
954
+ }
955
+ },
956
+ "then": {
957
+ "required": [
958
+ "delegation_details"
959
+ ]
960
+ }
961
+ },
962
+ {
963
+ "if": {
964
+ "properties": {
965
+ "action": {
966
+ "properties": {
967
+ "kind": {
968
+ "const": "handoff"
969
+ }
970
+ }
971
+ }
972
+ }
973
+ },
974
+ "then": {
975
+ "required": [
976
+ "handoff_details"
977
+ ]
978
+ }
979
+ },
980
+ {
981
+ "if": {
982
+ "properties": {
983
+ "actor": {
984
+ "properties": {
985
+ "type": {
986
+ "const": "agent"
987
+ }
988
+ }
989
+ }
990
+ }
991
+ },
992
+ "then": {
993
+ "properties": {
994
+ "actor": {
995
+ "required": [
996
+ "agent_identity"
997
+ ]
998
+ }
999
+ }
1000
+ }
1001
+ },
1002
+ {
1003
+ "if": {
1004
+ "properties": {
1005
+ "actor": {
1006
+ "properties": {
1007
+ "type": {
1008
+ "const": "tool"
1009
+ }
1010
+ }
1011
+ }
1012
+ }
1013
+ },
1014
+ "then": {
1015
+ "properties": {
1016
+ "actor": {
1017
+ "required": [
1018
+ "tool_id",
1019
+ "tool_version_hash"
1020
+ ]
1021
+ }
1022
+ }
1023
+ }
1024
+ }
1025
+ ]
418
1026
  },
419
1027
  "PayloadSubmission": {
420
1028
  "type": "object",
@@ -424,7 +1032,7 @@
424
1032
  "maxLength": 1024
425
1033
  },
426
1034
  "sha256": {
427
- "$ref": "#/definitions/EventSubmission/properties/prev_hash_intent"
1035
+ "$ref": "#/definitions/RunSubmission/properties/prev_event_hash_intent"
428
1036
  },
429
1037
  "size_bytes": {
430
1038
  "type": "integer",
@@ -462,7 +1070,8 @@
462
1070
  "application/vnd.runfile.llm-response+json",
463
1071
  "application/vnd.runfile.tool-call+json",
464
1072
  "application/vnd.runfile.tool-result+json",
465
- "application/vnd.runfile.state-snapshot+json"
1073
+ "application/vnd.runfile.state-snapshot+json",
1074
+ "application/vnd.runfile.framework-signal+json"
466
1075
  ]
467
1076
  },
468
1077
  "redaction_applied": {
@@ -506,17 +1115,16 @@
506
1115
  "type": "object",
507
1116
  "properties": {
508
1117
  "batch_id": {
509
- "type": "string",
510
- "pattern": "^b_[0-9A-HJKMNP-TV-Z]{26}$"
1118
+ "$ref": "#/definitions/BatchSubmission/properties/batch_id"
511
1119
  },
512
1120
  "accepted_count": {
513
1121
  "type": "integer",
514
1122
  "minimum": 1
515
1123
  },
516
- "accepted_events": {
1124
+ "accepted_items": {
517
1125
  "type": "array",
518
1126
  "items": {
519
- "$ref": "#/definitions/AcceptedEvent"
1127
+ "$ref": "#/definitions/AcceptedItem"
520
1128
  }
521
1129
  },
522
1130
  "received_at": {
@@ -527,7 +1135,7 @@
527
1135
  "required": [
528
1136
  "batch_id",
529
1137
  "accepted_count",
530
- "accepted_events",
1138
+ "accepted_items",
531
1139
  "received_at"
532
1140
  ],
533
1141
  "additionalProperties": false
@@ -536,8 +1144,7 @@
536
1144
  "type": "object",
537
1145
  "properties": {
538
1146
  "batch_id": {
539
- "type": "string",
540
- "pattern": "^b_[0-9A-HJKMNP-TV-Z]{26}$"
1147
+ "$ref": "#/definitions/BatchSubmission/properties/batch_id"
541
1148
  },
542
1149
  "accepted_count": {
543
1150
  "type": "integer",
@@ -547,16 +1154,16 @@
547
1154
  "type": "integer",
548
1155
  "minimum": 1
549
1156
  },
550
- "accepted_events": {
1157
+ "accepted_items": {
551
1158
  "type": "array",
552
1159
  "items": {
553
- "$ref": "#/definitions/AcceptedEvent"
1160
+ "$ref": "#/definitions/AcceptedItem"
554
1161
  }
555
1162
  },
556
- "rejected_events": {
1163
+ "rejected_items": {
557
1164
  "type": "array",
558
1165
  "items": {
559
- "$ref": "#/definitions/EventRejection"
1166
+ "$ref": "#/definitions/RejectedItem"
560
1167
  }
561
1168
  },
562
1169
  "received_at": {
@@ -568,8 +1175,8 @@
568
1175
  "batch_id",
569
1176
  "accepted_count",
570
1177
  "rejected_count",
571
- "accepted_events",
572
- "rejected_events",
1178
+ "accepted_items",
1179
+ "rejected_items",
573
1180
  "received_at"
574
1181
  ],
575
1182
  "additionalProperties": false
@@ -578,31 +1185,39 @@
578
1185
  "type": "object",
579
1186
  "properties": {
580
1187
  "batch_id": {
581
- "type": "string",
582
- "pattern": "^b_[0-9A-HJKMNP-TV-Z]{26}$"
1188
+ "$ref": "#/definitions/BatchSubmission/properties/batch_id"
583
1189
  },
584
1190
  "error": {
585
1191
  "$ref": "#/definitions/IngestError"
586
1192
  },
587
- "rejected_events": {
1193
+ "rejected_items": {
588
1194
  "type": "array",
589
1195
  "items": {
590
- "$ref": "#/definitions/EventRejection"
1196
+ "$ref": "#/definitions/RejectedItem"
591
1197
  }
592
1198
  }
593
1199
  },
594
1200
  "required": [
595
1201
  "batch_id",
596
1202
  "error",
597
- "rejected_events"
1203
+ "rejected_items"
598
1204
  ],
599
1205
  "additionalProperties": false
600
1206
  },
601
- "AcceptedEvent": {
1207
+ "AcceptedItem": {
602
1208
  "type": "object",
603
1209
  "properties": {
604
- "event_id": {
605
- "$ref": "#/definitions/EventSubmission/properties/event_id"
1210
+ "type": {
1211
+ "type": "string",
1212
+ "enum": [
1213
+ "run_create",
1214
+ "run_update",
1215
+ "run_end",
1216
+ "event"
1217
+ ]
1218
+ },
1219
+ "id": {
1220
+ "type": "string"
606
1221
  },
607
1222
  "accepted_at": {
608
1223
  "type": "string",
@@ -617,23 +1232,30 @@
617
1232
  }
618
1233
  },
619
1234
  "required": [
620
- "event_id",
621
- "accepted_at",
622
- "payload_s3_uri"
1235
+ "type",
1236
+ "id",
1237
+ "accepted_at"
623
1238
  ],
624
1239
  "additionalProperties": false
625
1240
  },
626
- "EventRejection": {
1241
+ "RejectedItem": {
627
1242
  "type": "object",
628
1243
  "properties": {
629
- "event_id": {
1244
+ "type": {
1245
+ "$ref": "#/definitions/AcceptedItem/properties/type"
1246
+ },
1247
+ "id": {
630
1248
  "type": "string"
631
1249
  },
632
1250
  "error_code": {
633
1251
  "type": "string",
634
1252
  "enum": [
635
1253
  "schema_validation_failed",
636
- "duplicate_event_id",
1254
+ "duplicate_id",
1255
+ "run_not_found",
1256
+ "run_already_ended",
1257
+ "run_lifecycle_transition_invalid",
1258
+ "agent_identity_mismatch_with_run",
637
1259
  "payload_too_large",
638
1260
  "payload_sha256_mismatch",
639
1261
  "kms_key_unknown",
@@ -654,7 +1276,8 @@
654
1276
  }
655
1277
  },
656
1278
  "required": [
657
- "event_id",
1279
+ "type",
1280
+ "id",
658
1281
  "error_code",
659
1282
  "error_message"
660
1283
  ],
@@ -700,7 +1323,7 @@
700
1323
  "type": "object",
701
1324
  "properties": {
702
1325
  "policy_version": {
703
- "$ref": "#/definitions/EventSubmission/properties/schema_version"
1326
+ "$ref": "#/definitions/RunSubmission/properties/schema_version"
704
1327
  },
705
1328
  "classification_rules": {
706
1329
  "type": "array",
@@ -713,9 +1336,11 @@
713
1336
  "treatment": {
714
1337
  "type": "string",
715
1338
  "enum": [
716
- "redact",
1339
+ "drop",
717
1340
  "tokenize",
718
- "encrypt"
1341
+ "hash",
1342
+ "pass_through",
1343
+ "tokenize_with_fallback"
719
1344
  ]
720
1345
  },
721
1346
  "detector": {
@@ -754,6 +1379,21 @@
754
1379
  "BatchSubmission": {
755
1380
  "$ref": "#/definitions/BatchSubmission"
756
1381
  },
1382
+ "RunCreateItem": {
1383
+ "$ref": "#/definitions/RunCreateItem"
1384
+ },
1385
+ "RunUpdateItem": {
1386
+ "$ref": "#/definitions/RunUpdateItem"
1387
+ },
1388
+ "RunEndItem": {
1389
+ "$ref": "#/definitions/RunEndItem"
1390
+ },
1391
+ "EventItem": {
1392
+ "$ref": "#/definitions/EventItem"
1393
+ },
1394
+ "RunSubmission": {
1395
+ "$ref": "#/definitions/RunSubmission"
1396
+ },
757
1397
  "EventSubmission": {
758
1398
  "$ref": "#/definitions/EventSubmission"
759
1399
  },
@@ -769,11 +1409,11 @@
769
1409
  "BatchRejected": {
770
1410
  "$ref": "#/definitions/BatchRejected"
771
1411
  },
772
- "AcceptedEvent": {
773
- "$ref": "#/definitions/AcceptedEvent"
1412
+ "AcceptedItem": {
1413
+ "$ref": "#/definitions/AcceptedItem"
774
1414
  },
775
- "EventRejection": {
776
- "$ref": "#/definitions/EventRejection"
1415
+ "RejectedItem": {
1416
+ "$ref": "#/definitions/RejectedItem"
777
1417
  },
778
1418
  "IngestError": {
779
1419
  "$ref": "#/definitions/IngestError"
@@ -784,13 +1424,18 @@
784
1424
  },
785
1425
  "required": [
786
1426
  "BatchSubmission",
1427
+ "RunCreateItem",
1428
+ "RunUpdateItem",
1429
+ "RunEndItem",
1430
+ "EventItem",
1431
+ "RunSubmission",
787
1432
  "EventSubmission",
788
1433
  "PayloadSubmission",
789
1434
  "BatchAccepted",
790
1435
  "BatchPartial",
791
1436
  "BatchRejected",
792
- "AcceptedEvent",
793
- "EventRejection",
1437
+ "AcceptedItem",
1438
+ "RejectedItem",
794
1439
  "IngestError",
795
1440
  "RedactionPolicy"
796
1441
  ],