@claudexor/schema 3.17.1 → 3.17.2

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 (72) hide show
  1. package/dist/agent-capabilities.d.ts +144 -0
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +2 -0
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/control-harness-list.d.ts +76 -0
  6. package/dist/control-harness-list.d.ts.map +1 -1
  7. package/dist/control-operation-responses.d.ts +87 -7
  8. package/dist/control-operation-responses.d.ts.map +1 -1
  9. package/dist/control-run-detail.d.ts +241 -19
  10. package/dist/control-run-detail.d.ts.map +1 -1
  11. package/dist/control-run-failure.d.ts +48 -4
  12. package/dist/control-run-failure.d.ts.map +1 -1
  13. package/dist/control-run-failure.js +3 -0
  14. package/dist/control-run-failure.js.map +1 -1
  15. package/dist/control.d.ts +67 -5
  16. package/dist/control.d.ts.map +1 -1
  17. package/dist/control.js +1 -1
  18. package/dist/control.js.map +1 -1
  19. package/dist/credential-profile-snapshot.d.ts +173 -0
  20. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  21. package/dist/credential-profile.d.ts +61 -0
  22. package/dist/credential-profile.d.ts.map +1 -1
  23. package/dist/credential-profile.js +29 -0
  24. package/dist/credential-profile.js.map +1 -1
  25. package/dist/harness-input.d.ts +90 -0
  26. package/dist/harness-input.d.ts.map +1 -0
  27. package/dist/harness-input.js +33 -0
  28. package/dist/harness-input.js.map +1 -0
  29. package/dist/harness.d.ts +128 -1
  30. package/dist/harness.d.ts.map +1 -1
  31. package/dist/harness.js +6 -2
  32. package/dist/harness.js.map +1 -1
  33. package/dist/mcp-run-result.d.ts +134 -10
  34. package/dist/mcp-run-result.d.ts.map +1 -1
  35. package/dist/model-operation.d.ts +31 -0
  36. package/dist/model-operation.d.ts.map +1 -1
  37. package/dist/model-operation.js +5 -1
  38. package/dist/model-operation.js.map +1 -1
  39. package/dist/readiness.d.ts +62 -0
  40. package/dist/readiness.d.ts.map +1 -1
  41. package/dist/setup.js +1 -1
  42. package/dist/setup.js.map +1 -1
  43. package/dist/telemetry.d.ts +106 -0
  44. package/dist/telemetry.d.ts.map +1 -1
  45. package/dist/telemetry.js +2 -1
  46. package/dist/telemetry.js.map +1 -1
  47. package/generated/AgentCapabilityCatalog.schema.json +61 -0
  48. package/generated/ControlCredentialProfileCreateResponse.schema.json +7 -0
  49. package/generated/ControlCredentialProfileUpdateResponse.schema.json +7 -0
  50. package/generated/ControlCredentialProfilesQueryResponse.schema.json +48 -0
  51. package/generated/ControlCredentialProfilesResponse.schema.json +7 -0
  52. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +48 -0
  53. package/generated/ControlHarnessListResponse.schema.json +41 -0
  54. package/generated/ControlModelAccountCatalogResponse.schema.json +7 -0
  55. package/generated/ControlModelCatalogQueryResponse.schema.json +7 -0
  56. package/generated/ControlModelCatalogResponse.schema.json +7 -0
  57. package/generated/ControlModelOperationDetail.schema.json +1 -1
  58. package/generated/ControlRunAgainDraft.schema.json +1 -1
  59. package/generated/ControlRunDetail.schema.json +63 -0
  60. package/generated/ControlRunListResponse.schema.json +63 -0
  61. package/generated/ControlRunStartRequest.schema.json +1 -1
  62. package/generated/ControlRunSummary.schema.json +63 -0
  63. package/generated/ControlThreadTurnRequest.schema.json +1 -1
  64. package/generated/CredentialProfileStatus.schema.json +7 -0
  65. package/generated/HarnessEvent.schema.json +62 -0
  66. package/generated/HarnessManifest.schema.json +41 -0
  67. package/generated/HarnessStatusDto.schema.json +41 -0
  68. package/generated/McpRunHandleResult.schema.json +63 -0
  69. package/generated/McpRunToolResult.schema.json +63 -0
  70. package/generated/RunFailure.schema.json +63 -0
  71. package/generated/RunTelemetry.schema.json +62 -0
  72. package/package.json +2 -2
@@ -305,9 +305,35 @@ export declare const ControlRunDetail: z.ZodObject<{
305
305
  runDir: z.ZodOptional<z.ZodString>;
306
306
  error: z.ZodOptional<z.ZodString>;
307
307
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
308
+ requestRefusal: z.ZodOptional<z.ZodObject<{
309
+ scope: z.ZodLiteral<"turn_text">;
310
+ unit: z.ZodLiteral<"unicode_scalars">;
311
+ source: z.ZodString;
312
+ } & {
313
+ kind: z.ZodLiteral<"input_too_large">;
314
+ limit: z.ZodNullable<z.ZodNumber>;
315
+ actual: z.ZodNullable<z.ZodNumber>;
316
+ native_code: z.ZodString;
317
+ }, "strip", z.ZodTypeAny, {
318
+ scope: "turn_text";
319
+ unit: "unicode_scalars";
320
+ source: string;
321
+ kind: "input_too_large";
322
+ limit: number | null;
323
+ actual: number | null;
324
+ native_code: string;
325
+ }, {
326
+ scope: "turn_text";
327
+ unit: "unicode_scalars";
328
+ source: string;
329
+ kind: "input_too_large";
330
+ limit: number | null;
331
+ actual: number | null;
332
+ native_code: string;
333
+ }>>;
308
334
  phase: z.ZodDefault<z.ZodString>;
309
335
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
310
- 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", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
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"]>>>;
311
337
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
312
338
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
313
339
  safeMessage: z.ZodString;
@@ -331,9 +357,18 @@ export declare const ControlRunDetail: z.ZodObject<{
331
357
  }>>>;
332
358
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
333
359
  }, "strip", z.ZodTypeAny, {
360
+ requestRefusal?: {
361
+ scope: "turn_text";
362
+ unit: "unicode_scalars";
363
+ source: string;
364
+ kind: "input_too_large";
365
+ limit: number | null;
366
+ actual: number | null;
367
+ native_code: string;
368
+ } | undefined;
334
369
  phase: string;
335
370
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
336
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
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;
337
372
  harnessId: string | null;
338
373
  attemptId: string | null;
339
374
  safeMessage: string;
@@ -349,9 +384,18 @@ export declare const ControlRunDetail: z.ZodObject<{
349
384
  } | null;
350
385
  nextActions: string[];
351
386
  }, {
387
+ requestRefusal?: {
388
+ scope: "turn_text";
389
+ unit: "unicode_scalars";
390
+ source: string;
391
+ kind: "input_too_large";
392
+ limit: number | null;
393
+ actual: number | null;
394
+ native_code: string;
395
+ } | undefined;
352
396
  phase?: string | undefined;
353
397
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
354
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | 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;
355
399
  harnessId?: string | null | undefined;
356
400
  attemptId?: string | null | undefined;
357
401
  safeMessage: string;
@@ -794,9 +838,18 @@ export declare const ControlRunDetail: z.ZodObject<{
794
838
  runDir?: string | undefined;
795
839
  error?: string | undefined;
796
840
  failure: {
841
+ requestRefusal?: {
842
+ scope: "turn_text";
843
+ unit: "unicode_scalars";
844
+ source: string;
845
+ kind: "input_too_large";
846
+ limit: number | null;
847
+ actual: number | null;
848
+ native_code: string;
849
+ } | undefined;
797
850
  phase: string;
798
851
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
799
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
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;
800
853
  harnessId: string | null;
801
854
  attemptId: string | null;
802
855
  safeMessage: string;
@@ -977,9 +1030,18 @@ export declare const ControlRunDetail: z.ZodObject<{
977
1030
  runDir?: string | undefined;
978
1031
  error?: string | undefined;
979
1032
  failure?: {
1033
+ requestRefusal?: {
1034
+ scope: "turn_text";
1035
+ unit: "unicode_scalars";
1036
+ source: string;
1037
+ kind: "input_too_large";
1038
+ limit: number | null;
1039
+ actual: number | null;
1040
+ native_code: string;
1041
+ } | undefined;
980
1042
  phase?: string | undefined;
981
1043
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
982
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | 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;
983
1045
  harnessId?: string | null | undefined;
984
1046
  attemptId?: string | null | undefined;
985
1047
  safeMessage: string;
@@ -1185,9 +1247,35 @@ export declare const ControlRunDetail: z.ZodObject<{
1185
1247
  runDir: z.ZodOptional<z.ZodString>;
1186
1248
  error: z.ZodOptional<z.ZodString>;
1187
1249
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1250
+ requestRefusal: z.ZodOptional<z.ZodObject<{
1251
+ scope: z.ZodLiteral<"turn_text">;
1252
+ unit: z.ZodLiteral<"unicode_scalars">;
1253
+ source: z.ZodString;
1254
+ } & {
1255
+ kind: z.ZodLiteral<"input_too_large">;
1256
+ limit: z.ZodNullable<z.ZodNumber>;
1257
+ actual: z.ZodNullable<z.ZodNumber>;
1258
+ native_code: z.ZodString;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ scope: "turn_text";
1261
+ unit: "unicode_scalars";
1262
+ source: string;
1263
+ kind: "input_too_large";
1264
+ limit: number | null;
1265
+ actual: number | null;
1266
+ native_code: string;
1267
+ }, {
1268
+ scope: "turn_text";
1269
+ unit: "unicode_scalars";
1270
+ source: string;
1271
+ kind: "input_too_large";
1272
+ limit: number | null;
1273
+ actual: number | null;
1274
+ native_code: string;
1275
+ }>>;
1188
1276
  phase: z.ZodDefault<z.ZodString>;
1189
1277
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
1190
- 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", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
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"]>>>;
1191
1279
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1192
1280
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1193
1281
  safeMessage: z.ZodString;
@@ -1211,9 +1299,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1211
1299
  }>>>;
1212
1300
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1213
1301
  }, "strip", z.ZodTypeAny, {
1302
+ requestRefusal?: {
1303
+ scope: "turn_text";
1304
+ unit: "unicode_scalars";
1305
+ source: string;
1306
+ kind: "input_too_large";
1307
+ limit: number | null;
1308
+ actual: number | null;
1309
+ native_code: string;
1310
+ } | undefined;
1214
1311
  phase: string;
1215
1312
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1216
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
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;
1217
1314
  harnessId: string | null;
1218
1315
  attemptId: string | null;
1219
1316
  safeMessage: string;
@@ -1229,9 +1326,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1229
1326
  } | null;
1230
1327
  nextActions: string[];
1231
1328
  }, {
1329
+ requestRefusal?: {
1330
+ scope: "turn_text";
1331
+ unit: "unicode_scalars";
1332
+ source: string;
1333
+ kind: "input_too_large";
1334
+ limit: number | null;
1335
+ actual: number | null;
1336
+ native_code: string;
1337
+ } | undefined;
1232
1338
  phase?: string | undefined;
1233
1339
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1234
- 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" | "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" | null | undefined;
1235
1341
  harnessId?: string | null | undefined;
1236
1342
  attemptId?: string | null | undefined;
1237
1343
  safeMessage: string;
@@ -1674,9 +1780,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1674
1780
  runDir?: string | undefined;
1675
1781
  error?: string | undefined;
1676
1782
  failure: {
1783
+ requestRefusal?: {
1784
+ scope: "turn_text";
1785
+ unit: "unicode_scalars";
1786
+ source: string;
1787
+ kind: "input_too_large";
1788
+ limit: number | null;
1789
+ actual: number | null;
1790
+ native_code: string;
1791
+ } | undefined;
1677
1792
  phase: string;
1678
1793
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
1679
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
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;
1680
1795
  harnessId: string | null;
1681
1796
  attemptId: string | null;
1682
1797
  safeMessage: string;
@@ -1857,9 +1972,18 @@ export declare const ControlRunDetail: z.ZodObject<{
1857
1972
  runDir?: string | undefined;
1858
1973
  error?: string | undefined;
1859
1974
  failure?: {
1975
+ requestRefusal?: {
1976
+ scope: "turn_text";
1977
+ unit: "unicode_scalars";
1978
+ source: string;
1979
+ kind: "input_too_large";
1980
+ limit: number | null;
1981
+ actual: number | null;
1982
+ native_code: string;
1983
+ } | undefined;
1860
1984
  phase?: string | undefined;
1861
1985
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
1862
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | 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;
1863
1987
  harnessId?: string | null | undefined;
1864
1988
  attemptId?: string | null | undefined;
1865
1989
  safeMessage: string;
@@ -3380,9 +3504,35 @@ export declare const ControlRunDetail: z.ZodObject<{
3380
3504
  evidence?: "complete" | "incomplete" | "unavailable" | undefined;
3381
3505
  }>>>;
3382
3506
  failure: z.ZodDefault<z.ZodNullable<z.ZodObject<{
3507
+ requestRefusal: z.ZodOptional<z.ZodObject<{
3508
+ scope: z.ZodLiteral<"turn_text">;
3509
+ unit: z.ZodLiteral<"unicode_scalars">;
3510
+ source: z.ZodString;
3511
+ } & {
3512
+ kind: z.ZodLiteral<"input_too_large">;
3513
+ limit: z.ZodNullable<z.ZodNumber>;
3514
+ actual: z.ZodNullable<z.ZodNumber>;
3515
+ native_code: z.ZodString;
3516
+ }, "strip", z.ZodTypeAny, {
3517
+ scope: "turn_text";
3518
+ unit: "unicode_scalars";
3519
+ source: string;
3520
+ kind: "input_too_large";
3521
+ limit: number | null;
3522
+ actual: number | null;
3523
+ native_code: string;
3524
+ }, {
3525
+ scope: "turn_text";
3526
+ unit: "unicode_scalars";
3527
+ source: string;
3528
+ kind: "input_too_large";
3529
+ limit: number | null;
3530
+ actual: number | null;
3531
+ native_code: string;
3532
+ }>>;
3383
3533
  phase: z.ZodDefault<z.ZodString>;
3384
3534
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
3385
- 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", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
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"]>>>;
3386
3536
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3387
3537
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3388
3538
  safeMessage: z.ZodString;
@@ -3406,9 +3556,18 @@ export declare const ControlRunDetail: z.ZodObject<{
3406
3556
  }>>>;
3407
3557
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3408
3558
  }, "strip", z.ZodTypeAny, {
3559
+ requestRefusal?: {
3560
+ scope: "turn_text";
3561
+ unit: "unicode_scalars";
3562
+ source: string;
3563
+ kind: "input_too_large";
3564
+ limit: number | null;
3565
+ actual: number | null;
3566
+ native_code: string;
3567
+ } | undefined;
3409
3568
  phase: string;
3410
3569
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3411
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
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;
3412
3571
  harnessId: string | null;
3413
3572
  attemptId: string | null;
3414
3573
  safeMessage: string;
@@ -3424,9 +3583,18 @@ export declare const ControlRunDetail: z.ZodObject<{
3424
3583
  } | null;
3425
3584
  nextActions: string[];
3426
3585
  }, {
3586
+ requestRefusal?: {
3587
+ scope: "turn_text";
3588
+ unit: "unicode_scalars";
3589
+ source: string;
3590
+ kind: "input_too_large";
3591
+ limit: number | null;
3592
+ actual: number | null;
3593
+ native_code: string;
3594
+ } | undefined;
3427
3595
  phase?: string | undefined;
3428
3596
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
3429
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | 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;
3430
3598
  harnessId?: string | null | undefined;
3431
3599
  attemptId?: string | null | undefined;
3432
3600
  safeMessage: string;
@@ -3501,9 +3669,18 @@ export declare const ControlRunDetail: z.ZodObject<{
3501
3669
  runDir?: string | undefined;
3502
3670
  error?: string | undefined;
3503
3671
  failure: {
3672
+ requestRefusal?: {
3673
+ scope: "turn_text";
3674
+ unit: "unicode_scalars";
3675
+ source: string;
3676
+ kind: "input_too_large";
3677
+ limit: number | null;
3678
+ actual: number | null;
3679
+ native_code: string;
3680
+ } | undefined;
3504
3681
  phase: string;
3505
3682
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3506
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
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;
3507
3684
  harnessId: string | null;
3508
3685
  attemptId: string | null;
3509
3686
  safeMessage: string;
@@ -3685,9 +3862,18 @@ export declare const ControlRunDetail: z.ZodObject<{
3685
3862
  runDir?: string | undefined;
3686
3863
  error?: string | undefined;
3687
3864
  failure: {
3865
+ requestRefusal?: {
3866
+ scope: "turn_text";
3867
+ unit: "unicode_scalars";
3868
+ source: string;
3869
+ kind: "input_too_large";
3870
+ limit: number | null;
3871
+ actual: number | null;
3872
+ native_code: string;
3873
+ } | undefined;
3688
3874
  phase: string;
3689
3875
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
3690
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
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;
3691
3877
  harnessId: string | null;
3692
3878
  attemptId: string | null;
3693
3879
  safeMessage: string;
@@ -4165,9 +4351,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4165
4351
  evidence: "complete" | "incomplete" | "unavailable";
4166
4352
  } | null;
4167
4353
  failure: {
4354
+ requestRefusal?: {
4355
+ scope: "turn_text";
4356
+ unit: "unicode_scalars";
4357
+ source: string;
4358
+ kind: "input_too_large";
4359
+ limit: number | null;
4360
+ actual: number | null;
4361
+ native_code: string;
4362
+ } | undefined;
4168
4363
  phase: string;
4169
4364
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
4170
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
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;
4171
4366
  harnessId: string | null;
4172
4367
  attemptId: string | null;
4173
4368
  safeMessage: string;
@@ -4230,9 +4425,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4230
4425
  runDir?: string | undefined;
4231
4426
  error?: string | undefined;
4232
4427
  failure?: {
4428
+ requestRefusal?: {
4429
+ scope: "turn_text";
4430
+ unit: "unicode_scalars";
4431
+ source: string;
4432
+ kind: "input_too_large";
4433
+ limit: number | null;
4434
+ actual: number | null;
4435
+ native_code: string;
4436
+ } | undefined;
4233
4437
  phase?: string | undefined;
4234
4438
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | 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;
4236
4440
  harnessId?: string | null | undefined;
4237
4441
  attemptId?: string | null | undefined;
4238
4442
  safeMessage: string;
@@ -4414,9 +4618,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4414
4618
  runDir?: string | undefined;
4415
4619
  error?: string | undefined;
4416
4620
  failure?: {
4621
+ requestRefusal?: {
4622
+ scope: "turn_text";
4623
+ unit: "unicode_scalars";
4624
+ source: string;
4625
+ kind: "input_too_large";
4626
+ limit: number | null;
4627
+ actual: number | null;
4628
+ native_code: string;
4629
+ } | undefined;
4417
4630
  phase?: string | undefined;
4418
4631
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
4419
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | 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;
4420
4633
  harnessId?: string | null | undefined;
4421
4634
  attemptId?: string | null | undefined;
4422
4635
  safeMessage: string;
@@ -4894,9 +5107,18 @@ export declare const ControlRunDetail: z.ZodObject<{
4894
5107
  evidence?: "complete" | "incomplete" | "unavailable" | undefined;
4895
5108
  } | null | undefined;
4896
5109
  failure?: {
5110
+ requestRefusal?: {
5111
+ scope: "turn_text";
5112
+ unit: "unicode_scalars";
5113
+ source: string;
5114
+ kind: "input_too_large";
5115
+ limit: number | null;
5116
+ actual: number | null;
5117
+ native_code: string;
5118
+ } | undefined;
4897
5119
  phase?: string | undefined;
4898
5120
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
4899
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | 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;
4900
5122
  harnessId?: string | null | undefined;
4901
5123
  attemptId?: string | null | undefined;
4902
5124
  safeMessage: string;
@@ -1 +1 @@
1
- {"version":3,"file":"control-run-detail.d.ts","sourceRoot":"","sources":["../src/control-run-detail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAoB3B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAwB4B,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;kCAGkC;AAClC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAwBrC,CAAC;AACJ,MAAM,MAAM,2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  */
11
- export declare const RunFailureCode: 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", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>;
11
+ export declare const RunFailureCode: 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"]>;
12
12
  export type RunFailureCode = z.infer<typeof RunFailureCode>;
13
13
  /** A vendor's OWN typed failure, forwarded as evidence. `code` is opaque: no
14
14
  * Claudexor code path may branch on its value; retry, rotation, cooldown and
@@ -31,9 +31,35 @@ export declare const VendorFailureEvidence: z.ZodObject<{
31
31
  }>;
32
32
  export type VendorFailureEvidence = z.infer<typeof VendorFailureEvidence>;
33
33
  export declare const RunFailure: z.ZodObject<{
34
+ requestRefusal: z.ZodOptional<z.ZodObject<{
35
+ scope: z.ZodLiteral<"turn_text">;
36
+ unit: z.ZodLiteral<"unicode_scalars">;
37
+ source: z.ZodString;
38
+ } & {
39
+ kind: z.ZodLiteral<"input_too_large">;
40
+ limit: z.ZodNullable<z.ZodNumber>;
41
+ actual: z.ZodNullable<z.ZodNumber>;
42
+ native_code: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ scope: "turn_text";
45
+ unit: "unicode_scalars";
46
+ source: string;
47
+ kind: "input_too_large";
48
+ limit: number | null;
49
+ actual: number | null;
50
+ native_code: string;
51
+ }, {
52
+ scope: "turn_text";
53
+ unit: "unicode_scalars";
54
+ source: string;
55
+ kind: "input_too_large";
56
+ limit: number | null;
57
+ actual: number | null;
58
+ native_code: string;
59
+ }>>;
34
60
  phase: z.ZodDefault<z.ZodString>;
35
61
  category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
36
- 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", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
62
+ 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"]>>>;
37
63
  harnessId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
38
64
  attemptId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
39
65
  safeMessage: z.ZodString;
@@ -60,9 +86,18 @@ export declare const RunFailure: z.ZodObject<{
60
86
  }>>>;
61
87
  nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
62
88
  }, "strip", z.ZodTypeAny, {
89
+ requestRefusal?: {
90
+ scope: "turn_text";
91
+ unit: "unicode_scalars";
92
+ source: string;
93
+ kind: "input_too_large";
94
+ limit: number | null;
95
+ actual: number | null;
96
+ native_code: string;
97
+ } | undefined;
63
98
  phase: string;
64
99
  category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
65
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null;
100
+ 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;
66
101
  harnessId: string | null;
67
102
  attemptId: string | null;
68
103
  safeMessage: string;
@@ -78,9 +113,18 @@ export declare const RunFailure: z.ZodObject<{
78
113
  } | null;
79
114
  nextActions: string[];
80
115
  }, {
116
+ requestRefusal?: {
117
+ scope: "turn_text";
118
+ unit: "unicode_scalars";
119
+ source: string;
120
+ kind: "input_too_large";
121
+ limit: number | null;
122
+ actual: number | null;
123
+ native_code: string;
124
+ } | undefined;
81
125
  phase?: string | undefined;
82
126
  category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
83
- 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" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | null | undefined;
127
+ 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;
84
128
  harnessId?: string | null | undefined;
85
129
  attemptId?: string | null | undefined;
86
130
  safeMessage: string;
@@ -1 +1 @@
1
- {"version":3,"file":"control-run-failure.d.ts","sourceRoot":"","sources":["../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AAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod/v3";
2
+ import { HarnessRequestRefusal } from "./harness-input.js";
2
3
  /**
3
4
  * The typed run-failure contract, split out of `control.ts` for the reason the
4
5
  * complexity ratchet exists (INV-124): `control.ts` is the file every new
@@ -24,6 +25,7 @@ export const RunFailureCode = z
24
25
  * the EARLIEST known release inside the pool — the first instant any
25
26
  * member reopens — or null when any member's reset is unknown. */
26
27
  "credential_pool_exhausted",
28
+ "input_too_large",
27
29
  /* Active scoped-HOME/evidence refusals plus the historical confinement
28
30
  * decoder code. Attempt-loop failures must be listed here or
29
31
  * `declaredFailure` drops them to `code: null` and the terminal states less
@@ -63,6 +65,7 @@ export const VendorFailureEvidence = z
63
65
  .describe("Vendor-typed failure evidence read from a vendor-owned machine-readable record, never parsed from prose.");
64
66
  export const RunFailure = z
65
67
  .object({
68
+ requestRefusal: HarnessRequestRefusal.optional(),
66
69
  phase: z.string().default("unknown").describe("Pipeline phase where the failure happened."),
67
70
  category: z
68
71
  .enum([
@@ -1 +1 @@
1
- {"version":3,"file":"control-run-failure.js","sourceRoot":"","sources":["../src/control-run-failure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,IAAI,CAAC;IACJ,aAAa;IACb,UAAU;IACV,mBAAmB;IACnB,wBAAwB;IACxB,kBAAkB;IAClB,mBAAmB;IACnB,gCAAgC;IAChC,+BAA+B;IAC/B;;;;sEAIkE;IAClE,2BAA2B;IAC3B;;;mEAG+D;IAC/D,4BAA4B;IAC5B,mCAAmC;IACnC,+BAA+B;IAC/B,6BAA6B;IAC7B,wBAAwB;CACzB,CAAC;KACD,QAAQ,CACP,iJAAiJ,CAClJ,CAAC;AAGJ;;;;;+CAK+C;AAC/C,MAAM,CAAC,MAAM,qBAAqB,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