@claudexor/schema 3.19.0 → 3.22.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 (139) hide show
  1. package/dist/agent-capabilities.d.ts +1 -1
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +1 -0
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/continuation-admission.d.ts +41 -0
  6. package/dist/continuation-admission.d.ts.map +1 -0
  7. package/dist/continuation-admission.js +136 -0
  8. package/dist/continuation-admission.js.map +1 -0
  9. package/dist/control-gc.d.ts +9 -0
  10. package/dist/control-gc.d.ts.map +1 -1
  11. package/dist/control-gc.js +12 -0
  12. package/dist/control-gc.js.map +1 -1
  13. package/dist/control-operation-responses.d.ts +415 -9
  14. package/dist/control-operation-responses.d.ts.map +1 -1
  15. package/dist/control-operation-responses.js +2 -0
  16. package/dist/control-operation-responses.js.map +1 -1
  17. package/dist/control-run-detail.d.ts +891 -25
  18. package/dist/control-run-detail.d.ts.map +1 -1
  19. package/dist/control-run-failure.d.ts +36 -6
  20. package/dist/control-run-failure.d.ts.map +1 -1
  21. package/dist/control-run-failure.js +1 -0
  22. package/dist/control-run-failure.js.map +1 -1
  23. package/dist/control-thread-requests.d.ts +101 -0
  24. package/dist/control-thread-requests.d.ts.map +1 -0
  25. package/dist/control-thread-requests.js +52 -0
  26. package/dist/control-thread-requests.js.map +1 -0
  27. package/dist/control.d.ts +377 -106
  28. package/dist/control.d.ts.map +1 -1
  29. package/dist/control.js +26 -45
  30. package/dist/control.js.map +1 -1
  31. package/dist/credential-profile-snapshot.d.ts +172 -14
  32. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  33. package/dist/credential-profile.d.ts +4 -1
  34. package/dist/credential-profile.d.ts.map +1 -1
  35. package/dist/credential-profile.js +3 -2
  36. package/dist/credential-profile.js.map +1 -1
  37. package/dist/decision.d.ts +12 -0
  38. package/dist/decision.d.ts.map +1 -1
  39. package/dist/effort.d.ts +33 -12
  40. package/dist/effort.d.ts.map +1 -1
  41. package/dist/effort.js +43 -13
  42. package/dist/effort.js.map +1 -1
  43. package/dist/events.d.ts +7 -4
  44. package/dist/events.d.ts.map +1 -1
  45. package/dist/events.js +11 -0
  46. package/dist/events.js.map +1 -1
  47. package/dist/harness-input.d.ts +20 -2
  48. package/dist/harness-input.d.ts.map +1 -1
  49. package/dist/harness-input.js +17 -6
  50. package/dist/harness-input.js.map +1 -1
  51. package/dist/harness.d.ts +57 -20
  52. package/dist/harness.d.ts.map +1 -1
  53. package/dist/harness.js +5 -5
  54. package/dist/index.d.ts +4 -0
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +4 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/mcp-run-result.d.ts +253 -14
  59. package/dist/mcp-run-result.d.ts.map +1 -1
  60. package/dist/mcp-run-result.js +38 -0
  61. package/dist/mcp-run-result.js.map +1 -1
  62. package/dist/quota.d.ts +507 -12
  63. package/dist/quota.d.ts.map +1 -1
  64. package/dist/quota.js +111 -15
  65. package/dist/quota.js.map +1 -1
  66. package/dist/raw.d.ts +1 -1
  67. package/dist/raw.d.ts.map +1 -1
  68. package/dist/raw.js +0 -1
  69. package/dist/raw.js.map +1 -1
  70. package/dist/run-continuation.d.ts +166 -0
  71. package/dist/run-continuation.d.ts.map +1 -0
  72. package/dist/run-continuation.js +65 -0
  73. package/dist/run-continuation.js.map +1 -0
  74. package/dist/run-continuity.d.ts +215 -0
  75. package/dist/run-continuity.d.ts.map +1 -0
  76. package/dist/run-continuity.js +170 -0
  77. package/dist/run-continuity.js.map +1 -0
  78. package/dist/run-facts.d.ts +7 -0
  79. package/dist/run-facts.d.ts.map +1 -1
  80. package/dist/setup-login.d.ts +35 -0
  81. package/dist/setup-login.d.ts.map +1 -1
  82. package/dist/setup-login.js +10 -0
  83. package/dist/setup-login.js.map +1 -1
  84. package/dist/status-projection.d.ts +8 -1
  85. package/dist/status-projection.d.ts.map +1 -1
  86. package/dist/status-projection.js +22 -1
  87. package/dist/status-projection.js.map +1 -1
  88. package/dist/telemetry.d.ts +109 -7
  89. package/dist/telemetry.d.ts.map +1 -1
  90. package/dist/telemetry.js +3 -3
  91. package/dist/telemetry.js.map +1 -1
  92. package/dist/thread.d.ts +4 -0
  93. package/dist/thread.d.ts.map +1 -1
  94. package/dist/thread.js +10 -1
  95. package/dist/thread.js.map +1 -1
  96. package/dist/work-report.d.ts +18 -4
  97. package/dist/work-report.d.ts.map +1 -1
  98. package/dist/work-report.js +26 -5
  99. package/dist/work-report.js.map +1 -1
  100. package/generated/AgentCapabilityCatalog.schema.json +1 -1
  101. package/generated/ControlCredentialProfilesQueryResponse.schema.json +29 -7
  102. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +29 -7
  103. package/generated/ControlGcReceipt.schema.json +14 -0
  104. package/generated/ControlGcRequest.schema.json +4 -0
  105. package/generated/ControlHarnessListResponse.schema.json +1 -1
  106. package/generated/ControlHarnessSettingsPatch.schema.json +1 -1
  107. package/generated/ControlQuotaResponse.schema.json +28 -6
  108. package/generated/ControlRetainedEnvelope.schema.json +63 -0
  109. package/generated/ControlRunAgainDraft.schema.json +16 -0
  110. package/generated/ControlRunDetail.schema.json +503 -54
  111. package/generated/ControlRunListResponse.schema.json +503 -54
  112. package/generated/ControlRunStartRequest.schema.json +16 -0
  113. package/generated/ControlRunSummary.schema.json +503 -54
  114. package/generated/ControlSettingsSnapshot.schema.json +1 -1
  115. package/generated/ControlSettingsUpdateRequest.schema.json +1 -1
  116. package/generated/ControlThread.schema.json +16 -1
  117. package/generated/ControlThreadCreateRequest.schema.json +6 -0
  118. package/generated/ControlThreadDetail.schema.json +30 -2
  119. package/generated/ControlThreadListResponse.schema.json +16 -1
  120. package/generated/ControlThreadTurnRequest.schema.json +4 -0
  121. package/generated/ControlThreadUpdateRequest.schema.json +15 -1
  122. package/generated/DecisionRecord.schema.json +14 -1
  123. package/generated/EnvelopeCustody.schema.json +195 -0
  124. package/generated/GlobalConfig.schema.json +1 -1
  125. package/generated/HarnessEvent.schema.json +114 -56
  126. package/generated/HarnessManifest.schema.json +1 -1
  127. package/generated/HarnessStatusDto.schema.json +1 -1
  128. package/generated/McpRunHandleResult.schema.json +214 -54
  129. package/generated/McpRunToolResult.schema.json +119 -54
  130. package/generated/RunContinuityReceipt.schema.json +182 -0
  131. package/generated/RunEvent.schema.json +3 -1
  132. package/generated/RunFacts.schema.json +14 -1
  133. package/generated/RunFailure.schema.json +105 -53
  134. package/generated/RunResumable.schema.json +153 -0
  135. package/generated/RunTelemetry.schema.json +118 -54
  136. package/generated/SessionCapsule.schema.json +78 -0
  137. package/generated/TaskContract.schema.json +1 -1
  138. package/generated/Thread.schema.json +16 -1
  139. package/package.json +2 -2
@@ -300,12 +300,168 @@ export declare const ControlRunDetail: z.ZodObject<{
300
300
  reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
301
301
  remediation?: string | null | undefined;
302
302
  }>>>;
303
+ continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
304
+ resumable: z.ZodDefault<z.ZodNullable<z.ZodObject<{
305
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
306
+ resetsAt: z.ZodNullable<z.ZodString>;
307
+ limitWindow: z.ZodNullable<z.ZodString>;
308
+ limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
309
+ carriers: z.ZodArray<z.ZodEnum<["native", "native_moved", "packet"]>, "many">;
310
+ limitCode: z.ZodNullable<z.ZodString>;
311
+ session: z.ZodNullable<z.ZodObject<{
312
+ harness: z.ZodString;
313
+ nativeSessionId: z.ZodString;
314
+ holderProfileId: z.ZodNullable<z.ZodString>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ harness: string;
317
+ nativeSessionId: string;
318
+ holderProfileId: string | null;
319
+ }, {
320
+ harness: string;
321
+ nativeSessionId: string;
322
+ holderProfileId: string | null;
323
+ }>>;
324
+ workspace: z.ZodObject<{
325
+ kind: z.ZodEnum<["in_place", "retained_envelope", "none"]>;
326
+ root: z.ZodNullable<z.ZodString>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ kind: "in_place" | "none" | "retained_envelope";
329
+ root: string | null;
330
+ }, {
331
+ kind: "in_place" | "none" | "retained_envelope";
332
+ root: string | null;
333
+ }>;
334
+ }, "strict", z.ZodTypeAny, {
335
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
336
+ resetsAt: string | null;
337
+ limitWindow: string | null;
338
+ limitEvidence: "unspecified" | "window" | null;
339
+ carriers: ("native" | "native_moved" | "packet")[];
340
+ limitCode: string | null;
341
+ session: {
342
+ harness: string;
343
+ nativeSessionId: string;
344
+ holderProfileId: string | null;
345
+ } | null;
346
+ workspace: {
347
+ kind: "in_place" | "none" | "retained_envelope";
348
+ root: string | null;
349
+ };
350
+ }, {
351
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
352
+ resetsAt: string | null;
353
+ limitWindow: string | null;
354
+ limitEvidence: "unspecified" | "window" | null;
355
+ carriers: ("native" | "native_moved" | "packet")[];
356
+ limitCode: string | null;
357
+ session: {
358
+ harness: string;
359
+ nativeSessionId: string;
360
+ holderProfileId: string | null;
361
+ } | null;
362
+ workspace: {
363
+ kind: "in_place" | "none" | "retained_envelope";
364
+ root: string | null;
365
+ };
366
+ }>>>;
367
+ continuity: z.ZodOptional<z.ZodArray<z.ZodObject<{
368
+ tryIndex: z.ZodNumber;
369
+ attemptId: z.ZodString;
370
+ carrier: z.ZodEnum<["native", "native_moved", "packet", "fresh"]>;
371
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
372
+ from: z.ZodObject<{
373
+ runId: z.ZodString;
374
+ attemptId: z.ZodString;
375
+ profileId: z.ZodNullable<z.ZodString>;
376
+ }, "strip", z.ZodTypeAny, {
377
+ runId: string;
378
+ attemptId: string;
379
+ profileId: string | null;
380
+ }, {
381
+ runId: string;
382
+ attemptId: string;
383
+ profileId: string | null;
384
+ }>;
385
+ to: z.ZodObject<{
386
+ profileId: z.ZodNullable<z.ZodString>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ profileId: string | null;
389
+ }, {
390
+ profileId: string | null;
391
+ }>;
392
+ workspace: z.ZodEnum<["same_root", "different_root"]>;
393
+ memory: z.ZodEnum<["full", "partial", "unknown"]>;
394
+ instructions: z.ZodEnum<["as_sent", "vendor_snapshot"]>;
395
+ reingestedTokens: z.ZodNullable<z.ZodNumber>;
396
+ observedModel: z.ZodNullable<z.ZodString>;
397
+ modelMismatch: z.ZodNullable<z.ZodBoolean>;
398
+ identityCheck: z.ZodEnum<["matched_before_effects", "mismatch_before_effects", "mismatch_after_possible_effects", "not_applicable"]>;
399
+ inputDelivery: z.ZodEnum<["confirmed", "uncertain", "not_applicable"]>;
400
+ }, "strict", z.ZodTypeAny, {
401
+ tryIndex: number;
402
+ attemptId: string;
403
+ carrier: "fresh" | "native" | "native_moved" | "packet";
404
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
405
+ from: {
406
+ runId: string;
407
+ attemptId: string;
408
+ profileId: string | null;
409
+ };
410
+ to: {
411
+ profileId: string | null;
412
+ };
413
+ workspace: "different_root" | "same_root";
414
+ memory: "full" | "partial" | "unknown";
415
+ instructions: "as_sent" | "vendor_snapshot";
416
+ reingestedTokens: number | null;
417
+ observedModel: string | null;
418
+ modelMismatch: boolean | null;
419
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
420
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
421
+ }, {
422
+ tryIndex: number;
423
+ attemptId: string;
424
+ carrier: "fresh" | "native" | "native_moved" | "packet";
425
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
426
+ from: {
427
+ runId: string;
428
+ attemptId: string;
429
+ profileId: string | null;
430
+ };
431
+ to: {
432
+ profileId: string | null;
433
+ };
434
+ workspace: "different_root" | "same_root";
435
+ memory: "full" | "partial" | "unknown";
436
+ instructions: "as_sent" | "vendor_snapshot";
437
+ reingestedTokens: number | null;
438
+ observedModel: string | null;
439
+ modelMismatch: boolean | null;
440
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
441
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
442
+ }>, "many">>;
443
+ retainedEnvelope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
444
+ root: z.ZodString;
445
+ bytes: z.ZodNullable<z.ZodNumber>;
446
+ retainedAt: z.ZodString;
447
+ cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
448
+ }, "strict", z.ZodTypeAny, {
449
+ root: string;
450
+ bytes: number | null;
451
+ retainedAt: string;
452
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
453
+ }, {
454
+ root: string;
455
+ bytes: number | null;
456
+ retainedAt: string;
457
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
458
+ }>>>;
303
459
  taskId: z.ZodOptional<z.ZodString>;
304
460
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
305
461
  runDir: z.ZodOptional<z.ZodString>;
306
462
  error: z.ZodOptional<z.ZodString>;
307
463
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
308
- requestRefusal: z.ZodOptional<z.ZodObject<{
464
+ requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
309
465
  scope: z.ZodLiteral<"turn_text">;
310
466
  unit: z.ZodLiteral<"unicode_scalars">;
311
467
  source: z.ZodString;
@@ -330,10 +486,28 @@ export declare const ControlRunDetail: z.ZodObject<{
330
486
  limit: number | null;
331
487
  actual: number | null;
332
488
  native_code: string;
333
- }>>;
489
+ }>, z.ZodObject<{
490
+ kind: z.ZodLiteral<"vendor_cli_too_old">;
491
+ native_code: z.ZodLiteral<"claude_code_version_too_old">;
492
+ source: z.ZodLiteral<"claude_stdout">;
493
+ binary_path: z.ZodNullable<z.ZodString>;
494
+ installed_version: z.ZodNullable<z.ZodString>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ kind: "vendor_cli_too_old";
497
+ native_code: "claude_code_version_too_old";
498
+ source: "claude_stdout";
499
+ binary_path: string | null;
500
+ installed_version: string | null;
501
+ }, {
502
+ kind: "vendor_cli_too_old";
503
+ native_code: "claude_code_version_too_old";
504
+ source: "claude_stdout";
505
+ binary_path: string | null;
506
+ installed_version: string | null;
507
+ }>]>>;
334
508
  phase: z.ZodDefault<z.ZodString>;
335
509
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
336
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
510
+ code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
337
511
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
338
512
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
339
513
  safeMessage: z.ZodString;
@@ -365,10 +539,16 @@ export declare const ControlRunDetail: z.ZodObject<{
365
539
  limit: number | null;
366
540
  actual: number | null;
367
541
  native_code: string;
542
+ } | {
543
+ kind: "vendor_cli_too_old";
544
+ native_code: "claude_code_version_too_old";
545
+ source: "claude_stdout";
546
+ binary_path: string | null;
547
+ installed_version: string | null;
368
548
  } | undefined;
369
549
  phase: string;
370
550
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
371
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
551
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
372
552
  harnessId: string | null;
373
553
  attemptId: string | null;
374
554
  safeMessage: string;
@@ -392,10 +572,16 @@ export declare const ControlRunDetail: z.ZodObject<{
392
572
  limit: number | null;
393
573
  actual: number | null;
394
574
  native_code: string;
575
+ } | {
576
+ kind: "vendor_cli_too_old";
577
+ native_code: "claude_code_version_too_old";
578
+ source: "claude_stdout";
579
+ binary_path: string | null;
580
+ installed_version: string | null;
395
581
  } | undefined;
396
582
  phase?: string | undefined;
397
583
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
398
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
584
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
399
585
  harnessId?: string | null | undefined;
400
586
  attemptId?: string | null | undefined;
401
587
  safeMessage: string;
@@ -688,6 +874,7 @@ export declare const ControlRunDetail: z.ZodObject<{
688
874
  locator?: string | null | undefined;
689
875
  description: string;
690
876
  }>, "many">>;
877
+ unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
691
878
  }, "strip", z.ZodTypeAny, {
692
879
  state: "completed" | "incomplete" | "needs_input" | "unverified";
693
880
  source: "absent" | "constrained" | "validated";
@@ -696,6 +883,7 @@ export declare const ControlRunDetail: z.ZodObject<{
696
883
  locator: string | null;
697
884
  description: string;
698
885
  }[] | undefined;
886
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
699
887
  }, {
700
888
  state: "completed" | "incomplete" | "needs_input" | "unverified";
701
889
  source: "absent" | "constrained" | "validated";
@@ -704,6 +892,7 @@ export declare const ControlRunDetail: z.ZodObject<{
704
892
  locator?: string | null | undefined;
705
893
  description: string;
706
894
  }[] | undefined;
895
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
707
896
  }>>;
708
897
  }, "strict", z.ZodTypeAny, {
709
898
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -720,6 +909,7 @@ export declare const ControlRunDetail: z.ZodObject<{
720
909
  locator: string | null;
721
910
  description: string;
722
911
  }[] | undefined;
912
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
723
913
  } | undefined;
724
914
  }, {
725
915
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -736,6 +926,7 @@ export declare const ControlRunDetail: z.ZodObject<{
736
926
  locator?: string | null | undefined;
737
927
  description: string;
738
928
  }[] | undefined;
929
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
739
930
  } | undefined;
740
931
  }>>>;
741
932
  waitingOnUser: z.ZodDefault<z.ZodBoolean>;
@@ -833,6 +1024,52 @@ export declare const ControlRunDetail: z.ZodObject<{
833
1024
  reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
834
1025
  remediation: string | null;
835
1026
  } | null;
1027
+ continueFrom: string | null;
1028
+ resumable: {
1029
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1030
+ resetsAt: string | null;
1031
+ limitWindow: string | null;
1032
+ limitEvidence: "unspecified" | "window" | null;
1033
+ carriers: ("native" | "native_moved" | "packet")[];
1034
+ limitCode: string | null;
1035
+ session: {
1036
+ harness: string;
1037
+ nativeSessionId: string;
1038
+ holderProfileId: string | null;
1039
+ } | null;
1040
+ workspace: {
1041
+ kind: "in_place" | "none" | "retained_envelope";
1042
+ root: string | null;
1043
+ };
1044
+ } | null;
1045
+ continuity?: {
1046
+ tryIndex: number;
1047
+ attemptId: string;
1048
+ carrier: "fresh" | "native" | "native_moved" | "packet";
1049
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1050
+ from: {
1051
+ runId: string;
1052
+ attemptId: string;
1053
+ profileId: string | null;
1054
+ };
1055
+ to: {
1056
+ profileId: string | null;
1057
+ };
1058
+ workspace: "different_root" | "same_root";
1059
+ memory: "full" | "partial" | "unknown";
1060
+ instructions: "as_sent" | "vendor_snapshot";
1061
+ reingestedTokens: number | null;
1062
+ observedModel: string | null;
1063
+ modelMismatch: boolean | null;
1064
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
1065
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
1066
+ }[] | undefined;
1067
+ retainedEnvelope: {
1068
+ root: string;
1069
+ bytes: number | null;
1070
+ retainedAt: string;
1071
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1072
+ } | null;
836
1073
  taskId?: string | undefined;
837
1074
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
838
1075
  runDir?: string | undefined;
@@ -846,10 +1083,16 @@ export declare const ControlRunDetail: z.ZodObject<{
846
1083
  limit: number | null;
847
1084
  actual: number | null;
848
1085
  native_code: string;
1086
+ } | {
1087
+ kind: "vendor_cli_too_old";
1088
+ native_code: "claude_code_version_too_old";
1089
+ source: "claude_stdout";
1090
+ binary_path: string | null;
1091
+ installed_version: string | null;
849
1092
  } | undefined;
850
1093
  phase: string;
851
1094
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
852
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
1095
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
853
1096
  harnessId: string | null;
854
1097
  attemptId: string | null;
855
1098
  safeMessage: string;
@@ -982,6 +1225,7 @@ export declare const ControlRunDetail: z.ZodObject<{
982
1225
  locator: string | null;
983
1226
  description: string;
984
1227
  }[] | undefined;
1228
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
985
1229
  } | undefined;
986
1230
  } | null;
987
1231
  waitingOnUser: boolean;
@@ -1025,6 +1269,52 @@ export declare const ControlRunDetail: z.ZodObject<{
1025
1269
  reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
1026
1270
  remediation?: string | null | undefined;
1027
1271
  } | null | undefined;
1272
+ continueFrom?: string | null | undefined;
1273
+ resumable?: {
1274
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1275
+ resetsAt: string | null;
1276
+ limitWindow: string | null;
1277
+ limitEvidence: "unspecified" | "window" | null;
1278
+ carriers: ("native" | "native_moved" | "packet")[];
1279
+ limitCode: string | null;
1280
+ session: {
1281
+ harness: string;
1282
+ nativeSessionId: string;
1283
+ holderProfileId: string | null;
1284
+ } | null;
1285
+ workspace: {
1286
+ kind: "in_place" | "none" | "retained_envelope";
1287
+ root: string | null;
1288
+ };
1289
+ } | null | undefined;
1290
+ continuity?: {
1291
+ tryIndex: number;
1292
+ attemptId: string;
1293
+ carrier: "fresh" | "native" | "native_moved" | "packet";
1294
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1295
+ from: {
1296
+ runId: string;
1297
+ attemptId: string;
1298
+ profileId: string | null;
1299
+ };
1300
+ to: {
1301
+ profileId: string | null;
1302
+ };
1303
+ workspace: "different_root" | "same_root";
1304
+ memory: "full" | "partial" | "unknown";
1305
+ instructions: "as_sent" | "vendor_snapshot";
1306
+ reingestedTokens: number | null;
1307
+ observedModel: string | null;
1308
+ modelMismatch: boolean | null;
1309
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
1310
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
1311
+ }[] | undefined;
1312
+ retainedEnvelope?: {
1313
+ root: string;
1314
+ bytes: number | null;
1315
+ retainedAt: string;
1316
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1317
+ } | null | undefined;
1028
1318
  taskId?: string | undefined;
1029
1319
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
1030
1320
  runDir?: string | undefined;
@@ -1038,10 +1328,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1038
1328
  limit: number | null;
1039
1329
  actual: number | null;
1040
1330
  native_code: string;
1331
+ } | {
1332
+ kind: "vendor_cli_too_old";
1333
+ native_code: "claude_code_version_too_old";
1334
+ source: "claude_stdout";
1335
+ binary_path: string | null;
1336
+ installed_version: string | null;
1041
1337
  } | undefined;
1042
1338
  phase?: string | undefined;
1043
1339
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1044
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
1340
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
1045
1341
  harnessId?: string | null | undefined;
1046
1342
  attemptId?: string | null | undefined;
1047
1343
  safeMessage: string;
@@ -1174,6 +1470,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1174
1470
  locator?: string | null | undefined;
1175
1471
  description: string;
1176
1472
  }[] | undefined;
1473
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
1177
1474
  } | undefined;
1178
1475
  } | null | undefined;
1179
1476
  waitingOnUser?: boolean | undefined;
@@ -1242,12 +1539,168 @@ export declare const ControlRunDetail: z.ZodObject<{
1242
1539
  reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
1243
1540
  remediation?: string | null | undefined;
1244
1541
  }>>>;
1542
+ continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1543
+ resumable: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1544
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1545
+ resetsAt: z.ZodNullable<z.ZodString>;
1546
+ limitWindow: z.ZodNullable<z.ZodString>;
1547
+ limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
1548
+ carriers: z.ZodArray<z.ZodEnum<["native", "native_moved", "packet"]>, "many">;
1549
+ limitCode: z.ZodNullable<z.ZodString>;
1550
+ session: z.ZodNullable<z.ZodObject<{
1551
+ harness: z.ZodString;
1552
+ nativeSessionId: z.ZodString;
1553
+ holderProfileId: z.ZodNullable<z.ZodString>;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ harness: string;
1556
+ nativeSessionId: string;
1557
+ holderProfileId: string | null;
1558
+ }, {
1559
+ harness: string;
1560
+ nativeSessionId: string;
1561
+ holderProfileId: string | null;
1562
+ }>>;
1563
+ workspace: z.ZodObject<{
1564
+ kind: z.ZodEnum<["in_place", "retained_envelope", "none"]>;
1565
+ root: z.ZodNullable<z.ZodString>;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ kind: "in_place" | "none" | "retained_envelope";
1568
+ root: string | null;
1569
+ }, {
1570
+ kind: "in_place" | "none" | "retained_envelope";
1571
+ root: string | null;
1572
+ }>;
1573
+ }, "strict", z.ZodTypeAny, {
1574
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1575
+ resetsAt: string | null;
1576
+ limitWindow: string | null;
1577
+ limitEvidence: "unspecified" | "window" | null;
1578
+ carriers: ("native" | "native_moved" | "packet")[];
1579
+ limitCode: string | null;
1580
+ session: {
1581
+ harness: string;
1582
+ nativeSessionId: string;
1583
+ holderProfileId: string | null;
1584
+ } | null;
1585
+ workspace: {
1586
+ kind: "in_place" | "none" | "retained_envelope";
1587
+ root: string | null;
1588
+ };
1589
+ }, {
1590
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1591
+ resetsAt: string | null;
1592
+ limitWindow: string | null;
1593
+ limitEvidence: "unspecified" | "window" | null;
1594
+ carriers: ("native" | "native_moved" | "packet")[];
1595
+ limitCode: string | null;
1596
+ session: {
1597
+ harness: string;
1598
+ nativeSessionId: string;
1599
+ holderProfileId: string | null;
1600
+ } | null;
1601
+ workspace: {
1602
+ kind: "in_place" | "none" | "retained_envelope";
1603
+ root: string | null;
1604
+ };
1605
+ }>>>;
1606
+ continuity: z.ZodOptional<z.ZodArray<z.ZodObject<{
1607
+ tryIndex: z.ZodNumber;
1608
+ attemptId: z.ZodString;
1609
+ carrier: z.ZodEnum<["native", "native_moved", "packet", "fresh"]>;
1610
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1611
+ from: z.ZodObject<{
1612
+ runId: z.ZodString;
1613
+ attemptId: z.ZodString;
1614
+ profileId: z.ZodNullable<z.ZodString>;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ runId: string;
1617
+ attemptId: string;
1618
+ profileId: string | null;
1619
+ }, {
1620
+ runId: string;
1621
+ attemptId: string;
1622
+ profileId: string | null;
1623
+ }>;
1624
+ to: z.ZodObject<{
1625
+ profileId: z.ZodNullable<z.ZodString>;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ profileId: string | null;
1628
+ }, {
1629
+ profileId: string | null;
1630
+ }>;
1631
+ workspace: z.ZodEnum<["same_root", "different_root"]>;
1632
+ memory: z.ZodEnum<["full", "partial", "unknown"]>;
1633
+ instructions: z.ZodEnum<["as_sent", "vendor_snapshot"]>;
1634
+ reingestedTokens: z.ZodNullable<z.ZodNumber>;
1635
+ observedModel: z.ZodNullable<z.ZodString>;
1636
+ modelMismatch: z.ZodNullable<z.ZodBoolean>;
1637
+ identityCheck: z.ZodEnum<["matched_before_effects", "mismatch_before_effects", "mismatch_after_possible_effects", "not_applicable"]>;
1638
+ inputDelivery: z.ZodEnum<["confirmed", "uncertain", "not_applicable"]>;
1639
+ }, "strict", z.ZodTypeAny, {
1640
+ tryIndex: number;
1641
+ attemptId: string;
1642
+ carrier: "fresh" | "native" | "native_moved" | "packet";
1643
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1644
+ from: {
1645
+ runId: string;
1646
+ attemptId: string;
1647
+ profileId: string | null;
1648
+ };
1649
+ to: {
1650
+ profileId: string | null;
1651
+ };
1652
+ workspace: "different_root" | "same_root";
1653
+ memory: "full" | "partial" | "unknown";
1654
+ instructions: "as_sent" | "vendor_snapshot";
1655
+ reingestedTokens: number | null;
1656
+ observedModel: string | null;
1657
+ modelMismatch: boolean | null;
1658
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
1659
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
1660
+ }, {
1661
+ tryIndex: number;
1662
+ attemptId: string;
1663
+ carrier: "fresh" | "native" | "native_moved" | "packet";
1664
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1665
+ from: {
1666
+ runId: string;
1667
+ attemptId: string;
1668
+ profileId: string | null;
1669
+ };
1670
+ to: {
1671
+ profileId: string | null;
1672
+ };
1673
+ workspace: "different_root" | "same_root";
1674
+ memory: "full" | "partial" | "unknown";
1675
+ instructions: "as_sent" | "vendor_snapshot";
1676
+ reingestedTokens: number | null;
1677
+ observedModel: string | null;
1678
+ modelMismatch: boolean | null;
1679
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
1680
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
1681
+ }>, "many">>;
1682
+ retainedEnvelope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1683
+ root: z.ZodString;
1684
+ bytes: z.ZodNullable<z.ZodNumber>;
1685
+ retainedAt: z.ZodString;
1686
+ cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
1687
+ }, "strict", z.ZodTypeAny, {
1688
+ root: string;
1689
+ bytes: number | null;
1690
+ retainedAt: string;
1691
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1692
+ }, {
1693
+ root: string;
1694
+ bytes: number | null;
1695
+ retainedAt: string;
1696
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1697
+ }>>>;
1245
1698
  taskId: z.ZodOptional<z.ZodString>;
1246
1699
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
1247
1700
  runDir: z.ZodOptional<z.ZodString>;
1248
1701
  error: z.ZodOptional<z.ZodString>;
1249
1702
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1250
- requestRefusal: z.ZodOptional<z.ZodObject<{
1703
+ requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1251
1704
  scope: z.ZodLiteral<"turn_text">;
1252
1705
  unit: z.ZodLiteral<"unicode_scalars">;
1253
1706
  source: z.ZodString;
@@ -1272,10 +1725,28 @@ export declare const ControlRunDetail: z.ZodObject<{
1272
1725
  limit: number | null;
1273
1726
  actual: number | null;
1274
1727
  native_code: string;
1275
- }>>;
1728
+ }>, z.ZodObject<{
1729
+ kind: z.ZodLiteral<"vendor_cli_too_old">;
1730
+ native_code: z.ZodLiteral<"claude_code_version_too_old">;
1731
+ source: z.ZodLiteral<"claude_stdout">;
1732
+ binary_path: z.ZodNullable<z.ZodString>;
1733
+ installed_version: z.ZodNullable<z.ZodString>;
1734
+ }, "strip", z.ZodTypeAny, {
1735
+ kind: "vendor_cli_too_old";
1736
+ native_code: "claude_code_version_too_old";
1737
+ source: "claude_stdout";
1738
+ binary_path: string | null;
1739
+ installed_version: string | null;
1740
+ }, {
1741
+ kind: "vendor_cli_too_old";
1742
+ native_code: "claude_code_version_too_old";
1743
+ source: "claude_stdout";
1744
+ binary_path: string | null;
1745
+ installed_version: string | null;
1746
+ }>]>>;
1276
1747
  phase: z.ZodDefault<z.ZodString>;
1277
1748
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
1278
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
1749
+ code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
1279
1750
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1280
1751
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1281
1752
  safeMessage: z.ZodString;
@@ -1307,10 +1778,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1307
1778
  limit: number | null;
1308
1779
  actual: number | null;
1309
1780
  native_code: string;
1781
+ } | {
1782
+ kind: "vendor_cli_too_old";
1783
+ native_code: "claude_code_version_too_old";
1784
+ source: "claude_stdout";
1785
+ binary_path: string | null;
1786
+ installed_version: string | null;
1310
1787
  } | undefined;
1311
1788
  phase: string;
1312
1789
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1313
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
1790
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
1314
1791
  harnessId: string | null;
1315
1792
  attemptId: string | null;
1316
1793
  safeMessage: string;
@@ -1334,10 +1811,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1334
1811
  limit: number | null;
1335
1812
  actual: number | null;
1336
1813
  native_code: string;
1814
+ } | {
1815
+ kind: "vendor_cli_too_old";
1816
+ native_code: "claude_code_version_too_old";
1817
+ source: "claude_stdout";
1818
+ binary_path: string | null;
1819
+ installed_version: string | null;
1337
1820
  } | undefined;
1338
1821
  phase?: string | undefined;
1339
1822
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1340
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
1823
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
1341
1824
  harnessId?: string | null | undefined;
1342
1825
  attemptId?: string | null | undefined;
1343
1826
  safeMessage: string;
@@ -1630,6 +2113,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1630
2113
  locator?: string | null | undefined;
1631
2114
  description: string;
1632
2115
  }>, "many">>;
2116
+ unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
1633
2117
  }, "strip", z.ZodTypeAny, {
1634
2118
  state: "completed" | "incomplete" | "needs_input" | "unverified";
1635
2119
  source: "absent" | "constrained" | "validated";
@@ -1638,6 +2122,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1638
2122
  locator: string | null;
1639
2123
  description: string;
1640
2124
  }[] | undefined;
2125
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
1641
2126
  }, {
1642
2127
  state: "completed" | "incomplete" | "needs_input" | "unverified";
1643
2128
  source: "absent" | "constrained" | "validated";
@@ -1646,6 +2131,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1646
2131
  locator?: string | null | undefined;
1647
2132
  description: string;
1648
2133
  }[] | undefined;
2134
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
1649
2135
  }>>;
1650
2136
  }, "strict", z.ZodTypeAny, {
1651
2137
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -1662,6 +2148,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1662
2148
  locator: string | null;
1663
2149
  description: string;
1664
2150
  }[] | undefined;
2151
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
1665
2152
  } | undefined;
1666
2153
  }, {
1667
2154
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -1678,6 +2165,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1678
2165
  locator?: string | null | undefined;
1679
2166
  description: string;
1680
2167
  }[] | undefined;
2168
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
1681
2169
  } | undefined;
1682
2170
  }>>>;
1683
2171
  waitingOnUser: z.ZodDefault<z.ZodBoolean>;
@@ -1775,6 +2263,52 @@ export declare const ControlRunDetail: z.ZodObject<{
1775
2263
  reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
1776
2264
  remediation: string | null;
1777
2265
  } | null;
2266
+ continueFrom: string | null;
2267
+ resumable: {
2268
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2269
+ resetsAt: string | null;
2270
+ limitWindow: string | null;
2271
+ limitEvidence: "unspecified" | "window" | null;
2272
+ carriers: ("native" | "native_moved" | "packet")[];
2273
+ limitCode: string | null;
2274
+ session: {
2275
+ harness: string;
2276
+ nativeSessionId: string;
2277
+ holderProfileId: string | null;
2278
+ } | null;
2279
+ workspace: {
2280
+ kind: "in_place" | "none" | "retained_envelope";
2281
+ root: string | null;
2282
+ };
2283
+ } | null;
2284
+ continuity?: {
2285
+ tryIndex: number;
2286
+ attemptId: string;
2287
+ carrier: "fresh" | "native" | "native_moved" | "packet";
2288
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2289
+ from: {
2290
+ runId: string;
2291
+ attemptId: string;
2292
+ profileId: string | null;
2293
+ };
2294
+ to: {
2295
+ profileId: string | null;
2296
+ };
2297
+ workspace: "different_root" | "same_root";
2298
+ memory: "full" | "partial" | "unknown";
2299
+ instructions: "as_sent" | "vendor_snapshot";
2300
+ reingestedTokens: number | null;
2301
+ observedModel: string | null;
2302
+ modelMismatch: boolean | null;
2303
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
2304
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
2305
+ }[] | undefined;
2306
+ retainedEnvelope: {
2307
+ root: string;
2308
+ bytes: number | null;
2309
+ retainedAt: string;
2310
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2311
+ } | null;
1778
2312
  taskId?: string | undefined;
1779
2313
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
1780
2314
  runDir?: string | undefined;
@@ -1788,10 +2322,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1788
2322
  limit: number | null;
1789
2323
  actual: number | null;
1790
2324
  native_code: string;
2325
+ } | {
2326
+ kind: "vendor_cli_too_old";
2327
+ native_code: "claude_code_version_too_old";
2328
+ source: "claude_stdout";
2329
+ binary_path: string | null;
2330
+ installed_version: string | null;
1791
2331
  } | undefined;
1792
2332
  phase: string;
1793
2333
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1794
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
2334
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
1795
2335
  harnessId: string | null;
1796
2336
  attemptId: string | null;
1797
2337
  safeMessage: string;
@@ -1924,6 +2464,7 @@ export declare const ControlRunDetail: z.ZodObject<{
1924
2464
  locator: string | null;
1925
2465
  description: string;
1926
2466
  }[] | undefined;
2467
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
1927
2468
  } | undefined;
1928
2469
  } | null;
1929
2470
  waitingOnUser: boolean;
@@ -1967,6 +2508,52 @@ export declare const ControlRunDetail: z.ZodObject<{
1967
2508
  reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
1968
2509
  remediation?: string | null | undefined;
1969
2510
  } | null | undefined;
2511
+ continueFrom?: string | null | undefined;
2512
+ resumable?: {
2513
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2514
+ resetsAt: string | null;
2515
+ limitWindow: string | null;
2516
+ limitEvidence: "unspecified" | "window" | null;
2517
+ carriers: ("native" | "native_moved" | "packet")[];
2518
+ limitCode: string | null;
2519
+ session: {
2520
+ harness: string;
2521
+ nativeSessionId: string;
2522
+ holderProfileId: string | null;
2523
+ } | null;
2524
+ workspace: {
2525
+ kind: "in_place" | "none" | "retained_envelope";
2526
+ root: string | null;
2527
+ };
2528
+ } | null | undefined;
2529
+ continuity?: {
2530
+ tryIndex: number;
2531
+ attemptId: string;
2532
+ carrier: "fresh" | "native" | "native_moved" | "packet";
2533
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2534
+ from: {
2535
+ runId: string;
2536
+ attemptId: string;
2537
+ profileId: string | null;
2538
+ };
2539
+ to: {
2540
+ profileId: string | null;
2541
+ };
2542
+ workspace: "different_root" | "same_root";
2543
+ memory: "full" | "partial" | "unknown";
2544
+ instructions: "as_sent" | "vendor_snapshot";
2545
+ reingestedTokens: number | null;
2546
+ observedModel: string | null;
2547
+ modelMismatch: boolean | null;
2548
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
2549
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
2550
+ }[] | undefined;
2551
+ retainedEnvelope?: {
2552
+ root: string;
2553
+ bytes: number | null;
2554
+ retainedAt: string;
2555
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2556
+ } | null | undefined;
1970
2557
  taskId?: string | undefined;
1971
2558
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
1972
2559
  runDir?: string | undefined;
@@ -1980,10 +2567,16 @@ export declare const ControlRunDetail: z.ZodObject<{
1980
2567
  limit: number | null;
1981
2568
  actual: number | null;
1982
2569
  native_code: string;
2570
+ } | {
2571
+ kind: "vendor_cli_too_old";
2572
+ native_code: "claude_code_version_too_old";
2573
+ source: "claude_stdout";
2574
+ binary_path: string | null;
2575
+ installed_version: string | null;
1983
2576
  } | undefined;
1984
2577
  phase?: string | undefined;
1985
2578
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1986
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
2579
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
1987
2580
  harnessId?: string | null | undefined;
1988
2581
  attemptId?: string | null | undefined;
1989
2582
  safeMessage: string;
@@ -2116,6 +2709,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2116
2709
  locator?: string | null | undefined;
2117
2710
  description: string;
2118
2711
  }[] | undefined;
2712
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2119
2713
  } | undefined;
2120
2714
  } | null | undefined;
2121
2715
  waitingOnUser?: boolean | undefined;
@@ -2178,6 +2772,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2178
2772
  locator?: string | null | undefined;
2179
2773
  description: string;
2180
2774
  }>, "many">>;
2775
+ unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
2181
2776
  }, "strip", z.ZodTypeAny, {
2182
2777
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2183
2778
  source: "absent" | "constrained" | "validated";
@@ -2186,6 +2781,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2186
2781
  locator: string | null;
2187
2782
  description: string;
2188
2783
  }[] | undefined;
2784
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2189
2785
  }, {
2190
2786
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2191
2787
  source: "absent" | "constrained" | "validated";
@@ -2194,6 +2790,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2194
2790
  locator?: string | null | undefined;
2195
2791
  description: string;
2196
2792
  }[] | undefined;
2793
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2197
2794
  }>>;
2198
2795
  }, "strict", z.ZodTypeAny, {
2199
2796
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -2210,6 +2807,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2210
2807
  locator: string | null;
2211
2808
  description: string;
2212
2809
  }[] | undefined;
2810
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2213
2811
  } | undefined;
2214
2812
  }, {
2215
2813
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -2226,6 +2824,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2226
2824
  locator?: string | null | undefined;
2227
2825
  description: string;
2228
2826
  }[] | undefined;
2827
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2229
2828
  } | undefined;
2230
2829
  }>;
2231
2830
  deliverable: z.ZodObject<{
@@ -2410,6 +3009,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2410
3009
  locator: string | null;
2411
3010
  description: string;
2412
3011
  }[] | undefined;
3012
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2413
3013
  } | undefined;
2414
3014
  };
2415
3015
  deliverable: {
@@ -2482,6 +3082,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2482
3082
  locator?: string | null | undefined;
2483
3083
  description: string;
2484
3084
  }[] | undefined;
3085
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2485
3086
  } | undefined;
2486
3087
  };
2487
3088
  deliverable: {
@@ -2718,6 +3319,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2718
3319
  locator?: string | null | undefined;
2719
3320
  description: string;
2720
3321
  }>, "many">>;
3322
+ unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
2721
3323
  }, "strip", z.ZodTypeAny, {
2722
3324
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2723
3325
  source: "absent" | "constrained" | "validated";
@@ -2726,6 +3328,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2726
3328
  locator: string | null;
2727
3329
  description: string;
2728
3330
  }[] | undefined;
3331
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2729
3332
  }, {
2730
3333
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2731
3334
  source: "absent" | "constrained" | "validated";
@@ -2734,6 +3337,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2734
3337
  locator?: string | null | undefined;
2735
3338
  description: string;
2736
3339
  }[] | undefined;
3340
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2737
3341
  }>>;
2738
3342
  }, "strict", z.ZodTypeAny, {
2739
3343
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -2750,6 +3354,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2750
3354
  locator: string | null;
2751
3355
  description: string;
2752
3356
  }[] | undefined;
3357
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2753
3358
  } | undefined;
2754
3359
  }, {
2755
3360
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -2766,6 +3371,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2766
3371
  locator?: string | null | undefined;
2767
3372
  description: string;
2768
3373
  }[] | undefined;
3374
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2769
3375
  } | undefined;
2770
3376
  }>;
2771
3377
  why_winner: z.ZodDefault<z.ZodString>;
@@ -2882,6 +3488,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2882
3488
  locator: string | null;
2883
3489
  description: string;
2884
3490
  }[] | undefined;
3491
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2885
3492
  } | undefined;
2886
3493
  };
2887
3494
  why_winner: string;
@@ -2940,6 +3547,7 @@ export declare const ControlRunDetail: z.ZodObject<{
2940
3547
  locator?: string | null | undefined;
2941
3548
  description: string;
2942
3549
  }[] | undefined;
3550
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2943
3551
  } | undefined;
2944
3552
  };
2945
3553
  why_winner?: string | undefined;
@@ -3504,7 +4112,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3504
4112
  evidence?: "complete" | "incomplete" | "unavailable" | undefined;
3505
4113
  }>>>;
3506
4114
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3507
- requestRefusal: z.ZodOptional<z.ZodObject<{
4115
+ requestRefusal: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3508
4116
  scope: z.ZodLiteral<"turn_text">;
3509
4117
  unit: z.ZodLiteral<"unicode_scalars">;
3510
4118
  source: z.ZodString;
@@ -3529,10 +4137,28 @@ export declare const ControlRunDetail: z.ZodObject<{
3529
4137
  limit: number | null;
3530
4138
  actual: number | null;
3531
4139
  native_code: string;
3532
- }>>;
4140
+ }>, z.ZodObject<{
4141
+ kind: z.ZodLiteral<"vendor_cli_too_old">;
4142
+ native_code: z.ZodLiteral<"claude_code_version_too_old">;
4143
+ source: z.ZodLiteral<"claude_stdout">;
4144
+ binary_path: z.ZodNullable<z.ZodString>;
4145
+ installed_version: z.ZodNullable<z.ZodString>;
4146
+ }, "strip", z.ZodTypeAny, {
4147
+ kind: "vendor_cli_too_old";
4148
+ native_code: "claude_code_version_too_old";
4149
+ source: "claude_stdout";
4150
+ binary_path: string | null;
4151
+ installed_version: string | null;
4152
+ }, {
4153
+ kind: "vendor_cli_too_old";
4154
+ native_code: "claude_code_version_too_old";
4155
+ source: "claude_stdout";
4156
+ binary_path: string | null;
4157
+ installed_version: string | null;
4158
+ }>]>>;
3533
4159
  phase: z.ZodDefault<z.ZodString>;
3534
4160
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
3535
- code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
4161
+ code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
3536
4162
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3537
4163
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3538
4164
  safeMessage: z.ZodString;
@@ -3564,10 +4190,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3564
4190
  limit: number | null;
3565
4191
  actual: number | null;
3566
4192
  native_code: string;
4193
+ } | {
4194
+ kind: "vendor_cli_too_old";
4195
+ native_code: "claude_code_version_too_old";
4196
+ source: "claude_stdout";
4197
+ binary_path: string | null;
4198
+ installed_version: string | null;
3567
4199
  } | undefined;
3568
4200
  phase: string;
3569
4201
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3570
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
4202
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
3571
4203
  harnessId: string | null;
3572
4204
  attemptId: string | null;
3573
4205
  safeMessage: string;
@@ -3591,10 +4223,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3591
4223
  limit: number | null;
3592
4224
  actual: number | null;
3593
4225
  native_code: string;
4226
+ } | {
4227
+ kind: "vendor_cli_too_old";
4228
+ native_code: "claude_code_version_too_old";
4229
+ source: "claude_stdout";
4230
+ binary_path: string | null;
4231
+ installed_version: string | null;
3594
4232
  } | undefined;
3595
4233
  phase?: string | undefined;
3596
4234
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
3597
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
4235
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
3598
4236
  harnessId?: string | null | undefined;
3599
4237
  attemptId?: string | null | undefined;
3600
4238
  safeMessage: string;
@@ -3664,6 +4302,52 @@ export declare const ControlRunDetail: z.ZodObject<{
3664
4302
  reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
3665
4303
  remediation: string | null;
3666
4304
  } | null;
4305
+ continueFrom: string | null;
4306
+ resumable: {
4307
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4308
+ resetsAt: string | null;
4309
+ limitWindow: string | null;
4310
+ limitEvidence: "unspecified" | "window" | null;
4311
+ carriers: ("native" | "native_moved" | "packet")[];
4312
+ limitCode: string | null;
4313
+ session: {
4314
+ harness: string;
4315
+ nativeSessionId: string;
4316
+ holderProfileId: string | null;
4317
+ } | null;
4318
+ workspace: {
4319
+ kind: "in_place" | "none" | "retained_envelope";
4320
+ root: string | null;
4321
+ };
4322
+ } | null;
4323
+ continuity?: {
4324
+ tryIndex: number;
4325
+ attemptId: string;
4326
+ carrier: "fresh" | "native" | "native_moved" | "packet";
4327
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4328
+ from: {
4329
+ runId: string;
4330
+ attemptId: string;
4331
+ profileId: string | null;
4332
+ };
4333
+ to: {
4334
+ profileId: string | null;
4335
+ };
4336
+ workspace: "different_root" | "same_root";
4337
+ memory: "full" | "partial" | "unknown";
4338
+ instructions: "as_sent" | "vendor_snapshot";
4339
+ reingestedTokens: number | null;
4340
+ observedModel: string | null;
4341
+ modelMismatch: boolean | null;
4342
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
4343
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
4344
+ }[] | undefined;
4345
+ retainedEnvelope: {
4346
+ root: string;
4347
+ bytes: number | null;
4348
+ retainedAt: string;
4349
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
4350
+ } | null;
3667
4351
  taskId?: string | undefined;
3668
4352
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
3669
4353
  runDir?: string | undefined;
@@ -3677,10 +4361,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3677
4361
  limit: number | null;
3678
4362
  actual: number | null;
3679
4363
  native_code: string;
4364
+ } | {
4365
+ kind: "vendor_cli_too_old";
4366
+ native_code: "claude_code_version_too_old";
4367
+ source: "claude_stdout";
4368
+ binary_path: string | null;
4369
+ installed_version: string | null;
3680
4370
  } | undefined;
3681
4371
  phase: string;
3682
4372
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3683
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
4373
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
3684
4374
  harnessId: string | null;
3685
4375
  attemptId: string | null;
3686
4376
  safeMessage: string;
@@ -3813,6 +4503,7 @@ export declare const ControlRunDetail: z.ZodObject<{
3813
4503
  locator: string | null;
3814
4504
  description: string;
3815
4505
  }[] | undefined;
4506
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3816
4507
  } | undefined;
3817
4508
  } | null;
3818
4509
  waitingOnUser: boolean;
@@ -3857,6 +4548,52 @@ export declare const ControlRunDetail: z.ZodObject<{
3857
4548
  reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
3858
4549
  remediation: string | null;
3859
4550
  } | null;
4551
+ continueFrom: string | null;
4552
+ resumable: {
4553
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4554
+ resetsAt: string | null;
4555
+ limitWindow: string | null;
4556
+ limitEvidence: "unspecified" | "window" | null;
4557
+ carriers: ("native" | "native_moved" | "packet")[];
4558
+ limitCode: string | null;
4559
+ session: {
4560
+ harness: string;
4561
+ nativeSessionId: string;
4562
+ holderProfileId: string | null;
4563
+ } | null;
4564
+ workspace: {
4565
+ kind: "in_place" | "none" | "retained_envelope";
4566
+ root: string | null;
4567
+ };
4568
+ } | null;
4569
+ continuity?: {
4570
+ tryIndex: number;
4571
+ attemptId: string;
4572
+ carrier: "fresh" | "native" | "native_moved" | "packet";
4573
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
4574
+ from: {
4575
+ runId: string;
4576
+ attemptId: string;
4577
+ profileId: string | null;
4578
+ };
4579
+ to: {
4580
+ profileId: string | null;
4581
+ };
4582
+ workspace: "different_root" | "same_root";
4583
+ memory: "full" | "partial" | "unknown";
4584
+ instructions: "as_sent" | "vendor_snapshot";
4585
+ reingestedTokens: number | null;
4586
+ observedModel: string | null;
4587
+ modelMismatch: boolean | null;
4588
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
4589
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
4590
+ }[] | undefined;
4591
+ retainedEnvelope: {
4592
+ root: string;
4593
+ bytes: number | null;
4594
+ retainedAt: string;
4595
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
4596
+ } | null;
3860
4597
  taskId?: string | undefined;
3861
4598
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
3862
4599
  runDir?: string | undefined;
@@ -3870,10 +4607,16 @@ export declare const ControlRunDetail: z.ZodObject<{
3870
4607
  limit: number | null;
3871
4608
  actual: number | null;
3872
4609
  native_code: string;
4610
+ } | {
4611
+ kind: "vendor_cli_too_old";
4612
+ native_code: "claude_code_version_too_old";
4613
+ source: "claude_stdout";
4614
+ binary_path: string | null;
4615
+ installed_version: string | null;
3873
4616
  } | undefined;
3874
4617
  phase: string;
3875
4618
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3876
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
4619
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
3877
4620
  harnessId: string | null;
3878
4621
  attemptId: string | null;
3879
4622
  safeMessage: string;
@@ -4006,6 +4749,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4006
4749
  locator: string | null;
4007
4750
  description: string;
4008
4751
  }[] | undefined;
4752
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4009
4753
  } | undefined;
4010
4754
  } | null;
4011
4755
  waitingOnUser: boolean;
@@ -4058,6 +4802,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4058
4802
  locator: string | null;
4059
4803
  description: string;
4060
4804
  }[] | undefined;
4805
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4061
4806
  } | undefined;
4062
4807
  };
4063
4808
  deliverable: {
@@ -4178,6 +4923,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4178
4923
  locator: string | null;
4179
4924
  description: string;
4180
4925
  }[] | undefined;
4926
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4181
4927
  } | undefined;
4182
4928
  };
4183
4929
  why_winner: string;
@@ -4359,10 +5105,16 @@ export declare const ControlRunDetail: z.ZodObject<{
4359
5105
  limit: number | null;
4360
5106
  actual: number | null;
4361
5107
  native_code: string;
5108
+ } | {
5109
+ kind: "vendor_cli_too_old";
5110
+ native_code: "claude_code_version_too_old";
5111
+ source: "claude_stdout";
5112
+ binary_path: string | null;
5113
+ installed_version: string | null;
4362
5114
  } | undefined;
4363
5115
  phase: string;
4364
5116
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4365
- code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
5117
+ code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
4366
5118
  harnessId: string | null;
4367
5119
  attemptId: string | null;
4368
5120
  safeMessage: string;
@@ -4420,6 +5172,52 @@ export declare const ControlRunDetail: z.ZodObject<{
4420
5172
  reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
4421
5173
  remediation?: string | null | undefined;
4422
5174
  } | null | undefined;
5175
+ continueFrom?: string | null | undefined;
5176
+ resumable?: {
5177
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5178
+ resetsAt: string | null;
5179
+ limitWindow: string | null;
5180
+ limitEvidence: "unspecified" | "window" | null;
5181
+ carriers: ("native" | "native_moved" | "packet")[];
5182
+ limitCode: string | null;
5183
+ session: {
5184
+ harness: string;
5185
+ nativeSessionId: string;
5186
+ holderProfileId: string | null;
5187
+ } | null;
5188
+ workspace: {
5189
+ kind: "in_place" | "none" | "retained_envelope";
5190
+ root: string | null;
5191
+ };
5192
+ } | null | undefined;
5193
+ continuity?: {
5194
+ tryIndex: number;
5195
+ attemptId: string;
5196
+ carrier: "fresh" | "native" | "native_moved" | "packet";
5197
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5198
+ from: {
5199
+ runId: string;
5200
+ attemptId: string;
5201
+ profileId: string | null;
5202
+ };
5203
+ to: {
5204
+ profileId: string | null;
5205
+ };
5206
+ workspace: "different_root" | "same_root";
5207
+ memory: "full" | "partial" | "unknown";
5208
+ instructions: "as_sent" | "vendor_snapshot";
5209
+ reingestedTokens: number | null;
5210
+ observedModel: string | null;
5211
+ modelMismatch: boolean | null;
5212
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
5213
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
5214
+ }[] | undefined;
5215
+ retainedEnvelope?: {
5216
+ root: string;
5217
+ bytes: number | null;
5218
+ retainedAt: string;
5219
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
5220
+ } | null | undefined;
4423
5221
  taskId?: string | undefined;
4424
5222
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
4425
5223
  runDir?: string | undefined;
@@ -4433,10 +5231,16 @@ export declare const ControlRunDetail: z.ZodObject<{
4433
5231
  limit: number | null;
4434
5232
  actual: number | null;
4435
5233
  native_code: string;
5234
+ } | {
5235
+ kind: "vendor_cli_too_old";
5236
+ native_code: "claude_code_version_too_old";
5237
+ source: "claude_stdout";
5238
+ binary_path: string | null;
5239
+ installed_version: string | null;
4436
5240
  } | undefined;
4437
5241
  phase?: string | undefined;
4438
5242
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
4439
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
5243
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
4440
5244
  harnessId?: string | null | undefined;
4441
5245
  attemptId?: string | null | undefined;
4442
5246
  safeMessage: string;
@@ -4569,6 +5373,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4569
5373
  locator?: string | null | undefined;
4570
5374
  description: string;
4571
5375
  }[] | undefined;
5376
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4572
5377
  } | undefined;
4573
5378
  } | null | undefined;
4574
5379
  waitingOnUser?: boolean | undefined;
@@ -4613,6 +5418,52 @@ export declare const ControlRunDetail: z.ZodObject<{
4613
5418
  reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
4614
5419
  remediation?: string | null | undefined;
4615
5420
  } | null | undefined;
5421
+ continueFrom?: string | null | undefined;
5422
+ resumable?: {
5423
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5424
+ resetsAt: string | null;
5425
+ limitWindow: string | null;
5426
+ limitEvidence: "unspecified" | "window" | null;
5427
+ carriers: ("native" | "native_moved" | "packet")[];
5428
+ limitCode: string | null;
5429
+ session: {
5430
+ harness: string;
5431
+ nativeSessionId: string;
5432
+ holderProfileId: string | null;
5433
+ } | null;
5434
+ workspace: {
5435
+ kind: "in_place" | "none" | "retained_envelope";
5436
+ root: string | null;
5437
+ };
5438
+ } | null | undefined;
5439
+ continuity?: {
5440
+ tryIndex: number;
5441
+ attemptId: string;
5442
+ carrier: "fresh" | "native" | "native_moved" | "packet";
5443
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
5444
+ from: {
5445
+ runId: string;
5446
+ attemptId: string;
5447
+ profileId: string | null;
5448
+ };
5449
+ to: {
5450
+ profileId: string | null;
5451
+ };
5452
+ workspace: "different_root" | "same_root";
5453
+ memory: "full" | "partial" | "unknown";
5454
+ instructions: "as_sent" | "vendor_snapshot";
5455
+ reingestedTokens: number | null;
5456
+ observedModel: string | null;
5457
+ modelMismatch: boolean | null;
5458
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
5459
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
5460
+ }[] | undefined;
5461
+ retainedEnvelope?: {
5462
+ root: string;
5463
+ bytes: number | null;
5464
+ retainedAt: string;
5465
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
5466
+ } | null | undefined;
4616
5467
  taskId?: string | undefined;
4617
5468
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
4618
5469
  runDir?: string | undefined;
@@ -4626,10 +5477,16 @@ export declare const ControlRunDetail: z.ZodObject<{
4626
5477
  limit: number | null;
4627
5478
  actual: number | null;
4628
5479
  native_code: string;
5480
+ } | {
5481
+ kind: "vendor_cli_too_old";
5482
+ native_code: "claude_code_version_too_old";
5483
+ source: "claude_stdout";
5484
+ binary_path: string | null;
5485
+ installed_version: string | null;
4629
5486
  } | undefined;
4630
5487
  phase?: string | undefined;
4631
5488
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
4632
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
5489
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
4633
5490
  harnessId?: string | null | undefined;
4634
5491
  attemptId?: string | null | undefined;
4635
5492
  safeMessage: string;
@@ -4762,6 +5619,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4762
5619
  locator?: string | null | undefined;
4763
5620
  description: string;
4764
5621
  }[] | undefined;
5622
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4765
5623
  } | undefined;
4766
5624
  } | null | undefined;
4767
5625
  waitingOnUser?: boolean | undefined;
@@ -4814,6 +5672,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4814
5672
  locator?: string | null | undefined;
4815
5673
  description: string;
4816
5674
  }[] | undefined;
5675
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4817
5676
  } | undefined;
4818
5677
  };
4819
5678
  deliverable: {
@@ -4934,6 +5793,7 @@ export declare const ControlRunDetail: z.ZodObject<{
4934
5793
  locator?: string | null | undefined;
4935
5794
  description: string;
4936
5795
  }[] | undefined;
5796
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4937
5797
  } | undefined;
4938
5798
  };
4939
5799
  why_winner?: string | undefined;
@@ -5115,10 +5975,16 @@ export declare const ControlRunDetail: z.ZodObject<{
5115
5975
  limit: number | null;
5116
5976
  actual: number | null;
5117
5977
  native_code: string;
5978
+ } | {
5979
+ kind: "vendor_cli_too_old";
5980
+ native_code: "claude_code_version_too_old";
5981
+ source: "claude_stdout";
5982
+ binary_path: string | null;
5983
+ installed_version: string | null;
5118
5984
  } | undefined;
5119
5985
  phase?: string | undefined;
5120
5986
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
5121
- code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
5987
+ code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
5122
5988
  harnessId?: string | null | undefined;
5123
5989
  attemptId?: string | null | undefined;
5124
5990
  safeMessage: string;