@runfile-ai/schemas 0.4.0 → 0.6.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/canonical.d.ts +29 -3
- package/dist/canonical.d.ts.map +1 -1
- package/dist/canonical.js +43 -5
- package/dist/canonical.js.map +1 -1
- package/dist/event.d.ts +66 -66
- package/dist/event.d.ts.map +1 -1
- package/dist/event.js +1 -1
- package/dist/event.js.map +1 -1
- package/dist/evidence.d.ts +85 -85
- package/dist/ingest.d.ts +224 -224
- package/dist/manifest.d.ts +2 -2
- package/generated/json-schema/event.json +3 -1
- package/generated/json-schema/evidence.json +3 -1
- package/generated/json-schema/ingest.json +3 -1
- package/package.json +1 -1
package/dist/evidence.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
35
35
|
received_at: z.ZodString;
|
|
36
36
|
wall_clock_source: z.ZodEnum<["aws_time_sync", "ntp", "host_system", "unknown"]>;
|
|
37
37
|
sdk: z.ZodObject<{
|
|
38
|
-
name: z.ZodEnum<["runfile-py", "@runfile/sdk"]>;
|
|
38
|
+
name: z.ZodEnum<["runfile-py", "@runfile/sdk", "runfile-ai", "@runfile-ai/sdk"]>;
|
|
39
39
|
version: z.ZodString;
|
|
40
40
|
framework: z.ZodEnum<["langgraph", "langgraph_js", "openai_agents", "openai_agents_js", "anthropic_claude", "anthropic_claude_js", "claude_agent_sdk", "mastra", "vercel_ai_sdk", "pydantic_ai", "crewai", "mcp_client", "otel_generic", "manual"]>;
|
|
41
41
|
framework_version: z.ZodOptional<z.ZodString>;
|
|
@@ -43,14 +43,14 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
43
43
|
host: z.ZodOptional<z.ZodString>;
|
|
44
44
|
}, "strict", z.ZodTypeAny, {
|
|
45
45
|
framework: "langgraph" | "openai_agents" | "claude_agent_sdk" | "vercel_ai_sdk" | "manual" | "langgraph_js" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "pydantic_ai" | "crewai" | "mcp_client" | "otel_generic";
|
|
46
|
-
name: "runfile-py" | "@runfile/sdk";
|
|
46
|
+
name: "runfile-py" | "@runfile/sdk" | "runfile-ai" | "@runfile-ai/sdk";
|
|
47
47
|
version: string;
|
|
48
48
|
framework_version?: string | undefined;
|
|
49
49
|
adapter?: string | undefined;
|
|
50
50
|
host?: string | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
framework: "langgraph" | "openai_agents" | "claude_agent_sdk" | "vercel_ai_sdk" | "manual" | "langgraph_js" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "pydantic_ai" | "crewai" | "mcp_client" | "otel_generic";
|
|
53
|
-
name: "runfile-py" | "@runfile/sdk";
|
|
53
|
+
name: "runfile-py" | "@runfile/sdk" | "runfile-ai" | "@runfile-ai/sdk";
|
|
54
54
|
version: string;
|
|
55
55
|
framework_version?: string | undefined;
|
|
56
56
|
adapter?: string | undefined;
|
|
@@ -423,20 +423,20 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
423
423
|
}>>;
|
|
424
424
|
}, "strict", z.ZodTypeAny, {
|
|
425
425
|
event_hash: string;
|
|
426
|
+
tenant_id: string;
|
|
427
|
+
received_at: string;
|
|
426
428
|
run_id: string;
|
|
427
429
|
event_id: string;
|
|
428
430
|
schema_version: string;
|
|
429
|
-
tenant_id: string;
|
|
430
431
|
redaction_policy_version: string;
|
|
431
432
|
parent_event_id: string | null;
|
|
432
433
|
segment_index: number;
|
|
433
434
|
local_seq: number;
|
|
434
435
|
captured_at: string;
|
|
435
|
-
received_at: string;
|
|
436
436
|
wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
|
|
437
437
|
sdk: {
|
|
438
438
|
framework: "langgraph" | "openai_agents" | "claude_agent_sdk" | "vercel_ai_sdk" | "manual" | "langgraph_js" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "pydantic_ai" | "crewai" | "mcp_client" | "otel_generic";
|
|
439
|
-
name: "runfile-py" | "@runfile/sdk";
|
|
439
|
+
name: "runfile-py" | "@runfile/sdk" | "runfile-ai" | "@runfile-ai/sdk";
|
|
440
440
|
version: string;
|
|
441
441
|
framework_version?: string | undefined;
|
|
442
442
|
adapter?: string | undefined;
|
|
@@ -457,6 +457,16 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
457
457
|
duration_ms?: number | undefined;
|
|
458
458
|
};
|
|
459
459
|
prev_event_hash: string;
|
|
460
|
+
anomaly_flags?: {
|
|
461
|
+
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
462
|
+
severity: "info" | "warning" | "error" | "critical";
|
|
463
|
+
detail?: string | undefined;
|
|
464
|
+
}[] | undefined;
|
|
465
|
+
merkle_inclusion?: {
|
|
466
|
+
manifest_uri: string;
|
|
467
|
+
leaf_index: number;
|
|
468
|
+
merkle_root: string;
|
|
469
|
+
} | undefined;
|
|
460
470
|
decision?: {
|
|
461
471
|
outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
|
|
462
472
|
outcome_label?: string | undefined;
|
|
@@ -552,32 +562,22 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
552
562
|
gen_ai_conversation_id?: string | undefined;
|
|
553
563
|
extra?: Record<string, string | number | boolean> | undefined;
|
|
554
564
|
} | undefined;
|
|
555
|
-
anomaly_flags?: {
|
|
556
|
-
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
557
|
-
severity: "info" | "warning" | "error" | "critical";
|
|
558
|
-
detail?: string | undefined;
|
|
559
|
-
}[] | undefined;
|
|
560
|
-
merkle_inclusion?: {
|
|
561
|
-
manifest_uri: string;
|
|
562
|
-
leaf_index: number;
|
|
563
|
-
merkle_root: string;
|
|
564
|
-
} | undefined;
|
|
565
565
|
}, {
|
|
566
566
|
event_hash: string;
|
|
567
|
+
tenant_id: string;
|
|
568
|
+
received_at: string;
|
|
567
569
|
run_id: string;
|
|
568
570
|
event_id: string;
|
|
569
571
|
schema_version: string;
|
|
570
|
-
tenant_id: string;
|
|
571
572
|
redaction_policy_version: string;
|
|
572
573
|
parent_event_id: string | null;
|
|
573
574
|
segment_index: number;
|
|
574
575
|
local_seq: number;
|
|
575
576
|
captured_at: string;
|
|
576
|
-
received_at: string;
|
|
577
577
|
wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
|
|
578
578
|
sdk: {
|
|
579
579
|
framework: "langgraph" | "openai_agents" | "claude_agent_sdk" | "vercel_ai_sdk" | "manual" | "langgraph_js" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "pydantic_ai" | "crewai" | "mcp_client" | "otel_generic";
|
|
580
|
-
name: "runfile-py" | "@runfile/sdk";
|
|
580
|
+
name: "runfile-py" | "@runfile/sdk" | "runfile-ai" | "@runfile-ai/sdk";
|
|
581
581
|
version: string;
|
|
582
582
|
framework_version?: string | undefined;
|
|
583
583
|
adapter?: string | undefined;
|
|
@@ -598,6 +598,16 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
598
598
|
duration_ms?: number | undefined;
|
|
599
599
|
};
|
|
600
600
|
prev_event_hash: string;
|
|
601
|
+
anomaly_flags?: {
|
|
602
|
+
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
603
|
+
severity: "info" | "warning" | "error" | "critical";
|
|
604
|
+
detail?: string | undefined;
|
|
605
|
+
}[] | undefined;
|
|
606
|
+
merkle_inclusion?: {
|
|
607
|
+
manifest_uri: string;
|
|
608
|
+
leaf_index: number;
|
|
609
|
+
merkle_root: string;
|
|
610
|
+
} | undefined;
|
|
601
611
|
decision?: {
|
|
602
612
|
outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
|
|
603
613
|
outcome_label?: string | undefined;
|
|
@@ -693,32 +703,22 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
693
703
|
gen_ai_conversation_id?: string | undefined;
|
|
694
704
|
extra?: Record<string, string | number | boolean> | undefined;
|
|
695
705
|
} | undefined;
|
|
696
|
-
anomaly_flags?: {
|
|
697
|
-
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
698
|
-
severity: "info" | "warning" | "error" | "critical";
|
|
699
|
-
detail?: string | undefined;
|
|
700
|
-
}[] | undefined;
|
|
701
|
-
merkle_inclusion?: {
|
|
702
|
-
manifest_uri: string;
|
|
703
|
-
leaf_index: number;
|
|
704
|
-
merkle_root: string;
|
|
705
|
-
} | undefined;
|
|
706
706
|
}>, {
|
|
707
707
|
event_hash: string;
|
|
708
|
+
tenant_id: string;
|
|
709
|
+
received_at: string;
|
|
708
710
|
run_id: string;
|
|
709
711
|
event_id: string;
|
|
710
712
|
schema_version: string;
|
|
711
|
-
tenant_id: string;
|
|
712
713
|
redaction_policy_version: string;
|
|
713
714
|
parent_event_id: string | null;
|
|
714
715
|
segment_index: number;
|
|
715
716
|
local_seq: number;
|
|
716
717
|
captured_at: string;
|
|
717
|
-
received_at: string;
|
|
718
718
|
wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
|
|
719
719
|
sdk: {
|
|
720
720
|
framework: "langgraph" | "openai_agents" | "claude_agent_sdk" | "vercel_ai_sdk" | "manual" | "langgraph_js" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "pydantic_ai" | "crewai" | "mcp_client" | "otel_generic";
|
|
721
|
-
name: "runfile-py" | "@runfile/sdk";
|
|
721
|
+
name: "runfile-py" | "@runfile/sdk" | "runfile-ai" | "@runfile-ai/sdk";
|
|
722
722
|
version: string;
|
|
723
723
|
framework_version?: string | undefined;
|
|
724
724
|
adapter?: string | undefined;
|
|
@@ -739,6 +739,16 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
739
739
|
duration_ms?: number | undefined;
|
|
740
740
|
};
|
|
741
741
|
prev_event_hash: string;
|
|
742
|
+
anomaly_flags?: {
|
|
743
|
+
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
744
|
+
severity: "info" | "warning" | "error" | "critical";
|
|
745
|
+
detail?: string | undefined;
|
|
746
|
+
}[] | undefined;
|
|
747
|
+
merkle_inclusion?: {
|
|
748
|
+
manifest_uri: string;
|
|
749
|
+
leaf_index: number;
|
|
750
|
+
merkle_root: string;
|
|
751
|
+
} | undefined;
|
|
742
752
|
decision?: {
|
|
743
753
|
outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
|
|
744
754
|
outcome_label?: string | undefined;
|
|
@@ -834,32 +844,22 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
834
844
|
gen_ai_conversation_id?: string | undefined;
|
|
835
845
|
extra?: Record<string, string | number | boolean> | undefined;
|
|
836
846
|
} | undefined;
|
|
837
|
-
anomaly_flags?: {
|
|
838
|
-
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
839
|
-
severity: "info" | "warning" | "error" | "critical";
|
|
840
|
-
detail?: string | undefined;
|
|
841
|
-
}[] | undefined;
|
|
842
|
-
merkle_inclusion?: {
|
|
843
|
-
manifest_uri: string;
|
|
844
|
-
leaf_index: number;
|
|
845
|
-
merkle_root: string;
|
|
846
|
-
} | undefined;
|
|
847
847
|
}, {
|
|
848
848
|
event_hash: string;
|
|
849
|
+
tenant_id: string;
|
|
850
|
+
received_at: string;
|
|
849
851
|
run_id: string;
|
|
850
852
|
event_id: string;
|
|
851
853
|
schema_version: string;
|
|
852
|
-
tenant_id: string;
|
|
853
854
|
redaction_policy_version: string;
|
|
854
855
|
parent_event_id: string | null;
|
|
855
856
|
segment_index: number;
|
|
856
857
|
local_seq: number;
|
|
857
858
|
captured_at: string;
|
|
858
|
-
received_at: string;
|
|
859
859
|
wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
|
|
860
860
|
sdk: {
|
|
861
861
|
framework: "langgraph" | "openai_agents" | "claude_agent_sdk" | "vercel_ai_sdk" | "manual" | "langgraph_js" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "pydantic_ai" | "crewai" | "mcp_client" | "otel_generic";
|
|
862
|
-
name: "runfile-py" | "@runfile/sdk";
|
|
862
|
+
name: "runfile-py" | "@runfile/sdk" | "runfile-ai" | "@runfile-ai/sdk";
|
|
863
863
|
version: string;
|
|
864
864
|
framework_version?: string | undefined;
|
|
865
865
|
adapter?: string | undefined;
|
|
@@ -880,6 +880,16 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
880
880
|
duration_ms?: number | undefined;
|
|
881
881
|
};
|
|
882
882
|
prev_event_hash: string;
|
|
883
|
+
anomaly_flags?: {
|
|
884
|
+
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
885
|
+
severity: "info" | "warning" | "error" | "critical";
|
|
886
|
+
detail?: string | undefined;
|
|
887
|
+
}[] | undefined;
|
|
888
|
+
merkle_inclusion?: {
|
|
889
|
+
manifest_uri: string;
|
|
890
|
+
leaf_index: number;
|
|
891
|
+
merkle_root: string;
|
|
892
|
+
} | undefined;
|
|
883
893
|
decision?: {
|
|
884
894
|
outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
|
|
885
895
|
outcome_label?: string | undefined;
|
|
@@ -975,16 +985,6 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
975
985
|
gen_ai_conversation_id?: string | undefined;
|
|
976
986
|
extra?: Record<string, string | number | boolean> | undefined;
|
|
977
987
|
} | undefined;
|
|
978
|
-
anomaly_flags?: {
|
|
979
|
-
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
980
|
-
severity: "info" | "warning" | "error" | "critical";
|
|
981
|
-
detail?: string | undefined;
|
|
982
|
-
}[] | undefined;
|
|
983
|
-
merkle_inclusion?: {
|
|
984
|
-
manifest_uri: string;
|
|
985
|
-
leaf_index: number;
|
|
986
|
-
merkle_root: string;
|
|
987
|
-
} | undefined;
|
|
988
988
|
}>, "many">;
|
|
989
989
|
manifests: z.ZodArray<z.ZodObject<{
|
|
990
990
|
manifest_version: z.ZodString;
|
|
@@ -1036,9 +1036,9 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1036
1036
|
inclusion_proof: string;
|
|
1037
1037
|
}>>;
|
|
1038
1038
|
}, "strict", z.ZodTypeAny, {
|
|
1039
|
+
tenant_id: string;
|
|
1039
1040
|
merkle_root: string;
|
|
1040
1041
|
schema_version: string;
|
|
1041
|
-
tenant_id: string;
|
|
1042
1042
|
manifest_version: string;
|
|
1043
1043
|
day_utc: string;
|
|
1044
1044
|
built_at: string;
|
|
@@ -1061,9 +1061,9 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1061
1061
|
inclusion_proof: string;
|
|
1062
1062
|
} | undefined;
|
|
1063
1063
|
}, {
|
|
1064
|
+
tenant_id: string;
|
|
1064
1065
|
merkle_root: string;
|
|
1065
1066
|
schema_version: string;
|
|
1066
|
-
tenant_id: string;
|
|
1067
1067
|
manifest_version: string;
|
|
1068
1068
|
day_utc: string;
|
|
1069
1069
|
built_at: string;
|
|
@@ -1099,20 +1099,20 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1099
1099
|
};
|
|
1100
1100
|
events: {
|
|
1101
1101
|
event_hash: string;
|
|
1102
|
+
tenant_id: string;
|
|
1103
|
+
received_at: string;
|
|
1102
1104
|
run_id: string;
|
|
1103
1105
|
event_id: string;
|
|
1104
1106
|
schema_version: string;
|
|
1105
|
-
tenant_id: string;
|
|
1106
1107
|
redaction_policy_version: string;
|
|
1107
1108
|
parent_event_id: string | null;
|
|
1108
1109
|
segment_index: number;
|
|
1109
1110
|
local_seq: number;
|
|
1110
1111
|
captured_at: string;
|
|
1111
|
-
received_at: string;
|
|
1112
1112
|
wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
|
|
1113
1113
|
sdk: {
|
|
1114
1114
|
framework: "langgraph" | "openai_agents" | "claude_agent_sdk" | "vercel_ai_sdk" | "manual" | "langgraph_js" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "pydantic_ai" | "crewai" | "mcp_client" | "otel_generic";
|
|
1115
|
-
name: "runfile-py" | "@runfile/sdk";
|
|
1115
|
+
name: "runfile-py" | "@runfile/sdk" | "runfile-ai" | "@runfile-ai/sdk";
|
|
1116
1116
|
version: string;
|
|
1117
1117
|
framework_version?: string | undefined;
|
|
1118
1118
|
adapter?: string | undefined;
|
|
@@ -1133,6 +1133,16 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1133
1133
|
duration_ms?: number | undefined;
|
|
1134
1134
|
};
|
|
1135
1135
|
prev_event_hash: string;
|
|
1136
|
+
anomaly_flags?: {
|
|
1137
|
+
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
1138
|
+
severity: "info" | "warning" | "error" | "critical";
|
|
1139
|
+
detail?: string | undefined;
|
|
1140
|
+
}[] | undefined;
|
|
1141
|
+
merkle_inclusion?: {
|
|
1142
|
+
manifest_uri: string;
|
|
1143
|
+
leaf_index: number;
|
|
1144
|
+
merkle_root: string;
|
|
1145
|
+
} | undefined;
|
|
1136
1146
|
decision?: {
|
|
1137
1147
|
outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
|
|
1138
1148
|
outcome_label?: string | undefined;
|
|
@@ -1228,21 +1238,11 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1228
1238
|
gen_ai_conversation_id?: string | undefined;
|
|
1229
1239
|
extra?: Record<string, string | number | boolean> | undefined;
|
|
1230
1240
|
} | undefined;
|
|
1231
|
-
anomaly_flags?: {
|
|
1232
|
-
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
1233
|
-
severity: "info" | "warning" | "error" | "critical";
|
|
1234
|
-
detail?: string | undefined;
|
|
1235
|
-
}[] | undefined;
|
|
1236
|
-
merkle_inclusion?: {
|
|
1237
|
-
manifest_uri: string;
|
|
1238
|
-
leaf_index: number;
|
|
1239
|
-
merkle_root: string;
|
|
1240
|
-
} | undefined;
|
|
1241
1241
|
}[];
|
|
1242
1242
|
manifests: {
|
|
1243
|
+
tenant_id: string;
|
|
1243
1244
|
merkle_root: string;
|
|
1244
1245
|
schema_version: string;
|
|
1245
|
-
tenant_id: string;
|
|
1246
1246
|
manifest_version: string;
|
|
1247
1247
|
day_utc: string;
|
|
1248
1248
|
built_at: string;
|
|
@@ -1279,20 +1279,20 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1279
1279
|
};
|
|
1280
1280
|
events: {
|
|
1281
1281
|
event_hash: string;
|
|
1282
|
+
tenant_id: string;
|
|
1283
|
+
received_at: string;
|
|
1282
1284
|
run_id: string;
|
|
1283
1285
|
event_id: string;
|
|
1284
1286
|
schema_version: string;
|
|
1285
|
-
tenant_id: string;
|
|
1286
1287
|
redaction_policy_version: string;
|
|
1287
1288
|
parent_event_id: string | null;
|
|
1288
1289
|
segment_index: number;
|
|
1289
1290
|
local_seq: number;
|
|
1290
1291
|
captured_at: string;
|
|
1291
|
-
received_at: string;
|
|
1292
1292
|
wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
|
|
1293
1293
|
sdk: {
|
|
1294
1294
|
framework: "langgraph" | "openai_agents" | "claude_agent_sdk" | "vercel_ai_sdk" | "manual" | "langgraph_js" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "pydantic_ai" | "crewai" | "mcp_client" | "otel_generic";
|
|
1295
|
-
name: "runfile-py" | "@runfile/sdk";
|
|
1295
|
+
name: "runfile-py" | "@runfile/sdk" | "runfile-ai" | "@runfile-ai/sdk";
|
|
1296
1296
|
version: string;
|
|
1297
1297
|
framework_version?: string | undefined;
|
|
1298
1298
|
adapter?: string | undefined;
|
|
@@ -1313,6 +1313,16 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1313
1313
|
duration_ms?: number | undefined;
|
|
1314
1314
|
};
|
|
1315
1315
|
prev_event_hash: string;
|
|
1316
|
+
anomaly_flags?: {
|
|
1317
|
+
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
1318
|
+
severity: "info" | "warning" | "error" | "critical";
|
|
1319
|
+
detail?: string | undefined;
|
|
1320
|
+
}[] | undefined;
|
|
1321
|
+
merkle_inclusion?: {
|
|
1322
|
+
manifest_uri: string;
|
|
1323
|
+
leaf_index: number;
|
|
1324
|
+
merkle_root: string;
|
|
1325
|
+
} | undefined;
|
|
1316
1326
|
decision?: {
|
|
1317
1327
|
outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
|
|
1318
1328
|
outcome_label?: string | undefined;
|
|
@@ -1408,21 +1418,11 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1408
1418
|
gen_ai_conversation_id?: string | undefined;
|
|
1409
1419
|
extra?: Record<string, string | number | boolean> | undefined;
|
|
1410
1420
|
} | undefined;
|
|
1411
|
-
anomaly_flags?: {
|
|
1412
|
-
code: "missing_ambient_context" | "chain_break" | "sequence_gap" | "causality_violation" | "out_of_order_arrival" | "model_version_drift" | "unknown_agent_identity" | "data_classification_mismatch" | "policy_threshold_without_hitl" | "unauthorized_tool_invocation" | "redaction_policy_mismatch" | "schema_version_warning" | "agent_identity_mismatch_with_run" | "suspension_sla_exceeded" | "apparent_crash_detected" | "active_duration_exceeds_threshold" | "framework_signal_unrecognised" | "otel_attribute_missing" | "delegation_loop_detected";
|
|
1413
|
-
severity: "info" | "warning" | "error" | "critical";
|
|
1414
|
-
detail?: string | undefined;
|
|
1415
|
-
}[] | undefined;
|
|
1416
|
-
merkle_inclusion?: {
|
|
1417
|
-
manifest_uri: string;
|
|
1418
|
-
leaf_index: number;
|
|
1419
|
-
merkle_root: string;
|
|
1420
|
-
} | undefined;
|
|
1421
1421
|
}[];
|
|
1422
1422
|
manifests: {
|
|
1423
|
+
tenant_id: string;
|
|
1423
1424
|
merkle_root: string;
|
|
1424
1425
|
schema_version: string;
|
|
1425
|
-
tenant_id: string;
|
|
1426
1426
|
manifest_version: string;
|
|
1427
1427
|
day_utc: string;
|
|
1428
1428
|
built_at: string;
|