opencode-plugin-flow 5.0.0 → 5.1.1

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.
@@ -0,0 +1,2007 @@
1
+ import { z } from "zod";
2
+ export declare const REPLAY_SCENARIO_IDS: readonly ["active_final_feature_awaiting_review", "contradictory_feature_final_verdicts", "failed_to_passed_retry", "unsubmitted_review_failure", "malformed_optional_telemetry", "empty_or_malformed_handoff", "stale_validation", "unchanged_finding_retry", "crash_replay_around_mutation"];
3
+ export declare const ReplayScenarioIdSchema: z.ZodEnum<{
4
+ active_final_feature_awaiting_review: "active_final_feature_awaiting_review";
5
+ contradictory_feature_final_verdicts: "contradictory_feature_final_verdicts";
6
+ crash_replay_around_mutation: "crash_replay_around_mutation";
7
+ empty_or_malformed_handoff: "empty_or_malformed_handoff";
8
+ failed_to_passed_retry: "failed_to_passed_retry";
9
+ malformed_optional_telemetry: "malformed_optional_telemetry";
10
+ stale_validation: "stale_validation";
11
+ unchanged_finding_retry: "unchanged_finding_retry";
12
+ unsubmitted_review_failure: "unsubmitted_review_failure";
13
+ }>;
14
+ export type ReplayScenarioId = z.infer<typeof ReplayScenarioIdSchema>;
15
+ export declare const ReplayVariantSchema: z.ZodEnum<{
16
+ A: "A";
17
+ B: "B";
18
+ C: "C";
19
+ D: "D";
20
+ }>;
21
+ export type ReplayVariant = z.infer<typeof ReplayVariantSchema>;
22
+ export declare const FixtureIdSchema: z.ZodString;
23
+ export declare const SessionIdSchema: z.ZodString;
24
+ export declare const OperationIdSchema: z.ZodString;
25
+ export declare const WorkerIdSchema: z.ZodString;
26
+ export declare const AttemptIdSchema: z.ZodString;
27
+ export declare const LogicalPassIdSchema: z.ZodString;
28
+ export declare const SnapshotIdSchema: z.ZodString;
29
+ export declare const EvidenceRefSchema: z.ZodString;
30
+ export declare const MutationIdSchema: z.ZodString;
31
+ /** Closed, canonical identifier forms; arbitrary slugs and prose are rejected. */
32
+ export declare const OpaqueIdSchema: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodString, z.ZodString, z.ZodString, z.ZodString, z.ZodString, z.ZodString]>;
33
+ export type OpaqueId = z.infer<typeof OpaqueIdSchema>;
34
+ export declare const REPLAY_IDENTIFIER_SCHEMAS: {
35
+ readonly fixture: z.ZodString;
36
+ readonly session: z.ZodString;
37
+ readonly operation: z.ZodString;
38
+ readonly worker: z.ZodString;
39
+ readonly attempt: z.ZodString;
40
+ readonly logicalPass: z.ZodString;
41
+ readonly snapshot: z.ZodString;
42
+ readonly evidence: z.ZodString;
43
+ readonly mutation: z.ZodString;
44
+ };
45
+ export declare const Sha256DigestSchema: z.ZodString;
46
+ export type Sha256Digest = z.infer<typeof Sha256DigestSchema>;
47
+ export declare const SourceCategorySchema: z.ZodEnum<{
48
+ flow_ledger: "flow_ledger";
49
+ host_metadata: "host_metadata";
50
+ replay_derived: "replay_derived";
51
+ supplied_observation: "supplied_observation";
52
+ }>;
53
+ export type SourceCategory = z.infer<typeof SourceCategorySchema>;
54
+ export declare const AvailabilityReasonSchema: z.ZodEnum<{
55
+ not_applicable: "not_applicable";
56
+ not_recorded: "not_recorded";
57
+ privacy_redacted: "privacy_redacted";
58
+ provider_unavailable: "provider_unavailable";
59
+ unreconciled: "unreconciled";
60
+ }>;
61
+ export type AvailabilityReason = z.infer<typeof AvailabilityReasonSchema>;
62
+ export declare const UnsignedAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
63
+ status: z.ZodLiteral<"available">;
64
+ value: z.ZodNumber;
65
+ }, z.core.$strict>, z.ZodObject<{
66
+ status: z.ZodLiteral<"unavailable">;
67
+ reason: z.ZodEnum<{
68
+ not_applicable: "not_applicable";
69
+ not_recorded: "not_recorded";
70
+ privacy_redacted: "privacy_redacted";
71
+ provider_unavailable: "provider_unavailable";
72
+ unreconciled: "unreconciled";
73
+ }>;
74
+ }, z.core.$strict>], "status">;
75
+ export type UnsignedAvailability = z.infer<typeof UnsignedAvailabilitySchema>;
76
+ export declare const AggregateMetricSchema: z.ZodEnum<{
77
+ cache_read_token_count: "cache_read_token_count";
78
+ child_flow_status_call_count: "child_flow_status_call_count";
79
+ child_flow_status_result_character_count: "child_flow_status_result_character_count";
80
+ child_session_count: "child_session_count";
81
+ compaction_count: "compaction_count";
82
+ completion_schema_failure_count: "completion_schema_failure_count";
83
+ declared_worker_count: "declared_worker_count";
84
+ duplicate_finding_count: "duplicate_finding_count";
85
+ failed_review_attempt_count: "failed_review_attempt_count";
86
+ flow_tool_call_count: "flow_tool_call_count";
87
+ flow_tool_result_character_count: "flow_tool_result_character_count";
88
+ four_invocation_character_count: "four_invocation_character_count";
89
+ input_token_count: "input_token_count";
90
+ live_prompt_character_count: "live_prompt_character_count";
91
+ live_prompt_estimated_token_count: "live_prompt_estimated_token_count";
92
+ message_error_count: "message_error_count";
93
+ output_token_count: "output_token_count";
94
+ prompt_character_count: "prompt_character_count";
95
+ recovery_count: "recovery_count";
96
+ result_character_count: "result_character_count";
97
+ review_attempt_count: "review_attempt_count";
98
+ review_packet_file_count: "review_packet_file_count";
99
+ review_packet_line_count: "review_packet_line_count";
100
+ reviewer_child_session_count: "reviewer_child_session_count";
101
+ reviewer_dispatch_count: "reviewer_dispatch_count";
102
+ reviewer_execution_count: "reviewer_execution_count";
103
+ reviewer_input_share_basis_points: "reviewer_input_share_basis_points";
104
+ root_flow_tool_call_count: "root_flow_tool_call_count";
105
+ root_flow_tool_result_character_count: "root_flow_tool_result_character_count";
106
+ scenario_count: "scenario_count";
107
+ session_count: "session_count";
108
+ terminal_decision_count: "terminal_decision_count";
109
+ tool_error_count: "tool_error_count";
110
+ tool_latency_p50_ms: "tool_latency_p50_ms";
111
+ tool_latency_p95_ms: "tool_latency_p95_ms";
112
+ tool_latency_total_ms: "tool_latency_total_ms";
113
+ tool_part_count: "tool_part_count";
114
+ validation_failure_count: "validation_failure_count";
115
+ }>;
116
+ export type AggregateMetric = z.infer<typeof AggregateMetricSchema>;
117
+ export declare const ApprovedAggregateFactSchema: z.ZodObject<{
118
+ metric: z.ZodEnum<{
119
+ cache_read_token_count: "cache_read_token_count";
120
+ child_flow_status_call_count: "child_flow_status_call_count";
121
+ child_flow_status_result_character_count: "child_flow_status_result_character_count";
122
+ child_session_count: "child_session_count";
123
+ compaction_count: "compaction_count";
124
+ completion_schema_failure_count: "completion_schema_failure_count";
125
+ declared_worker_count: "declared_worker_count";
126
+ duplicate_finding_count: "duplicate_finding_count";
127
+ failed_review_attempt_count: "failed_review_attempt_count";
128
+ flow_tool_call_count: "flow_tool_call_count";
129
+ flow_tool_result_character_count: "flow_tool_result_character_count";
130
+ four_invocation_character_count: "four_invocation_character_count";
131
+ input_token_count: "input_token_count";
132
+ live_prompt_character_count: "live_prompt_character_count";
133
+ live_prompt_estimated_token_count: "live_prompt_estimated_token_count";
134
+ message_error_count: "message_error_count";
135
+ output_token_count: "output_token_count";
136
+ prompt_character_count: "prompt_character_count";
137
+ recovery_count: "recovery_count";
138
+ result_character_count: "result_character_count";
139
+ review_attempt_count: "review_attempt_count";
140
+ review_packet_file_count: "review_packet_file_count";
141
+ review_packet_line_count: "review_packet_line_count";
142
+ reviewer_child_session_count: "reviewer_child_session_count";
143
+ reviewer_dispatch_count: "reviewer_dispatch_count";
144
+ reviewer_execution_count: "reviewer_execution_count";
145
+ reviewer_input_share_basis_points: "reviewer_input_share_basis_points";
146
+ root_flow_tool_call_count: "root_flow_tool_call_count";
147
+ root_flow_tool_result_character_count: "root_flow_tool_result_character_count";
148
+ scenario_count: "scenario_count";
149
+ session_count: "session_count";
150
+ terminal_decision_count: "terminal_decision_count";
151
+ tool_error_count: "tool_error_count";
152
+ tool_latency_p50_ms: "tool_latency_p50_ms";
153
+ tool_latency_p95_ms: "tool_latency_p95_ms";
154
+ tool_latency_total_ms: "tool_latency_total_ms";
155
+ tool_part_count: "tool_part_count";
156
+ validation_failure_count: "validation_failure_count";
157
+ }>;
158
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
159
+ status: z.ZodLiteral<"available">;
160
+ value: z.ZodNumber;
161
+ }, z.core.$strict>, z.ZodObject<{
162
+ status: z.ZodLiteral<"unavailable">;
163
+ reason: z.ZodEnum<{
164
+ not_applicable: "not_applicable";
165
+ not_recorded: "not_recorded";
166
+ privacy_redacted: "privacy_redacted";
167
+ provider_unavailable: "provider_unavailable";
168
+ unreconciled: "unreconciled";
169
+ }>;
170
+ }, z.core.$strict>], "status">;
171
+ }, z.core.$strict>;
172
+ export type ApprovedAggregateFact = z.infer<typeof ApprovedAggregateFactSchema>;
173
+ export declare const SourceProjectionSchema: z.ZodObject<{
174
+ category: z.ZodEnum<{
175
+ flow_ledger: "flow_ledger";
176
+ host_metadata: "host_metadata";
177
+ replay_derived: "replay_derived";
178
+ supplied_observation: "supplied_observation";
179
+ }>;
180
+ fingerprint: z.ZodString;
181
+ }, z.core.$strict>;
182
+ export declare const ReplayControlDefectSchema: z.ZodEnum<{
183
+ active_final_false_block: "active_final_false_block";
184
+ contradictory_verdict_not_reconciled: "contradictory_verdict_not_reconciled";
185
+ handoff_not_runtime_validated: "handoff_not_runtime_validated";
186
+ logical_pass_retry_not_correlated: "logical_pass_retry_not_correlated";
187
+ malformed_telemetry_masks_review: "malformed_telemetry_masks_review";
188
+ mutation_recovery_not_idempotent: "mutation_recovery_not_idempotent";
189
+ stale_validation_not_snapshot_bound: "stale_validation_not_snapshot_bound";
190
+ unchanged_finding_not_deduplicated: "unchanged_finding_not_deduplicated";
191
+ unsubmitted_review_failure_not_counted: "unsubmitted_review_failure_not_counted";
192
+ }>;
193
+ export type ReplayControlDefect = z.infer<typeof ReplayControlDefectSchema>;
194
+ export declare const ReplayDecisionSchema: z.ZodEnum<{
195
+ blocked: "blocked";
196
+ complete: "complete";
197
+ failed: "failed";
198
+ recovered: "recovered";
199
+ retry: "retry";
200
+ }>;
201
+ export type ReplayDecision = z.infer<typeof ReplayDecisionSchema>;
202
+ export declare const ReplayReasonSchema: z.ZodEnum<{
203
+ active_final_feature_in_progress: "active_final_feature_in_progress";
204
+ all_gates_passed: "all_gates_passed";
205
+ contradictory_review_verdicts: "contradictory_review_verdicts";
206
+ finding_unchanged: "finding_unchanged";
207
+ handoff_invalid: "handoff_invalid";
208
+ mutation_incomplete: "mutation_incomplete";
209
+ mutation_recovered: "mutation_recovered";
210
+ optional_telemetry_malformed: "optional_telemetry_malformed";
211
+ review_failed: "review_failed";
212
+ review_failure_unsubmitted: "review_failure_unsubmitted";
213
+ review_retry_passed: "review_retry_passed";
214
+ schema_invalid: "schema_invalid";
215
+ validation_stale: "validation_stale";
216
+ }>;
217
+ export type ReplayReason = z.infer<typeof ReplayReasonSchema>;
218
+ export declare const SessionStatusSchema: z.ZodEnum<{
219
+ blocked: "blocked";
220
+ completed: "completed";
221
+ planning: "planning";
222
+ ready: "ready";
223
+ running: "running";
224
+ }>;
225
+ export declare const FeatureStatusSchema: z.ZodEnum<{
226
+ blocked: "blocked";
227
+ completed: "completed";
228
+ in_progress: "in_progress";
229
+ pending: "pending";
230
+ }>;
231
+ export declare const ReplayRoleSchema: z.ZodEnum<{
232
+ feature_reviewer: "feature_reviewer";
233
+ final_reviewer: "final_reviewer";
234
+ host: "host";
235
+ implementation_worker: "implementation_worker";
236
+ root_manager: "root_manager";
237
+ verifier: "verifier";
238
+ }>;
239
+ export declare const ReplayModelClassSchema: z.ZodEnum<{
240
+ manager: "manager";
241
+ reviewer: "reviewer";
242
+ unknown: "unknown";
243
+ verifier: "verifier";
244
+ worker: "worker";
245
+ }>;
246
+ export declare const ReplayEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
247
+ seq: z.ZodNumber;
248
+ atMs: z.ZodNumber;
249
+ source: z.ZodEnum<{
250
+ flow_ledger: "flow_ledger";
251
+ host_metadata: "host_metadata";
252
+ replay_derived: "replay_derived";
253
+ supplied_observation: "supplied_observation";
254
+ }>;
255
+ kind: z.ZodLiteral<"session_state">;
256
+ sessionId: z.ZodString;
257
+ revision: z.ZodNumber;
258
+ sessionStatus: z.ZodEnum<{
259
+ blocked: "blocked";
260
+ completed: "completed";
261
+ planning: "planning";
262
+ ready: "ready";
263
+ running: "running";
264
+ }>;
265
+ featureStatus: z.ZodEnum<{
266
+ blocked: "blocked";
267
+ completed: "completed";
268
+ in_progress: "in_progress";
269
+ pending: "pending";
270
+ }>;
271
+ stateDigest: z.ZodString;
272
+ }, z.core.$strict>, z.ZodObject<{
273
+ seq: z.ZodNumber;
274
+ atMs: z.ZodNumber;
275
+ source: z.ZodEnum<{
276
+ flow_ledger: "flow_ledger";
277
+ host_metadata: "host_metadata";
278
+ replay_derived: "replay_derived";
279
+ supplied_observation: "supplied_observation";
280
+ }>;
281
+ kind: z.ZodLiteral<"validation">;
282
+ operationId: z.ZodString;
283
+ evidenceRef: z.ZodString;
284
+ snapshotId: z.ZodString;
285
+ revision: z.ZodNumber;
286
+ scope: z.ZodEnum<{
287
+ broad: "broad";
288
+ targeted: "targeted";
289
+ }>;
290
+ status: z.ZodEnum<{
291
+ failed: "failed";
292
+ passed: "passed";
293
+ }>;
294
+ freshness: z.ZodEnum<{
295
+ current: "current";
296
+ stale: "stale";
297
+ unknown: "unknown";
298
+ }>;
299
+ latencyMs: z.ZodDiscriminatedUnion<[z.ZodObject<{
300
+ status: z.ZodLiteral<"available">;
301
+ value: z.ZodNumber;
302
+ }, z.core.$strict>, z.ZodObject<{
303
+ status: z.ZodLiteral<"unavailable">;
304
+ reason: z.ZodEnum<{
305
+ not_applicable: "not_applicable";
306
+ not_recorded: "not_recorded";
307
+ privacy_redacted: "privacy_redacted";
308
+ provider_unavailable: "provider_unavailable";
309
+ unreconciled: "unreconciled";
310
+ }>;
311
+ }, z.core.$strict>], "status">;
312
+ }, z.core.$strict>, z.ZodObject<{
313
+ seq: z.ZodNumber;
314
+ atMs: z.ZodNumber;
315
+ source: z.ZodEnum<{
316
+ flow_ledger: "flow_ledger";
317
+ host_metadata: "host_metadata";
318
+ replay_derived: "replay_derived";
319
+ supplied_observation: "supplied_observation";
320
+ }>;
321
+ operationId: z.ZodString;
322
+ workerId: z.ZodString;
323
+ role: z.ZodEnum<{
324
+ feature_reviewer: "feature_reviewer";
325
+ final_reviewer: "final_reviewer";
326
+ host: "host";
327
+ implementation_worker: "implementation_worker";
328
+ root_manager: "root_manager";
329
+ verifier: "verifier";
330
+ }>;
331
+ modelClass: z.ZodEnum<{
332
+ manager: "manager";
333
+ reviewer: "reviewer";
334
+ unknown: "unknown";
335
+ verifier: "verifier";
336
+ worker: "worker";
337
+ }>;
338
+ attemptId: z.ZodString;
339
+ logicalPassId: z.ZodString;
340
+ snapshotId: z.ZodString;
341
+ evidenceRef: z.ZodString;
342
+ verdict: z.ZodEnum<{
343
+ failed: "failed";
344
+ passed: "passed";
345
+ }>;
346
+ submitted: z.ZodBoolean;
347
+ findingFingerprints: z.ZodArray<z.ZodString>;
348
+ duplicateFindingCount: z.ZodNumber;
349
+ kind: z.ZodLiteral<"feature_review_attempt">;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ seq: z.ZodNumber;
352
+ atMs: z.ZodNumber;
353
+ source: z.ZodEnum<{
354
+ flow_ledger: "flow_ledger";
355
+ host_metadata: "host_metadata";
356
+ replay_derived: "replay_derived";
357
+ supplied_observation: "supplied_observation";
358
+ }>;
359
+ operationId: z.ZodString;
360
+ workerId: z.ZodString;
361
+ role: z.ZodEnum<{
362
+ feature_reviewer: "feature_reviewer";
363
+ final_reviewer: "final_reviewer";
364
+ host: "host";
365
+ implementation_worker: "implementation_worker";
366
+ root_manager: "root_manager";
367
+ verifier: "verifier";
368
+ }>;
369
+ modelClass: z.ZodEnum<{
370
+ manager: "manager";
371
+ reviewer: "reviewer";
372
+ unknown: "unknown";
373
+ verifier: "verifier";
374
+ worker: "worker";
375
+ }>;
376
+ attemptId: z.ZodString;
377
+ logicalPassId: z.ZodString;
378
+ snapshotId: z.ZodString;
379
+ evidenceRef: z.ZodString;
380
+ verdict: z.ZodEnum<{
381
+ failed: "failed";
382
+ passed: "passed";
383
+ }>;
384
+ submitted: z.ZodBoolean;
385
+ findingFingerprints: z.ZodArray<z.ZodString>;
386
+ duplicateFindingCount: z.ZodNumber;
387
+ kind: z.ZodLiteral<"final_review_attempt">;
388
+ }, z.core.$strict>, z.ZodObject<{
389
+ seq: z.ZodNumber;
390
+ atMs: z.ZodNumber;
391
+ source: z.ZodEnum<{
392
+ flow_ledger: "flow_ledger";
393
+ host_metadata: "host_metadata";
394
+ replay_derived: "replay_derived";
395
+ supplied_observation: "supplied_observation";
396
+ }>;
397
+ operationId: z.ZodString;
398
+ workerId: z.ZodString;
399
+ role: z.ZodEnum<{
400
+ feature_reviewer: "feature_reviewer";
401
+ final_reviewer: "final_reviewer";
402
+ host: "host";
403
+ implementation_worker: "implementation_worker";
404
+ root_manager: "root_manager";
405
+ verifier: "verifier";
406
+ }>;
407
+ modelClass: z.ZodEnum<{
408
+ manager: "manager";
409
+ reviewer: "reviewer";
410
+ unknown: "unknown";
411
+ verifier: "verifier";
412
+ worker: "worker";
413
+ }>;
414
+ kind: z.ZodLiteral<"handoff_validity">;
415
+ status: z.ZodEnum<{
416
+ empty: "empty";
417
+ malformed: "malformed";
418
+ valid: "valid";
419
+ }>;
420
+ evidenceRef: z.ZodString;
421
+ }, z.core.$strict>, z.ZodObject<{
422
+ seq: z.ZodNumber;
423
+ atMs: z.ZodNumber;
424
+ source: z.ZodEnum<{
425
+ flow_ledger: "flow_ledger";
426
+ host_metadata: "host_metadata";
427
+ replay_derived: "replay_derived";
428
+ supplied_observation: "supplied_observation";
429
+ }>;
430
+ kind: z.ZodLiteral<"telemetry_validity">;
431
+ operationId: z.ZodString;
432
+ status: z.ZodEnum<{
433
+ malformed: "malformed";
434
+ unavailable: "unavailable";
435
+ valid: "valid";
436
+ }>;
437
+ declaredWorkerCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
438
+ status: z.ZodLiteral<"available">;
439
+ value: z.ZodNumber;
440
+ }, z.core.$strict>, z.ZodObject<{
441
+ status: z.ZodLiteral<"unavailable">;
442
+ reason: z.ZodEnum<{
443
+ not_applicable: "not_applicable";
444
+ not_recorded: "not_recorded";
445
+ privacy_redacted: "privacy_redacted";
446
+ provider_unavailable: "provider_unavailable";
447
+ unreconciled: "unreconciled";
448
+ }>;
449
+ }, z.core.$strict>], "status">;
450
+ }, z.core.$strict>, z.ZodObject<{
451
+ seq: z.ZodNumber;
452
+ atMs: z.ZodNumber;
453
+ source: z.ZodEnum<{
454
+ flow_ledger: "flow_ledger";
455
+ host_metadata: "host_metadata";
456
+ replay_derived: "replay_derived";
457
+ supplied_observation: "supplied_observation";
458
+ }>;
459
+ operationId: z.ZodString;
460
+ workerId: z.ZodString;
461
+ role: z.ZodEnum<{
462
+ feature_reviewer: "feature_reviewer";
463
+ final_reviewer: "final_reviewer";
464
+ host: "host";
465
+ implementation_worker: "implementation_worker";
466
+ root_manager: "root_manager";
467
+ verifier: "verifier";
468
+ }>;
469
+ modelClass: z.ZodEnum<{
470
+ manager: "manager";
471
+ reviewer: "reviewer";
472
+ unknown: "unknown";
473
+ verifier: "verifier";
474
+ worker: "worker";
475
+ }>;
476
+ kind: z.ZodLiteral<"operation_metrics">;
477
+ latencyMs: z.ZodDiscriminatedUnion<[z.ZodObject<{
478
+ status: z.ZodLiteral<"available">;
479
+ value: z.ZodNumber;
480
+ }, z.core.$strict>, z.ZodObject<{
481
+ status: z.ZodLiteral<"unavailable">;
482
+ reason: z.ZodEnum<{
483
+ not_applicable: "not_applicable";
484
+ not_recorded: "not_recorded";
485
+ privacy_redacted: "privacy_redacted";
486
+ provider_unavailable: "provider_unavailable";
487
+ unreconciled: "unreconciled";
488
+ }>;
489
+ }, z.core.$strict>], "status">;
490
+ inputTokenCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
491
+ status: z.ZodLiteral<"available">;
492
+ value: z.ZodNumber;
493
+ }, z.core.$strict>, z.ZodObject<{
494
+ status: z.ZodLiteral<"unavailable">;
495
+ reason: z.ZodEnum<{
496
+ not_applicable: "not_applicable";
497
+ not_recorded: "not_recorded";
498
+ privacy_redacted: "privacy_redacted";
499
+ provider_unavailable: "provider_unavailable";
500
+ unreconciled: "unreconciled";
501
+ }>;
502
+ }, z.core.$strict>], "status">;
503
+ cacheReadTokenCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
504
+ status: z.ZodLiteral<"available">;
505
+ value: z.ZodNumber;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ status: z.ZodLiteral<"unavailable">;
508
+ reason: z.ZodEnum<{
509
+ not_applicable: "not_applicable";
510
+ not_recorded: "not_recorded";
511
+ privacy_redacted: "privacy_redacted";
512
+ provider_unavailable: "provider_unavailable";
513
+ unreconciled: "unreconciled";
514
+ }>;
515
+ }, z.core.$strict>], "status">;
516
+ outputTokenCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
517
+ status: z.ZodLiteral<"available">;
518
+ value: z.ZodNumber;
519
+ }, z.core.$strict>, z.ZodObject<{
520
+ status: z.ZodLiteral<"unavailable">;
521
+ reason: z.ZodEnum<{
522
+ not_applicable: "not_applicable";
523
+ not_recorded: "not_recorded";
524
+ privacy_redacted: "privacy_redacted";
525
+ provider_unavailable: "provider_unavailable";
526
+ unreconciled: "unreconciled";
527
+ }>;
528
+ }, z.core.$strict>], "status">;
529
+ promptCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
530
+ status: z.ZodLiteral<"available">;
531
+ value: z.ZodNumber;
532
+ }, z.core.$strict>, z.ZodObject<{
533
+ status: z.ZodLiteral<"unavailable">;
534
+ reason: z.ZodEnum<{
535
+ not_applicable: "not_applicable";
536
+ not_recorded: "not_recorded";
537
+ privacy_redacted: "privacy_redacted";
538
+ provider_unavailable: "provider_unavailable";
539
+ unreconciled: "unreconciled";
540
+ }>;
541
+ }, z.core.$strict>], "status">;
542
+ resultCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
543
+ status: z.ZodLiteral<"available">;
544
+ value: z.ZodNumber;
545
+ }, z.core.$strict>, z.ZodObject<{
546
+ status: z.ZodLiteral<"unavailable">;
547
+ reason: z.ZodEnum<{
548
+ not_applicable: "not_applicable";
549
+ not_recorded: "not_recorded";
550
+ privacy_redacted: "privacy_redacted";
551
+ provider_unavailable: "provider_unavailable";
552
+ unreconciled: "unreconciled";
553
+ }>;
554
+ }, z.core.$strict>], "status">;
555
+ }, z.core.$strict>, z.ZodObject<{
556
+ seq: z.ZodNumber;
557
+ atMs: z.ZodNumber;
558
+ source: z.ZodEnum<{
559
+ flow_ledger: "flow_ledger";
560
+ host_metadata: "host_metadata";
561
+ replay_derived: "replay_derived";
562
+ supplied_observation: "supplied_observation";
563
+ }>;
564
+ kind: z.ZodLiteral<"retry_finding_delta">;
565
+ operationId: z.ZodString;
566
+ logicalPassId: z.ZodString;
567
+ previousAttemptId: z.ZodString;
568
+ currentAttemptId: z.ZodString;
569
+ delta: z.ZodEnum<{
570
+ changed: "changed";
571
+ resolved: "resolved";
572
+ unchanged: "unchanged";
573
+ }>;
574
+ previousFindingCount: z.ZodNumber;
575
+ currentFindingCount: z.ZodNumber;
576
+ duplicateFindingCount: z.ZodNumber;
577
+ }, z.core.$strict>, z.ZodObject<{
578
+ seq: z.ZodNumber;
579
+ atMs: z.ZodNumber;
580
+ source: z.ZodEnum<{
581
+ flow_ledger: "flow_ledger";
582
+ host_metadata: "host_metadata";
583
+ replay_derived: "replay_derived";
584
+ supplied_observation: "supplied_observation";
585
+ }>;
586
+ kind: z.ZodLiteral<"compaction">;
587
+ operationId: z.ZodString;
588
+ beforeCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
589
+ status: z.ZodLiteral<"available">;
590
+ value: z.ZodNumber;
591
+ }, z.core.$strict>, z.ZodObject<{
592
+ status: z.ZodLiteral<"unavailable">;
593
+ reason: z.ZodEnum<{
594
+ not_applicable: "not_applicable";
595
+ not_recorded: "not_recorded";
596
+ privacy_redacted: "privacy_redacted";
597
+ provider_unavailable: "provider_unavailable";
598
+ unreconciled: "unreconciled";
599
+ }>;
600
+ }, z.core.$strict>], "status">;
601
+ afterCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
602
+ status: z.ZodLiteral<"available">;
603
+ value: z.ZodNumber;
604
+ }, z.core.$strict>, z.ZodObject<{
605
+ status: z.ZodLiteral<"unavailable">;
606
+ reason: z.ZodEnum<{
607
+ not_applicable: "not_applicable";
608
+ not_recorded: "not_recorded";
609
+ privacy_redacted: "privacy_redacted";
610
+ provider_unavailable: "provider_unavailable";
611
+ unreconciled: "unreconciled";
612
+ }>;
613
+ }, z.core.$strict>], "status">;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ seq: z.ZodNumber;
616
+ atMs: z.ZodNumber;
617
+ source: z.ZodEnum<{
618
+ flow_ledger: "flow_ledger";
619
+ host_metadata: "host_metadata";
620
+ replay_derived: "replay_derived";
621
+ supplied_observation: "supplied_observation";
622
+ }>;
623
+ kind: z.ZodLiteral<"schema_failure">;
624
+ operationId: z.ZodString;
625
+ target: z.ZodEnum<{
626
+ completion: "completion";
627
+ durable_state: "durable_state";
628
+ handoff: "handoff";
629
+ telemetry: "telemetry";
630
+ }>;
631
+ failure: z.ZodEnum<{
632
+ extra_field: "extra_field";
633
+ invalid_type: "invalid_type";
634
+ invalid_value: "invalid_value";
635
+ missing_field: "missing_field";
636
+ }>;
637
+ }, z.core.$strict>, z.ZodObject<{
638
+ seq: z.ZodNumber;
639
+ atMs: z.ZodNumber;
640
+ source: z.ZodEnum<{
641
+ flow_ledger: "flow_ledger";
642
+ host_metadata: "host_metadata";
643
+ replay_derived: "replay_derived";
644
+ supplied_observation: "supplied_observation";
645
+ }>;
646
+ kind: z.ZodLiteral<"mutation_start">;
647
+ operationId: z.ZodString;
648
+ mutationId: z.ZodString;
649
+ baseRevision: z.ZodNumber;
650
+ inputDigest: z.ZodString;
651
+ }, z.core.$strict>, z.ZodObject<{
652
+ seq: z.ZodNumber;
653
+ atMs: z.ZodNumber;
654
+ source: z.ZodEnum<{
655
+ flow_ledger: "flow_ledger";
656
+ host_metadata: "host_metadata";
657
+ replay_derived: "replay_derived";
658
+ supplied_observation: "supplied_observation";
659
+ }>;
660
+ kind: z.ZodLiteral<"mutation_commit">;
661
+ operationId: z.ZodString;
662
+ mutationId: z.ZodString;
663
+ revision: z.ZodNumber;
664
+ stateDigest: z.ZodString;
665
+ }, z.core.$strict>, z.ZodObject<{
666
+ seq: z.ZodNumber;
667
+ atMs: z.ZodNumber;
668
+ source: z.ZodEnum<{
669
+ flow_ledger: "flow_ledger";
670
+ host_metadata: "host_metadata";
671
+ replay_derived: "replay_derived";
672
+ supplied_observation: "supplied_observation";
673
+ }>;
674
+ kind: z.ZodLiteral<"mutation_crash">;
675
+ operationId: z.ZodString;
676
+ mutationId: z.ZodString;
677
+ phase: z.ZodEnum<{
678
+ after_commit: "after_commit";
679
+ after_write_before_commit: "after_write_before_commit";
680
+ before_write: "before_write";
681
+ }>;
682
+ }, z.core.$strict>, z.ZodObject<{
683
+ seq: z.ZodNumber;
684
+ atMs: z.ZodNumber;
685
+ source: z.ZodEnum<{
686
+ flow_ledger: "flow_ledger";
687
+ host_metadata: "host_metadata";
688
+ replay_derived: "replay_derived";
689
+ supplied_observation: "supplied_observation";
690
+ }>;
691
+ kind: z.ZodLiteral<"mutation_recovery">;
692
+ operationId: z.ZodString;
693
+ mutationId: z.ZodString;
694
+ status: z.ZodEnum<{
695
+ commit_reused: "commit_reused";
696
+ reapplied: "reapplied";
697
+ rolled_back: "rolled_back";
698
+ }>;
699
+ revision: z.ZodNumber;
700
+ stateDigest: z.ZodString;
701
+ }, z.core.$strict>, z.ZodObject<{
702
+ seq: z.ZodNumber;
703
+ atMs: z.ZodNumber;
704
+ source: z.ZodEnum<{
705
+ flow_ledger: "flow_ledger";
706
+ host_metadata: "host_metadata";
707
+ replay_derived: "replay_derived";
708
+ supplied_observation: "supplied_observation";
709
+ }>;
710
+ kind: z.ZodLiteral<"terminal_decision">;
711
+ decision: z.ZodEnum<{
712
+ blocked: "blocked";
713
+ complete: "complete";
714
+ failed: "failed";
715
+ recovered: "recovered";
716
+ retry: "retry";
717
+ }>;
718
+ reason: z.ZodEnum<{
719
+ active_final_feature_in_progress: "active_final_feature_in_progress";
720
+ all_gates_passed: "all_gates_passed";
721
+ contradictory_review_verdicts: "contradictory_review_verdicts";
722
+ finding_unchanged: "finding_unchanged";
723
+ handoff_invalid: "handoff_invalid";
724
+ mutation_incomplete: "mutation_incomplete";
725
+ mutation_recovered: "mutation_recovered";
726
+ optional_telemetry_malformed: "optional_telemetry_malformed";
727
+ review_failed: "review_failed";
728
+ review_failure_unsubmitted: "review_failure_unsubmitted";
729
+ review_retry_passed: "review_retry_passed";
730
+ schema_invalid: "schema_invalid";
731
+ validation_stale: "validation_stale";
732
+ }>;
733
+ revision: z.ZodNumber;
734
+ stateDigest: z.ZodString;
735
+ evidenceRefs: z.ZodArray<z.ZodString>;
736
+ }, z.core.$strict>], "kind">;
737
+ export type ReplayEvent = z.infer<typeof ReplayEventSchema>;
738
+ export declare const ReplayScenarioSchema: z.ZodObject<{
739
+ id: z.ZodEnum<{
740
+ active_final_feature_awaiting_review: "active_final_feature_awaiting_review";
741
+ contradictory_feature_final_verdicts: "contradictory_feature_final_verdicts";
742
+ crash_replay_around_mutation: "crash_replay_around_mutation";
743
+ empty_or_malformed_handoff: "empty_or_malformed_handoff";
744
+ failed_to_passed_retry: "failed_to_passed_retry";
745
+ malformed_optional_telemetry: "malformed_optional_telemetry";
746
+ stale_validation: "stale_validation";
747
+ unchanged_finding_retry: "unchanged_finding_retry";
748
+ unsubmitted_review_failure: "unsubmitted_review_failure";
749
+ }>;
750
+ sessionId: z.ZodString;
751
+ initialStateDigest: z.ZodString;
752
+ controlDefects: z.ZodArray<z.ZodEnum<{
753
+ active_final_false_block: "active_final_false_block";
754
+ contradictory_verdict_not_reconciled: "contradictory_verdict_not_reconciled";
755
+ handoff_not_runtime_validated: "handoff_not_runtime_validated";
756
+ logical_pass_retry_not_correlated: "logical_pass_retry_not_correlated";
757
+ malformed_telemetry_masks_review: "malformed_telemetry_masks_review";
758
+ mutation_recovery_not_idempotent: "mutation_recovery_not_idempotent";
759
+ stale_validation_not_snapshot_bound: "stale_validation_not_snapshot_bound";
760
+ unchanged_finding_not_deduplicated: "unchanged_finding_not_deduplicated";
761
+ unsubmitted_review_failure_not_counted: "unsubmitted_review_failure_not_counted";
762
+ }>>;
763
+ events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
764
+ seq: z.ZodNumber;
765
+ atMs: z.ZodNumber;
766
+ source: z.ZodEnum<{
767
+ flow_ledger: "flow_ledger";
768
+ host_metadata: "host_metadata";
769
+ replay_derived: "replay_derived";
770
+ supplied_observation: "supplied_observation";
771
+ }>;
772
+ kind: z.ZodLiteral<"session_state">;
773
+ sessionId: z.ZodString;
774
+ revision: z.ZodNumber;
775
+ sessionStatus: z.ZodEnum<{
776
+ blocked: "blocked";
777
+ completed: "completed";
778
+ planning: "planning";
779
+ ready: "ready";
780
+ running: "running";
781
+ }>;
782
+ featureStatus: z.ZodEnum<{
783
+ blocked: "blocked";
784
+ completed: "completed";
785
+ in_progress: "in_progress";
786
+ pending: "pending";
787
+ }>;
788
+ stateDigest: z.ZodString;
789
+ }, z.core.$strict>, z.ZodObject<{
790
+ seq: z.ZodNumber;
791
+ atMs: z.ZodNumber;
792
+ source: z.ZodEnum<{
793
+ flow_ledger: "flow_ledger";
794
+ host_metadata: "host_metadata";
795
+ replay_derived: "replay_derived";
796
+ supplied_observation: "supplied_observation";
797
+ }>;
798
+ kind: z.ZodLiteral<"validation">;
799
+ operationId: z.ZodString;
800
+ evidenceRef: z.ZodString;
801
+ snapshotId: z.ZodString;
802
+ revision: z.ZodNumber;
803
+ scope: z.ZodEnum<{
804
+ broad: "broad";
805
+ targeted: "targeted";
806
+ }>;
807
+ status: z.ZodEnum<{
808
+ failed: "failed";
809
+ passed: "passed";
810
+ }>;
811
+ freshness: z.ZodEnum<{
812
+ current: "current";
813
+ stale: "stale";
814
+ unknown: "unknown";
815
+ }>;
816
+ latencyMs: z.ZodDiscriminatedUnion<[z.ZodObject<{
817
+ status: z.ZodLiteral<"available">;
818
+ value: z.ZodNumber;
819
+ }, z.core.$strict>, z.ZodObject<{
820
+ status: z.ZodLiteral<"unavailable">;
821
+ reason: z.ZodEnum<{
822
+ not_applicable: "not_applicable";
823
+ not_recorded: "not_recorded";
824
+ privacy_redacted: "privacy_redacted";
825
+ provider_unavailable: "provider_unavailable";
826
+ unreconciled: "unreconciled";
827
+ }>;
828
+ }, z.core.$strict>], "status">;
829
+ }, z.core.$strict>, z.ZodObject<{
830
+ seq: z.ZodNumber;
831
+ atMs: z.ZodNumber;
832
+ source: z.ZodEnum<{
833
+ flow_ledger: "flow_ledger";
834
+ host_metadata: "host_metadata";
835
+ replay_derived: "replay_derived";
836
+ supplied_observation: "supplied_observation";
837
+ }>;
838
+ operationId: z.ZodString;
839
+ workerId: z.ZodString;
840
+ role: z.ZodEnum<{
841
+ feature_reviewer: "feature_reviewer";
842
+ final_reviewer: "final_reviewer";
843
+ host: "host";
844
+ implementation_worker: "implementation_worker";
845
+ root_manager: "root_manager";
846
+ verifier: "verifier";
847
+ }>;
848
+ modelClass: z.ZodEnum<{
849
+ manager: "manager";
850
+ reviewer: "reviewer";
851
+ unknown: "unknown";
852
+ verifier: "verifier";
853
+ worker: "worker";
854
+ }>;
855
+ attemptId: z.ZodString;
856
+ logicalPassId: z.ZodString;
857
+ snapshotId: z.ZodString;
858
+ evidenceRef: z.ZodString;
859
+ verdict: z.ZodEnum<{
860
+ failed: "failed";
861
+ passed: "passed";
862
+ }>;
863
+ submitted: z.ZodBoolean;
864
+ findingFingerprints: z.ZodArray<z.ZodString>;
865
+ duplicateFindingCount: z.ZodNumber;
866
+ kind: z.ZodLiteral<"feature_review_attempt">;
867
+ }, z.core.$strict>, z.ZodObject<{
868
+ seq: z.ZodNumber;
869
+ atMs: z.ZodNumber;
870
+ source: z.ZodEnum<{
871
+ flow_ledger: "flow_ledger";
872
+ host_metadata: "host_metadata";
873
+ replay_derived: "replay_derived";
874
+ supplied_observation: "supplied_observation";
875
+ }>;
876
+ operationId: z.ZodString;
877
+ workerId: z.ZodString;
878
+ role: z.ZodEnum<{
879
+ feature_reviewer: "feature_reviewer";
880
+ final_reviewer: "final_reviewer";
881
+ host: "host";
882
+ implementation_worker: "implementation_worker";
883
+ root_manager: "root_manager";
884
+ verifier: "verifier";
885
+ }>;
886
+ modelClass: z.ZodEnum<{
887
+ manager: "manager";
888
+ reviewer: "reviewer";
889
+ unknown: "unknown";
890
+ verifier: "verifier";
891
+ worker: "worker";
892
+ }>;
893
+ attemptId: z.ZodString;
894
+ logicalPassId: z.ZodString;
895
+ snapshotId: z.ZodString;
896
+ evidenceRef: z.ZodString;
897
+ verdict: z.ZodEnum<{
898
+ failed: "failed";
899
+ passed: "passed";
900
+ }>;
901
+ submitted: z.ZodBoolean;
902
+ findingFingerprints: z.ZodArray<z.ZodString>;
903
+ duplicateFindingCount: z.ZodNumber;
904
+ kind: z.ZodLiteral<"final_review_attempt">;
905
+ }, z.core.$strict>, z.ZodObject<{
906
+ seq: z.ZodNumber;
907
+ atMs: z.ZodNumber;
908
+ source: z.ZodEnum<{
909
+ flow_ledger: "flow_ledger";
910
+ host_metadata: "host_metadata";
911
+ replay_derived: "replay_derived";
912
+ supplied_observation: "supplied_observation";
913
+ }>;
914
+ operationId: z.ZodString;
915
+ workerId: z.ZodString;
916
+ role: z.ZodEnum<{
917
+ feature_reviewer: "feature_reviewer";
918
+ final_reviewer: "final_reviewer";
919
+ host: "host";
920
+ implementation_worker: "implementation_worker";
921
+ root_manager: "root_manager";
922
+ verifier: "verifier";
923
+ }>;
924
+ modelClass: z.ZodEnum<{
925
+ manager: "manager";
926
+ reviewer: "reviewer";
927
+ unknown: "unknown";
928
+ verifier: "verifier";
929
+ worker: "worker";
930
+ }>;
931
+ kind: z.ZodLiteral<"handoff_validity">;
932
+ status: z.ZodEnum<{
933
+ empty: "empty";
934
+ malformed: "malformed";
935
+ valid: "valid";
936
+ }>;
937
+ evidenceRef: z.ZodString;
938
+ }, z.core.$strict>, z.ZodObject<{
939
+ seq: z.ZodNumber;
940
+ atMs: z.ZodNumber;
941
+ source: z.ZodEnum<{
942
+ flow_ledger: "flow_ledger";
943
+ host_metadata: "host_metadata";
944
+ replay_derived: "replay_derived";
945
+ supplied_observation: "supplied_observation";
946
+ }>;
947
+ kind: z.ZodLiteral<"telemetry_validity">;
948
+ operationId: z.ZodString;
949
+ status: z.ZodEnum<{
950
+ malformed: "malformed";
951
+ unavailable: "unavailable";
952
+ valid: "valid";
953
+ }>;
954
+ declaredWorkerCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
955
+ status: z.ZodLiteral<"available">;
956
+ value: z.ZodNumber;
957
+ }, z.core.$strict>, z.ZodObject<{
958
+ status: z.ZodLiteral<"unavailable">;
959
+ reason: z.ZodEnum<{
960
+ not_applicable: "not_applicable";
961
+ not_recorded: "not_recorded";
962
+ privacy_redacted: "privacy_redacted";
963
+ provider_unavailable: "provider_unavailable";
964
+ unreconciled: "unreconciled";
965
+ }>;
966
+ }, z.core.$strict>], "status">;
967
+ }, z.core.$strict>, z.ZodObject<{
968
+ seq: z.ZodNumber;
969
+ atMs: z.ZodNumber;
970
+ source: z.ZodEnum<{
971
+ flow_ledger: "flow_ledger";
972
+ host_metadata: "host_metadata";
973
+ replay_derived: "replay_derived";
974
+ supplied_observation: "supplied_observation";
975
+ }>;
976
+ operationId: z.ZodString;
977
+ workerId: z.ZodString;
978
+ role: z.ZodEnum<{
979
+ feature_reviewer: "feature_reviewer";
980
+ final_reviewer: "final_reviewer";
981
+ host: "host";
982
+ implementation_worker: "implementation_worker";
983
+ root_manager: "root_manager";
984
+ verifier: "verifier";
985
+ }>;
986
+ modelClass: z.ZodEnum<{
987
+ manager: "manager";
988
+ reviewer: "reviewer";
989
+ unknown: "unknown";
990
+ verifier: "verifier";
991
+ worker: "worker";
992
+ }>;
993
+ kind: z.ZodLiteral<"operation_metrics">;
994
+ latencyMs: z.ZodDiscriminatedUnion<[z.ZodObject<{
995
+ status: z.ZodLiteral<"available">;
996
+ value: z.ZodNumber;
997
+ }, z.core.$strict>, z.ZodObject<{
998
+ status: z.ZodLiteral<"unavailable">;
999
+ reason: z.ZodEnum<{
1000
+ not_applicable: "not_applicable";
1001
+ not_recorded: "not_recorded";
1002
+ privacy_redacted: "privacy_redacted";
1003
+ provider_unavailable: "provider_unavailable";
1004
+ unreconciled: "unreconciled";
1005
+ }>;
1006
+ }, z.core.$strict>], "status">;
1007
+ inputTokenCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1008
+ status: z.ZodLiteral<"available">;
1009
+ value: z.ZodNumber;
1010
+ }, z.core.$strict>, z.ZodObject<{
1011
+ status: z.ZodLiteral<"unavailable">;
1012
+ reason: z.ZodEnum<{
1013
+ not_applicable: "not_applicable";
1014
+ not_recorded: "not_recorded";
1015
+ privacy_redacted: "privacy_redacted";
1016
+ provider_unavailable: "provider_unavailable";
1017
+ unreconciled: "unreconciled";
1018
+ }>;
1019
+ }, z.core.$strict>], "status">;
1020
+ cacheReadTokenCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1021
+ status: z.ZodLiteral<"available">;
1022
+ value: z.ZodNumber;
1023
+ }, z.core.$strict>, z.ZodObject<{
1024
+ status: z.ZodLiteral<"unavailable">;
1025
+ reason: z.ZodEnum<{
1026
+ not_applicable: "not_applicable";
1027
+ not_recorded: "not_recorded";
1028
+ privacy_redacted: "privacy_redacted";
1029
+ provider_unavailable: "provider_unavailable";
1030
+ unreconciled: "unreconciled";
1031
+ }>;
1032
+ }, z.core.$strict>], "status">;
1033
+ outputTokenCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1034
+ status: z.ZodLiteral<"available">;
1035
+ value: z.ZodNumber;
1036
+ }, z.core.$strict>, z.ZodObject<{
1037
+ status: z.ZodLiteral<"unavailable">;
1038
+ reason: z.ZodEnum<{
1039
+ not_applicable: "not_applicable";
1040
+ not_recorded: "not_recorded";
1041
+ privacy_redacted: "privacy_redacted";
1042
+ provider_unavailable: "provider_unavailable";
1043
+ unreconciled: "unreconciled";
1044
+ }>;
1045
+ }, z.core.$strict>], "status">;
1046
+ promptCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1047
+ status: z.ZodLiteral<"available">;
1048
+ value: z.ZodNumber;
1049
+ }, z.core.$strict>, z.ZodObject<{
1050
+ status: z.ZodLiteral<"unavailable">;
1051
+ reason: z.ZodEnum<{
1052
+ not_applicable: "not_applicable";
1053
+ not_recorded: "not_recorded";
1054
+ privacy_redacted: "privacy_redacted";
1055
+ provider_unavailable: "provider_unavailable";
1056
+ unreconciled: "unreconciled";
1057
+ }>;
1058
+ }, z.core.$strict>], "status">;
1059
+ resultCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1060
+ status: z.ZodLiteral<"available">;
1061
+ value: z.ZodNumber;
1062
+ }, z.core.$strict>, z.ZodObject<{
1063
+ status: z.ZodLiteral<"unavailable">;
1064
+ reason: z.ZodEnum<{
1065
+ not_applicable: "not_applicable";
1066
+ not_recorded: "not_recorded";
1067
+ privacy_redacted: "privacy_redacted";
1068
+ provider_unavailable: "provider_unavailable";
1069
+ unreconciled: "unreconciled";
1070
+ }>;
1071
+ }, z.core.$strict>], "status">;
1072
+ }, z.core.$strict>, z.ZodObject<{
1073
+ seq: z.ZodNumber;
1074
+ atMs: z.ZodNumber;
1075
+ source: z.ZodEnum<{
1076
+ flow_ledger: "flow_ledger";
1077
+ host_metadata: "host_metadata";
1078
+ replay_derived: "replay_derived";
1079
+ supplied_observation: "supplied_observation";
1080
+ }>;
1081
+ kind: z.ZodLiteral<"retry_finding_delta">;
1082
+ operationId: z.ZodString;
1083
+ logicalPassId: z.ZodString;
1084
+ previousAttemptId: z.ZodString;
1085
+ currentAttemptId: z.ZodString;
1086
+ delta: z.ZodEnum<{
1087
+ changed: "changed";
1088
+ resolved: "resolved";
1089
+ unchanged: "unchanged";
1090
+ }>;
1091
+ previousFindingCount: z.ZodNumber;
1092
+ currentFindingCount: z.ZodNumber;
1093
+ duplicateFindingCount: z.ZodNumber;
1094
+ }, z.core.$strict>, z.ZodObject<{
1095
+ seq: z.ZodNumber;
1096
+ atMs: z.ZodNumber;
1097
+ source: z.ZodEnum<{
1098
+ flow_ledger: "flow_ledger";
1099
+ host_metadata: "host_metadata";
1100
+ replay_derived: "replay_derived";
1101
+ supplied_observation: "supplied_observation";
1102
+ }>;
1103
+ kind: z.ZodLiteral<"compaction">;
1104
+ operationId: z.ZodString;
1105
+ beforeCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1106
+ status: z.ZodLiteral<"available">;
1107
+ value: z.ZodNumber;
1108
+ }, z.core.$strict>, z.ZodObject<{
1109
+ status: z.ZodLiteral<"unavailable">;
1110
+ reason: z.ZodEnum<{
1111
+ not_applicable: "not_applicable";
1112
+ not_recorded: "not_recorded";
1113
+ privacy_redacted: "privacy_redacted";
1114
+ provider_unavailable: "provider_unavailable";
1115
+ unreconciled: "unreconciled";
1116
+ }>;
1117
+ }, z.core.$strict>], "status">;
1118
+ afterCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1119
+ status: z.ZodLiteral<"available">;
1120
+ value: z.ZodNumber;
1121
+ }, z.core.$strict>, z.ZodObject<{
1122
+ status: z.ZodLiteral<"unavailable">;
1123
+ reason: z.ZodEnum<{
1124
+ not_applicable: "not_applicable";
1125
+ not_recorded: "not_recorded";
1126
+ privacy_redacted: "privacy_redacted";
1127
+ provider_unavailable: "provider_unavailable";
1128
+ unreconciled: "unreconciled";
1129
+ }>;
1130
+ }, z.core.$strict>], "status">;
1131
+ }, z.core.$strict>, z.ZodObject<{
1132
+ seq: z.ZodNumber;
1133
+ atMs: z.ZodNumber;
1134
+ source: z.ZodEnum<{
1135
+ flow_ledger: "flow_ledger";
1136
+ host_metadata: "host_metadata";
1137
+ replay_derived: "replay_derived";
1138
+ supplied_observation: "supplied_observation";
1139
+ }>;
1140
+ kind: z.ZodLiteral<"schema_failure">;
1141
+ operationId: z.ZodString;
1142
+ target: z.ZodEnum<{
1143
+ completion: "completion";
1144
+ durable_state: "durable_state";
1145
+ handoff: "handoff";
1146
+ telemetry: "telemetry";
1147
+ }>;
1148
+ failure: z.ZodEnum<{
1149
+ extra_field: "extra_field";
1150
+ invalid_type: "invalid_type";
1151
+ invalid_value: "invalid_value";
1152
+ missing_field: "missing_field";
1153
+ }>;
1154
+ }, z.core.$strict>, z.ZodObject<{
1155
+ seq: z.ZodNumber;
1156
+ atMs: z.ZodNumber;
1157
+ source: z.ZodEnum<{
1158
+ flow_ledger: "flow_ledger";
1159
+ host_metadata: "host_metadata";
1160
+ replay_derived: "replay_derived";
1161
+ supplied_observation: "supplied_observation";
1162
+ }>;
1163
+ kind: z.ZodLiteral<"mutation_start">;
1164
+ operationId: z.ZodString;
1165
+ mutationId: z.ZodString;
1166
+ baseRevision: z.ZodNumber;
1167
+ inputDigest: z.ZodString;
1168
+ }, z.core.$strict>, z.ZodObject<{
1169
+ seq: z.ZodNumber;
1170
+ atMs: z.ZodNumber;
1171
+ source: z.ZodEnum<{
1172
+ flow_ledger: "flow_ledger";
1173
+ host_metadata: "host_metadata";
1174
+ replay_derived: "replay_derived";
1175
+ supplied_observation: "supplied_observation";
1176
+ }>;
1177
+ kind: z.ZodLiteral<"mutation_commit">;
1178
+ operationId: z.ZodString;
1179
+ mutationId: z.ZodString;
1180
+ revision: z.ZodNumber;
1181
+ stateDigest: z.ZodString;
1182
+ }, z.core.$strict>, z.ZodObject<{
1183
+ seq: z.ZodNumber;
1184
+ atMs: z.ZodNumber;
1185
+ source: z.ZodEnum<{
1186
+ flow_ledger: "flow_ledger";
1187
+ host_metadata: "host_metadata";
1188
+ replay_derived: "replay_derived";
1189
+ supplied_observation: "supplied_observation";
1190
+ }>;
1191
+ kind: z.ZodLiteral<"mutation_crash">;
1192
+ operationId: z.ZodString;
1193
+ mutationId: z.ZodString;
1194
+ phase: z.ZodEnum<{
1195
+ after_commit: "after_commit";
1196
+ after_write_before_commit: "after_write_before_commit";
1197
+ before_write: "before_write";
1198
+ }>;
1199
+ }, z.core.$strict>, z.ZodObject<{
1200
+ seq: z.ZodNumber;
1201
+ atMs: z.ZodNumber;
1202
+ source: z.ZodEnum<{
1203
+ flow_ledger: "flow_ledger";
1204
+ host_metadata: "host_metadata";
1205
+ replay_derived: "replay_derived";
1206
+ supplied_observation: "supplied_observation";
1207
+ }>;
1208
+ kind: z.ZodLiteral<"mutation_recovery">;
1209
+ operationId: z.ZodString;
1210
+ mutationId: z.ZodString;
1211
+ status: z.ZodEnum<{
1212
+ commit_reused: "commit_reused";
1213
+ reapplied: "reapplied";
1214
+ rolled_back: "rolled_back";
1215
+ }>;
1216
+ revision: z.ZodNumber;
1217
+ stateDigest: z.ZodString;
1218
+ }, z.core.$strict>, z.ZodObject<{
1219
+ seq: z.ZodNumber;
1220
+ atMs: z.ZodNumber;
1221
+ source: z.ZodEnum<{
1222
+ flow_ledger: "flow_ledger";
1223
+ host_metadata: "host_metadata";
1224
+ replay_derived: "replay_derived";
1225
+ supplied_observation: "supplied_observation";
1226
+ }>;
1227
+ kind: z.ZodLiteral<"terminal_decision">;
1228
+ decision: z.ZodEnum<{
1229
+ blocked: "blocked";
1230
+ complete: "complete";
1231
+ failed: "failed";
1232
+ recovered: "recovered";
1233
+ retry: "retry";
1234
+ }>;
1235
+ reason: z.ZodEnum<{
1236
+ active_final_feature_in_progress: "active_final_feature_in_progress";
1237
+ all_gates_passed: "all_gates_passed";
1238
+ contradictory_review_verdicts: "contradictory_review_verdicts";
1239
+ finding_unchanged: "finding_unchanged";
1240
+ handoff_invalid: "handoff_invalid";
1241
+ mutation_incomplete: "mutation_incomplete";
1242
+ mutation_recovered: "mutation_recovered";
1243
+ optional_telemetry_malformed: "optional_telemetry_malformed";
1244
+ review_failed: "review_failed";
1245
+ review_failure_unsubmitted: "review_failure_unsubmitted";
1246
+ review_retry_passed: "review_retry_passed";
1247
+ schema_invalid: "schema_invalid";
1248
+ validation_stale: "validation_stale";
1249
+ }>;
1250
+ revision: z.ZodNumber;
1251
+ stateDigest: z.ZodString;
1252
+ evidenceRefs: z.ZodArray<z.ZodString>;
1253
+ }, z.core.$strict>], "kind">>;
1254
+ }, z.core.$strict>;
1255
+ export type ReplayScenario = z.infer<typeof ReplayScenarioSchema>;
1256
+ export declare const ReplayFixtureSchema: z.ZodObject<{
1257
+ version: z.ZodLiteral<1>;
1258
+ fixtureId: z.ZodString;
1259
+ sourceFingerprint: z.ZodString;
1260
+ sources: z.ZodArray<z.ZodObject<{
1261
+ category: z.ZodEnum<{
1262
+ flow_ledger: "flow_ledger";
1263
+ host_metadata: "host_metadata";
1264
+ replay_derived: "replay_derived";
1265
+ supplied_observation: "supplied_observation";
1266
+ }>;
1267
+ fingerprint: z.ZodString;
1268
+ }, z.core.$strict>>;
1269
+ hostFacts: z.ZodArray<z.ZodObject<{
1270
+ metric: z.ZodEnum<{
1271
+ cache_read_token_count: "cache_read_token_count";
1272
+ child_flow_status_call_count: "child_flow_status_call_count";
1273
+ child_flow_status_result_character_count: "child_flow_status_result_character_count";
1274
+ child_session_count: "child_session_count";
1275
+ compaction_count: "compaction_count";
1276
+ completion_schema_failure_count: "completion_schema_failure_count";
1277
+ declared_worker_count: "declared_worker_count";
1278
+ duplicate_finding_count: "duplicate_finding_count";
1279
+ failed_review_attempt_count: "failed_review_attempt_count";
1280
+ flow_tool_call_count: "flow_tool_call_count";
1281
+ flow_tool_result_character_count: "flow_tool_result_character_count";
1282
+ four_invocation_character_count: "four_invocation_character_count";
1283
+ input_token_count: "input_token_count";
1284
+ live_prompt_character_count: "live_prompt_character_count";
1285
+ live_prompt_estimated_token_count: "live_prompt_estimated_token_count";
1286
+ message_error_count: "message_error_count";
1287
+ output_token_count: "output_token_count";
1288
+ prompt_character_count: "prompt_character_count";
1289
+ recovery_count: "recovery_count";
1290
+ result_character_count: "result_character_count";
1291
+ review_attempt_count: "review_attempt_count";
1292
+ review_packet_file_count: "review_packet_file_count";
1293
+ review_packet_line_count: "review_packet_line_count";
1294
+ reviewer_child_session_count: "reviewer_child_session_count";
1295
+ reviewer_dispatch_count: "reviewer_dispatch_count";
1296
+ reviewer_execution_count: "reviewer_execution_count";
1297
+ reviewer_input_share_basis_points: "reviewer_input_share_basis_points";
1298
+ root_flow_tool_call_count: "root_flow_tool_call_count";
1299
+ root_flow_tool_result_character_count: "root_flow_tool_result_character_count";
1300
+ scenario_count: "scenario_count";
1301
+ session_count: "session_count";
1302
+ terminal_decision_count: "terminal_decision_count";
1303
+ tool_error_count: "tool_error_count";
1304
+ tool_latency_p50_ms: "tool_latency_p50_ms";
1305
+ tool_latency_p95_ms: "tool_latency_p95_ms";
1306
+ tool_latency_total_ms: "tool_latency_total_ms";
1307
+ tool_part_count: "tool_part_count";
1308
+ validation_failure_count: "validation_failure_count";
1309
+ }>;
1310
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
1311
+ status: z.ZodLiteral<"available">;
1312
+ value: z.ZodNumber;
1313
+ }, z.core.$strict>, z.ZodObject<{
1314
+ status: z.ZodLiteral<"unavailable">;
1315
+ reason: z.ZodEnum<{
1316
+ not_applicable: "not_applicable";
1317
+ not_recorded: "not_recorded";
1318
+ privacy_redacted: "privacy_redacted";
1319
+ provider_unavailable: "provider_unavailable";
1320
+ unreconciled: "unreconciled";
1321
+ }>;
1322
+ }, z.core.$strict>], "status">;
1323
+ }, z.core.$strict>>;
1324
+ flowLedgerClaims: z.ZodArray<z.ZodObject<{
1325
+ metric: z.ZodEnum<{
1326
+ cache_read_token_count: "cache_read_token_count";
1327
+ child_flow_status_call_count: "child_flow_status_call_count";
1328
+ child_flow_status_result_character_count: "child_flow_status_result_character_count";
1329
+ child_session_count: "child_session_count";
1330
+ compaction_count: "compaction_count";
1331
+ completion_schema_failure_count: "completion_schema_failure_count";
1332
+ declared_worker_count: "declared_worker_count";
1333
+ duplicate_finding_count: "duplicate_finding_count";
1334
+ failed_review_attempt_count: "failed_review_attempt_count";
1335
+ flow_tool_call_count: "flow_tool_call_count";
1336
+ flow_tool_result_character_count: "flow_tool_result_character_count";
1337
+ four_invocation_character_count: "four_invocation_character_count";
1338
+ input_token_count: "input_token_count";
1339
+ live_prompt_character_count: "live_prompt_character_count";
1340
+ live_prompt_estimated_token_count: "live_prompt_estimated_token_count";
1341
+ message_error_count: "message_error_count";
1342
+ output_token_count: "output_token_count";
1343
+ prompt_character_count: "prompt_character_count";
1344
+ recovery_count: "recovery_count";
1345
+ result_character_count: "result_character_count";
1346
+ review_attempt_count: "review_attempt_count";
1347
+ review_packet_file_count: "review_packet_file_count";
1348
+ review_packet_line_count: "review_packet_line_count";
1349
+ reviewer_child_session_count: "reviewer_child_session_count";
1350
+ reviewer_dispatch_count: "reviewer_dispatch_count";
1351
+ reviewer_execution_count: "reviewer_execution_count";
1352
+ reviewer_input_share_basis_points: "reviewer_input_share_basis_points";
1353
+ root_flow_tool_call_count: "root_flow_tool_call_count";
1354
+ root_flow_tool_result_character_count: "root_flow_tool_result_character_count";
1355
+ scenario_count: "scenario_count";
1356
+ session_count: "session_count";
1357
+ terminal_decision_count: "terminal_decision_count";
1358
+ tool_error_count: "tool_error_count";
1359
+ tool_latency_p50_ms: "tool_latency_p50_ms";
1360
+ tool_latency_p95_ms: "tool_latency_p95_ms";
1361
+ tool_latency_total_ms: "tool_latency_total_ms";
1362
+ tool_part_count: "tool_part_count";
1363
+ validation_failure_count: "validation_failure_count";
1364
+ }>;
1365
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
1366
+ status: z.ZodLiteral<"available">;
1367
+ value: z.ZodNumber;
1368
+ }, z.core.$strict>, z.ZodObject<{
1369
+ status: z.ZodLiteral<"unavailable">;
1370
+ reason: z.ZodEnum<{
1371
+ not_applicable: "not_applicable";
1372
+ not_recorded: "not_recorded";
1373
+ privacy_redacted: "privacy_redacted";
1374
+ provider_unavailable: "provider_unavailable";
1375
+ unreconciled: "unreconciled";
1376
+ }>;
1377
+ }, z.core.$strict>], "status">;
1378
+ }, z.core.$strict>>;
1379
+ suppliedObservations: z.ZodArray<z.ZodObject<{
1380
+ metric: z.ZodEnum<{
1381
+ cache_read_token_count: "cache_read_token_count";
1382
+ child_flow_status_call_count: "child_flow_status_call_count";
1383
+ child_flow_status_result_character_count: "child_flow_status_result_character_count";
1384
+ child_session_count: "child_session_count";
1385
+ compaction_count: "compaction_count";
1386
+ completion_schema_failure_count: "completion_schema_failure_count";
1387
+ declared_worker_count: "declared_worker_count";
1388
+ duplicate_finding_count: "duplicate_finding_count";
1389
+ failed_review_attempt_count: "failed_review_attempt_count";
1390
+ flow_tool_call_count: "flow_tool_call_count";
1391
+ flow_tool_result_character_count: "flow_tool_result_character_count";
1392
+ four_invocation_character_count: "four_invocation_character_count";
1393
+ input_token_count: "input_token_count";
1394
+ live_prompt_character_count: "live_prompt_character_count";
1395
+ live_prompt_estimated_token_count: "live_prompt_estimated_token_count";
1396
+ message_error_count: "message_error_count";
1397
+ output_token_count: "output_token_count";
1398
+ prompt_character_count: "prompt_character_count";
1399
+ recovery_count: "recovery_count";
1400
+ result_character_count: "result_character_count";
1401
+ review_attempt_count: "review_attempt_count";
1402
+ review_packet_file_count: "review_packet_file_count";
1403
+ review_packet_line_count: "review_packet_line_count";
1404
+ reviewer_child_session_count: "reviewer_child_session_count";
1405
+ reviewer_dispatch_count: "reviewer_dispatch_count";
1406
+ reviewer_execution_count: "reviewer_execution_count";
1407
+ reviewer_input_share_basis_points: "reviewer_input_share_basis_points";
1408
+ root_flow_tool_call_count: "root_flow_tool_call_count";
1409
+ root_flow_tool_result_character_count: "root_flow_tool_result_character_count";
1410
+ scenario_count: "scenario_count";
1411
+ session_count: "session_count";
1412
+ terminal_decision_count: "terminal_decision_count";
1413
+ tool_error_count: "tool_error_count";
1414
+ tool_latency_p50_ms: "tool_latency_p50_ms";
1415
+ tool_latency_p95_ms: "tool_latency_p95_ms";
1416
+ tool_latency_total_ms: "tool_latency_total_ms";
1417
+ tool_part_count: "tool_part_count";
1418
+ validation_failure_count: "validation_failure_count";
1419
+ }>;
1420
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
1421
+ status: z.ZodLiteral<"available">;
1422
+ value: z.ZodNumber;
1423
+ }, z.core.$strict>, z.ZodObject<{
1424
+ status: z.ZodLiteral<"unavailable">;
1425
+ reason: z.ZodEnum<{
1426
+ not_applicable: "not_applicable";
1427
+ not_recorded: "not_recorded";
1428
+ privacy_redacted: "privacy_redacted";
1429
+ provider_unavailable: "provider_unavailable";
1430
+ unreconciled: "unreconciled";
1431
+ }>;
1432
+ }, z.core.$strict>], "status">;
1433
+ }, z.core.$strict>>;
1434
+ replayDerivedFacts: z.ZodArray<z.ZodObject<{
1435
+ metric: z.ZodEnum<{
1436
+ cache_read_token_count: "cache_read_token_count";
1437
+ child_flow_status_call_count: "child_flow_status_call_count";
1438
+ child_flow_status_result_character_count: "child_flow_status_result_character_count";
1439
+ child_session_count: "child_session_count";
1440
+ compaction_count: "compaction_count";
1441
+ completion_schema_failure_count: "completion_schema_failure_count";
1442
+ declared_worker_count: "declared_worker_count";
1443
+ duplicate_finding_count: "duplicate_finding_count";
1444
+ failed_review_attempt_count: "failed_review_attempt_count";
1445
+ flow_tool_call_count: "flow_tool_call_count";
1446
+ flow_tool_result_character_count: "flow_tool_result_character_count";
1447
+ four_invocation_character_count: "four_invocation_character_count";
1448
+ input_token_count: "input_token_count";
1449
+ live_prompt_character_count: "live_prompt_character_count";
1450
+ live_prompt_estimated_token_count: "live_prompt_estimated_token_count";
1451
+ message_error_count: "message_error_count";
1452
+ output_token_count: "output_token_count";
1453
+ prompt_character_count: "prompt_character_count";
1454
+ recovery_count: "recovery_count";
1455
+ result_character_count: "result_character_count";
1456
+ review_attempt_count: "review_attempt_count";
1457
+ review_packet_file_count: "review_packet_file_count";
1458
+ review_packet_line_count: "review_packet_line_count";
1459
+ reviewer_child_session_count: "reviewer_child_session_count";
1460
+ reviewer_dispatch_count: "reviewer_dispatch_count";
1461
+ reviewer_execution_count: "reviewer_execution_count";
1462
+ reviewer_input_share_basis_points: "reviewer_input_share_basis_points";
1463
+ root_flow_tool_call_count: "root_flow_tool_call_count";
1464
+ root_flow_tool_result_character_count: "root_flow_tool_result_character_count";
1465
+ scenario_count: "scenario_count";
1466
+ session_count: "session_count";
1467
+ terminal_decision_count: "terminal_decision_count";
1468
+ tool_error_count: "tool_error_count";
1469
+ tool_latency_p50_ms: "tool_latency_p50_ms";
1470
+ tool_latency_p95_ms: "tool_latency_p95_ms";
1471
+ tool_latency_total_ms: "tool_latency_total_ms";
1472
+ tool_part_count: "tool_part_count";
1473
+ validation_failure_count: "validation_failure_count";
1474
+ }>;
1475
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
1476
+ status: z.ZodLiteral<"available">;
1477
+ value: z.ZodNumber;
1478
+ }, z.core.$strict>, z.ZodObject<{
1479
+ status: z.ZodLiteral<"unavailable">;
1480
+ reason: z.ZodEnum<{
1481
+ not_applicable: "not_applicable";
1482
+ not_recorded: "not_recorded";
1483
+ privacy_redacted: "privacy_redacted";
1484
+ provider_unavailable: "provider_unavailable";
1485
+ unreconciled: "unreconciled";
1486
+ }>;
1487
+ }, z.core.$strict>], "status">;
1488
+ }, z.core.$strict>>;
1489
+ scenarios: z.ZodArray<z.ZodObject<{
1490
+ id: z.ZodEnum<{
1491
+ active_final_feature_awaiting_review: "active_final_feature_awaiting_review";
1492
+ contradictory_feature_final_verdicts: "contradictory_feature_final_verdicts";
1493
+ crash_replay_around_mutation: "crash_replay_around_mutation";
1494
+ empty_or_malformed_handoff: "empty_or_malformed_handoff";
1495
+ failed_to_passed_retry: "failed_to_passed_retry";
1496
+ malformed_optional_telemetry: "malformed_optional_telemetry";
1497
+ stale_validation: "stale_validation";
1498
+ unchanged_finding_retry: "unchanged_finding_retry";
1499
+ unsubmitted_review_failure: "unsubmitted_review_failure";
1500
+ }>;
1501
+ sessionId: z.ZodString;
1502
+ initialStateDigest: z.ZodString;
1503
+ controlDefects: z.ZodArray<z.ZodEnum<{
1504
+ active_final_false_block: "active_final_false_block";
1505
+ contradictory_verdict_not_reconciled: "contradictory_verdict_not_reconciled";
1506
+ handoff_not_runtime_validated: "handoff_not_runtime_validated";
1507
+ logical_pass_retry_not_correlated: "logical_pass_retry_not_correlated";
1508
+ malformed_telemetry_masks_review: "malformed_telemetry_masks_review";
1509
+ mutation_recovery_not_idempotent: "mutation_recovery_not_idempotent";
1510
+ stale_validation_not_snapshot_bound: "stale_validation_not_snapshot_bound";
1511
+ unchanged_finding_not_deduplicated: "unchanged_finding_not_deduplicated";
1512
+ unsubmitted_review_failure_not_counted: "unsubmitted_review_failure_not_counted";
1513
+ }>>;
1514
+ events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1515
+ seq: z.ZodNumber;
1516
+ atMs: z.ZodNumber;
1517
+ source: z.ZodEnum<{
1518
+ flow_ledger: "flow_ledger";
1519
+ host_metadata: "host_metadata";
1520
+ replay_derived: "replay_derived";
1521
+ supplied_observation: "supplied_observation";
1522
+ }>;
1523
+ kind: z.ZodLiteral<"session_state">;
1524
+ sessionId: z.ZodString;
1525
+ revision: z.ZodNumber;
1526
+ sessionStatus: z.ZodEnum<{
1527
+ blocked: "blocked";
1528
+ completed: "completed";
1529
+ planning: "planning";
1530
+ ready: "ready";
1531
+ running: "running";
1532
+ }>;
1533
+ featureStatus: z.ZodEnum<{
1534
+ blocked: "blocked";
1535
+ completed: "completed";
1536
+ in_progress: "in_progress";
1537
+ pending: "pending";
1538
+ }>;
1539
+ stateDigest: z.ZodString;
1540
+ }, z.core.$strict>, z.ZodObject<{
1541
+ seq: z.ZodNumber;
1542
+ atMs: z.ZodNumber;
1543
+ source: z.ZodEnum<{
1544
+ flow_ledger: "flow_ledger";
1545
+ host_metadata: "host_metadata";
1546
+ replay_derived: "replay_derived";
1547
+ supplied_observation: "supplied_observation";
1548
+ }>;
1549
+ kind: z.ZodLiteral<"validation">;
1550
+ operationId: z.ZodString;
1551
+ evidenceRef: z.ZodString;
1552
+ snapshotId: z.ZodString;
1553
+ revision: z.ZodNumber;
1554
+ scope: z.ZodEnum<{
1555
+ broad: "broad";
1556
+ targeted: "targeted";
1557
+ }>;
1558
+ status: z.ZodEnum<{
1559
+ failed: "failed";
1560
+ passed: "passed";
1561
+ }>;
1562
+ freshness: z.ZodEnum<{
1563
+ current: "current";
1564
+ stale: "stale";
1565
+ unknown: "unknown";
1566
+ }>;
1567
+ latencyMs: z.ZodDiscriminatedUnion<[z.ZodObject<{
1568
+ status: z.ZodLiteral<"available">;
1569
+ value: z.ZodNumber;
1570
+ }, z.core.$strict>, z.ZodObject<{
1571
+ status: z.ZodLiteral<"unavailable">;
1572
+ reason: z.ZodEnum<{
1573
+ not_applicable: "not_applicable";
1574
+ not_recorded: "not_recorded";
1575
+ privacy_redacted: "privacy_redacted";
1576
+ provider_unavailable: "provider_unavailable";
1577
+ unreconciled: "unreconciled";
1578
+ }>;
1579
+ }, z.core.$strict>], "status">;
1580
+ }, z.core.$strict>, z.ZodObject<{
1581
+ seq: z.ZodNumber;
1582
+ atMs: z.ZodNumber;
1583
+ source: z.ZodEnum<{
1584
+ flow_ledger: "flow_ledger";
1585
+ host_metadata: "host_metadata";
1586
+ replay_derived: "replay_derived";
1587
+ supplied_observation: "supplied_observation";
1588
+ }>;
1589
+ operationId: z.ZodString;
1590
+ workerId: z.ZodString;
1591
+ role: z.ZodEnum<{
1592
+ feature_reviewer: "feature_reviewer";
1593
+ final_reviewer: "final_reviewer";
1594
+ host: "host";
1595
+ implementation_worker: "implementation_worker";
1596
+ root_manager: "root_manager";
1597
+ verifier: "verifier";
1598
+ }>;
1599
+ modelClass: z.ZodEnum<{
1600
+ manager: "manager";
1601
+ reviewer: "reviewer";
1602
+ unknown: "unknown";
1603
+ verifier: "verifier";
1604
+ worker: "worker";
1605
+ }>;
1606
+ attemptId: z.ZodString;
1607
+ logicalPassId: z.ZodString;
1608
+ snapshotId: z.ZodString;
1609
+ evidenceRef: z.ZodString;
1610
+ verdict: z.ZodEnum<{
1611
+ failed: "failed";
1612
+ passed: "passed";
1613
+ }>;
1614
+ submitted: z.ZodBoolean;
1615
+ findingFingerprints: z.ZodArray<z.ZodString>;
1616
+ duplicateFindingCount: z.ZodNumber;
1617
+ kind: z.ZodLiteral<"feature_review_attempt">;
1618
+ }, z.core.$strict>, z.ZodObject<{
1619
+ seq: z.ZodNumber;
1620
+ atMs: z.ZodNumber;
1621
+ source: z.ZodEnum<{
1622
+ flow_ledger: "flow_ledger";
1623
+ host_metadata: "host_metadata";
1624
+ replay_derived: "replay_derived";
1625
+ supplied_observation: "supplied_observation";
1626
+ }>;
1627
+ operationId: z.ZodString;
1628
+ workerId: z.ZodString;
1629
+ role: z.ZodEnum<{
1630
+ feature_reviewer: "feature_reviewer";
1631
+ final_reviewer: "final_reviewer";
1632
+ host: "host";
1633
+ implementation_worker: "implementation_worker";
1634
+ root_manager: "root_manager";
1635
+ verifier: "verifier";
1636
+ }>;
1637
+ modelClass: z.ZodEnum<{
1638
+ manager: "manager";
1639
+ reviewer: "reviewer";
1640
+ unknown: "unknown";
1641
+ verifier: "verifier";
1642
+ worker: "worker";
1643
+ }>;
1644
+ attemptId: z.ZodString;
1645
+ logicalPassId: z.ZodString;
1646
+ snapshotId: z.ZodString;
1647
+ evidenceRef: z.ZodString;
1648
+ verdict: z.ZodEnum<{
1649
+ failed: "failed";
1650
+ passed: "passed";
1651
+ }>;
1652
+ submitted: z.ZodBoolean;
1653
+ findingFingerprints: z.ZodArray<z.ZodString>;
1654
+ duplicateFindingCount: z.ZodNumber;
1655
+ kind: z.ZodLiteral<"final_review_attempt">;
1656
+ }, z.core.$strict>, z.ZodObject<{
1657
+ seq: z.ZodNumber;
1658
+ atMs: z.ZodNumber;
1659
+ source: z.ZodEnum<{
1660
+ flow_ledger: "flow_ledger";
1661
+ host_metadata: "host_metadata";
1662
+ replay_derived: "replay_derived";
1663
+ supplied_observation: "supplied_observation";
1664
+ }>;
1665
+ operationId: z.ZodString;
1666
+ workerId: z.ZodString;
1667
+ role: z.ZodEnum<{
1668
+ feature_reviewer: "feature_reviewer";
1669
+ final_reviewer: "final_reviewer";
1670
+ host: "host";
1671
+ implementation_worker: "implementation_worker";
1672
+ root_manager: "root_manager";
1673
+ verifier: "verifier";
1674
+ }>;
1675
+ modelClass: z.ZodEnum<{
1676
+ manager: "manager";
1677
+ reviewer: "reviewer";
1678
+ unknown: "unknown";
1679
+ verifier: "verifier";
1680
+ worker: "worker";
1681
+ }>;
1682
+ kind: z.ZodLiteral<"handoff_validity">;
1683
+ status: z.ZodEnum<{
1684
+ empty: "empty";
1685
+ malformed: "malformed";
1686
+ valid: "valid";
1687
+ }>;
1688
+ evidenceRef: z.ZodString;
1689
+ }, z.core.$strict>, z.ZodObject<{
1690
+ seq: z.ZodNumber;
1691
+ atMs: z.ZodNumber;
1692
+ source: z.ZodEnum<{
1693
+ flow_ledger: "flow_ledger";
1694
+ host_metadata: "host_metadata";
1695
+ replay_derived: "replay_derived";
1696
+ supplied_observation: "supplied_observation";
1697
+ }>;
1698
+ kind: z.ZodLiteral<"telemetry_validity">;
1699
+ operationId: z.ZodString;
1700
+ status: z.ZodEnum<{
1701
+ malformed: "malformed";
1702
+ unavailable: "unavailable";
1703
+ valid: "valid";
1704
+ }>;
1705
+ declaredWorkerCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1706
+ status: z.ZodLiteral<"available">;
1707
+ value: z.ZodNumber;
1708
+ }, z.core.$strict>, z.ZodObject<{
1709
+ status: z.ZodLiteral<"unavailable">;
1710
+ reason: z.ZodEnum<{
1711
+ not_applicable: "not_applicable";
1712
+ not_recorded: "not_recorded";
1713
+ privacy_redacted: "privacy_redacted";
1714
+ provider_unavailable: "provider_unavailable";
1715
+ unreconciled: "unreconciled";
1716
+ }>;
1717
+ }, z.core.$strict>], "status">;
1718
+ }, z.core.$strict>, z.ZodObject<{
1719
+ seq: z.ZodNumber;
1720
+ atMs: z.ZodNumber;
1721
+ source: z.ZodEnum<{
1722
+ flow_ledger: "flow_ledger";
1723
+ host_metadata: "host_metadata";
1724
+ replay_derived: "replay_derived";
1725
+ supplied_observation: "supplied_observation";
1726
+ }>;
1727
+ operationId: z.ZodString;
1728
+ workerId: z.ZodString;
1729
+ role: z.ZodEnum<{
1730
+ feature_reviewer: "feature_reviewer";
1731
+ final_reviewer: "final_reviewer";
1732
+ host: "host";
1733
+ implementation_worker: "implementation_worker";
1734
+ root_manager: "root_manager";
1735
+ verifier: "verifier";
1736
+ }>;
1737
+ modelClass: z.ZodEnum<{
1738
+ manager: "manager";
1739
+ reviewer: "reviewer";
1740
+ unknown: "unknown";
1741
+ verifier: "verifier";
1742
+ worker: "worker";
1743
+ }>;
1744
+ kind: z.ZodLiteral<"operation_metrics">;
1745
+ latencyMs: z.ZodDiscriminatedUnion<[z.ZodObject<{
1746
+ status: z.ZodLiteral<"available">;
1747
+ value: z.ZodNumber;
1748
+ }, z.core.$strict>, z.ZodObject<{
1749
+ status: z.ZodLiteral<"unavailable">;
1750
+ reason: z.ZodEnum<{
1751
+ not_applicable: "not_applicable";
1752
+ not_recorded: "not_recorded";
1753
+ privacy_redacted: "privacy_redacted";
1754
+ provider_unavailable: "provider_unavailable";
1755
+ unreconciled: "unreconciled";
1756
+ }>;
1757
+ }, z.core.$strict>], "status">;
1758
+ inputTokenCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1759
+ status: z.ZodLiteral<"available">;
1760
+ value: z.ZodNumber;
1761
+ }, z.core.$strict>, z.ZodObject<{
1762
+ status: z.ZodLiteral<"unavailable">;
1763
+ reason: z.ZodEnum<{
1764
+ not_applicable: "not_applicable";
1765
+ not_recorded: "not_recorded";
1766
+ privacy_redacted: "privacy_redacted";
1767
+ provider_unavailable: "provider_unavailable";
1768
+ unreconciled: "unreconciled";
1769
+ }>;
1770
+ }, z.core.$strict>], "status">;
1771
+ cacheReadTokenCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1772
+ status: z.ZodLiteral<"available">;
1773
+ value: z.ZodNumber;
1774
+ }, z.core.$strict>, z.ZodObject<{
1775
+ status: z.ZodLiteral<"unavailable">;
1776
+ reason: z.ZodEnum<{
1777
+ not_applicable: "not_applicable";
1778
+ not_recorded: "not_recorded";
1779
+ privacy_redacted: "privacy_redacted";
1780
+ provider_unavailable: "provider_unavailable";
1781
+ unreconciled: "unreconciled";
1782
+ }>;
1783
+ }, z.core.$strict>], "status">;
1784
+ outputTokenCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1785
+ status: z.ZodLiteral<"available">;
1786
+ value: z.ZodNumber;
1787
+ }, z.core.$strict>, z.ZodObject<{
1788
+ status: z.ZodLiteral<"unavailable">;
1789
+ reason: z.ZodEnum<{
1790
+ not_applicable: "not_applicable";
1791
+ not_recorded: "not_recorded";
1792
+ privacy_redacted: "privacy_redacted";
1793
+ provider_unavailable: "provider_unavailable";
1794
+ unreconciled: "unreconciled";
1795
+ }>;
1796
+ }, z.core.$strict>], "status">;
1797
+ promptCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1798
+ status: z.ZodLiteral<"available">;
1799
+ value: z.ZodNumber;
1800
+ }, z.core.$strict>, z.ZodObject<{
1801
+ status: z.ZodLiteral<"unavailable">;
1802
+ reason: z.ZodEnum<{
1803
+ not_applicable: "not_applicable";
1804
+ not_recorded: "not_recorded";
1805
+ privacy_redacted: "privacy_redacted";
1806
+ provider_unavailable: "provider_unavailable";
1807
+ unreconciled: "unreconciled";
1808
+ }>;
1809
+ }, z.core.$strict>], "status">;
1810
+ resultCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1811
+ status: z.ZodLiteral<"available">;
1812
+ value: z.ZodNumber;
1813
+ }, z.core.$strict>, z.ZodObject<{
1814
+ status: z.ZodLiteral<"unavailable">;
1815
+ reason: z.ZodEnum<{
1816
+ not_applicable: "not_applicable";
1817
+ not_recorded: "not_recorded";
1818
+ privacy_redacted: "privacy_redacted";
1819
+ provider_unavailable: "provider_unavailable";
1820
+ unreconciled: "unreconciled";
1821
+ }>;
1822
+ }, z.core.$strict>], "status">;
1823
+ }, z.core.$strict>, z.ZodObject<{
1824
+ seq: z.ZodNumber;
1825
+ atMs: z.ZodNumber;
1826
+ source: z.ZodEnum<{
1827
+ flow_ledger: "flow_ledger";
1828
+ host_metadata: "host_metadata";
1829
+ replay_derived: "replay_derived";
1830
+ supplied_observation: "supplied_observation";
1831
+ }>;
1832
+ kind: z.ZodLiteral<"retry_finding_delta">;
1833
+ operationId: z.ZodString;
1834
+ logicalPassId: z.ZodString;
1835
+ previousAttemptId: z.ZodString;
1836
+ currentAttemptId: z.ZodString;
1837
+ delta: z.ZodEnum<{
1838
+ changed: "changed";
1839
+ resolved: "resolved";
1840
+ unchanged: "unchanged";
1841
+ }>;
1842
+ previousFindingCount: z.ZodNumber;
1843
+ currentFindingCount: z.ZodNumber;
1844
+ duplicateFindingCount: z.ZodNumber;
1845
+ }, z.core.$strict>, z.ZodObject<{
1846
+ seq: z.ZodNumber;
1847
+ atMs: z.ZodNumber;
1848
+ source: z.ZodEnum<{
1849
+ flow_ledger: "flow_ledger";
1850
+ host_metadata: "host_metadata";
1851
+ replay_derived: "replay_derived";
1852
+ supplied_observation: "supplied_observation";
1853
+ }>;
1854
+ kind: z.ZodLiteral<"compaction">;
1855
+ operationId: z.ZodString;
1856
+ beforeCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1857
+ status: z.ZodLiteral<"available">;
1858
+ value: z.ZodNumber;
1859
+ }, z.core.$strict>, z.ZodObject<{
1860
+ status: z.ZodLiteral<"unavailable">;
1861
+ reason: z.ZodEnum<{
1862
+ not_applicable: "not_applicable";
1863
+ not_recorded: "not_recorded";
1864
+ privacy_redacted: "privacy_redacted";
1865
+ provider_unavailable: "provider_unavailable";
1866
+ unreconciled: "unreconciled";
1867
+ }>;
1868
+ }, z.core.$strict>], "status">;
1869
+ afterCharacterCount: z.ZodDiscriminatedUnion<[z.ZodObject<{
1870
+ status: z.ZodLiteral<"available">;
1871
+ value: z.ZodNumber;
1872
+ }, z.core.$strict>, z.ZodObject<{
1873
+ status: z.ZodLiteral<"unavailable">;
1874
+ reason: z.ZodEnum<{
1875
+ not_applicable: "not_applicable";
1876
+ not_recorded: "not_recorded";
1877
+ privacy_redacted: "privacy_redacted";
1878
+ provider_unavailable: "provider_unavailable";
1879
+ unreconciled: "unreconciled";
1880
+ }>;
1881
+ }, z.core.$strict>], "status">;
1882
+ }, z.core.$strict>, z.ZodObject<{
1883
+ seq: z.ZodNumber;
1884
+ atMs: z.ZodNumber;
1885
+ source: z.ZodEnum<{
1886
+ flow_ledger: "flow_ledger";
1887
+ host_metadata: "host_metadata";
1888
+ replay_derived: "replay_derived";
1889
+ supplied_observation: "supplied_observation";
1890
+ }>;
1891
+ kind: z.ZodLiteral<"schema_failure">;
1892
+ operationId: z.ZodString;
1893
+ target: z.ZodEnum<{
1894
+ completion: "completion";
1895
+ durable_state: "durable_state";
1896
+ handoff: "handoff";
1897
+ telemetry: "telemetry";
1898
+ }>;
1899
+ failure: z.ZodEnum<{
1900
+ extra_field: "extra_field";
1901
+ invalid_type: "invalid_type";
1902
+ invalid_value: "invalid_value";
1903
+ missing_field: "missing_field";
1904
+ }>;
1905
+ }, z.core.$strict>, z.ZodObject<{
1906
+ seq: z.ZodNumber;
1907
+ atMs: z.ZodNumber;
1908
+ source: z.ZodEnum<{
1909
+ flow_ledger: "flow_ledger";
1910
+ host_metadata: "host_metadata";
1911
+ replay_derived: "replay_derived";
1912
+ supplied_observation: "supplied_observation";
1913
+ }>;
1914
+ kind: z.ZodLiteral<"mutation_start">;
1915
+ operationId: z.ZodString;
1916
+ mutationId: z.ZodString;
1917
+ baseRevision: z.ZodNumber;
1918
+ inputDigest: z.ZodString;
1919
+ }, z.core.$strict>, z.ZodObject<{
1920
+ seq: z.ZodNumber;
1921
+ atMs: z.ZodNumber;
1922
+ source: z.ZodEnum<{
1923
+ flow_ledger: "flow_ledger";
1924
+ host_metadata: "host_metadata";
1925
+ replay_derived: "replay_derived";
1926
+ supplied_observation: "supplied_observation";
1927
+ }>;
1928
+ kind: z.ZodLiteral<"mutation_commit">;
1929
+ operationId: z.ZodString;
1930
+ mutationId: z.ZodString;
1931
+ revision: z.ZodNumber;
1932
+ stateDigest: z.ZodString;
1933
+ }, z.core.$strict>, z.ZodObject<{
1934
+ seq: z.ZodNumber;
1935
+ atMs: z.ZodNumber;
1936
+ source: z.ZodEnum<{
1937
+ flow_ledger: "flow_ledger";
1938
+ host_metadata: "host_metadata";
1939
+ replay_derived: "replay_derived";
1940
+ supplied_observation: "supplied_observation";
1941
+ }>;
1942
+ kind: z.ZodLiteral<"mutation_crash">;
1943
+ operationId: z.ZodString;
1944
+ mutationId: z.ZodString;
1945
+ phase: z.ZodEnum<{
1946
+ after_commit: "after_commit";
1947
+ after_write_before_commit: "after_write_before_commit";
1948
+ before_write: "before_write";
1949
+ }>;
1950
+ }, z.core.$strict>, z.ZodObject<{
1951
+ seq: z.ZodNumber;
1952
+ atMs: z.ZodNumber;
1953
+ source: z.ZodEnum<{
1954
+ flow_ledger: "flow_ledger";
1955
+ host_metadata: "host_metadata";
1956
+ replay_derived: "replay_derived";
1957
+ supplied_observation: "supplied_observation";
1958
+ }>;
1959
+ kind: z.ZodLiteral<"mutation_recovery">;
1960
+ operationId: z.ZodString;
1961
+ mutationId: z.ZodString;
1962
+ status: z.ZodEnum<{
1963
+ commit_reused: "commit_reused";
1964
+ reapplied: "reapplied";
1965
+ rolled_back: "rolled_back";
1966
+ }>;
1967
+ revision: z.ZodNumber;
1968
+ stateDigest: z.ZodString;
1969
+ }, z.core.$strict>, z.ZodObject<{
1970
+ seq: z.ZodNumber;
1971
+ atMs: z.ZodNumber;
1972
+ source: z.ZodEnum<{
1973
+ flow_ledger: "flow_ledger";
1974
+ host_metadata: "host_metadata";
1975
+ replay_derived: "replay_derived";
1976
+ supplied_observation: "supplied_observation";
1977
+ }>;
1978
+ kind: z.ZodLiteral<"terminal_decision">;
1979
+ decision: z.ZodEnum<{
1980
+ blocked: "blocked";
1981
+ complete: "complete";
1982
+ failed: "failed";
1983
+ recovered: "recovered";
1984
+ retry: "retry";
1985
+ }>;
1986
+ reason: z.ZodEnum<{
1987
+ active_final_feature_in_progress: "active_final_feature_in_progress";
1988
+ all_gates_passed: "all_gates_passed";
1989
+ contradictory_review_verdicts: "contradictory_review_verdicts";
1990
+ finding_unchanged: "finding_unchanged";
1991
+ handoff_invalid: "handoff_invalid";
1992
+ mutation_incomplete: "mutation_incomplete";
1993
+ mutation_recovered: "mutation_recovered";
1994
+ optional_telemetry_malformed: "optional_telemetry_malformed";
1995
+ review_failed: "review_failed";
1996
+ review_failure_unsubmitted: "review_failure_unsubmitted";
1997
+ review_retry_passed: "review_retry_passed";
1998
+ schema_invalid: "schema_invalid";
1999
+ validation_stale: "validation_stale";
2000
+ }>;
2001
+ revision: z.ZodNumber;
2002
+ stateDigest: z.ZodString;
2003
+ evidenceRefs: z.ZodArray<z.ZodString>;
2004
+ }, z.core.$strict>], "kind">>;
2005
+ }, z.core.$strict>>;
2006
+ }, z.core.$strict>;
2007
+ export type ReplayFixture = z.infer<typeof ReplayFixtureSchema>;