@holonograph/client 0.4.0 → 0.6.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.
package/dist/index.d.ts CHANGED
@@ -1768,6 +1768,9 @@ declare enum ZodFirstPartyTypeKind {
1768
1768
  declare const RunModeSchema: ZodEnum<["production", "test", "eval", "replay", "local_dev"]>;
1769
1769
  type RunMode = TypeOf<typeof RunModeSchema>;
1770
1770
 
1771
+ declare const EmissionExpectationSchema: ZodEnum$1<["always", "conditional"]>;
1772
+ type EmissionExpectation = TypeOf$1<typeof EmissionExpectationSchema>;
1773
+
1771
1774
  declare const SubstrateSnapshotSchema: ZodObject<{
1772
1775
  lensVersion: ZodString;
1773
1776
  lightSourceIdentifier: ZodString;
@@ -1778,19 +1781,19 @@ declare const SubstrateSnapshotSchema: ZodObject<{
1778
1781
 
1779
1782
  columns: ZodRecord<ZodString, ZodString>;
1780
1783
  }, "strip", ZodTypeAny$1, {
1781
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
1784
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
1782
1785
  timestamp: string;
1783
1786
  lensVersion: string;
1784
1787
  lightSourceIdentifier: string;
1785
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
1788
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
1786
1789
  correlationId: string;
1787
1790
  columns: Record<string, string>;
1788
1791
  }, {
1789
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
1792
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
1790
1793
  timestamp: string;
1791
1794
  lensVersion: string;
1792
1795
  lightSourceIdentifier: string;
1793
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
1796
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
1794
1797
  correlationId: string;
1795
1798
  columns: Record<string, string>;
1796
1799
  }>;
@@ -1894,7 +1897,7 @@ declare const SurfaceContractSchema: ZodObject<{
1894
1897
  } | undefined;
1895
1898
  }>>;
1896
1899
  }, "strip", ZodTypeAny$1, {
1897
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
1900
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
1898
1901
  enabled: boolean;
1899
1902
  passThreshold: number;
1900
1903
  failureAction: "retry" | "flag" | "block";
@@ -1919,7 +1922,7 @@ declare const SurfaceContractSchema: ZodObject<{
1919
1922
  }, {
1920
1923
  passThreshold: number;
1921
1924
  failureAction: "retry" | "flag" | "block";
1922
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
1925
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
1923
1926
  retry?: {
1924
1927
  maxAttempts: number;
1925
1928
  augmentPrompt?: string | undefined;
@@ -1940,7 +1943,7 @@ declare const SurfaceContractSchema: ZodObject<{
1940
1943
  } | undefined;
1941
1944
  enabled?: boolean | undefined;
1942
1945
  }>, {
1943
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
1946
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
1944
1947
  enabled: boolean;
1945
1948
  passThreshold: number;
1946
1949
  failureAction: "retry" | "flag" | "block";
@@ -1965,7 +1968,7 @@ declare const SurfaceContractSchema: ZodObject<{
1965
1968
  }, {
1966
1969
  passThreshold: number;
1967
1970
  failureAction: "retry" | "flag" | "block";
1968
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
1971
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
1969
1972
  retry?: {
1970
1973
  maxAttempts: number;
1971
1974
  augmentPrompt?: string | undefined;
@@ -1986,7 +1989,7 @@ declare const SurfaceContractSchema: ZodObject<{
1986
1989
  } | undefined;
1987
1990
  enabled?: boolean | undefined;
1988
1991
  }>, {
1989
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
1992
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
1990
1993
  enabled: boolean;
1991
1994
  passThreshold: number;
1992
1995
  failureAction: "retry" | "flag" | "block";
@@ -2011,7 +2014,7 @@ declare const SurfaceContractSchema: ZodObject<{
2011
2014
  }, {
2012
2015
  passThreshold: number;
2013
2016
  failureAction: "retry" | "flag" | "block";
2014
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2017
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2015
2018
  retry?: {
2016
2019
  maxAttempts: number;
2017
2020
  augmentPrompt?: string | undefined;
@@ -2050,7 +2053,7 @@ declare const SurfaceContractSchema: ZodObject<{
2050
2053
  passThreshold?: number | undefined;
2051
2054
  rubricRef?: string | undefined;
2052
2055
  gatePolicy?: {
2053
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2056
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2054
2057
  enabled: boolean;
2055
2058
  passThreshold: number;
2056
2059
  failureAction: "retry" | "flag" | "block";
@@ -2086,7 +2089,7 @@ declare const SurfaceContractSchema: ZodObject<{
2086
2089
  gatePolicy?: {
2087
2090
  passThreshold: number;
2088
2091
  failureAction: "retry" | "flag" | "block";
2089
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2092
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2090
2093
  retry?: {
2091
2094
  maxAttempts: number;
2092
2095
  augmentPrompt?: string | undefined;
@@ -2123,6 +2126,7 @@ declare const SurfaceContractSchema: ZodObject<{
2123
2126
  semantic: ZodDefault$1<ZodEnum$1<["deployment-state", "diagnostic"]>>;
2124
2127
  values: ZodOptional$1<ZodArray$1<ZodString, "many">>;
2125
2128
  emissionExpectation: ZodOptional$1<ZodEnum$1<["always", "conditional"]>>;
2129
+ status: ZodOptional$1<ZodEnum$1<["active", "forward-declared", "deprecated"]>>;
2126
2130
  }, "strip", ZodTypeAny$1, {
2127
2131
  id: string;
2128
2132
  control: "operator" | "vendor" | "platform" | "third-party";
@@ -2130,6 +2134,7 @@ declare const SurfaceContractSchema: ZodObject<{
2130
2134
  semantic: "deployment-state" | "diagnostic";
2131
2135
  description?: string | undefined;
2132
2136
  values?: string[] | undefined;
2137
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2133
2138
  emissionExpectation?: "always" | "conditional" | undefined;
2134
2139
  }, {
2135
2140
  id: string;
@@ -2138,11 +2143,14 @@ declare const SurfaceContractSchema: ZodObject<{
2138
2143
  description?: string | undefined;
2139
2144
  semantic?: "deployment-state" | "diagnostic" | undefined;
2140
2145
  values?: string[] | undefined;
2146
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2141
2147
  emissionExpectation?: "always" | "conditional" | undefined;
2142
2148
  }>, "many">>;
2143
2149
 
2144
2150
  status: ZodDefault$1<ZodEnum$1<["active", "forward-declared", "deprecated"]>>;
2145
2151
 
2152
+ captureJudgedFailures: ZodOptional$1<ZodBoolean>;
2153
+
2146
2154
  removedDimensions: ZodDefault$1<ZodArray$1<ZodObject<{
2147
2155
 
2148
2156
  removedAt: ZodOptional$1<ZodUnion$1<[ZodString, ZodString]>>;
@@ -2250,7 +2258,7 @@ declare const SurfaceContractSchema: ZodObject<{
2250
2258
  passThreshold?: number | undefined;
2251
2259
  rubricRef?: string | undefined;
2252
2260
  gatePolicy?: {
2253
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2261
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2254
2262
  enabled: boolean;
2255
2263
  passThreshold: number;
2256
2264
  failureAction: "retry" | "flag" | "block";
@@ -2286,6 +2294,7 @@ declare const SurfaceContractSchema: ZodObject<{
2286
2294
  semantic: "deployment-state" | "diagnostic";
2287
2295
  description?: string | undefined;
2288
2296
  values?: string[] | undefined;
2297
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2289
2298
  emissionExpectation?: "always" | "conditional" | undefined;
2290
2299
  }[];
2291
2300
  removedDimensions: {
@@ -2311,6 +2320,7 @@ declare const SurfaceContractSchema: ZodObject<{
2311
2320
  } | undefined;
2312
2321
  }[];
2313
2322
  description?: string | undefined;
2323
+ captureJudgedFailures?: boolean | undefined;
2314
2324
  }, {
2315
2325
  id: string;
2316
2326
  dimensions: {
@@ -2322,7 +2332,7 @@ declare const SurfaceContractSchema: ZodObject<{
2322
2332
  gatePolicy?: {
2323
2333
  passThreshold: number;
2324
2334
  failureAction: "retry" | "flag" | "block";
2325
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2335
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2326
2336
  retry?: {
2327
2337
  maxAttempts: number;
2328
2338
  augmentPrompt?: string | undefined;
@@ -2358,8 +2368,10 @@ declare const SurfaceContractSchema: ZodObject<{
2358
2368
  description?: string | undefined;
2359
2369
  semantic?: "deployment-state" | "diagnostic" | undefined;
2360
2370
  values?: string[] | undefined;
2371
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2361
2372
  emissionExpectation?: "always" | "conditional" | undefined;
2362
2373
  }[] | undefined;
2374
+ captureJudgedFailures?: boolean | undefined;
2363
2375
  removedDimensions?: {
2364
2376
  id: string;
2365
2377
  removedAt?: string | undefined;
@@ -2391,11 +2403,11 @@ declare const SurfaceContractSchema: ZodObject<{
2391
2403
  }, "strip", ZodTypeAny$1, {
2392
2404
  surfaceId: string;
2393
2405
  lightSourceId: string | readonly string[];
2394
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2406
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2395
2407
  }, {
2396
2408
  surfaceId: string;
2397
2409
  lightSourceId: string | readonly string[];
2398
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2410
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2399
2411
  }>, "many">>;
2400
2412
 
2401
2413
  pricing: ZodOptional$1<ZodRecord<ZodString, ZodObject<{
@@ -2513,7 +2525,7 @@ declare const SurfaceContractSchema: ZodObject<{
2513
2525
  } | undefined;
2514
2526
  }>>;
2515
2527
  }, "strip", ZodTypeAny$1, {
2516
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2528
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2517
2529
  enabled: boolean;
2518
2530
  passThreshold: number;
2519
2531
  failureAction: "retry" | "flag" | "block";
@@ -2538,7 +2550,7 @@ declare const SurfaceContractSchema: ZodObject<{
2538
2550
  }, {
2539
2551
  passThreshold: number;
2540
2552
  failureAction: "retry" | "flag" | "block";
2541
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2553
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2542
2554
  retry?: {
2543
2555
  maxAttempts: number;
2544
2556
  augmentPrompt?: string | undefined;
@@ -2559,7 +2571,7 @@ declare const SurfaceContractSchema: ZodObject<{
2559
2571
  } | undefined;
2560
2572
  enabled?: boolean | undefined;
2561
2573
  }>, {
2562
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2574
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2563
2575
  enabled: boolean;
2564
2576
  passThreshold: number;
2565
2577
  failureAction: "retry" | "flag" | "block";
@@ -2584,7 +2596,7 @@ declare const SurfaceContractSchema: ZodObject<{
2584
2596
  }, {
2585
2597
  passThreshold: number;
2586
2598
  failureAction: "retry" | "flag" | "block";
2587
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2599
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2588
2600
  retry?: {
2589
2601
  maxAttempts: number;
2590
2602
  augmentPrompt?: string | undefined;
@@ -2605,7 +2617,7 @@ declare const SurfaceContractSchema: ZodObject<{
2605
2617
  } | undefined;
2606
2618
  enabled?: boolean | undefined;
2607
2619
  }>, {
2608
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2620
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2609
2621
  enabled: boolean;
2610
2622
  passThreshold: number;
2611
2623
  failureAction: "retry" | "flag" | "block";
@@ -2630,7 +2642,7 @@ declare const SurfaceContractSchema: ZodObject<{
2630
2642
  }, {
2631
2643
  passThreshold: number;
2632
2644
  failureAction: "retry" | "flag" | "block";
2633
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2645
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2634
2646
  retry?: {
2635
2647
  maxAttempts: number;
2636
2648
  augmentPrompt?: string | undefined;
@@ -2669,7 +2681,7 @@ declare const SurfaceContractSchema: ZodObject<{
2669
2681
  passThreshold?: number | undefined;
2670
2682
  rubricRef?: string | undefined;
2671
2683
  gatePolicy?: {
2672
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2684
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2673
2685
  enabled: boolean;
2674
2686
  passThreshold: number;
2675
2687
  failureAction: "retry" | "flag" | "block";
@@ -2705,7 +2717,7 @@ declare const SurfaceContractSchema: ZodObject<{
2705
2717
  gatePolicy?: {
2706
2718
  passThreshold: number;
2707
2719
  failureAction: "retry" | "flag" | "block";
2708
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2720
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2709
2721
  retry?: {
2710
2722
  maxAttempts: number;
2711
2723
  augmentPrompt?: string | undefined;
@@ -2734,7 +2746,7 @@ declare const SurfaceContractSchema: ZodObject<{
2734
2746
  }, "strip", ZodTypeAny$1, {
2735
2747
  surfaceId: string;
2736
2748
  lightSourceId: string | readonly string[];
2737
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2749
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2738
2750
  dimensions?: {
2739
2751
  id: string;
2740
2752
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -2742,7 +2754,7 @@ declare const SurfaceContractSchema: ZodObject<{
2742
2754
  passThreshold?: number | undefined;
2743
2755
  rubricRef?: string | undefined;
2744
2756
  gatePolicy?: {
2745
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2757
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2746
2758
  enabled: boolean;
2747
2759
  passThreshold: number;
2748
2760
  failureAction: "retry" | "flag" | "block";
@@ -2773,7 +2785,7 @@ declare const SurfaceContractSchema: ZodObject<{
2773
2785
  }, {
2774
2786
  surfaceId: string;
2775
2787
  lightSourceId: string | readonly string[];
2776
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2788
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2777
2789
  dimensions?: {
2778
2790
  id: string;
2779
2791
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -2783,7 +2795,7 @@ declare const SurfaceContractSchema: ZodObject<{
2783
2795
  gatePolicy?: {
2784
2796
  passThreshold: number;
2785
2797
  failureAction: "retry" | "flag" | "block";
2786
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2798
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2787
2799
  retry?: {
2788
2800
  maxAttempts: number;
2789
2801
  augmentPrompt?: string | undefined;
@@ -2903,7 +2915,7 @@ declare const SurfaceContractSchema: ZodObject<{
2903
2915
  } | undefined;
2904
2916
  }>>;
2905
2917
  }, "strip", ZodTypeAny$1, {
2906
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2918
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2907
2919
  enabled: boolean;
2908
2920
  passThreshold: number;
2909
2921
  failureAction: "retry" | "flag" | "block";
@@ -2928,7 +2940,7 @@ declare const SurfaceContractSchema: ZodObject<{
2928
2940
  }, {
2929
2941
  passThreshold: number;
2930
2942
  failureAction: "retry" | "flag" | "block";
2931
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2943
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2932
2944
  retry?: {
2933
2945
  maxAttempts: number;
2934
2946
  augmentPrompt?: string | undefined;
@@ -2949,7 +2961,7 @@ declare const SurfaceContractSchema: ZodObject<{
2949
2961
  } | undefined;
2950
2962
  enabled?: boolean | undefined;
2951
2963
  }>, {
2952
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2964
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2953
2965
  enabled: boolean;
2954
2966
  passThreshold: number;
2955
2967
  failureAction: "retry" | "flag" | "block";
@@ -2974,7 +2986,7 @@ declare const SurfaceContractSchema: ZodObject<{
2974
2986
  }, {
2975
2987
  passThreshold: number;
2976
2988
  failureAction: "retry" | "flag" | "block";
2977
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2989
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2978
2990
  retry?: {
2979
2991
  maxAttempts: number;
2980
2992
  augmentPrompt?: string | undefined;
@@ -2995,7 +3007,7 @@ declare const SurfaceContractSchema: ZodObject<{
2995
3007
  } | undefined;
2996
3008
  enabled?: boolean | undefined;
2997
3009
  }>, {
2998
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3010
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2999
3011
  enabled: boolean;
3000
3012
  passThreshold: number;
3001
3013
  failureAction: "retry" | "flag" | "block";
@@ -3020,7 +3032,7 @@ declare const SurfaceContractSchema: ZodObject<{
3020
3032
  }, {
3021
3033
  passThreshold: number;
3022
3034
  failureAction: "retry" | "flag" | "block";
3023
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3035
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3024
3036
  retry?: {
3025
3037
  maxAttempts: number;
3026
3038
  augmentPrompt?: string | undefined;
@@ -3059,7 +3071,7 @@ declare const SurfaceContractSchema: ZodObject<{
3059
3071
  passThreshold?: number | undefined;
3060
3072
  rubricRef?: string | undefined;
3061
3073
  gatePolicy?: {
3062
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3074
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3063
3075
  enabled: boolean;
3064
3076
  passThreshold: number;
3065
3077
  failureAction: "retry" | "flag" | "block";
@@ -3095,7 +3107,7 @@ declare const SurfaceContractSchema: ZodObject<{
3095
3107
  gatePolicy?: {
3096
3108
  passThreshold: number;
3097
3109
  failureAction: "retry" | "flag" | "block";
3098
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3110
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3099
3111
  retry?: {
3100
3112
  maxAttempts: number;
3101
3113
  augmentPrompt?: string | undefined;
@@ -3124,7 +3136,7 @@ declare const SurfaceContractSchema: ZodObject<{
3124
3136
  }, "strip", ZodTypeAny$1, {
3125
3137
  surfaceId: string;
3126
3138
  lightSourceId: string | readonly string[];
3127
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3139
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3128
3140
  dimensions?: {
3129
3141
  id: string;
3130
3142
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3132,7 +3144,7 @@ declare const SurfaceContractSchema: ZodObject<{
3132
3144
  passThreshold?: number | undefined;
3133
3145
  rubricRef?: string | undefined;
3134
3146
  gatePolicy?: {
3135
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3147
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3136
3148
  enabled: boolean;
3137
3149
  passThreshold: number;
3138
3150
  failureAction: "retry" | "flag" | "block";
@@ -3163,7 +3175,7 @@ declare const SurfaceContractSchema: ZodObject<{
3163
3175
  }, {
3164
3176
  surfaceId: string;
3165
3177
  lightSourceId: string | readonly string[];
3166
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3178
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3167
3179
  dimensions?: {
3168
3180
  id: string;
3169
3181
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3173,7 +3185,7 @@ declare const SurfaceContractSchema: ZodObject<{
3173
3185
  gatePolicy?: {
3174
3186
  passThreshold: number;
3175
3187
  failureAction: "retry" | "flag" | "block";
3176
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3188
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3177
3189
  retry?: {
3178
3190
  maxAttempts: number;
3179
3191
  augmentPrompt?: string | undefined;
@@ -3293,7 +3305,7 @@ declare const SurfaceContractSchema: ZodObject<{
3293
3305
  } | undefined;
3294
3306
  }>>;
3295
3307
  }, "strip", ZodTypeAny$1, {
3296
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3308
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3297
3309
  enabled: boolean;
3298
3310
  passThreshold: number;
3299
3311
  failureAction: "retry" | "flag" | "block";
@@ -3318,7 +3330,7 @@ declare const SurfaceContractSchema: ZodObject<{
3318
3330
  }, {
3319
3331
  passThreshold: number;
3320
3332
  failureAction: "retry" | "flag" | "block";
3321
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3333
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3322
3334
  retry?: {
3323
3335
  maxAttempts: number;
3324
3336
  augmentPrompt?: string | undefined;
@@ -3339,7 +3351,7 @@ declare const SurfaceContractSchema: ZodObject<{
3339
3351
  } | undefined;
3340
3352
  enabled?: boolean | undefined;
3341
3353
  }>, {
3342
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3354
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3343
3355
  enabled: boolean;
3344
3356
  passThreshold: number;
3345
3357
  failureAction: "retry" | "flag" | "block";
@@ -3364,7 +3376,7 @@ declare const SurfaceContractSchema: ZodObject<{
3364
3376
  }, {
3365
3377
  passThreshold: number;
3366
3378
  failureAction: "retry" | "flag" | "block";
3367
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3379
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3368
3380
  retry?: {
3369
3381
  maxAttempts: number;
3370
3382
  augmentPrompt?: string | undefined;
@@ -3385,7 +3397,7 @@ declare const SurfaceContractSchema: ZodObject<{
3385
3397
  } | undefined;
3386
3398
  enabled?: boolean | undefined;
3387
3399
  }>, {
3388
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3400
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3389
3401
  enabled: boolean;
3390
3402
  passThreshold: number;
3391
3403
  failureAction: "retry" | "flag" | "block";
@@ -3410,7 +3422,7 @@ declare const SurfaceContractSchema: ZodObject<{
3410
3422
  }, {
3411
3423
  passThreshold: number;
3412
3424
  failureAction: "retry" | "flag" | "block";
3413
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3425
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3414
3426
  retry?: {
3415
3427
  maxAttempts: number;
3416
3428
  augmentPrompt?: string | undefined;
@@ -3449,7 +3461,7 @@ declare const SurfaceContractSchema: ZodObject<{
3449
3461
  passThreshold?: number | undefined;
3450
3462
  rubricRef?: string | undefined;
3451
3463
  gatePolicy?: {
3452
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3464
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3453
3465
  enabled: boolean;
3454
3466
  passThreshold: number;
3455
3467
  failureAction: "retry" | "flag" | "block";
@@ -3485,7 +3497,7 @@ declare const SurfaceContractSchema: ZodObject<{
3485
3497
  gatePolicy?: {
3486
3498
  passThreshold: number;
3487
3499
  failureAction: "retry" | "flag" | "block";
3488
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3500
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3489
3501
  retry?: {
3490
3502
  maxAttempts: number;
3491
3503
  augmentPrompt?: string | undefined;
@@ -3514,7 +3526,7 @@ declare const SurfaceContractSchema: ZodObject<{
3514
3526
  }, "strip", ZodTypeAny$1, {
3515
3527
  surfaceId: string;
3516
3528
  lightSourceId: string | readonly string[];
3517
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3529
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3518
3530
  dimensions?: {
3519
3531
  id: string;
3520
3532
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3522,7 +3534,7 @@ declare const SurfaceContractSchema: ZodObject<{
3522
3534
  passThreshold?: number | undefined;
3523
3535
  rubricRef?: string | undefined;
3524
3536
  gatePolicy?: {
3525
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3537
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3526
3538
  enabled: boolean;
3527
3539
  passThreshold: number;
3528
3540
  failureAction: "retry" | "flag" | "block";
@@ -3553,7 +3565,7 @@ declare const SurfaceContractSchema: ZodObject<{
3553
3565
  }, {
3554
3566
  surfaceId: string;
3555
3567
  lightSourceId: string | readonly string[];
3556
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3568
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3557
3569
  dimensions?: {
3558
3570
  id: string;
3559
3571
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3563,7 +3575,7 @@ declare const SurfaceContractSchema: ZodObject<{
3563
3575
  gatePolicy?: {
3564
3576
  passThreshold: number;
3565
3577
  failureAction: "retry" | "flag" | "block";
3566
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3578
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3567
3579
  retry?: {
3568
3580
  maxAttempts: number;
3569
3581
  augmentPrompt?: string | undefined;
@@ -3683,7 +3695,7 @@ declare const SurfaceContractSchema: ZodObject<{
3683
3695
  } | undefined;
3684
3696
  }>>;
3685
3697
  }, "strip", ZodTypeAny$1, {
3686
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3698
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3687
3699
  enabled: boolean;
3688
3700
  passThreshold: number;
3689
3701
  failureAction: "retry" | "flag" | "block";
@@ -3708,7 +3720,7 @@ declare const SurfaceContractSchema: ZodObject<{
3708
3720
  }, {
3709
3721
  passThreshold: number;
3710
3722
  failureAction: "retry" | "flag" | "block";
3711
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3723
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3712
3724
  retry?: {
3713
3725
  maxAttempts: number;
3714
3726
  augmentPrompt?: string | undefined;
@@ -3729,7 +3741,7 @@ declare const SurfaceContractSchema: ZodObject<{
3729
3741
  } | undefined;
3730
3742
  enabled?: boolean | undefined;
3731
3743
  }>, {
3732
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3744
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3733
3745
  enabled: boolean;
3734
3746
  passThreshold: number;
3735
3747
  failureAction: "retry" | "flag" | "block";
@@ -3754,7 +3766,7 @@ declare const SurfaceContractSchema: ZodObject<{
3754
3766
  }, {
3755
3767
  passThreshold: number;
3756
3768
  failureAction: "retry" | "flag" | "block";
3757
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3769
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3758
3770
  retry?: {
3759
3771
  maxAttempts: number;
3760
3772
  augmentPrompt?: string | undefined;
@@ -3775,7 +3787,7 @@ declare const SurfaceContractSchema: ZodObject<{
3775
3787
  } | undefined;
3776
3788
  enabled?: boolean | undefined;
3777
3789
  }>, {
3778
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3790
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3779
3791
  enabled: boolean;
3780
3792
  passThreshold: number;
3781
3793
  failureAction: "retry" | "flag" | "block";
@@ -3800,7 +3812,7 @@ declare const SurfaceContractSchema: ZodObject<{
3800
3812
  }, {
3801
3813
  passThreshold: number;
3802
3814
  failureAction: "retry" | "flag" | "block";
3803
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3815
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3804
3816
  retry?: {
3805
3817
  maxAttempts: number;
3806
3818
  augmentPrompt?: string | undefined;
@@ -3839,7 +3851,7 @@ declare const SurfaceContractSchema: ZodObject<{
3839
3851
  passThreshold?: number | undefined;
3840
3852
  rubricRef?: string | undefined;
3841
3853
  gatePolicy?: {
3842
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3854
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3843
3855
  enabled: boolean;
3844
3856
  passThreshold: number;
3845
3857
  failureAction: "retry" | "flag" | "block";
@@ -3875,7 +3887,7 @@ declare const SurfaceContractSchema: ZodObject<{
3875
3887
  gatePolicy?: {
3876
3888
  passThreshold: number;
3877
3889
  failureAction: "retry" | "flag" | "block";
3878
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3890
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3879
3891
  retry?: {
3880
3892
  maxAttempts: number;
3881
3893
  augmentPrompt?: string | undefined;
@@ -3904,7 +3916,7 @@ declare const SurfaceContractSchema: ZodObject<{
3904
3916
  }, "strip", ZodTypeAny$1, {
3905
3917
  surfaceId: string;
3906
3918
  lightSourceId: string | readonly string[];
3907
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3919
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3908
3920
  dimensions?: {
3909
3921
  id: string;
3910
3922
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3912,7 +3924,7 @@ declare const SurfaceContractSchema: ZodObject<{
3912
3924
  passThreshold?: number | undefined;
3913
3925
  rubricRef?: string | undefined;
3914
3926
  gatePolicy?: {
3915
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3927
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3916
3928
  enabled: boolean;
3917
3929
  passThreshold: number;
3918
3930
  failureAction: "retry" | "flag" | "block";
@@ -3943,7 +3955,7 @@ declare const SurfaceContractSchema: ZodObject<{
3943
3955
  }, {
3944
3956
  surfaceId: string;
3945
3957
  lightSourceId: string | readonly string[];
3946
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3958
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3947
3959
  dimensions?: {
3948
3960
  id: string;
3949
3961
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -3953,7 +3965,7 @@ declare const SurfaceContractSchema: ZodObject<{
3953
3965
  gatePolicy?: {
3954
3966
  passThreshold: number;
3955
3967
  failureAction: "retry" | "flag" | "block";
3956
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3968
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3957
3969
  retry?: {
3958
3970
  maxAttempts: number;
3959
3971
  augmentPrompt?: string | undefined;
@@ -4073,7 +4085,7 @@ declare const SurfaceContractSchema: ZodObject<{
4073
4085
  } | undefined;
4074
4086
  }>>;
4075
4087
  }, "strip", ZodTypeAny$1, {
4076
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4088
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4077
4089
  enabled: boolean;
4078
4090
  passThreshold: number;
4079
4091
  failureAction: "retry" | "flag" | "block";
@@ -4098,7 +4110,7 @@ declare const SurfaceContractSchema: ZodObject<{
4098
4110
  }, {
4099
4111
  passThreshold: number;
4100
4112
  failureAction: "retry" | "flag" | "block";
4101
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4113
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4102
4114
  retry?: {
4103
4115
  maxAttempts: number;
4104
4116
  augmentPrompt?: string | undefined;
@@ -4119,7 +4131,7 @@ declare const SurfaceContractSchema: ZodObject<{
4119
4131
  } | undefined;
4120
4132
  enabled?: boolean | undefined;
4121
4133
  }>, {
4122
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4134
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4123
4135
  enabled: boolean;
4124
4136
  passThreshold: number;
4125
4137
  failureAction: "retry" | "flag" | "block";
@@ -4144,7 +4156,7 @@ declare const SurfaceContractSchema: ZodObject<{
4144
4156
  }, {
4145
4157
  passThreshold: number;
4146
4158
  failureAction: "retry" | "flag" | "block";
4147
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4159
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4148
4160
  retry?: {
4149
4161
  maxAttempts: number;
4150
4162
  augmentPrompt?: string | undefined;
@@ -4165,7 +4177,7 @@ declare const SurfaceContractSchema: ZodObject<{
4165
4177
  } | undefined;
4166
4178
  enabled?: boolean | undefined;
4167
4179
  }>, {
4168
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4180
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4169
4181
  enabled: boolean;
4170
4182
  passThreshold: number;
4171
4183
  failureAction: "retry" | "flag" | "block";
@@ -4190,7 +4202,7 @@ declare const SurfaceContractSchema: ZodObject<{
4190
4202
  }, {
4191
4203
  passThreshold: number;
4192
4204
  failureAction: "retry" | "flag" | "block";
4193
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4205
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4194
4206
  retry?: {
4195
4207
  maxAttempts: number;
4196
4208
  augmentPrompt?: string | undefined;
@@ -4229,7 +4241,7 @@ declare const SurfaceContractSchema: ZodObject<{
4229
4241
  passThreshold?: number | undefined;
4230
4242
  rubricRef?: string | undefined;
4231
4243
  gatePolicy?: {
4232
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4244
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4233
4245
  enabled: boolean;
4234
4246
  passThreshold: number;
4235
4247
  failureAction: "retry" | "flag" | "block";
@@ -4265,7 +4277,7 @@ declare const SurfaceContractSchema: ZodObject<{
4265
4277
  gatePolicy?: {
4266
4278
  passThreshold: number;
4267
4279
  failureAction: "retry" | "flag" | "block";
4268
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4280
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4269
4281
  retry?: {
4270
4282
  maxAttempts: number;
4271
4283
  augmentPrompt?: string | undefined;
@@ -4294,7 +4306,7 @@ declare const SurfaceContractSchema: ZodObject<{
4294
4306
  }, "strip", ZodTypeAny$1, {
4295
4307
  surfaceId: string;
4296
4308
  lightSourceId: string | readonly string[];
4297
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4309
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4298
4310
  dimensions?: {
4299
4311
  id: string;
4300
4312
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4302,7 +4314,7 @@ declare const SurfaceContractSchema: ZodObject<{
4302
4314
  passThreshold?: number | undefined;
4303
4315
  rubricRef?: string | undefined;
4304
4316
  gatePolicy?: {
4305
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4317
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4306
4318
  enabled: boolean;
4307
4319
  passThreshold: number;
4308
4320
  failureAction: "retry" | "flag" | "block";
@@ -4333,7 +4345,7 @@ declare const SurfaceContractSchema: ZodObject<{
4333
4345
  }, {
4334
4346
  surfaceId: string;
4335
4347
  lightSourceId: string | readonly string[];
4336
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4348
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4337
4349
  dimensions?: {
4338
4350
  id: string;
4339
4351
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4343,7 +4355,7 @@ declare const SurfaceContractSchema: ZodObject<{
4343
4355
  gatePolicy?: {
4344
4356
  passThreshold: number;
4345
4357
  failureAction: "retry" | "flag" | "block";
4346
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4358
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4347
4359
  retry?: {
4348
4360
  maxAttempts: number;
4349
4361
  augmentPrompt?: string | undefined;
@@ -4374,7 +4386,7 @@ declare const SurfaceContractSchema: ZodObject<{
4374
4386
  skillDrafting: {
4375
4387
  surfaceId: string;
4376
4388
  lightSourceId: string | readonly string[];
4377
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4389
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4378
4390
  dimensions?: {
4379
4391
  id: string;
4380
4392
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4382,7 +4394,7 @@ declare const SurfaceContractSchema: ZodObject<{
4382
4394
  passThreshold?: number | undefined;
4383
4395
  rubricRef?: string | undefined;
4384
4396
  gatePolicy?: {
4385
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4397
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4386
4398
  enabled: boolean;
4387
4399
  passThreshold: number;
4388
4400
  failureAction: "retry" | "flag" | "block";
@@ -4414,7 +4426,7 @@ declare const SurfaceContractSchema: ZodObject<{
4414
4426
  lessonDrafting?: {
4415
4427
  surfaceId: string;
4416
4428
  lightSourceId: string | readonly string[];
4417
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4429
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4418
4430
  dimensions?: {
4419
4431
  id: string;
4420
4432
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4422,7 +4434,7 @@ declare const SurfaceContractSchema: ZodObject<{
4422
4434
  passThreshold?: number | undefined;
4423
4435
  rubricRef?: string | undefined;
4424
4436
  gatePolicy?: {
4425
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4437
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4426
4438
  enabled: boolean;
4427
4439
  passThreshold: number;
4428
4440
  failureAction: "retry" | "flag" | "block";
@@ -4454,7 +4466,7 @@ declare const SurfaceContractSchema: ZodObject<{
4454
4466
  fixtureGeneration?: {
4455
4467
  surfaceId: string;
4456
4468
  lightSourceId: string | readonly string[];
4457
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4469
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4458
4470
  dimensions?: {
4459
4471
  id: string;
4460
4472
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4462,7 +4474,7 @@ declare const SurfaceContractSchema: ZodObject<{
4462
4474
  passThreshold?: number | undefined;
4463
4475
  rubricRef?: string | undefined;
4464
4476
  gatePolicy?: {
4465
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4477
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4466
4478
  enabled: boolean;
4467
4479
  passThreshold: number;
4468
4480
  failureAction: "retry" | "flag" | "block";
@@ -4494,7 +4506,7 @@ declare const SurfaceContractSchema: ZodObject<{
4494
4506
  codeChangeRecommendationDrafting?: {
4495
4507
  surfaceId: string;
4496
4508
  lightSourceId: string | readonly string[];
4497
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4509
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4498
4510
  dimensions?: {
4499
4511
  id: string;
4500
4512
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4502,7 +4514,7 @@ declare const SurfaceContractSchema: ZodObject<{
4502
4514
  passThreshold?: number | undefined;
4503
4515
  rubricRef?: string | undefined;
4504
4516
  gatePolicy?: {
4505
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4517
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4506
4518
  enabled: boolean;
4507
4519
  passThreshold: number;
4508
4520
  failureAction: "retry" | "flag" | "block";
@@ -4534,7 +4546,7 @@ declare const SurfaceContractSchema: ZodObject<{
4534
4546
  blastRadiusJudging?: {
4535
4547
  surfaceId: string;
4536
4548
  lightSourceId: string | readonly string[];
4537
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4549
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4538
4550
  dimensions?: {
4539
4551
  id: string;
4540
4552
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4542,7 +4554,7 @@ declare const SurfaceContractSchema: ZodObject<{
4542
4554
  passThreshold?: number | undefined;
4543
4555
  rubricRef?: string | undefined;
4544
4556
  gatePolicy?: {
4545
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4557
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4546
4558
  enabled: boolean;
4547
4559
  passThreshold: number;
4548
4560
  failureAction: "retry" | "flag" | "block";
@@ -4575,7 +4587,7 @@ declare const SurfaceContractSchema: ZodObject<{
4575
4587
  skillDrafting: {
4576
4588
  surfaceId: string;
4577
4589
  lightSourceId: string | readonly string[];
4578
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4590
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4579
4591
  dimensions?: {
4580
4592
  id: string;
4581
4593
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4585,7 +4597,7 @@ declare const SurfaceContractSchema: ZodObject<{
4585
4597
  gatePolicy?: {
4586
4598
  passThreshold: number;
4587
4599
  failureAction: "retry" | "flag" | "block";
4588
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4600
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4589
4601
  retry?: {
4590
4602
  maxAttempts: number;
4591
4603
  augmentPrompt?: string | undefined;
@@ -4615,7 +4627,7 @@ declare const SurfaceContractSchema: ZodObject<{
4615
4627
  lessonDrafting?: {
4616
4628
  surfaceId: string;
4617
4629
  lightSourceId: string | readonly string[];
4618
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4630
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4619
4631
  dimensions?: {
4620
4632
  id: string;
4621
4633
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4625,7 +4637,7 @@ declare const SurfaceContractSchema: ZodObject<{
4625
4637
  gatePolicy?: {
4626
4638
  passThreshold: number;
4627
4639
  failureAction: "retry" | "flag" | "block";
4628
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4640
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4629
4641
  retry?: {
4630
4642
  maxAttempts: number;
4631
4643
  augmentPrompt?: string | undefined;
@@ -4655,7 +4667,7 @@ declare const SurfaceContractSchema: ZodObject<{
4655
4667
  fixtureGeneration?: {
4656
4668
  surfaceId: string;
4657
4669
  lightSourceId: string | readonly string[];
4658
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4670
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4659
4671
  dimensions?: {
4660
4672
  id: string;
4661
4673
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4665,7 +4677,7 @@ declare const SurfaceContractSchema: ZodObject<{
4665
4677
  gatePolicy?: {
4666
4678
  passThreshold: number;
4667
4679
  failureAction: "retry" | "flag" | "block";
4668
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4680
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4669
4681
  retry?: {
4670
4682
  maxAttempts: number;
4671
4683
  augmentPrompt?: string | undefined;
@@ -4695,7 +4707,7 @@ declare const SurfaceContractSchema: ZodObject<{
4695
4707
  codeChangeRecommendationDrafting?: {
4696
4708
  surfaceId: string;
4697
4709
  lightSourceId: string | readonly string[];
4698
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4710
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4699
4711
  dimensions?: {
4700
4712
  id: string;
4701
4713
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4705,7 +4717,7 @@ declare const SurfaceContractSchema: ZodObject<{
4705
4717
  gatePolicy?: {
4706
4718
  passThreshold: number;
4707
4719
  failureAction: "retry" | "flag" | "block";
4708
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4720
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4709
4721
  retry?: {
4710
4722
  maxAttempts: number;
4711
4723
  augmentPrompt?: string | undefined;
@@ -4735,7 +4747,7 @@ declare const SurfaceContractSchema: ZodObject<{
4735
4747
  blastRadiusJudging?: {
4736
4748
  surfaceId: string;
4737
4749
  lightSourceId: string | readonly string[];
4738
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4750
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4739
4751
  dimensions?: {
4740
4752
  id: string;
4741
4753
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4745,7 +4757,7 @@ declare const SurfaceContractSchema: ZodObject<{
4745
4757
  gatePolicy?: {
4746
4758
  passThreshold: number;
4747
4759
  failureAction: "retry" | "flag" | "block";
4748
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4760
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4749
4761
  retry?: {
4750
4762
  maxAttempts: number;
4751
4763
  augmentPrompt?: string | undefined;
@@ -4785,7 +4797,7 @@ declare const SurfaceContractSchema: ZodObject<{
4785
4797
  passThreshold?: number | undefined;
4786
4798
  rubricRef?: string | undefined;
4787
4799
  gatePolicy?: {
4788
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4800
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4789
4801
  enabled: boolean;
4790
4802
  passThreshold: number;
4791
4803
  failureAction: "retry" | "flag" | "block";
@@ -4821,6 +4833,7 @@ declare const SurfaceContractSchema: ZodObject<{
4821
4833
  semantic: "deployment-state" | "diagnostic";
4822
4834
  description?: string | undefined;
4823
4835
  values?: string[] | undefined;
4836
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
4824
4837
  emissionExpectation?: "always" | "conditional" | undefined;
4825
4838
  }[];
4826
4839
  removedDimensions: {
@@ -4846,12 +4859,13 @@ declare const SurfaceContractSchema: ZodObject<{
4846
4859
  } | undefined;
4847
4860
  }[];
4848
4861
  description?: string | undefined;
4862
+ captureJudgedFailures?: boolean | undefined;
4849
4863
  }[];
4850
4864
  description?: string | undefined;
4851
4865
  routings?: {
4852
4866
  surfaceId: string;
4853
4867
  lightSourceId: string | readonly string[];
4854
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4868
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4855
4869
  }[] | undefined;
4856
4870
  pricing?: Record<string, {
4857
4871
  perMillionInput: number;
@@ -4863,7 +4877,7 @@ declare const SurfaceContractSchema: ZodObject<{
4863
4877
  skillDrafting: {
4864
4878
  surfaceId: string;
4865
4879
  lightSourceId: string | readonly string[];
4866
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4880
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4867
4881
  dimensions?: {
4868
4882
  id: string;
4869
4883
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4871,7 +4885,7 @@ declare const SurfaceContractSchema: ZodObject<{
4871
4885
  passThreshold?: number | undefined;
4872
4886
  rubricRef?: string | undefined;
4873
4887
  gatePolicy?: {
4874
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4888
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4875
4889
  enabled: boolean;
4876
4890
  passThreshold: number;
4877
4891
  failureAction: "retry" | "flag" | "block";
@@ -4903,7 +4917,7 @@ declare const SurfaceContractSchema: ZodObject<{
4903
4917
  lessonDrafting?: {
4904
4918
  surfaceId: string;
4905
4919
  lightSourceId: string | readonly string[];
4906
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4920
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4907
4921
  dimensions?: {
4908
4922
  id: string;
4909
4923
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4911,7 +4925,7 @@ declare const SurfaceContractSchema: ZodObject<{
4911
4925
  passThreshold?: number | undefined;
4912
4926
  rubricRef?: string | undefined;
4913
4927
  gatePolicy?: {
4914
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4928
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4915
4929
  enabled: boolean;
4916
4930
  passThreshold: number;
4917
4931
  failureAction: "retry" | "flag" | "block";
@@ -4943,7 +4957,7 @@ declare const SurfaceContractSchema: ZodObject<{
4943
4957
  fixtureGeneration?: {
4944
4958
  surfaceId: string;
4945
4959
  lightSourceId: string | readonly string[];
4946
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4960
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4947
4961
  dimensions?: {
4948
4962
  id: string;
4949
4963
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4951,7 +4965,7 @@ declare const SurfaceContractSchema: ZodObject<{
4951
4965
  passThreshold?: number | undefined;
4952
4966
  rubricRef?: string | undefined;
4953
4967
  gatePolicy?: {
4954
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4968
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4955
4969
  enabled: boolean;
4956
4970
  passThreshold: number;
4957
4971
  failureAction: "retry" | "flag" | "block";
@@ -4983,7 +4997,7 @@ declare const SurfaceContractSchema: ZodObject<{
4983
4997
  codeChangeRecommendationDrafting?: {
4984
4998
  surfaceId: string;
4985
4999
  lightSourceId: string | readonly string[];
4986
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5000
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4987
5001
  dimensions?: {
4988
5002
  id: string;
4989
5003
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4991,7 +5005,7 @@ declare const SurfaceContractSchema: ZodObject<{
4991
5005
  passThreshold?: number | undefined;
4992
5006
  rubricRef?: string | undefined;
4993
5007
  gatePolicy?: {
4994
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
5008
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4995
5009
  enabled: boolean;
4996
5010
  passThreshold: number;
4997
5011
  failureAction: "retry" | "flag" | "block";
@@ -5023,7 +5037,7 @@ declare const SurfaceContractSchema: ZodObject<{
5023
5037
  blastRadiusJudging?: {
5024
5038
  surfaceId: string;
5025
5039
  lightSourceId: string | readonly string[];
5026
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5040
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5027
5041
  dimensions?: {
5028
5042
  id: string;
5029
5043
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5031,7 +5045,7 @@ declare const SurfaceContractSchema: ZodObject<{
5031
5045
  passThreshold?: number | undefined;
5032
5046
  rubricRef?: string | undefined;
5033
5047
  gatePolicy?: {
5034
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
5048
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
5035
5049
  enabled: boolean;
5036
5050
  passThreshold: number;
5037
5051
  failureAction: "retry" | "flag" | "block";
@@ -5074,7 +5088,7 @@ declare const SurfaceContractSchema: ZodObject<{
5074
5088
  gatePolicy?: {
5075
5089
  passThreshold: number;
5076
5090
  failureAction: "retry" | "flag" | "block";
5077
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5091
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5078
5092
  retry?: {
5079
5093
  maxAttempts: number;
5080
5094
  augmentPrompt?: string | undefined;
@@ -5110,8 +5124,10 @@ declare const SurfaceContractSchema: ZodObject<{
5110
5124
  description?: string | undefined;
5111
5125
  semantic?: "deployment-state" | "diagnostic" | undefined;
5112
5126
  values?: string[] | undefined;
5127
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
5113
5128
  emissionExpectation?: "always" | "conditional" | undefined;
5114
5129
  }[] | undefined;
5130
+ captureJudgedFailures?: boolean | undefined;
5115
5131
  removedDimensions?: {
5116
5132
  id: string;
5117
5133
  removedAt?: string | undefined;
@@ -5139,7 +5155,7 @@ declare const SurfaceContractSchema: ZodObject<{
5139
5155
  routings?: {
5140
5156
  surfaceId: string;
5141
5157
  lightSourceId: string | readonly string[];
5142
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5158
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5143
5159
  }[] | undefined;
5144
5160
  pricing?: Record<string, {
5145
5161
  perMillionInput: number;
@@ -5151,7 +5167,7 @@ declare const SurfaceContractSchema: ZodObject<{
5151
5167
  skillDrafting: {
5152
5168
  surfaceId: string;
5153
5169
  lightSourceId: string | readonly string[];
5154
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5170
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5155
5171
  dimensions?: {
5156
5172
  id: string;
5157
5173
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5161,7 +5177,7 @@ declare const SurfaceContractSchema: ZodObject<{
5161
5177
  gatePolicy?: {
5162
5178
  passThreshold: number;
5163
5179
  failureAction: "retry" | "flag" | "block";
5164
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5180
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5165
5181
  retry?: {
5166
5182
  maxAttempts: number;
5167
5183
  augmentPrompt?: string | undefined;
@@ -5191,7 +5207,7 @@ declare const SurfaceContractSchema: ZodObject<{
5191
5207
  lessonDrafting?: {
5192
5208
  surfaceId: string;
5193
5209
  lightSourceId: string | readonly string[];
5194
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5210
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5195
5211
  dimensions?: {
5196
5212
  id: string;
5197
5213
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5201,7 +5217,7 @@ declare const SurfaceContractSchema: ZodObject<{
5201
5217
  gatePolicy?: {
5202
5218
  passThreshold: number;
5203
5219
  failureAction: "retry" | "flag" | "block";
5204
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5220
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5205
5221
  retry?: {
5206
5222
  maxAttempts: number;
5207
5223
  augmentPrompt?: string | undefined;
@@ -5231,7 +5247,7 @@ declare const SurfaceContractSchema: ZodObject<{
5231
5247
  fixtureGeneration?: {
5232
5248
  surfaceId: string;
5233
5249
  lightSourceId: string | readonly string[];
5234
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5250
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5235
5251
  dimensions?: {
5236
5252
  id: string;
5237
5253
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5241,7 +5257,7 @@ declare const SurfaceContractSchema: ZodObject<{
5241
5257
  gatePolicy?: {
5242
5258
  passThreshold: number;
5243
5259
  failureAction: "retry" | "flag" | "block";
5244
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5260
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5245
5261
  retry?: {
5246
5262
  maxAttempts: number;
5247
5263
  augmentPrompt?: string | undefined;
@@ -5271,7 +5287,7 @@ declare const SurfaceContractSchema: ZodObject<{
5271
5287
  codeChangeRecommendationDrafting?: {
5272
5288
  surfaceId: string;
5273
5289
  lightSourceId: string | readonly string[];
5274
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5290
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5275
5291
  dimensions?: {
5276
5292
  id: string;
5277
5293
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5281,7 +5297,7 @@ declare const SurfaceContractSchema: ZodObject<{
5281
5297
  gatePolicy?: {
5282
5298
  passThreshold: number;
5283
5299
  failureAction: "retry" | "flag" | "block";
5284
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5300
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5285
5301
  retry?: {
5286
5302
  maxAttempts: number;
5287
5303
  augmentPrompt?: string | undefined;
@@ -5311,7 +5327,7 @@ declare const SurfaceContractSchema: ZodObject<{
5311
5327
  blastRadiusJudging?: {
5312
5328
  surfaceId: string;
5313
5329
  lightSourceId: string | readonly string[];
5314
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5330
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5315
5331
  dimensions?: {
5316
5332
  id: string;
5317
5333
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -5321,7 +5337,7 @@ declare const SurfaceContractSchema: ZodObject<{
5321
5337
  gatePolicy?: {
5322
5338
  passThreshold: number;
5323
5339
  failureAction: "retry" | "flag" | "block";
5324
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5340
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5325
5341
  retry?: {
5326
5342
  maxAttempts: number;
5327
5343
  augmentPrompt?: string | undefined;
@@ -5928,10 +5944,29 @@ declare const LightSnapshotSchema: ZodObject<{
5928
5944
 
5929
5945
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
5930
5946
 
5947
+ servedModel: ZodOptional$1<ZodString>;
5948
+
5931
5949
  rawRequestOmitted: ZodOptional$1<ZodBoolean>;
5932
5950
 
5933
5951
  rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
5934
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;
5935
5970
  rawRequest?: objectOutputType<{
5936
5971
  surfaceId: ZodString;
5937
5972
  correlationId: ZodOptional$1<ZodString>;
@@ -6110,8 +6145,10 @@ declare const LightSnapshotSchema: ZodObject<{
6110
6145
  strict: ZodOptional$1<ZodBoolean>;
6111
6146
  stream: ZodOptional$1<ZodBoolean>;
6112
6147
  }, ZodTypeAny$1, "passthrough"> | undefined;
6148
+ rawRequestOmitted?: boolean | undefined;
6149
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6150
+ }, {
6113
6151
  rawResponse?: unknown;
6114
- reasoning?: string | undefined;
6115
6152
  toolCalls?: unknown[] | undefined;
6116
6153
  tokens?: {
6117
6154
  input?: number | undefined;
@@ -6120,15 +6157,14 @@ declare const LightSnapshotSchema: ZodObject<{
6120
6157
  cacheWrite?: number | undefined;
6121
6158
  } | undefined;
6122
6159
  latencyMs?: number | undefined;
6160
+ reasoning?: string | undefined;
6161
+ vendorMetadata?: Record<string, unknown> | undefined;
6162
+ servedModel?: string | undefined;
6123
6163
  error?: {
6124
6164
  message: string;
6125
6165
  type: string;
6126
6166
  vendorErrorCode?: string | undefined;
6127
6167
  } | undefined;
6128
- vendorMetadata?: Record<string, unknown> | undefined;
6129
- rawRequestOmitted?: boolean | undefined;
6130
- rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6131
- }, {
6132
6168
  rawRequest?: objectInputType<{
6133
6169
  surfaceId: ZodString;
6134
6170
  correlationId: ZodOptional$1<ZodString>;
@@ -6307,22 +6343,6 @@ declare const LightSnapshotSchema: ZodObject<{
6307
6343
  strict: ZodOptional$1<ZodBoolean>;
6308
6344
  stream: ZodOptional$1<ZodBoolean>;
6309
6345
  }, ZodTypeAny$1, "passthrough"> | undefined;
6310
- rawResponse?: unknown;
6311
- reasoning?: string | undefined;
6312
- toolCalls?: unknown[] | undefined;
6313
- tokens?: {
6314
- input?: number | undefined;
6315
- output?: number | undefined;
6316
- cacheRead?: number | undefined;
6317
- cacheWrite?: number | undefined;
6318
- } | undefined;
6319
- latencyMs?: number | undefined;
6320
- error?: {
6321
- message: string;
6322
- type: string;
6323
- vendorErrorCode?: string | undefined;
6324
- } | undefined;
6325
- vendorMetadata?: Record<string, unknown> | undefined;
6326
6346
  rawRequestOmitted?: boolean | undefined;
6327
6347
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6328
6348
  }>;
@@ -6392,7 +6412,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
6392
6412
 
6393
6413
  lensVersion: ZodString;
6394
6414
 
6395
- kind: ZodDefault$1<ZodEnum$1<["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"]>>;
6415
+ kind: ZodDefault$1<ZodEnum$1<["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"]>>;
6396
6416
 
6397
6417
  light: ZodOptional$1<ZodObject<{
6398
6418
 
@@ -6970,10 +6990,29 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
6970
6990
 
6971
6991
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
6972
6992
 
6993
+ servedModel: ZodOptional$1<ZodString>;
6994
+
6973
6995
  rawRequestOmitted: ZodOptional$1<ZodBoolean>;
6974
6996
 
6975
6997
  rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
6976
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;
6977
7016
  rawRequest?: objectOutputType<{
6978
7017
  surfaceId: ZodString;
6979
7018
  correlationId: ZodOptional$1<ZodString>;
@@ -7152,8 +7191,10 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7152
7191
  strict: ZodOptional$1<ZodBoolean>;
7153
7192
  stream: ZodOptional$1<ZodBoolean>;
7154
7193
  }, ZodTypeAny$1, "passthrough"> | undefined;
7194
+ rawRequestOmitted?: boolean | undefined;
7195
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7196
+ }, {
7155
7197
  rawResponse?: unknown;
7156
- reasoning?: string | undefined;
7157
7198
  toolCalls?: unknown[] | undefined;
7158
7199
  tokens?: {
7159
7200
  input?: number | undefined;
@@ -7162,15 +7203,14 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7162
7203
  cacheWrite?: number | undefined;
7163
7204
  } | undefined;
7164
7205
  latencyMs?: number | undefined;
7206
+ reasoning?: string | undefined;
7207
+ vendorMetadata?: Record<string, unknown> | undefined;
7208
+ servedModel?: string | undefined;
7165
7209
  error?: {
7166
7210
  message: string;
7167
7211
  type: string;
7168
7212
  vendorErrorCode?: string | undefined;
7169
7213
  } | undefined;
7170
- vendorMetadata?: Record<string, unknown> | undefined;
7171
- rawRequestOmitted?: boolean | undefined;
7172
- rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7173
- }, {
7174
7214
  rawRequest?: objectInputType<{
7175
7215
  surfaceId: ZodString;
7176
7216
  correlationId: ZodOptional$1<ZodString>;
@@ -7349,22 +7389,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7349
7389
  strict: ZodOptional$1<ZodBoolean>;
7350
7390
  stream: ZodOptional$1<ZodBoolean>;
7351
7391
  }, ZodTypeAny$1, "passthrough"> | undefined;
7352
- rawResponse?: unknown;
7353
- reasoning?: string | undefined;
7354
- toolCalls?: unknown[] | undefined;
7355
- tokens?: {
7356
- input?: number | undefined;
7357
- output?: number | undefined;
7358
- cacheRead?: number | undefined;
7359
- cacheWrite?: number | undefined;
7360
- } | undefined;
7361
- latencyMs?: number | undefined;
7362
- error?: {
7363
- message: string;
7364
- type: string;
7365
- vendorErrorCode?: string | undefined;
7366
- } | undefined;
7367
- vendorMetadata?: Record<string, unknown> | undefined;
7368
7392
  rawRequestOmitted?: boolean | undefined;
7369
7393
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7370
7394
  }>>;
@@ -7378,19 +7402,19 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7378
7402
  timestamp: ZodString;
7379
7403
  columns: ZodRecord<ZodString, ZodString>;
7380
7404
  }, "strip", ZodTypeAny$1, {
7381
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
7405
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
7382
7406
  timestamp: string;
7383
7407
  lensVersion: string;
7384
7408
  lightSourceIdentifier: string;
7385
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
7409
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
7386
7410
  correlationId: string;
7387
7411
  columns: Record<string, string>;
7388
7412
  }, {
7389
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
7413
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
7390
7414
  timestamp: string;
7391
7415
  lensVersion: string;
7392
7416
  lightSourceIdentifier: string;
7393
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
7417
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
7394
7418
  correlationId: string;
7395
7419
  columns: Record<string, string>;
7396
7420
  }>>;
@@ -7504,8 +7528,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7504
7528
  rationale?: string | undefined;
7505
7529
  }[];
7506
7530
  cohortTags: string[];
7507
- passed: boolean;
7508
7531
  fixtureId: string;
7532
+ passed: boolean;
7509
7533
  sideEffects: {
7510
7534
  kind: string;
7511
7535
  passed: boolean;
@@ -7533,8 +7557,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7533
7557
  score?: number | undefined;
7534
7558
  rationale?: string | undefined;
7535
7559
  }[];
7536
- passed: boolean;
7537
7560
  fixtureId: string;
7561
+ passed: boolean;
7538
7562
  cohortTags?: string[] | undefined;
7539
7563
  sideEffects?: {
7540
7564
  kind: string;
@@ -7586,14 +7610,14 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7586
7610
 
7587
7611
  n: ZodNumber;
7588
7612
  }, "strip", ZodTypeAny$1, {
7589
- dimensionId: string;
7590
7613
  fixtureId: string;
7614
+ dimensionId: string;
7591
7615
  scores: number[];
7592
7616
  sigmaFloor: number;
7593
7617
  n: number;
7594
7618
  }, {
7595
- dimensionId: string;
7596
7619
  fixtureId: string;
7620
+ dimensionId: string;
7597
7621
  scores: number[];
7598
7622
  sigmaFloor: number;
7599
7623
  n: number;
@@ -7621,8 +7645,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7621
7645
  }, "strip", ZodTypeAny$1, {
7622
7646
  totalEventCount: number;
7623
7647
  perFixtureDimension: {
7624
- dimensionId: string;
7625
7648
  fixtureId: string;
7649
+ dimensionId: string;
7626
7650
  scores: number[];
7627
7651
  sigmaFloor: number;
7628
7652
  n: number;
@@ -7637,8 +7661,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7637
7661
  }, {
7638
7662
  totalEventCount: number;
7639
7663
  perFixtureDimension: {
7640
- dimensionId: string;
7641
7664
  fixtureId: string;
7665
+ dimensionId: string;
7642
7666
  scores: number[];
7643
7667
  sigmaFloor: number;
7644
7668
  n: number;
@@ -7857,6 +7881,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7857
7881
 
7858
7882
  assessedBy: ZodString;
7859
7883
  }, "strip", ZodTypeAny$1, {
7884
+ confidence: number;
7860
7885
  rationale: string;
7861
7886
  targetEventId: string;
7862
7887
  recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
@@ -7865,7 +7890,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7865
7890
  passed: boolean;
7866
7891
  detail: string;
7867
7892
  }[];
7868
- confidence: number;
7869
7893
  assessedBy: string;
7870
7894
  recomputed?: {
7871
7895
  sigmaObservedSquared: number;
@@ -7876,6 +7900,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7876
7900
  identityCloses: boolean;
7877
7901
  } | undefined;
7878
7902
  }, {
7903
+ confidence: number;
7879
7904
  rationale: string;
7880
7905
  targetEventId: string;
7881
7906
  recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
@@ -7884,7 +7909,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7884
7909
  passed: boolean;
7885
7910
  detail: string;
7886
7911
  }[];
7887
- confidence: number;
7888
7912
  assessedBy: string;
7889
7913
  recomputed?: {
7890
7914
  sigmaObservedSquared: number;
@@ -7987,24 +8011,24 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7987
8011
  present: ZodOptional$1<ZodBoolean>;
7988
8012
  }, "strip", ZodTypeAny$1, {
7989
8013
  column: string;
7990
- present?: boolean | undefined;
7991
8014
  equals?: string | undefined;
7992
8015
  oneOf?: string[] | undefined;
8016
+ present?: boolean | undefined;
7993
8017
  }, {
7994
8018
  column: string;
7995
- present?: boolean | undefined;
7996
8019
  equals?: string | undefined;
7997
8020
  oneOf?: string[] | undefined;
8021
+ present?: boolean | undefined;
7998
8022
  }>, {
7999
8023
  column: string;
8000
- present?: boolean | undefined;
8001
8024
  equals?: string | undefined;
8002
8025
  oneOf?: string[] | undefined;
8026
+ present?: boolean | undefined;
8003
8027
  }, {
8004
8028
  column: string;
8005
- present?: boolean | undefined;
8006
8029
  equals?: string | undefined;
8007
8030
  oneOf?: string[] | undefined;
8031
+ present?: boolean | undefined;
8008
8032
  }>, "many">>;
8009
8033
  }, "strip", ZodTypeAny$1, {
8010
8034
  description: string;
@@ -8042,9 +8066,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8042
8066
  sourceExcerpt?: string | undefined;
8043
8067
  when?: {
8044
8068
  column: string;
8045
- present?: boolean | undefined;
8046
8069
  equals?: string | undefined;
8047
8070
  oneOf?: string[] | undefined;
8071
+ present?: boolean | undefined;
8048
8072
  }[] | undefined;
8049
8073
  }, {
8050
8074
  description: string;
@@ -8082,9 +8106,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8082
8106
  sourceExcerpt?: string | undefined;
8083
8107
  when?: {
8084
8108
  column: string;
8085
- present?: boolean | undefined;
8086
8109
  equals?: string | undefined;
8087
8110
  oneOf?: string[] | undefined;
8111
+ present?: boolean | undefined;
8088
8112
  }[] | undefined;
8089
8113
  }>, {
8090
8114
  description: string;
@@ -8122,9 +8146,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8122
8146
  sourceExcerpt?: string | undefined;
8123
8147
  when?: {
8124
8148
  column: string;
8125
- present?: boolean | undefined;
8126
8149
  equals?: string | undefined;
8127
8150
  oneOf?: string[] | undefined;
8151
+ present?: boolean | undefined;
8128
8152
  }[] | undefined;
8129
8153
  }, {
8130
8154
  description: string;
@@ -8162,9 +8186,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8162
8186
  sourceExcerpt?: string | undefined;
8163
8187
  when?: {
8164
8188
  column: string;
8165
- present?: boolean | undefined;
8166
8189
  equals?: string | undefined;
8167
8190
  oneOf?: string[] | undefined;
8191
+ present?: boolean | undefined;
8168
8192
  }[] | undefined;
8169
8193
  }>;
8170
8194
 
@@ -8174,7 +8198,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8174
8198
 
8175
8199
  sourceSurfaceId: ZodOptional$1<ZodString>;
8176
8200
  }, "strip", ZodTypeAny$1, {
8177
- approverId: string;
8178
8201
  fixture: {
8179
8202
  description: string;
8180
8203
  fixtureId: string;
@@ -8211,15 +8234,15 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8211
8234
  sourceExcerpt?: string | undefined;
8212
8235
  when?: {
8213
8236
  column: string;
8214
- present?: boolean | undefined;
8215
8237
  equals?: string | undefined;
8216
8238
  oneOf?: string[] | undefined;
8239
+ present?: boolean | undefined;
8217
8240
  }[] | undefined;
8218
8241
  };
8242
+ approverId: string;
8219
8243
  occurredAt: string;
8220
8244
  sourceSurfaceId?: string | undefined;
8221
8245
  }, {
8222
- approverId: string;
8223
8246
  fixture: {
8224
8247
  description: string;
8225
8248
  fixtureId: string;
@@ -8256,11 +8279,12 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8256
8279
  sourceExcerpt?: string | undefined;
8257
8280
  when?: {
8258
8281
  column: string;
8259
- present?: boolean | undefined;
8260
8282
  equals?: string | undefined;
8261
8283
  oneOf?: string[] | undefined;
8284
+ present?: boolean | undefined;
8262
8285
  }[] | undefined;
8263
8286
  };
8287
+ approverId: string;
8264
8288
  occurredAt: string;
8265
8289
  sourceSurfaceId?: string | undefined;
8266
8290
  }>>;
@@ -8310,24 +8334,103 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8310
8334
  emissionStreamId: string;
8311
8335
  witnessedAtMs: number;
8312
8336
  }>>;
8337
+
8338
+ orthogonalityHypothesis: ZodOptional$1<ZodObject<{
8339
+
8340
+ draftId: ZodString;
8341
+
8342
+ targetSurfaceId: ZodString;
8343
+
8344
+ targetDimensionId: ZodString;
8345
+
8346
+ candidateColumnId: ZodString;
8347
+
8348
+ proposedHypothesis: ZodString;
8349
+
8350
+ evidence: ZodObject<{
8351
+ scoredEventCount: ZodNumber;
8352
+ sigmaObservedSquared: ZodNumber;
8353
+ sigmaAgentSquared: ZodNumber;
8354
+ sigmaAgentCILower: ZodNumber;
8355
+ }, "strip", ZodTypeAny$1, {
8356
+ scoredEventCount: number;
8357
+ sigmaObservedSquared: number;
8358
+ sigmaAgentSquared: number;
8359
+ sigmaAgentCILower: number;
8360
+ }, {
8361
+ scoredEventCount: number;
8362
+ sigmaObservedSquared: number;
8363
+ sigmaAgentSquared: number;
8364
+ sigmaAgentCILower: number;
8365
+ }>;
8366
+
8367
+ approverId: ZodString;
8368
+
8369
+ occurredAt: ZodString;
8370
+ }, "strip", ZodTypeAny$1, {
8371
+ approverId: string;
8372
+ occurredAt: string;
8373
+ draftId: string;
8374
+ targetSurfaceId: string;
8375
+ targetDimensionId: string;
8376
+ candidateColumnId: string;
8377
+ proposedHypothesis: string;
8378
+ evidence: {
8379
+ scoredEventCount: number;
8380
+ sigmaObservedSquared: number;
8381
+ sigmaAgentSquared: number;
8382
+ sigmaAgentCILower: number;
8383
+ };
8384
+ }, {
8385
+ approverId: string;
8386
+ occurredAt: string;
8387
+ draftId: string;
8388
+ targetSurfaceId: string;
8389
+ targetDimensionId: string;
8390
+ candidateColumnId: string;
8391
+ proposedHypothesis: string;
8392
+ evidence: {
8393
+ scoredEventCount: number;
8394
+ sigmaObservedSquared: number;
8395
+ sigmaAgentSquared: number;
8396
+ sigmaAgentCILower: number;
8397
+ };
8398
+ }>>;
8313
8399
  }, "strip", ZodTypeAny$1, {
8314
8400
  lensVersion: string;
8315
8401
  correlationId: string;
8316
8402
  surfaceId: string;
8317
- 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";
8403
+ 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";
8318
8404
  occurredAt: string;
8319
8405
  eventId: string;
8320
8406
  substrate?: {
8321
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
8407
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
8322
8408
  timestamp: string;
8323
8409
  lensVersion: string;
8324
8410
  lightSourceIdentifier: string;
8325
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
8411
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
8326
8412
  correlationId: string;
8327
8413
  columns: Record<string, string>;
8328
8414
  } | undefined;
8329
8415
  emissionStreamId?: string | undefined;
8330
8416
  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;
8331
8434
  rawRequest?: objectOutputType<{
8332
8435
  surfaceId: ZodString;
8333
8436
  correlationId: ZodOptional$1<ZodString>;
@@ -8506,22 +8609,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8506
8609
  strict: ZodOptional$1<ZodBoolean>;
8507
8610
  stream: ZodOptional$1<ZodBoolean>;
8508
8611
  }, ZodTypeAny$1, "passthrough"> | undefined;
8509
- rawResponse?: unknown;
8510
- reasoning?: string | undefined;
8511
- toolCalls?: unknown[] | undefined;
8512
- tokens?: {
8513
- input?: number | undefined;
8514
- output?: number | undefined;
8515
- cacheRead?: number | undefined;
8516
- cacheWrite?: number | undefined;
8517
- } | undefined;
8518
- latencyMs?: number | undefined;
8519
- error?: {
8520
- message: string;
8521
- type: string;
8522
- vendorErrorCode?: string | undefined;
8523
- } | undefined;
8524
- vendorMetadata?: Record<string, unknown> | undefined;
8525
8612
  rawRequestOmitted?: boolean | undefined;
8526
8613
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
8527
8614
  } | undefined;
@@ -8536,8 +8623,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8536
8623
  rationale?: string | undefined;
8537
8624
  }[];
8538
8625
  cohortTags: string[];
8539
- passed: boolean;
8540
8626
  fixtureId: string;
8627
+ passed: boolean;
8541
8628
  sideEffects: {
8542
8629
  kind: string;
8543
8630
  passed: boolean;
@@ -8564,8 +8651,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8564
8651
  noiseFloorCalibration?: {
8565
8652
  totalEventCount: number;
8566
8653
  perFixtureDimension: {
8567
- dimensionId: string;
8568
8654
  fixtureId: string;
8655
+ dimensionId: string;
8569
8656
  scores: number[];
8570
8657
  sigmaFloor: number;
8571
8658
  n: number;
@@ -8613,6 +8700,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8613
8700
  pinnedLabel?: string | undefined;
8614
8701
  } | undefined;
8615
8702
  evalRecommendation?: {
8703
+ confidence: number;
8616
8704
  rationale: string;
8617
8705
  targetEventId: string;
8618
8706
  recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
@@ -8621,7 +8709,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8621
8709
  passed: boolean;
8622
8710
  detail: string;
8623
8711
  }[];
8624
- confidence: number;
8625
8712
  assessedBy: string;
8626
8713
  recomputed?: {
8627
8714
  sigmaObservedSquared: number;
@@ -8633,7 +8720,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8633
8720
  } | undefined;
8634
8721
  } | undefined;
8635
8722
  conformanceFixtureRecord?: {
8636
- approverId: string;
8637
8723
  fixture: {
8638
8724
  description: string;
8639
8725
  fixtureId: string;
@@ -8670,11 +8756,12 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8670
8756
  sourceExcerpt?: string | undefined;
8671
8757
  when?: {
8672
8758
  column: string;
8673
- present?: boolean | undefined;
8674
8759
  equals?: string | undefined;
8675
8760
  oneOf?: string[] | undefined;
8761
+ present?: boolean | undefined;
8676
8762
  }[] | undefined;
8677
8763
  };
8764
+ approverId: string;
8678
8765
  occurredAt: string;
8679
8766
  sourceSurfaceId?: string | undefined;
8680
8767
  } | undefined;
@@ -8691,6 +8778,21 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8691
8778
  emissionStreamId: string;
8692
8779
  witnessedAtMs: number;
8693
8780
  } | undefined;
8781
+ orthogonalityHypothesis?: {
8782
+ approverId: string;
8783
+ occurredAt: string;
8784
+ draftId: string;
8785
+ targetSurfaceId: string;
8786
+ targetDimensionId: string;
8787
+ candidateColumnId: string;
8788
+ proposedHypothesis: string;
8789
+ evidence: {
8790
+ scoredEventCount: number;
8791
+ sigmaObservedSquared: number;
8792
+ sigmaAgentSquared: number;
8793
+ sigmaAgentCILower: number;
8794
+ };
8795
+ } | undefined;
8694
8796
  }, {
8695
8797
  lensVersion: string;
8696
8798
  correlationId: string;
@@ -8698,17 +8800,34 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8698
8800
  occurredAt: string;
8699
8801
  eventId: string;
8700
8802
  substrate?: {
8701
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
8803
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
8702
8804
  timestamp: string;
8703
8805
  lensVersion: string;
8704
8806
  lightSourceIdentifier: string;
8705
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
8807
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
8706
8808
  correlationId: string;
8707
8809
  columns: Record<string, string>;
8708
8810
  } | undefined;
8709
- 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" | undefined;
8811
+ 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;
8710
8812
  emissionStreamId?: string | undefined;
8711
8813
  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;
8712
8831
  rawRequest?: objectInputType<{
8713
8832
  surfaceId: ZodString;
8714
8833
  correlationId: ZodOptional$1<ZodString>;
@@ -8887,22 +9006,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8887
9006
  strict: ZodOptional$1<ZodBoolean>;
8888
9007
  stream: ZodOptional$1<ZodBoolean>;
8889
9008
  }, ZodTypeAny$1, "passthrough"> | undefined;
8890
- rawResponse?: unknown;
8891
- reasoning?: string | undefined;
8892
- toolCalls?: unknown[] | undefined;
8893
- tokens?: {
8894
- input?: number | undefined;
8895
- output?: number | undefined;
8896
- cacheRead?: number | undefined;
8897
- cacheWrite?: number | undefined;
8898
- } | undefined;
8899
- latencyMs?: number | undefined;
8900
- error?: {
8901
- message: string;
8902
- type: string;
8903
- vendorErrorCode?: string | undefined;
8904
- } | undefined;
8905
- vendorMetadata?: Record<string, unknown> | undefined;
8906
9009
  rawRequestOmitted?: boolean | undefined;
8907
9010
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
8908
9011
  } | undefined;
@@ -8916,8 +9019,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8916
9019
  score?: number | undefined;
8917
9020
  rationale?: string | undefined;
8918
9021
  }[];
8919
- passed: boolean;
8920
9022
  fixtureId: string;
9023
+ passed: boolean;
8921
9024
  cohortTags?: string[] | undefined;
8922
9025
  sideEffects?: {
8923
9026
  kind: string;
@@ -8945,8 +9048,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8945
9048
  noiseFloorCalibration?: {
8946
9049
  totalEventCount: number;
8947
9050
  perFixtureDimension: {
8948
- dimensionId: string;
8949
9051
  fixtureId: string;
9052
+ dimensionId: string;
8950
9053
  scores: number[];
8951
9054
  sigmaFloor: number;
8952
9055
  n: number;
@@ -8994,6 +9097,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8994
9097
  pinnedLabel?: string | undefined;
8995
9098
  } | undefined;
8996
9099
  evalRecommendation?: {
9100
+ confidence: number;
8997
9101
  rationale: string;
8998
9102
  targetEventId: string;
8999
9103
  recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
@@ -9002,7 +9106,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9002
9106
  passed: boolean;
9003
9107
  detail: string;
9004
9108
  }[];
9005
- confidence: number;
9006
9109
  assessedBy: string;
9007
9110
  recomputed?: {
9008
9111
  sigmaObservedSquared: number;
@@ -9014,7 +9117,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9014
9117
  } | undefined;
9015
9118
  } | undefined;
9016
9119
  conformanceFixtureRecord?: {
9017
- approverId: string;
9018
9120
  fixture: {
9019
9121
  description: string;
9020
9122
  fixtureId: string;
@@ -9051,11 +9153,12 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9051
9153
  sourceExcerpt?: string | undefined;
9052
9154
  when?: {
9053
9155
  column: string;
9054
- present?: boolean | undefined;
9055
9156
  equals?: string | undefined;
9056
9157
  oneOf?: string[] | undefined;
9158
+ present?: boolean | undefined;
9057
9159
  }[] | undefined;
9058
9160
  };
9161
+ approverId: string;
9059
9162
  occurredAt: string;
9060
9163
  sourceSurfaceId?: string | undefined;
9061
9164
  } | undefined;
@@ -9072,24 +9175,56 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9072
9175
  emissionStreamId: string;
9073
9176
  witnessedAtMs: number;
9074
9177
  } | undefined;
9178
+ orthogonalityHypothesis?: {
9179
+ approverId: string;
9180
+ occurredAt: string;
9181
+ draftId: string;
9182
+ targetSurfaceId: string;
9183
+ targetDimensionId: string;
9184
+ candidateColumnId: string;
9185
+ proposedHypothesis: string;
9186
+ evidence: {
9187
+ scoredEventCount: number;
9188
+ sigmaObservedSquared: number;
9189
+ sigmaAgentSquared: number;
9190
+ sigmaAgentCILower: number;
9191
+ };
9192
+ } | undefined;
9075
9193
  }>, {
9076
9194
  lensVersion: string;
9077
9195
  correlationId: string;
9078
9196
  surfaceId: string;
9079
- 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";
9197
+ 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";
9080
9198
  occurredAt: string;
9081
9199
  eventId: string;
9082
9200
  substrate?: {
9083
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
9201
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
9084
9202
  timestamp: string;
9085
9203
  lensVersion: string;
9086
9204
  lightSourceIdentifier: string;
9087
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
9205
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
9088
9206
  correlationId: string;
9089
9207
  columns: Record<string, string>;
9090
9208
  } | undefined;
9091
9209
  emissionStreamId?: string | undefined;
9092
9210
  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;
9093
9228
  rawRequest?: objectOutputType<{
9094
9229
  surfaceId: ZodString;
9095
9230
  correlationId: ZodOptional$1<ZodString>;
@@ -9268,22 +9403,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9268
9403
  strict: ZodOptional$1<ZodBoolean>;
9269
9404
  stream: ZodOptional$1<ZodBoolean>;
9270
9405
  }, ZodTypeAny$1, "passthrough"> | undefined;
9271
- rawResponse?: unknown;
9272
- reasoning?: string | undefined;
9273
- toolCalls?: unknown[] | undefined;
9274
- tokens?: {
9275
- input?: number | undefined;
9276
- output?: number | undefined;
9277
- cacheRead?: number | undefined;
9278
- cacheWrite?: number | undefined;
9279
- } | undefined;
9280
- latencyMs?: number | undefined;
9281
- error?: {
9282
- message: string;
9283
- type: string;
9284
- vendorErrorCode?: string | undefined;
9285
- } | undefined;
9286
- vendorMetadata?: Record<string, unknown> | undefined;
9287
9406
  rawRequestOmitted?: boolean | undefined;
9288
9407
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
9289
9408
  } | undefined;
@@ -9298,8 +9417,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9298
9417
  rationale?: string | undefined;
9299
9418
  }[];
9300
9419
  cohortTags: string[];
9301
- passed: boolean;
9302
9420
  fixtureId: string;
9421
+ passed: boolean;
9303
9422
  sideEffects: {
9304
9423
  kind: string;
9305
9424
  passed: boolean;
@@ -9326,8 +9445,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9326
9445
  noiseFloorCalibration?: {
9327
9446
  totalEventCount: number;
9328
9447
  perFixtureDimension: {
9329
- dimensionId: string;
9330
9448
  fixtureId: string;
9449
+ dimensionId: string;
9331
9450
  scores: number[];
9332
9451
  sigmaFloor: number;
9333
9452
  n: number;
@@ -9375,6 +9494,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9375
9494
  pinnedLabel?: string | undefined;
9376
9495
  } | undefined;
9377
9496
  evalRecommendation?: {
9497
+ confidence: number;
9378
9498
  rationale: string;
9379
9499
  targetEventId: string;
9380
9500
  recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
@@ -9383,7 +9503,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9383
9503
  passed: boolean;
9384
9504
  detail: string;
9385
9505
  }[];
9386
- confidence: number;
9387
9506
  assessedBy: string;
9388
9507
  recomputed?: {
9389
9508
  sigmaObservedSquared: number;
@@ -9395,7 +9514,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9395
9514
  } | undefined;
9396
9515
  } | undefined;
9397
9516
  conformanceFixtureRecord?: {
9398
- approverId: string;
9399
9517
  fixture: {
9400
9518
  description: string;
9401
9519
  fixtureId: string;
@@ -9432,11 +9550,12 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9432
9550
  sourceExcerpt?: string | undefined;
9433
9551
  when?: {
9434
9552
  column: string;
9435
- present?: boolean | undefined;
9436
9553
  equals?: string | undefined;
9437
9554
  oneOf?: string[] | undefined;
9555
+ present?: boolean | undefined;
9438
9556
  }[] | undefined;
9439
9557
  };
9558
+ approverId: string;
9440
9559
  occurredAt: string;
9441
9560
  sourceSurfaceId?: string | undefined;
9442
9561
  } | undefined;
@@ -9453,6 +9572,21 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9453
9572
  emissionStreamId: string;
9454
9573
  witnessedAtMs: number;
9455
9574
  } | undefined;
9575
+ orthogonalityHypothesis?: {
9576
+ approverId: string;
9577
+ occurredAt: string;
9578
+ draftId: string;
9579
+ targetSurfaceId: string;
9580
+ targetDimensionId: string;
9581
+ candidateColumnId: string;
9582
+ proposedHypothesis: string;
9583
+ evidence: {
9584
+ scoredEventCount: number;
9585
+ sigmaObservedSquared: number;
9586
+ sigmaAgentSquared: number;
9587
+ sigmaAgentCILower: number;
9588
+ };
9589
+ } | undefined;
9456
9590
  }, {
9457
9591
  lensVersion: string;
9458
9592
  correlationId: string;
@@ -9460,17 +9594,34 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9460
9594
  occurredAt: string;
9461
9595
  eventId: string;
9462
9596
  substrate?: {
9463
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
9597
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
9464
9598
  timestamp: string;
9465
9599
  lensVersion: string;
9466
9600
  lightSourceIdentifier: string;
9467
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
9601
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
9468
9602
  correlationId: string;
9469
9603
  columns: Record<string, string>;
9470
9604
  } | undefined;
9471
- 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" | undefined;
9605
+ 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;
9472
9606
  emissionStreamId?: string | undefined;
9473
9607
  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;
9474
9625
  rawRequest?: objectInputType<{
9475
9626
  surfaceId: ZodString;
9476
9627
  correlationId: ZodOptional$1<ZodString>;
@@ -9649,22 +9800,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9649
9800
  strict: ZodOptional$1<ZodBoolean>;
9650
9801
  stream: ZodOptional$1<ZodBoolean>;
9651
9802
  }, ZodTypeAny$1, "passthrough"> | undefined;
9652
- rawResponse?: unknown;
9653
- reasoning?: string | undefined;
9654
- toolCalls?: unknown[] | undefined;
9655
- tokens?: {
9656
- input?: number | undefined;
9657
- output?: number | undefined;
9658
- cacheRead?: number | undefined;
9659
- cacheWrite?: number | undefined;
9660
- } | undefined;
9661
- latencyMs?: number | undefined;
9662
- error?: {
9663
- message: string;
9664
- type: string;
9665
- vendorErrorCode?: string | undefined;
9666
- } | undefined;
9667
- vendorMetadata?: Record<string, unknown> | undefined;
9668
9803
  rawRequestOmitted?: boolean | undefined;
9669
9804
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
9670
9805
  } | undefined;
@@ -9678,8 +9813,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9678
9813
  score?: number | undefined;
9679
9814
  rationale?: string | undefined;
9680
9815
  }[];
9681
- passed: boolean;
9682
9816
  fixtureId: string;
9817
+ passed: boolean;
9683
9818
  cohortTags?: string[] | undefined;
9684
9819
  sideEffects?: {
9685
9820
  kind: string;
@@ -9707,8 +9842,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9707
9842
  noiseFloorCalibration?: {
9708
9843
  totalEventCount: number;
9709
9844
  perFixtureDimension: {
9710
- dimensionId: string;
9711
9845
  fixtureId: string;
9846
+ dimensionId: string;
9712
9847
  scores: number[];
9713
9848
  sigmaFloor: number;
9714
9849
  n: number;
@@ -9756,6 +9891,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9756
9891
  pinnedLabel?: string | undefined;
9757
9892
  } | undefined;
9758
9893
  evalRecommendation?: {
9894
+ confidence: number;
9759
9895
  rationale: string;
9760
9896
  targetEventId: string;
9761
9897
  recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
@@ -9764,7 +9900,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9764
9900
  passed: boolean;
9765
9901
  detail: string;
9766
9902
  }[];
9767
- confidence: number;
9768
9903
  assessedBy: string;
9769
9904
  recomputed?: {
9770
9905
  sigmaObservedSquared: number;
@@ -9776,7 +9911,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9776
9911
  } | undefined;
9777
9912
  } | undefined;
9778
9913
  conformanceFixtureRecord?: {
9779
- approverId: string;
9780
9914
  fixture: {
9781
9915
  description: string;
9782
9916
  fixtureId: string;
@@ -9813,11 +9947,12 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9813
9947
  sourceExcerpt?: string | undefined;
9814
9948
  when?: {
9815
9949
  column: string;
9816
- present?: boolean | undefined;
9817
9950
  equals?: string | undefined;
9818
9951
  oneOf?: string[] | undefined;
9952
+ present?: boolean | undefined;
9819
9953
  }[] | undefined;
9820
9954
  };
9955
+ approverId: string;
9821
9956
  occurredAt: string;
9822
9957
  sourceSurfaceId?: string | undefined;
9823
9958
  } | undefined;
@@ -9834,6 +9969,21 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9834
9969
  emissionStreamId: string;
9835
9970
  witnessedAtMs: number;
9836
9971
  } | undefined;
9972
+ orthogonalityHypothesis?: {
9973
+ approverId: string;
9974
+ occurredAt: string;
9975
+ draftId: string;
9976
+ targetSurfaceId: string;
9977
+ targetDimensionId: string;
9978
+ candidateColumnId: string;
9979
+ proposedHypothesis: string;
9980
+ evidence: {
9981
+ scoredEventCount: number;
9982
+ sigmaObservedSquared: number;
9983
+ sigmaAgentSquared: number;
9984
+ sigmaAgentCILower: number;
9985
+ };
9986
+ } | undefined;
9837
9987
  }>;
9838
9988
  type EvaluationEvent = TypeOf$1<typeof EvaluationEventSchema>;
9839
9989
 
@@ -10057,6 +10207,8 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10057
10207
 
10058
10208
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
10059
10209
 
10210
+ servedModel: ZodOptional$1<ZodString>;
10211
+
10060
10212
  stopReason: ZodOptional$1<ZodEnum$1<["end_turn", "max_tokens", "tool_use", "stop_sequence", "refusal", "other"]>>;
10061
10213
  }, "strip", ZodTypeAny$1, {
10062
10214
  content: ({
@@ -10074,6 +10226,7 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10074
10226
  output?: unknown;
10075
10227
  isError?: boolean | undefined;
10076
10228
  })[];
10229
+ ok: true;
10077
10230
  tokens: {
10078
10231
  input: number;
10079
10232
  output: number;
@@ -10081,15 +10234,15 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10081
10234
  cacheWrite?: number | undefined;
10082
10235
  };
10083
10236
  latencyMs: number;
10084
- ok: true;
10085
10237
  rawResponse?: unknown;
10086
- reasoning?: string | undefined;
10087
10238
  toolCalls?: {
10088
10239
  toolUseId: string;
10089
10240
  toolName: string;
10090
10241
  input?: unknown;
10091
10242
  }[] | undefined;
10243
+ reasoning?: string | undefined;
10092
10244
  vendorMetadata?: Record<string, unknown> | undefined;
10245
+ servedModel?: string | undefined;
10093
10246
  stopReason?: "tool_use" | "end_turn" | "max_tokens" | "stop_sequence" | "refusal" | "other" | undefined;
10094
10247
  }, {
10095
10248
  content: ({
@@ -10107,6 +10260,7 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10107
10260
  output?: unknown;
10108
10261
  isError?: boolean | undefined;
10109
10262
  })[];
10263
+ ok: true;
10110
10264
  tokens: {
10111
10265
  input: number;
10112
10266
  output: number;
@@ -10114,15 +10268,15 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10114
10268
  cacheWrite?: number | undefined;
10115
10269
  };
10116
10270
  latencyMs: number;
10117
- ok: true;
10118
10271
  rawResponse?: unknown;
10119
- reasoning?: string | undefined;
10120
10272
  toolCalls?: {
10121
10273
  toolUseId: string;
10122
10274
  toolName: string;
10123
10275
  input?: unknown;
10124
10276
  }[] | undefined;
10277
+ reasoning?: string | undefined;
10125
10278
  vendorMetadata?: Record<string, unknown> | undefined;
10279
+ servedModel?: string | undefined;
10126
10280
  stopReason?: "tool_use" | "end_turn" | "max_tokens" | "stop_sequence" | "refusal" | "other" | undefined;
10127
10281
  }>, ZodObject<{
10128
10282
  ok: ZodLiteral<false>;
@@ -10152,6 +10306,7 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10152
10306
 
10153
10307
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
10154
10308
  }, "strip", ZodTypeAny$1, {
10309
+ ok: false;
10155
10310
  latencyMs: number;
10156
10311
  error: {
10157
10312
  message: string;
@@ -10159,10 +10314,10 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10159
10314
  retryable: boolean;
10160
10315
  vendorErrorCode?: string | undefined;
10161
10316
  };
10162
- ok: false;
10163
10317
  rawResponse?: unknown;
10164
10318
  vendorMetadata?: Record<string, unknown> | undefined;
10165
10319
  }, {
10320
+ ok: false;
10166
10321
  latencyMs: number;
10167
10322
  error: {
10168
10323
  message: string;
@@ -10170,12 +10325,29 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10170
10325
  retryable: boolean;
10171
10326
  vendorErrorCode?: string | undefined;
10172
10327
  };
10173
- ok: false;
10174
10328
  rawResponse?: unknown;
10175
10329
  vendorMetadata?: Record<string, unknown> | undefined;
10176
10330
  }>]>;
10177
10331
  type LightSourceResult = TypeOf$1<typeof LightSourceResultSchema>;
10178
10332
 
10333
+ declare const JudgeIdentitySchema: ZodObject<{
10334
+
10335
+ rubricHash: ZodOptional$1<ZodString>;
10336
+
10337
+ contextScope: ZodOptional$1<ZodEnum$1<["rubric_actual", "rubric_actual_expected", "rubric_actual_expected_toolaware", "full_generating_prompt"]>>;
10338
+
10339
+ model: ZodOptional$1<ZodString>;
10340
+ }, "strip", ZodTypeAny$1, {
10341
+ rubricHash?: string | undefined;
10342
+ contextScope?: "rubric_actual" | "rubric_actual_expected" | "rubric_actual_expected_toolaware" | "full_generating_prompt" | undefined;
10343
+ model?: string | undefined;
10344
+ }, {
10345
+ rubricHash?: string | undefined;
10346
+ contextScope?: "rubric_actual" | "rubric_actual_expected" | "rubric_actual_expected_toolaware" | "full_generating_prompt" | undefined;
10347
+ model?: string | undefined;
10348
+ }>;
10349
+ type JudgeIdentity = TypeOf$1<typeof JudgeIdentitySchema>;
10350
+
10179
10351
  interface InjectionRequest {
10180
10352
 
10181
10353
  surfaceId?: string;
@@ -11049,6 +11221,92 @@ declare const LensAvailabilityMarkResponseSchema: ZodObject<{
11049
11221
  }>;
11050
11222
  type LensAvailabilityMarkResponse = TypeOf$1<typeof LensAvailabilityMarkResponseSchema>;
11051
11223
 
11224
+ interface LensReadWindow {
11225
+ readonly since?: string;
11226
+ readonly until?: string;
11227
+ }
11228
+
11229
+ interface ReconciliationQuery extends LensReadWindow {
11230
+ readonly emissionStreamId?: string;
11231
+ }
11232
+
11233
+ interface EmissionAuditQuery extends LensReadWindow {
11234
+ readonly surfaceId?: string;
11235
+ }
11236
+
11237
+ interface EmitterReconciliation {
11238
+ readonly emissionStreamId: string;
11239
+
11240
+ readonly persisted: number;
11241
+
11242
+ readonly dark: number;
11243
+
11244
+ readonly total: number;
11245
+
11246
+ readonly completeness: number;
11247
+
11248
+ readonly darkEventIds: readonly string[];
11249
+ }
11250
+
11251
+ interface ReconciliationSummary {
11252
+ readonly emitterCount: number;
11253
+ readonly totalPersisted: number;
11254
+ readonly totalDark: number;
11255
+
11256
+ readonly overallCompleteness: number;
11257
+ }
11258
+
11259
+ interface ReconciliationReport {
11260
+ readonly emitters: readonly EmitterReconciliation[];
11261
+ readonly summary: ReconciliationSummary;
11262
+ }
11263
+
11264
+ interface ReconciliationResponse extends ReconciliationReport {
11265
+ readonly since?: string;
11266
+ readonly until?: string;
11267
+ }
11268
+
11269
+ type ColumnEmissionVerdict = 'no-data' | 'ok' | 'partial' | 'expectation-mismatch' | 'missing' | 'present' | 'absent';
11270
+ interface ColumnEmissionByDay {
11271
+
11272
+ readonly date: string;
11273
+
11274
+ readonly populated: number;
11275
+
11276
+ readonly total: number;
11277
+ }
11278
+ interface ColumnEmissionRow {
11279
+ readonly columnId: string;
11280
+
11281
+ readonly emissionExpectation: EmissionExpectation;
11282
+
11283
+ readonly populated: number;
11284
+
11285
+ readonly total: number;
11286
+
11287
+ readonly verdict: ColumnEmissionVerdict;
11288
+
11289
+ readonly byDay: readonly ColumnEmissionByDay[];
11290
+
11291
+ readonly firstEmittedAt: string | null;
11292
+ readonly lastEmittedAt: string | null;
11293
+ }
11294
+ interface SurfaceColumnEmission {
11295
+ readonly surfaceId: string;
11296
+
11297
+ readonly total: number;
11298
+
11299
+ readonly columns: readonly ColumnEmissionRow[];
11300
+
11301
+ readonly undeclaredObserved: readonly string[];
11302
+ }
11303
+
11304
+ interface EmissionAuditResponse {
11305
+ readonly since?: string;
11306
+ readonly until?: string;
11307
+ readonly surfaces: readonly SurfaceColumnEmission[];
11308
+ }
11309
+
11052
11310
  interface HolonographCallHandle {
11053
11311
 
11054
11312
  result: MediatorCallResult | GateExecutionResult;
@@ -11104,6 +11362,8 @@ interface SurfaceOutcomeReport {
11104
11362
  }[];
11105
11363
 
11106
11364
  fixtureId?: string;
11365
+
11366
+ judgeIdentity?: JudgeIdentity;
11107
11367
  }
11108
11368
 
11109
11369
  interface ContractSurfaceSummary {
@@ -11223,6 +11483,10 @@ interface Transport {
11223
11483
 
11224
11484
  getContract?(): Promise<ContractRegisterResponse>;
11225
11485
 
11486
+ getReconciliation?(query?: ReconciliationQuery): Promise<ReconciliationResponse>;
11487
+
11488
+ getEmission?(query?: EmissionAuditQuery): Promise<EmissionAuditResponse>;
11489
+
11226
11490
  markAvailability?(req: LensAvailabilityMarkRequest): Promise<LensAvailabilityMarkResponse>;
11227
11491
  }
11228
11492
 
@@ -11265,12 +11529,112 @@ declare class HttpTransport implements Transport {
11265
11529
  shutdown(): Promise<void>;
11266
11530
  postContract(contract: SurfaceContract): Promise<ContractRegisterResponse>;
11267
11531
  getContract(): Promise<ContractRegisterResponse>;
11532
+ getReconciliation(query?: ReconciliationQuery): Promise<ReconciliationResponse>;
11533
+ getEmission(query?: EmissionAuditQuery): Promise<EmissionAuditResponse>;
11268
11534
  markAvailability(req: LensAvailabilityMarkRequest): Promise<LensAvailabilityMarkResponse>;
11269
11535
  private post;
11270
11536
 
11271
11537
  private get;
11272
11538
  }
11273
11539
 
11540
+ interface KeyedDiff<T> {
11541
+
11542
+ added: T[];
11543
+
11544
+ removed: T[];
11545
+
11546
+ changed: {
11547
+ key: string;
11548
+ prev: T;
11549
+ next: T;
11550
+ }[];
11551
+
11552
+ unchanged: T[];
11553
+ }
11554
+
11555
+ declare function hasChanges<T>(diff: KeyedDiff<T>): boolean;
11556
+
11557
+ declare function diffByKey<T>(prev: readonly T[], next: readonly T[], keyOf: (item: T) => string, opts?: {
11558
+ equals?: (a: T, b: T) => boolean;
11559
+ }): KeyedDiff<T>;
11560
+
11561
+ interface PollerHandle {
11562
+
11563
+ stop(): void;
11564
+ }
11565
+ interface PollerOptions<T> {
11566
+
11567
+ poll: (signal: AbortSignal) => Promise<T>;
11568
+
11569
+ intervalMs: number;
11570
+
11571
+ onResult: (result: T) => void | Promise<void>;
11572
+
11573
+ onError?: (err: unknown) => void;
11574
+
11575
+ signal?: AbortSignal;
11576
+
11577
+ immediate?: boolean;
11578
+ }
11579
+
11580
+ declare function createPoller<T>(opts: PollerOptions<T>): PollerHandle;
11581
+ interface WatchByKeyOptions<T> {
11582
+
11583
+ poll: (signal: AbortSignal) => Promise<readonly T[]>;
11584
+
11585
+ intervalMs: number;
11586
+
11587
+ keyOf: (item: T) => string;
11588
+
11589
+ onChange: (diff: KeyedDiff<T>) => void | Promise<void>;
11590
+
11591
+ equals?: (a: T, b: T) => boolean;
11592
+
11593
+ onError?: (err: unknown) => void;
11594
+
11595
+ signal?: AbortSignal;
11596
+
11597
+ emitInitial?: boolean;
11598
+ }
11599
+
11600
+ declare function watchByKey<T>(opts: WatchByKeyOptions<T>): PollerHandle;
11601
+
11602
+ interface ReconciliationReader {
11603
+ getReconciliation(query?: ReconciliationQuery): Promise<ReconciliationResponse>;
11604
+ }
11605
+
11606
+ interface EmissionReader {
11607
+ getEmission(query?: EmissionAuditQuery): Promise<EmissionAuditResponse>;
11608
+ }
11609
+ interface CommonWatchOptions {
11610
+ intervalMs: number;
11611
+ onError?: (err: unknown) => void;
11612
+ signal?: AbortSignal;
11613
+ emitInitial?: boolean;
11614
+ }
11615
+ interface WatchReconciliationOptions extends CommonWatchOptions {
11616
+ reader: ReconciliationReader;
11617
+
11618
+ query?: ReconciliationQuery;
11619
+
11620
+ onChange: (diff: KeyedDiff<EmitterReconciliation>) => void | Promise<void>;
11621
+
11622
+ equals?: (a: EmitterReconciliation, b: EmitterReconciliation) => boolean;
11623
+ }
11624
+
11625
+ declare function watchReconciliation(opts: WatchReconciliationOptions): PollerHandle;
11626
+ interface WatchEmissionOptions extends CommonWatchOptions {
11627
+ reader: EmissionReader;
11628
+
11629
+ query?: EmissionAuditQuery;
11630
+
11631
+ onChange: (diff: KeyedDiff<SurfaceColumnEmission>) => void | Promise<void>;
11632
+
11633
+ equals?: (a: SurfaceColumnEmission, b: SurfaceColumnEmission) => boolean;
11634
+ }
11635
+
11636
+ declare function watchEmission(opts: WatchEmissionOptions): PollerHandle;
11637
+
11274
11638
  interface HolonographClientOptions {
11275
11639
 
11276
11640
  endpoint: string;
@@ -11315,5 +11679,5 @@ interface HolonographClient {
11315
11679
 
11316
11680
  declare const HolonographClient: new (options: HolonographClientOptions) => HolonographClient;
11317
11681
 
11318
- export { HolonographClient, HolonographGradeAfterReportError, HolonographHttpError, HolonographMarkerPairingWarningError, HolonographNoObserversError, HolonographObserverNotFoundError, HttpTransport };
11319
- export type { AvailabilityMarkOptions, CompletenessWindow, ContractRegisterResponse, ContractSurfaceSummary, EmitChannel, EmitChannelCompleteness, EmitMode, EmitOptions, ExtremeSustainedLoadEvent, HolonographCallHandle, HolonographClientOptions, HolonographMessageRequest as HolonographMessageRequest, HolonographMessageResponse as HolonographMessageResponse, HttpTransportOptions, MediatorCallRequest, OtlpEmitConfig, SurfaceOutcomeReport };
11682
+ export { HolonographClient, HolonographGradeAfterReportError, HolonographHttpError, HolonographMarkerPairingWarningError, HolonographNoObserversError, HolonographObserverNotFoundError, HttpTransport, createPoller, diffByKey, hasChanges, watchByKey, watchEmission, watchReconciliation };
11683
+ export type { AvailabilityMarkOptions, CompletenessWindow, ContractRegisterResponse, ContractSurfaceSummary, EmissionReader, EmitChannel, EmitChannelCompleteness, EmitMode, EmitOptions, ExtremeSustainedLoadEvent, HolonographCallHandle, HolonographClientOptions, HolonographMessageRequest as HolonographMessageRequest, HolonographMessageResponse as HolonographMessageResponse, HttpTransportOptions, KeyedDiff, MediatorCallRequest, OtlpEmitConfig, PollerHandle, PollerOptions, ReconciliationReader, SurfaceOutcomeReport, WatchByKeyOptions, WatchEmissionOptions, WatchReconciliationOptions };