@holonograph/client 0.6.0 → 0.7.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 (3) hide show
  1. package/dist/index.d.ts +814 -319
  2. package/dist/index.js +421 -7
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1781,19 +1781,19 @@ declare const SubstrateSnapshotSchema: ZodObject<{
1781
1781
 
1782
1782
  columns: ZodRecord<ZodString, ZodString>;
1783
1783
  }, "strip", ZodTypeAny$1, {
1784
- provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
1784
+ provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
1785
1785
  timestamp: string;
1786
1786
  lensVersion: string;
1787
1787
  lightSourceIdentifier: string;
1788
- runMode: "production" | "test" | "eval" | "replay" | "local_dev";
1788
+ runMode: "local_dev" | "replay" | "production" | "test" | "eval";
1789
1789
  correlationId: string;
1790
1790
  columns: Record<string, string>;
1791
1791
  }, {
1792
- provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
1792
+ provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
1793
1793
  timestamp: string;
1794
1794
  lensVersion: string;
1795
1795
  lightSourceIdentifier: string;
1796
- runMode: "production" | "test" | "eval" | "replay" | "local_dev";
1796
+ runMode: "local_dev" | "replay" | "production" | "test" | "eval";
1797
1797
  correlationId: string;
1798
1798
  columns: Record<string, string>;
1799
1799
  }>;
@@ -1897,7 +1897,7 @@ declare const SurfaceContractSchema: ZodObject<{
1897
1897
  } | undefined;
1898
1898
  }>>;
1899
1899
  }, "strip", ZodTypeAny$1, {
1900
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
1900
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
1901
1901
  enabled: boolean;
1902
1902
  passThreshold: number;
1903
1903
  failureAction: "retry" | "flag" | "block";
@@ -1922,7 +1922,7 @@ declare const SurfaceContractSchema: ZodObject<{
1922
1922
  }, {
1923
1923
  passThreshold: number;
1924
1924
  failureAction: "retry" | "flag" | "block";
1925
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
1925
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
1926
1926
  retry?: {
1927
1927
  maxAttempts: number;
1928
1928
  augmentPrompt?: string | undefined;
@@ -1943,7 +1943,7 @@ declare const SurfaceContractSchema: ZodObject<{
1943
1943
  } | undefined;
1944
1944
  enabled?: boolean | undefined;
1945
1945
  }>, {
1946
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
1946
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
1947
1947
  enabled: boolean;
1948
1948
  passThreshold: number;
1949
1949
  failureAction: "retry" | "flag" | "block";
@@ -1968,7 +1968,7 @@ declare const SurfaceContractSchema: ZodObject<{
1968
1968
  }, {
1969
1969
  passThreshold: number;
1970
1970
  failureAction: "retry" | "flag" | "block";
1971
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
1971
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
1972
1972
  retry?: {
1973
1973
  maxAttempts: number;
1974
1974
  augmentPrompt?: string | undefined;
@@ -1989,7 +1989,7 @@ declare const SurfaceContractSchema: ZodObject<{
1989
1989
  } | undefined;
1990
1990
  enabled?: boolean | undefined;
1991
1991
  }>, {
1992
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
1992
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
1993
1993
  enabled: boolean;
1994
1994
  passThreshold: number;
1995
1995
  failureAction: "retry" | "flag" | "block";
@@ -2014,7 +2014,7 @@ declare const SurfaceContractSchema: ZodObject<{
2014
2014
  }, {
2015
2015
  passThreshold: number;
2016
2016
  failureAction: "retry" | "flag" | "block";
2017
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2017
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2018
2018
  retry?: {
2019
2019
  maxAttempts: number;
2020
2020
  augmentPrompt?: string | undefined;
@@ -2053,7 +2053,7 @@ declare const SurfaceContractSchema: ZodObject<{
2053
2053
  passThreshold?: number | undefined;
2054
2054
  rubricRef?: string | undefined;
2055
2055
  gatePolicy?: {
2056
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2056
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2057
2057
  enabled: boolean;
2058
2058
  passThreshold: number;
2059
2059
  failureAction: "retry" | "flag" | "block";
@@ -2089,7 +2089,7 @@ declare const SurfaceContractSchema: ZodObject<{
2089
2089
  gatePolicy?: {
2090
2090
  passThreshold: number;
2091
2091
  failureAction: "retry" | "flag" | "block";
2092
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2092
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2093
2093
  retry?: {
2094
2094
  maxAttempts: number;
2095
2095
  augmentPrompt?: string | undefined;
@@ -2132,18 +2132,18 @@ declare const SurfaceContractSchema: ZodObject<{
2132
2132
  control: "operator" | "vendor" | "platform" | "third-party";
2133
2133
  visibility: "transparent" | "announced" | "opaque";
2134
2134
  semantic: "deployment-state" | "diagnostic";
2135
- description?: string | undefined;
2136
- values?: string[] | undefined;
2137
2135
  status?: "active" | "forward-declared" | "deprecated" | undefined;
2136
+ values?: string[] | undefined;
2137
+ description?: string | undefined;
2138
2138
  emissionExpectation?: "always" | "conditional" | undefined;
2139
2139
  }, {
2140
2140
  id: string;
2141
2141
  control: "operator" | "vendor" | "platform" | "third-party";
2142
2142
  visibility: "transparent" | "announced" | "opaque";
2143
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2144
+ values?: string[] | undefined;
2143
2145
  description?: string | undefined;
2144
2146
  semantic?: "deployment-state" | "diagnostic" | undefined;
2145
- values?: string[] | undefined;
2146
- status?: "active" | "forward-declared" | "deprecated" | undefined;
2147
2147
  emissionExpectation?: "always" | "conditional" | undefined;
2148
2148
  }>, "many">>;
2149
2149
 
@@ -2249,8 +2249,8 @@ declare const SurfaceContractSchema: ZodObject<{
2249
2249
  } | undefined;
2250
2250
  }>, "many">>;
2251
2251
  }, "strip", ZodTypeAny$1, {
2252
- id: string;
2253
2252
  status: "active" | "forward-declared" | "deprecated";
2253
+ id: string;
2254
2254
  dimensions: {
2255
2255
  id: string;
2256
2256
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -2258,7 +2258,7 @@ declare const SurfaceContractSchema: ZodObject<{
2258
2258
  passThreshold?: number | undefined;
2259
2259
  rubricRef?: string | undefined;
2260
2260
  gatePolicy?: {
2261
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2261
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2262
2262
  enabled: boolean;
2263
2263
  passThreshold: number;
2264
2264
  failureAction: "retry" | "flag" | "block";
@@ -2292,9 +2292,9 @@ declare const SurfaceContractSchema: ZodObject<{
2292
2292
  control: "operator" | "vendor" | "platform" | "third-party";
2293
2293
  visibility: "transparent" | "announced" | "opaque";
2294
2294
  semantic: "deployment-state" | "diagnostic";
2295
- description?: string | undefined;
2296
- values?: string[] | undefined;
2297
2295
  status?: "active" | "forward-declared" | "deprecated" | undefined;
2296
+ values?: string[] | undefined;
2297
+ description?: string | undefined;
2298
2298
  emissionExpectation?: "always" | "conditional" | undefined;
2299
2299
  }[];
2300
2300
  removedDimensions: {
@@ -2332,7 +2332,7 @@ declare const SurfaceContractSchema: ZodObject<{
2332
2332
  gatePolicy?: {
2333
2333
  passThreshold: number;
2334
2334
  failureAction: "retry" | "flag" | "block";
2335
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2335
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2336
2336
  retry?: {
2337
2337
  maxAttempts: number;
2338
2338
  augmentPrompt?: string | undefined;
@@ -2358,17 +2358,17 @@ declare const SurfaceContractSchema: ZodObject<{
2358
2358
  kind: "enum";
2359
2359
  } | undefined;
2360
2360
  }[];
2361
- description?: string | undefined;
2362
2361
  status?: "active" | "forward-declared" | "deprecated" | undefined;
2362
+ description?: string | undefined;
2363
2363
  cohortTags?: string[] | undefined;
2364
2364
  substrateColumns?: {
2365
2365
  id: string;
2366
2366
  control: "operator" | "vendor" | "platform" | "third-party";
2367
2367
  visibility: "transparent" | "announced" | "opaque";
2368
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2369
+ values?: string[] | undefined;
2368
2370
  description?: string | undefined;
2369
2371
  semantic?: "deployment-state" | "diagnostic" | undefined;
2370
- values?: string[] | undefined;
2371
- status?: "active" | "forward-declared" | "deprecated" | undefined;
2372
2372
  emissionExpectation?: "always" | "conditional" | undefined;
2373
2373
  }[] | undefined;
2374
2374
  captureJudgedFailures?: boolean | undefined;
@@ -2403,11 +2403,11 @@ declare const SurfaceContractSchema: ZodObject<{
2403
2403
  }, "strip", ZodTypeAny$1, {
2404
2404
  surfaceId: string;
2405
2405
  lightSourceId: string | readonly string[];
2406
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2406
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2407
2407
  }, {
2408
2408
  surfaceId: string;
2409
2409
  lightSourceId: string | readonly string[];
2410
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2410
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2411
2411
  }>, "many">>;
2412
2412
 
2413
2413
  pricing: ZodOptional$1<ZodRecord<ZodString, ZodObject<{
@@ -2525,7 +2525,7 @@ declare const SurfaceContractSchema: ZodObject<{
2525
2525
  } | undefined;
2526
2526
  }>>;
2527
2527
  }, "strip", ZodTypeAny$1, {
2528
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2528
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2529
2529
  enabled: boolean;
2530
2530
  passThreshold: number;
2531
2531
  failureAction: "retry" | "flag" | "block";
@@ -2550,7 +2550,7 @@ declare const SurfaceContractSchema: ZodObject<{
2550
2550
  }, {
2551
2551
  passThreshold: number;
2552
2552
  failureAction: "retry" | "flag" | "block";
2553
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2553
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2554
2554
  retry?: {
2555
2555
  maxAttempts: number;
2556
2556
  augmentPrompt?: string | undefined;
@@ -2571,7 +2571,7 @@ declare const SurfaceContractSchema: ZodObject<{
2571
2571
  } | undefined;
2572
2572
  enabled?: boolean | undefined;
2573
2573
  }>, {
2574
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2574
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2575
2575
  enabled: boolean;
2576
2576
  passThreshold: number;
2577
2577
  failureAction: "retry" | "flag" | "block";
@@ -2596,7 +2596,7 @@ declare const SurfaceContractSchema: ZodObject<{
2596
2596
  }, {
2597
2597
  passThreshold: number;
2598
2598
  failureAction: "retry" | "flag" | "block";
2599
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2599
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2600
2600
  retry?: {
2601
2601
  maxAttempts: number;
2602
2602
  augmentPrompt?: string | undefined;
@@ -2617,7 +2617,7 @@ declare const SurfaceContractSchema: ZodObject<{
2617
2617
  } | undefined;
2618
2618
  enabled?: boolean | undefined;
2619
2619
  }>, {
2620
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2620
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2621
2621
  enabled: boolean;
2622
2622
  passThreshold: number;
2623
2623
  failureAction: "retry" | "flag" | "block";
@@ -2642,7 +2642,7 @@ declare const SurfaceContractSchema: ZodObject<{
2642
2642
  }, {
2643
2643
  passThreshold: number;
2644
2644
  failureAction: "retry" | "flag" | "block";
2645
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2645
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2646
2646
  retry?: {
2647
2647
  maxAttempts: number;
2648
2648
  augmentPrompt?: string | undefined;
@@ -2681,7 +2681,7 @@ declare const SurfaceContractSchema: ZodObject<{
2681
2681
  passThreshold?: number | undefined;
2682
2682
  rubricRef?: string | undefined;
2683
2683
  gatePolicy?: {
2684
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2684
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2685
2685
  enabled: boolean;
2686
2686
  passThreshold: number;
2687
2687
  failureAction: "retry" | "flag" | "block";
@@ -2717,7 +2717,7 @@ declare const SurfaceContractSchema: ZodObject<{
2717
2717
  gatePolicy?: {
2718
2718
  passThreshold: number;
2719
2719
  failureAction: "retry" | "flag" | "block";
2720
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2720
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2721
2721
  retry?: {
2722
2722
  maxAttempts: number;
2723
2723
  augmentPrompt?: string | undefined;
@@ -2746,7 +2746,7 @@ declare const SurfaceContractSchema: ZodObject<{
2746
2746
  }, "strip", ZodTypeAny$1, {
2747
2747
  surfaceId: string;
2748
2748
  lightSourceId: string | readonly string[];
2749
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2749
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2750
2750
  dimensions?: {
2751
2751
  id: string;
2752
2752
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -2754,7 +2754,7 @@ declare const SurfaceContractSchema: ZodObject<{
2754
2754
  passThreshold?: number | undefined;
2755
2755
  rubricRef?: string | undefined;
2756
2756
  gatePolicy?: {
2757
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2757
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2758
2758
  enabled: boolean;
2759
2759
  passThreshold: number;
2760
2760
  failureAction: "retry" | "flag" | "block";
@@ -2785,7 +2785,7 @@ declare const SurfaceContractSchema: ZodObject<{
2785
2785
  }, {
2786
2786
  surfaceId: string;
2787
2787
  lightSourceId: string | readonly string[];
2788
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2788
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2789
2789
  dimensions?: {
2790
2790
  id: string;
2791
2791
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -2795,7 +2795,7 @@ declare const SurfaceContractSchema: ZodObject<{
2795
2795
  gatePolicy?: {
2796
2796
  passThreshold: number;
2797
2797
  failureAction: "retry" | "flag" | "block";
2798
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2798
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2799
2799
  retry?: {
2800
2800
  maxAttempts: number;
2801
2801
  augmentPrompt?: string | undefined;
@@ -2915,7 +2915,7 @@ declare const SurfaceContractSchema: ZodObject<{
2915
2915
  } | undefined;
2916
2916
  }>>;
2917
2917
  }, "strip", ZodTypeAny$1, {
2918
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2918
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2919
2919
  enabled: boolean;
2920
2920
  passThreshold: number;
2921
2921
  failureAction: "retry" | "flag" | "block";
@@ -2940,7 +2940,7 @@ declare const SurfaceContractSchema: ZodObject<{
2940
2940
  }, {
2941
2941
  passThreshold: number;
2942
2942
  failureAction: "retry" | "flag" | "block";
2943
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2943
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2944
2944
  retry?: {
2945
2945
  maxAttempts: number;
2946
2946
  augmentPrompt?: string | undefined;
@@ -2961,7 +2961,7 @@ declare const SurfaceContractSchema: ZodObject<{
2961
2961
  } | undefined;
2962
2962
  enabled?: boolean | undefined;
2963
2963
  }>, {
2964
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2964
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2965
2965
  enabled: boolean;
2966
2966
  passThreshold: number;
2967
2967
  failureAction: "retry" | "flag" | "block";
@@ -2986,7 +2986,7 @@ declare const SurfaceContractSchema: ZodObject<{
2986
2986
  }, {
2987
2987
  passThreshold: number;
2988
2988
  failureAction: "retry" | "flag" | "block";
2989
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2989
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2990
2990
  retry?: {
2991
2991
  maxAttempts: number;
2992
2992
  augmentPrompt?: string | undefined;
@@ -3007,7 +3007,7 @@ declare const SurfaceContractSchema: ZodObject<{
3007
3007
  } | undefined;
3008
3008
  enabled?: boolean | undefined;
3009
3009
  }>, {
3010
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3010
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3011
3011
  enabled: boolean;
3012
3012
  passThreshold: number;
3013
3013
  failureAction: "retry" | "flag" | "block";
@@ -3032,7 +3032,7 @@ declare const SurfaceContractSchema: ZodObject<{
3032
3032
  }, {
3033
3033
  passThreshold: number;
3034
3034
  failureAction: "retry" | "flag" | "block";
3035
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3035
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3036
3036
  retry?: {
3037
3037
  maxAttempts: number;
3038
3038
  augmentPrompt?: string | undefined;
@@ -3071,7 +3071,7 @@ declare const SurfaceContractSchema: ZodObject<{
3071
3071
  passThreshold?: number | undefined;
3072
3072
  rubricRef?: string | undefined;
3073
3073
  gatePolicy?: {
3074
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3074
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3075
3075
  enabled: boolean;
3076
3076
  passThreshold: number;
3077
3077
  failureAction: "retry" | "flag" | "block";
@@ -3107,7 +3107,7 @@ declare const SurfaceContractSchema: ZodObject<{
3107
3107
  gatePolicy?: {
3108
3108
  passThreshold: number;
3109
3109
  failureAction: "retry" | "flag" | "block";
3110
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3110
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3111
3111
  retry?: {
3112
3112
  maxAttempts: number;
3113
3113
  augmentPrompt?: string | undefined;
@@ -3136,7 +3136,7 @@ declare const SurfaceContractSchema: ZodObject<{
3136
3136
  }, "strip", ZodTypeAny$1, {
3137
3137
  surfaceId: string;
3138
3138
  lightSourceId: string | readonly string[];
3139
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3139
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3140
3140
  dimensions?: {
3141
3141
  id: string;
3142
3142
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3144,7 +3144,7 @@ declare const SurfaceContractSchema: ZodObject<{
3144
3144
  passThreshold?: number | undefined;
3145
3145
  rubricRef?: string | undefined;
3146
3146
  gatePolicy?: {
3147
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3147
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3148
3148
  enabled: boolean;
3149
3149
  passThreshold: number;
3150
3150
  failureAction: "retry" | "flag" | "block";
@@ -3175,7 +3175,7 @@ declare const SurfaceContractSchema: ZodObject<{
3175
3175
  }, {
3176
3176
  surfaceId: string;
3177
3177
  lightSourceId: string | readonly string[];
3178
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3178
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3179
3179
  dimensions?: {
3180
3180
  id: string;
3181
3181
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3185,7 +3185,7 @@ declare const SurfaceContractSchema: ZodObject<{
3185
3185
  gatePolicy?: {
3186
3186
  passThreshold: number;
3187
3187
  failureAction: "retry" | "flag" | "block";
3188
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3188
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3189
3189
  retry?: {
3190
3190
  maxAttempts: number;
3191
3191
  augmentPrompt?: string | undefined;
@@ -3305,7 +3305,7 @@ declare const SurfaceContractSchema: ZodObject<{
3305
3305
  } | undefined;
3306
3306
  }>>;
3307
3307
  }, "strip", ZodTypeAny$1, {
3308
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3308
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3309
3309
  enabled: boolean;
3310
3310
  passThreshold: number;
3311
3311
  failureAction: "retry" | "flag" | "block";
@@ -3330,7 +3330,7 @@ declare const SurfaceContractSchema: ZodObject<{
3330
3330
  }, {
3331
3331
  passThreshold: number;
3332
3332
  failureAction: "retry" | "flag" | "block";
3333
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3333
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3334
3334
  retry?: {
3335
3335
  maxAttempts: number;
3336
3336
  augmentPrompt?: string | undefined;
@@ -3351,7 +3351,7 @@ declare const SurfaceContractSchema: ZodObject<{
3351
3351
  } | undefined;
3352
3352
  enabled?: boolean | undefined;
3353
3353
  }>, {
3354
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3354
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3355
3355
  enabled: boolean;
3356
3356
  passThreshold: number;
3357
3357
  failureAction: "retry" | "flag" | "block";
@@ -3376,7 +3376,7 @@ declare const SurfaceContractSchema: ZodObject<{
3376
3376
  }, {
3377
3377
  passThreshold: number;
3378
3378
  failureAction: "retry" | "flag" | "block";
3379
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3379
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3380
3380
  retry?: {
3381
3381
  maxAttempts: number;
3382
3382
  augmentPrompt?: string | undefined;
@@ -3397,7 +3397,7 @@ declare const SurfaceContractSchema: ZodObject<{
3397
3397
  } | undefined;
3398
3398
  enabled?: boolean | undefined;
3399
3399
  }>, {
3400
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3400
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3401
3401
  enabled: boolean;
3402
3402
  passThreshold: number;
3403
3403
  failureAction: "retry" | "flag" | "block";
@@ -3422,7 +3422,7 @@ declare const SurfaceContractSchema: ZodObject<{
3422
3422
  }, {
3423
3423
  passThreshold: number;
3424
3424
  failureAction: "retry" | "flag" | "block";
3425
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3425
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3426
3426
  retry?: {
3427
3427
  maxAttempts: number;
3428
3428
  augmentPrompt?: string | undefined;
@@ -3461,7 +3461,7 @@ declare const SurfaceContractSchema: ZodObject<{
3461
3461
  passThreshold?: number | undefined;
3462
3462
  rubricRef?: string | undefined;
3463
3463
  gatePolicy?: {
3464
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3464
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3465
3465
  enabled: boolean;
3466
3466
  passThreshold: number;
3467
3467
  failureAction: "retry" | "flag" | "block";
@@ -3497,7 +3497,7 @@ declare const SurfaceContractSchema: ZodObject<{
3497
3497
  gatePolicy?: {
3498
3498
  passThreshold: number;
3499
3499
  failureAction: "retry" | "flag" | "block";
3500
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3500
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3501
3501
  retry?: {
3502
3502
  maxAttempts: number;
3503
3503
  augmentPrompt?: string | undefined;
@@ -3526,7 +3526,7 @@ declare const SurfaceContractSchema: ZodObject<{
3526
3526
  }, "strip", ZodTypeAny$1, {
3527
3527
  surfaceId: string;
3528
3528
  lightSourceId: string | readonly string[];
3529
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3529
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3530
3530
  dimensions?: {
3531
3531
  id: string;
3532
3532
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3534,7 +3534,7 @@ declare const SurfaceContractSchema: ZodObject<{
3534
3534
  passThreshold?: number | undefined;
3535
3535
  rubricRef?: string | undefined;
3536
3536
  gatePolicy?: {
3537
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3537
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3538
3538
  enabled: boolean;
3539
3539
  passThreshold: number;
3540
3540
  failureAction: "retry" | "flag" | "block";
@@ -3565,7 +3565,7 @@ declare const SurfaceContractSchema: ZodObject<{
3565
3565
  }, {
3566
3566
  surfaceId: string;
3567
3567
  lightSourceId: string | readonly string[];
3568
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3568
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3569
3569
  dimensions?: {
3570
3570
  id: string;
3571
3571
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3575,7 +3575,7 @@ declare const SurfaceContractSchema: ZodObject<{
3575
3575
  gatePolicy?: {
3576
3576
  passThreshold: number;
3577
3577
  failureAction: "retry" | "flag" | "block";
3578
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3578
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3579
3579
  retry?: {
3580
3580
  maxAttempts: number;
3581
3581
  augmentPrompt?: string | undefined;
@@ -3695,7 +3695,7 @@ declare const SurfaceContractSchema: ZodObject<{
3695
3695
  } | undefined;
3696
3696
  }>>;
3697
3697
  }, "strip", ZodTypeAny$1, {
3698
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3698
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3699
3699
  enabled: boolean;
3700
3700
  passThreshold: number;
3701
3701
  failureAction: "retry" | "flag" | "block";
@@ -3720,7 +3720,7 @@ declare const SurfaceContractSchema: ZodObject<{
3720
3720
  }, {
3721
3721
  passThreshold: number;
3722
3722
  failureAction: "retry" | "flag" | "block";
3723
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3723
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3724
3724
  retry?: {
3725
3725
  maxAttempts: number;
3726
3726
  augmentPrompt?: string | undefined;
@@ -3741,7 +3741,7 @@ declare const SurfaceContractSchema: ZodObject<{
3741
3741
  } | undefined;
3742
3742
  enabled?: boolean | undefined;
3743
3743
  }>, {
3744
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3744
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3745
3745
  enabled: boolean;
3746
3746
  passThreshold: number;
3747
3747
  failureAction: "retry" | "flag" | "block";
@@ -3766,7 +3766,7 @@ declare const SurfaceContractSchema: ZodObject<{
3766
3766
  }, {
3767
3767
  passThreshold: number;
3768
3768
  failureAction: "retry" | "flag" | "block";
3769
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3769
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3770
3770
  retry?: {
3771
3771
  maxAttempts: number;
3772
3772
  augmentPrompt?: string | undefined;
@@ -3787,7 +3787,7 @@ declare const SurfaceContractSchema: ZodObject<{
3787
3787
  } | undefined;
3788
3788
  enabled?: boolean | undefined;
3789
3789
  }>, {
3790
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3790
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3791
3791
  enabled: boolean;
3792
3792
  passThreshold: number;
3793
3793
  failureAction: "retry" | "flag" | "block";
@@ -3812,7 +3812,7 @@ declare const SurfaceContractSchema: ZodObject<{
3812
3812
  }, {
3813
3813
  passThreshold: number;
3814
3814
  failureAction: "retry" | "flag" | "block";
3815
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3815
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3816
3816
  retry?: {
3817
3817
  maxAttempts: number;
3818
3818
  augmentPrompt?: string | undefined;
@@ -3851,7 +3851,7 @@ declare const SurfaceContractSchema: ZodObject<{
3851
3851
  passThreshold?: number | undefined;
3852
3852
  rubricRef?: string | undefined;
3853
3853
  gatePolicy?: {
3854
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3854
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3855
3855
  enabled: boolean;
3856
3856
  passThreshold: number;
3857
3857
  failureAction: "retry" | "flag" | "block";
@@ -3887,7 +3887,7 @@ declare const SurfaceContractSchema: ZodObject<{
3887
3887
  gatePolicy?: {
3888
3888
  passThreshold: number;
3889
3889
  failureAction: "retry" | "flag" | "block";
3890
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3890
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3891
3891
  retry?: {
3892
3892
  maxAttempts: number;
3893
3893
  augmentPrompt?: string | undefined;
@@ -3916,7 +3916,7 @@ declare const SurfaceContractSchema: ZodObject<{
3916
3916
  }, "strip", ZodTypeAny$1, {
3917
3917
  surfaceId: string;
3918
3918
  lightSourceId: string | readonly string[];
3919
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3919
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3920
3920
  dimensions?: {
3921
3921
  id: string;
3922
3922
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3924,7 +3924,7 @@ declare const SurfaceContractSchema: ZodObject<{
3924
3924
  passThreshold?: number | undefined;
3925
3925
  rubricRef?: string | undefined;
3926
3926
  gatePolicy?: {
3927
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3927
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3928
3928
  enabled: boolean;
3929
3929
  passThreshold: number;
3930
3930
  failureAction: "retry" | "flag" | "block";
@@ -3955,7 +3955,7 @@ declare const SurfaceContractSchema: ZodObject<{
3955
3955
  }, {
3956
3956
  surfaceId: string;
3957
3957
  lightSourceId: string | readonly string[];
3958
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3958
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3959
3959
  dimensions?: {
3960
3960
  id: string;
3961
3961
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3965,7 +3965,7 @@ declare const SurfaceContractSchema: ZodObject<{
3965
3965
  gatePolicy?: {
3966
3966
  passThreshold: number;
3967
3967
  failureAction: "retry" | "flag" | "block";
3968
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3968
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3969
3969
  retry?: {
3970
3970
  maxAttempts: number;
3971
3971
  augmentPrompt?: string | undefined;
@@ -4085,7 +4085,7 @@ declare const SurfaceContractSchema: ZodObject<{
4085
4085
  } | undefined;
4086
4086
  }>>;
4087
4087
  }, "strip", ZodTypeAny$1, {
4088
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4088
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4089
4089
  enabled: boolean;
4090
4090
  passThreshold: number;
4091
4091
  failureAction: "retry" | "flag" | "block";
@@ -4110,7 +4110,7 @@ declare const SurfaceContractSchema: ZodObject<{
4110
4110
  }, {
4111
4111
  passThreshold: number;
4112
4112
  failureAction: "retry" | "flag" | "block";
4113
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4113
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4114
4114
  retry?: {
4115
4115
  maxAttempts: number;
4116
4116
  augmentPrompt?: string | undefined;
@@ -4131,7 +4131,7 @@ declare const SurfaceContractSchema: ZodObject<{
4131
4131
  } | undefined;
4132
4132
  enabled?: boolean | undefined;
4133
4133
  }>, {
4134
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4134
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4135
4135
  enabled: boolean;
4136
4136
  passThreshold: number;
4137
4137
  failureAction: "retry" | "flag" | "block";
@@ -4156,7 +4156,7 @@ declare const SurfaceContractSchema: ZodObject<{
4156
4156
  }, {
4157
4157
  passThreshold: number;
4158
4158
  failureAction: "retry" | "flag" | "block";
4159
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4159
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4160
4160
  retry?: {
4161
4161
  maxAttempts: number;
4162
4162
  augmentPrompt?: string | undefined;
@@ -4177,7 +4177,7 @@ declare const SurfaceContractSchema: ZodObject<{
4177
4177
  } | undefined;
4178
4178
  enabled?: boolean | undefined;
4179
4179
  }>, {
4180
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4180
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4181
4181
  enabled: boolean;
4182
4182
  passThreshold: number;
4183
4183
  failureAction: "retry" | "flag" | "block";
@@ -4202,7 +4202,7 @@ declare const SurfaceContractSchema: ZodObject<{
4202
4202
  }, {
4203
4203
  passThreshold: number;
4204
4204
  failureAction: "retry" | "flag" | "block";
4205
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4205
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4206
4206
  retry?: {
4207
4207
  maxAttempts: number;
4208
4208
  augmentPrompt?: string | undefined;
@@ -4241,7 +4241,7 @@ declare const SurfaceContractSchema: ZodObject<{
4241
4241
  passThreshold?: number | undefined;
4242
4242
  rubricRef?: string | undefined;
4243
4243
  gatePolicy?: {
4244
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4244
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4245
4245
  enabled: boolean;
4246
4246
  passThreshold: number;
4247
4247
  failureAction: "retry" | "flag" | "block";
@@ -4277,7 +4277,7 @@ declare const SurfaceContractSchema: ZodObject<{
4277
4277
  gatePolicy?: {
4278
4278
  passThreshold: number;
4279
4279
  failureAction: "retry" | "flag" | "block";
4280
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4280
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4281
4281
  retry?: {
4282
4282
  maxAttempts: number;
4283
4283
  augmentPrompt?: string | undefined;
@@ -4306,7 +4306,7 @@ declare const SurfaceContractSchema: ZodObject<{
4306
4306
  }, "strip", ZodTypeAny$1, {
4307
4307
  surfaceId: string;
4308
4308
  lightSourceId: string | readonly string[];
4309
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4309
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4310
4310
  dimensions?: {
4311
4311
  id: string;
4312
4312
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4314,7 +4314,7 @@ declare const SurfaceContractSchema: ZodObject<{
4314
4314
  passThreshold?: number | undefined;
4315
4315
  rubricRef?: string | undefined;
4316
4316
  gatePolicy?: {
4317
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4317
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4318
4318
  enabled: boolean;
4319
4319
  passThreshold: number;
4320
4320
  failureAction: "retry" | "flag" | "block";
@@ -4345,7 +4345,7 @@ declare const SurfaceContractSchema: ZodObject<{
4345
4345
  }, {
4346
4346
  surfaceId: string;
4347
4347
  lightSourceId: string | readonly string[];
4348
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4348
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4349
4349
  dimensions?: {
4350
4350
  id: string;
4351
4351
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4355,7 +4355,7 @@ declare const SurfaceContractSchema: ZodObject<{
4355
4355
  gatePolicy?: {
4356
4356
  passThreshold: number;
4357
4357
  failureAction: "retry" | "flag" | "block";
4358
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4358
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4359
4359
  retry?: {
4360
4360
  maxAttempts: number;
4361
4361
  augmentPrompt?: string | undefined;
@@ -4386,7 +4386,7 @@ declare const SurfaceContractSchema: ZodObject<{
4386
4386
  skillDrafting: {
4387
4387
  surfaceId: string;
4388
4388
  lightSourceId: string | readonly string[];
4389
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4389
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4390
4390
  dimensions?: {
4391
4391
  id: string;
4392
4392
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4394,7 +4394,7 @@ declare const SurfaceContractSchema: ZodObject<{
4394
4394
  passThreshold?: number | undefined;
4395
4395
  rubricRef?: string | undefined;
4396
4396
  gatePolicy?: {
4397
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4397
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4398
4398
  enabled: boolean;
4399
4399
  passThreshold: number;
4400
4400
  failureAction: "retry" | "flag" | "block";
@@ -4426,7 +4426,7 @@ declare const SurfaceContractSchema: ZodObject<{
4426
4426
  lessonDrafting?: {
4427
4427
  surfaceId: string;
4428
4428
  lightSourceId: string | readonly string[];
4429
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4429
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4430
4430
  dimensions?: {
4431
4431
  id: string;
4432
4432
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4434,7 +4434,7 @@ declare const SurfaceContractSchema: ZodObject<{
4434
4434
  passThreshold?: number | undefined;
4435
4435
  rubricRef?: string | undefined;
4436
4436
  gatePolicy?: {
4437
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4437
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4438
4438
  enabled: boolean;
4439
4439
  passThreshold: number;
4440
4440
  failureAction: "retry" | "flag" | "block";
@@ -4466,7 +4466,7 @@ declare const SurfaceContractSchema: ZodObject<{
4466
4466
  fixtureGeneration?: {
4467
4467
  surfaceId: string;
4468
4468
  lightSourceId: string | readonly string[];
4469
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4469
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4470
4470
  dimensions?: {
4471
4471
  id: string;
4472
4472
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4474,7 +4474,7 @@ declare const SurfaceContractSchema: ZodObject<{
4474
4474
  passThreshold?: number | undefined;
4475
4475
  rubricRef?: string | undefined;
4476
4476
  gatePolicy?: {
4477
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4477
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4478
4478
  enabled: boolean;
4479
4479
  passThreshold: number;
4480
4480
  failureAction: "retry" | "flag" | "block";
@@ -4506,7 +4506,7 @@ declare const SurfaceContractSchema: ZodObject<{
4506
4506
  codeChangeRecommendationDrafting?: {
4507
4507
  surfaceId: string;
4508
4508
  lightSourceId: string | readonly string[];
4509
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4509
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4510
4510
  dimensions?: {
4511
4511
  id: string;
4512
4512
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4514,7 +4514,7 @@ declare const SurfaceContractSchema: ZodObject<{
4514
4514
  passThreshold?: number | undefined;
4515
4515
  rubricRef?: string | undefined;
4516
4516
  gatePolicy?: {
4517
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4517
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4518
4518
  enabled: boolean;
4519
4519
  passThreshold: number;
4520
4520
  failureAction: "retry" | "flag" | "block";
@@ -4546,7 +4546,7 @@ declare const SurfaceContractSchema: ZodObject<{
4546
4546
  blastRadiusJudging?: {
4547
4547
  surfaceId: string;
4548
4548
  lightSourceId: string | readonly string[];
4549
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4549
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4550
4550
  dimensions?: {
4551
4551
  id: string;
4552
4552
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4554,7 +4554,7 @@ declare const SurfaceContractSchema: ZodObject<{
4554
4554
  passThreshold?: number | undefined;
4555
4555
  rubricRef?: string | undefined;
4556
4556
  gatePolicy?: {
4557
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4557
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4558
4558
  enabled: boolean;
4559
4559
  passThreshold: number;
4560
4560
  failureAction: "retry" | "flag" | "block";
@@ -4587,7 +4587,7 @@ declare const SurfaceContractSchema: ZodObject<{
4587
4587
  skillDrafting: {
4588
4588
  surfaceId: string;
4589
4589
  lightSourceId: string | readonly string[];
4590
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4590
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4591
4591
  dimensions?: {
4592
4592
  id: string;
4593
4593
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4597,7 +4597,7 @@ declare const SurfaceContractSchema: ZodObject<{
4597
4597
  gatePolicy?: {
4598
4598
  passThreshold: number;
4599
4599
  failureAction: "retry" | "flag" | "block";
4600
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4600
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4601
4601
  retry?: {
4602
4602
  maxAttempts: number;
4603
4603
  augmentPrompt?: string | undefined;
@@ -4627,7 +4627,7 @@ declare const SurfaceContractSchema: ZodObject<{
4627
4627
  lessonDrafting?: {
4628
4628
  surfaceId: string;
4629
4629
  lightSourceId: string | readonly string[];
4630
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4630
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4631
4631
  dimensions?: {
4632
4632
  id: string;
4633
4633
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4637,7 +4637,7 @@ declare const SurfaceContractSchema: ZodObject<{
4637
4637
  gatePolicy?: {
4638
4638
  passThreshold: number;
4639
4639
  failureAction: "retry" | "flag" | "block";
4640
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4640
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4641
4641
  retry?: {
4642
4642
  maxAttempts: number;
4643
4643
  augmentPrompt?: string | undefined;
@@ -4667,7 +4667,7 @@ declare const SurfaceContractSchema: ZodObject<{
4667
4667
  fixtureGeneration?: {
4668
4668
  surfaceId: string;
4669
4669
  lightSourceId: string | readonly string[];
4670
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4670
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4671
4671
  dimensions?: {
4672
4672
  id: string;
4673
4673
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4677,7 +4677,7 @@ declare const SurfaceContractSchema: ZodObject<{
4677
4677
  gatePolicy?: {
4678
4678
  passThreshold: number;
4679
4679
  failureAction: "retry" | "flag" | "block";
4680
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4680
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4681
4681
  retry?: {
4682
4682
  maxAttempts: number;
4683
4683
  augmentPrompt?: string | undefined;
@@ -4707,7 +4707,7 @@ declare const SurfaceContractSchema: ZodObject<{
4707
4707
  codeChangeRecommendationDrafting?: {
4708
4708
  surfaceId: string;
4709
4709
  lightSourceId: string | readonly string[];
4710
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4710
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4711
4711
  dimensions?: {
4712
4712
  id: string;
4713
4713
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4717,7 +4717,7 @@ declare const SurfaceContractSchema: ZodObject<{
4717
4717
  gatePolicy?: {
4718
4718
  passThreshold: number;
4719
4719
  failureAction: "retry" | "flag" | "block";
4720
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4720
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4721
4721
  retry?: {
4722
4722
  maxAttempts: number;
4723
4723
  augmentPrompt?: string | undefined;
@@ -4747,7 +4747,7 @@ declare const SurfaceContractSchema: ZodObject<{
4747
4747
  blastRadiusJudging?: {
4748
4748
  surfaceId: string;
4749
4749
  lightSourceId: string | readonly string[];
4750
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4750
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4751
4751
  dimensions?: {
4752
4752
  id: string;
4753
4753
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4757,7 +4757,7 @@ declare const SurfaceContractSchema: ZodObject<{
4757
4757
  gatePolicy?: {
4758
4758
  passThreshold: number;
4759
4759
  failureAction: "retry" | "flag" | "block";
4760
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4760
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4761
4761
  retry?: {
4762
4762
  maxAttempts: number;
4763
4763
  augmentPrompt?: string | undefined;
@@ -4788,8 +4788,8 @@ declare const SurfaceContractSchema: ZodObject<{
4788
4788
  }, "strip", ZodTypeAny$1, {
4789
4789
  agentId: string;
4790
4790
  surfaces: {
4791
- id: string;
4792
4791
  status: "active" | "forward-declared" | "deprecated";
4792
+ id: string;
4793
4793
  dimensions: {
4794
4794
  id: string;
4795
4795
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4797,7 +4797,7 @@ declare const SurfaceContractSchema: ZodObject<{
4797
4797
  passThreshold?: number | undefined;
4798
4798
  rubricRef?: string | undefined;
4799
4799
  gatePolicy?: {
4800
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4800
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4801
4801
  enabled: boolean;
4802
4802
  passThreshold: number;
4803
4803
  failureAction: "retry" | "flag" | "block";
@@ -4831,9 +4831,9 @@ declare const SurfaceContractSchema: ZodObject<{
4831
4831
  control: "operator" | "vendor" | "platform" | "third-party";
4832
4832
  visibility: "transparent" | "announced" | "opaque";
4833
4833
  semantic: "deployment-state" | "diagnostic";
4834
- description?: string | undefined;
4835
- values?: string[] | undefined;
4836
4834
  status?: "active" | "forward-declared" | "deprecated" | undefined;
4835
+ values?: string[] | undefined;
4836
+ description?: string | undefined;
4837
4837
  emissionExpectation?: "always" | "conditional" | undefined;
4838
4838
  }[];
4839
4839
  removedDimensions: {
@@ -4865,7 +4865,7 @@ declare const SurfaceContractSchema: ZodObject<{
4865
4865
  routings?: {
4866
4866
  surfaceId: string;
4867
4867
  lightSourceId: string | readonly string[];
4868
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4868
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4869
4869
  }[] | undefined;
4870
4870
  pricing?: Record<string, {
4871
4871
  perMillionInput: number;
@@ -4877,7 +4877,7 @@ declare const SurfaceContractSchema: ZodObject<{
4877
4877
  skillDrafting: {
4878
4878
  surfaceId: string;
4879
4879
  lightSourceId: string | readonly string[];
4880
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4880
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4881
4881
  dimensions?: {
4882
4882
  id: string;
4883
4883
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4885,7 +4885,7 @@ declare const SurfaceContractSchema: ZodObject<{
4885
4885
  passThreshold?: number | undefined;
4886
4886
  rubricRef?: string | undefined;
4887
4887
  gatePolicy?: {
4888
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4888
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4889
4889
  enabled: boolean;
4890
4890
  passThreshold: number;
4891
4891
  failureAction: "retry" | "flag" | "block";
@@ -4917,7 +4917,7 @@ declare const SurfaceContractSchema: ZodObject<{
4917
4917
  lessonDrafting?: {
4918
4918
  surfaceId: string;
4919
4919
  lightSourceId: string | readonly string[];
4920
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4920
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4921
4921
  dimensions?: {
4922
4922
  id: string;
4923
4923
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4925,7 +4925,7 @@ declare const SurfaceContractSchema: ZodObject<{
4925
4925
  passThreshold?: number | undefined;
4926
4926
  rubricRef?: string | undefined;
4927
4927
  gatePolicy?: {
4928
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4928
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4929
4929
  enabled: boolean;
4930
4930
  passThreshold: number;
4931
4931
  failureAction: "retry" | "flag" | "block";
@@ -4957,7 +4957,7 @@ declare const SurfaceContractSchema: ZodObject<{
4957
4957
  fixtureGeneration?: {
4958
4958
  surfaceId: string;
4959
4959
  lightSourceId: string | readonly string[];
4960
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4960
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4961
4961
  dimensions?: {
4962
4962
  id: string;
4963
4963
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4965,7 +4965,7 @@ declare const SurfaceContractSchema: ZodObject<{
4965
4965
  passThreshold?: number | undefined;
4966
4966
  rubricRef?: string | undefined;
4967
4967
  gatePolicy?: {
4968
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4968
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4969
4969
  enabled: boolean;
4970
4970
  passThreshold: number;
4971
4971
  failureAction: "retry" | "flag" | "block";
@@ -4997,7 +4997,7 @@ declare const SurfaceContractSchema: ZodObject<{
4997
4997
  codeChangeRecommendationDrafting?: {
4998
4998
  surfaceId: string;
4999
4999
  lightSourceId: string | readonly string[];
5000
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5000
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5001
5001
  dimensions?: {
5002
5002
  id: string;
5003
5003
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5005,7 +5005,7 @@ declare const SurfaceContractSchema: ZodObject<{
5005
5005
  passThreshold?: number | undefined;
5006
5006
  rubricRef?: string | undefined;
5007
5007
  gatePolicy?: {
5008
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
5008
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
5009
5009
  enabled: boolean;
5010
5010
  passThreshold: number;
5011
5011
  failureAction: "retry" | "flag" | "block";
@@ -5037,7 +5037,7 @@ declare const SurfaceContractSchema: ZodObject<{
5037
5037
  blastRadiusJudging?: {
5038
5038
  surfaceId: string;
5039
5039
  lightSourceId: string | readonly string[];
5040
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5040
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5041
5041
  dimensions?: {
5042
5042
  id: string;
5043
5043
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5045,7 +5045,7 @@ declare const SurfaceContractSchema: ZodObject<{
5045
5045
  passThreshold?: number | undefined;
5046
5046
  rubricRef?: string | undefined;
5047
5047
  gatePolicy?: {
5048
- activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
5048
+ activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
5049
5049
  enabled: boolean;
5050
5050
  passThreshold: number;
5051
5051
  failureAction: "retry" | "flag" | "block";
@@ -5088,7 +5088,7 @@ declare const SurfaceContractSchema: ZodObject<{
5088
5088
  gatePolicy?: {
5089
5089
  passThreshold: number;
5090
5090
  failureAction: "retry" | "flag" | "block";
5091
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5091
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5092
5092
  retry?: {
5093
5093
  maxAttempts: number;
5094
5094
  augmentPrompt?: string | undefined;
@@ -5114,17 +5114,17 @@ declare const SurfaceContractSchema: ZodObject<{
5114
5114
  kind: "enum";
5115
5115
  } | undefined;
5116
5116
  }[];
5117
- description?: string | undefined;
5118
5117
  status?: "active" | "forward-declared" | "deprecated" | undefined;
5118
+ description?: string | undefined;
5119
5119
  cohortTags?: string[] | undefined;
5120
5120
  substrateColumns?: {
5121
5121
  id: string;
5122
5122
  control: "operator" | "vendor" | "platform" | "third-party";
5123
5123
  visibility: "transparent" | "announced" | "opaque";
5124
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
5125
+ values?: string[] | undefined;
5124
5126
  description?: string | undefined;
5125
5127
  semantic?: "deployment-state" | "diagnostic" | undefined;
5126
- values?: string[] | undefined;
5127
- status?: "active" | "forward-declared" | "deprecated" | undefined;
5128
5128
  emissionExpectation?: "always" | "conditional" | undefined;
5129
5129
  }[] | undefined;
5130
5130
  captureJudgedFailures?: boolean | undefined;
@@ -5155,7 +5155,7 @@ declare const SurfaceContractSchema: ZodObject<{
5155
5155
  routings?: {
5156
5156
  surfaceId: string;
5157
5157
  lightSourceId: string | readonly string[];
5158
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5158
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5159
5159
  }[] | undefined;
5160
5160
  pricing?: Record<string, {
5161
5161
  perMillionInput: number;
@@ -5167,7 +5167,7 @@ declare const SurfaceContractSchema: ZodObject<{
5167
5167
  skillDrafting: {
5168
5168
  surfaceId: string;
5169
5169
  lightSourceId: string | readonly string[];
5170
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5170
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5171
5171
  dimensions?: {
5172
5172
  id: string;
5173
5173
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5177,7 +5177,7 @@ declare const SurfaceContractSchema: ZodObject<{
5177
5177
  gatePolicy?: {
5178
5178
  passThreshold: number;
5179
5179
  failureAction: "retry" | "flag" | "block";
5180
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5180
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5181
5181
  retry?: {
5182
5182
  maxAttempts: number;
5183
5183
  augmentPrompt?: string | undefined;
@@ -5207,7 +5207,7 @@ declare const SurfaceContractSchema: ZodObject<{
5207
5207
  lessonDrafting?: {
5208
5208
  surfaceId: string;
5209
5209
  lightSourceId: string | readonly string[];
5210
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5210
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5211
5211
  dimensions?: {
5212
5212
  id: string;
5213
5213
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5217,7 +5217,7 @@ declare const SurfaceContractSchema: ZodObject<{
5217
5217
  gatePolicy?: {
5218
5218
  passThreshold: number;
5219
5219
  failureAction: "retry" | "flag" | "block";
5220
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5220
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5221
5221
  retry?: {
5222
5222
  maxAttempts: number;
5223
5223
  augmentPrompt?: string | undefined;
@@ -5247,7 +5247,7 @@ declare const SurfaceContractSchema: ZodObject<{
5247
5247
  fixtureGeneration?: {
5248
5248
  surfaceId: string;
5249
5249
  lightSourceId: string | readonly string[];
5250
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5250
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5251
5251
  dimensions?: {
5252
5252
  id: string;
5253
5253
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5257,7 +5257,7 @@ declare const SurfaceContractSchema: ZodObject<{
5257
5257
  gatePolicy?: {
5258
5258
  passThreshold: number;
5259
5259
  failureAction: "retry" | "flag" | "block";
5260
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5260
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5261
5261
  retry?: {
5262
5262
  maxAttempts: number;
5263
5263
  augmentPrompt?: string | undefined;
@@ -5287,7 +5287,7 @@ declare const SurfaceContractSchema: ZodObject<{
5287
5287
  codeChangeRecommendationDrafting?: {
5288
5288
  surfaceId: string;
5289
5289
  lightSourceId: string | readonly string[];
5290
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5290
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5291
5291
  dimensions?: {
5292
5292
  id: string;
5293
5293
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5297,7 +5297,7 @@ declare const SurfaceContractSchema: ZodObject<{
5297
5297
  gatePolicy?: {
5298
5298
  passThreshold: number;
5299
5299
  failureAction: "retry" | "flag" | "block";
5300
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5300
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5301
5301
  retry?: {
5302
5302
  maxAttempts: number;
5303
5303
  augmentPrompt?: string | undefined;
@@ -5327,7 +5327,7 @@ declare const SurfaceContractSchema: ZodObject<{
5327
5327
  blastRadiusJudging?: {
5328
5328
  surfaceId: string;
5329
5329
  lightSourceId: string | readonly string[];
5330
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5330
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5331
5331
  dimensions?: {
5332
5332
  id: string;
5333
5333
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5337,7 +5337,7 @@ declare const SurfaceContractSchema: ZodObject<{
5337
5337
  gatePolicy?: {
5338
5338
  passThreshold: number;
5339
5339
  failureAction: "retry" | "flag" | "block";
5340
- activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5340
+ activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5341
5341
  retry?: {
5342
5342
  maxAttempts: number;
5343
5343
  augmentPrompt?: string | undefined;
@@ -5950,23 +5950,6 @@ declare const LightSnapshotSchema: ZodObject<{
5950
5950
 
5951
5951
  rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
5952
5952
  }, "strip", ZodTypeAny$1, {
5953
- rawResponse?: unknown;
5954
- toolCalls?: unknown[] | undefined;
5955
- tokens?: {
5956
- input?: number | undefined;
5957
- output?: number | undefined;
5958
- cacheRead?: number | undefined;
5959
- cacheWrite?: number | undefined;
5960
- } | undefined;
5961
- latencyMs?: number | undefined;
5962
- reasoning?: string | undefined;
5963
- vendorMetadata?: Record<string, unknown> | undefined;
5964
- servedModel?: string | undefined;
5965
- error?: {
5966
- message: string;
5967
- type: string;
5968
- vendorErrorCode?: string | undefined;
5969
- } | undefined;
5970
5953
  rawRequest?: objectOutputType<{
5971
5954
  surfaceId: ZodString;
5972
5955
  correlationId: ZodOptional$1<ZodString>;
@@ -6145,10 +6128,8 @@ declare const LightSnapshotSchema: ZodObject<{
6145
6128
  strict: ZodOptional$1<ZodBoolean>;
6146
6129
  stream: ZodOptional$1<ZodBoolean>;
6147
6130
  }, ZodTypeAny$1, "passthrough"> | undefined;
6148
- rawRequestOmitted?: boolean | undefined;
6149
- rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6150
- }, {
6151
6131
  rawResponse?: unknown;
6132
+ reasoning?: string | undefined;
6152
6133
  toolCalls?: unknown[] | undefined;
6153
6134
  tokens?: {
6154
6135
  input?: number | undefined;
@@ -6157,14 +6138,16 @@ declare const LightSnapshotSchema: ZodObject<{
6157
6138
  cacheWrite?: number | undefined;
6158
6139
  } | undefined;
6159
6140
  latencyMs?: number | undefined;
6160
- reasoning?: string | undefined;
6161
- vendorMetadata?: Record<string, unknown> | undefined;
6162
- servedModel?: string | undefined;
6163
6141
  error?: {
6164
6142
  message: string;
6165
6143
  type: string;
6166
6144
  vendorErrorCode?: string | undefined;
6167
6145
  } | undefined;
6146
+ vendorMetadata?: Record<string, unknown> | undefined;
6147
+ servedModel?: string | undefined;
6148
+ rawRequestOmitted?: boolean | undefined;
6149
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6150
+ }, {
6168
6151
  rawRequest?: objectInputType<{
6169
6152
  surfaceId: ZodString;
6170
6153
  correlationId: ZodOptional$1<ZodString>;
@@ -6343,6 +6326,23 @@ declare const LightSnapshotSchema: ZodObject<{
6343
6326
  strict: ZodOptional$1<ZodBoolean>;
6344
6327
  stream: ZodOptional$1<ZodBoolean>;
6345
6328
  }, ZodTypeAny$1, "passthrough"> | undefined;
6329
+ rawResponse?: unknown;
6330
+ reasoning?: string | undefined;
6331
+ toolCalls?: unknown[] | undefined;
6332
+ tokens?: {
6333
+ input?: number | undefined;
6334
+ output?: number | undefined;
6335
+ cacheRead?: number | undefined;
6336
+ cacheWrite?: number | undefined;
6337
+ } | undefined;
6338
+ latencyMs?: number | undefined;
6339
+ error?: {
6340
+ message: string;
6341
+ type: string;
6342
+ vendorErrorCode?: string | undefined;
6343
+ } | undefined;
6344
+ vendorMetadata?: Record<string, unknown> | undefined;
6345
+ servedModel?: string | undefined;
6346
6346
  rawRequestOmitted?: boolean | undefined;
6347
6347
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6348
6348
  }>;
@@ -6996,23 +6996,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
6996
6996
 
6997
6997
  rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
6998
6998
  }, "strip", ZodTypeAny$1, {
6999
- rawResponse?: unknown;
7000
- toolCalls?: unknown[] | undefined;
7001
- tokens?: {
7002
- input?: number | undefined;
7003
- output?: number | undefined;
7004
- cacheRead?: number | undefined;
7005
- cacheWrite?: number | undefined;
7006
- } | undefined;
7007
- latencyMs?: number | undefined;
7008
- reasoning?: string | undefined;
7009
- vendorMetadata?: Record<string, unknown> | undefined;
7010
- servedModel?: string | undefined;
7011
- error?: {
7012
- message: string;
7013
- type: string;
7014
- vendorErrorCode?: string | undefined;
7015
- } | undefined;
7016
6999
  rawRequest?: objectOutputType<{
7017
7000
  surfaceId: ZodString;
7018
7001
  correlationId: ZodOptional$1<ZodString>;
@@ -7191,10 +7174,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7191
7174
  strict: ZodOptional$1<ZodBoolean>;
7192
7175
  stream: ZodOptional$1<ZodBoolean>;
7193
7176
  }, ZodTypeAny$1, "passthrough"> | undefined;
7194
- rawRequestOmitted?: boolean | undefined;
7195
- rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7196
- }, {
7197
7177
  rawResponse?: unknown;
7178
+ reasoning?: string | undefined;
7198
7179
  toolCalls?: unknown[] | undefined;
7199
7180
  tokens?: {
7200
7181
  input?: number | undefined;
@@ -7203,14 +7184,16 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7203
7184
  cacheWrite?: number | undefined;
7204
7185
  } | undefined;
7205
7186
  latencyMs?: number | undefined;
7206
- reasoning?: string | undefined;
7207
- vendorMetadata?: Record<string, unknown> | undefined;
7208
- servedModel?: string | undefined;
7209
7187
  error?: {
7210
7188
  message: string;
7211
7189
  type: string;
7212
7190
  vendorErrorCode?: string | undefined;
7213
7191
  } | undefined;
7192
+ vendorMetadata?: Record<string, unknown> | undefined;
7193
+ servedModel?: string | undefined;
7194
+ rawRequestOmitted?: boolean | undefined;
7195
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7196
+ }, {
7214
7197
  rawRequest?: objectInputType<{
7215
7198
  surfaceId: ZodString;
7216
7199
  correlationId: ZodOptional$1<ZodString>;
@@ -7389,6 +7372,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7389
7372
  strict: ZodOptional$1<ZodBoolean>;
7390
7373
  stream: ZodOptional$1<ZodBoolean>;
7391
7374
  }, ZodTypeAny$1, "passthrough"> | undefined;
7375
+ rawResponse?: unknown;
7376
+ reasoning?: string | undefined;
7377
+ toolCalls?: unknown[] | undefined;
7378
+ tokens?: {
7379
+ input?: number | undefined;
7380
+ output?: number | undefined;
7381
+ cacheRead?: number | undefined;
7382
+ cacheWrite?: number | undefined;
7383
+ } | undefined;
7384
+ latencyMs?: number | undefined;
7385
+ error?: {
7386
+ message: string;
7387
+ type: string;
7388
+ vendorErrorCode?: string | undefined;
7389
+ } | undefined;
7390
+ vendorMetadata?: Record<string, unknown> | undefined;
7391
+ servedModel?: string | undefined;
7392
7392
  rawRequestOmitted?: boolean | undefined;
7393
7393
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7394
7394
  }>>;
@@ -7402,19 +7402,19 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7402
7402
  timestamp: ZodString;
7403
7403
  columns: ZodRecord<ZodString, ZodString>;
7404
7404
  }, "strip", ZodTypeAny$1, {
7405
- provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
7405
+ provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
7406
7406
  timestamp: string;
7407
7407
  lensVersion: string;
7408
7408
  lightSourceIdentifier: string;
7409
- runMode: "production" | "test" | "eval" | "replay" | "local_dev";
7409
+ runMode: "local_dev" | "replay" | "production" | "test" | "eval";
7410
7410
  correlationId: string;
7411
7411
  columns: Record<string, string>;
7412
7412
  }, {
7413
- provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
7413
+ provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
7414
7414
  timestamp: string;
7415
7415
  lensVersion: string;
7416
7416
  lightSourceIdentifier: string;
7417
- runMode: "production" | "test" | "eval" | "replay" | "local_dev";
7417
+ runMode: "local_dev" | "replay" | "production" | "test" | "eval";
7418
7418
  correlationId: string;
7419
7419
  columns: Record<string, string>;
7420
7420
  }>>;
@@ -7528,8 +7528,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7528
7528
  rationale?: string | undefined;
7529
7529
  }[];
7530
7530
  cohortTags: string[];
7531
- fixtureId: string;
7532
7531
  passed: boolean;
7532
+ fixtureId: string;
7533
7533
  sideEffects: {
7534
7534
  kind: string;
7535
7535
  passed: boolean;
@@ -7557,8 +7557,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7557
7557
  score?: number | undefined;
7558
7558
  rationale?: string | undefined;
7559
7559
  }[];
7560
- fixtureId: string;
7561
7560
  passed: boolean;
7561
+ fixtureId: string;
7562
7562
  cohortTags?: string[] | undefined;
7563
7563
  sideEffects?: {
7564
7564
  kind: string;
@@ -7610,14 +7610,14 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7610
7610
 
7611
7611
  n: ZodNumber;
7612
7612
  }, "strip", ZodTypeAny$1, {
7613
- fixtureId: string;
7614
7613
  dimensionId: string;
7614
+ fixtureId: string;
7615
7615
  scores: number[];
7616
7616
  sigmaFloor: number;
7617
7617
  n: number;
7618
7618
  }, {
7619
- fixtureId: string;
7620
7619
  dimensionId: string;
7620
+ fixtureId: string;
7621
7621
  scores: number[];
7622
7622
  sigmaFloor: number;
7623
7623
  n: number;
@@ -7642,11 +7642,25 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7642
7642
  contributingFixtureCount: number;
7643
7643
  totalScoredEventCount: number;
7644
7644
  }>, "many">;
7645
+
7646
+ calibratedUnderJudgeIdentity: ZodOptional$1<ZodObject<{
7647
+ rubricHash: ZodOptional$1<ZodArray$1<ZodString, "many">>;
7648
+ contextScope: ZodOptional$1<ZodArray$1<ZodString, "many">>;
7649
+ model: ZodOptional$1<ZodArray$1<ZodString, "many">>;
7650
+ }, "strip", ZodTypeAny$1, {
7651
+ rubricHash?: string[] | undefined;
7652
+ contextScope?: string[] | undefined;
7653
+ model?: string[] | undefined;
7654
+ }, {
7655
+ rubricHash?: string[] | undefined;
7656
+ contextScope?: string[] | undefined;
7657
+ model?: string[] | undefined;
7658
+ }>>;
7645
7659
  }, "strip", ZodTypeAny$1, {
7646
7660
  totalEventCount: number;
7647
7661
  perFixtureDimension: {
7648
- fixtureId: string;
7649
7662
  dimensionId: string;
7663
+ fixtureId: string;
7650
7664
  scores: number[];
7651
7665
  sigmaFloor: number;
7652
7666
  n: number;
@@ -7658,11 +7672,16 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7658
7672
  totalScoredEventCount: number;
7659
7673
  }[];
7660
7674
  fixtureId?: string | undefined;
7675
+ calibratedUnderJudgeIdentity?: {
7676
+ rubricHash?: string[] | undefined;
7677
+ contextScope?: string[] | undefined;
7678
+ model?: string[] | undefined;
7679
+ } | undefined;
7661
7680
  }, {
7662
7681
  totalEventCount: number;
7663
7682
  perFixtureDimension: {
7664
- fixtureId: string;
7665
7683
  dimensionId: string;
7684
+ fixtureId: string;
7666
7685
  scores: number[];
7667
7686
  sigmaFloor: number;
7668
7687
  n: number;
@@ -7674,6 +7693,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7674
7693
  totalScoredEventCount: number;
7675
7694
  }[];
7676
7695
  fixtureId?: string | undefined;
7696
+ calibratedUnderJudgeIdentity?: {
7697
+ rubricHash?: string[] | undefined;
7698
+ contextScope?: string[] | undefined;
7699
+ model?: string[] | undefined;
7700
+ } | undefined;
7677
7701
  }>>;
7678
7702
 
7679
7703
  varianceDecomposition: ZodOptional$1<ZodObject<{
@@ -7740,6 +7764,183 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7740
7764
  }>;
7741
7765
 
7742
7766
  caveats: ZodDefault$1<ZodArray$1<ZodString, "many">>;
7767
+
7768
+ floorFreshness: ZodOptional$1<ZodObject<{
7769
+ state: ZodEnum$1<["fresh", "stale", "undeterminable"]>;
7770
+
7771
+ comparedFacets: ZodArray$1<ZodString, "many">;
7772
+
7773
+ changedFacets: ZodArray$1<ZodString, "many">;
7774
+
7775
+ ambiguousFacets: ZodArray$1<ZodString, "many">;
7776
+ }, "strip", ZodTypeAny$1, {
7777
+ state: "fresh" | "stale" | "undeterminable";
7778
+ comparedFacets: string[];
7779
+ changedFacets: string[];
7780
+ ambiguousFacets: string[];
7781
+ }, {
7782
+ state: "fresh" | "stale" | "undeterminable";
7783
+ comparedFacets: string[];
7784
+ changedFacets: string[];
7785
+ ambiguousFacets: string[];
7786
+ }>>;
7787
+
7788
+ floorRegion: ZodOptional$1<ZodObject<{
7789
+
7790
+ region: ZodEnum$1<["ceiling", "mid", "floor"]>;
7791
+
7792
+ calibrationRegion: ZodOptional$1<ZodEnum$1<["ceiling", "mid", "floor"]>>;
7793
+
7794
+ calibrationScoreCount: ZodOptional$1<ZodNumber>;
7795
+
7796
+ bandMean: ZodNumber;
7797
+
7798
+ bandMax: ZodNumber;
7799
+
7800
+ bandExtrapolated: ZodBoolean;
7801
+
7802
+ calibrationBandExtrapolated: ZodOptional$1<ZodBoolean>;
7803
+
7804
+ windowStraddlesBoundary: ZodOptional$1<ZodBoolean>;
7805
+
7806
+ counterfactualSigmaAgentDelta: ZodNullable$1<ZodNumber>;
7807
+
7808
+ counterfactualUnavailableReason: ZodOptional$1<ZodEnum$1<["no_calibration_scores", "calibration_region_degenerate"]>>;
7809
+
7810
+ curveProvenance: ZodObject<{
7811
+ version: ZodString;
7812
+ judge: ZodString;
7813
+ rubricVersion: ZodString;
7814
+ }, "strip", ZodTypeAny$1, {
7815
+ version: string;
7816
+ judge: string;
7817
+ rubricVersion: string;
7818
+ }, {
7819
+ version: string;
7820
+ judge: string;
7821
+ rubricVersion: string;
7822
+ }>;
7823
+ }, "strip", ZodTypeAny$1, {
7824
+ bandMean: number;
7825
+ bandMax: number;
7826
+ region: "ceiling" | "mid" | "floor";
7827
+ bandExtrapolated: boolean;
7828
+ counterfactualSigmaAgentDelta: number | null;
7829
+ curveProvenance: {
7830
+ version: string;
7831
+ judge: string;
7832
+ rubricVersion: string;
7833
+ };
7834
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
7835
+ calibrationScoreCount?: number | undefined;
7836
+ calibrationBandExtrapolated?: boolean | undefined;
7837
+ windowStraddlesBoundary?: boolean | undefined;
7838
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
7839
+ }, {
7840
+ bandMean: number;
7841
+ bandMax: number;
7842
+ region: "ceiling" | "mid" | "floor";
7843
+ bandExtrapolated: boolean;
7844
+ counterfactualSigmaAgentDelta: number | null;
7845
+ curveProvenance: {
7846
+ version: string;
7847
+ judge: string;
7848
+ rubricVersion: string;
7849
+ };
7850
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
7851
+ calibrationScoreCount?: number | undefined;
7852
+ calibrationBandExtrapolated?: boolean | undefined;
7853
+ windowStraddlesBoundary?: boolean | undefined;
7854
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
7855
+ }>>;
7856
+
7857
+ lensCompositeCorrection: ZodOptional$1<ZodObject<{
7858
+
7859
+ correctedVarianceLens: ZodNumber;
7860
+
7861
+ reattributedFromResidual: ZodNumber;
7862
+
7863
+ compositeGroupCount: ZodNumber;
7864
+
7865
+ bracketedFacets: ZodArray$1<ZodString, "many">;
7866
+
7867
+ bracketedFacetLevels: ZodOptional$1<ZodArray$1<ZodObject<{
7868
+ facet: ZodString;
7869
+ distinctLevels: ZodNumber;
7870
+ }, "strip", ZodTypeAny$1, {
7871
+ facet: string;
7872
+ distinctLevels: number;
7873
+ }, {
7874
+ facet: string;
7875
+ distinctLevels: number;
7876
+ }>, "many">>;
7877
+
7878
+ conservationHolds: ZodBoolean;
7879
+
7880
+ partitionRelationship: ZodEnum$1<["degenerate", "identical", "judge-refines-version", "version-refines-judge", "cross-cutting"]>;
7881
+ }, "strip", ZodTypeAny$1, {
7882
+ correctedVarianceLens: number;
7883
+ reattributedFromResidual: number;
7884
+ compositeGroupCount: number;
7885
+ bracketedFacets: string[];
7886
+ conservationHolds: boolean;
7887
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
7888
+ bracketedFacetLevels?: {
7889
+ facet: string;
7890
+ distinctLevels: number;
7891
+ }[] | undefined;
7892
+ }, {
7893
+ correctedVarianceLens: number;
7894
+ reattributedFromResidual: number;
7895
+ compositeGroupCount: number;
7896
+ bracketedFacets: string[];
7897
+ conservationHolds: boolean;
7898
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
7899
+ bracketedFacetLevels?: {
7900
+ facet: string;
7901
+ distinctLevels: number;
7902
+ }[] | undefined;
7903
+ }>>;
7904
+
7905
+ apparatusResidualContamination: ZodOptional$1<ZodObject<{
7906
+
7907
+ contaminated: ZodBoolean;
7908
+
7909
+ driftedFacets: ZodArray$1<ZodObject<{
7910
+ facet: ZodString;
7911
+ basis: ZodEnum$1<["reserved-namespace", "declared-control"]>;
7912
+
7913
+ control: ZodOptional$1<ZodEnum$1<["operator", "vendor", "platform", "third-party"]>>;
7914
+ }, "strip", ZodTypeAny$1, {
7915
+ facet: string;
7916
+ basis: "reserved-namespace" | "declared-control";
7917
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
7918
+ }, {
7919
+ facet: string;
7920
+ basis: "reserved-namespace" | "declared-control";
7921
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
7922
+ }>, "many">;
7923
+
7924
+ scope: ZodOptional$1<ZodEnum$1<["reserved-only", "contract-resolved"]>>;
7925
+ }, "strip", ZodTypeAny$1, {
7926
+ contaminated: boolean;
7927
+ driftedFacets: {
7928
+ facet: string;
7929
+ basis: "reserved-namespace" | "declared-control";
7930
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
7931
+ }[];
7932
+ scope?: "reserved-only" | "contract-resolved" | undefined;
7933
+ }, {
7934
+ contaminated: boolean;
7935
+ driftedFacets: {
7936
+ facet: string;
7937
+ basis: "reserved-namespace" | "declared-control";
7938
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
7939
+ }[];
7940
+ scope?: "reserved-only" | "contract-resolved" | undefined;
7941
+ }>>;
7942
+
7943
+ decompositionMethodVersion: ZodOptional$1<ZodString>;
7743
7944
  }, "strip", ZodTypeAny$1, {
7744
7945
  dimensionId: string;
7745
7946
  window: {
@@ -7766,6 +7967,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7766
7967
  alpha: number;
7767
7968
  };
7768
7969
  caveats: string[];
7970
+ floorFreshness?: {
7971
+ state: "fresh" | "stale" | "undeterminable";
7972
+ comparedFacets: string[];
7973
+ changedFacets: string[];
7974
+ ambiguousFacets: string[];
7975
+ } | undefined;
7976
+ floorRegion?: {
7977
+ bandMean: number;
7978
+ bandMax: number;
7979
+ region: "ceiling" | "mid" | "floor";
7980
+ bandExtrapolated: boolean;
7981
+ counterfactualSigmaAgentDelta: number | null;
7982
+ curveProvenance: {
7983
+ version: string;
7984
+ judge: string;
7985
+ rubricVersion: string;
7986
+ };
7987
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
7988
+ calibrationScoreCount?: number | undefined;
7989
+ calibrationBandExtrapolated?: boolean | undefined;
7990
+ windowStraddlesBoundary?: boolean | undefined;
7991
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
7992
+ } | undefined;
7993
+ lensCompositeCorrection?: {
7994
+ correctedVarianceLens: number;
7995
+ reattributedFromResidual: number;
7996
+ compositeGroupCount: number;
7997
+ bracketedFacets: string[];
7998
+ conservationHolds: boolean;
7999
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
8000
+ bracketedFacetLevels?: {
8001
+ facet: string;
8002
+ distinctLevels: number;
8003
+ }[] | undefined;
8004
+ } | undefined;
8005
+ apparatusResidualContamination?: {
8006
+ contaminated: boolean;
8007
+ driftedFacets: {
8008
+ facet: string;
8009
+ basis: "reserved-namespace" | "declared-control";
8010
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
8011
+ }[];
8012
+ scope?: "reserved-only" | "contract-resolved" | undefined;
8013
+ } | undefined;
8014
+ decompositionMethodVersion?: string | undefined;
7769
8015
  }, {
7770
8016
  dimensionId: string;
7771
8017
  window: {
@@ -7792,6 +8038,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7792
8038
  alpha: number;
7793
8039
  };
7794
8040
  caveats?: string[] | undefined;
8041
+ floorFreshness?: {
8042
+ state: "fresh" | "stale" | "undeterminable";
8043
+ comparedFacets: string[];
8044
+ changedFacets: string[];
8045
+ ambiguousFacets: string[];
8046
+ } | undefined;
8047
+ floorRegion?: {
8048
+ bandMean: number;
8049
+ bandMax: number;
8050
+ region: "ceiling" | "mid" | "floor";
8051
+ bandExtrapolated: boolean;
8052
+ counterfactualSigmaAgentDelta: number | null;
8053
+ curveProvenance: {
8054
+ version: string;
8055
+ judge: string;
8056
+ rubricVersion: string;
8057
+ };
8058
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
8059
+ calibrationScoreCount?: number | undefined;
8060
+ calibrationBandExtrapolated?: boolean | undefined;
8061
+ windowStraddlesBoundary?: boolean | undefined;
8062
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
8063
+ } | undefined;
8064
+ lensCompositeCorrection?: {
8065
+ correctedVarianceLens: number;
8066
+ reattributedFromResidual: number;
8067
+ compositeGroupCount: number;
8068
+ bracketedFacets: string[];
8069
+ conservationHolds: boolean;
8070
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
8071
+ bracketedFacetLevels?: {
8072
+ facet: string;
8073
+ distinctLevels: number;
8074
+ }[] | undefined;
8075
+ } | undefined;
8076
+ apparatusResidualContamination?: {
8077
+ contaminated: boolean;
8078
+ driftedFacets: {
8079
+ facet: string;
8080
+ basis: "reserved-namespace" | "declared-control";
8081
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
8082
+ }[];
8083
+ scope?: "reserved-only" | "contract-resolved" | undefined;
8084
+ } | undefined;
8085
+ decompositionMethodVersion?: string | undefined;
7795
8086
  }>>;
7796
8087
 
7797
8088
  lifecycleTransition: ZodOptional$1<ZodEffects$1<ZodObject<{
@@ -7835,7 +8126,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7835
8126
 
7836
8127
  targetEventId: ZodString;
7837
8128
 
7838
- recommendation: ZodEnum$1<["viable", "contaminated", "insufficient-n", "degenerate", "instrument-limited"]>;
8129
+ recommendation: ZodEnum$1<["viable", "contaminated", "insufficient-n", "degenerate", "instrument-limited", "stale-floor"]>;
7839
8130
 
7840
8131
  checks: ZodArray$1<ZodObject<{
7841
8132
  name: ZodString;
@@ -7881,15 +8172,15 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7881
8172
 
7882
8173
  assessedBy: ZodString;
7883
8174
  }, "strip", ZodTypeAny$1, {
7884
- confidence: number;
7885
8175
  rationale: string;
7886
8176
  targetEventId: string;
7887
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
8177
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
7888
8178
  checks: {
7889
8179
  name: string;
7890
8180
  passed: boolean;
7891
8181
  detail: string;
7892
8182
  }[];
8183
+ confidence: number;
7893
8184
  assessedBy: string;
7894
8185
  recomputed?: {
7895
8186
  sigmaObservedSquared: number;
@@ -7900,15 +8191,15 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7900
8191
  identityCloses: boolean;
7901
8192
  } | undefined;
7902
8193
  }, {
7903
- confidence: number;
7904
8194
  rationale: string;
7905
8195
  targetEventId: string;
7906
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
8196
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
7907
8197
  checks: {
7908
8198
  name: string;
7909
8199
  passed: boolean;
7910
8200
  detail: string;
7911
8201
  }[];
8202
+ confidence: number;
7912
8203
  assessedBy: string;
7913
8204
  recomputed?: {
7914
8205
  sigmaObservedSquared: number;
@@ -8011,24 +8302,24 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8011
8302
  present: ZodOptional$1<ZodBoolean>;
8012
8303
  }, "strip", ZodTypeAny$1, {
8013
8304
  column: string;
8305
+ present?: boolean | undefined;
8014
8306
  equals?: string | undefined;
8015
8307
  oneOf?: string[] | undefined;
8016
- present?: boolean | undefined;
8017
8308
  }, {
8018
8309
  column: string;
8310
+ present?: boolean | undefined;
8019
8311
  equals?: string | undefined;
8020
8312
  oneOf?: string[] | undefined;
8021
- present?: boolean | undefined;
8022
8313
  }>, {
8023
8314
  column: string;
8315
+ present?: boolean | undefined;
8024
8316
  equals?: string | undefined;
8025
8317
  oneOf?: string[] | undefined;
8026
- present?: boolean | undefined;
8027
8318
  }, {
8028
8319
  column: string;
8320
+ present?: boolean | undefined;
8029
8321
  equals?: string | undefined;
8030
8322
  oneOf?: string[] | undefined;
8031
- present?: boolean | undefined;
8032
8323
  }>, "many">>;
8033
8324
  }, "strip", ZodTypeAny$1, {
8034
8325
  description: string;
@@ -8066,9 +8357,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8066
8357
  sourceExcerpt?: string | undefined;
8067
8358
  when?: {
8068
8359
  column: string;
8360
+ present?: boolean | undefined;
8069
8361
  equals?: string | undefined;
8070
8362
  oneOf?: string[] | undefined;
8071
- present?: boolean | undefined;
8072
8363
  }[] | undefined;
8073
8364
  }, {
8074
8365
  description: string;
@@ -8106,9 +8397,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8106
8397
  sourceExcerpt?: string | undefined;
8107
8398
  when?: {
8108
8399
  column: string;
8400
+ present?: boolean | undefined;
8109
8401
  equals?: string | undefined;
8110
8402
  oneOf?: string[] | undefined;
8111
- present?: boolean | undefined;
8112
8403
  }[] | undefined;
8113
8404
  }>, {
8114
8405
  description: string;
@@ -8146,9 +8437,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8146
8437
  sourceExcerpt?: string | undefined;
8147
8438
  when?: {
8148
8439
  column: string;
8440
+ present?: boolean | undefined;
8149
8441
  equals?: string | undefined;
8150
8442
  oneOf?: string[] | undefined;
8151
- present?: boolean | undefined;
8152
8443
  }[] | undefined;
8153
8444
  }, {
8154
8445
  description: string;
@@ -8186,9 +8477,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8186
8477
  sourceExcerpt?: string | undefined;
8187
8478
  when?: {
8188
8479
  column: string;
8480
+ present?: boolean | undefined;
8189
8481
  equals?: string | undefined;
8190
8482
  oneOf?: string[] | undefined;
8191
- present?: boolean | undefined;
8192
8483
  }[] | undefined;
8193
8484
  }>;
8194
8485
 
@@ -8198,6 +8489,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8198
8489
 
8199
8490
  sourceSurfaceId: ZodOptional$1<ZodString>;
8200
8491
  }, "strip", ZodTypeAny$1, {
8492
+ approverId: string;
8201
8493
  fixture: {
8202
8494
  description: string;
8203
8495
  fixtureId: string;
@@ -8234,15 +8526,15 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8234
8526
  sourceExcerpt?: string | undefined;
8235
8527
  when?: {
8236
8528
  column: string;
8529
+ present?: boolean | undefined;
8237
8530
  equals?: string | undefined;
8238
8531
  oneOf?: string[] | undefined;
8239
- present?: boolean | undefined;
8240
8532
  }[] | undefined;
8241
8533
  };
8242
- approverId: string;
8243
8534
  occurredAt: string;
8244
8535
  sourceSurfaceId?: string | undefined;
8245
8536
  }, {
8537
+ approverId: string;
8246
8538
  fixture: {
8247
8539
  description: string;
8248
8540
  fixtureId: string;
@@ -8279,12 +8571,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8279
8571
  sourceExcerpt?: string | undefined;
8280
8572
  when?: {
8281
8573
  column: string;
8574
+ present?: boolean | undefined;
8282
8575
  equals?: string | undefined;
8283
8576
  oneOf?: string[] | undefined;
8284
- present?: boolean | undefined;
8285
8577
  }[] | undefined;
8286
8578
  };
8287
- approverId: string;
8288
8579
  occurredAt: string;
8289
8580
  sourceSurfaceId?: string | undefined;
8290
8581
  }>>;
@@ -8397,40 +8688,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8397
8688
  };
8398
8689
  }>>;
8399
8690
  }, "strip", ZodTypeAny$1, {
8691
+ surfaceId: string;
8400
8692
  lensVersion: string;
8401
8693
  correlationId: string;
8402
- surfaceId: string;
8403
8694
  kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis";
8404
8695
  occurredAt: string;
8405
8696
  eventId: string;
8406
8697
  substrate?: {
8407
- provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
8698
+ provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
8408
8699
  timestamp: string;
8409
8700
  lensVersion: string;
8410
8701
  lightSourceIdentifier: string;
8411
- runMode: "production" | "test" | "eval" | "replay" | "local_dev";
8702
+ runMode: "local_dev" | "replay" | "production" | "test" | "eval";
8412
8703
  correlationId: string;
8413
8704
  columns: Record<string, string>;
8414
8705
  } | undefined;
8415
8706
  emissionStreamId?: string | undefined;
8416
8707
  light?: {
8417
- rawResponse?: unknown;
8418
- toolCalls?: unknown[] | undefined;
8419
- tokens?: {
8420
- input?: number | undefined;
8421
- output?: number | undefined;
8422
- cacheRead?: number | undefined;
8423
- cacheWrite?: number | undefined;
8424
- } | undefined;
8425
- latencyMs?: number | undefined;
8426
- reasoning?: string | undefined;
8427
- vendorMetadata?: Record<string, unknown> | undefined;
8428
- servedModel?: string | undefined;
8429
- error?: {
8430
- message: string;
8431
- type: string;
8432
- vendorErrorCode?: string | undefined;
8433
- } | undefined;
8434
8708
  rawRequest?: objectOutputType<{
8435
8709
  surfaceId: ZodString;
8436
8710
  correlationId: ZodOptional$1<ZodString>;
@@ -8609,6 +8883,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8609
8883
  strict: ZodOptional$1<ZodBoolean>;
8610
8884
  stream: ZodOptional$1<ZodBoolean>;
8611
8885
  }, ZodTypeAny$1, "passthrough"> | undefined;
8886
+ rawResponse?: unknown;
8887
+ reasoning?: string | undefined;
8888
+ toolCalls?: unknown[] | undefined;
8889
+ tokens?: {
8890
+ input?: number | undefined;
8891
+ output?: number | undefined;
8892
+ cacheRead?: number | undefined;
8893
+ cacheWrite?: number | undefined;
8894
+ } | undefined;
8895
+ latencyMs?: number | undefined;
8896
+ error?: {
8897
+ message: string;
8898
+ type: string;
8899
+ vendorErrorCode?: string | undefined;
8900
+ } | undefined;
8901
+ vendorMetadata?: Record<string, unknown> | undefined;
8902
+ servedModel?: string | undefined;
8612
8903
  rawRequestOmitted?: boolean | undefined;
8613
8904
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
8614
8905
  } | undefined;
@@ -8623,8 +8914,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8623
8914
  rationale?: string | undefined;
8624
8915
  }[];
8625
8916
  cohortTags: string[];
8626
- fixtureId: string;
8627
8917
  passed: boolean;
8918
+ fixtureId: string;
8628
8919
  sideEffects: {
8629
8920
  kind: string;
8630
8921
  passed: boolean;
@@ -8651,8 +8942,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8651
8942
  noiseFloorCalibration?: {
8652
8943
  totalEventCount: number;
8653
8944
  perFixtureDimension: {
8654
- fixtureId: string;
8655
8945
  dimensionId: string;
8946
+ fixtureId: string;
8656
8947
  scores: number[];
8657
8948
  sigmaFloor: number;
8658
8949
  n: number;
@@ -8664,6 +8955,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8664
8955
  totalScoredEventCount: number;
8665
8956
  }[];
8666
8957
  fixtureId?: string | undefined;
8958
+ calibratedUnderJudgeIdentity?: {
8959
+ rubricHash?: string[] | undefined;
8960
+ contextScope?: string[] | undefined;
8961
+ model?: string[] | undefined;
8962
+ } | undefined;
8667
8963
  } | undefined;
8668
8964
  varianceDecomposition?: {
8669
8965
  dimensionId: string;
@@ -8691,6 +8987,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8691
8987
  alpha: number;
8692
8988
  };
8693
8989
  caveats: string[];
8990
+ floorFreshness?: {
8991
+ state: "fresh" | "stale" | "undeterminable";
8992
+ comparedFacets: string[];
8993
+ changedFacets: string[];
8994
+ ambiguousFacets: string[];
8995
+ } | undefined;
8996
+ floorRegion?: {
8997
+ bandMean: number;
8998
+ bandMax: number;
8999
+ region: "ceiling" | "mid" | "floor";
9000
+ bandExtrapolated: boolean;
9001
+ counterfactualSigmaAgentDelta: number | null;
9002
+ curveProvenance: {
9003
+ version: string;
9004
+ judge: string;
9005
+ rubricVersion: string;
9006
+ };
9007
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
9008
+ calibrationScoreCount?: number | undefined;
9009
+ calibrationBandExtrapolated?: boolean | undefined;
9010
+ windowStraddlesBoundary?: boolean | undefined;
9011
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
9012
+ } | undefined;
9013
+ lensCompositeCorrection?: {
9014
+ correctedVarianceLens: number;
9015
+ reattributedFromResidual: number;
9016
+ compositeGroupCount: number;
9017
+ bracketedFacets: string[];
9018
+ conservationHolds: boolean;
9019
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
9020
+ bracketedFacetLevels?: {
9021
+ facet: string;
9022
+ distinctLevels: number;
9023
+ }[] | undefined;
9024
+ } | undefined;
9025
+ apparatusResidualContamination?: {
9026
+ contaminated: boolean;
9027
+ driftedFacets: {
9028
+ facet: string;
9029
+ basis: "reserved-namespace" | "declared-control";
9030
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
9031
+ }[];
9032
+ scope?: "reserved-only" | "contract-resolved" | undefined;
9033
+ } | undefined;
9034
+ decompositionMethodVersion?: string | undefined;
8694
9035
  } | undefined;
8695
9036
  lifecycleTransition?: {
8696
9037
  status: "draft" | "quarantined" | "approved" | "locked" | "rejected";
@@ -8700,15 +9041,15 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8700
9041
  pinnedLabel?: string | undefined;
8701
9042
  } | undefined;
8702
9043
  evalRecommendation?: {
8703
- confidence: number;
8704
9044
  rationale: string;
8705
9045
  targetEventId: string;
8706
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
9046
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
8707
9047
  checks: {
8708
9048
  name: string;
8709
9049
  passed: boolean;
8710
9050
  detail: string;
8711
9051
  }[];
9052
+ confidence: number;
8712
9053
  assessedBy: string;
8713
9054
  recomputed?: {
8714
9055
  sigmaObservedSquared: number;
@@ -8720,6 +9061,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8720
9061
  } | undefined;
8721
9062
  } | undefined;
8722
9063
  conformanceFixtureRecord?: {
9064
+ approverId: string;
8723
9065
  fixture: {
8724
9066
  description: string;
8725
9067
  fixtureId: string;
@@ -8756,12 +9098,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8756
9098
  sourceExcerpt?: string | undefined;
8757
9099
  when?: {
8758
9100
  column: string;
9101
+ present?: boolean | undefined;
8759
9102
  equals?: string | undefined;
8760
9103
  oneOf?: string[] | undefined;
8761
- present?: boolean | undefined;
8762
9104
  }[] | undefined;
8763
9105
  };
8764
- approverId: string;
8765
9106
  occurredAt: string;
8766
9107
  sourceSurfaceId?: string | undefined;
8767
9108
  } | undefined;
@@ -8794,40 +9135,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8794
9135
  };
8795
9136
  } | undefined;
8796
9137
  }, {
9138
+ surfaceId: string;
8797
9139
  lensVersion: string;
8798
9140
  correlationId: string;
8799
- surfaceId: string;
8800
9141
  occurredAt: string;
8801
9142
  eventId: string;
8802
9143
  substrate?: {
8803
- provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
9144
+ provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
8804
9145
  timestamp: string;
8805
9146
  lensVersion: string;
8806
9147
  lightSourceIdentifier: string;
8807
- runMode: "production" | "test" | "eval" | "replay" | "local_dev";
9148
+ runMode: "local_dev" | "replay" | "production" | "test" | "eval";
8808
9149
  correlationId: string;
8809
9150
  columns: Record<string, string>;
8810
9151
  } | undefined;
8811
9152
  kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis" | undefined;
8812
9153
  emissionStreamId?: string | undefined;
8813
9154
  light?: {
8814
- rawResponse?: unknown;
8815
- toolCalls?: unknown[] | undefined;
8816
- tokens?: {
8817
- input?: number | undefined;
8818
- output?: number | undefined;
8819
- cacheRead?: number | undefined;
8820
- cacheWrite?: number | undefined;
8821
- } | undefined;
8822
- latencyMs?: number | undefined;
8823
- reasoning?: string | undefined;
8824
- vendorMetadata?: Record<string, unknown> | undefined;
8825
- servedModel?: string | undefined;
8826
- error?: {
8827
- message: string;
8828
- type: string;
8829
- vendorErrorCode?: string | undefined;
8830
- } | undefined;
8831
9155
  rawRequest?: objectInputType<{
8832
9156
  surfaceId: ZodString;
8833
9157
  correlationId: ZodOptional$1<ZodString>;
@@ -9006,6 +9330,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9006
9330
  strict: ZodOptional$1<ZodBoolean>;
9007
9331
  stream: ZodOptional$1<ZodBoolean>;
9008
9332
  }, ZodTypeAny$1, "passthrough"> | undefined;
9333
+ rawResponse?: unknown;
9334
+ reasoning?: string | undefined;
9335
+ toolCalls?: unknown[] | undefined;
9336
+ tokens?: {
9337
+ input?: number | undefined;
9338
+ output?: number | undefined;
9339
+ cacheRead?: number | undefined;
9340
+ cacheWrite?: number | undefined;
9341
+ } | undefined;
9342
+ latencyMs?: number | undefined;
9343
+ error?: {
9344
+ message: string;
9345
+ type: string;
9346
+ vendorErrorCode?: string | undefined;
9347
+ } | undefined;
9348
+ vendorMetadata?: Record<string, unknown> | undefined;
9349
+ servedModel?: string | undefined;
9009
9350
  rawRequestOmitted?: boolean | undefined;
9010
9351
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
9011
9352
  } | undefined;
@@ -9019,8 +9360,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9019
9360
  score?: number | undefined;
9020
9361
  rationale?: string | undefined;
9021
9362
  }[];
9022
- fixtureId: string;
9023
9363
  passed: boolean;
9364
+ fixtureId: string;
9024
9365
  cohortTags?: string[] | undefined;
9025
9366
  sideEffects?: {
9026
9367
  kind: string;
@@ -9048,8 +9389,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9048
9389
  noiseFloorCalibration?: {
9049
9390
  totalEventCount: number;
9050
9391
  perFixtureDimension: {
9051
- fixtureId: string;
9052
9392
  dimensionId: string;
9393
+ fixtureId: string;
9053
9394
  scores: number[];
9054
9395
  sigmaFloor: number;
9055
9396
  n: number;
@@ -9061,6 +9402,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9061
9402
  totalScoredEventCount: number;
9062
9403
  }[];
9063
9404
  fixtureId?: string | undefined;
9405
+ calibratedUnderJudgeIdentity?: {
9406
+ rubricHash?: string[] | undefined;
9407
+ contextScope?: string[] | undefined;
9408
+ model?: string[] | undefined;
9409
+ } | undefined;
9064
9410
  } | undefined;
9065
9411
  varianceDecomposition?: {
9066
9412
  dimensionId: string;
@@ -9088,6 +9434,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9088
9434
  alpha: number;
9089
9435
  };
9090
9436
  caveats?: string[] | undefined;
9437
+ floorFreshness?: {
9438
+ state: "fresh" | "stale" | "undeterminable";
9439
+ comparedFacets: string[];
9440
+ changedFacets: string[];
9441
+ ambiguousFacets: string[];
9442
+ } | undefined;
9443
+ floorRegion?: {
9444
+ bandMean: number;
9445
+ bandMax: number;
9446
+ region: "ceiling" | "mid" | "floor";
9447
+ bandExtrapolated: boolean;
9448
+ counterfactualSigmaAgentDelta: number | null;
9449
+ curveProvenance: {
9450
+ version: string;
9451
+ judge: string;
9452
+ rubricVersion: string;
9453
+ };
9454
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
9455
+ calibrationScoreCount?: number | undefined;
9456
+ calibrationBandExtrapolated?: boolean | undefined;
9457
+ windowStraddlesBoundary?: boolean | undefined;
9458
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
9459
+ } | undefined;
9460
+ lensCompositeCorrection?: {
9461
+ correctedVarianceLens: number;
9462
+ reattributedFromResidual: number;
9463
+ compositeGroupCount: number;
9464
+ bracketedFacets: string[];
9465
+ conservationHolds: boolean;
9466
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
9467
+ bracketedFacetLevels?: {
9468
+ facet: string;
9469
+ distinctLevels: number;
9470
+ }[] | undefined;
9471
+ } | undefined;
9472
+ apparatusResidualContamination?: {
9473
+ contaminated: boolean;
9474
+ driftedFacets: {
9475
+ facet: string;
9476
+ basis: "reserved-namespace" | "declared-control";
9477
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
9478
+ }[];
9479
+ scope?: "reserved-only" | "contract-resolved" | undefined;
9480
+ } | undefined;
9481
+ decompositionMethodVersion?: string | undefined;
9091
9482
  } | undefined;
9092
9483
  lifecycleTransition?: {
9093
9484
  status: "draft" | "quarantined" | "approved" | "locked" | "rejected";
@@ -9097,15 +9488,15 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9097
9488
  pinnedLabel?: string | undefined;
9098
9489
  } | undefined;
9099
9490
  evalRecommendation?: {
9100
- confidence: number;
9101
9491
  rationale: string;
9102
9492
  targetEventId: string;
9103
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
9493
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
9104
9494
  checks: {
9105
9495
  name: string;
9106
9496
  passed: boolean;
9107
9497
  detail: string;
9108
9498
  }[];
9499
+ confidence: number;
9109
9500
  assessedBy: string;
9110
9501
  recomputed?: {
9111
9502
  sigmaObservedSquared: number;
@@ -9117,6 +9508,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9117
9508
  } | undefined;
9118
9509
  } | undefined;
9119
9510
  conformanceFixtureRecord?: {
9511
+ approverId: string;
9120
9512
  fixture: {
9121
9513
  description: string;
9122
9514
  fixtureId: string;
@@ -9153,12 +9545,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9153
9545
  sourceExcerpt?: string | undefined;
9154
9546
  when?: {
9155
9547
  column: string;
9548
+ present?: boolean | undefined;
9156
9549
  equals?: string | undefined;
9157
9550
  oneOf?: string[] | undefined;
9158
- present?: boolean | undefined;
9159
9551
  }[] | undefined;
9160
9552
  };
9161
- approverId: string;
9162
9553
  occurredAt: string;
9163
9554
  sourceSurfaceId?: string | undefined;
9164
9555
  } | undefined;
@@ -9191,40 +9582,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9191
9582
  };
9192
9583
  } | undefined;
9193
9584
  }>, {
9585
+ surfaceId: string;
9194
9586
  lensVersion: string;
9195
9587
  correlationId: string;
9196
- surfaceId: string;
9197
9588
  kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis";
9198
9589
  occurredAt: string;
9199
9590
  eventId: string;
9200
9591
  substrate?: {
9201
- provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
9592
+ provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
9202
9593
  timestamp: string;
9203
9594
  lensVersion: string;
9204
9595
  lightSourceIdentifier: string;
9205
- runMode: "production" | "test" | "eval" | "replay" | "local_dev";
9596
+ runMode: "local_dev" | "replay" | "production" | "test" | "eval";
9206
9597
  correlationId: string;
9207
9598
  columns: Record<string, string>;
9208
9599
  } | undefined;
9209
9600
  emissionStreamId?: string | undefined;
9210
9601
  light?: {
9211
- rawResponse?: unknown;
9212
- toolCalls?: unknown[] | undefined;
9213
- tokens?: {
9214
- input?: number | undefined;
9215
- output?: number | undefined;
9216
- cacheRead?: number | undefined;
9217
- cacheWrite?: number | undefined;
9218
- } | undefined;
9219
- latencyMs?: number | undefined;
9220
- reasoning?: string | undefined;
9221
- vendorMetadata?: Record<string, unknown> | undefined;
9222
- servedModel?: string | undefined;
9223
- error?: {
9224
- message: string;
9225
- type: string;
9226
- vendorErrorCode?: string | undefined;
9227
- } | undefined;
9228
9602
  rawRequest?: objectOutputType<{
9229
9603
  surfaceId: ZodString;
9230
9604
  correlationId: ZodOptional$1<ZodString>;
@@ -9403,6 +9777,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9403
9777
  strict: ZodOptional$1<ZodBoolean>;
9404
9778
  stream: ZodOptional$1<ZodBoolean>;
9405
9779
  }, ZodTypeAny$1, "passthrough"> | undefined;
9780
+ rawResponse?: unknown;
9781
+ reasoning?: string | undefined;
9782
+ toolCalls?: unknown[] | undefined;
9783
+ tokens?: {
9784
+ input?: number | undefined;
9785
+ output?: number | undefined;
9786
+ cacheRead?: number | undefined;
9787
+ cacheWrite?: number | undefined;
9788
+ } | undefined;
9789
+ latencyMs?: number | undefined;
9790
+ error?: {
9791
+ message: string;
9792
+ type: string;
9793
+ vendorErrorCode?: string | undefined;
9794
+ } | undefined;
9795
+ vendorMetadata?: Record<string, unknown> | undefined;
9796
+ servedModel?: string | undefined;
9406
9797
  rawRequestOmitted?: boolean | undefined;
9407
9798
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
9408
9799
  } | undefined;
@@ -9417,8 +9808,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9417
9808
  rationale?: string | undefined;
9418
9809
  }[];
9419
9810
  cohortTags: string[];
9420
- fixtureId: string;
9421
9811
  passed: boolean;
9812
+ fixtureId: string;
9422
9813
  sideEffects: {
9423
9814
  kind: string;
9424
9815
  passed: boolean;
@@ -9445,8 +9836,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9445
9836
  noiseFloorCalibration?: {
9446
9837
  totalEventCount: number;
9447
9838
  perFixtureDimension: {
9448
- fixtureId: string;
9449
9839
  dimensionId: string;
9840
+ fixtureId: string;
9450
9841
  scores: number[];
9451
9842
  sigmaFloor: number;
9452
9843
  n: number;
@@ -9458,6 +9849,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9458
9849
  totalScoredEventCount: number;
9459
9850
  }[];
9460
9851
  fixtureId?: string | undefined;
9852
+ calibratedUnderJudgeIdentity?: {
9853
+ rubricHash?: string[] | undefined;
9854
+ contextScope?: string[] | undefined;
9855
+ model?: string[] | undefined;
9856
+ } | undefined;
9461
9857
  } | undefined;
9462
9858
  varianceDecomposition?: {
9463
9859
  dimensionId: string;
@@ -9485,6 +9881,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9485
9881
  alpha: number;
9486
9882
  };
9487
9883
  caveats: string[];
9884
+ floorFreshness?: {
9885
+ state: "fresh" | "stale" | "undeterminable";
9886
+ comparedFacets: string[];
9887
+ changedFacets: string[];
9888
+ ambiguousFacets: string[];
9889
+ } | undefined;
9890
+ floorRegion?: {
9891
+ bandMean: number;
9892
+ bandMax: number;
9893
+ region: "ceiling" | "mid" | "floor";
9894
+ bandExtrapolated: boolean;
9895
+ counterfactualSigmaAgentDelta: number | null;
9896
+ curveProvenance: {
9897
+ version: string;
9898
+ judge: string;
9899
+ rubricVersion: string;
9900
+ };
9901
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
9902
+ calibrationScoreCount?: number | undefined;
9903
+ calibrationBandExtrapolated?: boolean | undefined;
9904
+ windowStraddlesBoundary?: boolean | undefined;
9905
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
9906
+ } | undefined;
9907
+ lensCompositeCorrection?: {
9908
+ correctedVarianceLens: number;
9909
+ reattributedFromResidual: number;
9910
+ compositeGroupCount: number;
9911
+ bracketedFacets: string[];
9912
+ conservationHolds: boolean;
9913
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
9914
+ bracketedFacetLevels?: {
9915
+ facet: string;
9916
+ distinctLevels: number;
9917
+ }[] | undefined;
9918
+ } | undefined;
9919
+ apparatusResidualContamination?: {
9920
+ contaminated: boolean;
9921
+ driftedFacets: {
9922
+ facet: string;
9923
+ basis: "reserved-namespace" | "declared-control";
9924
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
9925
+ }[];
9926
+ scope?: "reserved-only" | "contract-resolved" | undefined;
9927
+ } | undefined;
9928
+ decompositionMethodVersion?: string | undefined;
9488
9929
  } | undefined;
9489
9930
  lifecycleTransition?: {
9490
9931
  status: "draft" | "quarantined" | "approved" | "locked" | "rejected";
@@ -9494,15 +9935,15 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9494
9935
  pinnedLabel?: string | undefined;
9495
9936
  } | undefined;
9496
9937
  evalRecommendation?: {
9497
- confidence: number;
9498
9938
  rationale: string;
9499
9939
  targetEventId: string;
9500
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
9940
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
9501
9941
  checks: {
9502
9942
  name: string;
9503
9943
  passed: boolean;
9504
9944
  detail: string;
9505
9945
  }[];
9946
+ confidence: number;
9506
9947
  assessedBy: string;
9507
9948
  recomputed?: {
9508
9949
  sigmaObservedSquared: number;
@@ -9514,6 +9955,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9514
9955
  } | undefined;
9515
9956
  } | undefined;
9516
9957
  conformanceFixtureRecord?: {
9958
+ approverId: string;
9517
9959
  fixture: {
9518
9960
  description: string;
9519
9961
  fixtureId: string;
@@ -9550,12 +9992,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9550
9992
  sourceExcerpt?: string | undefined;
9551
9993
  when?: {
9552
9994
  column: string;
9995
+ present?: boolean | undefined;
9553
9996
  equals?: string | undefined;
9554
9997
  oneOf?: string[] | undefined;
9555
- present?: boolean | undefined;
9556
9998
  }[] | undefined;
9557
9999
  };
9558
- approverId: string;
9559
10000
  occurredAt: string;
9560
10001
  sourceSurfaceId?: string | undefined;
9561
10002
  } | undefined;
@@ -9588,40 +10029,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9588
10029
  };
9589
10030
  } | undefined;
9590
10031
  }, {
10032
+ surfaceId: string;
9591
10033
  lensVersion: string;
9592
10034
  correlationId: string;
9593
- surfaceId: string;
9594
10035
  occurredAt: string;
9595
10036
  eventId: string;
9596
10037
  substrate?: {
9597
- provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
10038
+ provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
9598
10039
  timestamp: string;
9599
10040
  lensVersion: string;
9600
10041
  lightSourceIdentifier: string;
9601
- runMode: "production" | "test" | "eval" | "replay" | "local_dev";
10042
+ runMode: "local_dev" | "replay" | "production" | "test" | "eval";
9602
10043
  correlationId: string;
9603
10044
  columns: Record<string, string>;
9604
10045
  } | undefined;
9605
10046
  kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis" | undefined;
9606
10047
  emissionStreamId?: string | undefined;
9607
10048
  light?: {
9608
- rawResponse?: unknown;
9609
- toolCalls?: unknown[] | undefined;
9610
- tokens?: {
9611
- input?: number | undefined;
9612
- output?: number | undefined;
9613
- cacheRead?: number | undefined;
9614
- cacheWrite?: number | undefined;
9615
- } | undefined;
9616
- latencyMs?: number | undefined;
9617
- reasoning?: string | undefined;
9618
- vendorMetadata?: Record<string, unknown> | undefined;
9619
- servedModel?: string | undefined;
9620
- error?: {
9621
- message: string;
9622
- type: string;
9623
- vendorErrorCode?: string | undefined;
9624
- } | undefined;
9625
10049
  rawRequest?: objectInputType<{
9626
10050
  surfaceId: ZodString;
9627
10051
  correlationId: ZodOptional$1<ZodString>;
@@ -9800,6 +10224,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9800
10224
  strict: ZodOptional$1<ZodBoolean>;
9801
10225
  stream: ZodOptional$1<ZodBoolean>;
9802
10226
  }, ZodTypeAny$1, "passthrough"> | undefined;
10227
+ rawResponse?: unknown;
10228
+ reasoning?: string | undefined;
10229
+ toolCalls?: unknown[] | undefined;
10230
+ tokens?: {
10231
+ input?: number | undefined;
10232
+ output?: number | undefined;
10233
+ cacheRead?: number | undefined;
10234
+ cacheWrite?: number | undefined;
10235
+ } | undefined;
10236
+ latencyMs?: number | undefined;
10237
+ error?: {
10238
+ message: string;
10239
+ type: string;
10240
+ vendorErrorCode?: string | undefined;
10241
+ } | undefined;
10242
+ vendorMetadata?: Record<string, unknown> | undefined;
10243
+ servedModel?: string | undefined;
9803
10244
  rawRequestOmitted?: boolean | undefined;
9804
10245
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
9805
10246
  } | undefined;
@@ -9813,8 +10254,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9813
10254
  score?: number | undefined;
9814
10255
  rationale?: string | undefined;
9815
10256
  }[];
9816
- fixtureId: string;
9817
10257
  passed: boolean;
10258
+ fixtureId: string;
9818
10259
  cohortTags?: string[] | undefined;
9819
10260
  sideEffects?: {
9820
10261
  kind: string;
@@ -9842,8 +10283,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9842
10283
  noiseFloorCalibration?: {
9843
10284
  totalEventCount: number;
9844
10285
  perFixtureDimension: {
9845
- fixtureId: string;
9846
10286
  dimensionId: string;
10287
+ fixtureId: string;
9847
10288
  scores: number[];
9848
10289
  sigmaFloor: number;
9849
10290
  n: number;
@@ -9855,6 +10296,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9855
10296
  totalScoredEventCount: number;
9856
10297
  }[];
9857
10298
  fixtureId?: string | undefined;
10299
+ calibratedUnderJudgeIdentity?: {
10300
+ rubricHash?: string[] | undefined;
10301
+ contextScope?: string[] | undefined;
10302
+ model?: string[] | undefined;
10303
+ } | undefined;
9858
10304
  } | undefined;
9859
10305
  varianceDecomposition?: {
9860
10306
  dimensionId: string;
@@ -9882,6 +10328,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9882
10328
  alpha: number;
9883
10329
  };
9884
10330
  caveats?: string[] | undefined;
10331
+ floorFreshness?: {
10332
+ state: "fresh" | "stale" | "undeterminable";
10333
+ comparedFacets: string[];
10334
+ changedFacets: string[];
10335
+ ambiguousFacets: string[];
10336
+ } | undefined;
10337
+ floorRegion?: {
10338
+ bandMean: number;
10339
+ bandMax: number;
10340
+ region: "ceiling" | "mid" | "floor";
10341
+ bandExtrapolated: boolean;
10342
+ counterfactualSigmaAgentDelta: number | null;
10343
+ curveProvenance: {
10344
+ version: string;
10345
+ judge: string;
10346
+ rubricVersion: string;
10347
+ };
10348
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
10349
+ calibrationScoreCount?: number | undefined;
10350
+ calibrationBandExtrapolated?: boolean | undefined;
10351
+ windowStraddlesBoundary?: boolean | undefined;
10352
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
10353
+ } | undefined;
10354
+ lensCompositeCorrection?: {
10355
+ correctedVarianceLens: number;
10356
+ reattributedFromResidual: number;
10357
+ compositeGroupCount: number;
10358
+ bracketedFacets: string[];
10359
+ conservationHolds: boolean;
10360
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
10361
+ bracketedFacetLevels?: {
10362
+ facet: string;
10363
+ distinctLevels: number;
10364
+ }[] | undefined;
10365
+ } | undefined;
10366
+ apparatusResidualContamination?: {
10367
+ contaminated: boolean;
10368
+ driftedFacets: {
10369
+ facet: string;
10370
+ basis: "reserved-namespace" | "declared-control";
10371
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
10372
+ }[];
10373
+ scope?: "reserved-only" | "contract-resolved" | undefined;
10374
+ } | undefined;
10375
+ decompositionMethodVersion?: string | undefined;
9885
10376
  } | undefined;
9886
10377
  lifecycleTransition?: {
9887
10378
  status: "draft" | "quarantined" | "approved" | "locked" | "rejected";
@@ -9891,15 +10382,15 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9891
10382
  pinnedLabel?: string | undefined;
9892
10383
  } | undefined;
9893
10384
  evalRecommendation?: {
9894
- confidence: number;
9895
10385
  rationale: string;
9896
10386
  targetEventId: string;
9897
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
10387
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
9898
10388
  checks: {
9899
10389
  name: string;
9900
10390
  passed: boolean;
9901
10391
  detail: string;
9902
10392
  }[];
10393
+ confidence: number;
9903
10394
  assessedBy: string;
9904
10395
  recomputed?: {
9905
10396
  sigmaObservedSquared: number;
@@ -9911,6 +10402,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9911
10402
  } | undefined;
9912
10403
  } | undefined;
9913
10404
  conformanceFixtureRecord?: {
10405
+ approverId: string;
9914
10406
  fixture: {
9915
10407
  description: string;
9916
10408
  fixtureId: string;
@@ -9947,12 +10439,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9947
10439
  sourceExcerpt?: string | undefined;
9948
10440
  when?: {
9949
10441
  column: string;
10442
+ present?: boolean | undefined;
9950
10443
  equals?: string | undefined;
9951
10444
  oneOf?: string[] | undefined;
9952
- present?: boolean | undefined;
9953
10445
  }[] | undefined;
9954
10446
  };
9955
- approverId: string;
9956
10447
  occurredAt: string;
9957
10448
  sourceSurfaceId?: string | undefined;
9958
10449
  } | undefined;
@@ -10226,7 +10717,6 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10226
10717
  output?: unknown;
10227
10718
  isError?: boolean | undefined;
10228
10719
  })[];
10229
- ok: true;
10230
10720
  tokens: {
10231
10721
  input: number;
10232
10722
  output: number;
@@ -10234,13 +10724,14 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10234
10724
  cacheWrite?: number | undefined;
10235
10725
  };
10236
10726
  latencyMs: number;
10727
+ ok: true;
10237
10728
  rawResponse?: unknown;
10729
+ reasoning?: string | undefined;
10238
10730
  toolCalls?: {
10239
10731
  toolUseId: string;
10240
10732
  toolName: string;
10241
10733
  input?: unknown;
10242
10734
  }[] | undefined;
10243
- reasoning?: string | undefined;
10244
10735
  vendorMetadata?: Record<string, unknown> | undefined;
10245
10736
  servedModel?: string | undefined;
10246
10737
  stopReason?: "tool_use" | "end_turn" | "max_tokens" | "stop_sequence" | "refusal" | "other" | undefined;
@@ -10260,7 +10751,6 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10260
10751
  output?: unknown;
10261
10752
  isError?: boolean | undefined;
10262
10753
  })[];
10263
- ok: true;
10264
10754
  tokens: {
10265
10755
  input: number;
10266
10756
  output: number;
@@ -10268,13 +10758,14 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10268
10758
  cacheWrite?: number | undefined;
10269
10759
  };
10270
10760
  latencyMs: number;
10761
+ ok: true;
10271
10762
  rawResponse?: unknown;
10763
+ reasoning?: string | undefined;
10272
10764
  toolCalls?: {
10273
10765
  toolUseId: string;
10274
10766
  toolName: string;
10275
10767
  input?: unknown;
10276
10768
  }[] | undefined;
10277
- reasoning?: string | undefined;
10278
10769
  vendorMetadata?: Record<string, unknown> | undefined;
10279
10770
  servedModel?: string | undefined;
10280
10771
  stopReason?: "tool_use" | "end_turn" | "max_tokens" | "stop_sequence" | "refusal" | "other" | undefined;
@@ -10306,7 +10797,6 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10306
10797
 
10307
10798
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
10308
10799
  }, "strip", ZodTypeAny$1, {
10309
- ok: false;
10310
10800
  latencyMs: number;
10311
10801
  error: {
10312
10802
  message: string;
@@ -10314,10 +10804,10 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10314
10804
  retryable: boolean;
10315
10805
  vendorErrorCode?: string | undefined;
10316
10806
  };
10807
+ ok: false;
10317
10808
  rawResponse?: unknown;
10318
10809
  vendorMetadata?: Record<string, unknown> | undefined;
10319
10810
  }, {
10320
- ok: false;
10321
10811
  latencyMs: number;
10322
10812
  error: {
10323
10813
  message: string;
@@ -10325,6 +10815,7 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10325
10815
  retryable: boolean;
10326
10816
  vendorErrorCode?: string | undefined;
10327
10817
  };
10818
+ ok: false;
10328
10819
  rawResponse?: unknown;
10329
10820
  vendorMetadata?: Record<string, unknown> | undefined;
10330
10821
  }>]>;
@@ -11299,6 +11790,10 @@ interface SurfaceColumnEmission {
11299
11790
  readonly columns: readonly ColumnEmissionRow[];
11300
11791
 
11301
11792
  readonly undeclaredObserved: readonly string[];
11793
+
11794
+ readonly apparatusFacetsDrifted: readonly string[];
11795
+
11796
+ readonly apparatusObserved: readonly string[];
11302
11797
  }
11303
11798
 
11304
11799
  interface EmissionAuditResponse {