@holonograph/client 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +677 -133
  2. package/dist/index.js +479 -10
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2126,26 +2126,31 @@ declare const SurfaceContractSchema: ZodObject<{
2126
2126
  semantic: ZodDefault$1<ZodEnum$1<["deployment-state", "diagnostic"]>>;
2127
2127
  values: ZodOptional$1<ZodArray$1<ZodString, "many">>;
2128
2128
  emissionExpectation: ZodOptional$1<ZodEnum$1<["always", "conditional"]>>;
2129
+ status: ZodOptional$1<ZodEnum$1<["active", "forward-declared", "deprecated"]>>;
2129
2130
  }, "strip", ZodTypeAny$1, {
2130
2131
  id: string;
2131
2132
  control: "operator" | "vendor" | "platform" | "third-party";
2132
2133
  visibility: "transparent" | "announced" | "opaque";
2133
2134
  semantic: "deployment-state" | "diagnostic";
2134
- description?: string | undefined;
2135
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2135
2136
  values?: string[] | undefined;
2137
+ description?: string | undefined;
2136
2138
  emissionExpectation?: "always" | "conditional" | undefined;
2137
2139
  }, {
2138
2140
  id: string;
2139
2141
  control: "operator" | "vendor" | "platform" | "third-party";
2140
2142
  visibility: "transparent" | "announced" | "opaque";
2143
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2144
+ values?: string[] | undefined;
2141
2145
  description?: string | undefined;
2142
2146
  semantic?: "deployment-state" | "diagnostic" | undefined;
2143
- values?: string[] | undefined;
2144
2147
  emissionExpectation?: "always" | "conditional" | undefined;
2145
2148
  }>, "many">>;
2146
2149
 
2147
2150
  status: ZodDefault$1<ZodEnum$1<["active", "forward-declared", "deprecated"]>>;
2148
2151
 
2152
+ captureJudgedFailures: ZodOptional$1<ZodBoolean>;
2153
+
2149
2154
  removedDimensions: ZodDefault$1<ZodArray$1<ZodObject<{
2150
2155
 
2151
2156
  removedAt: ZodOptional$1<ZodUnion$1<[ZodString, ZodString]>>;
@@ -2244,8 +2249,8 @@ declare const SurfaceContractSchema: ZodObject<{
2244
2249
  } | undefined;
2245
2250
  }>, "many">>;
2246
2251
  }, "strip", ZodTypeAny$1, {
2247
- id: string;
2248
2252
  status: "active" | "forward-declared" | "deprecated";
2253
+ id: string;
2249
2254
  dimensions: {
2250
2255
  id: string;
2251
2256
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -2287,8 +2292,9 @@ declare const SurfaceContractSchema: ZodObject<{
2287
2292
  control: "operator" | "vendor" | "platform" | "third-party";
2288
2293
  visibility: "transparent" | "announced" | "opaque";
2289
2294
  semantic: "deployment-state" | "diagnostic";
2290
- description?: string | undefined;
2295
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2291
2296
  values?: string[] | undefined;
2297
+ description?: string | undefined;
2292
2298
  emissionExpectation?: "always" | "conditional" | undefined;
2293
2299
  }[];
2294
2300
  removedDimensions: {
@@ -2314,6 +2320,7 @@ declare const SurfaceContractSchema: ZodObject<{
2314
2320
  } | undefined;
2315
2321
  }[];
2316
2322
  description?: string | undefined;
2323
+ captureJudgedFailures?: boolean | undefined;
2317
2324
  }, {
2318
2325
  id: string;
2319
2326
  dimensions: {
@@ -2351,18 +2358,20 @@ declare const SurfaceContractSchema: ZodObject<{
2351
2358
  kind: "enum";
2352
2359
  } | undefined;
2353
2360
  }[];
2354
- description?: string | undefined;
2355
2361
  status?: "active" | "forward-declared" | "deprecated" | undefined;
2362
+ description?: string | undefined;
2356
2363
  cohortTags?: string[] | undefined;
2357
2364
  substrateColumns?: {
2358
2365
  id: string;
2359
2366
  control: "operator" | "vendor" | "platform" | "third-party";
2360
2367
  visibility: "transparent" | "announced" | "opaque";
2368
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
2369
+ values?: string[] | undefined;
2361
2370
  description?: string | undefined;
2362
2371
  semantic?: "deployment-state" | "diagnostic" | undefined;
2363
- values?: string[] | undefined;
2364
2372
  emissionExpectation?: "always" | "conditional" | undefined;
2365
2373
  }[] | undefined;
2374
+ captureJudgedFailures?: boolean | undefined;
2366
2375
  removedDimensions?: {
2367
2376
  id: string;
2368
2377
  removedAt?: string | undefined;
@@ -4779,8 +4788,8 @@ declare const SurfaceContractSchema: ZodObject<{
4779
4788
  }, "strip", ZodTypeAny$1, {
4780
4789
  agentId: string;
4781
4790
  surfaces: {
4782
- id: string;
4783
4791
  status: "active" | "forward-declared" | "deprecated";
4792
+ id: string;
4784
4793
  dimensions: {
4785
4794
  id: string;
4786
4795
  scoring: "custom" | "exact-match" | "llm-judge";
@@ -4822,8 +4831,9 @@ declare const SurfaceContractSchema: ZodObject<{
4822
4831
  control: "operator" | "vendor" | "platform" | "third-party";
4823
4832
  visibility: "transparent" | "announced" | "opaque";
4824
4833
  semantic: "deployment-state" | "diagnostic";
4825
- description?: string | undefined;
4834
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
4826
4835
  values?: string[] | undefined;
4836
+ description?: string | undefined;
4827
4837
  emissionExpectation?: "always" | "conditional" | undefined;
4828
4838
  }[];
4829
4839
  removedDimensions: {
@@ -4849,6 +4859,7 @@ declare const SurfaceContractSchema: ZodObject<{
4849
4859
  } | undefined;
4850
4860
  }[];
4851
4861
  description?: string | undefined;
4862
+ captureJudgedFailures?: boolean | undefined;
4852
4863
  }[];
4853
4864
  description?: string | undefined;
4854
4865
  routings?: {
@@ -5103,18 +5114,20 @@ declare const SurfaceContractSchema: ZodObject<{
5103
5114
  kind: "enum";
5104
5115
  } | undefined;
5105
5116
  }[];
5106
- description?: string | undefined;
5107
5117
  status?: "active" | "forward-declared" | "deprecated" | undefined;
5118
+ description?: string | undefined;
5108
5119
  cohortTags?: string[] | undefined;
5109
5120
  substrateColumns?: {
5110
5121
  id: string;
5111
5122
  control: "operator" | "vendor" | "platform" | "third-party";
5112
5123
  visibility: "transparent" | "announced" | "opaque";
5124
+ status?: "active" | "forward-declared" | "deprecated" | undefined;
5125
+ values?: string[] | undefined;
5113
5126
  description?: string | undefined;
5114
5127
  semantic?: "deployment-state" | "diagnostic" | undefined;
5115
- values?: string[] | undefined;
5116
5128
  emissionExpectation?: "always" | "conditional" | undefined;
5117
5129
  }[] | undefined;
5130
+ captureJudgedFailures?: boolean | undefined;
5118
5131
  removedDimensions?: {
5119
5132
  id: string;
5120
5133
  removedAt?: string | undefined;
@@ -5931,26 +5944,12 @@ declare const LightSnapshotSchema: ZodObject<{
5931
5944
 
5932
5945
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
5933
5946
 
5947
+ servedModel: ZodOptional$1<ZodString>;
5948
+
5934
5949
  rawRequestOmitted: ZodOptional$1<ZodBoolean>;
5935
5950
 
5936
5951
  rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
5937
5952
  }, "strip", ZodTypeAny$1, {
5938
- rawResponse?: unknown;
5939
- toolCalls?: unknown[] | undefined;
5940
- tokens?: {
5941
- input?: number | undefined;
5942
- output?: number | undefined;
5943
- cacheRead?: number | undefined;
5944
- cacheWrite?: number | undefined;
5945
- } | undefined;
5946
- latencyMs?: number | undefined;
5947
- reasoning?: string | undefined;
5948
- vendorMetadata?: Record<string, unknown> | undefined;
5949
- error?: {
5950
- message: string;
5951
- type: string;
5952
- vendorErrorCode?: string | undefined;
5953
- } | undefined;
5954
5953
  rawRequest?: objectOutputType<{
5955
5954
  surfaceId: ZodString;
5956
5955
  correlationId: ZodOptional$1<ZodString>;
@@ -6129,10 +6128,8 @@ declare const LightSnapshotSchema: ZodObject<{
6129
6128
  strict: ZodOptional$1<ZodBoolean>;
6130
6129
  stream: ZodOptional$1<ZodBoolean>;
6131
6130
  }, ZodTypeAny$1, "passthrough"> | undefined;
6132
- rawRequestOmitted?: boolean | undefined;
6133
- rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6134
- }, {
6135
6131
  rawResponse?: unknown;
6132
+ reasoning?: string | undefined;
6136
6133
  toolCalls?: unknown[] | undefined;
6137
6134
  tokens?: {
6138
6135
  input?: number | undefined;
@@ -6141,13 +6138,16 @@ declare const LightSnapshotSchema: ZodObject<{
6141
6138
  cacheWrite?: number | undefined;
6142
6139
  } | undefined;
6143
6140
  latencyMs?: number | undefined;
6144
- reasoning?: string | undefined;
6145
- vendorMetadata?: Record<string, unknown> | undefined;
6146
6141
  error?: {
6147
6142
  message: string;
6148
6143
  type: string;
6149
6144
  vendorErrorCode?: string | undefined;
6150
6145
  } | undefined;
6146
+ vendorMetadata?: Record<string, unknown> | undefined;
6147
+ servedModel?: string | undefined;
6148
+ rawRequestOmitted?: boolean | undefined;
6149
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6150
+ }, {
6151
6151
  rawRequest?: objectInputType<{
6152
6152
  surfaceId: ZodString;
6153
6153
  correlationId: ZodOptional$1<ZodString>;
@@ -6326,6 +6326,23 @@ declare const LightSnapshotSchema: ZodObject<{
6326
6326
  strict: ZodOptional$1<ZodBoolean>;
6327
6327
  stream: ZodOptional$1<ZodBoolean>;
6328
6328
  }, ZodTypeAny$1, "passthrough"> | undefined;
6329
+ rawResponse?: unknown;
6330
+ reasoning?: string | undefined;
6331
+ toolCalls?: unknown[] | undefined;
6332
+ tokens?: {
6333
+ input?: number | undefined;
6334
+ output?: number | undefined;
6335
+ cacheRead?: number | undefined;
6336
+ cacheWrite?: number | undefined;
6337
+ } | undefined;
6338
+ latencyMs?: number | undefined;
6339
+ error?: {
6340
+ message: string;
6341
+ type: string;
6342
+ vendorErrorCode?: string | undefined;
6343
+ } | undefined;
6344
+ vendorMetadata?: Record<string, unknown> | undefined;
6345
+ servedModel?: string | undefined;
6329
6346
  rawRequestOmitted?: boolean | undefined;
6330
6347
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
6331
6348
  }>;
@@ -6973,26 +6990,12 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
6973
6990
 
6974
6991
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
6975
6992
 
6993
+ servedModel: ZodOptional$1<ZodString>;
6994
+
6976
6995
  rawRequestOmitted: ZodOptional$1<ZodBoolean>;
6977
6996
 
6978
6997
  rawResponsePresence: ZodOptional$1<ZodEnum$1<["present", "omitted-by-policy", "pending-attach", "failed-attach"]>>;
6979
6998
  }, "strip", ZodTypeAny$1, {
6980
- rawResponse?: unknown;
6981
- toolCalls?: unknown[] | undefined;
6982
- tokens?: {
6983
- input?: number | undefined;
6984
- output?: number | undefined;
6985
- cacheRead?: number | undefined;
6986
- cacheWrite?: number | undefined;
6987
- } | undefined;
6988
- latencyMs?: number | undefined;
6989
- reasoning?: string | undefined;
6990
- vendorMetadata?: Record<string, unknown> | undefined;
6991
- error?: {
6992
- message: string;
6993
- type: string;
6994
- vendorErrorCode?: string | undefined;
6995
- } | undefined;
6996
6999
  rawRequest?: objectOutputType<{
6997
7000
  surfaceId: ZodString;
6998
7001
  correlationId: ZodOptional$1<ZodString>;
@@ -7171,10 +7174,8 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7171
7174
  strict: ZodOptional$1<ZodBoolean>;
7172
7175
  stream: ZodOptional$1<ZodBoolean>;
7173
7176
  }, ZodTypeAny$1, "passthrough"> | undefined;
7174
- rawRequestOmitted?: boolean | undefined;
7175
- rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7176
- }, {
7177
7177
  rawResponse?: unknown;
7178
+ reasoning?: string | undefined;
7178
7179
  toolCalls?: unknown[] | undefined;
7179
7180
  tokens?: {
7180
7181
  input?: number | undefined;
@@ -7183,13 +7184,16 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7183
7184
  cacheWrite?: number | undefined;
7184
7185
  } | undefined;
7185
7186
  latencyMs?: number | undefined;
7186
- reasoning?: string | undefined;
7187
- vendorMetadata?: Record<string, unknown> | undefined;
7188
7187
  error?: {
7189
7188
  message: string;
7190
7189
  type: string;
7191
7190
  vendorErrorCode?: string | undefined;
7192
7191
  } | undefined;
7192
+ vendorMetadata?: Record<string, unknown> | undefined;
7193
+ servedModel?: string | undefined;
7194
+ rawRequestOmitted?: boolean | undefined;
7195
+ rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7196
+ }, {
7193
7197
  rawRequest?: objectInputType<{
7194
7198
  surfaceId: ZodString;
7195
7199
  correlationId: ZodOptional$1<ZodString>;
@@ -7368,6 +7372,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7368
7372
  strict: ZodOptional$1<ZodBoolean>;
7369
7373
  stream: ZodOptional$1<ZodBoolean>;
7370
7374
  }, ZodTypeAny$1, "passthrough"> | undefined;
7375
+ rawResponse?: unknown;
7376
+ reasoning?: string | undefined;
7377
+ toolCalls?: unknown[] | undefined;
7378
+ tokens?: {
7379
+ input?: number | undefined;
7380
+ output?: number | undefined;
7381
+ cacheRead?: number | undefined;
7382
+ cacheWrite?: number | undefined;
7383
+ } | undefined;
7384
+ latencyMs?: number | undefined;
7385
+ error?: {
7386
+ message: string;
7387
+ type: string;
7388
+ vendorErrorCode?: string | undefined;
7389
+ } | undefined;
7390
+ vendorMetadata?: Record<string, unknown> | undefined;
7391
+ servedModel?: string | undefined;
7371
7392
  rawRequestOmitted?: boolean | undefined;
7372
7393
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
7373
7394
  }>>;
@@ -7621,6 +7642,20 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7621
7642
  contributingFixtureCount: number;
7622
7643
  totalScoredEventCount: number;
7623
7644
  }>, "many">;
7645
+
7646
+ calibratedUnderJudgeIdentity: ZodOptional$1<ZodObject<{
7647
+ rubricHash: ZodOptional$1<ZodArray$1<ZodString, "many">>;
7648
+ contextScope: ZodOptional$1<ZodArray$1<ZodString, "many">>;
7649
+ model: ZodOptional$1<ZodArray$1<ZodString, "many">>;
7650
+ }, "strip", ZodTypeAny$1, {
7651
+ rubricHash?: string[] | undefined;
7652
+ contextScope?: string[] | undefined;
7653
+ model?: string[] | undefined;
7654
+ }, {
7655
+ rubricHash?: string[] | undefined;
7656
+ contextScope?: string[] | undefined;
7657
+ model?: string[] | undefined;
7658
+ }>>;
7624
7659
  }, "strip", ZodTypeAny$1, {
7625
7660
  totalEventCount: number;
7626
7661
  perFixtureDimension: {
@@ -7637,6 +7672,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7637
7672
  totalScoredEventCount: number;
7638
7673
  }[];
7639
7674
  fixtureId?: string | undefined;
7675
+ calibratedUnderJudgeIdentity?: {
7676
+ rubricHash?: string[] | undefined;
7677
+ contextScope?: string[] | undefined;
7678
+ model?: string[] | undefined;
7679
+ } | undefined;
7640
7680
  }, {
7641
7681
  totalEventCount: number;
7642
7682
  perFixtureDimension: {
@@ -7653,6 +7693,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7653
7693
  totalScoredEventCount: number;
7654
7694
  }[];
7655
7695
  fixtureId?: string | undefined;
7696
+ calibratedUnderJudgeIdentity?: {
7697
+ rubricHash?: string[] | undefined;
7698
+ contextScope?: string[] | undefined;
7699
+ model?: string[] | undefined;
7700
+ } | undefined;
7656
7701
  }>>;
7657
7702
 
7658
7703
  varianceDecomposition: ZodOptional$1<ZodObject<{
@@ -7719,6 +7764,183 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7719
7764
  }>;
7720
7765
 
7721
7766
  caveats: ZodDefault$1<ZodArray$1<ZodString, "many">>;
7767
+
7768
+ floorFreshness: ZodOptional$1<ZodObject<{
7769
+ state: ZodEnum$1<["fresh", "stale", "undeterminable"]>;
7770
+
7771
+ comparedFacets: ZodArray$1<ZodString, "many">;
7772
+
7773
+ changedFacets: ZodArray$1<ZodString, "many">;
7774
+
7775
+ ambiguousFacets: ZodArray$1<ZodString, "many">;
7776
+ }, "strip", ZodTypeAny$1, {
7777
+ state: "fresh" | "stale" | "undeterminable";
7778
+ comparedFacets: string[];
7779
+ changedFacets: string[];
7780
+ ambiguousFacets: string[];
7781
+ }, {
7782
+ state: "fresh" | "stale" | "undeterminable";
7783
+ comparedFacets: string[];
7784
+ changedFacets: string[];
7785
+ ambiguousFacets: string[];
7786
+ }>>;
7787
+
7788
+ floorRegion: ZodOptional$1<ZodObject<{
7789
+
7790
+ region: ZodEnum$1<["ceiling", "mid", "floor"]>;
7791
+
7792
+ calibrationRegion: ZodOptional$1<ZodEnum$1<["ceiling", "mid", "floor"]>>;
7793
+
7794
+ calibrationScoreCount: ZodOptional$1<ZodNumber>;
7795
+
7796
+ bandMean: ZodNumber;
7797
+
7798
+ bandMax: ZodNumber;
7799
+
7800
+ bandExtrapolated: ZodBoolean;
7801
+
7802
+ calibrationBandExtrapolated: ZodOptional$1<ZodBoolean>;
7803
+
7804
+ windowStraddlesBoundary: ZodOptional$1<ZodBoolean>;
7805
+
7806
+ counterfactualSigmaAgentDelta: ZodNullable$1<ZodNumber>;
7807
+
7808
+ counterfactualUnavailableReason: ZodOptional$1<ZodEnum$1<["no_calibration_scores", "calibration_region_degenerate"]>>;
7809
+
7810
+ curveProvenance: ZodObject<{
7811
+ version: ZodString;
7812
+ judge: ZodString;
7813
+ rubricVersion: ZodString;
7814
+ }, "strip", ZodTypeAny$1, {
7815
+ version: string;
7816
+ judge: string;
7817
+ rubricVersion: string;
7818
+ }, {
7819
+ version: string;
7820
+ judge: string;
7821
+ rubricVersion: string;
7822
+ }>;
7823
+ }, "strip", ZodTypeAny$1, {
7824
+ bandMean: number;
7825
+ bandMax: number;
7826
+ region: "ceiling" | "mid" | "floor";
7827
+ bandExtrapolated: boolean;
7828
+ counterfactualSigmaAgentDelta: number | null;
7829
+ curveProvenance: {
7830
+ version: string;
7831
+ judge: string;
7832
+ rubricVersion: string;
7833
+ };
7834
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
7835
+ calibrationScoreCount?: number | undefined;
7836
+ calibrationBandExtrapolated?: boolean | undefined;
7837
+ windowStraddlesBoundary?: boolean | undefined;
7838
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
7839
+ }, {
7840
+ bandMean: number;
7841
+ bandMax: number;
7842
+ region: "ceiling" | "mid" | "floor";
7843
+ bandExtrapolated: boolean;
7844
+ counterfactualSigmaAgentDelta: number | null;
7845
+ curveProvenance: {
7846
+ version: string;
7847
+ judge: string;
7848
+ rubricVersion: string;
7849
+ };
7850
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
7851
+ calibrationScoreCount?: number | undefined;
7852
+ calibrationBandExtrapolated?: boolean | undefined;
7853
+ windowStraddlesBoundary?: boolean | undefined;
7854
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
7855
+ }>>;
7856
+
7857
+ lensCompositeCorrection: ZodOptional$1<ZodObject<{
7858
+
7859
+ correctedVarianceLens: ZodNumber;
7860
+
7861
+ reattributedFromResidual: ZodNumber;
7862
+
7863
+ compositeGroupCount: ZodNumber;
7864
+
7865
+ bracketedFacets: ZodArray$1<ZodString, "many">;
7866
+
7867
+ bracketedFacetLevels: ZodOptional$1<ZodArray$1<ZodObject<{
7868
+ facet: ZodString;
7869
+ distinctLevels: ZodNumber;
7870
+ }, "strip", ZodTypeAny$1, {
7871
+ facet: string;
7872
+ distinctLevels: number;
7873
+ }, {
7874
+ facet: string;
7875
+ distinctLevels: number;
7876
+ }>, "many">>;
7877
+
7878
+ conservationHolds: ZodBoolean;
7879
+
7880
+ partitionRelationship: ZodEnum$1<["degenerate", "identical", "judge-refines-version", "version-refines-judge", "cross-cutting"]>;
7881
+ }, "strip", ZodTypeAny$1, {
7882
+ correctedVarianceLens: number;
7883
+ reattributedFromResidual: number;
7884
+ compositeGroupCount: number;
7885
+ bracketedFacets: string[];
7886
+ conservationHolds: boolean;
7887
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
7888
+ bracketedFacetLevels?: {
7889
+ facet: string;
7890
+ distinctLevels: number;
7891
+ }[] | undefined;
7892
+ }, {
7893
+ correctedVarianceLens: number;
7894
+ reattributedFromResidual: number;
7895
+ compositeGroupCount: number;
7896
+ bracketedFacets: string[];
7897
+ conservationHolds: boolean;
7898
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
7899
+ bracketedFacetLevels?: {
7900
+ facet: string;
7901
+ distinctLevels: number;
7902
+ }[] | undefined;
7903
+ }>>;
7904
+
7905
+ apparatusResidualContamination: ZodOptional$1<ZodObject<{
7906
+
7907
+ contaminated: ZodBoolean;
7908
+
7909
+ driftedFacets: ZodArray$1<ZodObject<{
7910
+ facet: ZodString;
7911
+ basis: ZodEnum$1<["reserved-namespace", "declared-control"]>;
7912
+
7913
+ control: ZodOptional$1<ZodEnum$1<["operator", "vendor", "platform", "third-party"]>>;
7914
+ }, "strip", ZodTypeAny$1, {
7915
+ facet: string;
7916
+ basis: "reserved-namespace" | "declared-control";
7917
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
7918
+ }, {
7919
+ facet: string;
7920
+ basis: "reserved-namespace" | "declared-control";
7921
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
7922
+ }>, "many">;
7923
+
7924
+ scope: ZodOptional$1<ZodEnum$1<["reserved-only", "contract-resolved"]>>;
7925
+ }, "strip", ZodTypeAny$1, {
7926
+ contaminated: boolean;
7927
+ driftedFacets: {
7928
+ facet: string;
7929
+ basis: "reserved-namespace" | "declared-control";
7930
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
7931
+ }[];
7932
+ scope?: "reserved-only" | "contract-resolved" | undefined;
7933
+ }, {
7934
+ contaminated: boolean;
7935
+ driftedFacets: {
7936
+ facet: string;
7937
+ basis: "reserved-namespace" | "declared-control";
7938
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
7939
+ }[];
7940
+ scope?: "reserved-only" | "contract-resolved" | undefined;
7941
+ }>>;
7942
+
7943
+ decompositionMethodVersion: ZodOptional$1<ZodString>;
7722
7944
  }, "strip", ZodTypeAny$1, {
7723
7945
  dimensionId: string;
7724
7946
  window: {
@@ -7745,6 +7967,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7745
7967
  alpha: number;
7746
7968
  };
7747
7969
  caveats: string[];
7970
+ floorFreshness?: {
7971
+ state: "fresh" | "stale" | "undeterminable";
7972
+ comparedFacets: string[];
7973
+ changedFacets: string[];
7974
+ ambiguousFacets: string[];
7975
+ } | undefined;
7976
+ floorRegion?: {
7977
+ bandMean: number;
7978
+ bandMax: number;
7979
+ region: "ceiling" | "mid" | "floor";
7980
+ bandExtrapolated: boolean;
7981
+ counterfactualSigmaAgentDelta: number | null;
7982
+ curveProvenance: {
7983
+ version: string;
7984
+ judge: string;
7985
+ rubricVersion: string;
7986
+ };
7987
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
7988
+ calibrationScoreCount?: number | undefined;
7989
+ calibrationBandExtrapolated?: boolean | undefined;
7990
+ windowStraddlesBoundary?: boolean | undefined;
7991
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
7992
+ } | undefined;
7993
+ lensCompositeCorrection?: {
7994
+ correctedVarianceLens: number;
7995
+ reattributedFromResidual: number;
7996
+ compositeGroupCount: number;
7997
+ bracketedFacets: string[];
7998
+ conservationHolds: boolean;
7999
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
8000
+ bracketedFacetLevels?: {
8001
+ facet: string;
8002
+ distinctLevels: number;
8003
+ }[] | undefined;
8004
+ } | undefined;
8005
+ apparatusResidualContamination?: {
8006
+ contaminated: boolean;
8007
+ driftedFacets: {
8008
+ facet: string;
8009
+ basis: "reserved-namespace" | "declared-control";
8010
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
8011
+ }[];
8012
+ scope?: "reserved-only" | "contract-resolved" | undefined;
8013
+ } | undefined;
8014
+ decompositionMethodVersion?: string | undefined;
7748
8015
  }, {
7749
8016
  dimensionId: string;
7750
8017
  window: {
@@ -7771,6 +8038,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7771
8038
  alpha: number;
7772
8039
  };
7773
8040
  caveats?: string[] | undefined;
8041
+ floorFreshness?: {
8042
+ state: "fresh" | "stale" | "undeterminable";
8043
+ comparedFacets: string[];
8044
+ changedFacets: string[];
8045
+ ambiguousFacets: string[];
8046
+ } | undefined;
8047
+ floorRegion?: {
8048
+ bandMean: number;
8049
+ bandMax: number;
8050
+ region: "ceiling" | "mid" | "floor";
8051
+ bandExtrapolated: boolean;
8052
+ counterfactualSigmaAgentDelta: number | null;
8053
+ curveProvenance: {
8054
+ version: string;
8055
+ judge: string;
8056
+ rubricVersion: string;
8057
+ };
8058
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
8059
+ calibrationScoreCount?: number | undefined;
8060
+ calibrationBandExtrapolated?: boolean | undefined;
8061
+ windowStraddlesBoundary?: boolean | undefined;
8062
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
8063
+ } | undefined;
8064
+ lensCompositeCorrection?: {
8065
+ correctedVarianceLens: number;
8066
+ reattributedFromResidual: number;
8067
+ compositeGroupCount: number;
8068
+ bracketedFacets: string[];
8069
+ conservationHolds: boolean;
8070
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
8071
+ bracketedFacetLevels?: {
8072
+ facet: string;
8073
+ distinctLevels: number;
8074
+ }[] | undefined;
8075
+ } | undefined;
8076
+ apparatusResidualContamination?: {
8077
+ contaminated: boolean;
8078
+ driftedFacets: {
8079
+ facet: string;
8080
+ basis: "reserved-namespace" | "declared-control";
8081
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
8082
+ }[];
8083
+ scope?: "reserved-only" | "contract-resolved" | undefined;
8084
+ } | undefined;
8085
+ decompositionMethodVersion?: string | undefined;
7774
8086
  }>>;
7775
8087
 
7776
8088
  lifecycleTransition: ZodOptional$1<ZodEffects$1<ZodObject<{
@@ -7814,7 +8126,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7814
8126
 
7815
8127
  targetEventId: ZodString;
7816
8128
 
7817
- recommendation: ZodEnum$1<["viable", "contaminated", "insufficient-n", "degenerate", "instrument-limited"]>;
8129
+ recommendation: ZodEnum$1<["viable", "contaminated", "insufficient-n", "degenerate", "instrument-limited", "stale-floor"]>;
7818
8130
 
7819
8131
  checks: ZodArray$1<ZodObject<{
7820
8132
  name: ZodString;
@@ -7862,7 +8174,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7862
8174
  }, "strip", ZodTypeAny$1, {
7863
8175
  rationale: string;
7864
8176
  targetEventId: string;
7865
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
8177
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
7866
8178
  checks: {
7867
8179
  name: string;
7868
8180
  passed: boolean;
@@ -7881,7 +8193,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
7881
8193
  }, {
7882
8194
  rationale: string;
7883
8195
  targetEventId: string;
7884
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
8196
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
7885
8197
  checks: {
7886
8198
  name: string;
7887
8199
  passed: boolean;
@@ -8376,9 +8688,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8376
8688
  };
8377
8689
  }>>;
8378
8690
  }, "strip", ZodTypeAny$1, {
8691
+ surfaceId: string;
8379
8692
  lensVersion: string;
8380
8693
  correlationId: string;
8381
- surfaceId: string;
8382
8694
  kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis";
8383
8695
  occurredAt: string;
8384
8696
  eventId: string;
@@ -8393,22 +8705,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8393
8705
  } | undefined;
8394
8706
  emissionStreamId?: string | undefined;
8395
8707
  light?: {
8396
- rawResponse?: unknown;
8397
- toolCalls?: unknown[] | undefined;
8398
- tokens?: {
8399
- input?: number | undefined;
8400
- output?: number | undefined;
8401
- cacheRead?: number | undefined;
8402
- cacheWrite?: number | undefined;
8403
- } | undefined;
8404
- latencyMs?: number | undefined;
8405
- reasoning?: string | undefined;
8406
- vendorMetadata?: Record<string, unknown> | undefined;
8407
- error?: {
8408
- message: string;
8409
- type: string;
8410
- vendorErrorCode?: string | undefined;
8411
- } | undefined;
8412
8708
  rawRequest?: objectOutputType<{
8413
8709
  surfaceId: ZodString;
8414
8710
  correlationId: ZodOptional$1<ZodString>;
@@ -8587,6 +8883,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8587
8883
  strict: ZodOptional$1<ZodBoolean>;
8588
8884
  stream: ZodOptional$1<ZodBoolean>;
8589
8885
  }, ZodTypeAny$1, "passthrough"> | undefined;
8886
+ rawResponse?: unknown;
8887
+ reasoning?: string | undefined;
8888
+ toolCalls?: unknown[] | undefined;
8889
+ tokens?: {
8890
+ input?: number | undefined;
8891
+ output?: number | undefined;
8892
+ cacheRead?: number | undefined;
8893
+ cacheWrite?: number | undefined;
8894
+ } | undefined;
8895
+ latencyMs?: number | undefined;
8896
+ error?: {
8897
+ message: string;
8898
+ type: string;
8899
+ vendorErrorCode?: string | undefined;
8900
+ } | undefined;
8901
+ vendorMetadata?: Record<string, unknown> | undefined;
8902
+ servedModel?: string | undefined;
8590
8903
  rawRequestOmitted?: boolean | undefined;
8591
8904
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
8592
8905
  } | undefined;
@@ -8642,6 +8955,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8642
8955
  totalScoredEventCount: number;
8643
8956
  }[];
8644
8957
  fixtureId?: string | undefined;
8958
+ calibratedUnderJudgeIdentity?: {
8959
+ rubricHash?: string[] | undefined;
8960
+ contextScope?: string[] | undefined;
8961
+ model?: string[] | undefined;
8962
+ } | undefined;
8645
8963
  } | undefined;
8646
8964
  varianceDecomposition?: {
8647
8965
  dimensionId: string;
@@ -8669,6 +8987,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8669
8987
  alpha: number;
8670
8988
  };
8671
8989
  caveats: string[];
8990
+ floorFreshness?: {
8991
+ state: "fresh" | "stale" | "undeterminable";
8992
+ comparedFacets: string[];
8993
+ changedFacets: string[];
8994
+ ambiguousFacets: string[];
8995
+ } | undefined;
8996
+ floorRegion?: {
8997
+ bandMean: number;
8998
+ bandMax: number;
8999
+ region: "ceiling" | "mid" | "floor";
9000
+ bandExtrapolated: boolean;
9001
+ counterfactualSigmaAgentDelta: number | null;
9002
+ curveProvenance: {
9003
+ version: string;
9004
+ judge: string;
9005
+ rubricVersion: string;
9006
+ };
9007
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
9008
+ calibrationScoreCount?: number | undefined;
9009
+ calibrationBandExtrapolated?: boolean | undefined;
9010
+ windowStraddlesBoundary?: boolean | undefined;
9011
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
9012
+ } | undefined;
9013
+ lensCompositeCorrection?: {
9014
+ correctedVarianceLens: number;
9015
+ reattributedFromResidual: number;
9016
+ compositeGroupCount: number;
9017
+ bracketedFacets: string[];
9018
+ conservationHolds: boolean;
9019
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
9020
+ bracketedFacetLevels?: {
9021
+ facet: string;
9022
+ distinctLevels: number;
9023
+ }[] | undefined;
9024
+ } | undefined;
9025
+ apparatusResidualContamination?: {
9026
+ contaminated: boolean;
9027
+ driftedFacets: {
9028
+ facet: string;
9029
+ basis: "reserved-namespace" | "declared-control";
9030
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
9031
+ }[];
9032
+ scope?: "reserved-only" | "contract-resolved" | undefined;
9033
+ } | undefined;
9034
+ decompositionMethodVersion?: string | undefined;
8672
9035
  } | undefined;
8673
9036
  lifecycleTransition?: {
8674
9037
  status: "draft" | "quarantined" | "approved" | "locked" | "rejected";
@@ -8680,7 +9043,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8680
9043
  evalRecommendation?: {
8681
9044
  rationale: string;
8682
9045
  targetEventId: string;
8683
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
9046
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
8684
9047
  checks: {
8685
9048
  name: string;
8686
9049
  passed: boolean;
@@ -8772,9 +9135,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8772
9135
  };
8773
9136
  } | undefined;
8774
9137
  }, {
9138
+ surfaceId: string;
8775
9139
  lensVersion: string;
8776
9140
  correlationId: string;
8777
- surfaceId: string;
8778
9141
  occurredAt: string;
8779
9142
  eventId: string;
8780
9143
  substrate?: {
@@ -8789,22 +9152,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8789
9152
  kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis" | undefined;
8790
9153
  emissionStreamId?: string | undefined;
8791
9154
  light?: {
8792
- rawResponse?: unknown;
8793
- toolCalls?: unknown[] | undefined;
8794
- tokens?: {
8795
- input?: number | undefined;
8796
- output?: number | undefined;
8797
- cacheRead?: number | undefined;
8798
- cacheWrite?: number | undefined;
8799
- } | undefined;
8800
- latencyMs?: number | undefined;
8801
- reasoning?: string | undefined;
8802
- vendorMetadata?: Record<string, unknown> | undefined;
8803
- error?: {
8804
- message: string;
8805
- type: string;
8806
- vendorErrorCode?: string | undefined;
8807
- } | undefined;
8808
9155
  rawRequest?: objectInputType<{
8809
9156
  surfaceId: ZodString;
8810
9157
  correlationId: ZodOptional$1<ZodString>;
@@ -8983,6 +9330,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
8983
9330
  strict: ZodOptional$1<ZodBoolean>;
8984
9331
  stream: ZodOptional$1<ZodBoolean>;
8985
9332
  }, ZodTypeAny$1, "passthrough"> | undefined;
9333
+ rawResponse?: unknown;
9334
+ reasoning?: string | undefined;
9335
+ toolCalls?: unknown[] | undefined;
9336
+ tokens?: {
9337
+ input?: number | undefined;
9338
+ output?: number | undefined;
9339
+ cacheRead?: number | undefined;
9340
+ cacheWrite?: number | undefined;
9341
+ } | undefined;
9342
+ latencyMs?: number | undefined;
9343
+ error?: {
9344
+ message: string;
9345
+ type: string;
9346
+ vendorErrorCode?: string | undefined;
9347
+ } | undefined;
9348
+ vendorMetadata?: Record<string, unknown> | undefined;
9349
+ servedModel?: string | undefined;
8986
9350
  rawRequestOmitted?: boolean | undefined;
8987
9351
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
8988
9352
  } | undefined;
@@ -9038,6 +9402,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9038
9402
  totalScoredEventCount: number;
9039
9403
  }[];
9040
9404
  fixtureId?: string | undefined;
9405
+ calibratedUnderJudgeIdentity?: {
9406
+ rubricHash?: string[] | undefined;
9407
+ contextScope?: string[] | undefined;
9408
+ model?: string[] | undefined;
9409
+ } | undefined;
9041
9410
  } | undefined;
9042
9411
  varianceDecomposition?: {
9043
9412
  dimensionId: string;
@@ -9065,6 +9434,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9065
9434
  alpha: number;
9066
9435
  };
9067
9436
  caveats?: string[] | undefined;
9437
+ floorFreshness?: {
9438
+ state: "fresh" | "stale" | "undeterminable";
9439
+ comparedFacets: string[];
9440
+ changedFacets: string[];
9441
+ ambiguousFacets: string[];
9442
+ } | undefined;
9443
+ floorRegion?: {
9444
+ bandMean: number;
9445
+ bandMax: number;
9446
+ region: "ceiling" | "mid" | "floor";
9447
+ bandExtrapolated: boolean;
9448
+ counterfactualSigmaAgentDelta: number | null;
9449
+ curveProvenance: {
9450
+ version: string;
9451
+ judge: string;
9452
+ rubricVersion: string;
9453
+ };
9454
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
9455
+ calibrationScoreCount?: number | undefined;
9456
+ calibrationBandExtrapolated?: boolean | undefined;
9457
+ windowStraddlesBoundary?: boolean | undefined;
9458
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
9459
+ } | undefined;
9460
+ lensCompositeCorrection?: {
9461
+ correctedVarianceLens: number;
9462
+ reattributedFromResidual: number;
9463
+ compositeGroupCount: number;
9464
+ bracketedFacets: string[];
9465
+ conservationHolds: boolean;
9466
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
9467
+ bracketedFacetLevels?: {
9468
+ facet: string;
9469
+ distinctLevels: number;
9470
+ }[] | undefined;
9471
+ } | undefined;
9472
+ apparatusResidualContamination?: {
9473
+ contaminated: boolean;
9474
+ driftedFacets: {
9475
+ facet: string;
9476
+ basis: "reserved-namespace" | "declared-control";
9477
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
9478
+ }[];
9479
+ scope?: "reserved-only" | "contract-resolved" | undefined;
9480
+ } | undefined;
9481
+ decompositionMethodVersion?: string | undefined;
9068
9482
  } | undefined;
9069
9483
  lifecycleTransition?: {
9070
9484
  status: "draft" | "quarantined" | "approved" | "locked" | "rejected";
@@ -9076,7 +9490,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9076
9490
  evalRecommendation?: {
9077
9491
  rationale: string;
9078
9492
  targetEventId: string;
9079
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
9493
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
9080
9494
  checks: {
9081
9495
  name: string;
9082
9496
  passed: boolean;
@@ -9168,9 +9582,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9168
9582
  };
9169
9583
  } | undefined;
9170
9584
  }>, {
9585
+ surfaceId: string;
9171
9586
  lensVersion: string;
9172
9587
  correlationId: string;
9173
- surfaceId: string;
9174
9588
  kind: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis";
9175
9589
  occurredAt: string;
9176
9590
  eventId: string;
@@ -9185,22 +9599,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9185
9599
  } | undefined;
9186
9600
  emissionStreamId?: string | undefined;
9187
9601
  light?: {
9188
- rawResponse?: unknown;
9189
- toolCalls?: unknown[] | undefined;
9190
- tokens?: {
9191
- input?: number | undefined;
9192
- output?: number | undefined;
9193
- cacheRead?: number | undefined;
9194
- cacheWrite?: number | undefined;
9195
- } | undefined;
9196
- latencyMs?: number | undefined;
9197
- reasoning?: string | undefined;
9198
- vendorMetadata?: Record<string, unknown> | undefined;
9199
- error?: {
9200
- message: string;
9201
- type: string;
9202
- vendorErrorCode?: string | undefined;
9203
- } | undefined;
9204
9602
  rawRequest?: objectOutputType<{
9205
9603
  surfaceId: ZodString;
9206
9604
  correlationId: ZodOptional$1<ZodString>;
@@ -9379,6 +9777,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9379
9777
  strict: ZodOptional$1<ZodBoolean>;
9380
9778
  stream: ZodOptional$1<ZodBoolean>;
9381
9779
  }, ZodTypeAny$1, "passthrough"> | undefined;
9780
+ rawResponse?: unknown;
9781
+ reasoning?: string | undefined;
9782
+ toolCalls?: unknown[] | undefined;
9783
+ tokens?: {
9784
+ input?: number | undefined;
9785
+ output?: number | undefined;
9786
+ cacheRead?: number | undefined;
9787
+ cacheWrite?: number | undefined;
9788
+ } | undefined;
9789
+ latencyMs?: number | undefined;
9790
+ error?: {
9791
+ message: string;
9792
+ type: string;
9793
+ vendorErrorCode?: string | undefined;
9794
+ } | undefined;
9795
+ vendorMetadata?: Record<string, unknown> | undefined;
9796
+ servedModel?: string | undefined;
9382
9797
  rawRequestOmitted?: boolean | undefined;
9383
9798
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
9384
9799
  } | undefined;
@@ -9434,6 +9849,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9434
9849
  totalScoredEventCount: number;
9435
9850
  }[];
9436
9851
  fixtureId?: string | undefined;
9852
+ calibratedUnderJudgeIdentity?: {
9853
+ rubricHash?: string[] | undefined;
9854
+ contextScope?: string[] | undefined;
9855
+ model?: string[] | undefined;
9856
+ } | undefined;
9437
9857
  } | undefined;
9438
9858
  varianceDecomposition?: {
9439
9859
  dimensionId: string;
@@ -9461,6 +9881,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9461
9881
  alpha: number;
9462
9882
  };
9463
9883
  caveats: string[];
9884
+ floorFreshness?: {
9885
+ state: "fresh" | "stale" | "undeterminable";
9886
+ comparedFacets: string[];
9887
+ changedFacets: string[];
9888
+ ambiguousFacets: string[];
9889
+ } | undefined;
9890
+ floorRegion?: {
9891
+ bandMean: number;
9892
+ bandMax: number;
9893
+ region: "ceiling" | "mid" | "floor";
9894
+ bandExtrapolated: boolean;
9895
+ counterfactualSigmaAgentDelta: number | null;
9896
+ curveProvenance: {
9897
+ version: string;
9898
+ judge: string;
9899
+ rubricVersion: string;
9900
+ };
9901
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
9902
+ calibrationScoreCount?: number | undefined;
9903
+ calibrationBandExtrapolated?: boolean | undefined;
9904
+ windowStraddlesBoundary?: boolean | undefined;
9905
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
9906
+ } | undefined;
9907
+ lensCompositeCorrection?: {
9908
+ correctedVarianceLens: number;
9909
+ reattributedFromResidual: number;
9910
+ compositeGroupCount: number;
9911
+ bracketedFacets: string[];
9912
+ conservationHolds: boolean;
9913
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
9914
+ bracketedFacetLevels?: {
9915
+ facet: string;
9916
+ distinctLevels: number;
9917
+ }[] | undefined;
9918
+ } | undefined;
9919
+ apparatusResidualContamination?: {
9920
+ contaminated: boolean;
9921
+ driftedFacets: {
9922
+ facet: string;
9923
+ basis: "reserved-namespace" | "declared-control";
9924
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
9925
+ }[];
9926
+ scope?: "reserved-only" | "contract-resolved" | undefined;
9927
+ } | undefined;
9928
+ decompositionMethodVersion?: string | undefined;
9464
9929
  } | undefined;
9465
9930
  lifecycleTransition?: {
9466
9931
  status: "draft" | "quarantined" | "approved" | "locked" | "rejected";
@@ -9472,7 +9937,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9472
9937
  evalRecommendation?: {
9473
9938
  rationale: string;
9474
9939
  targetEventId: string;
9475
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
9940
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
9476
9941
  checks: {
9477
9942
  name: string;
9478
9943
  passed: boolean;
@@ -9564,9 +10029,9 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9564
10029
  };
9565
10030
  } | undefined;
9566
10031
  }, {
10032
+ surfaceId: string;
9567
10033
  lensVersion: string;
9568
10034
  correlationId: string;
9569
- surfaceId: string;
9570
10035
  occurredAt: string;
9571
10036
  eventId: string;
9572
10037
  substrate?: {
@@ -9581,22 +10046,6 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9581
10046
  kind?: "evaluation" | "availability.transition" | "analysis.noise-floor-calibration" | "analysis.variance-decomposition" | "analysis.lifecycle-transition" | "analysis.eval-recommendation" | "analysis.conformance-fixture" | "analysis.emission-coverage" | "analysis.delivery-orphan" | "analysis.orthogonality-hypothesis" | undefined;
9582
10047
  emissionStreamId?: string | undefined;
9583
10048
  light?: {
9584
- rawResponse?: unknown;
9585
- toolCalls?: unknown[] | undefined;
9586
- tokens?: {
9587
- input?: number | undefined;
9588
- output?: number | undefined;
9589
- cacheRead?: number | undefined;
9590
- cacheWrite?: number | undefined;
9591
- } | undefined;
9592
- latencyMs?: number | undefined;
9593
- reasoning?: string | undefined;
9594
- vendorMetadata?: Record<string, unknown> | undefined;
9595
- error?: {
9596
- message: string;
9597
- type: string;
9598
- vendorErrorCode?: string | undefined;
9599
- } | undefined;
9600
10049
  rawRequest?: objectInputType<{
9601
10050
  surfaceId: ZodString;
9602
10051
  correlationId: ZodOptional$1<ZodString>;
@@ -9775,6 +10224,23 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9775
10224
  strict: ZodOptional$1<ZodBoolean>;
9776
10225
  stream: ZodOptional$1<ZodBoolean>;
9777
10226
  }, ZodTypeAny$1, "passthrough"> | undefined;
10227
+ rawResponse?: unknown;
10228
+ reasoning?: string | undefined;
10229
+ toolCalls?: unknown[] | undefined;
10230
+ tokens?: {
10231
+ input?: number | undefined;
10232
+ output?: number | undefined;
10233
+ cacheRead?: number | undefined;
10234
+ cacheWrite?: number | undefined;
10235
+ } | undefined;
10236
+ latencyMs?: number | undefined;
10237
+ error?: {
10238
+ message: string;
10239
+ type: string;
10240
+ vendorErrorCode?: string | undefined;
10241
+ } | undefined;
10242
+ vendorMetadata?: Record<string, unknown> | undefined;
10243
+ servedModel?: string | undefined;
9778
10244
  rawRequestOmitted?: boolean | undefined;
9779
10245
  rawResponsePresence?: "present" | "omitted-by-policy" | "pending-attach" | "failed-attach" | undefined;
9780
10246
  } | undefined;
@@ -9830,6 +10296,11 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9830
10296
  totalScoredEventCount: number;
9831
10297
  }[];
9832
10298
  fixtureId?: string | undefined;
10299
+ calibratedUnderJudgeIdentity?: {
10300
+ rubricHash?: string[] | undefined;
10301
+ contextScope?: string[] | undefined;
10302
+ model?: string[] | undefined;
10303
+ } | undefined;
9833
10304
  } | undefined;
9834
10305
  varianceDecomposition?: {
9835
10306
  dimensionId: string;
@@ -9857,6 +10328,51 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9857
10328
  alpha: number;
9858
10329
  };
9859
10330
  caveats?: string[] | undefined;
10331
+ floorFreshness?: {
10332
+ state: "fresh" | "stale" | "undeterminable";
10333
+ comparedFacets: string[];
10334
+ changedFacets: string[];
10335
+ ambiguousFacets: string[];
10336
+ } | undefined;
10337
+ floorRegion?: {
10338
+ bandMean: number;
10339
+ bandMax: number;
10340
+ region: "ceiling" | "mid" | "floor";
10341
+ bandExtrapolated: boolean;
10342
+ counterfactualSigmaAgentDelta: number | null;
10343
+ curveProvenance: {
10344
+ version: string;
10345
+ judge: string;
10346
+ rubricVersion: string;
10347
+ };
10348
+ calibrationRegion?: "ceiling" | "mid" | "floor" | undefined;
10349
+ calibrationScoreCount?: number | undefined;
10350
+ calibrationBandExtrapolated?: boolean | undefined;
10351
+ windowStraddlesBoundary?: boolean | undefined;
10352
+ counterfactualUnavailableReason?: "no_calibration_scores" | "calibration_region_degenerate" | undefined;
10353
+ } | undefined;
10354
+ lensCompositeCorrection?: {
10355
+ correctedVarianceLens: number;
10356
+ reattributedFromResidual: number;
10357
+ compositeGroupCount: number;
10358
+ bracketedFacets: string[];
10359
+ conservationHolds: boolean;
10360
+ partitionRelationship: "degenerate" | "identical" | "judge-refines-version" | "version-refines-judge" | "cross-cutting";
10361
+ bracketedFacetLevels?: {
10362
+ facet: string;
10363
+ distinctLevels: number;
10364
+ }[] | undefined;
10365
+ } | undefined;
10366
+ apparatusResidualContamination?: {
10367
+ contaminated: boolean;
10368
+ driftedFacets: {
10369
+ facet: string;
10370
+ basis: "reserved-namespace" | "declared-control";
10371
+ control?: "operator" | "vendor" | "platform" | "third-party" | undefined;
10372
+ }[];
10373
+ scope?: "reserved-only" | "contract-resolved" | undefined;
10374
+ } | undefined;
10375
+ decompositionMethodVersion?: string | undefined;
9860
10376
  } | undefined;
9861
10377
  lifecycleTransition?: {
9862
10378
  status: "draft" | "quarantined" | "approved" | "locked" | "rejected";
@@ -9868,7 +10384,7 @@ declare const EvaluationEventSchema: ZodEffects$1<ZodObject<{
9868
10384
  evalRecommendation?: {
9869
10385
  rationale: string;
9870
10386
  targetEventId: string;
9871
- recommendation: "viable" | "contaminated" | "insufficient-n" | "degenerate" | "instrument-limited";
10387
+ recommendation: "degenerate" | "contaminated" | "viable" | "insufficient-n" | "instrument-limited" | "stale-floor";
9872
10388
  checks: {
9873
10389
  name: string;
9874
10390
  passed: boolean;
@@ -10182,6 +10698,8 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10182
10698
 
10183
10699
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
10184
10700
 
10701
+ servedModel: ZodOptional$1<ZodString>;
10702
+
10185
10703
  stopReason: ZodOptional$1<ZodEnum$1<["end_turn", "max_tokens", "tool_use", "stop_sequence", "refusal", "other"]>>;
10186
10704
  }, "strip", ZodTypeAny$1, {
10187
10705
  content: ({
@@ -10199,7 +10717,6 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10199
10717
  output?: unknown;
10200
10718
  isError?: boolean | undefined;
10201
10719
  })[];
10202
- ok: true;
10203
10720
  tokens: {
10204
10721
  input: number;
10205
10722
  output: number;
@@ -10207,14 +10724,16 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10207
10724
  cacheWrite?: number | undefined;
10208
10725
  };
10209
10726
  latencyMs: number;
10727
+ ok: true;
10210
10728
  rawResponse?: unknown;
10729
+ reasoning?: string | undefined;
10211
10730
  toolCalls?: {
10212
10731
  toolUseId: string;
10213
10732
  toolName: string;
10214
10733
  input?: unknown;
10215
10734
  }[] | undefined;
10216
- reasoning?: string | undefined;
10217
10735
  vendorMetadata?: Record<string, unknown> | undefined;
10736
+ servedModel?: string | undefined;
10218
10737
  stopReason?: "tool_use" | "end_turn" | "max_tokens" | "stop_sequence" | "refusal" | "other" | undefined;
10219
10738
  }, {
10220
10739
  content: ({
@@ -10232,7 +10751,6 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10232
10751
  output?: unknown;
10233
10752
  isError?: boolean | undefined;
10234
10753
  })[];
10235
- ok: true;
10236
10754
  tokens: {
10237
10755
  input: number;
10238
10756
  output: number;
@@ -10240,14 +10758,16 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10240
10758
  cacheWrite?: number | undefined;
10241
10759
  };
10242
10760
  latencyMs: number;
10761
+ ok: true;
10243
10762
  rawResponse?: unknown;
10763
+ reasoning?: string | undefined;
10244
10764
  toolCalls?: {
10245
10765
  toolUseId: string;
10246
10766
  toolName: string;
10247
10767
  input?: unknown;
10248
10768
  }[] | undefined;
10249
- reasoning?: string | undefined;
10250
10769
  vendorMetadata?: Record<string, unknown> | undefined;
10770
+ servedModel?: string | undefined;
10251
10771
  stopReason?: "tool_use" | "end_turn" | "max_tokens" | "stop_sequence" | "refusal" | "other" | undefined;
10252
10772
  }>, ZodObject<{
10253
10773
  ok: ZodLiteral<false>;
@@ -10277,7 +10797,6 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10277
10797
 
10278
10798
  vendorMetadata: ZodOptional$1<ZodRecord<ZodString, ZodUnknown>>;
10279
10799
  }, "strip", ZodTypeAny$1, {
10280
- ok: false;
10281
10800
  latencyMs: number;
10282
10801
  error: {
10283
10802
  message: string;
@@ -10285,10 +10804,10 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10285
10804
  retryable: boolean;
10286
10805
  vendorErrorCode?: string | undefined;
10287
10806
  };
10807
+ ok: false;
10288
10808
  rawResponse?: unknown;
10289
10809
  vendorMetadata?: Record<string, unknown> | undefined;
10290
10810
  }, {
10291
- ok: false;
10292
10811
  latencyMs: number;
10293
10812
  error: {
10294
10813
  message: string;
@@ -10296,11 +10815,30 @@ declare const LightSourceResultSchema: ZodDiscriminatedUnion<"ok", [ZodObject<{
10296
10815
  retryable: boolean;
10297
10816
  vendorErrorCode?: string | undefined;
10298
10817
  };
10818
+ ok: false;
10299
10819
  rawResponse?: unknown;
10300
10820
  vendorMetadata?: Record<string, unknown> | undefined;
10301
10821
  }>]>;
10302
10822
  type LightSourceResult = TypeOf$1<typeof LightSourceResultSchema>;
10303
10823
 
10824
+ declare const JudgeIdentitySchema: ZodObject<{
10825
+
10826
+ rubricHash: ZodOptional$1<ZodString>;
10827
+
10828
+ contextScope: ZodOptional$1<ZodEnum$1<["rubric_actual", "rubric_actual_expected", "rubric_actual_expected_toolaware", "full_generating_prompt"]>>;
10829
+
10830
+ model: ZodOptional$1<ZodString>;
10831
+ }, "strip", ZodTypeAny$1, {
10832
+ rubricHash?: string | undefined;
10833
+ contextScope?: "rubric_actual" | "rubric_actual_expected" | "rubric_actual_expected_toolaware" | "full_generating_prompt" | undefined;
10834
+ model?: string | undefined;
10835
+ }, {
10836
+ rubricHash?: string | undefined;
10837
+ contextScope?: "rubric_actual" | "rubric_actual_expected" | "rubric_actual_expected_toolaware" | "full_generating_prompt" | undefined;
10838
+ model?: string | undefined;
10839
+ }>;
10840
+ type JudgeIdentity = TypeOf$1<typeof JudgeIdentitySchema>;
10841
+
10304
10842
  interface InjectionRequest {
10305
10843
 
10306
10844
  surfaceId?: string;
@@ -11252,6 +11790,10 @@ interface SurfaceColumnEmission {
11252
11790
  readonly columns: readonly ColumnEmissionRow[];
11253
11791
 
11254
11792
  readonly undeclaredObserved: readonly string[];
11793
+
11794
+ readonly apparatusFacetsDrifted: readonly string[];
11795
+
11796
+ readonly apparatusObserved: readonly string[];
11255
11797
  }
11256
11798
 
11257
11799
  interface EmissionAuditResponse {
@@ -11315,6 +11857,8 @@ interface SurfaceOutcomeReport {
11315
11857
  }[];
11316
11858
 
11317
11859
  fixtureId?: string;
11860
+
11861
+ judgeIdentity?: JudgeIdentity;
11318
11862
  }
11319
11863
 
11320
11864
  interface ContractSurfaceSummary {