@disclosureos/origins 1.0.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 (55) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +21 -0
  3. package/README.md +95 -0
  4. package/dist/classification/index.d.ts +75 -0
  5. package/dist/classification/index.js +35 -0
  6. package/dist/classification/index.js.map +1 -0
  7. package/dist/constants/index.d.ts +41 -0
  8. package/dist/constants/index.js +1027 -0
  9. package/dist/constants/index.js.map +1 -0
  10. package/dist/factories/index.d.ts +25 -0
  11. package/dist/factories/index.js +1067 -0
  12. package/dist/factories/index.js.map +1 -0
  13. package/dist/formatters/index.d.ts +9 -0
  14. package/dist/formatters/index.js +1036 -0
  15. package/dist/formatters/index.js.map +1 -0
  16. package/dist/guards/index.d.ts +3 -0
  17. package/dist/guards/index.js +1059 -0
  18. package/dist/guards/index.js.map +1 -0
  19. package/dist/index-BUFnYJ1s.d.ts +21 -0
  20. package/dist/index.d.ts +53 -0
  21. package/dist/index.js +1231 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/labels/index.d.ts +7 -0
  24. package/dist/labels/index.js +1002 -0
  25. package/dist/labels/index.js.map +1 -0
  26. package/dist/reference/aaro/index.d.ts +26 -0
  27. package/dist/reference/aaro/index.js +47 -0
  28. package/dist/reference/aaro/index.js.map +1 -0
  29. package/dist/reference/geipan/index.d.ts +34 -0
  30. package/dist/reference/geipan/index.js +53 -0
  31. package/dist/reference/geipan/index.js.map +1 -0
  32. package/dist/reference/hynek/index.d.ts +37 -0
  33. package/dist/reference/hynek/index.js +27 -0
  34. package/dist/reference/hynek/index.js.map +1 -0
  35. package/dist/reference/index.d.ts +5 -0
  36. package/dist/reference/index.js +143 -0
  37. package/dist/reference/index.js.map +1 -0
  38. package/dist/reference/vallee/index.d.ts +40 -0
  39. package/dist/reference/vallee/index.js +37 -0
  40. package/dist/reference/vallee/index.js.map +1 -0
  41. package/dist/taxonomy/index.d.ts +20 -0
  42. package/dist/taxonomy/index.js +1071 -0
  43. package/dist/taxonomy/index.js.map +1 -0
  44. package/dist/taxonomy/metaphysical/index.d.ts +6 -0
  45. package/dist/taxonomy/metaphysical/index.js +995 -0
  46. package/dist/taxonomy/metaphysical/index.js.map +1 -0
  47. package/dist/taxonomy/physical/index.d.ts +6 -0
  48. package/dist/taxonomy/physical/index.js +995 -0
  49. package/dist/taxonomy/physical/index.js.map +1 -0
  50. package/dist/taxonomy/psychosocial/index.d.ts +6 -0
  51. package/dist/taxonomy/psychosocial/index.js +995 -0
  52. package/dist/taxonomy/psychosocial/index.js.map +1 -0
  53. package/dist/types-DhroHNFf.d.ts +62 -0
  54. package/package.json +136 -0
  55. package/schema/origins.schema.json +88 -0
@@ -0,0 +1,1067 @@
1
+ import { z } from 'zod';
2
+ import { ConfidenceSchema, ClaimSchema } from '@disclosureos/records/shared';
3
+
4
+ // src/classification/types.ts
5
+ var HypothesisWeightSchema = z.object({
6
+ nodeId: z.string().min(1).describe('OCS node id (e.g., "1.1.3").'),
7
+ confidence: ConfidenceSchema,
8
+ label: z.string().optional()
9
+ }).meta({ id: "HypothesisWeight" }).describe("A weighted origin hypothesis (OCS node + confidence).");
10
+ var OriginClaimSchema = ClaimSchema.extend({
11
+ primaryHypothesis: z.string().min(1).describe("OCS node id of the primary hypothesis."),
12
+ confidence: ConfidenceSchema.describe("Confidence in the primary hypothesis, in [0,1]."),
13
+ alternativeHypotheses: z.array(HypothesisWeightSchema).optional().describe(
14
+ "Other OCS hypotheses this same evaluator weighs as possible, each with its own confidence \u2014 the intra-claim uncertainty axis."
15
+ )
16
+ }).meta({ id: "OriginClaim" }).describe("An attributed origin-hypothesis classification for an observation.");
17
+ var ConfidenceDistributionSchema = z.object({
18
+ hypotheses: z.array(HypothesisWeightSchema),
19
+ unresolved: ConfidenceSchema.describe("Remaining confidence not assigned to any hypothesis."),
20
+ evaluatedAt: z.iso.datetime()
21
+ }).meta({ id: "ConfidenceDistribution" }).describe("Confidence distribution across origin hypotheses.");
22
+ z.object({
23
+ conventional: ConfidenceSchema,
24
+ cryptoterrestrial: ConfidenceSchema,
25
+ extraterrestrial: ConfidenceSchema,
26
+ extradimensional: ConfidenceSchema,
27
+ interdimensional: ConfidenceSchema,
28
+ psychosocial: ConfidenceSchema,
29
+ metaphysical: ConfidenceSchema,
30
+ insufficientData: ConfidenceSchema
31
+ }).meta({ id: "CategoryConfidence" }).describe("Quick category-level confidence distribution across broad OCS categories.");
32
+
33
+ // src/taxonomy/tree.ts
34
+ var OCS_TAXONOMY = [
35
+ // ============================================================
36
+ // DOMAIN 1.0 — PHYSICAL
37
+ // ============================================================
38
+ {
39
+ id: "1",
40
+ label: "Physical",
41
+ description: "Theories attributing UAP to tangible, material objects or phenomena.",
42
+ domain: "physical",
43
+ depth: 0,
44
+ parentId: null,
45
+ children: ["1.1", "1.2", "1.3"],
46
+ scientificallyTestable: true
47
+ },
48
+ // --- 1.1 Intradimensional ---
49
+ {
50
+ id: "1.1",
51
+ label: "Intradimensional",
52
+ description: "Manifestations from dimensions/realms within our own physical reality.",
53
+ domain: "physical",
54
+ depth: 1,
55
+ parentId: "1",
56
+ children: ["1.1.1", "1.1.2", "1.1.3"],
57
+ scientificallyTestable: true
58
+ },
59
+ // 1.1.1 Prosaic
60
+ {
61
+ id: "1.1.1",
62
+ label: "Prosaic",
63
+ description: "Ordinary or conventional explanations for observed phenomena.",
64
+ domain: "physical",
65
+ depth: 2,
66
+ parentId: "1.1",
67
+ children: ["1.1.1.1", "1.1.1.2"],
68
+ scientificallyTestable: true
69
+ },
70
+ {
71
+ id: "1.1.1.1",
72
+ label: "Natural",
73
+ description: "Atmospheric, celestial, or geological phenomena misidentified as anomalous.",
74
+ domain: "physical",
75
+ depth: 3,
76
+ parentId: "1.1.1",
77
+ children: ["1.1.1.1.1", "1.1.1.1.2", "1.1.1.1.3", "1.1.1.1.4"],
78
+ scientificallyTestable: true
79
+ },
80
+ {
81
+ id: "1.1.1.1.1",
82
+ label: "Optical Artifact / Illusion",
83
+ description: "Lens flares, reflections, mirages, temperature inversions, or other optical effects.",
84
+ domain: "physical",
85
+ depth: 4,
86
+ parentId: "1.1.1.1",
87
+ children: [],
88
+ scientificallyTestable: true
89
+ },
90
+ {
91
+ id: "1.1.1.1.2",
92
+ label: "Celestial",
93
+ description: "Stars, planets, meteors, satellites, or space debris misidentified.",
94
+ domain: "physical",
95
+ depth: 4,
96
+ parentId: "1.1.1.1",
97
+ children: [],
98
+ scientificallyTestable: true
99
+ },
100
+ {
101
+ id: "1.1.1.1.3",
102
+ label: "Meteorological",
103
+ description: "Ball lightning, lenticular clouds, sprites, or other atmospheric phenomena.",
104
+ domain: "physical",
105
+ depth: 4,
106
+ parentId: "1.1.1.1",
107
+ children: [],
108
+ scientificallyTestable: true
109
+ },
110
+ {
111
+ id: "1.1.1.1.4",
112
+ label: "Geophysical",
113
+ description: "Earthquake lights, piezoelectric effects, or volcanic phenomena.",
114
+ domain: "physical",
115
+ depth: 4,
116
+ parentId: "1.1.1.1",
117
+ children: [],
118
+ scientificallyTestable: true
119
+ },
120
+ {
121
+ id: "1.1.1.2",
122
+ label: "Human",
123
+ description: "Human activities or technologies misidentified as anomalous.",
124
+ domain: "physical",
125
+ depth: 3,
126
+ parentId: "1.1.1",
127
+ children: ["1.1.1.2.1", "1.1.1.2.2", "1.1.1.2.3", "1.1.1.2.4"],
128
+ scientificallyTestable: true
129
+ },
130
+ {
131
+ id: "1.1.1.2.1",
132
+ label: "Governmental",
133
+ description: "Military aircraft, drones, or test vehicles from known government programs.",
134
+ domain: "physical",
135
+ depth: 4,
136
+ parentId: "1.1.1.2",
137
+ children: [],
138
+ scientificallyTestable: true
139
+ },
140
+ {
141
+ id: "1.1.1.2.2",
142
+ label: "Extra-Governmental",
143
+ description: "Black budget programs, Special Access Programs (SAPs), or unacknowledged projects.",
144
+ domain: "physical",
145
+ depth: 4,
146
+ parentId: "1.1.1.2",
147
+ children: [],
148
+ scientificallyTestable: true
149
+ },
150
+ {
151
+ id: "1.1.1.2.3",
152
+ label: "Inter-governmental",
153
+ description: "Foreign adversary technology or multinational classified programs.",
154
+ domain: "physical",
155
+ depth: 4,
156
+ parentId: "1.1.1.2",
157
+ children: [],
158
+ scientificallyTestable: true
159
+ },
160
+ {
161
+ id: "1.1.1.2.4",
162
+ label: "Private / Commercial",
163
+ description: "Commercial drones, private aerospace ventures, or civilian technology.",
164
+ domain: "physical",
165
+ depth: 4,
166
+ parentId: "1.1.1.2",
167
+ children: [],
168
+ scientificallyTestable: true
169
+ },
170
+ // 1.1.2 Cryptoterrestrial
171
+ {
172
+ id: "1.1.2",
173
+ label: "Cryptoterrestrial",
174
+ description: "Hidden Earth-based civilizations or entities operating outside known history.",
175
+ domain: "physical",
176
+ depth: 2,
177
+ parentId: "1.1",
178
+ children: ["1.1.2.1", "1.1.2.2", "1.1.2.3", "1.1.2.4"],
179
+ scientificallyTestable: true,
180
+ aliases: ["CTH"]
181
+ },
182
+ {
183
+ id: "1.1.2.1",
184
+ label: "Ancient / Proto-Human Survival",
185
+ description: "Remnant populations of earlier hominid species or ancient civilizations that survived in isolation.",
186
+ domain: "physical",
187
+ depth: 3,
188
+ parentId: "1.1.2",
189
+ children: [],
190
+ scientificallyTestable: true
191
+ },
192
+ {
193
+ id: "1.1.2.2",
194
+ label: "Breakaway Civilization",
195
+ description: "Human splinter groups that developed advanced technology in secret.",
196
+ domain: "physical",
197
+ depth: 3,
198
+ parentId: "1.1.2",
199
+ children: [],
200
+ scientificallyTestable: true
201
+ },
202
+ {
203
+ id: "1.1.2.3",
204
+ label: "Cryptids / Humanoids",
205
+ description: "Non-human intelligent entities indigenous to Earth but outside the known tree of life.",
206
+ domain: "physical",
207
+ depth: 3,
208
+ parentId: "1.1.2",
209
+ children: [],
210
+ scientificallyTestable: true
211
+ },
212
+ {
213
+ id: "1.1.2.4",
214
+ label: 'Stranded "Gods"',
215
+ description: "Entities from ancient mythological accounts interpreted as literal stranded visitors.",
216
+ domain: "physical",
217
+ depth: 3,
218
+ parentId: "1.1.2",
219
+ children: [],
220
+ scientificallyTestable: true
221
+ },
222
+ // 1.1.3 Extraterrestrial
223
+ {
224
+ id: "1.1.3",
225
+ label: "Extraterrestrial",
226
+ description: "Intelligence visiting from other locations in spacetime.",
227
+ domain: "physical",
228
+ depth: 2,
229
+ parentId: "1.1",
230
+ children: ["1.1.3.1", "1.1.3.2", "1.1.3.3", "1.1.3.4"],
231
+ scientificallyTestable: true,
232
+ aliases: ["ETH"]
233
+ },
234
+ {
235
+ id: "1.1.3.1",
236
+ label: "Solar System",
237
+ description: "Intelligence originating from elsewhere in our solar system.",
238
+ domain: "physical",
239
+ depth: 3,
240
+ parentId: "1.1.3",
241
+ children: [],
242
+ scientificallyTestable: true
243
+ },
244
+ {
245
+ id: "1.1.3.2",
246
+ label: "Interstellar",
247
+ description: "Intelligence from other star systems within our galaxy.",
248
+ domain: "physical",
249
+ depth: 3,
250
+ parentId: "1.1.3",
251
+ children: [],
252
+ scientificallyTestable: true
253
+ },
254
+ {
255
+ id: "1.1.3.3",
256
+ label: "Intergalactic",
257
+ description: "Intelligence from other galaxies.",
258
+ domain: "physical",
259
+ depth: 3,
260
+ parentId: "1.1.3",
261
+ children: [],
262
+ scientificallyTestable: true
263
+ },
264
+ {
265
+ id: "1.1.3.4",
266
+ label: "Unknown Region of Space-Time",
267
+ description: "Intelligence from an uncharacterized region of our physical universe.",
268
+ domain: "physical",
269
+ depth: 3,
270
+ parentId: "1.1.3",
271
+ children: [],
272
+ scientificallyTestable: true
273
+ },
274
+ // --- 1.2 Extradimensional ---
275
+ {
276
+ id: "1.2",
277
+ label: "Extradimensional",
278
+ description: "UAPs from other dimensions, parallel universes, or realms beyond our physical reality.",
279
+ domain: "physical",
280
+ depth: 1,
281
+ parentId: "1",
282
+ children: ["1.2.1", "1.2.2"],
283
+ scientificallyTestable: true
284
+ },
285
+ {
286
+ id: "1.2.1",
287
+ label: "3-D Entity From Hyperspace",
288
+ description: "Entities projecting into our 3+1 dimensional spacetime from higher dimensions.",
289
+ domain: "physical",
290
+ depth: 2,
291
+ parentId: "1.2",
292
+ children: ["1.2.1.1", "1.2.1.2", "1.2.1.3"],
293
+ scientificallyTestable: true
294
+ },
295
+ {
296
+ id: "1.2.1.1",
297
+ label: "Compactified Dimensions",
298
+ description: "Entities from string theory / Kaluza-Klein compactified extra dimensions.",
299
+ domain: "physical",
300
+ depth: 3,
301
+ parentId: "1.2.1",
302
+ children: [],
303
+ scientificallyTestable: true
304
+ },
305
+ {
306
+ id: "1.2.1.2",
307
+ label: 'Hyperspace "Bulk"',
308
+ description: "Entities from the bulk space of Randall-Sundrum brane models.",
309
+ domain: "physical",
310
+ depth: 3,
311
+ parentId: "1.2.1",
312
+ children: [],
313
+ scientificallyTestable: true
314
+ },
315
+ {
316
+ id: "1.2.1.3",
317
+ label: "Disconnected Hyperspace",
318
+ description: "Entities from higher-dimensional spaces not connected to our brane.",
319
+ domain: "physical",
320
+ depth: 3,
321
+ parentId: "1.2.1",
322
+ children: [],
323
+ scientificallyTestable: true
324
+ },
325
+ {
326
+ id: "1.2.2",
327
+ label: 'Hyper-D "Brane"',
328
+ description: "Brane interactions from string/M-theory producing observable effects.",
329
+ domain: "physical",
330
+ depth: 2,
331
+ parentId: "1.2",
332
+ children: ["1.2.2.1", "1.2.2.2"],
333
+ scientificallyTestable: true
334
+ },
335
+ {
336
+ id: "1.2.2.1",
337
+ label: 'Projection / "Shadow"',
338
+ description: "Lower-dimensional projections of higher-dimensional objects.",
339
+ domain: "physical",
340
+ depth: 3,
341
+ parentId: "1.2.2",
342
+ children: ["1.2.2.1.1", "1.2.2.1.2", "1.2.2.1.3"],
343
+ scientificallyTestable: true
344
+ },
345
+ {
346
+ id: "1.2.2.1.1",
347
+ label: "0-to-2 Dimensional",
348
+ description: "Point or plane-like projections from higher dimensions.",
349
+ domain: "physical",
350
+ depth: 4,
351
+ parentId: "1.2.2.1",
352
+ children: [],
353
+ scientificallyTestable: true
354
+ },
355
+ {
356
+ id: "1.2.2.1.2",
357
+ label: "3-Dimensional",
358
+ description: "Full volumetric projections appearing as solid objects.",
359
+ domain: "physical",
360
+ depth: 4,
361
+ parentId: "1.2.2.1",
362
+ children: [],
363
+ scientificallyTestable: true
364
+ },
365
+ {
366
+ id: "1.2.2.1.3",
367
+ label: "Fractal Dimensional",
368
+ description: "Non-integer dimensional projections with fractal geometry.",
369
+ domain: "physical",
370
+ depth: 4,
371
+ parentId: "1.2.2.1",
372
+ children: [],
373
+ scientificallyTestable: true
374
+ },
375
+ {
376
+ id: "1.2.2.2",
377
+ label: '\u2264 3-D "Avatar"',
378
+ description: "Controlled projections or constructs operating as proxies.",
379
+ domain: "physical",
380
+ depth: 3,
381
+ parentId: "1.2.2",
382
+ children: ["1.2.2.2.1", "1.2.2.2.2", "1.2.2.2.3"],
383
+ scientificallyTestable: true
384
+ },
385
+ {
386
+ id: "1.2.2.2.1",
387
+ label: 'Hologram / "Telepresence"',
388
+ description: "Remote presence via holographic or light-based projection.",
389
+ domain: "physical",
390
+ depth: 4,
391
+ parentId: "1.2.2.2",
392
+ children: [],
393
+ scientificallyTestable: true
394
+ },
395
+ {
396
+ id: "1.2.2.2.2",
397
+ label: "Automaton",
398
+ description: "Self-operating mechanical or energetic construct.",
399
+ domain: "physical",
400
+ depth: 4,
401
+ parentId: "1.2.2.2",
402
+ children: [],
403
+ scientificallyTestable: true
404
+ },
405
+ {
406
+ id: "1.2.2.2.3",
407
+ label: "Artificial Lifeform",
408
+ description: "Engineered biological or hybrid entity operating as a proxy.",
409
+ domain: "physical",
410
+ depth: 4,
411
+ parentId: "1.2.2.2",
412
+ children: [],
413
+ scientificallyTestable: true
414
+ },
415
+ // --- 1.3 Interdimensional ---
416
+ {
417
+ id: "1.3",
418
+ label: "Interdimensional",
419
+ description: "UAPs traversing between different dimensions or realities.",
420
+ domain: "physical",
421
+ depth: 1,
422
+ parentId: "1",
423
+ children: ["1.3.1", "1.3.2", "1.3.3"],
424
+ scientificallyTestable: true
425
+ },
426
+ {
427
+ id: "1.3.1",
428
+ label: "Multiverse",
429
+ description: "Entities or phenomena crossing between parallel universes.",
430
+ domain: "physical",
431
+ depth: 2,
432
+ parentId: "1.3",
433
+ children: ["1.3.1.1", "1.3.1.2", "1.3.1.3", "1.3.1.4"],
434
+ scientificallyTestable: true
435
+ },
436
+ {
437
+ id: "1.3.1.1",
438
+ label: "Portal / Wormhole",
439
+ description: "Traversal via Einstein-Rosen bridges or manufactured gateways.",
440
+ domain: "physical",
441
+ depth: 3,
442
+ parentId: "1.3.1",
443
+ children: [],
444
+ scientificallyTestable: true
445
+ },
446
+ {
447
+ id: "1.3.1.2",
448
+ label: "Colliding Universe(s)",
449
+ description: "Phenomena from brane collision events (ekpyrotic cosmology).",
450
+ domain: "physical",
451
+ depth: 3,
452
+ parentId: "1.3.1",
453
+ children: [],
454
+ scientificallyTestable: true
455
+ },
456
+ {
457
+ id: "1.3.1.3",
458
+ label: "Parallel Universe(s)",
459
+ description: "Entities from parallel but non-interacting universe branches.",
460
+ domain: "physical",
461
+ depth: 3,
462
+ parentId: "1.3.1",
463
+ children: [],
464
+ scientificallyTestable: true
465
+ },
466
+ {
467
+ id: "1.3.1.4",
468
+ label: 'QFT "Many Worlds"',
469
+ description: "Quantum-mechanical many-worlds interpretation producing observable crossover.",
470
+ domain: "physical",
471
+ depth: 3,
472
+ parentId: "1.3.1",
473
+ children: [],
474
+ scientificallyTestable: true
475
+ },
476
+ {
477
+ id: "1.3.2",
478
+ label: "Time Travel",
479
+ description: "Entities or vehicles traversing temporal dimensions.",
480
+ domain: "physical",
481
+ depth: 2,
482
+ parentId: "1.3",
483
+ children: ["1.3.2.1", "1.3.2.2", "1.3.2.3", "1.3.2.4", "1.3.2.5"],
484
+ scientificallyTestable: true
485
+ },
486
+ {
487
+ id: "1.3.2.1",
488
+ label: "Humans From Future",
489
+ description: "Time-traveling humans from our future timeline.",
490
+ domain: "physical",
491
+ depth: 3,
492
+ parentId: "1.3.2",
493
+ children: [],
494
+ scientificallyTestable: true
495
+ },
496
+ {
497
+ id: "1.3.2.2",
498
+ label: "Humans From Past",
499
+ description: "Time-traveling humans from our past (advanced pre-history).",
500
+ domain: "physical",
501
+ depth: 3,
502
+ parentId: "1.3.2",
503
+ children: [],
504
+ scientificallyTestable: true
505
+ },
506
+ {
507
+ id: "1.3.2.3",
508
+ label: "Humans From Alternate Timeline",
509
+ description: "Humans from divergent timeline branches.",
510
+ domain: "physical",
511
+ depth: 3,
512
+ parentId: "1.3.2",
513
+ children: [],
514
+ scientificallyTestable: true
515
+ },
516
+ {
517
+ id: "1.3.2.4",
518
+ label: "Non-Human Entity",
519
+ description: "Non-human intelligence traversing time dimensions.",
520
+ domain: "physical",
521
+ depth: 3,
522
+ parentId: "1.3.2",
523
+ children: [],
524
+ scientificallyTestable: true
525
+ },
526
+ {
527
+ id: "1.3.2.5",
528
+ label: "Additional Time Dimension(s)",
529
+ description: "Traversal via hypothetical extra temporal dimensions beyond our single time axis.",
530
+ domain: "physical",
531
+ depth: 3,
532
+ parentId: "1.3.2",
533
+ children: [],
534
+ scientificallyTestable: true
535
+ },
536
+ {
537
+ id: "1.3.3",
538
+ label: "Scale Invariance",
539
+ description: "Phenomena emerging from scale-dependent physics or quantum-cosmological effects.",
540
+ domain: "physical",
541
+ depth: 2,
542
+ parentId: "1.3",
543
+ children: ["1.3.3.1", "1.3.3.2", "1.3.3.3", "1.3.3.4", "1.3.3.5"],
544
+ scientificallyTestable: true
545
+ },
546
+ {
547
+ id: "1.3.3.1",
548
+ label: "Macro Quantum Fluctuation",
549
+ description: "Macroscopic manifestation of quantum vacuum fluctuations.",
550
+ domain: "physical",
551
+ depth: 3,
552
+ parentId: "1.3.3",
553
+ children: [],
554
+ scientificallyTestable: true
555
+ },
556
+ {
557
+ id: "1.3.3.2",
558
+ label: "Distance Recursion",
559
+ description: "Self-similar structure at different scales producing observable anomalies.",
560
+ domain: "physical",
561
+ depth: 3,
562
+ parentId: "1.3.3",
563
+ children: [],
564
+ scientificallyTestable: true
565
+ },
566
+ {
567
+ id: "1.3.3.3",
568
+ label: "Pan-Galactic Entanglement",
569
+ description: "Non-local quantum entanglement effects at galactic scales.",
570
+ domain: "physical",
571
+ depth: 3,
572
+ parentId: "1.3.3",
573
+ children: [],
574
+ scientificallyTestable: true
575
+ },
576
+ {
577
+ id: "1.3.3.4",
578
+ label: 'Unobserved "Vibratory Modes"',
579
+ description: "Hidden vibrational modes of spacetime not yet detected by instruments.",
580
+ domain: "physical",
581
+ depth: 3,
582
+ parentId: "1.3.3",
583
+ children: [],
584
+ scientificallyTestable: true
585
+ },
586
+ {
587
+ id: "1.3.3.5",
588
+ label: "Conformal Cyclic Cosmology",
589
+ description: "Signals or entities from previous cosmic aeons (Penrose CCC).",
590
+ domain: "physical",
591
+ depth: 3,
592
+ parentId: "1.3.3",
593
+ children: [],
594
+ scientificallyTestable: true
595
+ },
596
+ // ============================================================
597
+ // DOMAIN 2.0 — PSYCHOSOCIAL
598
+ // ============================================================
599
+ {
600
+ id: "2",
601
+ label: "Psychosocial",
602
+ description: "Theories attributing UAP to psychological, perceptual, and sociological factors.",
603
+ domain: "psychosocial",
604
+ depth: 0,
605
+ parentId: null,
606
+ children: ["2.1", "2.2", "2.3"],
607
+ scientificallyTestable: true,
608
+ aliases: ["PSH"]
609
+ },
610
+ // --- 2.1 Sociological ---
611
+ {
612
+ id: "2.1",
613
+ label: "Sociological",
614
+ description: "Social dynamics, group phenomena, and cultural factors producing UAP reports.",
615
+ domain: "psychosocial",
616
+ depth: 1,
617
+ parentId: "2",
618
+ children: ["2.1.1", "2.1.2", "2.1.3", "2.1.4", "2.1.5"],
619
+ scientificallyTestable: true
620
+ },
621
+ {
622
+ id: "2.1.1",
623
+ label: "Hypnosis",
624
+ description: "Hypnotic suggestion producing false UAP memories or experiences.",
625
+ domain: "psychosocial",
626
+ depth: 2,
627
+ parentId: "2.1",
628
+ children: [],
629
+ scientificallyTestable: true
630
+ },
631
+ {
632
+ id: "2.1.2",
633
+ label: "Mass Hysteria",
634
+ description: "Collective delusion or social contagion producing shared UAP reports.",
635
+ domain: "psychosocial",
636
+ depth: 2,
637
+ parentId: "2.1",
638
+ children: [],
639
+ scientificallyTestable: true
640
+ },
641
+ {
642
+ id: "2.1.3",
643
+ label: "Memetic Virus",
644
+ description: "Self-propagating cultural narratives that generate UAP reports.",
645
+ domain: "psychosocial",
646
+ depth: 2,
647
+ parentId: "2.1",
648
+ children: [],
649
+ scientificallyTestable: true
650
+ },
651
+ {
652
+ id: "2.1.4",
653
+ label: "Conditioning / Disinformation",
654
+ description: "Deliberate manipulation, propaganda, or psyops creating UAP narratives.",
655
+ domain: "psychosocial",
656
+ depth: 2,
657
+ parentId: "2.1",
658
+ children: [],
659
+ scientificallyTestable: true
660
+ },
661
+ {
662
+ id: "2.1.5",
663
+ label: "Hoax",
664
+ description: "Deliberate fabrication for attention, profit, or amusement.",
665
+ domain: "psychosocial",
666
+ depth: 2,
667
+ parentId: "2.1",
668
+ children: [],
669
+ scientificallyTestable: true
670
+ },
671
+ // --- 2.2 Psychological ---
672
+ {
673
+ id: "2.2",
674
+ label: "Psychological",
675
+ description: "Individual psychological processes producing UAP perceptions.",
676
+ domain: "psychosocial",
677
+ depth: 1,
678
+ parentId: "2",
679
+ children: ["2.2.1", "2.2.2", "2.2.3", "2.2.4", "2.2.5"],
680
+ scientificallyTestable: true
681
+ },
682
+ {
683
+ id: "2.2.1",
684
+ label: "False Belief / Misinterpretation",
685
+ description: "Cognitive bias or perceptual error leading to misidentification.",
686
+ domain: "psychosocial",
687
+ depth: 2,
688
+ parentId: "2.2",
689
+ children: [],
690
+ scientificallyTestable: true
691
+ },
692
+ {
693
+ id: "2.2.2",
694
+ label: "Fallible / Screen Memory",
695
+ description: "False or constructed memories obscuring actual events.",
696
+ domain: "psychosocial",
697
+ depth: 2,
698
+ parentId: "2.2",
699
+ children: [],
700
+ scientificallyTestable: true
701
+ },
702
+ {
703
+ id: "2.2.3",
704
+ label: "Psychosomatic Disorder",
705
+ description: "Physical symptoms produced by psychological distress attributed to UAP.",
706
+ domain: "psychosocial",
707
+ depth: 2,
708
+ parentId: "2.2",
709
+ children: [],
710
+ scientificallyTestable: true
711
+ },
712
+ {
713
+ id: "2.2.4",
714
+ label: "Psychosis / Hallucination",
715
+ description: "Clinical psychiatric conditions producing UAP perceptions.",
716
+ domain: "psychosocial",
717
+ depth: 2,
718
+ parentId: "2.2",
719
+ children: [],
720
+ scientificallyTestable: true
721
+ },
722
+ {
723
+ id: "2.2.5",
724
+ label: "Collective Unconscious",
725
+ description: "Jungian archetypes manifesting as UAP experiences across cultures.",
726
+ domain: "psychosocial",
727
+ depth: 2,
728
+ parentId: "2.2",
729
+ children: [],
730
+ scientificallyTestable: true
731
+ },
732
+ // --- 2.3 Neurological ---
733
+ {
734
+ id: "2.3",
735
+ label: "Neurological",
736
+ description: "Neurobiological factors producing anomalous perceptions.",
737
+ domain: "psychosocial",
738
+ depth: 1,
739
+ parentId: "2",
740
+ children: ["2.3.1", "2.3.2", "2.3.3", "2.3.4", "2.3.5"],
741
+ scientificallyTestable: true
742
+ },
743
+ {
744
+ id: "2.3.1",
745
+ label: "Psychedelics / Pharmacology",
746
+ description: "Drug-induced altered states producing UAP-like perceptions.",
747
+ domain: "psychosocial",
748
+ depth: 2,
749
+ parentId: "2.3",
750
+ children: [],
751
+ scientificallyTestable: true
752
+ },
753
+ {
754
+ id: "2.3.2",
755
+ label: "Pathology / Trauma",
756
+ description: "Brain injury, disease, or trauma producing anomalous perceptions.",
757
+ domain: "psychosocial",
758
+ depth: 2,
759
+ parentId: "2.3",
760
+ children: [],
761
+ scientificallyTestable: true
762
+ },
763
+ {
764
+ id: "2.3.3",
765
+ label: "Neurodivergence",
766
+ description: "Atypical neural architecture producing enhanced or anomalous perception.",
767
+ domain: "psychosocial",
768
+ depth: 2,
769
+ parentId: "2.3",
770
+ children: [],
771
+ scientificallyTestable: true
772
+ },
773
+ {
774
+ id: "2.3.4",
775
+ label: "High Intuition / Functioning",
776
+ description: "Heightened perceptual sensitivity or cognitive function.",
777
+ domain: "psychosocial",
778
+ depth: 2,
779
+ parentId: "2.3",
780
+ children: [],
781
+ scientificallyTestable: true
782
+ },
783
+ {
784
+ id: "2.3.5",
785
+ label: '"Alien" Implants',
786
+ description: "Neurological effects attributed to foreign objects or stimulation.",
787
+ domain: "psychosocial",
788
+ depth: 2,
789
+ parentId: "2.3",
790
+ children: [],
791
+ scientificallyTestable: true
792
+ },
793
+ // ============================================================
794
+ // DOMAIN 3.0 — METAPHYSICAL
795
+ // ============================================================
796
+ {
797
+ id: "3",
798
+ label: "Metaphysical",
799
+ description: "Theories with origins beyond conventional scientific understanding.",
800
+ domain: "metaphysical",
801
+ depth: 0,
802
+ parentId: null,
803
+ children: ["3.1", "3.2", "3.3"],
804
+ scientificallyTestable: false,
805
+ aliases: ["MPH"]
806
+ },
807
+ // --- 3.1 Paranormal ---
808
+ {
809
+ id: "3.1",
810
+ label: "Paranormal",
811
+ description: "Phenomena involving extraordinary human potential or non-material entities.",
812
+ domain: "metaphysical",
813
+ depth: 1,
814
+ parentId: "3",
815
+ children: ["3.1.1", "3.1.2", "3.1.3", "3.1.4", "3.1.5", "3.1.6"],
816
+ scientificallyTestable: true
817
+ },
818
+ {
819
+ id: "3.1.1",
820
+ label: "Psychotronics / Extraordinary Potential",
821
+ description: "Latent human psychic abilities (telekinesis, remote viewing) producing observable effects.",
822
+ domain: "metaphysical",
823
+ depth: 2,
824
+ parentId: "3.1",
825
+ children: [],
826
+ scientificallyTestable: true
827
+ },
828
+ {
829
+ id: "3.1.2",
830
+ label: "NDE / OBE",
831
+ description: "Near-death or out-of-body experiences suggesting non-physical consciousness.",
832
+ domain: "metaphysical",
833
+ depth: 2,
834
+ parentId: "3.1",
835
+ children: [],
836
+ scientificallyTestable: true
837
+ },
838
+ {
839
+ id: "3.1.3",
840
+ label: "Disembodied Spirits / Consciousness",
841
+ description: "Non-physical conscious entities interacting with physical reality.",
842
+ domain: "metaphysical",
843
+ depth: 2,
844
+ parentId: "3.1",
845
+ children: [],
846
+ scientificallyTestable: true
847
+ },
848
+ {
849
+ id: "3.1.4",
850
+ label: "Incorporeal / Bosonic Lifeforms",
851
+ description: "Entities composed of force-carrier particles or non-baryonic matter.",
852
+ domain: "metaphysical",
853
+ depth: 2,
854
+ parentId: "3.1",
855
+ children: [],
856
+ scientificallyTestable: true
857
+ },
858
+ {
859
+ id: "3.1.5",
860
+ label: "Mediumship / Possession",
861
+ description: "External entities communicating through or controlling human hosts.",
862
+ domain: "metaphysical",
863
+ depth: 2,
864
+ parentId: "3.1",
865
+ children: [],
866
+ scientificallyTestable: true
867
+ },
868
+ {
869
+ id: "3.1.6",
870
+ label: "New Physics",
871
+ description: "Undiscovered physical laws that explain anomalous phenomena.",
872
+ domain: "metaphysical",
873
+ depth: 2,
874
+ parentId: "3.1",
875
+ children: [],
876
+ scientificallyTestable: true
877
+ },
878
+ // --- 3.2 Occult ---
879
+ {
880
+ id: "3.2",
881
+ label: "Occult",
882
+ description: "Hidden knowledge traditions and reality models outside mainstream science.",
883
+ domain: "metaphysical",
884
+ depth: 1,
885
+ parentId: "3",
886
+ children: ["3.2.1", "3.2.2", "3.2.3", "3.2.4", "3.2.5", "3.2.6"],
887
+ scientificallyTestable: false
888
+ },
889
+ {
890
+ id: "3.2.1",
891
+ label: "Hidden Powers of Nature",
892
+ description: "Esoteric natural forces not yet recognized by science.",
893
+ domain: "metaphysical",
894
+ depth: 2,
895
+ parentId: "3.2",
896
+ children: [],
897
+ scientificallyTestable: false
898
+ },
899
+ {
900
+ id: "3.2.2",
901
+ label: 'Ascended "Masters"',
902
+ description: "Spiritually evolved beings guiding humanity from higher planes.",
903
+ domain: "metaphysical",
904
+ depth: 2,
905
+ parentId: "3.2",
906
+ children: [],
907
+ scientificallyTestable: false
908
+ },
909
+ {
910
+ id: "3.2.3",
911
+ label: '"Maya" / Sensory Delusion',
912
+ description: "Physical reality as fundamental illusion (Vedantic/Buddhist ontology).",
913
+ domain: "metaphysical",
914
+ depth: 2,
915
+ parentId: "3.2",
916
+ children: [],
917
+ scientificallyTestable: false
918
+ },
919
+ {
920
+ id: "3.2.4",
921
+ label: "Artificial Reality / Matrix Simulation",
922
+ description: "Reality as a computational simulation with UAP as glitches or features.",
923
+ domain: "metaphysical",
924
+ depth: 2,
925
+ parentId: "3.2",
926
+ children: [],
927
+ scientificallyTestable: true
928
+ },
929
+ {
930
+ id: "3.2.5",
931
+ label: "Altered / Alternate Reality",
932
+ description: "Consensus reality as one of many equally valid experiential frames.",
933
+ domain: "metaphysical",
934
+ depth: 2,
935
+ parentId: "3.2",
936
+ children: [],
937
+ scientificallyTestable: false
938
+ },
939
+ {
940
+ id: "3.2.6",
941
+ label: "Absolute World of Archetypes",
942
+ description: "Platonic realm of forms manifesting in physical experience.",
943
+ domain: "metaphysical",
944
+ depth: 2,
945
+ parentId: "3.2",
946
+ children: [],
947
+ scientificallyTestable: false
948
+ },
949
+ // --- 3.3 Transcendental ---
950
+ {
951
+ id: "3.3",
952
+ label: "Transcendental",
953
+ description: "Religious, spiritual, and theological explanations for UAP.",
954
+ domain: "metaphysical",
955
+ depth: 1,
956
+ parentId: "3",
957
+ children: ["3.3.1", "3.3.2", "3.3.3", "3.3.4", "3.3.5", "3.3.6"],
958
+ scientificallyTestable: false
959
+ },
960
+ {
961
+ id: "3.3.1",
962
+ label: '"Gaia" / Nature Spirits',
963
+ description: "Animistic intelligence of the Earth or natural world.",
964
+ domain: "metaphysical",
965
+ depth: 2,
966
+ parentId: "3.3",
967
+ children: [],
968
+ scientificallyTestable: false
969
+ },
970
+ {
971
+ id: "3.3.2",
972
+ label: "Angelic Beings",
973
+ description: "Benevolent spiritual entities from monotheistic traditions.",
974
+ domain: "metaphysical",
975
+ depth: 2,
976
+ parentId: "3.3",
977
+ children: [],
978
+ scientificallyTestable: false
979
+ },
980
+ {
981
+ id: "3.3.3",
982
+ label: '"Djinn" / Neutral Powers',
983
+ description: "Morally neutral spiritual entities (Islamic jinn, fae folk, trickster spirits).",
984
+ domain: "metaphysical",
985
+ depth: 2,
986
+ parentId: "3.3",
987
+ children: [],
988
+ scientificallyTestable: false
989
+ },
990
+ {
991
+ id: "3.3.4",
992
+ label: "Demonic Forces",
993
+ description: "Malevolent spiritual entities from various religious traditions.",
994
+ domain: "metaphysical",
995
+ depth: 2,
996
+ parentId: "3.3",
997
+ children: [],
998
+ scientificallyTestable: false
999
+ },
1000
+ {
1001
+ id: "3.3.5",
1002
+ label: "Hierarchy of Being",
1003
+ description: "Neo-Platonic great chain of being with UAP as higher-order entities.",
1004
+ domain: "metaphysical",
1005
+ depth: 2,
1006
+ parentId: "3.3",
1007
+ children: [],
1008
+ scientificallyTestable: false
1009
+ },
1010
+ {
1011
+ id: "3.3.6",
1012
+ label: "Emanations of Godhead",
1013
+ description: "Direct manifestations of divine creative force or cosmic consciousness.",
1014
+ domain: "metaphysical",
1015
+ depth: 2,
1016
+ parentId: "3.3",
1017
+ children: [],
1018
+ scientificallyTestable: false
1019
+ }
1020
+ ];
1021
+
1022
+ // src/taxonomy/traversal.ts
1023
+ var nodeMap = new Map(OCS_TAXONOMY.map((n) => [n.id, n]));
1024
+ function getNode(id) {
1025
+ return nodeMap.get(id);
1026
+ }
1027
+
1028
+ // src/factories/index.ts
1029
+ function assertKnownNode(nodeId, label) {
1030
+ if (!getNode(nodeId)) {
1031
+ throw new Error(`Unknown OCS node ID in ${label}: "${nodeId}"`);
1032
+ }
1033
+ }
1034
+ function createOriginClaim(primaryHypothesis, confidence, options) {
1035
+ assertKnownNode(primaryHypothesis, "primaryHypothesis");
1036
+ const { alternativeHypotheses, rationale, evaluatedBy, evaluatedAt, evidenceRefs } = options ?? {};
1037
+ for (const alt of alternativeHypotheses ?? []) {
1038
+ assertKnownNode(alt.nodeId, "alternativeHypothesis");
1039
+ }
1040
+ return OriginClaimSchema.parse({
1041
+ primaryHypothesis,
1042
+ confidence,
1043
+ evaluatedAt: evaluatedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
1044
+ ...alternativeHypotheses !== void 0 && { alternativeHypotheses },
1045
+ ...rationale !== void 0 && { rationale },
1046
+ ...evaluatedBy !== void 0 && { evaluatedBy },
1047
+ ...evidenceRefs !== void 0 && { evidenceRefs }
1048
+ });
1049
+ }
1050
+ function createConfidenceDistribution(hypotheses, options) {
1051
+ for (const h of hypotheses) {
1052
+ assertKnownNode(h.nodeId, "hypothesis");
1053
+ }
1054
+ const total = hypotheses.reduce((sum, h) => sum + h.confidence, 0);
1055
+ if (total > 1 + 1e-9) {
1056
+ throw new RangeError(`hypothesis confidences sum to ${total}, exceeding 1.0`);
1057
+ }
1058
+ return ConfidenceDistributionSchema.parse({
1059
+ hypotheses,
1060
+ unresolved: Math.max(0, 1 - total),
1061
+ evaluatedAt: options?.evaluatedAt ?? (/* @__PURE__ */ new Date()).toISOString()
1062
+ });
1063
+ }
1064
+
1065
+ export { createConfidenceDistribution, createOriginClaim };
1066
+ //# sourceMappingURL=index.js.map
1067
+ //# sourceMappingURL=index.js.map