@empressaio/atom-contract 1.18.0 → 1.20.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.
@@ -0,0 +1,677 @@
1
+ import { z } from "zod";
2
+ import type { AccessPolicy } from "../registration.js";
3
+ import type { AtomTier } from "../conformance/common.js";
4
+ import type { ReasoningChain } from "../reasoning-chain.js";
5
+ import type { ReasoningReadContract } from "../read-contract/reasoning-axes.js";
6
+ import { type RrcPipelineAbsence, type RrcPipelineSourceTier, type SiteLayerVerifiedAbsence } from "./common.js";
7
+ /**
8
+ * RRC T-4 pipeline FACT atom — LINE-geometry proximity / buffer exposure or
9
+ * honest absence. NOT PHMSA NPMS; NOT railroad tracks (see rail-corridor-fact).
10
+ *
11
+ * Engine persistence: entityId = bare parcelNodeId (one atom per parcel).
12
+ * Do not invent a `:pipeline:` suffix in the contract.
13
+ *
14
+ * Parcels outside the evaluation buffer are PRESENT with `nearPipeline: false`
15
+ * (same outside-mapped discipline as rail-corridor-fact / flood-hazard-fact).
16
+ * Absence is for missing parcel geometry or an empty/unreachable pipeline
17
+ * index only.
18
+ *
19
+ * atomDid prefix: `pipefact_<16-hex>`.
20
+ */
21
+ export interface RrcPipelineFactAtomInstance {
22
+ entityType: "rrc-pipeline-fact";
23
+ atomDid: string;
24
+ parcelNodeId: string;
25
+ reasoningChain: Extract<ReasoningChain, {
26
+ reasoningKind: "observed";
27
+ }>;
28
+ sourceTier: RrcPipelineSourceTier;
29
+ /** Buffer distance used for parcel-edge ↔ T-4 pipeline line evaluation (meters). */
30
+ bufferMeters: number;
31
+ /** True when any T-4 pipeline segment lies within bufferMeters of a parcel edge. */
32
+ nearPipeline?: boolean;
33
+ /** Minimum edge-to-pipeline distance when nearPipeline is true (meters). */
34
+ nearestPipelineDistanceMeters?: number;
35
+ /** Nearest pipeline T-4 permit id after dedupe (display / identity). */
36
+ t4permit?: string;
37
+ /** Nearest pipeline P-5 operator number (display / identity). */
38
+ p5Num?: string;
39
+ /** Operator display name — NEVER a schema uniqueness key. */
40
+ operatorName?: string;
41
+ systemName?: string;
42
+ commodity?: string;
43
+ commodityDescription?: string;
44
+ systemType?: string;
45
+ status?: string;
46
+ diameter?: number;
47
+ /** Prefer boolean when source is clean; string retained for source fidelity. */
48
+ interstate?: boolean | string;
49
+ absence?: RrcPipelineAbsence;
50
+ verifiedAbsence?: SiteLayerVerifiedAbsence;
51
+ accessPolicy: AccessPolicy;
52
+ sourceCitation: string;
53
+ extractedAt: string;
54
+ asOf?: string;
55
+ sourceVintage?: string;
56
+ verificationStatus: "machine" | "human" | "unsurveyed";
57
+ sourceAdapter: string;
58
+ evaluatedAt: string;
59
+ atomTier: AtomTier;
60
+ readContract?: ReasoningReadContract;
61
+ }
62
+ export declare const RRC_PIPELINE_FACT_SCHEMA: z.ZodEffects<z.ZodObject<{
63
+ atomTier: z.ZodLiteral<AtomTier>;
64
+ readContract: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
65
+ axes: z.ZodReadonly<z.ZodObject<{
66
+ calibratedConfidence: z.ZodReadonly<z.ZodObject<{
67
+ readonly estimate: z.ZodNumber;
68
+ readonly n: z.ZodNumber;
69
+ readonly intervalWidth: z.ZodNumber;
70
+ readonly provenance: z.ZodEnum<["asserted", "backtest", "seed", "live"]>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ estimate: number;
73
+ n: number;
74
+ intervalWidth: number;
75
+ provenance: "asserted" | "backtest" | "seed" | "live";
76
+ }, {
77
+ estimate: number;
78
+ n: number;
79
+ intervalWidth: number;
80
+ provenance: "asserted" | "backtest" | "seed" | "live";
81
+ }>>;
82
+ assertedConfidence: z.ZodReadonly<z.ZodObject<{
83
+ readonly estimate: z.ZodNumber;
84
+ readonly n: z.ZodNumber;
85
+ readonly intervalWidth: z.ZodNumber;
86
+ readonly provenance: z.ZodEnum<["asserted", "backtest", "seed", "live"]>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ estimate: number;
89
+ n: number;
90
+ intervalWidth: number;
91
+ provenance: "asserted" | "backtest" | "seed" | "live";
92
+ }, {
93
+ estimate: number;
94
+ n: number;
95
+ intervalWidth: number;
96
+ provenance: "asserted" | "backtest" | "seed" | "live";
97
+ }>>;
98
+ consequence: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
99
+ kind: z.ZodLiteral<"property-risk">;
100
+ stratum: z.ZodEnum<[import("../read-contract/reasoning-axes.js").PropertyRiskStratum, ...import("../read-contract/reasoning-axes.js").PropertyRiskStratum[]]>;
101
+ basis: z.ZodString;
102
+ assertedAt: z.ZodString;
103
+ auditRef: z.ZodOptional<z.ZodString>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
106
+ assertedAt: string;
107
+ kind: "property-risk";
108
+ basis: string;
109
+ auditRef?: string | undefined;
110
+ }, {
111
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
112
+ assertedAt: string;
113
+ kind: "property-risk";
114
+ basis: string;
115
+ auditRef?: string | undefined;
116
+ }>, z.ZodObject<{
117
+ kind: z.ZodLiteral<"not-applicable">;
118
+ reason: z.ZodString;
119
+ assertedAt: z.ZodString;
120
+ }, "strip", z.ZodTypeAny, {
121
+ assertedAt: string;
122
+ kind: "not-applicable";
123
+ reason: string;
124
+ }, {
125
+ assertedAt: string;
126
+ kind: "not-applicable";
127
+ reason: string;
128
+ }>]>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ calibratedConfidence: Readonly<{
131
+ estimate: number;
132
+ n: number;
133
+ intervalWidth: number;
134
+ provenance: "asserted" | "backtest" | "seed" | "live";
135
+ }>;
136
+ assertedConfidence: Readonly<{
137
+ estimate: number;
138
+ n: number;
139
+ intervalWidth: number;
140
+ provenance: "asserted" | "backtest" | "seed" | "live";
141
+ }>;
142
+ consequence: {
143
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
144
+ assertedAt: string;
145
+ kind: "property-risk";
146
+ basis: string;
147
+ auditRef?: string | undefined;
148
+ } | {
149
+ assertedAt: string;
150
+ kind: "not-applicable";
151
+ reason: string;
152
+ };
153
+ }, {
154
+ calibratedConfidence: Readonly<{
155
+ estimate: number;
156
+ n: number;
157
+ intervalWidth: number;
158
+ provenance: "asserted" | "backtest" | "seed" | "live";
159
+ }>;
160
+ assertedConfidence: Readonly<{
161
+ estimate: number;
162
+ n: number;
163
+ intervalWidth: number;
164
+ provenance: "asserted" | "backtest" | "seed" | "live";
165
+ }>;
166
+ consequence: {
167
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
168
+ assertedAt: string;
169
+ kind: "property-risk";
170
+ basis: string;
171
+ auditRef?: string | undefined;
172
+ } | {
173
+ assertedAt: string;
174
+ kind: "not-applicable";
175
+ reason: string;
176
+ };
177
+ }>>;
178
+ assembledAt: z.ZodString;
179
+ modelAttribution: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
180
+ modelId: z.ZodString;
181
+ modelVersion: z.ZodString;
182
+ promptTemplateVersion: z.ZodString;
183
+ contextTemplateVersion: z.ZodString;
184
+ samplingParams: z.ZodReadonly<z.ZodObject<{
185
+ temperature: z.ZodOptional<z.ZodNumber>;
186
+ topP: z.ZodOptional<z.ZodNumber>;
187
+ maxTokens: z.ZodOptional<z.ZodNumber>;
188
+ seed: z.ZodOptional<z.ZodNumber>;
189
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
190
+ temperature: z.ZodOptional<z.ZodNumber>;
191
+ topP: z.ZodOptional<z.ZodNumber>;
192
+ maxTokens: z.ZodOptional<z.ZodNumber>;
193
+ seed: z.ZodOptional<z.ZodNumber>;
194
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
195
+ temperature: z.ZodOptional<z.ZodNumber>;
196
+ topP: z.ZodOptional<z.ZodNumber>;
197
+ maxTokens: z.ZodOptional<z.ZodNumber>;
198
+ seed: z.ZodOptional<z.ZodNumber>;
199
+ }, z.ZodUnknown, "strip">>>;
200
+ retrievedAtomSetId: z.ZodString;
201
+ }, "strip", z.ZodTypeAny, {
202
+ modelId: string;
203
+ modelVersion: string;
204
+ promptTemplateVersion: string;
205
+ contextTemplateVersion: string;
206
+ samplingParams: Readonly<z.objectOutputType<{
207
+ temperature: z.ZodOptional<z.ZodNumber>;
208
+ topP: z.ZodOptional<z.ZodNumber>;
209
+ maxTokens: z.ZodOptional<z.ZodNumber>;
210
+ seed: z.ZodOptional<z.ZodNumber>;
211
+ }, z.ZodUnknown, "strip">>;
212
+ retrievedAtomSetId: string;
213
+ }, {
214
+ modelId: string;
215
+ modelVersion: string;
216
+ promptTemplateVersion: string;
217
+ contextTemplateVersion: string;
218
+ samplingParams: Readonly<z.objectInputType<{
219
+ temperature: z.ZodOptional<z.ZodNumber>;
220
+ topP: z.ZodOptional<z.ZodNumber>;
221
+ maxTokens: z.ZodOptional<z.ZodNumber>;
222
+ seed: z.ZodOptional<z.ZodNumber>;
223
+ }, z.ZodUnknown, "strip">>;
224
+ retrievedAtomSetId: string;
225
+ }>>>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ axes: Readonly<{
228
+ calibratedConfidence: Readonly<{
229
+ estimate: number;
230
+ n: number;
231
+ intervalWidth: number;
232
+ provenance: "asserted" | "backtest" | "seed" | "live";
233
+ }>;
234
+ assertedConfidence: Readonly<{
235
+ estimate: number;
236
+ n: number;
237
+ intervalWidth: number;
238
+ provenance: "asserted" | "backtest" | "seed" | "live";
239
+ }>;
240
+ consequence: {
241
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
242
+ assertedAt: string;
243
+ kind: "property-risk";
244
+ basis: string;
245
+ auditRef?: string | undefined;
246
+ } | {
247
+ assertedAt: string;
248
+ kind: "not-applicable";
249
+ reason: string;
250
+ };
251
+ }>;
252
+ assembledAt: string;
253
+ modelAttribution?: Readonly<{
254
+ modelId: string;
255
+ modelVersion: string;
256
+ promptTemplateVersion: string;
257
+ contextTemplateVersion: string;
258
+ samplingParams: Readonly<z.objectOutputType<{
259
+ temperature: z.ZodOptional<z.ZodNumber>;
260
+ topP: z.ZodOptional<z.ZodNumber>;
261
+ maxTokens: z.ZodOptional<z.ZodNumber>;
262
+ seed: z.ZodOptional<z.ZodNumber>;
263
+ }, z.ZodUnknown, "strip">>;
264
+ retrievedAtomSetId: string;
265
+ }> | undefined;
266
+ }, {
267
+ axes: Readonly<{
268
+ calibratedConfidence: Readonly<{
269
+ estimate: number;
270
+ n: number;
271
+ intervalWidth: number;
272
+ provenance: "asserted" | "backtest" | "seed" | "live";
273
+ }>;
274
+ assertedConfidence: Readonly<{
275
+ estimate: number;
276
+ n: number;
277
+ intervalWidth: number;
278
+ provenance: "asserted" | "backtest" | "seed" | "live";
279
+ }>;
280
+ consequence: {
281
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
282
+ assertedAt: string;
283
+ kind: "property-risk";
284
+ basis: string;
285
+ auditRef?: string | undefined;
286
+ } | {
287
+ assertedAt: string;
288
+ kind: "not-applicable";
289
+ reason: string;
290
+ };
291
+ }>;
292
+ assembledAt: string;
293
+ modelAttribution?: Readonly<{
294
+ modelId: string;
295
+ modelVersion: string;
296
+ promptTemplateVersion: string;
297
+ contextTemplateVersion: string;
298
+ samplingParams: Readonly<z.objectInputType<{
299
+ temperature: z.ZodOptional<z.ZodNumber>;
300
+ topP: z.ZodOptional<z.ZodNumber>;
301
+ maxTokens: z.ZodOptional<z.ZodNumber>;
302
+ seed: z.ZodOptional<z.ZodNumber>;
303
+ }, z.ZodUnknown, "strip">>;
304
+ retrievedAtomSetId: string;
305
+ }> | undefined;
306
+ }>>>;
307
+ sourceVintage: z.ZodOptional<z.ZodString>;
308
+ verificationStatus: z.ZodEnum<["machine", "human", "unsurveyed"]>;
309
+ sourceAdapter: z.ZodString;
310
+ evaluatedAt: z.ZodString;
311
+ sourceCitation: z.ZodString;
312
+ extractedAt: z.ZodString;
313
+ asOf: z.ZodOptional<z.ZodString>;
314
+ entityType: z.ZodLiteral<"rrc-pipeline-fact">;
315
+ atomDid: z.ZodEffects<z.ZodString, string, string>;
316
+ parcelNodeId: z.ZodEffects<z.ZodString, string, string>;
317
+ reasoningChain: z.ZodObject<{
318
+ reasoningKind: z.ZodLiteral<"observed">;
319
+ }, "strip", z.ZodTypeAny, {
320
+ reasoningKind: "observed";
321
+ }, {
322
+ reasoningKind: "observed";
323
+ }>;
324
+ sourceTier: z.ZodEnum<["rrc-public-gis", "absent"]>;
325
+ bufferMeters: z.ZodNumber;
326
+ nearPipeline: z.ZodOptional<z.ZodBoolean>;
327
+ nearestPipelineDistanceMeters: z.ZodOptional<z.ZodNumber>;
328
+ t4permit: z.ZodOptional<z.ZodString>;
329
+ p5Num: z.ZodOptional<z.ZodString>;
330
+ operatorName: z.ZodOptional<z.ZodString>;
331
+ systemName: z.ZodOptional<z.ZodString>;
332
+ commodity: z.ZodOptional<z.ZodString>;
333
+ commodityDescription: z.ZodOptional<z.ZodString>;
334
+ systemType: z.ZodOptional<z.ZodString>;
335
+ status: z.ZodOptional<z.ZodString>;
336
+ diameter: z.ZodOptional<z.ZodNumber>;
337
+ interstate: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
338
+ absence: z.ZodOptional<z.ZodObject<{
339
+ kind: z.ZodEnum<["no-pipeline-coverage", "no-parcel-geometry"]>;
340
+ reason: z.ZodString;
341
+ }, "strict", z.ZodTypeAny, {
342
+ kind: "no-parcel-geometry" | "no-pipeline-coverage";
343
+ reason: string;
344
+ }, {
345
+ kind: "no-parcel-geometry" | "no-pipeline-coverage";
346
+ reason: string;
347
+ }>>;
348
+ verifiedAbsence: z.ZodOptional<z.ZodObject<{
349
+ evaluated: z.ZodLiteral<true>;
350
+ provenanceScope: z.ZodArray<z.ZodString, "many">;
351
+ }, "strict", z.ZodTypeAny, {
352
+ evaluated: true;
353
+ provenanceScope: string[];
354
+ }, {
355
+ evaluated: true;
356
+ provenanceScope: string[];
357
+ }>>;
358
+ accessPolicy: z.ZodEnum<["public-free", "public-paid", "platform-internal", "tenant-private", "tenant-shared"]>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
361
+ entityType: "rrc-pipeline-fact";
362
+ sourceCitation: string;
363
+ extractedAt: string;
364
+ atomDid: string;
365
+ evaluatedAt: string;
366
+ verificationStatus: "machine" | "human" | "unsurveyed";
367
+ sourceAdapter: string;
368
+ parcelNodeId: string;
369
+ reasoningChain: {
370
+ reasoningKind: "observed";
371
+ };
372
+ atomTier: AtomTier;
373
+ sourceTier: "absent" | "rrc-public-gis";
374
+ bufferMeters: number;
375
+ status?: string | undefined;
376
+ asOf?: string | undefined;
377
+ readContract?: Readonly<{
378
+ axes: Readonly<{
379
+ calibratedConfidence: Readonly<{
380
+ estimate: number;
381
+ n: number;
382
+ intervalWidth: number;
383
+ provenance: "asserted" | "backtest" | "seed" | "live";
384
+ }>;
385
+ assertedConfidence: Readonly<{
386
+ estimate: number;
387
+ n: number;
388
+ intervalWidth: number;
389
+ provenance: "asserted" | "backtest" | "seed" | "live";
390
+ }>;
391
+ consequence: {
392
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
393
+ assertedAt: string;
394
+ kind: "property-risk";
395
+ basis: string;
396
+ auditRef?: string | undefined;
397
+ } | {
398
+ assertedAt: string;
399
+ kind: "not-applicable";
400
+ reason: string;
401
+ };
402
+ }>;
403
+ assembledAt: string;
404
+ modelAttribution?: Readonly<{
405
+ modelId: string;
406
+ modelVersion: string;
407
+ promptTemplateVersion: string;
408
+ contextTemplateVersion: string;
409
+ samplingParams: Readonly<z.objectOutputType<{
410
+ temperature: z.ZodOptional<z.ZodNumber>;
411
+ topP: z.ZodOptional<z.ZodNumber>;
412
+ maxTokens: z.ZodOptional<z.ZodNumber>;
413
+ seed: z.ZodOptional<z.ZodNumber>;
414
+ }, z.ZodUnknown, "strip">>;
415
+ retrievedAtomSetId: string;
416
+ }> | undefined;
417
+ }> | undefined;
418
+ absence?: {
419
+ kind: "no-parcel-geometry" | "no-pipeline-coverage";
420
+ reason: string;
421
+ } | undefined;
422
+ verifiedAbsence?: {
423
+ evaluated: true;
424
+ provenanceScope: string[];
425
+ } | undefined;
426
+ sourceVintage?: string | undefined;
427
+ nearPipeline?: boolean | undefined;
428
+ nearestPipelineDistanceMeters?: number | undefined;
429
+ t4permit?: string | undefined;
430
+ p5Num?: string | undefined;
431
+ operatorName?: string | undefined;
432
+ systemName?: string | undefined;
433
+ commodity?: string | undefined;
434
+ commodityDescription?: string | undefined;
435
+ systemType?: string | undefined;
436
+ diameter?: number | undefined;
437
+ interstate?: string | boolean | undefined;
438
+ }, {
439
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
440
+ entityType: "rrc-pipeline-fact";
441
+ sourceCitation: string;
442
+ extractedAt: string;
443
+ atomDid: string;
444
+ evaluatedAt: string;
445
+ verificationStatus: "machine" | "human" | "unsurveyed";
446
+ sourceAdapter: string;
447
+ parcelNodeId: string;
448
+ reasoningChain: {
449
+ reasoningKind: "observed";
450
+ };
451
+ atomTier: AtomTier;
452
+ sourceTier: "absent" | "rrc-public-gis";
453
+ bufferMeters: number;
454
+ status?: string | undefined;
455
+ asOf?: string | undefined;
456
+ readContract?: Readonly<{
457
+ axes: Readonly<{
458
+ calibratedConfidence: Readonly<{
459
+ estimate: number;
460
+ n: number;
461
+ intervalWidth: number;
462
+ provenance: "asserted" | "backtest" | "seed" | "live";
463
+ }>;
464
+ assertedConfidence: Readonly<{
465
+ estimate: number;
466
+ n: number;
467
+ intervalWidth: number;
468
+ provenance: "asserted" | "backtest" | "seed" | "live";
469
+ }>;
470
+ consequence: {
471
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
472
+ assertedAt: string;
473
+ kind: "property-risk";
474
+ basis: string;
475
+ auditRef?: string | undefined;
476
+ } | {
477
+ assertedAt: string;
478
+ kind: "not-applicable";
479
+ reason: string;
480
+ };
481
+ }>;
482
+ assembledAt: string;
483
+ modelAttribution?: Readonly<{
484
+ modelId: string;
485
+ modelVersion: string;
486
+ promptTemplateVersion: string;
487
+ contextTemplateVersion: string;
488
+ samplingParams: Readonly<z.objectInputType<{
489
+ temperature: z.ZodOptional<z.ZodNumber>;
490
+ topP: z.ZodOptional<z.ZodNumber>;
491
+ maxTokens: z.ZodOptional<z.ZodNumber>;
492
+ seed: z.ZodOptional<z.ZodNumber>;
493
+ }, z.ZodUnknown, "strip">>;
494
+ retrievedAtomSetId: string;
495
+ }> | undefined;
496
+ }> | undefined;
497
+ absence?: {
498
+ kind: "no-parcel-geometry" | "no-pipeline-coverage";
499
+ reason: string;
500
+ } | undefined;
501
+ verifiedAbsence?: {
502
+ evaluated: true;
503
+ provenanceScope: string[];
504
+ } | undefined;
505
+ sourceVintage?: string | undefined;
506
+ nearPipeline?: boolean | undefined;
507
+ nearestPipelineDistanceMeters?: number | undefined;
508
+ t4permit?: string | undefined;
509
+ p5Num?: string | undefined;
510
+ operatorName?: string | undefined;
511
+ systemName?: string | undefined;
512
+ commodity?: string | undefined;
513
+ commodityDescription?: string | undefined;
514
+ systemType?: string | undefined;
515
+ diameter?: number | undefined;
516
+ interstate?: string | boolean | undefined;
517
+ }>, {
518
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
519
+ entityType: "rrc-pipeline-fact";
520
+ sourceCitation: string;
521
+ extractedAt: string;
522
+ atomDid: string;
523
+ evaluatedAt: string;
524
+ verificationStatus: "machine" | "human" | "unsurveyed";
525
+ sourceAdapter: string;
526
+ parcelNodeId: string;
527
+ reasoningChain: {
528
+ reasoningKind: "observed";
529
+ };
530
+ atomTier: AtomTier;
531
+ sourceTier: "absent" | "rrc-public-gis";
532
+ bufferMeters: number;
533
+ status?: string | undefined;
534
+ asOf?: string | undefined;
535
+ readContract?: Readonly<{
536
+ axes: Readonly<{
537
+ calibratedConfidence: Readonly<{
538
+ estimate: number;
539
+ n: number;
540
+ intervalWidth: number;
541
+ provenance: "asserted" | "backtest" | "seed" | "live";
542
+ }>;
543
+ assertedConfidence: Readonly<{
544
+ estimate: number;
545
+ n: number;
546
+ intervalWidth: number;
547
+ provenance: "asserted" | "backtest" | "seed" | "live";
548
+ }>;
549
+ consequence: {
550
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
551
+ assertedAt: string;
552
+ kind: "property-risk";
553
+ basis: string;
554
+ auditRef?: string | undefined;
555
+ } | {
556
+ assertedAt: string;
557
+ kind: "not-applicable";
558
+ reason: string;
559
+ };
560
+ }>;
561
+ assembledAt: string;
562
+ modelAttribution?: Readonly<{
563
+ modelId: string;
564
+ modelVersion: string;
565
+ promptTemplateVersion: string;
566
+ contextTemplateVersion: string;
567
+ samplingParams: Readonly<z.objectOutputType<{
568
+ temperature: z.ZodOptional<z.ZodNumber>;
569
+ topP: z.ZodOptional<z.ZodNumber>;
570
+ maxTokens: z.ZodOptional<z.ZodNumber>;
571
+ seed: z.ZodOptional<z.ZodNumber>;
572
+ }, z.ZodUnknown, "strip">>;
573
+ retrievedAtomSetId: string;
574
+ }> | undefined;
575
+ }> | undefined;
576
+ absence?: {
577
+ kind: "no-parcel-geometry" | "no-pipeline-coverage";
578
+ reason: string;
579
+ } | undefined;
580
+ verifiedAbsence?: {
581
+ evaluated: true;
582
+ provenanceScope: string[];
583
+ } | undefined;
584
+ sourceVintage?: string | undefined;
585
+ nearPipeline?: boolean | undefined;
586
+ nearestPipelineDistanceMeters?: number | undefined;
587
+ t4permit?: string | undefined;
588
+ p5Num?: string | undefined;
589
+ operatorName?: string | undefined;
590
+ systemName?: string | undefined;
591
+ commodity?: string | undefined;
592
+ commodityDescription?: string | undefined;
593
+ systemType?: string | undefined;
594
+ diameter?: number | undefined;
595
+ interstate?: string | boolean | undefined;
596
+ }, {
597
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
598
+ entityType: "rrc-pipeline-fact";
599
+ sourceCitation: string;
600
+ extractedAt: string;
601
+ atomDid: string;
602
+ evaluatedAt: string;
603
+ verificationStatus: "machine" | "human" | "unsurveyed";
604
+ sourceAdapter: string;
605
+ parcelNodeId: string;
606
+ reasoningChain: {
607
+ reasoningKind: "observed";
608
+ };
609
+ atomTier: AtomTier;
610
+ sourceTier: "absent" | "rrc-public-gis";
611
+ bufferMeters: number;
612
+ status?: string | undefined;
613
+ asOf?: string | undefined;
614
+ readContract?: Readonly<{
615
+ axes: Readonly<{
616
+ calibratedConfidence: Readonly<{
617
+ estimate: number;
618
+ n: number;
619
+ intervalWidth: number;
620
+ provenance: "asserted" | "backtest" | "seed" | "live";
621
+ }>;
622
+ assertedConfidence: Readonly<{
623
+ estimate: number;
624
+ n: number;
625
+ intervalWidth: number;
626
+ provenance: "asserted" | "backtest" | "seed" | "live";
627
+ }>;
628
+ consequence: {
629
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
630
+ assertedAt: string;
631
+ kind: "property-risk";
632
+ basis: string;
633
+ auditRef?: string | undefined;
634
+ } | {
635
+ assertedAt: string;
636
+ kind: "not-applicable";
637
+ reason: string;
638
+ };
639
+ }>;
640
+ assembledAt: string;
641
+ modelAttribution?: Readonly<{
642
+ modelId: string;
643
+ modelVersion: string;
644
+ promptTemplateVersion: string;
645
+ contextTemplateVersion: string;
646
+ samplingParams: Readonly<z.objectInputType<{
647
+ temperature: z.ZodOptional<z.ZodNumber>;
648
+ topP: z.ZodOptional<z.ZodNumber>;
649
+ maxTokens: z.ZodOptional<z.ZodNumber>;
650
+ seed: z.ZodOptional<z.ZodNumber>;
651
+ }, z.ZodUnknown, "strip">>;
652
+ retrievedAtomSetId: string;
653
+ }> | undefined;
654
+ }> | undefined;
655
+ absence?: {
656
+ kind: "no-parcel-geometry" | "no-pipeline-coverage";
657
+ reason: string;
658
+ } | undefined;
659
+ verifiedAbsence?: {
660
+ evaluated: true;
661
+ provenanceScope: string[];
662
+ } | undefined;
663
+ sourceVintage?: string | undefined;
664
+ nearPipeline?: boolean | undefined;
665
+ nearestPipelineDistanceMeters?: number | undefined;
666
+ t4permit?: string | undefined;
667
+ p5Num?: string | undefined;
668
+ operatorName?: string | undefined;
669
+ systemName?: string | undefined;
670
+ commodity?: string | undefined;
671
+ commodityDescription?: string | undefined;
672
+ systemType?: string | undefined;
673
+ diameter?: number | undefined;
674
+ interstate?: string | boolean | undefined;
675
+ }>;
676
+ export declare function createRrcPipelineFact(input: z.input<typeof RRC_PIPELINE_FACT_SCHEMA>): RrcPipelineFactAtomInstance;
677
+ //# sourceMappingURL=rrc-pipeline-fact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rrc-pipeline-fact.d.ts","sourceRoot":"","sources":["../../src/property/rrc-pipeline-fact.ts"],"names":[],"mappings":"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"}