@holonograph/client 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +397 -212
  2. package/dist/index.js +795 -15
  3. package/package.json +2 -10
package/dist/index.d.ts CHANGED
@@ -1778,19 +1778,19 @@ declare const SubstrateSnapshotSchema: ZodObject<{
1778
1778
 
1779
1779
  columns: ZodRecord<ZodString, ZodString>;
1780
1780
  }, "strip", ZodTypeAny$1, {
1781
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
1781
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
1782
1782
  timestamp: string;
1783
1783
  lensVersion: string;
1784
1784
  lightSourceIdentifier: string;
1785
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
1785
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
1786
1786
  correlationId: string;
1787
1787
  columns: Record<string, string>;
1788
1788
  }, {
1789
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
1789
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
1790
1790
  timestamp: string;
1791
1791
  lensVersion: string;
1792
1792
  lightSourceIdentifier: string;
1793
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
1793
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
1794
1794
  correlationId: string;
1795
1795
  columns: Record<string, string>;
1796
1796
  }>;
@@ -1894,7 +1894,7 @@ declare const SurfaceContractSchema: ZodObject<{
1894
1894
  } | undefined;
1895
1895
  }>>;
1896
1896
  }, "strip", ZodTypeAny$1, {
1897
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
1897
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
1898
1898
  enabled: boolean;
1899
1899
  passThreshold: number;
1900
1900
  failureAction: "retry" | "flag" | "block";
@@ -1919,7 +1919,7 @@ declare const SurfaceContractSchema: ZodObject<{
1919
1919
  }, {
1920
1920
  passThreshold: number;
1921
1921
  failureAction: "retry" | "flag" | "block";
1922
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
1922
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
1923
1923
  retry?: {
1924
1924
  maxAttempts: number;
1925
1925
  augmentPrompt?: string | undefined;
@@ -1940,7 +1940,7 @@ declare const SurfaceContractSchema: ZodObject<{
1940
1940
  } | undefined;
1941
1941
  enabled?: boolean | undefined;
1942
1942
  }>, {
1943
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
1943
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
1944
1944
  enabled: boolean;
1945
1945
  passThreshold: number;
1946
1946
  failureAction: "retry" | "flag" | "block";
@@ -1965,7 +1965,7 @@ declare const SurfaceContractSchema: ZodObject<{
1965
1965
  }, {
1966
1966
  passThreshold: number;
1967
1967
  failureAction: "retry" | "flag" | "block";
1968
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
1968
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
1969
1969
  retry?: {
1970
1970
  maxAttempts: number;
1971
1971
  augmentPrompt?: string | undefined;
@@ -1986,7 +1986,7 @@ declare const SurfaceContractSchema: ZodObject<{
1986
1986
  } | undefined;
1987
1987
  enabled?: boolean | undefined;
1988
1988
  }>, {
1989
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
1989
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
1990
1990
  enabled: boolean;
1991
1991
  passThreshold: number;
1992
1992
  failureAction: "retry" | "flag" | "block";
@@ -2011,7 +2011,7 @@ declare const SurfaceContractSchema: ZodObject<{
2011
2011
  }, {
2012
2012
  passThreshold: number;
2013
2013
  failureAction: "retry" | "flag" | "block";
2014
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2014
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2015
2015
  retry?: {
2016
2016
  maxAttempts: number;
2017
2017
  augmentPrompt?: string | undefined;
@@ -2046,11 +2046,11 @@ declare const SurfaceContractSchema: ZodObject<{
2046
2046
  }, "strip", ZodTypeAny$1, {
2047
2047
  id: string;
2048
2048
  scoring: "custom" | "exact-match" | "llm-judge";
2049
- passThreshold?: number | undefined;
2050
2049
  description?: string | undefined;
2050
+ passThreshold?: number | undefined;
2051
2051
  rubricRef?: string | undefined;
2052
2052
  gatePolicy?: {
2053
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2053
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2054
2054
  enabled: boolean;
2055
2055
  passThreshold: number;
2056
2056
  failureAction: "retry" | "flag" | "block";
@@ -2080,13 +2080,13 @@ declare const SurfaceContractSchema: ZodObject<{
2080
2080
  }, {
2081
2081
  id: string;
2082
2082
  scoring: "custom" | "exact-match" | "llm-judge";
2083
- passThreshold?: number | undefined;
2084
2083
  description?: string | undefined;
2084
+ passThreshold?: number | undefined;
2085
2085
  rubricRef?: string | undefined;
2086
2086
  gatePolicy?: {
2087
2087
  passThreshold: number;
2088
2088
  failureAction: "retry" | "flag" | "block";
2089
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2089
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2090
2090
  retry?: {
2091
2091
  maxAttempts: number;
2092
2092
  augmentPrompt?: string | undefined;
@@ -2122,20 +2122,23 @@ declare const SurfaceContractSchema: ZodObject<{
2122
2122
  description: ZodOptional$1<ZodString>;
2123
2123
  semantic: ZodDefault$1<ZodEnum$1<["deployment-state", "diagnostic"]>>;
2124
2124
  values: ZodOptional$1<ZodArray$1<ZodString, "many">>;
2125
+ emissionExpectation: ZodOptional$1<ZodEnum$1<["always", "conditional"]>>;
2125
2126
  }, "strip", ZodTypeAny$1, {
2126
2127
  id: string;
2127
2128
  control: "operator" | "vendor" | "platform" | "third-party";
2128
2129
  visibility: "transparent" | "announced" | "opaque";
2129
2130
  semantic: "deployment-state" | "diagnostic";
2130
- values?: string[] | undefined;
2131
2131
  description?: string | undefined;
2132
+ values?: string[] | undefined;
2133
+ emissionExpectation?: "always" | "conditional" | undefined;
2132
2134
  }, {
2133
2135
  id: string;
2134
2136
  control: "operator" | "vendor" | "platform" | "third-party";
2135
2137
  visibility: "transparent" | "announced" | "opaque";
2136
- values?: string[] | undefined;
2137
2138
  description?: string | undefined;
2138
2139
  semantic?: "deployment-state" | "diagnostic" | undefined;
2140
+ values?: string[] | undefined;
2141
+ emissionExpectation?: "always" | "conditional" | undefined;
2139
2142
  }>, "many">>;
2140
2143
 
2141
2144
  status: ZodDefault$1<ZodEnum$1<["active", "forward-declared", "deprecated"]>>;
@@ -2238,16 +2241,16 @@ declare const SurfaceContractSchema: ZodObject<{
2238
2241
  } | undefined;
2239
2242
  }>, "many">>;
2240
2243
  }, "strip", ZodTypeAny$1, {
2241
- status: "active" | "forward-declared" | "deprecated";
2242
2244
  id: string;
2245
+ status: "active" | "forward-declared" | "deprecated";
2243
2246
  dimensions: {
2244
2247
  id: string;
2245
2248
  scoring: "custom" | "exact-match" | "llm-judge";
2246
- passThreshold?: number | undefined;
2247
2249
  description?: string | undefined;
2250
+ passThreshold?: number | undefined;
2248
2251
  rubricRef?: string | undefined;
2249
2252
  gatePolicy?: {
2250
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2253
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2251
2254
  enabled: boolean;
2252
2255
  passThreshold: number;
2253
2256
  failureAction: "retry" | "flag" | "block";
@@ -2281,8 +2284,9 @@ declare const SurfaceContractSchema: ZodObject<{
2281
2284
  control: "operator" | "vendor" | "platform" | "third-party";
2282
2285
  visibility: "transparent" | "announced" | "opaque";
2283
2286
  semantic: "deployment-state" | "diagnostic";
2284
- values?: string[] | undefined;
2285
2287
  description?: string | undefined;
2288
+ values?: string[] | undefined;
2289
+ emissionExpectation?: "always" | "conditional" | undefined;
2286
2290
  }[];
2287
2291
  removedDimensions: {
2288
2292
  id: string;
@@ -2312,13 +2316,13 @@ declare const SurfaceContractSchema: ZodObject<{
2312
2316
  dimensions: {
2313
2317
  id: string;
2314
2318
  scoring: "custom" | "exact-match" | "llm-judge";
2315
- passThreshold?: number | undefined;
2316
2319
  description?: string | undefined;
2320
+ passThreshold?: number | undefined;
2317
2321
  rubricRef?: string | undefined;
2318
2322
  gatePolicy?: {
2319
2323
  passThreshold: number;
2320
2324
  failureAction: "retry" | "flag" | "block";
2321
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2325
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2322
2326
  retry?: {
2323
2327
  maxAttempts: number;
2324
2328
  augmentPrompt?: string | undefined;
@@ -2344,16 +2348,17 @@ declare const SurfaceContractSchema: ZodObject<{
2344
2348
  kind: "enum";
2345
2349
  } | undefined;
2346
2350
  }[];
2347
- status?: "active" | "forward-declared" | "deprecated" | undefined;
2348
2351
  description?: string | undefined;
2352
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2349
2353
  cohortTags?: string[] | undefined;
2350
2354
  substrateColumns?: {
2351
2355
  id: string;
2352
2356
  control: "operator" | "vendor" | "platform" | "third-party";
2353
2357
  visibility: "transparent" | "announced" | "opaque";
2354
- values?: string[] | undefined;
2355
2358
  description?: string | undefined;
2356
2359
  semantic?: "deployment-state" | "diagnostic" | undefined;
2360
+ values?: string[] | undefined;
2361
+ emissionExpectation?: "always" | "conditional" | undefined;
2357
2362
  }[] | undefined;
2358
2363
  removedDimensions?: {
2359
2364
  id: string;
@@ -2386,11 +2391,11 @@ declare const SurfaceContractSchema: ZodObject<{
2386
2391
  }, "strip", ZodTypeAny$1, {
2387
2392
  surfaceId: string;
2388
2393
  lightSourceId: string | readonly string[];
2389
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2394
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2390
2395
  }, {
2391
2396
  surfaceId: string;
2392
2397
  lightSourceId: string | readonly string[];
2393
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2398
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2394
2399
  }>, "many">>;
2395
2400
 
2396
2401
  pricing: ZodOptional$1<ZodRecord<ZodString, ZodObject<{
@@ -2508,7 +2513,7 @@ declare const SurfaceContractSchema: ZodObject<{
2508
2513
  } | undefined;
2509
2514
  }>>;
2510
2515
  }, "strip", ZodTypeAny$1, {
2511
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2516
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2512
2517
  enabled: boolean;
2513
2518
  passThreshold: number;
2514
2519
  failureAction: "retry" | "flag" | "block";
@@ -2533,7 +2538,7 @@ declare const SurfaceContractSchema: ZodObject<{
2533
2538
  }, {
2534
2539
  passThreshold: number;
2535
2540
  failureAction: "retry" | "flag" | "block";
2536
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2541
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2537
2542
  retry?: {
2538
2543
  maxAttempts: number;
2539
2544
  augmentPrompt?: string | undefined;
@@ -2554,7 +2559,7 @@ declare const SurfaceContractSchema: ZodObject<{
2554
2559
  } | undefined;
2555
2560
  enabled?: boolean | undefined;
2556
2561
  }>, {
2557
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2562
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2558
2563
  enabled: boolean;
2559
2564
  passThreshold: number;
2560
2565
  failureAction: "retry" | "flag" | "block";
@@ -2579,7 +2584,7 @@ declare const SurfaceContractSchema: ZodObject<{
2579
2584
  }, {
2580
2585
  passThreshold: number;
2581
2586
  failureAction: "retry" | "flag" | "block";
2582
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2587
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2583
2588
  retry?: {
2584
2589
  maxAttempts: number;
2585
2590
  augmentPrompt?: string | undefined;
@@ -2600,7 +2605,7 @@ declare const SurfaceContractSchema: ZodObject<{
2600
2605
  } | undefined;
2601
2606
  enabled?: boolean | undefined;
2602
2607
  }>, {
2603
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2608
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2604
2609
  enabled: boolean;
2605
2610
  passThreshold: number;
2606
2611
  failureAction: "retry" | "flag" | "block";
@@ -2625,7 +2630,7 @@ declare const SurfaceContractSchema: ZodObject<{
2625
2630
  }, {
2626
2631
  passThreshold: number;
2627
2632
  failureAction: "retry" | "flag" | "block";
2628
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2633
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2629
2634
  retry?: {
2630
2635
  maxAttempts: number;
2631
2636
  augmentPrompt?: string | undefined;
@@ -2660,11 +2665,11 @@ declare const SurfaceContractSchema: ZodObject<{
2660
2665
  }, "strip", ZodTypeAny$1, {
2661
2666
  id: string;
2662
2667
  scoring: "custom" | "exact-match" | "llm-judge";
2663
- passThreshold?: number | undefined;
2664
2668
  description?: string | undefined;
2669
+ passThreshold?: number | undefined;
2665
2670
  rubricRef?: string | undefined;
2666
2671
  gatePolicy?: {
2667
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2672
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2668
2673
  enabled: boolean;
2669
2674
  passThreshold: number;
2670
2675
  failureAction: "retry" | "flag" | "block";
@@ -2694,13 +2699,13 @@ declare const SurfaceContractSchema: ZodObject<{
2694
2699
  }, {
2695
2700
  id: string;
2696
2701
  scoring: "custom" | "exact-match" | "llm-judge";
2697
- passThreshold?: number | undefined;
2698
2702
  description?: string | undefined;
2703
+ passThreshold?: number | undefined;
2699
2704
  rubricRef?: string | undefined;
2700
2705
  gatePolicy?: {
2701
2706
  passThreshold: number;
2702
2707
  failureAction: "retry" | "flag" | "block";
2703
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2708
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2704
2709
  retry?: {
2705
2710
  maxAttempts: number;
2706
2711
  augmentPrompt?: string | undefined;
@@ -2729,15 +2734,15 @@ declare const SurfaceContractSchema: ZodObject<{
2729
2734
  }, "strip", ZodTypeAny$1, {
2730
2735
  surfaceId: string;
2731
2736
  lightSourceId: string | readonly string[];
2732
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2737
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2733
2738
  dimensions?: {
2734
2739
  id: string;
2735
2740
  scoring: "custom" | "exact-match" | "llm-judge";
2736
- passThreshold?: number | undefined;
2737
2741
  description?: string | undefined;
2742
+ passThreshold?: number | undefined;
2738
2743
  rubricRef?: string | undefined;
2739
2744
  gatePolicy?: {
2740
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2745
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2741
2746
  enabled: boolean;
2742
2747
  passThreshold: number;
2743
2748
  failureAction: "retry" | "flag" | "block";
@@ -2768,17 +2773,17 @@ declare const SurfaceContractSchema: ZodObject<{
2768
2773
  }, {
2769
2774
  surfaceId: string;
2770
2775
  lightSourceId: string | readonly string[];
2771
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2776
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2772
2777
  dimensions?: {
2773
2778
  id: string;
2774
2779
  scoring: "custom" | "exact-match" | "llm-judge";
2775
- passThreshold?: number | undefined;
2776
2780
  description?: string | undefined;
2781
+ passThreshold?: number | undefined;
2777
2782
  rubricRef?: string | undefined;
2778
2783
  gatePolicy?: {
2779
2784
  passThreshold: number;
2780
2785
  failureAction: "retry" | "flag" | "block";
2781
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2786
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2782
2787
  retry?: {
2783
2788
  maxAttempts: number;
2784
2789
  augmentPrompt?: string | undefined;
@@ -2898,7 +2903,7 @@ declare const SurfaceContractSchema: ZodObject<{
2898
2903
  } | undefined;
2899
2904
  }>>;
2900
2905
  }, "strip", ZodTypeAny$1, {
2901
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2906
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2902
2907
  enabled: boolean;
2903
2908
  passThreshold: number;
2904
2909
  failureAction: "retry" | "flag" | "block";
@@ -2923,7 +2928,7 @@ declare const SurfaceContractSchema: ZodObject<{
2923
2928
  }, {
2924
2929
  passThreshold: number;
2925
2930
  failureAction: "retry" | "flag" | "block";
2926
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2931
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2927
2932
  retry?: {
2928
2933
  maxAttempts: number;
2929
2934
  augmentPrompt?: string | undefined;
@@ -2944,7 +2949,7 @@ declare const SurfaceContractSchema: ZodObject<{
2944
2949
  } | undefined;
2945
2950
  enabled?: boolean | undefined;
2946
2951
  }>, {
2947
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2952
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2948
2953
  enabled: boolean;
2949
2954
  passThreshold: number;
2950
2955
  failureAction: "retry" | "flag" | "block";
@@ -2969,7 +2974,7 @@ declare const SurfaceContractSchema: ZodObject<{
2969
2974
  }, {
2970
2975
  passThreshold: number;
2971
2976
  failureAction: "retry" | "flag" | "block";
2972
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
2977
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
2973
2978
  retry?: {
2974
2979
  maxAttempts: number;
2975
2980
  augmentPrompt?: string | undefined;
@@ -2990,7 +2995,7 @@ declare const SurfaceContractSchema: ZodObject<{
2990
2995
  } | undefined;
2991
2996
  enabled?: boolean | undefined;
2992
2997
  }>, {
2993
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
2998
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
2994
2999
  enabled: boolean;
2995
3000
  passThreshold: number;
2996
3001
  failureAction: "retry" | "flag" | "block";
@@ -3015,7 +3020,7 @@ declare const SurfaceContractSchema: ZodObject<{
3015
3020
  }, {
3016
3021
  passThreshold: number;
3017
3022
  failureAction: "retry" | "flag" | "block";
3018
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3023
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3019
3024
  retry?: {
3020
3025
  maxAttempts: number;
3021
3026
  augmentPrompt?: string | undefined;
@@ -3050,11 +3055,11 @@ declare const SurfaceContractSchema: ZodObject<{
3050
3055
  }, "strip", ZodTypeAny$1, {
3051
3056
  id: string;
3052
3057
  scoring: "custom" | "exact-match" | "llm-judge";
3053
- passThreshold?: number | undefined;
3054
3058
  description?: string | undefined;
3059
+ passThreshold?: number | undefined;
3055
3060
  rubricRef?: string | undefined;
3056
3061
  gatePolicy?: {
3057
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3062
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3058
3063
  enabled: boolean;
3059
3064
  passThreshold: number;
3060
3065
  failureAction: "retry" | "flag" | "block";
@@ -3084,13 +3089,13 @@ declare const SurfaceContractSchema: ZodObject<{
3084
3089
  }, {
3085
3090
  id: string;
3086
3091
  scoring: "custom" | "exact-match" | "llm-judge";
3087
- passThreshold?: number | undefined;
3088
3092
  description?: string | undefined;
3093
+ passThreshold?: number | undefined;
3089
3094
  rubricRef?: string | undefined;
3090
3095
  gatePolicy?: {
3091
3096
  passThreshold: number;
3092
3097
  failureAction: "retry" | "flag" | "block";
3093
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3098
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3094
3099
  retry?: {
3095
3100
  maxAttempts: number;
3096
3101
  augmentPrompt?: string | undefined;
@@ -3119,15 +3124,15 @@ declare const SurfaceContractSchema: ZodObject<{
3119
3124
  }, "strip", ZodTypeAny$1, {
3120
3125
  surfaceId: string;
3121
3126
  lightSourceId: string | readonly string[];
3122
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3127
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3123
3128
  dimensions?: {
3124
3129
  id: string;
3125
3130
  scoring: "custom" | "exact-match" | "llm-judge";
3126
- passThreshold?: number | undefined;
3127
3131
  description?: string | undefined;
3132
+ passThreshold?: number | undefined;
3128
3133
  rubricRef?: string | undefined;
3129
3134
  gatePolicy?: {
3130
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3135
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3131
3136
  enabled: boolean;
3132
3137
  passThreshold: number;
3133
3138
  failureAction: "retry" | "flag" | "block";
@@ -3158,17 +3163,17 @@ declare const SurfaceContractSchema: ZodObject<{
3158
3163
  }, {
3159
3164
  surfaceId: string;
3160
3165
  lightSourceId: string | readonly string[];
3161
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3166
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3162
3167
  dimensions?: {
3163
3168
  id: string;
3164
3169
  scoring: "custom" | "exact-match" | "llm-judge";
3165
- passThreshold?: number | undefined;
3166
3170
  description?: string | undefined;
3171
+ passThreshold?: number | undefined;
3167
3172
  rubricRef?: string | undefined;
3168
3173
  gatePolicy?: {
3169
3174
  passThreshold: number;
3170
3175
  failureAction: "retry" | "flag" | "block";
3171
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3176
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3172
3177
  retry?: {
3173
3178
  maxAttempts: number;
3174
3179
  augmentPrompt?: string | undefined;
@@ -3288,7 +3293,7 @@ declare const SurfaceContractSchema: ZodObject<{
3288
3293
  } | undefined;
3289
3294
  }>>;
3290
3295
  }, "strip", ZodTypeAny$1, {
3291
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3296
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3292
3297
  enabled: boolean;
3293
3298
  passThreshold: number;
3294
3299
  failureAction: "retry" | "flag" | "block";
@@ -3313,7 +3318,7 @@ declare const SurfaceContractSchema: ZodObject<{
3313
3318
  }, {
3314
3319
  passThreshold: number;
3315
3320
  failureAction: "retry" | "flag" | "block";
3316
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3321
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3317
3322
  retry?: {
3318
3323
  maxAttempts: number;
3319
3324
  augmentPrompt?: string | undefined;
@@ -3334,7 +3339,7 @@ declare const SurfaceContractSchema: ZodObject<{
3334
3339
  } | undefined;
3335
3340
  enabled?: boolean | undefined;
3336
3341
  }>, {
3337
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3342
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3338
3343
  enabled: boolean;
3339
3344
  passThreshold: number;
3340
3345
  failureAction: "retry" | "flag" | "block";
@@ -3359,7 +3364,7 @@ declare const SurfaceContractSchema: ZodObject<{
3359
3364
  }, {
3360
3365
  passThreshold: number;
3361
3366
  failureAction: "retry" | "flag" | "block";
3362
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3367
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3363
3368
  retry?: {
3364
3369
  maxAttempts: number;
3365
3370
  augmentPrompt?: string | undefined;
@@ -3380,7 +3385,7 @@ declare const SurfaceContractSchema: ZodObject<{
3380
3385
  } | undefined;
3381
3386
  enabled?: boolean | undefined;
3382
3387
  }>, {
3383
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3388
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3384
3389
  enabled: boolean;
3385
3390
  passThreshold: number;
3386
3391
  failureAction: "retry" | "flag" | "block";
@@ -3405,7 +3410,7 @@ declare const SurfaceContractSchema: ZodObject<{
3405
3410
  }, {
3406
3411
  passThreshold: number;
3407
3412
  failureAction: "retry" | "flag" | "block";
3408
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3413
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3409
3414
  retry?: {
3410
3415
  maxAttempts: number;
3411
3416
  augmentPrompt?: string | undefined;
@@ -3440,11 +3445,11 @@ declare const SurfaceContractSchema: ZodObject<{
3440
3445
  }, "strip", ZodTypeAny$1, {
3441
3446
  id: string;
3442
3447
  scoring: "custom" | "exact-match" | "llm-judge";
3443
- passThreshold?: number | undefined;
3444
3448
  description?: string | undefined;
3449
+ passThreshold?: number | undefined;
3445
3450
  rubricRef?: string | undefined;
3446
3451
  gatePolicy?: {
3447
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3452
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3448
3453
  enabled: boolean;
3449
3454
  passThreshold: number;
3450
3455
  failureAction: "retry" | "flag" | "block";
@@ -3474,13 +3479,13 @@ declare const SurfaceContractSchema: ZodObject<{
3474
3479
  }, {
3475
3480
  id: string;
3476
3481
  scoring: "custom" | "exact-match" | "llm-judge";
3477
- passThreshold?: number | undefined;
3478
3482
  description?: string | undefined;
3483
+ passThreshold?: number | undefined;
3479
3484
  rubricRef?: string | undefined;
3480
3485
  gatePolicy?: {
3481
3486
  passThreshold: number;
3482
3487
  failureAction: "retry" | "flag" | "block";
3483
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3488
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3484
3489
  retry?: {
3485
3490
  maxAttempts: number;
3486
3491
  augmentPrompt?: string | undefined;
@@ -3509,15 +3514,15 @@ declare const SurfaceContractSchema: ZodObject<{
3509
3514
  }, "strip", ZodTypeAny$1, {
3510
3515
  surfaceId: string;
3511
3516
  lightSourceId: string | readonly string[];
3512
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3517
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3513
3518
  dimensions?: {
3514
3519
  id: string;
3515
3520
  scoring: "custom" | "exact-match" | "llm-judge";
3516
- passThreshold?: number | undefined;
3517
3521
  description?: string | undefined;
3522
+ passThreshold?: number | undefined;
3518
3523
  rubricRef?: string | undefined;
3519
3524
  gatePolicy?: {
3520
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3525
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3521
3526
  enabled: boolean;
3522
3527
  passThreshold: number;
3523
3528
  failureAction: "retry" | "flag" | "block";
@@ -3548,17 +3553,17 @@ declare const SurfaceContractSchema: ZodObject<{
3548
3553
  }, {
3549
3554
  surfaceId: string;
3550
3555
  lightSourceId: string | readonly string[];
3551
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3556
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3552
3557
  dimensions?: {
3553
3558
  id: string;
3554
3559
  scoring: "custom" | "exact-match" | "llm-judge";
3555
- passThreshold?: number | undefined;
3556
3560
  description?: string | undefined;
3561
+ passThreshold?: number | undefined;
3557
3562
  rubricRef?: string | undefined;
3558
3563
  gatePolicy?: {
3559
3564
  passThreshold: number;
3560
3565
  failureAction: "retry" | "flag" | "block";
3561
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3566
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3562
3567
  retry?: {
3563
3568
  maxAttempts: number;
3564
3569
  augmentPrompt?: string | undefined;
@@ -3678,7 +3683,7 @@ declare const SurfaceContractSchema: ZodObject<{
3678
3683
  } | undefined;
3679
3684
  }>>;
3680
3685
  }, "strip", ZodTypeAny$1, {
3681
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3686
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3682
3687
  enabled: boolean;
3683
3688
  passThreshold: number;
3684
3689
  failureAction: "retry" | "flag" | "block";
@@ -3703,7 +3708,7 @@ declare const SurfaceContractSchema: ZodObject<{
3703
3708
  }, {
3704
3709
  passThreshold: number;
3705
3710
  failureAction: "retry" | "flag" | "block";
3706
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3711
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3707
3712
  retry?: {
3708
3713
  maxAttempts: number;
3709
3714
  augmentPrompt?: string | undefined;
@@ -3724,7 +3729,7 @@ declare const SurfaceContractSchema: ZodObject<{
3724
3729
  } | undefined;
3725
3730
  enabled?: boolean | undefined;
3726
3731
  }>, {
3727
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3732
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3728
3733
  enabled: boolean;
3729
3734
  passThreshold: number;
3730
3735
  failureAction: "retry" | "flag" | "block";
@@ -3749,7 +3754,7 @@ declare const SurfaceContractSchema: ZodObject<{
3749
3754
  }, {
3750
3755
  passThreshold: number;
3751
3756
  failureAction: "retry" | "flag" | "block";
3752
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3757
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3753
3758
  retry?: {
3754
3759
  maxAttempts: number;
3755
3760
  augmentPrompt?: string | undefined;
@@ -3770,7 +3775,7 @@ declare const SurfaceContractSchema: ZodObject<{
3770
3775
  } | undefined;
3771
3776
  enabled?: boolean | undefined;
3772
3777
  }>, {
3773
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3778
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3774
3779
  enabled: boolean;
3775
3780
  passThreshold: number;
3776
3781
  failureAction: "retry" | "flag" | "block";
@@ -3795,7 +3800,7 @@ declare const SurfaceContractSchema: ZodObject<{
3795
3800
  }, {
3796
3801
  passThreshold: number;
3797
3802
  failureAction: "retry" | "flag" | "block";
3798
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3803
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3799
3804
  retry?: {
3800
3805
  maxAttempts: number;
3801
3806
  augmentPrompt?: string | undefined;
@@ -3830,11 +3835,11 @@ declare const SurfaceContractSchema: ZodObject<{
3830
3835
  }, "strip", ZodTypeAny$1, {
3831
3836
  id: string;
3832
3837
  scoring: "custom" | "exact-match" | "llm-judge";
3833
- passThreshold?: number | undefined;
3834
3838
  description?: string | undefined;
3839
+ passThreshold?: number | undefined;
3835
3840
  rubricRef?: string | undefined;
3836
3841
  gatePolicy?: {
3837
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3842
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3838
3843
  enabled: boolean;
3839
3844
  passThreshold: number;
3840
3845
  failureAction: "retry" | "flag" | "block";
@@ -3864,13 +3869,13 @@ declare const SurfaceContractSchema: ZodObject<{
3864
3869
  }, {
3865
3870
  id: string;
3866
3871
  scoring: "custom" | "exact-match" | "llm-judge";
3867
- passThreshold?: number | undefined;
3868
3872
  description?: string | undefined;
3873
+ passThreshold?: number | undefined;
3869
3874
  rubricRef?: string | undefined;
3870
3875
  gatePolicy?: {
3871
3876
  passThreshold: number;
3872
3877
  failureAction: "retry" | "flag" | "block";
3873
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3878
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3874
3879
  retry?: {
3875
3880
  maxAttempts: number;
3876
3881
  augmentPrompt?: string | undefined;
@@ -3899,15 +3904,15 @@ declare const SurfaceContractSchema: ZodObject<{
3899
3904
  }, "strip", ZodTypeAny$1, {
3900
3905
  surfaceId: string;
3901
3906
  lightSourceId: string | readonly string[];
3902
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3907
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3903
3908
  dimensions?: {
3904
3909
  id: string;
3905
3910
  scoring: "custom" | "exact-match" | "llm-judge";
3906
- passThreshold?: number | undefined;
3907
3911
  description?: string | undefined;
3912
+ passThreshold?: number | undefined;
3908
3913
  rubricRef?: string | undefined;
3909
3914
  gatePolicy?: {
3910
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
3915
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
3911
3916
  enabled: boolean;
3912
3917
  passThreshold: number;
3913
3918
  failureAction: "retry" | "flag" | "block";
@@ -3938,17 +3943,17 @@ declare const SurfaceContractSchema: ZodObject<{
3938
3943
  }, {
3939
3944
  surfaceId: string;
3940
3945
  lightSourceId: string | readonly string[];
3941
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3946
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3942
3947
  dimensions?: {
3943
3948
  id: string;
3944
3949
  scoring: "custom" | "exact-match" | "llm-judge";
3945
- passThreshold?: number | undefined;
3946
3950
  description?: string | undefined;
3951
+ passThreshold?: number | undefined;
3947
3952
  rubricRef?: string | undefined;
3948
3953
  gatePolicy?: {
3949
3954
  passThreshold: number;
3950
3955
  failureAction: "retry" | "flag" | "block";
3951
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
3956
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
3952
3957
  retry?: {
3953
3958
  maxAttempts: number;
3954
3959
  augmentPrompt?: string | undefined;
@@ -4068,7 +4073,7 @@ declare const SurfaceContractSchema: ZodObject<{
4068
4073
  } | undefined;
4069
4074
  }>>;
4070
4075
  }, "strip", ZodTypeAny$1, {
4071
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4076
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4072
4077
  enabled: boolean;
4073
4078
  passThreshold: number;
4074
4079
  failureAction: "retry" | "flag" | "block";
@@ -4093,7 +4098,7 @@ declare const SurfaceContractSchema: ZodObject<{
4093
4098
  }, {
4094
4099
  passThreshold: number;
4095
4100
  failureAction: "retry" | "flag" | "block";
4096
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4101
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4097
4102
  retry?: {
4098
4103
  maxAttempts: number;
4099
4104
  augmentPrompt?: string | undefined;
@@ -4114,7 +4119,7 @@ declare const SurfaceContractSchema: ZodObject<{
4114
4119
  } | undefined;
4115
4120
  enabled?: boolean | undefined;
4116
4121
  }>, {
4117
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4122
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4118
4123
  enabled: boolean;
4119
4124
  passThreshold: number;
4120
4125
  failureAction: "retry" | "flag" | "block";
@@ -4139,7 +4144,7 @@ declare const SurfaceContractSchema: ZodObject<{
4139
4144
  }, {
4140
4145
  passThreshold: number;
4141
4146
  failureAction: "retry" | "flag" | "block";
4142
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4147
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4143
4148
  retry?: {
4144
4149
  maxAttempts: number;
4145
4150
  augmentPrompt?: string | undefined;
@@ -4160,7 +4165,7 @@ declare const SurfaceContractSchema: ZodObject<{
4160
4165
  } | undefined;
4161
4166
  enabled?: boolean | undefined;
4162
4167
  }>, {
4163
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4168
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4164
4169
  enabled: boolean;
4165
4170
  passThreshold: number;
4166
4171
  failureAction: "retry" | "flag" | "block";
@@ -4185,7 +4190,7 @@ declare const SurfaceContractSchema: ZodObject<{
4185
4190
  }, {
4186
4191
  passThreshold: number;
4187
4192
  failureAction: "retry" | "flag" | "block";
4188
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4193
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4189
4194
  retry?: {
4190
4195
  maxAttempts: number;
4191
4196
  augmentPrompt?: string | undefined;
@@ -4220,11 +4225,11 @@ declare const SurfaceContractSchema: ZodObject<{
4220
4225
  }, "strip", ZodTypeAny$1, {
4221
4226
  id: string;
4222
4227
  scoring: "custom" | "exact-match" | "llm-judge";
4223
- passThreshold?: number | undefined;
4224
4228
  description?: string | undefined;
4229
+ passThreshold?: number | undefined;
4225
4230
  rubricRef?: string | undefined;
4226
4231
  gatePolicy?: {
4227
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4232
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4228
4233
  enabled: boolean;
4229
4234
  passThreshold: number;
4230
4235
  failureAction: "retry" | "flag" | "block";
@@ -4254,13 +4259,13 @@ declare const SurfaceContractSchema: ZodObject<{
4254
4259
  }, {
4255
4260
  id: string;
4256
4261
  scoring: "custom" | "exact-match" | "llm-judge";
4257
- passThreshold?: number | undefined;
4258
4262
  description?: string | undefined;
4263
+ passThreshold?: number | undefined;
4259
4264
  rubricRef?: string | undefined;
4260
4265
  gatePolicy?: {
4261
4266
  passThreshold: number;
4262
4267
  failureAction: "retry" | "flag" | "block";
4263
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4268
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4264
4269
  retry?: {
4265
4270
  maxAttempts: number;
4266
4271
  augmentPrompt?: string | undefined;
@@ -4289,15 +4294,15 @@ declare const SurfaceContractSchema: ZodObject<{
4289
4294
  }, "strip", ZodTypeAny$1, {
4290
4295
  surfaceId: string;
4291
4296
  lightSourceId: string | readonly string[];
4292
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4297
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4293
4298
  dimensions?: {
4294
4299
  id: string;
4295
4300
  scoring: "custom" | "exact-match" | "llm-judge";
4296
- passThreshold?: number | undefined;
4297
4301
  description?: string | undefined;
4302
+ passThreshold?: number | undefined;
4298
4303
  rubricRef?: string | undefined;
4299
4304
  gatePolicy?: {
4300
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4305
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4301
4306
  enabled: boolean;
4302
4307
  passThreshold: number;
4303
4308
  failureAction: "retry" | "flag" | "block";
@@ -4328,17 +4333,17 @@ declare const SurfaceContractSchema: ZodObject<{
4328
4333
  }, {
4329
4334
  surfaceId: string;
4330
4335
  lightSourceId: string | readonly string[];
4331
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4336
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4332
4337
  dimensions?: {
4333
4338
  id: string;
4334
4339
  scoring: "custom" | "exact-match" | "llm-judge";
4335
- passThreshold?: number | undefined;
4336
4340
  description?: string | undefined;
4341
+ passThreshold?: number | undefined;
4337
4342
  rubricRef?: string | undefined;
4338
4343
  gatePolicy?: {
4339
4344
  passThreshold: number;
4340
4345
  failureAction: "retry" | "flag" | "block";
4341
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4346
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4342
4347
  retry?: {
4343
4348
  maxAttempts: number;
4344
4349
  augmentPrompt?: string | undefined;
@@ -4369,15 +4374,15 @@ declare const SurfaceContractSchema: ZodObject<{
4369
4374
  skillDrafting: {
4370
4375
  surfaceId: string;
4371
4376
  lightSourceId: string | readonly string[];
4372
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4377
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4373
4378
  dimensions?: {
4374
4379
  id: string;
4375
4380
  scoring: "custom" | "exact-match" | "llm-judge";
4376
- passThreshold?: number | undefined;
4377
4381
  description?: string | undefined;
4382
+ passThreshold?: number | undefined;
4378
4383
  rubricRef?: string | undefined;
4379
4384
  gatePolicy?: {
4380
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4385
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4381
4386
  enabled: boolean;
4382
4387
  passThreshold: number;
4383
4388
  failureAction: "retry" | "flag" | "block";
@@ -4409,15 +4414,15 @@ declare const SurfaceContractSchema: ZodObject<{
4409
4414
  lessonDrafting?: {
4410
4415
  surfaceId: string;
4411
4416
  lightSourceId: string | readonly string[];
4412
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4417
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4413
4418
  dimensions?: {
4414
4419
  id: string;
4415
4420
  scoring: "custom" | "exact-match" | "llm-judge";
4416
- passThreshold?: number | undefined;
4417
4421
  description?: string | undefined;
4422
+ passThreshold?: number | undefined;
4418
4423
  rubricRef?: string | undefined;
4419
4424
  gatePolicy?: {
4420
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4425
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4421
4426
  enabled: boolean;
4422
4427
  passThreshold: number;
4423
4428
  failureAction: "retry" | "flag" | "block";
@@ -4449,15 +4454,15 @@ declare const SurfaceContractSchema: ZodObject<{
4449
4454
  fixtureGeneration?: {
4450
4455
  surfaceId: string;
4451
4456
  lightSourceId: string | readonly string[];
4452
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4457
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4453
4458
  dimensions?: {
4454
4459
  id: string;
4455
4460
  scoring: "custom" | "exact-match" | "llm-judge";
4456
- passThreshold?: number | undefined;
4457
4461
  description?: string | undefined;
4462
+ passThreshold?: number | undefined;
4458
4463
  rubricRef?: string | undefined;
4459
4464
  gatePolicy?: {
4460
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4465
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4461
4466
  enabled: boolean;
4462
4467
  passThreshold: number;
4463
4468
  failureAction: "retry" | "flag" | "block";
@@ -4489,15 +4494,15 @@ declare const SurfaceContractSchema: ZodObject<{
4489
4494
  codeChangeRecommendationDrafting?: {
4490
4495
  surfaceId: string;
4491
4496
  lightSourceId: string | readonly string[];
4492
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4497
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4493
4498
  dimensions?: {
4494
4499
  id: string;
4495
4500
  scoring: "custom" | "exact-match" | "llm-judge";
4496
- passThreshold?: number | undefined;
4497
4501
  description?: string | undefined;
4502
+ passThreshold?: number | undefined;
4498
4503
  rubricRef?: string | undefined;
4499
4504
  gatePolicy?: {
4500
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4505
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4501
4506
  enabled: boolean;
4502
4507
  passThreshold: number;
4503
4508
  failureAction: "retry" | "flag" | "block";
@@ -4529,15 +4534,15 @@ declare const SurfaceContractSchema: ZodObject<{
4529
4534
  blastRadiusJudging?: {
4530
4535
  surfaceId: string;
4531
4536
  lightSourceId: string | readonly string[];
4532
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4537
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4533
4538
  dimensions?: {
4534
4539
  id: string;
4535
4540
  scoring: "custom" | "exact-match" | "llm-judge";
4536
- passThreshold?: number | undefined;
4537
4541
  description?: string | undefined;
4542
+ passThreshold?: number | undefined;
4538
4543
  rubricRef?: string | undefined;
4539
4544
  gatePolicy?: {
4540
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4545
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4541
4546
  enabled: boolean;
4542
4547
  passThreshold: number;
4543
4548
  failureAction: "retry" | "flag" | "block";
@@ -4570,17 +4575,17 @@ declare const SurfaceContractSchema: ZodObject<{
4570
4575
  skillDrafting: {
4571
4576
  surfaceId: string;
4572
4577
  lightSourceId: string | readonly string[];
4573
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4578
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4574
4579
  dimensions?: {
4575
4580
  id: string;
4576
4581
  scoring: "custom" | "exact-match" | "llm-judge";
4577
- passThreshold?: number | undefined;
4578
4582
  description?: string | undefined;
4583
+ passThreshold?: number | undefined;
4579
4584
  rubricRef?: string | undefined;
4580
4585
  gatePolicy?: {
4581
4586
  passThreshold: number;
4582
4587
  failureAction: "retry" | "flag" | "block";
4583
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4588
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4584
4589
  retry?: {
4585
4590
  maxAttempts: number;
4586
4591
  augmentPrompt?: string | undefined;
@@ -4610,17 +4615,17 @@ declare const SurfaceContractSchema: ZodObject<{
4610
4615
  lessonDrafting?: {
4611
4616
  surfaceId: string;
4612
4617
  lightSourceId: string | readonly string[];
4613
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4618
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4614
4619
  dimensions?: {
4615
4620
  id: string;
4616
4621
  scoring: "custom" | "exact-match" | "llm-judge";
4617
- passThreshold?: number | undefined;
4618
4622
  description?: string | undefined;
4623
+ passThreshold?: number | undefined;
4619
4624
  rubricRef?: string | undefined;
4620
4625
  gatePolicy?: {
4621
4626
  passThreshold: number;
4622
4627
  failureAction: "retry" | "flag" | "block";
4623
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4628
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4624
4629
  retry?: {
4625
4630
  maxAttempts: number;
4626
4631
  augmentPrompt?: string | undefined;
@@ -4650,17 +4655,17 @@ declare const SurfaceContractSchema: ZodObject<{
4650
4655
  fixtureGeneration?: {
4651
4656
  surfaceId: string;
4652
4657
  lightSourceId: string | readonly string[];
4653
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4658
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4654
4659
  dimensions?: {
4655
4660
  id: string;
4656
4661
  scoring: "custom" | "exact-match" | "llm-judge";
4657
- passThreshold?: number | undefined;
4658
4662
  description?: string | undefined;
4663
+ passThreshold?: number | undefined;
4659
4664
  rubricRef?: string | undefined;
4660
4665
  gatePolicy?: {
4661
4666
  passThreshold: number;
4662
4667
  failureAction: "retry" | "flag" | "block";
4663
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4668
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4664
4669
  retry?: {
4665
4670
  maxAttempts: number;
4666
4671
  augmentPrompt?: string | undefined;
@@ -4690,17 +4695,17 @@ declare const SurfaceContractSchema: ZodObject<{
4690
4695
  codeChangeRecommendationDrafting?: {
4691
4696
  surfaceId: string;
4692
4697
  lightSourceId: string | readonly string[];
4693
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4698
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4694
4699
  dimensions?: {
4695
4700
  id: string;
4696
4701
  scoring: "custom" | "exact-match" | "llm-judge";
4697
- passThreshold?: number | undefined;
4698
4702
  description?: string | undefined;
4703
+ passThreshold?: number | undefined;
4699
4704
  rubricRef?: string | undefined;
4700
4705
  gatePolicy?: {
4701
4706
  passThreshold: number;
4702
4707
  failureAction: "retry" | "flag" | "block";
4703
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4708
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4704
4709
  retry?: {
4705
4710
  maxAttempts: number;
4706
4711
  augmentPrompt?: string | undefined;
@@ -4730,17 +4735,17 @@ declare const SurfaceContractSchema: ZodObject<{
4730
4735
  blastRadiusJudging?: {
4731
4736
  surfaceId: string;
4732
4737
  lightSourceId: string | readonly string[];
4733
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4738
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4734
4739
  dimensions?: {
4735
4740
  id: string;
4736
4741
  scoring: "custom" | "exact-match" | "llm-judge";
4737
- passThreshold?: number | undefined;
4738
4742
  description?: string | undefined;
4743
+ passThreshold?: number | undefined;
4739
4744
  rubricRef?: string | undefined;
4740
4745
  gatePolicy?: {
4741
4746
  passThreshold: number;
4742
4747
  failureAction: "retry" | "flag" | "block";
4743
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4748
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4744
4749
  retry?: {
4745
4750
  maxAttempts: number;
4746
4751
  augmentPrompt?: string | undefined;
@@ -4771,16 +4776,16 @@ declare const SurfaceContractSchema: ZodObject<{
4771
4776
  }, "strip", ZodTypeAny$1, {
4772
4777
  agentId: string;
4773
4778
  surfaces: {
4774
- status: "active" | "forward-declared" | "deprecated";
4775
4779
  id: string;
4780
+ status: "active" | "forward-declared" | "deprecated";
4776
4781
  dimensions: {
4777
4782
  id: string;
4778
4783
  scoring: "custom" | "exact-match" | "llm-judge";
4779
- passThreshold?: number | undefined;
4780
4784
  description?: string | undefined;
4785
+ passThreshold?: number | undefined;
4781
4786
  rubricRef?: string | undefined;
4782
4787
  gatePolicy?: {
4783
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4788
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4784
4789
  enabled: boolean;
4785
4790
  passThreshold: number;
4786
4791
  failureAction: "retry" | "flag" | "block";
@@ -4814,8 +4819,9 @@ declare const SurfaceContractSchema: ZodObject<{
4814
4819
  control: "operator" | "vendor" | "platform" | "third-party";
4815
4820
  visibility: "transparent" | "announced" | "opaque";
4816
4821
  semantic: "deployment-state" | "diagnostic";
4817
- values?: string[] | undefined;
4818
4822
  description?: string | undefined;
4823
+ values?: string[] | undefined;
4824
+ emissionExpectation?: "always" | "conditional" | undefined;
4819
4825
  }[];
4820
4826
  removedDimensions: {
4821
4827
  id: string;
@@ -4845,7 +4851,7 @@ declare const SurfaceContractSchema: ZodObject<{
4845
4851
  routings?: {
4846
4852
  surfaceId: string;
4847
4853
  lightSourceId: string | readonly string[];
4848
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4854
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4849
4855
  }[] | undefined;
4850
4856
  pricing?: Record<string, {
4851
4857
  perMillionInput: number;
@@ -4857,15 +4863,15 @@ declare const SurfaceContractSchema: ZodObject<{
4857
4863
  skillDrafting: {
4858
4864
  surfaceId: string;
4859
4865
  lightSourceId: string | readonly string[];
4860
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4866
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4861
4867
  dimensions?: {
4862
4868
  id: string;
4863
4869
  scoring: "custom" | "exact-match" | "llm-judge";
4864
- passThreshold?: number | undefined;
4865
4870
  description?: string | undefined;
4871
+ passThreshold?: number | undefined;
4866
4872
  rubricRef?: string | undefined;
4867
4873
  gatePolicy?: {
4868
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4874
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4869
4875
  enabled: boolean;
4870
4876
  passThreshold: number;
4871
4877
  failureAction: "retry" | "flag" | "block";
@@ -4897,15 +4903,15 @@ declare const SurfaceContractSchema: ZodObject<{
4897
4903
  lessonDrafting?: {
4898
4904
  surfaceId: string;
4899
4905
  lightSourceId: string | readonly string[];
4900
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4906
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4901
4907
  dimensions?: {
4902
4908
  id: string;
4903
4909
  scoring: "custom" | "exact-match" | "llm-judge";
4904
- passThreshold?: number | undefined;
4905
4910
  description?: string | undefined;
4911
+ passThreshold?: number | undefined;
4906
4912
  rubricRef?: string | undefined;
4907
4913
  gatePolicy?: {
4908
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4914
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4909
4915
  enabled: boolean;
4910
4916
  passThreshold: number;
4911
4917
  failureAction: "retry" | "flag" | "block";
@@ -4937,15 +4943,15 @@ declare const SurfaceContractSchema: ZodObject<{
4937
4943
  fixtureGeneration?: {
4938
4944
  surfaceId: string;
4939
4945
  lightSourceId: string | readonly string[];
4940
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4946
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4941
4947
  dimensions?: {
4942
4948
  id: string;
4943
4949
  scoring: "custom" | "exact-match" | "llm-judge";
4944
- passThreshold?: number | undefined;
4945
4950
  description?: string | undefined;
4951
+ passThreshold?: number | undefined;
4946
4952
  rubricRef?: string | undefined;
4947
4953
  gatePolicy?: {
4948
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4954
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4949
4955
  enabled: boolean;
4950
4956
  passThreshold: number;
4951
4957
  failureAction: "retry" | "flag" | "block";
@@ -4977,15 +4983,15 @@ declare const SurfaceContractSchema: ZodObject<{
4977
4983
  codeChangeRecommendationDrafting?: {
4978
4984
  surfaceId: string;
4979
4985
  lightSourceId: string | readonly string[];
4980
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
4986
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
4981
4987
  dimensions?: {
4982
4988
  id: string;
4983
4989
  scoring: "custom" | "exact-match" | "llm-judge";
4984
- passThreshold?: number | undefined;
4985
4990
  description?: string | undefined;
4991
+ passThreshold?: number | undefined;
4986
4992
  rubricRef?: string | undefined;
4987
4993
  gatePolicy?: {
4988
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
4994
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
4989
4995
  enabled: boolean;
4990
4996
  passThreshold: number;
4991
4997
  failureAction: "retry" | "flag" | "block";
@@ -5017,15 +5023,15 @@ declare const SurfaceContractSchema: ZodObject<{
5017
5023
  blastRadiusJudging?: {
5018
5024
  surfaceId: string;
5019
5025
  lightSourceId: string | readonly string[];
5020
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5026
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5021
5027
  dimensions?: {
5022
5028
  id: string;
5023
5029
  scoring: "custom" | "exact-match" | "llm-judge";
5024
- passThreshold?: number | undefined;
5025
5030
  description?: string | undefined;
5031
+ passThreshold?: number | undefined;
5026
5032
  rubricRef?: string | undefined;
5027
5033
  gatePolicy?: {
5028
- activeRunModes: ("local_dev" | "replay" | "production" | "test" | "eval")[];
5034
+ activeRunModes: ("production" | "test" | "eval" | "replay" | "local_dev")[];
5029
5035
  enabled: boolean;
5030
5036
  passThreshold: number;
5031
5037
  failureAction: "retry" | "flag" | "block";
@@ -5062,13 +5068,13 @@ declare const SurfaceContractSchema: ZodObject<{
5062
5068
  dimensions: {
5063
5069
  id: string;
5064
5070
  scoring: "custom" | "exact-match" | "llm-judge";
5065
- passThreshold?: number | undefined;
5066
5071
  description?: string | undefined;
5072
+ passThreshold?: number | undefined;
5067
5073
  rubricRef?: string | undefined;
5068
5074
  gatePolicy?: {
5069
5075
  passThreshold: number;
5070
5076
  failureAction: "retry" | "flag" | "block";
5071
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5077
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5072
5078
  retry?: {
5073
5079
  maxAttempts: number;
5074
5080
  augmentPrompt?: string | undefined;
@@ -5094,16 +5100,17 @@ declare const SurfaceContractSchema: ZodObject<{
5094
5100
  kind: "enum";
5095
5101
  } | undefined;
5096
5102
  }[];
5097
- status?: "active" | "forward-declared" | "deprecated" | undefined;
5098
5103
  description?: string | undefined;
5104
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
5099
5105
  cohortTags?: string[] | undefined;
5100
5106
  substrateColumns?: {
5101
5107
  id: string;
5102
5108
  control: "operator" | "vendor" | "platform" | "third-party";
5103
5109
  visibility: "transparent" | "announced" | "opaque";
5104
- values?: string[] | undefined;
5105
5110
  description?: string | undefined;
5106
5111
  semantic?: "deployment-state" | "diagnostic" | undefined;
5112
+ values?: string[] | undefined;
5113
+ emissionExpectation?: "always" | "conditional" | undefined;
5107
5114
  }[] | undefined;
5108
5115
  removedDimensions?: {
5109
5116
  id: string;
@@ -5132,7 +5139,7 @@ declare const SurfaceContractSchema: ZodObject<{
5132
5139
  routings?: {
5133
5140
  surfaceId: string;
5134
5141
  lightSourceId: string | readonly string[];
5135
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5142
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5136
5143
  }[] | undefined;
5137
5144
  pricing?: Record<string, {
5138
5145
  perMillionInput: number;
@@ -5144,17 +5151,17 @@ declare const SurfaceContractSchema: ZodObject<{
5144
5151
  skillDrafting: {
5145
5152
  surfaceId: string;
5146
5153
  lightSourceId: string | readonly string[];
5147
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5154
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5148
5155
  dimensions?: {
5149
5156
  id: string;
5150
5157
  scoring: "custom" | "exact-match" | "llm-judge";
5151
- passThreshold?: number | undefined;
5152
5158
  description?: string | undefined;
5159
+ passThreshold?: number | undefined;
5153
5160
  rubricRef?: string | undefined;
5154
5161
  gatePolicy?: {
5155
5162
  passThreshold: number;
5156
5163
  failureAction: "retry" | "flag" | "block";
5157
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5164
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5158
5165
  retry?: {
5159
5166
  maxAttempts: number;
5160
5167
  augmentPrompt?: string | undefined;
@@ -5184,17 +5191,17 @@ declare const SurfaceContractSchema: ZodObject<{
5184
5191
  lessonDrafting?: {
5185
5192
  surfaceId: string;
5186
5193
  lightSourceId: string | readonly string[];
5187
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5194
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5188
5195
  dimensions?: {
5189
5196
  id: string;
5190
5197
  scoring: "custom" | "exact-match" | "llm-judge";
5191
- passThreshold?: number | undefined;
5192
5198
  description?: string | undefined;
5199
+ passThreshold?: number | undefined;
5193
5200
  rubricRef?: string | undefined;
5194
5201
  gatePolicy?: {
5195
5202
  passThreshold: number;
5196
5203
  failureAction: "retry" | "flag" | "block";
5197
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5204
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5198
5205
  retry?: {
5199
5206
  maxAttempts: number;
5200
5207
  augmentPrompt?: string | undefined;
@@ -5224,17 +5231,17 @@ declare const SurfaceContractSchema: ZodObject<{
5224
5231
  fixtureGeneration?: {
5225
5232
  surfaceId: string;
5226
5233
  lightSourceId: string | readonly string[];
5227
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5234
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5228
5235
  dimensions?: {
5229
5236
  id: string;
5230
5237
  scoring: "custom" | "exact-match" | "llm-judge";
5231
- passThreshold?: number | undefined;
5232
5238
  description?: string | undefined;
5239
+ passThreshold?: number | undefined;
5233
5240
  rubricRef?: string | undefined;
5234
5241
  gatePolicy?: {
5235
5242
  passThreshold: number;
5236
5243
  failureAction: "retry" | "flag" | "block";
5237
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5244
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5238
5245
  retry?: {
5239
5246
  maxAttempts: number;
5240
5247
  augmentPrompt?: string | undefined;
@@ -5264,17 +5271,17 @@ declare const SurfaceContractSchema: ZodObject<{
5264
5271
  codeChangeRecommendationDrafting?: {
5265
5272
  surfaceId: string;
5266
5273
  lightSourceId: string | readonly string[];
5267
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5274
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5268
5275
  dimensions?: {
5269
5276
  id: string;
5270
5277
  scoring: "custom" | "exact-match" | "llm-judge";
5271
- passThreshold?: number | undefined;
5272
5278
  description?: string | undefined;
5279
+ passThreshold?: number | undefined;
5273
5280
  rubricRef?: string | undefined;
5274
5281
  gatePolicy?: {
5275
5282
  passThreshold: number;
5276
5283
  failureAction: "retry" | "flag" | "block";
5277
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5284
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5278
5285
  retry?: {
5279
5286
  maxAttempts: number;
5280
5287
  augmentPrompt?: string | undefined;
@@ -5304,17 +5311,17 @@ declare const SurfaceContractSchema: ZodObject<{
5304
5311
  blastRadiusJudging?: {
5305
5312
  surfaceId: string;
5306
5313
  lightSourceId: string | readonly string[];
5307
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5314
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5308
5315
  dimensions?: {
5309
5316
  id: string;
5310
5317
  scoring: "custom" | "exact-match" | "llm-judge";
5311
- passThreshold?: number | undefined;
5312
5318
  description?: string | undefined;
5319
+ passThreshold?: number | undefined;
5313
5320
  rubricRef?: string | undefined;
5314
5321
  gatePolicy?: {
5315
5322
  passThreshold: number;
5316
5323
  failureAction: "retry" | "flag" | "block";
5317
- activeRunModes?: ("local_dev" | "replay" | "production" | "test" | "eval")[] | undefined;
5324
+ activeRunModes?: ("production" | "test" | "eval" | "replay" | "local_dev")[] | undefined;
5318
5325
  retry?: {
5319
5326
  maxAttempts: number;
5320
5327
  augmentPrompt?: string | undefined;
@@ -5922,6 +5929,8 @@ declare const LightSnapshotSchema: ZodObject<{
5922
5929
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
5923
5930
 
5924
5931
  rawRequestOmitted: ZodOptional$1<ZodBoolean>;
5932
+
5933
+ rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
5925
5934
  }, "strip", ZodTypeAny$1, {
5926
5935
  rawRequest?: objectOutputType<{
5927
5936
  surfaceId: ZodString;
@@ -6118,6 +6127,7 @@ declare const LightSnapshotSchema: ZodObject<{
6118
6127
  } | undefined;
6119
6128
  vendorMetadata?: Record<string, unknown> | undefined;
6120
6129
  rawRequestOmitted?: boolean | undefined;
6130
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6121
6131
  }, {
6122
6132
  rawRequest?: objectInputType<{
6123
6133
  surfaceId: ZodString;
@@ -6314,6 +6324,7 @@ declare const LightSnapshotSchema: ZodObject<{
6314
6324
  } | undefined;
6315
6325
  vendorMetadata?: Record<string, unknown> | undefined;
6316
6326
  rawRequestOmitted?: boolean | undefined;
6327
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6317
6328
  }>;
6318
6329
  type LightSnapshot = TypeOf$1<typeof LightSnapshotSchema>;
6319
6330
  declare const GateOutcomeSchema: ZodObject<{
@@ -6379,7 +6390,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
6379
6390
 
6380
6391
  lensVersion: ZodString;
6381
6392
 
6382
- kind: ZodDefault$1<ZodEnum$1<["evaluation", "availability.transition", "analysis.noise-floor-calibration", "analysis.variance-decomposition", "analysis.lifecycle-transition", "analysis.eval-recommendation", "analysis.conformance-fixture"]>>;
6393
+ 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"]>>;
6383
6394
 
6384
6395
  light: ZodOptional$1<ZodObject<{
6385
6396
 
@@ -6958,6 +6969,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
6958
6969
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
6959
6970
 
6960
6971
  rawRequestOmitted: ZodOptional$1<ZodBoolean>;
6972
+
6973
+ rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
6961
6974
  }, "strip", ZodTypeAny$1, {
6962
6975
  rawRequest?: objectOutputType<{
6963
6976
  surfaceId: ZodString;
@@ -7154,6 +7167,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7154
7167
  } | undefined;
7155
7168
  vendorMetadata?: Record<string, unknown> | undefined;
7156
7169
  rawRequestOmitted?: boolean | undefined;
7170
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7157
7171
  }, {
7158
7172
  rawRequest?: objectInputType<{
7159
7173
  surfaceId: ZodString;
@@ -7350,6 +7364,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7350
7364
  } | undefined;
7351
7365
  vendorMetadata?: Record<string, unknown> | undefined;
7352
7366
  rawRequestOmitted?: boolean | undefined;
7367
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7353
7368
  }>>;
7354
7369
 
7355
7370
  substrate: ZodOptional$1<ZodObject<{
@@ -7361,19 +7376,19 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7361
7376
  timestamp: ZodString;
7362
7377
  columns: ZodRecord<ZodString, ZodString>;
7363
7378
  }, "strip", ZodTypeAny$1, {
7364
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
7379
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
7365
7380
  timestamp: string;
7366
7381
  lensVersion: string;
7367
7382
  lightSourceIdentifier: string;
7368
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
7383
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
7369
7384
  correlationId: string;
7370
7385
  columns: Record<string, string>;
7371
7386
  }, {
7372
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
7387
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
7373
7388
  timestamp: string;
7374
7389
  lensVersion: string;
7375
7390
  lightSourceIdentifier: string;
7376
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
7391
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
7377
7392
  correlationId: string;
7378
7393
  columns: Record<string, string>;
7379
7394
  }>>;
@@ -7970,24 +7985,24 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7970
7985
  present: ZodOptional$1<ZodBoolean>;
7971
7986
  }, "strip", ZodTypeAny$1, {
7972
7987
  column: string;
7988
+ present?: boolean | undefined;
7973
7989
  equals?: string | undefined;
7974
7990
  oneOf?: string[] | undefined;
7975
- present?: boolean | undefined;
7976
7991
  }, {
7977
7992
  column: string;
7993
+ present?: boolean | undefined;
7978
7994
  equals?: string | undefined;
7979
7995
  oneOf?: string[] | undefined;
7980
- present?: boolean | undefined;
7981
7996
  }>, {
7982
7997
  column: string;
7998
+ present?: boolean | undefined;
7983
7999
  equals?: string | undefined;
7984
8000
  oneOf?: string[] | undefined;
7985
- present?: boolean | undefined;
7986
8001
  }, {
7987
8002
  column: string;
8003
+ present?: boolean | undefined;
7988
8004
  equals?: string | undefined;
7989
8005
  oneOf?: string[] | undefined;
7990
- present?: boolean | undefined;
7991
8006
  }>, "many">>;
7992
8007
  }, "strip", ZodTypeAny$1, {
7993
8008
  description: string;
@@ -8025,9 +8040,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8025
8040
  sourceExcerpt?: string | undefined;
8026
8041
  when?: {
8027
8042
  column: string;
8043
+ present?: boolean | undefined;
8028
8044
  equals?: string | undefined;
8029
8045
  oneOf?: string[] | undefined;
8030
- present?: boolean | undefined;
8031
8046
  }[] | undefined;
8032
8047
  }, {
8033
8048
  description: string;
@@ -8065,9 +8080,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8065
8080
  sourceExcerpt?: string | undefined;
8066
8081
  when?: {
8067
8082
  column: string;
8083
+ present?: boolean | undefined;
8068
8084
  equals?: string | undefined;
8069
8085
  oneOf?: string[] | undefined;
8070
- present?: boolean | undefined;
8071
8086
  }[] | undefined;
8072
8087
  }>, {
8073
8088
  description: string;
@@ -8105,9 +8120,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8105
8120
  sourceExcerpt?: string | undefined;
8106
8121
  when?: {
8107
8122
  column: string;
8123
+ present?: boolean | undefined;
8108
8124
  equals?: string | undefined;
8109
8125
  oneOf?: string[] | undefined;
8110
- present?: boolean | undefined;
8111
8126
  }[] | undefined;
8112
8127
  }, {
8113
8128
  description: string;
@@ -8145,9 +8160,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8145
8160
  sourceExcerpt?: string | undefined;
8146
8161
  when?: {
8147
8162
  column: string;
8163
+ present?: boolean | undefined;
8148
8164
  equals?: string | undefined;
8149
8165
  oneOf?: string[] | undefined;
8150
- present?: boolean | undefined;
8151
8166
  }[] | undefined;
8152
8167
  }>;
8153
8168
 
@@ -8194,9 +8209,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8194
8209
  sourceExcerpt?: string | undefined;
8195
8210
  when?: {
8196
8211
  column: string;
8212
+ present?: boolean | undefined;
8197
8213
  equals?: string | undefined;
8198
8214
  oneOf?: string[] | undefined;
8199
- present?: boolean | undefined;
8200
8215
  }[] | undefined;
8201
8216
  };
8202
8217
  occurredAt: string;
@@ -8239,27 +8254,52 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8239
8254
  sourceExcerpt?: string | undefined;
8240
8255
  when?: {
8241
8256
  column: string;
8257
+ present?: boolean | undefined;
8242
8258
  equals?: string | undefined;
8243
8259
  oneOf?: string[] | undefined;
8244
- present?: boolean | undefined;
8245
8260
  }[] | undefined;
8246
8261
  };
8247
8262
  occurredAt: string;
8248
8263
  sourceSurfaceId?: string | undefined;
8249
8264
  }>>;
8265
+
8266
+ emissionCoverage: ZodOptional$1<ZodObject<{
8267
+
8268
+ streamId: ZodString;
8269
+
8270
+ observedOrdinals: ZodArray$1<ZodNumber, "many">;
8271
+
8272
+ sentinelHighWater: ZodNullable$1<ZodNumber>;
8273
+
8274
+ finalSeen: ZodBoolean;
8275
+
8276
+ observedAtMs: ZodNumber;
8277
+ }, "strip", ZodTypeAny$1, {
8278
+ streamId: string;
8279
+ observedOrdinals: number[];
8280
+ sentinelHighWater: number | null;
8281
+ finalSeen: boolean;
8282
+ observedAtMs: number;
8283
+ }, {
8284
+ streamId: string;
8285
+ observedOrdinals: number[];
8286
+ sentinelHighWater: number | null;
8287
+ finalSeen: boolean;
8288
+ observedAtMs: number;
8289
+ }>>;
8250
8290
  }, "strip", ZodTypeAny$1, {
8251
- surfaceId: string;
8252
- kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture";
8253
8291
  lensVersion: string;
8254
8292
  correlationId: string;
8293
+ surfaceId: string;
8294
+ kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage";
8255
8295
  occurredAt: string;
8256
8296
  eventId: string;
8257
8297
  substrate?: {
8258
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
8298
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
8259
8299
  timestamp: string;
8260
8300
  lensVersion: string;
8261
8301
  lightSourceIdentifier: string;
8262
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
8302
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
8263
8303
  correlationId: string;
8264
8304
  columns: Record<string, string>;
8265
8305
  } | undefined;
@@ -8459,6 +8499,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8459
8499
  } | undefined;
8460
8500
  vendorMetadata?: Record<string, unknown> | undefined;
8461
8501
  rawRequestOmitted?: boolean | undefined;
8502
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
8462
8503
  } | undefined;
8463
8504
  surface?: {
8464
8505
  surfaceId: string;
@@ -8605,30 +8646,37 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8605
8646
  sourceExcerpt?: string | undefined;
8606
8647
  when?: {
8607
8648
  column: string;
8649
+ present?: boolean | undefined;
8608
8650
  equals?: string | undefined;
8609
8651
  oneOf?: string[] | undefined;
8610
- present?: boolean | undefined;
8611
8652
  }[] | undefined;
8612
8653
  };
8613
8654
  occurredAt: string;
8614
8655
  sourceSurfaceId?: string | undefined;
8615
8656
  } | undefined;
8657
+ emissionCoverage?: {
8658
+ streamId: string;
8659
+ observedOrdinals: number[];
8660
+ sentinelHighWater: number | null;
8661
+ finalSeen: boolean;
8662
+ observedAtMs: number;
8663
+ } | undefined;
8616
8664
  }, {
8617
- surfaceId: string;
8618
8665
  lensVersion: string;
8619
8666
  correlationId: string;
8667
+ surfaceId: string;
8620
8668
  occurredAt: string;
8621
8669
  eventId: string;
8622
8670
  substrate?: {
8623
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
8671
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
8624
8672
  timestamp: string;
8625
8673
  lensVersion: string;
8626
8674
  lightSourceIdentifier: string;
8627
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
8675
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
8628
8676
  correlationId: string;
8629
8677
  columns: Record<string, string>;
8630
8678
  } | undefined;
8631
- kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | undefined;
8679
+ kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | undefined;
8632
8680
  light?: {
8633
8681
  rawRequest?: objectInputType<{
8634
8682
  surfaceId: ZodString;
@@ -8825,6 +8873,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8825
8873
  } | undefined;
8826
8874
  vendorMetadata?: Record<string, unknown> | undefined;
8827
8875
  rawRequestOmitted?: boolean | undefined;
8876
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
8828
8877
  } | undefined;
8829
8878
  surface?: {
8830
8879
  surfaceId: string;
@@ -8971,27 +9020,34 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8971
9020
  sourceExcerpt?: string | undefined;
8972
9021
  when?: {
8973
9022
  column: string;
9023
+ present?: boolean | undefined;
8974
9024
  equals?: string | undefined;
8975
9025
  oneOf?: string[] | undefined;
8976
- present?: boolean | undefined;
8977
9026
  }[] | undefined;
8978
9027
  };
8979
9028
  occurredAt: string;
8980
9029
  sourceSurfaceId?: string | undefined;
8981
9030
  } | undefined;
9031
+ emissionCoverage?: {
9032
+ streamId: string;
9033
+ observedOrdinals: number[];
9034
+ sentinelHighWater: number | null;
9035
+ finalSeen: boolean;
9036
+ observedAtMs: number;
9037
+ } | undefined;
8982
9038
  }>, {
8983
- surfaceId: string;
8984
- kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture";
8985
9039
  lensVersion: string;
8986
9040
  correlationId: string;
9041
+ surfaceId: string;
9042
+ kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage";
8987
9043
  occurredAt: string;
8988
9044
  eventId: string;
8989
9045
  substrate?: {
8990
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
9046
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
8991
9047
  timestamp: string;
8992
9048
  lensVersion: string;
8993
9049
  lightSourceIdentifier: string;
8994
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
9050
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
8995
9051
  correlationId: string;
8996
9052
  columns: Record<string, string>;
8997
9053
  } | undefined;
@@ -9191,6 +9247,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9191
9247
  } | undefined;
9192
9248
  vendorMetadata?: Record<string, unknown> | undefined;
9193
9249
  rawRequestOmitted?: boolean | undefined;
9250
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
9194
9251
  } | undefined;
9195
9252
  surface?: {
9196
9253
  surfaceId: string;
@@ -9337,30 +9394,37 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9337
9394
  sourceExcerpt?: string | undefined;
9338
9395
  when?: {
9339
9396
  column: string;
9397
+ present?: boolean | undefined;
9340
9398
  equals?: string | undefined;
9341
9399
  oneOf?: string[] | undefined;
9342
- present?: boolean | undefined;
9343
9400
  }[] | undefined;
9344
9401
  };
9345
9402
  occurredAt: string;
9346
9403
  sourceSurfaceId?: string | undefined;
9347
9404
  } | undefined;
9405
+ emissionCoverage?: {
9406
+ streamId: string;
9407
+ observedOrdinals: number[];
9408
+ sentinelHighWater: number | null;
9409
+ finalSeen: boolean;
9410
+ observedAtMs: number;
9411
+ } | undefined;
9348
9412
  }, {
9349
- surfaceId: string;
9350
9413
  lensVersion: string;
9351
9414
  correlationId: string;
9415
+ surfaceId: string;
9352
9416
  occurredAt: string;
9353
9417
  eventId: string;
9354
9418
  substrate?: {
9355
- provenance: "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run" | "replay";
9419
+ provenance: "replay" | "local_dev" | "pre_deploy_gate" | "scheduled_production_eval" | "manual_production_run";
9356
9420
  timestamp: string;
9357
9421
  lensVersion: string;
9358
9422
  lightSourceIdentifier: string;
9359
- runMode: "local_dev" | "replay" | "production" | "test" | "eval";
9423
+ runMode: "production" | "test" | "eval" | "replay" | "local_dev";
9360
9424
  correlationId: string;
9361
9425
  columns: Record<string, string>;
9362
9426
  } | undefined;
9363
- kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | undefined;
9427
+ kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | undefined;
9364
9428
  light?: {
9365
9429
  rawRequest?: objectInputType<{
9366
9430
  surfaceId: ZodString;
@@ -9557,6 +9621,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9557
9621
  } | undefined;
9558
9622
  vendorMetadata?: Record<string, unknown> | undefined;
9559
9623
  rawRequestOmitted?: boolean | undefined;
9624
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
9560
9625
  } | undefined;
9561
9626
  surface?: {
9562
9627
  surfaceId: string;
@@ -9703,14 +9768,21 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9703
9768
  sourceExcerpt?: string | undefined;
9704
9769
  when?: {
9705
9770
  column: string;
9771
+ present?: boolean | undefined;
9706
9772
  equals?: string | undefined;
9707
9773
  oneOf?: string[] | undefined;
9708
- present?: boolean | undefined;
9709
9774
  }[] | undefined;
9710
9775
  };
9711
9776
  occurredAt: string;
9712
9777
  sourceSurfaceId?: string | undefined;
9713
9778
  } | undefined;
9779
+ emissionCoverage?: {
9780
+ streamId: string;
9781
+ observedOrdinals: number[];
9782
+ sentinelHighWater: number | null;
9783
+ finalSeen: boolean;
9784
+ observedAtMs: number;
9785
+ } | undefined;
9714
9786
  }>;
9715
9787
  type EvaluationEvent = TypeOf$1<typeof EvaluationEventSchema>;
9716
9788
 
@@ -10989,6 +11061,8 @@ interface ContractSurfaceSummary {
10989
11061
  dimensionCount: number;
10990
11062
  cohortTagCount: number;
10991
11063
  substrateColumnCount: number;
11064
+
11065
+ substrateColumnIds?: string[];
10992
11066
  gatedDimensionIds: string[];
10993
11067
  }
10994
11068
 
@@ -10998,6 +11072,92 @@ interface ContractRegisterResponse {
10998
11072
  surfaces: ContractSurfaceSummary[];
10999
11073
  }
11000
11074
 
11075
+ type EmitMode = 'sync' | 'buffered' | 'otlp' | 'dual';
11076
+
11077
+ interface OtlpEmitConfig {
11078
+
11079
+ endpoint?: string;
11080
+
11081
+ headers?: Record<string, string>;
11082
+
11083
+ maxQueueSize?: number;
11084
+ }
11085
+
11086
+ type EmitChannel = 'http' | 'otlp';
11087
+
11088
+ interface EmitChannelCompleteness {
11089
+
11090
+ attempted: number;
11091
+
11092
+ delivered: number;
11093
+
11094
+ failed: number;
11095
+ }
11096
+
11097
+ interface EmitOptions {
11098
+
11099
+ mode?: EmitMode;
11100
+
11101
+ otlp?: OtlpEmitConfig;
11102
+
11103
+ bufferSize?: number;
11104
+
11105
+ flushIntervalMs?: number;
11106
+
11107
+ sentinelIntervalMs?: number;
11108
+
11109
+ windowMs?: number;
11110
+
11111
+ extremeSustainedLoad?: {
11112
+ dropRateThreshold?: number;
11113
+ sustainedForMs?: number;
11114
+ };
11115
+
11116
+ onWindow?: (window: CompletenessWindow) => void;
11117
+
11118
+ onExtremeSustainedLoad?: (event: ExtremeSustainedLoadEvent) => void;
11119
+
11120
+ onFlushError?: (error: unknown) => void;
11121
+ }
11122
+
11123
+ interface CompletenessWindow {
11124
+
11125
+ lensVersion: string;
11126
+
11127
+ windowStartMs: number;
11128
+
11129
+ windowEndMs: number;
11130
+
11131
+ offered: number;
11132
+
11133
+ dropped: number;
11134
+
11135
+ delivered: number;
11136
+
11137
+ failed: number;
11138
+
11139
+ channels: Partial<Record<EmitChannel, EmitChannelCompleteness>>;
11140
+
11141
+ completenessLowerBound: number;
11142
+
11143
+ biasFlag: boolean;
11144
+ }
11145
+
11146
+ interface ExtremeSustainedLoadEvent {
11147
+
11148
+ lensVersion: string;
11149
+
11150
+ sinceMs: number;
11151
+
11152
+ firedAtMs: number;
11153
+
11154
+ sustainedForMs: number;
11155
+
11156
+ dropRate: number;
11157
+
11158
+ dropRateThreshold: number;
11159
+ }
11160
+
11001
11161
  interface Transport {
11002
11162
 
11003
11163
  dispatch(req: MediatorCallRequest): Promise<MediatorCallResult | GateExecutionResult>;
@@ -11006,6 +11166,8 @@ interface Transport {
11006
11166
 
11007
11167
  postContract?(contract: SurfaceContract): Promise<ContractRegisterResponse>;
11008
11168
 
11169
+ getContract?(): Promise<ContractRegisterResponse>;
11170
+
11009
11171
  markAvailability?(req: LensAvailabilityMarkRequest): Promise<LensAvailabilityMarkResponse>;
11010
11172
  }
11011
11173
 
@@ -11018,6 +11180,10 @@ interface HttpTransportOptions {
11018
11180
  fetch?: typeof fetch;
11019
11181
 
11020
11182
  runMode?: 'production' | 'eval' | 'test' | 'replay' | 'local_dev';
11183
+
11184
+ emit?: EmitOptions;
11185
+
11186
+ lensVersion?: string;
11021
11187
  }
11022
11188
 
11023
11189
  declare class HolonographHttpError extends Error {
@@ -11031,12 +11197,23 @@ declare class HttpTransport implements Transport {
11031
11197
  private readonly token;
11032
11198
  private readonly fetchImpl;
11033
11199
  private readonly runMode;
11200
+
11201
+ private readonly emitter;
11034
11202
  constructor(opts: HttpTransportOptions);
11035
11203
  dispatch(req: MediatorCallRequest): Promise<MediatorCallResult | GateExecutionResult>;
11036
11204
  appendEvent(event: EvaluationEvent): Promise<string>;
11205
+
11206
+ private postEvent;
11207
+
11208
+ completenessWindow(): CompletenessWindow | null;
11209
+
11210
+ shutdown(): Promise<void>;
11037
11211
  postContract(contract: SurfaceContract): Promise<ContractRegisterResponse>;
11212
+ getContract(): Promise<ContractRegisterResponse>;
11038
11213
  markAvailability(req: LensAvailabilityMarkRequest): Promise<LensAvailabilityMarkResponse>;
11039
11214
  private post;
11215
+
11216
+ private get;
11040
11217
  }
11041
11218
 
11042
11219
  interface HolonographClientOptions {
@@ -11049,9 +11226,13 @@ interface HolonographClientOptions {
11049
11226
 
11050
11227
  fetch?: typeof fetch;
11051
11228
 
11229
+ onUnknownColumn?: 'warn' | 'throw' | 'ignore';
11230
+
11052
11231
  lensVersion: string;
11053
11232
 
11054
11233
  substrate: SubstrateSnapshot;
11234
+
11235
+ emit?: EmitOptions;
11055
11236
  }
11056
11237
 
11057
11238
  interface HolonographClient {
@@ -11071,9 +11252,13 @@ interface HolonographClient {
11071
11252
  messagesCreate(req: HolonographMessageRequest): Promise<HolonographCallHandle>;
11072
11253
 
11073
11254
  callDirectly(req: MediatorCallRequest): Promise<HolonographCallHandle>;
11255
+
11256
+ completenessWindow(): CompletenessWindow | null;
11257
+
11258
+ shutdown(): Promise<void>;
11074
11259
  }
11075
11260
 
11076
11261
  declare const HolonographClient: new (options: HolonographClientOptions) => HolonographClient;
11077
11262
 
11078
11263
  export { HolonographClient, HolonographGradeAfterReportError, HolonographHttpError, HolonographMarkerPairingWarningError, HolonographNoObserversError, HolonographObserverNotFoundError, HttpTransport };
11079
- export type { AvailabilityMarkOptions, ContractRegisterResponse, ContractSurfaceSummary, HolonographCallHandle, HolonographClientOptions, HolonographMessageRequest as HolonographMessageRequest, HolonographMessageResponse as HolonographMessageResponse, HttpTransportOptions, MediatorCallRequest, SurfaceOutcomeReport };
11264
+ export type { AvailabilityMarkOptions, CompletenessWindow, ContractRegisterResponse, ContractSurfaceSummary, EmitChannel, EmitChannelCompleteness, EmitMode, EmitOptions, ExtremeSustainedLoadEvent, HolonographCallHandle, HolonographClientOptions, HolonographMessageRequest as HolonographMessageRequest, HolonographMessageResponse as HolonographMessageResponse, HttpTransportOptions, MediatorCallRequest, OtlpEmitConfig, SurfaceOutcomeReport };