@htilabs/platform-common-models 0.9.0 → 0.12.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 (149) hide show
  1. package/dist/config/index.cjs +85 -0
  2. package/dist/config/index.cjs.map +1 -1
  3. package/dist/config/index.d.cts +94 -4
  4. package/dist/config/index.d.ts +94 -4
  5. package/dist/config/index.js +81 -1
  6. package/dist/config/index.js.map +1 -1
  7. package/dist/constants/index.cjs +456 -181
  8. package/dist/constants/index.cjs.map +1 -1
  9. package/dist/constants/index.d.cts +1 -1
  10. package/dist/constants/index.d.ts +1 -1
  11. package/dist/constants/index.js +453 -169
  12. package/dist/constants/index.js.map +1 -1
  13. package/dist/cvcs/index.cjs +15331 -801
  14. package/dist/cvcs/index.cjs.map +1 -1
  15. package/dist/cvcs/index.d.cts +18167 -2208
  16. package/dist/cvcs/index.d.ts +18167 -2208
  17. package/dist/cvcs/index.js +15282 -801
  18. package/dist/cvcs/index.js.map +1 -1
  19. package/dist/{index-Zu_mOJRn.d.cts → index-CoVr1jIV.d.cts} +1 -1
  20. package/dist/{index-CDoqrfc1.d.ts → index-I-DiX9eQ.d.ts} +1 -1
  21. package/dist/index.cjs +17070 -1056
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +1638 -12
  24. package/dist/index.d.ts +1638 -12
  25. package/dist/index.js +16969 -1043
  26. package/dist/index.js.map +1 -1
  27. package/dist/models/index.d.cts +2 -2
  28. package/dist/models/index.d.ts +2 -2
  29. package/dist/mongo/index.cjs +384 -0
  30. package/dist/mongo/index.cjs.map +1 -0
  31. package/dist/mongo/index.d.cts +221 -0
  32. package/dist/mongo/index.d.ts +221 -0
  33. package/dist/mongo/index.js +352 -0
  34. package/dist/mongo/index.js.map +1 -0
  35. package/dist/{platform-auth-XVB9aHqR.d.cts → platform-auth-v53r3BhN.d.cts} +19 -75
  36. package/dist/{platform-auth-XVB9aHqR.d.ts → platform-auth-v53r3BhN.d.ts} +19 -75
  37. package/dist/schemas/index.cjs +25 -156
  38. package/dist/schemas/index.cjs.map +1 -1
  39. package/dist/schemas/index.d.cts +25 -25
  40. package/dist/schemas/index.d.ts +25 -25
  41. package/dist/schemas/index.js +25 -156
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/services/index.cjs +0 -3
  44. package/dist/services/index.cjs.map +1 -1
  45. package/dist/services/index.js +0 -3
  46. package/dist/services/index.js.map +1 -1
  47. package/dist/types/index.d.cts +2 -2
  48. package/dist/types/index.d.ts +2 -2
  49. package/package.json +9 -1
  50. package/src/__sot__/README.md +56 -0
  51. package/src/__sot__/coreIndicators.pin.json +215 -0
  52. package/src/__sot__/cvcIndex.pin.json +268 -0
  53. package/src/__sot__/scoringEmits.pin.json +176 -0
  54. package/src/__tests__/__snapshots__/cvc-sot.snap +227 -35
  55. package/src/__tests__/cvc-136-scoring-invariant.test.ts +323 -0
  56. package/src/__tests__/cvc-drift-gate.test.ts +603 -0
  57. package/src/__tests__/cvc-sot-snapshot.test.ts +122 -11
  58. package/src/__tests__/cvc-structural.test.ts +56 -1
  59. package/src/__tests__/mongo-verifier.test.ts +502 -0
  60. package/src/__tests__/runtime-contract-validator.test.ts +325 -1
  61. package/src/config/index.ts +197 -6
  62. package/src/constants/ic.ts +512 -206
  63. package/src/constants/service-catalog.ts +4 -2
  64. package/src/cvcs/activityType.v1.0.0.json +143 -0
  65. package/src/cvcs/adminRoles.v1.0.0.json +153 -0
  66. package/src/cvcs/administeringJurisdiction.v1.0.0.json +40 -40
  67. package/src/cvcs/ageBinReporting.v1.0.0.json +40 -40
  68. package/src/cvcs/assertionDomain.v1.1.0.json +629 -0
  69. package/src/cvcs/{checkInPhase.v1.0.0.json → checkInPhase.v1.1.0.json} +20 -2
  70. package/src/cvcs/childChangeType.v1.0.0.json +152 -0
  71. package/src/cvcs/citizenship.v1.0.0.json +3062 -0
  72. package/src/cvcs/contactInfoTypes.v1.0.0.json +40 -40
  73. package/src/cvcs/contactLinkType.v1.0.0.json +89 -0
  74. package/src/cvcs/coreDhState.v1.0.0.json +113 -0
  75. package/src/cvcs/coreFunctions.v1.0.0.json +746 -0
  76. package/src/cvcs/coreIndicators.v1.0.0.json +2840 -0
  77. package/src/cvcs/coreReferralOutcome.v1.0.0.json +71 -0
  78. package/src/cvcs/employmentStatus.v1.0.0.json +60 -60
  79. package/src/cvcs/exploitationType.v1.0.0.json +106 -0
  80. package/src/cvcs/facilitatorEntityType.v1.0.0.json +40 -40
  81. package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +55 -46
  82. package/src/cvcs/hivStatus.v1.0.0.json +71 -0
  83. package/src/cvcs/hmisCurrentLivingSituation.v1.0.0.json +409 -0
  84. package/src/cvcs/hmisRelationshipToHoh.v1.0.0.json +104 -0
  85. package/src/cvcs/homelessStatus.v1.0.0.json +27 -27
  86. package/src/cvcs/housingSubsidyTypes.v1.0.0.json +161 -0
  87. package/src/cvcs/htType.v1.0.0.json +87 -0
  88. package/src/cvcs/identificationStatus.v1.0.0.json +18 -0
  89. package/src/cvcs/immigrationLegalStatusChangeType.v1.0.0.json +143 -0
  90. package/src/cvcs/incarcerationEpisodeType.v1.0.0.json +106 -0
  91. package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +40 -40
  92. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +40 -40
  93. package/src/cvcs/incomeBenefitsSources.v1.0.0.json +31 -2
  94. package/src/cvcs/index.ts +106 -1
  95. package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +28 -18
  96. package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +32 -32
  97. package/src/cvcs/livingSituation.v1.0.0.json +213 -0
  98. package/src/cvcs/mentalHealthStatus.v1.0.0.json +71 -0
  99. package/src/cvcs/militaryBranch.v1.0.0.json +20 -20
  100. package/src/cvcs/militaryStatus.v1.0.0.json +20 -20
  101. package/src/cvcs/nameType.v1.0.0.json +40 -40
  102. package/src/cvcs/needsAssessmentChangeType.v1.0.0.json +134 -0
  103. package/src/cvcs/offenderStatus.v1.0.0.json +40 -40
  104. package/src/cvcs/offenderStatusFamily.v1.0.0.json +36 -36
  105. package/src/cvcs/poPetitionBasis.v1.0.0.json +96 -0
  106. package/src/cvcs/poStatus.v1.0.0.json +144 -0
  107. package/src/cvcs/poViolationStatus.v1.0.0.json +76 -0
  108. package/src/cvcs/programEnrollmentChangeType.v1.0.0.json +134 -0
  109. package/src/cvcs/provenanceSourceId.v1.0.0.json +134 -0
  110. package/src/cvcs/radiusBucket.v1.0.0.json +110 -0
  111. package/src/cvcs/recencyBand.v1.0.0.json +104 -39
  112. package/src/cvcs/referralEntityCategory.v1.0.0.json +40 -40
  113. package/src/cvcs/relationshipConcern.v1.0.0.json +114 -0
  114. package/src/cvcs/riskCategory.v1.0.0.json +134 -0
  115. package/src/cvcs/riskSeverityBand.v1.0.0.json +139 -0
  116. package/src/cvcs/roiMethod.v1.0.0.json +107 -0
  117. package/src/cvcs/roiScope.v1.0.0.json +296 -0
  118. package/src/cvcs/roiStatus.v1.0.0.json +106 -0
  119. package/src/cvcs/romanticRelationshipChangeType.v1.0.0.json +162 -0
  120. package/src/cvcs/serviceAudience.v1.0.0.json +96 -0
  121. package/src/cvcs/serviceCategories.v1.0.0.json +44 -44
  122. package/src/cvcs/serviceDeliveryChannel.v1.0.0.json +147 -0
  123. package/src/cvcs/serviceMechanisms.v1.0.0.json +36 -36
  124. package/src/cvcs/serviceStates.v1.0.0.json +55 -33
  125. package/src/cvcs/sessionNoteVisibility.v1.0.0.json +80 -0
  126. package/src/cvcs/sessionTemplate.v1.0.0.json +261 -0
  127. package/src/cvcs/sexProviderSubrole.v1.0.0.json +35 -28
  128. package/src/cvcs/smtType.v1.0.0.json +40 -40
  129. package/src/cvcs/sourceCategory.v1.1.0.json +8 -1
  130. package/src/cvcs/sourceInstrument.v1.0.0.json +458 -0
  131. package/src/cvcs/sourceSubtype.v1.1.0.json +36 -0
  132. package/src/cvcs/sourceSystem.v1.0.0.json +203 -0
  133. package/src/cvcs/specialNeedsDisabilities.v1.0.0.json +143 -0
  134. package/src/cvcs/suggestionSource.v1.0.0.json +71 -0
  135. package/src/cvcs/traffickingRelevantRole.v1.0.0.json +104 -0
  136. package/src/cvcs/userRoles.v1.0.0.json +203 -0
  137. package/src/cvcs/verificationMethod.v1.0.0.json +18 -0
  138. package/src/cvcs/victimAbuseTypes.v1.0.0.json +276 -0
  139. package/src/cvcs/victimStatusFamily.v1.0.0.json +40 -40
  140. package/src/cvcs/whyNots.v1.0.0.json +385 -0
  141. package/src/generated/cvc-enums.ts +1729 -7
  142. package/src/mongo/catalog.ts +65 -0
  143. package/src/mongo/contract.ts +157 -0
  144. package/src/mongo/index.ts +343 -0
  145. package/src/mongo/similarity.ts +133 -0
  146. package/src/mongo/uri.ts +53 -0
  147. package/src/services/cvcRegistryService.ts +1 -1
  148. package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-BCj1OWqL.d.cts} +8 -8
  149. package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-BCj1OWqL.d.ts} +8 -8
@@ -61,8 +61,10 @@ const SOT_SPECS: readonly SotSpec[] = [
61
61
  // Spec §8.3 — "Entries: 4" + 4 missingness = 8
62
62
  { file: "serviceMechanisms.v1.0.0.json", domain: "service_mechanisms", expectedCount: 8 },
63
63
  // Spec §8.2 — "Entries: 10" + 4 missingness = 14; +1 (`unable_other_reason`
64
- // additive per Thread Phase-0 SOT Block D) = 15.
65
- { file: "serviceStates.v1.0.0.json", domain: "service_states", expectedCount: 15 },
64
+ // additive per Thread Phase-0 SOT Block D) = 15; +2 PROVISIONAL attempt-reason
65
+ // buckets (`unable_to_provide_service_fit`, `unable_to_provide_access_barrier`)
66
+ // for the Thread th-epqet.3 7-bucket lifecycle = 17.
67
+ { file: "serviceStates.v1.0.0.json", domain: "service_states", expectedCount: 17 },
66
68
  // Spec §8.1 — "Entries: 147" + 4 missingness = 151
67
69
  { file: "serviceCategories.v1.0.0.json", domain: "service_categories", expectedCount: 151 },
68
70
  // CVC-69 — 4 group parents + 11 role leaves + 4 missingness = 19
@@ -225,12 +227,13 @@ const SOT_SPECS: readonly SotSpec[] = [
225
227
  domain: "contact_safety_status",
226
228
  expectedCount: 6,
227
229
  },
228
- // CVC-180 — 7 flat Level-1 Census/ACS attainment entries + 1 missingness
229
- // root + 4 canonical missingness children (includes PNA) = 12.
230
+ // CVC-180 — 7 flat Level-1 Census/ACS attainment entries + 1 additive
231
+ // `trade_vocational` non-degree credential leaf (180-008) + 1 missingness
232
+ // root + 4 canonical missingness children (includes PNA) = 13.
230
233
  {
231
234
  file: "highestEducationLevelCompleted.v1.0.0.json",
232
235
  domain: "highest_education_level_completed",
233
- expectedCount: 12,
236
+ expectedCount: 13,
234
237
  },
235
238
  // CVC-185 — 4 flat preferred-contact-method entries. No missingness entries
236
239
  // (variant 0 per Notion: absence encodes "no preference") = 4.
@@ -363,11 +366,14 @@ const SOT_SPECS: readonly SotSpec[] = [
363
366
  domain: "referral_entity_category",
364
367
  expectedCount: 43,
365
368
  },
366
- // CVC-171 — 5 L1 type groups + 28 L2 source codes + 5 missingness = 38.
369
+ // CVC-171 — 5 L1 type groups + 30 L2 source codes + 1 additive L1
370
+ // `victim_compensation` group leaf (171-006) + 5 missingness = 41.
371
+ // Additive orphan leaves: informal_income (171-001-002) under earned_income
372
+ // and family_friend_support (171-004-003) under transfer_support.
367
373
  {
368
374
  file: "incomeBenefitsSources.v1.0.0.json",
369
375
  domain: "income_benefits_sources",
370
- expectedCount: 38,
376
+ expectedCount: 41,
371
377
  },
372
378
  // CVC-175 — 8 flat Level-1 enrollment lifecycle statuses + 1 missingness
373
379
  // root + 3 canonical missingness children = 12.
@@ -410,7 +416,7 @@ const SOT_SPECS: readonly SotSpec[] = [
410
416
  {
411
417
  file: "sourceSubtype.v1.1.0.json",
412
418
  domain: "source_subtype",
413
- expectedCount: 35,
419
+ expectedCount: 39,
414
420
  },
415
421
  // CVC-139 — support_strength (formerly evidence_tier). 7 substantive Level-1
416
422
  // entries + 1 missingness root + 3 canonical missingness children = 11.
@@ -448,7 +454,7 @@ const SOT_SPECS: readonly SotSpec[] = [
448
454
  {
449
455
  file: "verificationMethod.v1.0.0.json",
450
456
  domain: "verification_method",
451
- expectedCount: 9,
457
+ expectedCount: 11,
452
458
  },
453
459
  // CVC-144 — quality_flags. 5 substantive Level-1 entries
454
460
  // (circular_model_label_risk, data_redacted, inconsistent, self_report_only,
@@ -486,7 +492,7 @@ const SOT_SPECS: readonly SotSpec[] = [
486
492
  { file: "announcementResponseType.v1.0.0.json", domain: "announcement_response_type", expectedCount: 8 },
487
493
  { file: "basisQuickPicks.v1.0.0.json", domain: "basis_quick_picks", expectedCount: 11 },
488
494
  { file: "checkInActivity.v1.0.0.json", domain: "check_in_activity", expectedCount: 24 },
489
- { file: "checkInPhase.v1.0.0.json", domain: "check_in_phase", expectedCount: 15 },
495
+ { file: "checkInPhase.v1.1.0.json", domain: "check_in_phase", expectedCount: 17 },
490
496
  { file: "childBehavioralConcerns.v1.0.0.json", domain: "child_behavioral_concerns", expectedCount: 16 },
491
497
  { file: "childCustodyArrangement.v1.0.0.json", domain: "child_custody_arrangement", expectedCount: 19 },
492
498
  { file: "collectionContext.v1.0.0.json", domain: "collection_context", expectedCount: 8 },
@@ -511,7 +517,7 @@ const SOT_SPECS: readonly SotSpec[] = [
511
517
  { file: "hopeScaleCaptureContext.v1.0.0.json", domain: "hope_scale_capture_context", expectedCount: 11 },
512
518
  { file: "hopeScaleResponseOptions.v1.0.0.json", domain: "hope_scale_response_options", expectedCount: 12 },
513
519
  { file: "hopeScaleTier.v1.0.0.json", domain: "hope_scale_tier", expectedCount: 8 },
514
- { file: "identificationStatus.v1.0.0.json", domain: "identification_status", expectedCount: 7 },
520
+ { file: "identificationStatus.v1.0.0.json", domain: "identification_status", expectedCount: 9 },
515
521
  { file: "investigativeRequestType.v1.0.0.json", domain: "investigative_request_type", expectedCount: 8 },
516
522
  { file: "languages.v1.0.0.json", domain: "languages", expectedCount: 212 },
517
523
  { file: "leReportStatus.v1.0.0.json", domain: "le_report_status", expectedCount: 8 },
@@ -543,6 +549,111 @@ const SOT_SPECS: readonly SotSpec[] = [
543
549
  { file: "threadType.v1.0.0.json", domain: "thread_type", expectedCount: 9 },
544
550
  { file: "verificationStatus.v1.0.0.json", domain: "verification_status", expectedCount: 7 },
545
551
  { file: "visaType.v1.0.0.json", domain: "visa_type", expectedCount: 40 },
552
+ // ─── Net-new additive domains (CVC author missing-domains batch) ───
553
+ // CVC-192 living_situation — 18 HMIS living-situation values + 1
554
+ // missingness root + 3 canonical missingness children = 22.
555
+ { file: "livingSituation.v1.0.0.json", domain: "living_situation", expectedCount: 22 },
556
+ // CVC-45 service_audience — 5 audience values (primary_victim,
557
+ // eligible_family_member, third_party, offender, personnel) + 1
558
+ // missingness root + 3 canonical missingness children = 9.
559
+ { file: "serviceAudience.v1.0.0.json", domain: "service_audience", expectedCount: 9 },
560
+ // CVC-129 hmis_relationship_to_hoh — 5 HMIS 3.15 relationship codes + 1
561
+ // missingness root + 3 canonical missingness children = 9. Entries carry
562
+ // an `hmisCode` passthrough field (HMIS numerics 1/2/3/4/5/99).
563
+ { file: "hmisRelationshipToHoh.v1.0.0.json", domain: "hmis_relationship_to_hoh", expectedCount: 9 },
564
+ // CVC-73 victim_abuse_types — 25 non-HT VOCA abuse types + 1 missingness
565
+ // root + 3 canonical missingness children = 29.
566
+ { file: "victimAbuseTypes.v1.0.0.json", domain: "victim_abuse_types", expectedCount: 29 },
567
+ // CVC-72 ht_type — 4 substantive types (sex, labor, sex_and_labor, none;
568
+ // `none` = negative determination, canonical per Crysta directive 2026-05-27)
569
+ // + 1 missingness root + 3 canonical missingness children = 8.
570
+ { file: "htType.v1.0.0.json", domain: "ht_type", expectedCount: 8 },
571
+ // PROVISIONAL CVC-231 relationship_concern — 7 TRA relationship-concern
572
+ // codes + 1 missingness root + 3 canonical missingness children = 11.
573
+ // CVC number is PROVISIONAL pending codebook-session ratification.
574
+ { file: "relationshipConcern.v1.0.0.json", domain: "relationship_concern", expectedCount: 11 },
575
+ // CVC-137 recency_band — the CANONICAL 8-band key system adopted in 0.8.13
576
+ // (w3m, m3_6, m6_12, y1p, y1_3, y3_10, y10p, ylt3 — the lowercase
577
+ // transliterations of W3M/M3_6/M6_12/Y1P/Y1_3/Y3_10/Y10P/YLT3, carried
578
+ // verbatim in `canonicalCode`) + 1 missingness root + 3 canonical missingness
579
+ // children = 12. Replaces the 6 semantic slugs shipped before 0.8.13; all 6
580
+ // map 1:1 onto a canonical band, and y1_3 / ylt3 are net-new.
581
+ { file: "recencyBand.v1.0.0.json", domain: "recency_band", expectedCount: 12 },
582
+ // PROVISIONAL CVC-233 housing_subsidy_types — 12 HMIS-aligned subsidy types
583
+ // (housing_choice_voucher, public_housing, project_based_rental_assistance,
584
+ // permanent_supportive_housing, rapid_rehousing_assistance,
585
+ // other_housing_subsidy, no_subsidy, plus additive va_supportive_housing,
586
+ // grant_per_diem_transition_in_place, housing_stability_voucher,
587
+ // family_unification_program, foster_youth_to_independence) + 1 missingness
588
+ // root + 3 canonical missingness children = 16. CVC number is PROVISIONAL
589
+ // pending ratification.
590
+ { file: "housingSubsidyTypes.v1.0.0.json", domain: "housing_subsidy_types", expectedCount: 16 },
591
+ { file: "assertionDomain.v1.1.0.json", domain: "assertion_domain", expectedCount: 68 },
592
+ { file: "activityType.v1.0.0.json", domain: "activity_type", expectedCount: 14 },
593
+ { file: "provenanceSourceId.v1.0.0.json", domain: "provenance_source_id", expectedCount: 13 },
594
+ { file: "radiusBucket.v1.0.0.json", domain: "radius_bucket", expectedCount: 9 },
595
+ { file: "contactLinkType.v1.0.0.json", domain: "contact_link_type", expectedCount: 8 },
596
+ { file: "suggestionSource.v1.0.0.json", domain: "suggestion_source", expectedCount: 6 },
597
+ { file: "roiMethod.v1.0.0.json", domain: "roi_method", expectedCount: 10 },
598
+ { file: "sessionNoteVisibility.v1.0.0.json", domain: "session_note_visibility", expectedCount: 7 },
599
+ // DRAFT-TEMPORARY prototype direct-imports (0.8.9; provisional 900+ ids; pending Notion ratification).
600
+ { file: "specialNeedsDisabilities.v1.0.0.json", domain: "special_needs_disabilities", expectedCount: 14 },
601
+ { file: "hivStatus.v1.0.0.json", domain: "hiv_status", expectedCount: 6 },
602
+ { file: "mentalHealthStatus.v1.0.0.json", domain: "mental_health_status", expectedCount: 6 },
603
+ { file: "childChangeType.v1.0.0.json", domain: "child_change_type", expectedCount: 15 },
604
+ { file: "immigrationLegalStatusChangeType.v1.0.0.json", domain: "immigration_legal_status_change_type", expectedCount: 14 },
605
+ { file: "programEnrollmentChangeType.v1.0.0.json", domain: "program_enrollment_change_type", expectedCount: 13 },
606
+ { file: "romanticRelationshipChangeType.v1.0.0.json", domain: "romantic_relationship_change_type", expectedCount: 16 },
607
+ // ─── Risk taxonomy (names-only projection of the @hti/scoring SOT) ───
608
+ // 9 categories (`I`..`IX`, tree[].kind === "category") + 4 missingness = 13
609
+ { file: "riskCategory.v1.0.0.json", domain: "risk_category", expectedCount: 13 },
610
+ // 5 bands (severe/elevated/review/watch/stable — `stable` is the cutoff-less
611
+ // fall-through floor, so the count is 5, NOT the 4 numeric BandCutoffs
612
+ // fields) + 4 missingness = 9
613
+ // ─── 0.8.12 vocabulary batch ───
614
+ // CANONICAL Notion CVC-133 `core - functions` (verified v1.0): 77 functions
615
+ // + 4 missingness = 81
616
+ { file: "coreFunctions.v1.0.0.json", domain: "core_functions", expectedCount: 81 },
617
+ // 9 fine-grained Needs-Assessment CAR change types (@pave/domain
618
+ // NEEDS_ASSESSMENT_CHANGE_TYPES, casing normalized to lower_snake) + 4 = 13
619
+ { file: "needsAssessmentChangeType.v1.0.0.json", domain: "needs_assessment_change_type", expectedCount: 13 },
620
+ // 15 ROI scope items (@pave/domain ROI_SCOPE_KEYS — the PAVE-seed-attested
621
+ // subset of the prototype's 27-item UI superset) + 4 = 19
622
+ { file: "roiScope.v1.0.0.json", domain: "roi_scope", expectedCount: 31 },
623
+ // 5 stored-ROI lifecycle states (@pave/domain ROI_STATUSES) + 4 = 9
624
+ { file: "roiStatus.v1.0.0.json", domain: "roi_status", expectedCount: 9 },
625
+ // 2 HMIS FY2026 "P2 Referrals Provided" outcomes (attained / not_attained)
626
+ // + 4 = 6. The not-attained REASON is a separate axis, not folded in here.
627
+ { file: "coreReferralOutcome.v1.0.0.json", domain: "core_referral_outcome", expectedCount: 6 },
628
+ // ─── 0.8.13 canonical CVC batch ───
629
+ { file: "coreDhState.v1.0.0.json", domain: "dh_state", expectedCount: 9 },
630
+ { file: "coreIndicators.v1.0.0.json", domain: "core_indicators", expectedCount: 214 },
631
+ { file: "riskSeverityBand.v1.0.0.json", domain: "risk_severity_band", expectedCount: 9 },
632
+ { file: "adminRoles.v1.0.0.json", domain: "admin_roles", expectedCount: 14 },
633
+ { file: "userRoles.v1.0.0.json", domain: "user_roles", expectedCount: 19 },
634
+ { file: "hmisCurrentLivingSituation.v1.0.0.json", domain: "hmis_current_living_situation", expectedCount: 33 },
635
+ { file: "juvenileJusticeEpisodeType.v1.0.0.json", domain: "juvenile_justice_episode_type", expectedCount: 9 },
636
+ { file: "incarcerationEpisodeType.v1.0.0.json", domain: "incarceration_episode_type", expectedCount: 9 },
637
+ { file: "exploitationType.v1.0.0.json", domain: "exploitation_type", expectedCount: 9 },
638
+ { file: "sourceSystem.v1.0.0.json", domain: "source_system", expectedCount: 19 },
639
+ { file: "sourceInstrument.v1.0.0.json", domain: "source_instrument", expectedCount: 41 },
640
+ { file: "poPetitionBasis.v1.0.0.json", domain: "po_petition_basis", expectedCount: 8 },
641
+ { file: "poStatus.v1.0.0.json", domain: "po_status", expectedCount: 12 },
642
+ { file: "poViolationStatus.v1.0.0.json", domain: "po_violation_status", expectedCount: 6 },
643
+ { file: "sessionTemplate.v1.0.0.json", domain: "session_template", expectedCount: 23 },
644
+ { file: "serviceDeliveryChannel.v1.0.0.json", domain: "service_delivery_channel", expectedCount: 11 },
645
+ { file: "whyNots.v1.0.0.json", domain: "why_nots", expectedCount: 32 },
646
+ // CVC-182 — 249 countries (codes MINTED; upstream Code column is blank) + 1
647
+ // missingness root + 3 canonical missingness children (Unknown / Declined to
648
+ // asnwer / Not collected, carried verbatim from the codebook) = 253.
649
+ { file: "citizenship.v1.0.0.json", domain: "citizenship", expectedCount: 253 },
650
+ // CVC-235 — 4 L1 trafficking-relevant roles + 1 missingness root + 3 canonical
651
+ // missingness children = 8.
652
+ {
653
+ file: "traffickingRelevantRole.v1.0.0.json",
654
+ domain: "trafficking_relevant_role",
655
+ expectedCount: 8,
656
+ },
546
657
  ] as const;
547
658
 
548
659
  // ─── Helpers ────────────────────────────────────────────────────────────────
@@ -111,7 +111,7 @@ const SOT_FILES: readonly SotFile[] = [
111
111
  { file: "announcementResponseType.v1.0.0.json", expectedDomain: "announcement_response_type" },
112
112
  { file: "basisQuickPicks.v1.0.0.json", expectedDomain: "basis_quick_picks" },
113
113
  { file: "checkInActivity.v1.0.0.json", expectedDomain: "check_in_activity" },
114
- { file: "checkInPhase.v1.0.0.json", expectedDomain: "check_in_phase" },
114
+ { file: "checkInPhase.v1.1.0.json", expectedDomain: "check_in_phase" },
115
115
  { file: "childBehavioralConcerns.v1.0.0.json", expectedDomain: "child_behavioral_concerns" },
116
116
  { file: "childCustodyArrangement.v1.0.0.json", expectedDomain: "child_custody_arrangement" },
117
117
  { file: "collectionContext.v1.0.0.json", expectedDomain: "collection_context" },
@@ -168,6 +168,61 @@ const SOT_FILES: readonly SotFile[] = [
168
168
  { file: "threadType.v1.0.0.json", expectedDomain: "thread_type" },
169
169
  { file: "verificationStatus.v1.0.0.json", expectedDomain: "verification_status" },
170
170
  { file: "visaType.v1.0.0.json", expectedDomain: "visa_type" },
171
+ // ─── Net-new additive domains (CVC author missing-domains batch) ───
172
+ { file: "livingSituation.v1.0.0.json", expectedDomain: "living_situation" },
173
+ { file: "serviceAudience.v1.0.0.json", expectedDomain: "service_audience" },
174
+ { file: "hmisRelationshipToHoh.v1.0.0.json", expectedDomain: "hmis_relationship_to_hoh" },
175
+ { file: "victimAbuseTypes.v1.0.0.json", expectedDomain: "victim_abuse_types" },
176
+ { file: "htType.v1.0.0.json", expectedDomain: "ht_type" },
177
+ { file: "relationshipConcern.v1.0.0.json", expectedDomain: "relationship_concern" },
178
+ { file: "recencyBand.v1.0.0.json", expectedDomain: "recency_band" },
179
+ { file: "housingSubsidyTypes.v1.0.0.json", expectedDomain: "housing_subsidy_types" },
180
+ // ─── Risk taxonomy (names-only projection of the @hti/scoring SOT) ───
181
+ { file: "riskCategory.v1.0.0.json", expectedDomain: "risk_category" },
182
+ // ─── 0.8.12 vocabulary batch ───
183
+ { file: "coreFunctions.v1.0.0.json", expectedDomain: "core_functions" },
184
+ { file: "needsAssessmentChangeType.v1.0.0.json", expectedDomain: "needs_assessment_change_type" },
185
+ { file: "roiScope.v1.0.0.json", expectedDomain: "roi_scope" },
186
+ { file: "roiStatus.v1.0.0.json", expectedDomain: "roi_status" },
187
+ { file: "coreReferralOutcome.v1.0.0.json", expectedDomain: "core_referral_outcome" },
188
+ { file: "assertionDomain.v1.1.0.json", expectedDomain: "assertion_domain" },
189
+ // ─── 0.8.13 canonical CVC batch ───
190
+ { file: "coreDhState.v1.0.0.json", expectedDomain: "dh_state" },
191
+ { file: "coreIndicators.v1.0.0.json", expectedDomain: "core_indicators" },
192
+ { file: "riskSeverityBand.v1.0.0.json", expectedDomain: "risk_severity_band" },
193
+ { file: "adminRoles.v1.0.0.json", expectedDomain: "admin_roles" },
194
+ { file: "userRoles.v1.0.0.json", expectedDomain: "user_roles" },
195
+ { file: "hmisCurrentLivingSituation.v1.0.0.json", expectedDomain: "hmis_current_living_situation" },
196
+ { file: "juvenileJusticeEpisodeType.v1.0.0.json", expectedDomain: "juvenile_justice_episode_type" },
197
+ { file: "incarcerationEpisodeType.v1.0.0.json", expectedDomain: "incarceration_episode_type" },
198
+ { file: "exploitationType.v1.0.0.json", expectedDomain: "exploitation_type" },
199
+ { file: "sourceSystem.v1.0.0.json", expectedDomain: "source_system" },
200
+ { file: "sourceInstrument.v1.0.0.json", expectedDomain: "source_instrument" },
201
+ { file: "poPetitionBasis.v1.0.0.json", expectedDomain: "po_petition_basis" },
202
+ { file: "poStatus.v1.0.0.json", expectedDomain: "po_status" },
203
+ { file: "poViolationStatus.v1.0.0.json", expectedDomain: "po_violation_status" },
204
+ { file: "sessionTemplate.v1.0.0.json", expectedDomain: "session_template" },
205
+ { file: "serviceDeliveryChannel.v1.0.0.json", expectedDomain: "service_delivery_channel" },
206
+ { file: "whyNots.v1.0.0.json", expectedDomain: "why_nots" },
207
+ // ─── 0.8.13 held-item resolutions (Job A) ───
208
+ { file: "citizenship.v1.0.0.json", expectedDomain: "citizenship" },
209
+ { file: "traffickingRelevantRole.v1.0.0.json", expectedDomain: "trafficking_relevant_role" },
210
+ // ─── Domains the hand-maintained list previously OMITTED (found by the
211
+ // CVC drift gate, which scans the directory instead of a list). ───
212
+ { file: "activityType.v1.0.0.json", expectedDomain: "activity_type" },
213
+ { file: "childChangeType.v1.0.0.json", expectedDomain: "child_change_type" },
214
+ { file: "contactLinkType.v1.0.0.json", expectedDomain: "contact_link_type" },
215
+ { file: "hivStatus.v1.0.0.json", expectedDomain: "hiv_status" },
216
+ { file: "immigrationLegalStatusChangeType.v1.0.0.json", expectedDomain: "immigration_legal_status_change_type" },
217
+ { file: "mentalHealthStatus.v1.0.0.json", expectedDomain: "mental_health_status" },
218
+ { file: "programEnrollmentChangeType.v1.0.0.json", expectedDomain: "program_enrollment_change_type" },
219
+ { file: "provenanceSourceId.v1.0.0.json", expectedDomain: "provenance_source_id" },
220
+ { file: "radiusBucket.v1.0.0.json", expectedDomain: "radius_bucket" },
221
+ { file: "roiMethod.v1.0.0.json", expectedDomain: "roi_method" },
222
+ { file: "romanticRelationshipChangeType.v1.0.0.json", expectedDomain: "romantic_relationship_change_type" },
223
+ { file: "sessionNoteVisibility.v1.0.0.json", expectedDomain: "session_note_visibility" },
224
+ { file: "specialNeedsDisabilities.v1.0.0.json", expectedDomain: "special_needs_disabilities" },
225
+ { file: "suggestionSource.v1.0.0.json", expectedDomain: "suggestion_source" },
171
226
  ] as const;
172
227
 
173
228
  function loadSot(file: string): unknown {