@skyramp/testbot-core 0.13.0 → 0.13.1-v3.442

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.
@@ -1700,6 +1700,8 @@ export interface RequirementReportRow {
1700
1700
  /** The shipped report — the TestbotReport shape deliver renders into the PR. */
1701
1701
  export interface StagedTestbotReport {
1702
1702
  schemaVersion?: 1;
1703
+ /** Testbot V3: every pull request the run validated together, when there are two or more (SKYR-5825). */
1704
+ pullRequests?: ReportPullRequest[];
1703
1705
  businessCaseAnalysis: string;
1704
1706
  /** Change Set repositories with no new or updated tests, and why. Absent from older reports. */
1705
1707
  noTests?: {
@@ -2155,6 +2157,12 @@ declare enum CaveatKind {
2155
2157
  CiNotCovered = "ci-not-covered",
2156
2158
  /** Write said the repo's CI runs these tests, and the listing it gave could not confirm it (SKYR-5489). */
2157
2159
  CiUnconfirmed = "ci-unconfirmed",
2160
+ /** Tests that need services the repo's CI does not start, kept out of what CI collects (SKYR-5899). */
2161
+ CiNotIntegrated = "ci-not-integrated",
2162
+ /** Tests the repo's CI collects in a job that does not start what they need, so CI fails on them (SKYR-5899). */
2163
+ CiUnprovisioned = "ci-unprovisioned",
2164
+ /** Tests write added that CI would run without what they need, left out of the tests PR (SKYR-5899). */
2165
+ CiWithheld = "ci-withheld",
2158
2166
  /** The platform could not read a repository's CI results for its head, so CI evidence there went unseen (SKYR-5679). */
2159
2167
  CiResultsUnread = "ci-results-unread",
2160
2168
  /** A read-only checkout has a browser suite, so the ui tests went to a writable checkout instead (SKYR-5173). */
@@ -2203,6 +2211,14 @@ export interface ReportCaveat {
2203
2211
  /** True when it means the run is not evidence the change works. */
2204
2212
  blocking: boolean;
2205
2213
  }
2214
+ /** What the artifacts already record. Derived, never authored. */
2215
+ /** One pull request a run validated together with others: a Change Set's (SKYR-5825). */
2216
+ export interface ReportPullRequest {
2217
+ /** owner/repo. */
2218
+ repository: string;
2219
+ number: string;
2220
+ title?: string;
2221
+ }
2206
2222
  declare enum ReportLanguage {
2207
2223
  En = "en",
2208
2224
  Ja = "ja"
@@ -2363,22 +2379,22 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2363
2379
  id: z.ZodString;
2364
2380
  revision: z.ZodString;
2365
2381
  }, "strict", z.ZodTypeAny, {
2366
- id: string;
2367
2382
  revision: string;
2368
- }, {
2369
2383
  id: string;
2384
+ }, {
2370
2385
  revision: string;
2386
+ id: string;
2371
2387
  }>;
2372
2388
  /** Null exactly for a trigger in POLICYLESS_TRIGGERS, such as `sut_setup`. */
2373
2389
  policy: z.ZodNullable<z.ZodObject<{
2374
2390
  id: z.ZodString;
2375
2391
  revision: z.ZodString;
2376
2392
  }, "strict", z.ZodTypeAny, {
2377
- id: string;
2378
2393
  revision: string;
2379
- }, {
2380
2394
  id: string;
2395
+ }, {
2381
2396
  revision: string;
2397
+ id: string;
2382
2398
  }>>;
2383
2399
  trigger: z.ZodObject<{
2384
2400
  kind: z.ZodNativeEnum<typeof TriggerKind>;
@@ -2422,14 +2438,14 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2422
2438
  path: z.ZodString;
2423
2439
  finding: z.ZodString;
2424
2440
  }, "strict", z.ZodTypeAny, {
2425
- repository: string;
2426
2441
  path: string;
2442
+ repository: string;
2427
2443
  finding: string;
2428
2444
  resultId: string;
2429
2445
  testType: string;
2430
2446
  }, {
2431
- repository: string;
2432
2447
  path: string;
2448
+ repository: string;
2433
2449
  finding: string;
2434
2450
  resultId: string;
2435
2451
  testType: string;
@@ -2504,8 +2520,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2504
2520
  revision: string;
2505
2521
  }[] | undefined;
2506
2522
  knownFailures?: {
2507
- repository: string;
2508
2523
  path: string;
2524
+ repository: string;
2509
2525
  finding: string;
2510
2526
  resultId: string;
2511
2527
  testType: string;
@@ -2527,8 +2543,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2527
2543
  revision: string;
2528
2544
  }[] | undefined;
2529
2545
  knownFailures?: {
2530
- repository: string;
2531
2546
  path: string;
2547
+ repository: string;
2532
2548
  finding: string;
2533
2549
  resultId: string;
2534
2550
  testType: string;
@@ -2636,6 +2652,7 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2636
2652
  number?: string | undefined;
2637
2653
  }>, "many">>;
2638
2654
  }, "strict", z.ZodTypeAny, {
2655
+ reason: SelectionReason;
2639
2656
  repository: {
2640
2657
  name: string;
2641
2658
  provider: SourceProvider.GitHub;
@@ -2649,7 +2666,6 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2649
2666
  providerRepositoryId: string;
2650
2667
  namespace: string;
2651
2668
  };
2652
- reason: SelectionReason;
2653
2669
  revision: string;
2654
2670
  ref: string | null;
2655
2671
  change: {
@@ -2672,6 +2688,7 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2672
2688
  number?: string | undefined;
2673
2689
  }[] | undefined;
2674
2690
  }, {
2691
+ reason: SelectionReason;
2675
2692
  repository: {
2676
2693
  name: string;
2677
2694
  provider: SourceProvider.GitHub;
@@ -2685,7 +2702,6 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2685
2702
  providerRepositoryId: string;
2686
2703
  namespace: string;
2687
2704
  };
2688
- reason: SelectionReason;
2689
2705
  revision: string;
2690
2706
  ref: string | null;
2691
2707
  change: {
@@ -2810,14 +2826,14 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2810
2826
  contentHash: z.ZodString;
2811
2827
  }, "strict", z.ZodTypeAny, {
2812
2828
  updated: string;
2813
- source: RequirementItemSource.Jira;
2814
2829
  site: string;
2830
+ source: RequirementItemSource.Jira;
2815
2831
  key: string;
2816
2832
  contentHash: string;
2817
2833
  }, {
2818
2834
  updated: string;
2819
- source: RequirementItemSource.Jira;
2820
2835
  site: string;
2836
+ source: RequirementItemSource.Jira;
2821
2837
  key: string;
2822
2838
  contentHash: string;
2823
2839
  }>,
@@ -2828,14 +2844,14 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2828
2844
  version: z.ZodNumber;
2829
2845
  contentHash: z.ZodString;
2830
2846
  }, "strict", z.ZodTypeAny, {
2831
- source: RequirementItemSource.Confluence;
2832
2847
  site: string;
2848
+ source: RequirementItemSource.Confluence;
2833
2849
  key: string;
2834
2850
  contentHash: string;
2835
2851
  version: number;
2836
2852
  }, {
2837
- source: RequirementItemSource.Confluence;
2838
2853
  site: string;
2854
+ source: RequirementItemSource.Confluence;
2839
2855
  key: string;
2840
2856
  contentHash: string;
2841
2857
  version: number;
@@ -2943,17 +2959,18 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2943
2959
  revision: string;
2944
2960
  }>, "many">>;
2945
2961
  }, "strict", z.ZodTypeAny, {
2962
+ target: {
2963
+ revision: string;
2964
+ id: string;
2965
+ };
2966
+ schemaVersion: 1;
2946
2967
  credentials: {
2947
2968
  name: string;
2948
2969
  purpose: CredentialPurpose;
2949
2970
  required: boolean;
2950
2971
  }[];
2951
- schemaVersion: 1;
2952
- target: {
2953
- id: string;
2954
- revision: string;
2955
- };
2956
2972
  sources: {
2973
+ reason: SelectionReason;
2957
2974
  repository: {
2958
2975
  name: string;
2959
2976
  provider: SourceProvider.GitHub;
@@ -2967,7 +2984,6 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2967
2984
  providerRepositoryId: string;
2968
2985
  namespace: string;
2969
2986
  };
2970
- reason: SelectionReason;
2971
2987
  revision: string;
2972
2988
  ref: string | null;
2973
2989
  change: {
@@ -2993,8 +3009,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
2993
3009
  runId: string;
2994
3010
  skyrampOrgId: string;
2995
3011
  policy: {
2996
- id: string;
2997
3012
  revision: string;
3013
+ id: string;
2998
3014
  } | null;
2999
3015
  trigger: {
3000
3016
  kind: TriggerKind;
@@ -3043,8 +3059,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3043
3059
  revision: string;
3044
3060
  }[] | undefined;
3045
3061
  knownFailures?: {
3046
- repository: string;
3047
3062
  path: string;
3063
+ repository: string;
3048
3064
  finding: string;
3049
3065
  resultId: string;
3050
3066
  testType: string;
@@ -3052,13 +3068,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3052
3068
  } | undefined;
3053
3069
  requirements?: ({
3054
3070
  updated: string;
3055
- source: RequirementItemSource.Jira;
3056
3071
  site: string;
3072
+ source: RequirementItemSource.Jira;
3057
3073
  key: string;
3058
3074
  contentHash: string;
3059
3075
  } | {
3060
- source: RequirementItemSource.Confluence;
3061
3076
  site: string;
3077
+ source: RequirementItemSource.Confluence;
3062
3078
  key: string;
3063
3079
  contentHash: string;
3064
3080
  version: number;
@@ -3086,17 +3102,18 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3086
3102
  revision: string;
3087
3103
  }[] | undefined;
3088
3104
  }, {
3105
+ target: {
3106
+ revision: string;
3107
+ id: string;
3108
+ };
3109
+ schemaVersion: 1;
3089
3110
  credentials: {
3090
3111
  name: string;
3091
3112
  purpose: CredentialPurpose;
3092
3113
  required: boolean;
3093
3114
  }[];
3094
- schemaVersion: 1;
3095
- target: {
3096
- id: string;
3097
- revision: string;
3098
- };
3099
3115
  sources: {
3116
+ reason: SelectionReason;
3100
3117
  repository: {
3101
3118
  name: string;
3102
3119
  provider: SourceProvider.GitHub;
@@ -3110,7 +3127,6 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3110
3127
  providerRepositoryId: string;
3111
3128
  namespace: string;
3112
3129
  };
3113
- reason: SelectionReason;
3114
3130
  revision: string;
3115
3131
  ref: string | null;
3116
3132
  change: {
@@ -3136,8 +3152,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3136
3152
  runId: string;
3137
3153
  skyrampOrgId: string;
3138
3154
  policy: {
3139
- id: string;
3140
3155
  revision: string;
3156
+ id: string;
3141
3157
  } | null;
3142
3158
  trigger: {
3143
3159
  kind: TriggerKind;
@@ -3186,8 +3202,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3186
3202
  revision: string;
3187
3203
  }[] | undefined;
3188
3204
  knownFailures?: {
3189
- repository: string;
3190
3205
  path: string;
3206
+ repository: string;
3191
3207
  finding: string;
3192
3208
  resultId: string;
3193
3209
  testType: string;
@@ -3195,13 +3211,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3195
3211
  } | undefined;
3196
3212
  requirements?: ({
3197
3213
  updated: string;
3198
- source: RequirementItemSource.Jira;
3199
3214
  site: string;
3215
+ source: RequirementItemSource.Jira;
3200
3216
  key: string;
3201
3217
  contentHash: string;
3202
3218
  } | {
3203
- source: RequirementItemSource.Confluence;
3204
3219
  site: string;
3220
+ source: RequirementItemSource.Confluence;
3205
3221
  key: string;
3206
3222
  contentHash: string;
3207
3223
  version: number;
@@ -3229,17 +3245,18 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3229
3245
  revision: string;
3230
3246
  }[] | undefined;
3231
3247
  }>, {
3248
+ target: {
3249
+ revision: string;
3250
+ id: string;
3251
+ };
3252
+ schemaVersion: 1;
3232
3253
  credentials: {
3233
3254
  name: string;
3234
3255
  purpose: CredentialPurpose;
3235
3256
  required: boolean;
3236
3257
  }[];
3237
- schemaVersion: 1;
3238
- target: {
3239
- id: string;
3240
- revision: string;
3241
- };
3242
3258
  sources: {
3259
+ reason: SelectionReason;
3243
3260
  repository: {
3244
3261
  name: string;
3245
3262
  provider: SourceProvider.GitHub;
@@ -3253,7 +3270,6 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3253
3270
  providerRepositoryId: string;
3254
3271
  namespace: string;
3255
3272
  };
3256
- reason: SelectionReason;
3257
3273
  revision: string;
3258
3274
  ref: string | null;
3259
3275
  change: {
@@ -3279,8 +3295,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3279
3295
  runId: string;
3280
3296
  skyrampOrgId: string;
3281
3297
  policy: {
3282
- id: string;
3283
3298
  revision: string;
3299
+ id: string;
3284
3300
  } | null;
3285
3301
  trigger: {
3286
3302
  kind: TriggerKind;
@@ -3329,8 +3345,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3329
3345
  revision: string;
3330
3346
  }[] | undefined;
3331
3347
  knownFailures?: {
3332
- repository: string;
3333
3348
  path: string;
3349
+ repository: string;
3334
3350
  finding: string;
3335
3351
  resultId: string;
3336
3352
  testType: string;
@@ -3338,13 +3354,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3338
3354
  } | undefined;
3339
3355
  requirements?: ({
3340
3356
  updated: string;
3341
- source: RequirementItemSource.Jira;
3342
3357
  site: string;
3358
+ source: RequirementItemSource.Jira;
3343
3359
  key: string;
3344
3360
  contentHash: string;
3345
3361
  } | {
3346
- source: RequirementItemSource.Confluence;
3347
3362
  site: string;
3363
+ source: RequirementItemSource.Confluence;
3348
3364
  key: string;
3349
3365
  contentHash: string;
3350
3366
  version: number;
@@ -3372,17 +3388,18 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3372
3388
  revision: string;
3373
3389
  }[] | undefined;
3374
3390
  }, {
3391
+ target: {
3392
+ revision: string;
3393
+ id: string;
3394
+ };
3395
+ schemaVersion: 1;
3375
3396
  credentials: {
3376
3397
  name: string;
3377
3398
  purpose: CredentialPurpose;
3378
3399
  required: boolean;
3379
3400
  }[];
3380
- schemaVersion: 1;
3381
- target: {
3382
- id: string;
3383
- revision: string;
3384
- };
3385
3401
  sources: {
3402
+ reason: SelectionReason;
3386
3403
  repository: {
3387
3404
  name: string;
3388
3405
  provider: SourceProvider.GitHub;
@@ -3396,7 +3413,6 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3396
3413
  providerRepositoryId: string;
3397
3414
  namespace: string;
3398
3415
  };
3399
- reason: SelectionReason;
3400
3416
  revision: string;
3401
3417
  ref: string | null;
3402
3418
  change: {
@@ -3422,8 +3438,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3422
3438
  runId: string;
3423
3439
  skyrampOrgId: string;
3424
3440
  policy: {
3425
- id: string;
3426
3441
  revision: string;
3442
+ id: string;
3427
3443
  } | null;
3428
3444
  trigger: {
3429
3445
  kind: TriggerKind;
@@ -3472,8 +3488,8 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3472
3488
  revision: string;
3473
3489
  }[] | undefined;
3474
3490
  knownFailures?: {
3475
- repository: string;
3476
3491
  path: string;
3492
+ repository: string;
3477
3493
  finding: string;
3478
3494
  resultId: string;
3479
3495
  testType: string;
@@ -3481,13 +3497,13 @@ declare const RunManifestV1Schema: z.ZodEffects<z.ZodObject<{
3481
3497
  } | undefined;
3482
3498
  requirements?: ({
3483
3499
  updated: string;
3484
- source: RequirementItemSource.Jira;
3485
3500
  site: string;
3501
+ source: RequirementItemSource.Jira;
3486
3502
  key: string;
3487
3503
  contentHash: string;
3488
3504
  } | {
3489
- source: RequirementItemSource.Confluence;
3490
3505
  site: string;
3506
+ source: RequirementItemSource.Confluence;
3491
3507
  key: string;
3492
3508
  contentHash: string;
3493
3509
  version: number;
@@ -3531,11 +3547,11 @@ declare const RequestedBySchema: z.ZodObject<{
3531
3547
  kind: z.ZodNativeEnum<typeof RequesterKind>;
3532
3548
  name: z.ZodString;
3533
3549
  }, "strict", z.ZodTypeAny, {
3534
- name: string;
3535
3550
  kind: RequesterKind;
3536
- }, {
3537
3551
  name: string;
3552
+ }, {
3538
3553
  kind: RequesterKind;
3554
+ name: string;
3539
3555
  }>;
3540
3556
  export type RequestedBy = z.infer<typeof RequestedBySchema>;
3541
3557
  declare const RunSettingsSchema: z.ZodObject<{
@@ -3784,6 +3800,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3784
3800
  ]>;
3785
3801
  reason: z.ZodString;
3786
3802
  }, "strict", z.ZodTypeAny, {
3803
+ reason: string;
3787
3804
  repository: {
3788
3805
  provider: SourceProvider.GitHub;
3789
3806
  providerAccountId: string;
@@ -3793,8 +3810,8 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3793
3810
  providerAccountId: string;
3794
3811
  providerRepositoryId: string;
3795
3812
  };
3796
- reason: string;
3797
3813
  }, {
3814
+ reason: string;
3798
3815
  repository: {
3799
3816
  provider: SourceProvider.GitHub;
3800
3817
  providerAccountId: string;
@@ -3804,11 +3821,11 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3804
3821
  providerAccountId: string;
3805
3822
  providerRepositoryId: string;
3806
3823
  };
3807
- reason: string;
3808
3824
  }>, "many">>;
3809
3825
  }, "strict", z.ZodTypeAny, {
3810
3826
  status: DeliveryStatus.None;
3811
3827
  noTests?: {
3828
+ reason: string;
3812
3829
  repository: {
3813
3830
  provider: SourceProvider.GitHub;
3814
3831
  providerAccountId: string;
@@ -3818,11 +3835,11 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3818
3835
  providerAccountId: string;
3819
3836
  providerRepositoryId: string;
3820
3837
  };
3821
- reason: string;
3822
3838
  }[] | undefined;
3823
3839
  }, {
3824
3840
  status: DeliveryStatus.None;
3825
3841
  noTests?: {
3842
+ reason: string;
3826
3843
  repository: {
3827
3844
  provider: SourceProvider.GitHub;
3828
3845
  providerAccountId: string;
@@ -3832,7 +3849,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3832
3849
  providerAccountId: string;
3833
3850
  providerRepositoryId: string;
3834
3851
  };
3835
- reason: string;
3836
3852
  }[] | undefined;
3837
3853
  }>,
3838
3854
  z.ZodObject<{
@@ -3868,6 +3884,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3868
3884
  ]>;
3869
3885
  reason: z.ZodString;
3870
3886
  }, "strict", z.ZodTypeAny, {
3887
+ reason: string;
3871
3888
  repository: {
3872
3889
  provider: SourceProvider.GitHub;
3873
3890
  providerAccountId: string;
@@ -3877,8 +3894,8 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3877
3894
  providerAccountId: string;
3878
3895
  providerRepositoryId: string;
3879
3896
  };
3880
- reason: string;
3881
3897
  }, {
3898
+ reason: string;
3882
3899
  repository: {
3883
3900
  provider: SourceProvider.GitHub;
3884
3901
  providerAccountId: string;
@@ -3888,7 +3905,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3888
3905
  providerAccountId: string;
3889
3906
  providerRepositoryId: string;
3890
3907
  };
3891
- reason: string;
3892
3908
  }>, "many">>;
3893
3909
  pullRequests: z.ZodArray<z.ZodObject<{
3894
3910
  repository: z.ZodDiscriminatedUnion<"provider", [
@@ -3962,6 +3978,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3962
3978
  commitSha?: string | undefined;
3963
3979
  }[];
3964
3980
  noTests?: {
3981
+ reason: string;
3965
3982
  repository: {
3966
3983
  provider: SourceProvider.GitHub;
3967
3984
  providerAccountId: string;
@@ -3971,7 +3988,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3971
3988
  providerAccountId: string;
3972
3989
  providerRepositoryId: string;
3973
3990
  };
3974
- reason: string;
3975
3991
  }[] | undefined;
3976
3992
  }, {
3977
3993
  status: DeliveryStatus.Delivered;
@@ -3989,6 +4005,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3989
4005
  commitSha?: string | undefined;
3990
4006
  }[];
3991
4007
  noTests?: {
4008
+ reason: string;
3992
4009
  repository: {
3993
4010
  provider: SourceProvider.GitHub;
3994
4011
  providerAccountId: string;
@@ -3998,7 +4015,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
3998
4015
  providerAccountId: string;
3999
4016
  providerRepositoryId: string;
4000
4017
  };
4001
- reason: string;
4002
4018
  }[] | undefined;
4003
4019
  }>,
4004
4020
  z.ZodObject<{
@@ -4034,6 +4050,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4034
4050
  ]>;
4035
4051
  reason: z.ZodString;
4036
4052
  }, "strict", z.ZodTypeAny, {
4053
+ reason: string;
4037
4054
  repository: {
4038
4055
  provider: SourceProvider.GitHub;
4039
4056
  providerAccountId: string;
@@ -4043,8 +4060,8 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4043
4060
  providerAccountId: string;
4044
4061
  providerRepositoryId: string;
4045
4062
  };
4046
- reason: string;
4047
4063
  }, {
4064
+ reason: string;
4048
4065
  repository: {
4049
4066
  provider: SourceProvider.GitHub;
4050
4067
  providerAccountId: string;
@@ -4054,7 +4071,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4054
4071
  providerAccountId: string;
4055
4072
  providerRepositoryId: string;
4056
4073
  };
4057
- reason: string;
4058
4074
  }>, "many">>;
4059
4075
  pullRequests: z.ZodArray<z.ZodObject<{
4060
4076
  repository: z.ZodDiscriminatedUnion<"provider", [
@@ -4145,6 +4161,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4145
4161
  ]>;
4146
4162
  message: z.ZodString;
4147
4163
  }, "strict", z.ZodTypeAny, {
4164
+ message: string;
4148
4165
  repository: {
4149
4166
  provider: SourceProvider.GitHub;
4150
4167
  providerAccountId: string;
@@ -4154,10 +4171,10 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4154
4171
  providerAccountId: string;
4155
4172
  providerRepositoryId: string;
4156
4173
  };
4157
- message: string;
4158
4174
  branch?: string | undefined;
4159
4175
  commitSha?: string | undefined;
4160
4176
  }, {
4177
+ message: string;
4161
4178
  repository: {
4162
4179
  provider: SourceProvider.GitHub;
4163
4180
  providerAccountId: string;
@@ -4167,7 +4184,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4167
4184
  providerAccountId: string;
4168
4185
  providerRepositoryId: string;
4169
4186
  };
4170
- message: string;
4171
4187
  branch?: string | undefined;
4172
4188
  commitSha?: string | undefined;
4173
4189
  }>, "many">;
@@ -4187,6 +4203,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4187
4203
  commitSha?: string | undefined;
4188
4204
  }[];
4189
4205
  failures: {
4206
+ message: string;
4190
4207
  repository: {
4191
4208
  provider: SourceProvider.GitHub;
4192
4209
  providerAccountId: string;
@@ -4196,11 +4213,11 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4196
4213
  providerAccountId: string;
4197
4214
  providerRepositoryId: string;
4198
4215
  };
4199
- message: string;
4200
4216
  branch?: string | undefined;
4201
4217
  commitSha?: string | undefined;
4202
4218
  }[];
4203
4219
  noTests?: {
4220
+ reason: string;
4204
4221
  repository: {
4205
4222
  provider: SourceProvider.GitHub;
4206
4223
  providerAccountId: string;
@@ -4210,7 +4227,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4210
4227
  providerAccountId: string;
4211
4228
  providerRepositoryId: string;
4212
4229
  };
4213
- reason: string;
4214
4230
  }[] | undefined;
4215
4231
  }, {
4216
4232
  status: DeliveryStatus.Partial;
@@ -4228,6 +4244,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4228
4244
  commitSha?: string | undefined;
4229
4245
  }[];
4230
4246
  failures: {
4247
+ message: string;
4231
4248
  repository: {
4232
4249
  provider: SourceProvider.GitHub;
4233
4250
  providerAccountId: string;
@@ -4237,11 +4254,11 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4237
4254
  providerAccountId: string;
4238
4255
  providerRepositoryId: string;
4239
4256
  };
4240
- message: string;
4241
4257
  branch?: string | undefined;
4242
4258
  commitSha?: string | undefined;
4243
4259
  }[];
4244
4260
  noTests?: {
4261
+ reason: string;
4245
4262
  repository: {
4246
4263
  provider: SourceProvider.GitHub;
4247
4264
  providerAccountId: string;
@@ -4251,7 +4268,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4251
4268
  providerAccountId: string;
4252
4269
  providerRepositoryId: string;
4253
4270
  };
4254
- reason: string;
4255
4271
  }[] | undefined;
4256
4272
  }>,
4257
4273
  z.ZodObject<{
@@ -4288,6 +4304,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4288
4304
  ]>;
4289
4305
  reason: z.ZodString;
4290
4306
  }, "strict", z.ZodTypeAny, {
4307
+ reason: string;
4291
4308
  repository: {
4292
4309
  provider: SourceProvider.GitHub;
4293
4310
  providerAccountId: string;
@@ -4297,8 +4314,8 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4297
4314
  providerAccountId: string;
4298
4315
  providerRepositoryId: string;
4299
4316
  };
4300
- reason: string;
4301
4317
  }, {
4318
+ reason: string;
4302
4319
  repository: {
4303
4320
  provider: SourceProvider.GitHub;
4304
4321
  providerAccountId: string;
@@ -4308,7 +4325,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4308
4325
  providerAccountId: string;
4309
4326
  providerRepositoryId: string;
4310
4327
  };
4311
- reason: string;
4312
4328
  }>, "many">>;
4313
4329
  failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
4314
4330
  branch: z.ZodOptional<z.ZodString>;
@@ -4343,6 +4359,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4343
4359
  ]>;
4344
4360
  message: z.ZodString;
4345
4361
  }, "strict", z.ZodTypeAny, {
4362
+ message: string;
4346
4363
  repository: {
4347
4364
  provider: SourceProvider.GitHub;
4348
4365
  providerAccountId: string;
@@ -4352,10 +4369,10 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4352
4369
  providerAccountId: string;
4353
4370
  providerRepositoryId: string;
4354
4371
  };
4355
- message: string;
4356
4372
  branch?: string | undefined;
4357
4373
  commitSha?: string | undefined;
4358
4374
  }, {
4375
+ message: string;
4359
4376
  repository: {
4360
4377
  provider: SourceProvider.GitHub;
4361
4378
  providerAccountId: string;
@@ -4365,7 +4382,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4365
4382
  providerAccountId: string;
4366
4383
  providerRepositoryId: string;
4367
4384
  };
4368
- message: string;
4369
4385
  branch?: string | undefined;
4370
4386
  commitSha?: string | undefined;
4371
4387
  }>, "many">>;
@@ -4373,6 +4389,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4373
4389
  message: string;
4374
4390
  status: DeliveryStatus.Failed;
4375
4391
  noTests?: {
4392
+ reason: string;
4376
4393
  repository: {
4377
4394
  provider: SourceProvider.GitHub;
4378
4395
  providerAccountId: string;
@@ -4382,9 +4399,9 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4382
4399
  providerAccountId: string;
4383
4400
  providerRepositoryId: string;
4384
4401
  };
4385
- reason: string;
4386
4402
  }[] | undefined;
4387
4403
  failures?: {
4404
+ message: string;
4388
4405
  repository: {
4389
4406
  provider: SourceProvider.GitHub;
4390
4407
  providerAccountId: string;
@@ -4394,7 +4411,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4394
4411
  providerAccountId: string;
4395
4412
  providerRepositoryId: string;
4396
4413
  };
4397
- message: string;
4398
4414
  branch?: string | undefined;
4399
4415
  commitSha?: string | undefined;
4400
4416
  }[] | undefined;
@@ -4402,6 +4418,7 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4402
4418
  message: string;
4403
4419
  status: DeliveryStatus.Failed;
4404
4420
  noTests?: {
4421
+ reason: string;
4405
4422
  repository: {
4406
4423
  provider: SourceProvider.GitHub;
4407
4424
  providerAccountId: string;
@@ -4411,9 +4428,9 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4411
4428
  providerAccountId: string;
4412
4429
  providerRepositoryId: string;
4413
4430
  };
4414
- reason: string;
4415
4431
  }[] | undefined;
4416
4432
  failures?: {
4433
+ message: string;
4417
4434
  repository: {
4418
4435
  provider: SourceProvider.GitHub;
4419
4436
  providerAccountId: string;
@@ -4423,7 +4440,6 @@ declare const GeneratedTestDeliverySchema: z.ZodDiscriminatedUnion<"status", [
4423
4440
  providerAccountId: string;
4424
4441
  providerRepositoryId: string;
4425
4442
  };
4426
- message: string;
4427
4443
  branch?: string | undefined;
4428
4444
  commitSha?: string | undefined;
4429
4445
  }[] | undefined;
@@ -4516,6 +4532,7 @@ declare const GitHubWriteSchema: z.ZodDiscriminatedUnion<"kind", [
4516
4532
  branch: z.ZodString;
4517
4533
  commit: z.ZodString;
4518
4534
  }, "strict", z.ZodTypeAny, {
4535
+ kind: GitHubWriteKind.BranchPushed;
4519
4536
  repository: {
4520
4537
  provider: SourceProvider.GitHub;
4521
4538
  providerAccountId: string;
@@ -4525,10 +4542,10 @@ declare const GitHubWriteSchema: z.ZodDiscriminatedUnion<"kind", [
4525
4542
  providerAccountId: string;
4526
4543
  providerRepositoryId: string;
4527
4544
  };
4528
- kind: GitHubWriteKind.BranchPushed;
4529
4545
  branch: string;
4530
4546
  commit: string;
4531
4547
  }, {
4548
+ kind: GitHubWriteKind.BranchPushed;
4532
4549
  repository: {
4533
4550
  provider: SourceProvider.GitHub;
4534
4551
  providerAccountId: string;
@@ -4538,7 +4555,6 @@ declare const GitHubWriteSchema: z.ZodDiscriminatedUnion<"kind", [
4538
4555
  providerAccountId: string;
4539
4556
  providerRepositoryId: string;
4540
4557
  };
4541
- kind: GitHubWriteKind.BranchPushed;
4542
4558
  branch: string;
4543
4559
  commit: string;
4544
4560
  }>,
@@ -4579,6 +4595,7 @@ declare const GitHubWriteSchema: z.ZodDiscriminatedUnion<"kind", [
4579
4595
  branch: z.ZodString;
4580
4596
  }, "strict", z.ZodTypeAny, {
4581
4597
  number: string;
4598
+ kind: GitHubWriteKind.PullRequestOpened | GitHubWriteKind.PullRequestEdited;
4582
4599
  repository: {
4583
4600
  provider: SourceProvider.GitHub;
4584
4601
  providerAccountId: string;
@@ -4588,10 +4605,10 @@ declare const GitHubWriteSchema: z.ZodDiscriminatedUnion<"kind", [
4588
4605
  providerAccountId: string;
4589
4606
  providerRepositoryId: string;
4590
4607
  };
4591
- kind: GitHubWriteKind.PullRequestOpened | GitHubWriteKind.PullRequestEdited;
4592
4608
  branch: string;
4593
4609
  }, {
4594
4610
  number: string;
4611
+ kind: GitHubWriteKind.PullRequestOpened | GitHubWriteKind.PullRequestEdited;
4595
4612
  repository: {
4596
4613
  provider: SourceProvider.GitHub;
4597
4614
  providerAccountId: string;
@@ -4601,7 +4618,6 @@ declare const GitHubWriteSchema: z.ZodDiscriminatedUnion<"kind", [
4601
4618
  providerAccountId: string;
4602
4619
  providerRepositoryId: string;
4603
4620
  };
4604
- kind: GitHubWriteKind.PullRequestOpened | GitHubWriteKind.PullRequestEdited;
4605
4621
  branch: string;
4606
4622
  }>
4607
4623
  ]>;
@@ -4672,8 +4688,8 @@ declare const MergeConflictV1Schema: z.ZodObject<{
4672
4688
  providerAccountId: string;
4673
4689
  providerRepositoryId: string;
4674
4690
  };
4675
- revisions: number[];
4676
4691
  files: string[];
4692
+ revisions: number[];
4677
4693
  }, {
4678
4694
  repository: {
4679
4695
  provider: SourceProvider.GitHub;
@@ -4684,8 +4700,8 @@ declare const MergeConflictV1Schema: z.ZodObject<{
4684
4700
  providerAccountId: string;
4685
4701
  providerRepositoryId: string;
4686
4702
  };
4687
- revisions: number[];
4688
4703
  files: string[];
4704
+ revisions: number[];
4689
4705
  }>;
4690
4706
  export type MergeConflictV1 = z.infer<typeof MergeConflictV1Schema>;
4691
4707
  declare enum CommitLookup {
@@ -4694,6 +4710,48 @@ declare enum CommitLookup {
4694
4710
  /** The code host gave no answer. */
4695
4711
  Unknown = "unknown"
4696
4712
  }
4713
+ /** The Target environment keys the runner accepts, including those consumed by onboard. */
4714
+ export declare const TARGET_ENVIRONMENT_KEYS: readonly string[];
4715
+ declare const PersistentDataPolicySchema: z.ZodObject<{
4716
+ environmentId: z.ZodString;
4717
+ allowed: z.ZodBoolean;
4718
+ revision: z.ZodString;
4719
+ updatedAt: z.ZodString;
4720
+ updatedBy: z.ZodString;
4721
+ }, "strict", z.ZodTypeAny, {
4722
+ environmentId: string;
4723
+ allowed: boolean;
4724
+ revision: string;
4725
+ updatedAt: string;
4726
+ updatedBy: string;
4727
+ }, {
4728
+ environmentId: string;
4729
+ allowed: boolean;
4730
+ revision: string;
4731
+ updatedAt: string;
4732
+ updatedBy: string;
4733
+ }>;
4734
+ export type PersistentDataPolicy = z.infer<typeof PersistentDataPolicySchema>;
4735
+ declare enum PersistenceRefusal {
4736
+ /** The run has no selected Test Environment with an address. */
4737
+ NoEnvironment = "no_environment",
4738
+ /** The run's configuration did not record an allowed grant for that environment. */
4739
+ NoRecordedGrant = "no_recorded_grant",
4740
+ /** The app could not be reached, refused the job's identity, or answered something the engine cannot read. */
4741
+ Unavailable = "unavailable",
4742
+ /** The app answered for another environment or address, or the grant has another revision than the run recorded. */
4743
+ Changed = "changed",
4744
+ /** The environment's current policy does not permit test data to stay. */
4745
+ Denied = "denied",
4746
+ /** The request is outside the environment's address. */
4747
+ OutOfScope = "out_of_scope"
4748
+ }
4749
+ export type PersistenceDecision = {
4750
+ allowed: true;
4751
+ } | {
4752
+ allowed: false;
4753
+ refusal: PersistenceRefusal;
4754
+ };
4697
4755
  /** One pull request of the Change Set, as the session reads it. */
4698
4756
  export interface ChangeSetPullRequest {
4699
4757
  /** owner/repo. */
@@ -5008,6 +5066,27 @@ export declare function uploadV3Report(attempt: V3Attempt, input: {
5008
5066
  report: StagedTestbotReport;
5009
5067
  };
5010
5068
  }): Promise<void>;
5069
+ /**
5070
+ * Reads permission anew using this attempt's job identity: the policy, or why there is none. A local file or cached
5071
+ * Runtime Plan is a record, never a substitute for this read. An answer for another environment or address, a missing
5072
+ * policy, and a failed or unreadable read grant no persistence.
5073
+ */
5074
+ export declare function fetchV3PersistentDataPolicy(attempt: V3Attempt, environmentId: string, environmentAddress: string): Promise<{
5075
+ policy: PersistentDataPolicy;
5076
+ } | {
5077
+ refusal: PersistenceRefusal;
5078
+ }>;
5079
+ /**
5080
+ * Whether this attempt may keep test data at `requestUrl` now. One call binds the environment, its saved address and
5081
+ * the request: the fresh read must answer for the same address the request is scoped against. The run must have
5082
+ * recorded an allowed grant, and the current grant must be allowed at that same revision: a grant made, changed or
5083
+ * revoked after the run started does not apply.
5084
+ */
5085
+ export declare function currentV3PersistenceDecision(attempt: V3Attempt, environment: {
5086
+ environmentId?: string;
5087
+ environmentAddress?: string;
5088
+ persistentDataPolicy?: PersistentDataPolicy;
5089
+ }, requestUrl: string): Promise<PersistenceDecision>;
5011
5090
  /** Why the attempt ended without a report: a cancellation, or one of the contract's causes. */
5012
5091
  export type V3EndCause = AttemptEndReason.Cancelled | NoReportCause;
5013
5092
  /** What the main step learned about the attempt, which the post step turns into the attempt end. */