@runfile-ai/schemas 0.1.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.
Files changed (41) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +163 -0
  3. package/dist/canonical.d.ts +32 -0
  4. package/dist/canonical.d.ts.map +1 -0
  5. package/dist/canonical.js +46 -0
  6. package/dist/canonical.js.map +1 -0
  7. package/dist/control-mapping.d.ts +85 -0
  8. package/dist/control-mapping.d.ts.map +1 -0
  9. package/dist/control-mapping.js +31 -0
  10. package/dist/control-mapping.js.map +1 -0
  11. package/dist/event.d.ts +866 -0
  12. package/dist/event.d.ts.map +1 -0
  13. package/dist/event.js +289 -0
  14. package/dist/event.js.map +1 -0
  15. package/dist/evidence.d.ts +955 -0
  16. package/dist/evidence.d.ts.map +1 -0
  17. package/dist/evidence.js +31 -0
  18. package/dist/evidence.js.map +1 -0
  19. package/dist/index.d.ts +8 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +8 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/ingest.d.ts +1595 -0
  24. package/dist/ingest.d.ts.map +1 -0
  25. package/dist/ingest.js +177 -0
  26. package/dist/ingest.js.map +1 -0
  27. package/dist/manifest.d.ts +110 -0
  28. package/dist/manifest.d.ts.map +1 -0
  29. package/dist/manifest.js +46 -0
  30. package/dist/manifest.js.map +1 -0
  31. package/dist/vault.d.ts +459 -0
  32. package/dist/vault.d.ts.map +1 -0
  33. package/dist/vault.js +188 -0
  34. package/dist/vault.js.map +1 -0
  35. package/generated/json-schema/control_mapping.json +107 -0
  36. package/generated/json-schema/event.json +600 -0
  37. package/generated/json-schema/evidence.json +721 -0
  38. package/generated/json-schema/ingest.json +800 -0
  39. package/generated/json-schema/manifest.json +148 -0
  40. package/generated/json-schema/vault.json +468 -0
  41. package/package.json +59 -0
@@ -0,0 +1,955 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Evidence bundle — the exportable, offline-verifiable package consumed by the
4
+ * Verifier CLI. Combines a slice of events with the manifests that anchor them.
5
+ *
6
+ * Structure roughly follows JSON-LD conventions (the PDF rendering is produced
7
+ * separately by the Evidence Builder service).
8
+ */
9
+ export declare const EvidenceBundleSchema: z.ZodObject<{
10
+ bundle_version: z.ZodString;
11
+ bundle_id: z.ZodString;
12
+ generated_at: z.ZodString;
13
+ tenant_id: z.ZodString;
14
+ engagement_id: z.ZodOptional<z.ZodString>;
15
+ period: z.ZodObject<{
16
+ from: z.ZodString;
17
+ to: z.ZodString;
18
+ }, "strict", z.ZodTypeAny, {
19
+ from: string;
20
+ to: string;
21
+ }, {
22
+ from: string;
23
+ to: string;
24
+ }>;
25
+ events: z.ZodArray<z.ZodEffects<z.ZodObject<{
26
+ schema_version: z.ZodString;
27
+ event_id: z.ZodString;
28
+ tenant_id: z.ZodString;
29
+ agent_run_id: z.ZodString;
30
+ parent_event_id: z.ZodNullable<z.ZodString>;
31
+ captured_at: z.ZodString;
32
+ received_at: z.ZodString;
33
+ wall_clock_source: z.ZodEnum<["aws_time_sync", "ntp", "host_system", "unknown"]>;
34
+ sdk: z.ZodObject<{
35
+ name: z.ZodEnum<["runfile-py", "@runfile/sdk"]>;
36
+ version: z.ZodString;
37
+ framework: z.ZodEnum<["langgraph", "langgraph_js", "openai_agents", "openai_agents_js", "anthropic_claude", "anthropic_claude_js", "mastra", "vercel_ai_sdk", "mcp_client", "otel_generic", "manual"]>;
38
+ framework_version: z.ZodOptional<z.ZodString>;
39
+ host: z.ZodOptional<z.ZodString>;
40
+ }, "strict", z.ZodTypeAny, {
41
+ framework: "langgraph" | "langgraph_js" | "openai_agents" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "vercel_ai_sdk" | "mcp_client" | "otel_generic" | "manual";
42
+ name: "runfile-py" | "@runfile/sdk";
43
+ version: string;
44
+ framework_version?: string | undefined;
45
+ host?: string | undefined;
46
+ }, {
47
+ framework: "langgraph" | "langgraph_js" | "openai_agents" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "vercel_ai_sdk" | "mcp_client" | "otel_generic" | "manual";
48
+ name: "runfile-py" | "@runfile/sdk";
49
+ version: string;
50
+ framework_version?: string | undefined;
51
+ host?: string | undefined;
52
+ }>;
53
+ actor: z.ZodEffects<z.ZodObject<{
54
+ type: z.ZodEnum<["agent", "human", "tool", "system"]>;
55
+ agent_identity: z.ZodOptional<z.ZodString>;
56
+ human_principal: z.ZodOptional<z.ZodString>;
57
+ delegation_chain: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
58
+ tool_id: z.ZodOptional<z.ZodString>;
59
+ tool_version_hash: z.ZodOptional<z.ZodString>;
60
+ }, "strict", z.ZodTypeAny, {
61
+ type: "agent" | "human" | "tool" | "system";
62
+ delegation_chain: string[];
63
+ agent_identity?: string | undefined;
64
+ human_principal?: string | undefined;
65
+ tool_id?: string | undefined;
66
+ tool_version_hash?: string | undefined;
67
+ }, {
68
+ type: "agent" | "human" | "tool" | "system";
69
+ agent_identity?: string | undefined;
70
+ human_principal?: string | undefined;
71
+ delegation_chain?: string[] | undefined;
72
+ tool_id?: string | undefined;
73
+ tool_version_hash?: string | undefined;
74
+ }>, {
75
+ type: "agent" | "human" | "tool" | "system";
76
+ delegation_chain: string[];
77
+ agent_identity?: string | undefined;
78
+ human_principal?: string | undefined;
79
+ tool_id?: string | undefined;
80
+ tool_version_hash?: string | undefined;
81
+ }, {
82
+ type: "agent" | "human" | "tool" | "system";
83
+ agent_identity?: string | undefined;
84
+ human_principal?: string | undefined;
85
+ delegation_chain?: string[] | undefined;
86
+ tool_id?: string | undefined;
87
+ tool_version_hash?: string | undefined;
88
+ }>;
89
+ action: z.ZodObject<{
90
+ kind: z.ZodEnum<["agent_run_start", "agent_run_end", "graph_node_enter", "graph_node_exit", "llm_call", "tool_call", "tool_result", "state_read", "state_write", "decision", "handoff", "human_approval", "human_input", "policy_check", "anomaly_flag", "sdk_diagnostic"]>;
91
+ name: z.ZodString;
92
+ outcome: z.ZodOptional<z.ZodEnum<["success", "failure", "partial", "timeout", "cancelled"]>>;
93
+ duration_ms: z.ZodOptional<z.ZodNumber>;
94
+ }, "strict", z.ZodTypeAny, {
95
+ kind: "agent_run_start" | "agent_run_end" | "graph_node_enter" | "graph_node_exit" | "llm_call" | "tool_call" | "tool_result" | "state_read" | "state_write" | "decision" | "handoff" | "human_approval" | "human_input" | "policy_check" | "anomaly_flag" | "sdk_diagnostic";
96
+ name: string;
97
+ outcome?: "success" | "failure" | "partial" | "timeout" | "cancelled" | undefined;
98
+ duration_ms?: number | undefined;
99
+ }, {
100
+ kind: "agent_run_start" | "agent_run_end" | "graph_node_enter" | "graph_node_exit" | "llm_call" | "tool_call" | "tool_result" | "state_read" | "state_write" | "decision" | "handoff" | "human_approval" | "human_input" | "policy_check" | "anomaly_flag" | "sdk_diagnostic";
101
+ name: string;
102
+ outcome?: "success" | "failure" | "partial" | "timeout" | "cancelled" | undefined;
103
+ duration_ms?: number | undefined;
104
+ }>;
105
+ subject: z.ZodObject<{
106
+ resource_urn: z.ZodOptional<z.ZodString>;
107
+ data_classification: z.ZodOptional<z.ZodEnum<["public", "internal", "confidential", "pii", "phi", "pci", "fci"]>>;
108
+ regulatory_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
109
+ }, "strict", z.ZodTypeAny, {
110
+ regulatory_tags?: string[] | undefined;
111
+ resource_urn?: string | undefined;
112
+ data_classification?: "public" | "internal" | "confidential" | "pii" | "phi" | "pci" | "fci" | undefined;
113
+ }, {
114
+ regulatory_tags?: string[] | undefined;
115
+ resource_urn?: string | undefined;
116
+ data_classification?: "public" | "internal" | "confidential" | "pii" | "phi" | "pci" | "fci" | undefined;
117
+ }>;
118
+ model_ref: z.ZodOptional<z.ZodObject<{
119
+ provider: z.ZodEnum<["anthropic", "openai", "google", "aws_bedrock", "azure_openai", "ollama", "self_hosted", "other"]>;
120
+ model_id: z.ZodString;
121
+ model_version_hash: z.ZodOptional<z.ZodString>;
122
+ system_prompt_hash: z.ZodOptional<z.ZodString>;
123
+ tools_hash: z.ZodOptional<z.ZodString>;
124
+ input_tokens: z.ZodOptional<z.ZodNumber>;
125
+ output_tokens: z.ZodOptional<z.ZodNumber>;
126
+ temperature: z.ZodOptional<z.ZodNumber>;
127
+ }, "strict", z.ZodTypeAny, {
128
+ provider: "anthropic" | "openai" | "google" | "aws_bedrock" | "azure_openai" | "ollama" | "self_hosted" | "other";
129
+ model_id: string;
130
+ model_version_hash?: string | undefined;
131
+ system_prompt_hash?: string | undefined;
132
+ tools_hash?: string | undefined;
133
+ input_tokens?: number | undefined;
134
+ output_tokens?: number | undefined;
135
+ temperature?: number | undefined;
136
+ }, {
137
+ provider: "anthropic" | "openai" | "google" | "aws_bedrock" | "azure_openai" | "ollama" | "self_hosted" | "other";
138
+ model_id: string;
139
+ model_version_hash?: string | undefined;
140
+ system_prompt_hash?: string | undefined;
141
+ tools_hash?: string | undefined;
142
+ input_tokens?: number | undefined;
143
+ output_tokens?: number | undefined;
144
+ temperature?: number | undefined;
145
+ }>>;
146
+ decision: z.ZodOptional<z.ZodObject<{
147
+ outcome: z.ZodEnum<["approved", "denied", "escalated", "deferred", "no_action", "custom"]>;
148
+ outcome_label: z.ZodOptional<z.ZodString>;
149
+ confidence: z.ZodOptional<z.ZodNumber>;
150
+ human_in_the_loop: z.ZodOptional<z.ZodBoolean>;
151
+ policy_thresholds_crossed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
152
+ reversed_by_event: z.ZodOptional<z.ZodString>;
153
+ }, "strict", z.ZodTypeAny, {
154
+ outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
155
+ outcome_label?: string | undefined;
156
+ confidence?: number | undefined;
157
+ human_in_the_loop?: boolean | undefined;
158
+ policy_thresholds_crossed?: string[] | undefined;
159
+ reversed_by_event?: string | undefined;
160
+ }, {
161
+ outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
162
+ outcome_label?: string | undefined;
163
+ confidence?: number | undefined;
164
+ human_in_the_loop?: boolean | undefined;
165
+ policy_thresholds_crossed?: string[] | undefined;
166
+ reversed_by_event?: string | undefined;
167
+ }>>;
168
+ payload_ref: z.ZodOptional<z.ZodObject<{
169
+ s3_uri: z.ZodString;
170
+ sha256: z.ZodString;
171
+ size_bytes: z.ZodNumber;
172
+ encryption: z.ZodObject<{
173
+ algorithm: z.ZodLiteral<"aes-256-gcm">;
174
+ data_key_wrapped: z.ZodString;
175
+ kms_key_arn: z.ZodOptional<z.ZodString>;
176
+ }, "strict", z.ZodTypeAny, {
177
+ algorithm: "aes-256-gcm";
178
+ data_key_wrapped: string;
179
+ kms_key_arn?: string | undefined;
180
+ }, {
181
+ algorithm: "aes-256-gcm";
182
+ data_key_wrapped: string;
183
+ kms_key_arn?: string | undefined;
184
+ }>;
185
+ content_type: z.ZodOptional<z.ZodEnum<["application/json", "text/plain", "application/vnd.runfile.llm-request+json", "application/vnd.runfile.llm-response+json", "application/vnd.runfile.tool-call+json", "application/vnd.runfile.tool-result+json", "application/vnd.runfile.state-snapshot+json"]>>;
186
+ redaction_applied: z.ZodOptional<z.ZodObject<{
187
+ redacted_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
188
+ tokenized_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
189
+ classifier_version: z.ZodOptional<z.ZodString>;
190
+ }, "strict", z.ZodTypeAny, {
191
+ redacted_classes?: string[] | undefined;
192
+ tokenized_classes?: string[] | undefined;
193
+ classifier_version?: string | undefined;
194
+ }, {
195
+ redacted_classes?: string[] | undefined;
196
+ tokenized_classes?: string[] | undefined;
197
+ classifier_version?: string | undefined;
198
+ }>>;
199
+ }, "strict", z.ZodTypeAny, {
200
+ sha256: string;
201
+ s3_uri: string;
202
+ size_bytes: number;
203
+ encryption: {
204
+ algorithm: "aes-256-gcm";
205
+ data_key_wrapped: string;
206
+ kms_key_arn?: string | undefined;
207
+ };
208
+ content_type?: "application/json" | "text/plain" | "application/vnd.runfile.llm-request+json" | "application/vnd.runfile.llm-response+json" | "application/vnd.runfile.tool-call+json" | "application/vnd.runfile.tool-result+json" | "application/vnd.runfile.state-snapshot+json" | undefined;
209
+ redaction_applied?: {
210
+ redacted_classes?: string[] | undefined;
211
+ tokenized_classes?: string[] | undefined;
212
+ classifier_version?: string | undefined;
213
+ } | undefined;
214
+ }, {
215
+ sha256: string;
216
+ s3_uri: string;
217
+ size_bytes: number;
218
+ encryption: {
219
+ algorithm: "aes-256-gcm";
220
+ data_key_wrapped: string;
221
+ kms_key_arn?: string | undefined;
222
+ };
223
+ content_type?: "application/json" | "text/plain" | "application/vnd.runfile.llm-request+json" | "application/vnd.runfile.llm-response+json" | "application/vnd.runfile.tool-call+json" | "application/vnd.runfile.tool-result+json" | "application/vnd.runfile.state-snapshot+json" | undefined;
224
+ redaction_applied?: {
225
+ redacted_classes?: string[] | undefined;
226
+ tokenized_classes?: string[] | undefined;
227
+ classifier_version?: string | undefined;
228
+ } | undefined;
229
+ }>>;
230
+ redaction_policy_version: z.ZodString;
231
+ regulatory_scope_version: z.ZodOptional<z.ZodString>;
232
+ anomaly_flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
233
+ code: z.ZodEnum<["missing_ambient_context", "chain_break", "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"]>;
234
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
235
+ detail: z.ZodOptional<z.ZodString>;
236
+ }, "strict", z.ZodTypeAny, {
237
+ code: "missing_ambient_context" | "chain_break" | "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";
238
+ severity: "info" | "warning" | "error" | "critical";
239
+ detail?: string | undefined;
240
+ }, {
241
+ code: "missing_ambient_context" | "chain_break" | "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";
242
+ severity: "info" | "warning" | "error" | "critical";
243
+ detail?: string | undefined;
244
+ }>, "many">>;
245
+ environment: z.ZodOptional<z.ZodEnum<["production", "staging", "development"]>>;
246
+ labels: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
247
+ prev_hash: z.ZodString;
248
+ event_hash: z.ZodString;
249
+ merkle_inclusion: z.ZodOptional<z.ZodObject<{
250
+ manifest_uri: z.ZodString;
251
+ leaf_index: z.ZodNumber;
252
+ merkle_root: z.ZodString;
253
+ }, "strict", z.ZodTypeAny, {
254
+ manifest_uri: string;
255
+ leaf_index: number;
256
+ merkle_root: string;
257
+ }, {
258
+ manifest_uri: string;
259
+ leaf_index: number;
260
+ merkle_root: string;
261
+ }>>;
262
+ }, "strict", z.ZodTypeAny, {
263
+ event_hash: string;
264
+ schema_version: string;
265
+ event_id: string;
266
+ tenant_id: string;
267
+ agent_run_id: string;
268
+ parent_event_id: string | null;
269
+ captured_at: string;
270
+ received_at: string;
271
+ wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
272
+ sdk: {
273
+ framework: "langgraph" | "langgraph_js" | "openai_agents" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "vercel_ai_sdk" | "mcp_client" | "otel_generic" | "manual";
274
+ name: "runfile-py" | "@runfile/sdk";
275
+ version: string;
276
+ framework_version?: string | undefined;
277
+ host?: string | undefined;
278
+ };
279
+ actor: {
280
+ type: "agent" | "human" | "tool" | "system";
281
+ delegation_chain: string[];
282
+ agent_identity?: string | undefined;
283
+ human_principal?: string | undefined;
284
+ tool_id?: string | undefined;
285
+ tool_version_hash?: string | undefined;
286
+ };
287
+ action: {
288
+ kind: "agent_run_start" | "agent_run_end" | "graph_node_enter" | "graph_node_exit" | "llm_call" | "tool_call" | "tool_result" | "state_read" | "state_write" | "decision" | "handoff" | "human_approval" | "human_input" | "policy_check" | "anomaly_flag" | "sdk_diagnostic";
289
+ name: string;
290
+ outcome?: "success" | "failure" | "partial" | "timeout" | "cancelled" | undefined;
291
+ duration_ms?: number | undefined;
292
+ };
293
+ subject: {
294
+ regulatory_tags?: string[] | undefined;
295
+ resource_urn?: string | undefined;
296
+ data_classification?: "public" | "internal" | "confidential" | "pii" | "phi" | "pci" | "fci" | undefined;
297
+ };
298
+ redaction_policy_version: string;
299
+ prev_hash: string;
300
+ decision?: {
301
+ outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
302
+ outcome_label?: string | undefined;
303
+ confidence?: number | undefined;
304
+ human_in_the_loop?: boolean | undefined;
305
+ policy_thresholds_crossed?: string[] | undefined;
306
+ reversed_by_event?: string | undefined;
307
+ } | undefined;
308
+ model_ref?: {
309
+ provider: "anthropic" | "openai" | "google" | "aws_bedrock" | "azure_openai" | "ollama" | "self_hosted" | "other";
310
+ model_id: string;
311
+ model_version_hash?: string | undefined;
312
+ system_prompt_hash?: string | undefined;
313
+ tools_hash?: string | undefined;
314
+ input_tokens?: number | undefined;
315
+ output_tokens?: number | undefined;
316
+ temperature?: number | undefined;
317
+ } | undefined;
318
+ payload_ref?: {
319
+ sha256: string;
320
+ s3_uri: string;
321
+ size_bytes: number;
322
+ encryption: {
323
+ algorithm: "aes-256-gcm";
324
+ data_key_wrapped: string;
325
+ kms_key_arn?: string | undefined;
326
+ };
327
+ content_type?: "application/json" | "text/plain" | "application/vnd.runfile.llm-request+json" | "application/vnd.runfile.llm-response+json" | "application/vnd.runfile.tool-call+json" | "application/vnd.runfile.tool-result+json" | "application/vnd.runfile.state-snapshot+json" | undefined;
328
+ redaction_applied?: {
329
+ redacted_classes?: string[] | undefined;
330
+ tokenized_classes?: string[] | undefined;
331
+ classifier_version?: string | undefined;
332
+ } | undefined;
333
+ } | undefined;
334
+ regulatory_scope_version?: string | undefined;
335
+ anomaly_flags?: {
336
+ code: "missing_ambient_context" | "chain_break" | "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";
337
+ severity: "info" | "warning" | "error" | "critical";
338
+ detail?: string | undefined;
339
+ }[] | undefined;
340
+ environment?: "production" | "staging" | "development" | undefined;
341
+ labels?: Record<string, string> | undefined;
342
+ merkle_inclusion?: {
343
+ manifest_uri: string;
344
+ leaf_index: number;
345
+ merkle_root: string;
346
+ } | undefined;
347
+ }, {
348
+ event_hash: string;
349
+ schema_version: string;
350
+ event_id: string;
351
+ tenant_id: string;
352
+ agent_run_id: string;
353
+ parent_event_id: string | null;
354
+ captured_at: string;
355
+ received_at: string;
356
+ wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
357
+ sdk: {
358
+ framework: "langgraph" | "langgraph_js" | "openai_agents" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "vercel_ai_sdk" | "mcp_client" | "otel_generic" | "manual";
359
+ name: "runfile-py" | "@runfile/sdk";
360
+ version: string;
361
+ framework_version?: string | undefined;
362
+ host?: string | undefined;
363
+ };
364
+ actor: {
365
+ type: "agent" | "human" | "tool" | "system";
366
+ agent_identity?: string | undefined;
367
+ human_principal?: string | undefined;
368
+ delegation_chain?: string[] | undefined;
369
+ tool_id?: string | undefined;
370
+ tool_version_hash?: string | undefined;
371
+ };
372
+ action: {
373
+ kind: "agent_run_start" | "agent_run_end" | "graph_node_enter" | "graph_node_exit" | "llm_call" | "tool_call" | "tool_result" | "state_read" | "state_write" | "decision" | "handoff" | "human_approval" | "human_input" | "policy_check" | "anomaly_flag" | "sdk_diagnostic";
374
+ name: string;
375
+ outcome?: "success" | "failure" | "partial" | "timeout" | "cancelled" | undefined;
376
+ duration_ms?: number | undefined;
377
+ };
378
+ subject: {
379
+ regulatory_tags?: string[] | undefined;
380
+ resource_urn?: string | undefined;
381
+ data_classification?: "public" | "internal" | "confidential" | "pii" | "phi" | "pci" | "fci" | undefined;
382
+ };
383
+ redaction_policy_version: string;
384
+ prev_hash: string;
385
+ decision?: {
386
+ outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
387
+ outcome_label?: string | undefined;
388
+ confidence?: number | undefined;
389
+ human_in_the_loop?: boolean | undefined;
390
+ policy_thresholds_crossed?: string[] | undefined;
391
+ reversed_by_event?: string | undefined;
392
+ } | undefined;
393
+ model_ref?: {
394
+ provider: "anthropic" | "openai" | "google" | "aws_bedrock" | "azure_openai" | "ollama" | "self_hosted" | "other";
395
+ model_id: string;
396
+ model_version_hash?: string | undefined;
397
+ system_prompt_hash?: string | undefined;
398
+ tools_hash?: string | undefined;
399
+ input_tokens?: number | undefined;
400
+ output_tokens?: number | undefined;
401
+ temperature?: number | undefined;
402
+ } | undefined;
403
+ payload_ref?: {
404
+ sha256: string;
405
+ s3_uri: string;
406
+ size_bytes: number;
407
+ encryption: {
408
+ algorithm: "aes-256-gcm";
409
+ data_key_wrapped: string;
410
+ kms_key_arn?: string | undefined;
411
+ };
412
+ content_type?: "application/json" | "text/plain" | "application/vnd.runfile.llm-request+json" | "application/vnd.runfile.llm-response+json" | "application/vnd.runfile.tool-call+json" | "application/vnd.runfile.tool-result+json" | "application/vnd.runfile.state-snapshot+json" | undefined;
413
+ redaction_applied?: {
414
+ redacted_classes?: string[] | undefined;
415
+ tokenized_classes?: string[] | undefined;
416
+ classifier_version?: string | undefined;
417
+ } | undefined;
418
+ } | undefined;
419
+ regulatory_scope_version?: string | undefined;
420
+ anomaly_flags?: {
421
+ code: "missing_ambient_context" | "chain_break" | "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";
422
+ severity: "info" | "warning" | "error" | "critical";
423
+ detail?: string | undefined;
424
+ }[] | undefined;
425
+ environment?: "production" | "staging" | "development" | undefined;
426
+ labels?: Record<string, string> | undefined;
427
+ merkle_inclusion?: {
428
+ manifest_uri: string;
429
+ leaf_index: number;
430
+ merkle_root: string;
431
+ } | undefined;
432
+ }>, {
433
+ event_hash: string;
434
+ schema_version: string;
435
+ event_id: string;
436
+ tenant_id: string;
437
+ agent_run_id: string;
438
+ parent_event_id: string | null;
439
+ captured_at: string;
440
+ received_at: string;
441
+ wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
442
+ sdk: {
443
+ framework: "langgraph" | "langgraph_js" | "openai_agents" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "vercel_ai_sdk" | "mcp_client" | "otel_generic" | "manual";
444
+ name: "runfile-py" | "@runfile/sdk";
445
+ version: string;
446
+ framework_version?: string | undefined;
447
+ host?: string | undefined;
448
+ };
449
+ actor: {
450
+ type: "agent" | "human" | "tool" | "system";
451
+ delegation_chain: string[];
452
+ agent_identity?: string | undefined;
453
+ human_principal?: string | undefined;
454
+ tool_id?: string | undefined;
455
+ tool_version_hash?: string | undefined;
456
+ };
457
+ action: {
458
+ kind: "agent_run_start" | "agent_run_end" | "graph_node_enter" | "graph_node_exit" | "llm_call" | "tool_call" | "tool_result" | "state_read" | "state_write" | "decision" | "handoff" | "human_approval" | "human_input" | "policy_check" | "anomaly_flag" | "sdk_diagnostic";
459
+ name: string;
460
+ outcome?: "success" | "failure" | "partial" | "timeout" | "cancelled" | undefined;
461
+ duration_ms?: number | undefined;
462
+ };
463
+ subject: {
464
+ regulatory_tags?: string[] | undefined;
465
+ resource_urn?: string | undefined;
466
+ data_classification?: "public" | "internal" | "confidential" | "pii" | "phi" | "pci" | "fci" | undefined;
467
+ };
468
+ redaction_policy_version: string;
469
+ prev_hash: string;
470
+ decision?: {
471
+ outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
472
+ outcome_label?: string | undefined;
473
+ confidence?: number | undefined;
474
+ human_in_the_loop?: boolean | undefined;
475
+ policy_thresholds_crossed?: string[] | undefined;
476
+ reversed_by_event?: string | undefined;
477
+ } | undefined;
478
+ model_ref?: {
479
+ provider: "anthropic" | "openai" | "google" | "aws_bedrock" | "azure_openai" | "ollama" | "self_hosted" | "other";
480
+ model_id: string;
481
+ model_version_hash?: string | undefined;
482
+ system_prompt_hash?: string | undefined;
483
+ tools_hash?: string | undefined;
484
+ input_tokens?: number | undefined;
485
+ output_tokens?: number | undefined;
486
+ temperature?: number | undefined;
487
+ } | undefined;
488
+ payload_ref?: {
489
+ sha256: string;
490
+ s3_uri: string;
491
+ size_bytes: number;
492
+ encryption: {
493
+ algorithm: "aes-256-gcm";
494
+ data_key_wrapped: string;
495
+ kms_key_arn?: string | undefined;
496
+ };
497
+ content_type?: "application/json" | "text/plain" | "application/vnd.runfile.llm-request+json" | "application/vnd.runfile.llm-response+json" | "application/vnd.runfile.tool-call+json" | "application/vnd.runfile.tool-result+json" | "application/vnd.runfile.state-snapshot+json" | undefined;
498
+ redaction_applied?: {
499
+ redacted_classes?: string[] | undefined;
500
+ tokenized_classes?: string[] | undefined;
501
+ classifier_version?: string | undefined;
502
+ } | undefined;
503
+ } | undefined;
504
+ regulatory_scope_version?: string | undefined;
505
+ anomaly_flags?: {
506
+ code: "missing_ambient_context" | "chain_break" | "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";
507
+ severity: "info" | "warning" | "error" | "critical";
508
+ detail?: string | undefined;
509
+ }[] | undefined;
510
+ environment?: "production" | "staging" | "development" | undefined;
511
+ labels?: Record<string, string> | undefined;
512
+ merkle_inclusion?: {
513
+ manifest_uri: string;
514
+ leaf_index: number;
515
+ merkle_root: string;
516
+ } | undefined;
517
+ }, {
518
+ event_hash: string;
519
+ schema_version: string;
520
+ event_id: string;
521
+ tenant_id: string;
522
+ agent_run_id: string;
523
+ parent_event_id: string | null;
524
+ captured_at: string;
525
+ received_at: string;
526
+ wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
527
+ sdk: {
528
+ framework: "langgraph" | "langgraph_js" | "openai_agents" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "vercel_ai_sdk" | "mcp_client" | "otel_generic" | "manual";
529
+ name: "runfile-py" | "@runfile/sdk";
530
+ version: string;
531
+ framework_version?: string | undefined;
532
+ host?: string | undefined;
533
+ };
534
+ actor: {
535
+ type: "agent" | "human" | "tool" | "system";
536
+ agent_identity?: string | undefined;
537
+ human_principal?: string | undefined;
538
+ delegation_chain?: string[] | undefined;
539
+ tool_id?: string | undefined;
540
+ tool_version_hash?: string | undefined;
541
+ };
542
+ action: {
543
+ kind: "agent_run_start" | "agent_run_end" | "graph_node_enter" | "graph_node_exit" | "llm_call" | "tool_call" | "tool_result" | "state_read" | "state_write" | "decision" | "handoff" | "human_approval" | "human_input" | "policy_check" | "anomaly_flag" | "sdk_diagnostic";
544
+ name: string;
545
+ outcome?: "success" | "failure" | "partial" | "timeout" | "cancelled" | undefined;
546
+ duration_ms?: number | undefined;
547
+ };
548
+ subject: {
549
+ regulatory_tags?: string[] | undefined;
550
+ resource_urn?: string | undefined;
551
+ data_classification?: "public" | "internal" | "confidential" | "pii" | "phi" | "pci" | "fci" | undefined;
552
+ };
553
+ redaction_policy_version: string;
554
+ prev_hash: string;
555
+ decision?: {
556
+ outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
557
+ outcome_label?: string | undefined;
558
+ confidence?: number | undefined;
559
+ human_in_the_loop?: boolean | undefined;
560
+ policy_thresholds_crossed?: string[] | undefined;
561
+ reversed_by_event?: string | undefined;
562
+ } | undefined;
563
+ model_ref?: {
564
+ provider: "anthropic" | "openai" | "google" | "aws_bedrock" | "azure_openai" | "ollama" | "self_hosted" | "other";
565
+ model_id: string;
566
+ model_version_hash?: string | undefined;
567
+ system_prompt_hash?: string | undefined;
568
+ tools_hash?: string | undefined;
569
+ input_tokens?: number | undefined;
570
+ output_tokens?: number | undefined;
571
+ temperature?: number | undefined;
572
+ } | undefined;
573
+ payload_ref?: {
574
+ sha256: string;
575
+ s3_uri: string;
576
+ size_bytes: number;
577
+ encryption: {
578
+ algorithm: "aes-256-gcm";
579
+ data_key_wrapped: string;
580
+ kms_key_arn?: string | undefined;
581
+ };
582
+ content_type?: "application/json" | "text/plain" | "application/vnd.runfile.llm-request+json" | "application/vnd.runfile.llm-response+json" | "application/vnd.runfile.tool-call+json" | "application/vnd.runfile.tool-result+json" | "application/vnd.runfile.state-snapshot+json" | undefined;
583
+ redaction_applied?: {
584
+ redacted_classes?: string[] | undefined;
585
+ tokenized_classes?: string[] | undefined;
586
+ classifier_version?: string | undefined;
587
+ } | undefined;
588
+ } | undefined;
589
+ regulatory_scope_version?: string | undefined;
590
+ anomaly_flags?: {
591
+ code: "missing_ambient_context" | "chain_break" | "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";
592
+ severity: "info" | "warning" | "error" | "critical";
593
+ detail?: string | undefined;
594
+ }[] | undefined;
595
+ environment?: "production" | "staging" | "development" | undefined;
596
+ labels?: Record<string, string> | undefined;
597
+ merkle_inclusion?: {
598
+ manifest_uri: string;
599
+ leaf_index: number;
600
+ merkle_root: string;
601
+ } | undefined;
602
+ }>, "many">;
603
+ manifests: z.ZodArray<z.ZodObject<{
604
+ manifest_version: z.ZodString;
605
+ schema_version: z.ZodString;
606
+ tenant_id: z.ZodString;
607
+ day_utc: z.ZodString;
608
+ built_at: z.ZodString;
609
+ leaf_count: z.ZodNumber;
610
+ merkle_root: z.ZodString;
611
+ prev_manifest_root: z.ZodNullable<z.ZodString>;
612
+ leaves: z.ZodArray<z.ZodObject<{
613
+ event_id: z.ZodString;
614
+ event_hash: z.ZodString;
615
+ leaf_index: z.ZodNumber;
616
+ }, "strict", z.ZodTypeAny, {
617
+ event_hash: string;
618
+ leaf_index: number;
619
+ event_id: string;
620
+ }, {
621
+ event_hash: string;
622
+ leaf_index: number;
623
+ event_id: string;
624
+ }>, "many">;
625
+ kms_signature: z.ZodObject<{
626
+ kms_key_arn: z.ZodString;
627
+ signing_algorithm: z.ZodString;
628
+ signature_base64: z.ZodString;
629
+ }, "strict", z.ZodTypeAny, {
630
+ kms_key_arn: string;
631
+ signing_algorithm: string;
632
+ signature_base64: string;
633
+ }, {
634
+ kms_key_arn: string;
635
+ signing_algorithm: string;
636
+ signature_base64: string;
637
+ }>;
638
+ attestation_document: z.ZodNullable<z.ZodString>;
639
+ rekor_entry: z.ZodOptional<z.ZodObject<{
640
+ log_index: z.ZodNumber;
641
+ log_id: z.ZodString;
642
+ inclusion_proof: z.ZodString;
643
+ }, "strict", z.ZodTypeAny, {
644
+ log_index: number;
645
+ log_id: string;
646
+ inclusion_proof: string;
647
+ }, {
648
+ log_index: number;
649
+ log_id: string;
650
+ inclusion_proof: string;
651
+ }>>;
652
+ }, "strict", z.ZodTypeAny, {
653
+ merkle_root: string;
654
+ schema_version: string;
655
+ tenant_id: string;
656
+ manifest_version: string;
657
+ day_utc: string;
658
+ built_at: string;
659
+ leaf_count: number;
660
+ prev_manifest_root: string | null;
661
+ leaves: {
662
+ event_hash: string;
663
+ leaf_index: number;
664
+ event_id: string;
665
+ }[];
666
+ kms_signature: {
667
+ kms_key_arn: string;
668
+ signing_algorithm: string;
669
+ signature_base64: string;
670
+ };
671
+ attestation_document: string | null;
672
+ rekor_entry?: {
673
+ log_index: number;
674
+ log_id: string;
675
+ inclusion_proof: string;
676
+ } | undefined;
677
+ }, {
678
+ merkle_root: string;
679
+ schema_version: string;
680
+ tenant_id: string;
681
+ manifest_version: string;
682
+ day_utc: string;
683
+ built_at: string;
684
+ leaf_count: number;
685
+ prev_manifest_root: string | null;
686
+ leaves: {
687
+ event_hash: string;
688
+ leaf_index: number;
689
+ event_id: string;
690
+ }[];
691
+ kms_signature: {
692
+ kms_key_arn: string;
693
+ signing_algorithm: string;
694
+ signature_base64: string;
695
+ };
696
+ attestation_document: string | null;
697
+ rekor_entry?: {
698
+ log_index: number;
699
+ log_id: string;
700
+ inclusion_proof: string;
701
+ } | undefined;
702
+ }>, "many">;
703
+ schema_versions_used: z.ZodArray<z.ZodString, "many">;
704
+ notes: z.ZodOptional<z.ZodString>;
705
+ }, "strict", z.ZodTypeAny, {
706
+ tenant_id: string;
707
+ bundle_version: string;
708
+ bundle_id: string;
709
+ generated_at: string;
710
+ period: {
711
+ from: string;
712
+ to: string;
713
+ };
714
+ events: {
715
+ event_hash: string;
716
+ schema_version: string;
717
+ event_id: string;
718
+ tenant_id: string;
719
+ agent_run_id: string;
720
+ parent_event_id: string | null;
721
+ captured_at: string;
722
+ received_at: string;
723
+ wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
724
+ sdk: {
725
+ framework: "langgraph" | "langgraph_js" | "openai_agents" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "vercel_ai_sdk" | "mcp_client" | "otel_generic" | "manual";
726
+ name: "runfile-py" | "@runfile/sdk";
727
+ version: string;
728
+ framework_version?: string | undefined;
729
+ host?: string | undefined;
730
+ };
731
+ actor: {
732
+ type: "agent" | "human" | "tool" | "system";
733
+ delegation_chain: string[];
734
+ agent_identity?: string | undefined;
735
+ human_principal?: string | undefined;
736
+ tool_id?: string | undefined;
737
+ tool_version_hash?: string | undefined;
738
+ };
739
+ action: {
740
+ kind: "agent_run_start" | "agent_run_end" | "graph_node_enter" | "graph_node_exit" | "llm_call" | "tool_call" | "tool_result" | "state_read" | "state_write" | "decision" | "handoff" | "human_approval" | "human_input" | "policy_check" | "anomaly_flag" | "sdk_diagnostic";
741
+ name: string;
742
+ outcome?: "success" | "failure" | "partial" | "timeout" | "cancelled" | undefined;
743
+ duration_ms?: number | undefined;
744
+ };
745
+ subject: {
746
+ regulatory_tags?: string[] | undefined;
747
+ resource_urn?: string | undefined;
748
+ data_classification?: "public" | "internal" | "confidential" | "pii" | "phi" | "pci" | "fci" | undefined;
749
+ };
750
+ redaction_policy_version: string;
751
+ prev_hash: string;
752
+ decision?: {
753
+ outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
754
+ outcome_label?: string | undefined;
755
+ confidence?: number | undefined;
756
+ human_in_the_loop?: boolean | undefined;
757
+ policy_thresholds_crossed?: string[] | undefined;
758
+ reversed_by_event?: string | undefined;
759
+ } | undefined;
760
+ model_ref?: {
761
+ provider: "anthropic" | "openai" | "google" | "aws_bedrock" | "azure_openai" | "ollama" | "self_hosted" | "other";
762
+ model_id: string;
763
+ model_version_hash?: string | undefined;
764
+ system_prompt_hash?: string | undefined;
765
+ tools_hash?: string | undefined;
766
+ input_tokens?: number | undefined;
767
+ output_tokens?: number | undefined;
768
+ temperature?: number | undefined;
769
+ } | undefined;
770
+ payload_ref?: {
771
+ sha256: string;
772
+ s3_uri: string;
773
+ size_bytes: number;
774
+ encryption: {
775
+ algorithm: "aes-256-gcm";
776
+ data_key_wrapped: string;
777
+ kms_key_arn?: string | undefined;
778
+ };
779
+ content_type?: "application/json" | "text/plain" | "application/vnd.runfile.llm-request+json" | "application/vnd.runfile.llm-response+json" | "application/vnd.runfile.tool-call+json" | "application/vnd.runfile.tool-result+json" | "application/vnd.runfile.state-snapshot+json" | undefined;
780
+ redaction_applied?: {
781
+ redacted_classes?: string[] | undefined;
782
+ tokenized_classes?: string[] | undefined;
783
+ classifier_version?: string | undefined;
784
+ } | undefined;
785
+ } | undefined;
786
+ regulatory_scope_version?: string | undefined;
787
+ anomaly_flags?: {
788
+ code: "missing_ambient_context" | "chain_break" | "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";
789
+ severity: "info" | "warning" | "error" | "critical";
790
+ detail?: string | undefined;
791
+ }[] | undefined;
792
+ environment?: "production" | "staging" | "development" | undefined;
793
+ labels?: Record<string, string> | undefined;
794
+ merkle_inclusion?: {
795
+ manifest_uri: string;
796
+ leaf_index: number;
797
+ merkle_root: string;
798
+ } | undefined;
799
+ }[];
800
+ manifests: {
801
+ merkle_root: string;
802
+ schema_version: string;
803
+ tenant_id: string;
804
+ manifest_version: string;
805
+ day_utc: string;
806
+ built_at: string;
807
+ leaf_count: number;
808
+ prev_manifest_root: string | null;
809
+ leaves: {
810
+ event_hash: string;
811
+ leaf_index: number;
812
+ event_id: string;
813
+ }[];
814
+ kms_signature: {
815
+ kms_key_arn: string;
816
+ signing_algorithm: string;
817
+ signature_base64: string;
818
+ };
819
+ attestation_document: string | null;
820
+ rekor_entry?: {
821
+ log_index: number;
822
+ log_id: string;
823
+ inclusion_proof: string;
824
+ } | undefined;
825
+ }[];
826
+ schema_versions_used: string[];
827
+ engagement_id?: string | undefined;
828
+ notes?: string | undefined;
829
+ }, {
830
+ tenant_id: string;
831
+ bundle_version: string;
832
+ bundle_id: string;
833
+ generated_at: string;
834
+ period: {
835
+ from: string;
836
+ to: string;
837
+ };
838
+ events: {
839
+ event_hash: string;
840
+ schema_version: string;
841
+ event_id: string;
842
+ tenant_id: string;
843
+ agent_run_id: string;
844
+ parent_event_id: string | null;
845
+ captured_at: string;
846
+ received_at: string;
847
+ wall_clock_source: "unknown" | "aws_time_sync" | "ntp" | "host_system";
848
+ sdk: {
849
+ framework: "langgraph" | "langgraph_js" | "openai_agents" | "openai_agents_js" | "anthropic_claude" | "anthropic_claude_js" | "mastra" | "vercel_ai_sdk" | "mcp_client" | "otel_generic" | "manual";
850
+ name: "runfile-py" | "@runfile/sdk";
851
+ version: string;
852
+ framework_version?: string | undefined;
853
+ host?: string | undefined;
854
+ };
855
+ actor: {
856
+ type: "agent" | "human" | "tool" | "system";
857
+ agent_identity?: string | undefined;
858
+ human_principal?: string | undefined;
859
+ delegation_chain?: string[] | undefined;
860
+ tool_id?: string | undefined;
861
+ tool_version_hash?: string | undefined;
862
+ };
863
+ action: {
864
+ kind: "agent_run_start" | "agent_run_end" | "graph_node_enter" | "graph_node_exit" | "llm_call" | "tool_call" | "tool_result" | "state_read" | "state_write" | "decision" | "handoff" | "human_approval" | "human_input" | "policy_check" | "anomaly_flag" | "sdk_diagnostic";
865
+ name: string;
866
+ outcome?: "success" | "failure" | "partial" | "timeout" | "cancelled" | undefined;
867
+ duration_ms?: number | undefined;
868
+ };
869
+ subject: {
870
+ regulatory_tags?: string[] | undefined;
871
+ resource_urn?: string | undefined;
872
+ data_classification?: "public" | "internal" | "confidential" | "pii" | "phi" | "pci" | "fci" | undefined;
873
+ };
874
+ redaction_policy_version: string;
875
+ prev_hash: string;
876
+ decision?: {
877
+ outcome: "custom" | "approved" | "denied" | "escalated" | "deferred" | "no_action";
878
+ outcome_label?: string | undefined;
879
+ confidence?: number | undefined;
880
+ human_in_the_loop?: boolean | undefined;
881
+ policy_thresholds_crossed?: string[] | undefined;
882
+ reversed_by_event?: string | undefined;
883
+ } | undefined;
884
+ model_ref?: {
885
+ provider: "anthropic" | "openai" | "google" | "aws_bedrock" | "azure_openai" | "ollama" | "self_hosted" | "other";
886
+ model_id: string;
887
+ model_version_hash?: string | undefined;
888
+ system_prompt_hash?: string | undefined;
889
+ tools_hash?: string | undefined;
890
+ input_tokens?: number | undefined;
891
+ output_tokens?: number | undefined;
892
+ temperature?: number | undefined;
893
+ } | undefined;
894
+ payload_ref?: {
895
+ sha256: string;
896
+ s3_uri: string;
897
+ size_bytes: number;
898
+ encryption: {
899
+ algorithm: "aes-256-gcm";
900
+ data_key_wrapped: string;
901
+ kms_key_arn?: string | undefined;
902
+ };
903
+ content_type?: "application/json" | "text/plain" | "application/vnd.runfile.llm-request+json" | "application/vnd.runfile.llm-response+json" | "application/vnd.runfile.tool-call+json" | "application/vnd.runfile.tool-result+json" | "application/vnd.runfile.state-snapshot+json" | undefined;
904
+ redaction_applied?: {
905
+ redacted_classes?: string[] | undefined;
906
+ tokenized_classes?: string[] | undefined;
907
+ classifier_version?: string | undefined;
908
+ } | undefined;
909
+ } | undefined;
910
+ regulatory_scope_version?: string | undefined;
911
+ anomaly_flags?: {
912
+ code: "missing_ambient_context" | "chain_break" | "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";
913
+ severity: "info" | "warning" | "error" | "critical";
914
+ detail?: string | undefined;
915
+ }[] | undefined;
916
+ environment?: "production" | "staging" | "development" | undefined;
917
+ labels?: Record<string, string> | undefined;
918
+ merkle_inclusion?: {
919
+ manifest_uri: string;
920
+ leaf_index: number;
921
+ merkle_root: string;
922
+ } | undefined;
923
+ }[];
924
+ manifests: {
925
+ merkle_root: string;
926
+ schema_version: string;
927
+ tenant_id: string;
928
+ manifest_version: string;
929
+ day_utc: string;
930
+ built_at: string;
931
+ leaf_count: number;
932
+ prev_manifest_root: string | null;
933
+ leaves: {
934
+ event_hash: string;
935
+ leaf_index: number;
936
+ event_id: string;
937
+ }[];
938
+ kms_signature: {
939
+ kms_key_arn: string;
940
+ signing_algorithm: string;
941
+ signature_base64: string;
942
+ };
943
+ attestation_document: string | null;
944
+ rekor_entry?: {
945
+ log_index: number;
946
+ log_id: string;
947
+ inclusion_proof: string;
948
+ } | undefined;
949
+ }[];
950
+ schema_versions_used: string[];
951
+ engagement_id?: string | undefined;
952
+ notes?: string | undefined;
953
+ }>;
954
+ export type EvidenceBundle = z.infer<typeof EvidenceBundleSchema>;
955
+ //# sourceMappingURL=evidence.d.ts.map