@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.
@@ -62,7 +62,7 @@
62
62
  "type": "string",
63
63
  "pattern": "^tnt_[0-9a-z]{12}$"
64
64
  },
65
- "agent_run_id": {
65
+ "run_id": {
66
66
  "type": "string",
67
67
  "pattern": "^run_[0-9A-HJKMNP-TV-Z]{26}$"
68
68
  },
@@ -76,6 +76,10 @@
76
76
  }
77
77
  ]
78
78
  },
79
+ "parallel_group_id": {
80
+ "type": "string",
81
+ "pattern": "^pg_[0-9A-HJKMNP-TV-Z]{26}$"
82
+ },
79
83
  "captured_at": {
80
84
  "type": "string",
81
85
  "format": "date-time"
@@ -116,8 +120,11 @@
116
120
  "openai_agents_js",
117
121
  "anthropic_claude",
118
122
  "anthropic_claude_js",
123
+ "claude_agent_sdk",
119
124
  "mastra",
120
125
  "vercel_ai_sdk",
126
+ "pydantic_ai",
127
+ "crewai",
121
128
  "mcp_client",
122
129
  "otel_generic",
123
130
  "manual"
@@ -126,6 +133,10 @@
126
133
  "framework_version": {
127
134
  "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/sdk/properties/version"
128
135
  },
136
+ "adapter": {
137
+ "type": "string",
138
+ "maxLength": 64
139
+ },
129
140
  "host": {
130
141
  "type": "string",
131
142
  "maxLength": 256
@@ -188,17 +199,28 @@
188
199
  "kind": {
189
200
  "type": "string",
190
201
  "enum": [
191
- "agent_run_start",
192
- "agent_run_end",
193
202
  "graph_node_enter",
194
203
  "graph_node_exit",
195
204
  "llm_call",
205
+ "llm_call_chunk",
196
206
  "tool_call",
197
207
  "tool_result",
208
+ "tool_approval_requested",
209
+ "tool_approval_granted",
210
+ "tool_approval_denied",
198
211
  "state_read",
199
212
  "state_write",
200
213
  "decision",
214
+ "run_create",
215
+ "run_end",
216
+ "run_suspend",
217
+ "run_resume",
218
+ "run_abandon",
219
+ "delegate",
201
220
  "handoff",
221
+ "schedule_task",
222
+ "parallel_group_open",
223
+ "parallel_group_close",
202
224
  "human_approval",
203
225
  "human_input",
204
226
  "policy_check",
@@ -248,7 +270,8 @@
248
270
  "pii",
249
271
  "phi",
250
272
  "pci",
251
- "fci"
273
+ "fci",
274
+ "audit_of_audit"
252
275
  ]
253
276
  },
254
277
  "regulatory_tags": {
@@ -303,6 +326,9 @@
303
326
  "type": "number",
304
327
  "minimum": 0,
305
328
  "maximum": 2
329
+ },
330
+ "streaming": {
331
+ "type": "boolean"
306
332
  }
307
333
  },
308
334
  "required": [
@@ -354,6 +380,157 @@
354
380
  ],
355
381
  "additionalProperties": false
356
382
  },
383
+ "suspension_details": {
384
+ "type": "object",
385
+ "properties": {
386
+ "reason": {
387
+ "type": "string",
388
+ "enum": [
389
+ "awaiting_human_approval",
390
+ "awaiting_human_input",
391
+ "awaiting_webhook",
392
+ "awaiting_schedule",
393
+ "awaiting_external_system",
394
+ "awaiting_subagent",
395
+ "other"
396
+ ]
397
+ },
398
+ "expected_resumer": {
399
+ "type": "string"
400
+ },
401
+ "expected_resume_by": {
402
+ "type": "string",
403
+ "format": "date-time"
404
+ },
405
+ "detection_source": {
406
+ "type": "string",
407
+ "enum": [
408
+ "framework_inferred",
409
+ "customer_explicit",
410
+ "derived"
411
+ ]
412
+ },
413
+ "framework_signal": {
414
+ "type": "object",
415
+ "properties": {
416
+ "framework": {
417
+ "type": "string",
418
+ "enum": [
419
+ "langgraph",
420
+ "openai_agents",
421
+ "claude_agent_sdk",
422
+ "vercel_ai_sdk",
423
+ "mcp",
424
+ "manual",
425
+ "otel"
426
+ ]
427
+ },
428
+ "signal_name": {
429
+ "type": "string",
430
+ "maxLength": 128
431
+ },
432
+ "signal_payload_hash": {
433
+ "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/actor/properties/tool_version_hash"
434
+ }
435
+ },
436
+ "additionalProperties": false
437
+ }
438
+ },
439
+ "required": [
440
+ "reason"
441
+ ],
442
+ "additionalProperties": false
443
+ },
444
+ "resume_details": {
445
+ "type": "object",
446
+ "properties": {
447
+ "triggered_by": {
448
+ "type": "string",
449
+ "enum": [
450
+ "human_approval_granted",
451
+ "human_input_received",
452
+ "webhook_received",
453
+ "schedule_fired",
454
+ "external_system_response",
455
+ "subagent_completed",
456
+ "manual_resume",
457
+ "other"
458
+ ]
459
+ },
460
+ "resumer_principal": {
461
+ "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/actor/properties/human_principal"
462
+ },
463
+ "suspension_duration_seconds": {
464
+ "type": "integer",
465
+ "minimum": 0
466
+ },
467
+ "suspension_started_event_id": {
468
+ "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/event_id"
469
+ }
470
+ },
471
+ "required": [
472
+ "triggered_by"
473
+ ],
474
+ "additionalProperties": false
475
+ },
476
+ "delegation_details": {
477
+ "type": "object",
478
+ "properties": {
479
+ "delegated_run_id": {
480
+ "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/run_id"
481
+ },
482
+ "delegated_agent_identity": {
483
+ "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/actor/properties/agent_identity"
484
+ },
485
+ "wait_for_completion": {
486
+ "type": "boolean"
487
+ },
488
+ "framework_signal": {
489
+ "type": "string",
490
+ "enum": [
491
+ "langgraph_subgraph",
492
+ "openai_agents_as_tool",
493
+ "claude_agent_sdk_subagent",
494
+ "manual",
495
+ "other"
496
+ ]
497
+ }
498
+ },
499
+ "required": [
500
+ "delegated_run_id",
501
+ "delegated_agent_identity"
502
+ ],
503
+ "additionalProperties": false
504
+ },
505
+ "handoff_details": {
506
+ "type": "object",
507
+ "properties": {
508
+ "target_run_id": {
509
+ "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/run_id"
510
+ },
511
+ "target_agent_identity": {
512
+ "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/actor/properties/agent_identity"
513
+ },
514
+ "handoff_reason": {
515
+ "type": "string",
516
+ "maxLength": 256
517
+ },
518
+ "framework_signal": {
519
+ "type": "string",
520
+ "enum": [
521
+ "openai_agents_handoff",
522
+ "langgraph_explicit",
523
+ "manual",
524
+ "other"
525
+ ]
526
+ }
527
+ },
528
+ "required": [
529
+ "target_run_id",
530
+ "target_agent_identity"
531
+ ],
532
+ "additionalProperties": false
533
+ },
357
534
  "payload_ref": {
358
535
  "type": "object",
359
536
  "properties": {
@@ -401,7 +578,8 @@
401
578
  "application/vnd.runfile.llm-response+json",
402
579
  "application/vnd.runfile.tool-call+json",
403
580
  "application/vnd.runfile.tool-result+json",
404
- "application/vnd.runfile.state-snapshot+json"
581
+ "application/vnd.runfile.state-snapshot+json",
582
+ "application/vnd.runfile.framework-signal+json"
405
583
  ]
406
584
  },
407
585
  "redaction_applied": {
@@ -436,6 +614,79 @@
436
614
  ],
437
615
  "additionalProperties": false
438
616
  },
617
+ "otel_attributes": {
618
+ "type": "object",
619
+ "properties": {
620
+ "gen_ai_system": {
621
+ "type": "string"
622
+ },
623
+ "gen_ai_operation_name": {
624
+ "type": "string"
625
+ },
626
+ "gen_ai_provider_name": {
627
+ "type": "string"
628
+ },
629
+ "gen_ai_request_model": {
630
+ "type": "string"
631
+ },
632
+ "gen_ai_response_model": {
633
+ "type": "string"
634
+ },
635
+ "gen_ai_request_temperature": {
636
+ "type": "number"
637
+ },
638
+ "gen_ai_request_top_p": {
639
+ "type": "number"
640
+ },
641
+ "gen_ai_request_max_tokens": {
642
+ "type": "integer"
643
+ },
644
+ "gen_ai_response_id": {
645
+ "type": "string"
646
+ },
647
+ "gen_ai_response_finish_reasons": {
648
+ "type": "array",
649
+ "items": {
650
+ "type": "string"
651
+ }
652
+ },
653
+ "gen_ai_usage_input_tokens": {
654
+ "type": "integer"
655
+ },
656
+ "gen_ai_usage_output_tokens": {
657
+ "type": "integer"
658
+ },
659
+ "gen_ai_tool_name": {
660
+ "type": "string"
661
+ },
662
+ "gen_ai_tool_call_id": {
663
+ "type": "string"
664
+ },
665
+ "gen_ai_agent_id": {
666
+ "type": "string"
667
+ },
668
+ "gen_ai_agent_name": {
669
+ "type": "string"
670
+ },
671
+ "gen_ai_agent_description": {
672
+ "type": "string"
673
+ },
674
+ "gen_ai_conversation_id": {
675
+ "type": "string"
676
+ },
677
+ "extra": {
678
+ "type": "object",
679
+ "additionalProperties": {
680
+ "type": [
681
+ "string",
682
+ "number",
683
+ "boolean"
684
+ ]
685
+ }
686
+ }
687
+ },
688
+ "additionalProperties": false
689
+ },
439
690
  "redaction_policy_version": {
440
691
  "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/schema_version"
441
692
  },
@@ -459,7 +710,14 @@
459
710
  "policy_threshold_without_hitl",
460
711
  "unauthorized_tool_invocation",
461
712
  "redaction_policy_mismatch",
462
- "schema_version_warning"
713
+ "schema_version_warning",
714
+ "agent_identity_mismatch_with_run",
715
+ "suspension_sla_exceeded",
716
+ "apparent_crash_detected",
717
+ "active_duration_exceeds_threshold",
718
+ "framework_signal_unrecognised",
719
+ "otel_attribute_missing",
720
+ "delegation_loop_detected"
463
721
  ]
464
722
  },
465
723
  "severity": {
@@ -500,9 +758,10 @@
500
758
  },
501
759
  "propertyNames": {
502
760
  "pattern": "^[a-z][a-z0-9_]{0,31}$"
503
- }
761
+ },
762
+ "maxProperties": 16
504
763
  },
505
- "prev_hash": {
764
+ "prev_event_hash": {
506
765
  "$ref": "#/definitions/EvidenceBundle/properties/events/items/properties/actor/properties/tool_version_hash"
507
766
  },
508
767
  "event_hash": {
@@ -535,7 +794,7 @@
535
794
  "schema_version",
536
795
  "event_id",
537
796
  "tenant_id",
538
- "agent_run_id",
797
+ "run_id",
539
798
  "parent_event_id",
540
799
  "captured_at",
541
800
  "received_at",
@@ -543,9 +802,8 @@
543
802
  "sdk",
544
803
  "actor",
545
804
  "action",
546
- "subject",
547
805
  "redaction_policy_version",
548
- "prev_hash",
806
+ "prev_event_hash",
549
807
  "event_hash"
550
808
  ],
551
809
  "additionalProperties": false