@htilabs/platform-common-models 0.13.1 → 0.15.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 (56) hide show
  1. package/dist/constants/index.cjs +33 -0
  2. package/dist/constants/index.cjs.map +1 -1
  3. package/dist/constants/index.d.cts +1 -1
  4. package/dist/constants/index.d.ts +1 -1
  5. package/dist/constants/index.js +29 -0
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-DaDrEuTa.d.cts} +44 -44
  8. package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-DaDrEuTa.d.ts} +44 -44
  9. package/dist/cvcs/index.cjs +212 -38
  10. package/dist/cvcs/index.cjs.map +1 -1
  11. package/dist/cvcs/index.d.cts +224 -41
  12. package/dist/cvcs/index.d.ts +224 -41
  13. package/dist/cvcs/index.js +212 -38
  14. package/dist/cvcs/index.js.map +1 -1
  15. package/dist/enums/index.cjs +8 -1
  16. package/dist/enums/index.cjs.map +1 -1
  17. package/dist/enums/index.d.cts +11 -4
  18. package/dist/enums/index.d.ts +11 -4
  19. package/dist/enums/index.js +8 -1
  20. package/dist/enums/index.js.map +1 -1
  21. package/dist/{index-CDoqrfc1.d.ts → index-C0J3f169.d.ts} +1 -1
  22. package/dist/{index-Zu_mOJRn.d.cts → index-EPjPjR0z.d.cts} +1 -1
  23. package/dist/index.cjs +253 -39
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +249 -39
  28. package/dist/index.js.map +1 -1
  29. package/dist/models/index.d.cts +2 -2
  30. package/dist/models/index.d.ts +2 -2
  31. package/dist/{platform-auth-64U8jjuw.d.cts → platform-auth-CrF5U_JH.d.cts} +43 -2
  32. package/dist/{platform-auth-64U8jjuw.d.ts → platform-auth-CrF5U_JH.d.ts} +43 -2
  33. package/dist/schemas/index.cjs +234 -0
  34. package/dist/schemas/index.cjs.map +1 -1
  35. package/dist/schemas/index.d.cts +35 -35
  36. package/dist/schemas/index.d.ts +35 -35
  37. package/dist/schemas/index.js +234 -0
  38. package/dist/schemas/index.js.map +1 -1
  39. package/dist/types/index.d.cts +2 -2
  40. package/dist/types/index.d.ts +2 -2
  41. package/package.json +27 -26
  42. package/src/__sot__/coreIndicatorFields.ts +4 -4
  43. package/src/__sot__/coreIndicators.pin.json +62 -2
  44. package/src/__sot__/scoringEmits.pin.json +9 -4
  45. package/src/__tests__/__snapshots__/cvc-sot.snap +4 -4
  46. package/src/__tests__/core-information-scope-invariant.test.ts +204 -15
  47. package/src/__tests__/cvc-136-scoring-invariant.test.ts +89 -28
  48. package/src/__tests__/cvc-drift-gate.test.ts +149 -27
  49. package/src/__tests__/cvc-sot-snapshot.test.ts +14 -8
  50. package/src/__tests__/cvc-structural.test.ts +2 -2
  51. package/src/__tests__/location-type-routing-invariant.test.ts +1 -1
  52. package/src/constants/ic.ts +163 -3
  53. package/src/cvcs/{coreIndicators.v1.0.0.json → coreIndicators.v1.1.0.json} +93 -10
  54. package/src/cvcs/{coreInformationScope.v1.0.0.json → coreInformationScope.v1.1.0.json} +113 -22
  55. package/src/cvcs/index.ts +2 -2
  56. package/src/generated/cvc-enums.ts +11 -4
package/dist/index.js CHANGED
@@ -4009,7 +4009,9 @@ var CVC_136_CORE_INDICATOR_VALUES = [
4009
4009
  "denied_basic_needs",
4010
4010
  "depends_on_employer_for_immigration_status",
4011
4011
  "depends_on_spouse_or_family_for_immigration_status",
4012
+ "disclosed_fear_at_intake",
4012
4013
  "does_not_control_finances_or_earnings",
4014
+ "does_not_control_housing",
4013
4015
  "does_not_control_identity_documents",
4014
4016
  "elevated_lethality_risk_signal",
4015
4017
  "employer_keeps_pay_or_pays_less_than_expected",
@@ -4071,6 +4073,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
4071
4073
  "new_to_commercial_sex_industry",
4072
4074
  "non_consensual_photography_or_recording",
4073
4075
  "not_in_control_of_immigration_documentation",
4076
+ "oppressive_home_life",
4074
4077
  "other_instability_or_vulnerability_factors",
4075
4078
  "owes_money_and_cannot_pay_off",
4076
4079
  "paid_or_owes_fee_to_arrange_travel_to_us",
@@ -4090,6 +4093,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
4090
4093
  "promise_of_work_different_than_current_work",
4091
4094
  "received_things_of_value_while_missing_from_care",
4092
4095
  "recent_le_engagement",
4096
+ "recent_separation",
4093
4097
  "recruited_by_third_party_into_cs_industry",
4094
4098
  "regular_alcohol_use",
4095
4099
  "relies_on_temporary_resources_for_basic_needs",
@@ -4137,6 +4141,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
4137
4141
  "suicidal_ideation_history",
4138
4142
  "suicidal_ideation_recent",
4139
4143
  "suicide_attempt_history",
4144
+ "survival_sex",
4140
4145
  "third_party_advertises_or_posts_for_person",
4141
4146
  "third_party_arranged_commercial_sex_acts",
4142
4147
  "threats_by_employer_or_partner",
@@ -4152,6 +4157,7 @@ var CVC_136_CORE_INDICATOR_VALUES = [
4152
4157
  "trauma_perpetrator_is_current_manager",
4153
4158
  "travel_organized_by_third_party",
4154
4159
  "tricked_or_pressured_into_unwanted_acts",
4160
+ "unable_to_speak_freely",
4155
4161
  "under_18_advertised_age",
4156
4162
  "under_18_appears_underage",
4157
4163
  "under_18_known_age",
@@ -4227,7 +4233,9 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4227
4233
  "denied_basic_needs": "Denied basic needs (food, water, sleep, medical care)",
4228
4234
  "depends_on_employer_for_immigration_status": "Depends on employer for immigration status (tied visa / living with employer)",
4229
4235
  "depends_on_spouse_or_family_for_immigration_status": "Depends on spouse / family member for immigration status (tied family visa)",
4236
+ "disclosed_fear_at_intake": "Disclosed fear of a specific person",
4230
4237
  "does_not_control_finances_or_earnings": "Limited independence: does not control finances or earnings",
4238
+ "does_not_control_housing": "Limited independence: does not control where they live",
4231
4239
  "does_not_control_identity_documents": "Limited independence: does not control identity documents",
4232
4240
  "elevated_lethality_risk_signal": "Elevated lethality risk",
4233
4241
  "employer_keeps_pay_or_pays_less_than_expected": "Employer keeps portion of pay or pays less than expected",
@@ -4289,6 +4297,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4289
4297
  "new_to_commercial_sex_industry": "New to commercial sex industry (recent entry / early experience)",
4290
4298
  "non_consensual_photography_or_recording": "Non-consensual photography or recording",
4291
4299
  "not_in_control_of_immigration_documentation": "Not in control of immigration documentation",
4300
+ "oppressive_home_life": "Oppressive, unsafe, or unstable home life",
4292
4301
  "other_instability_or_vulnerability_factors": "Other instability/vulnerability factors (general)",
4293
4302
  "owes_money_and_cannot_pay_off": "Unusual work circumstances: owes money and cannot pay it off (debt pressure)",
4294
4303
  "paid_or_owes_fee_to_arrange_travel_to_us": "Paid or owes fee to arrange travel to U.S. (migration debt)",
@@ -4308,6 +4317,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4308
4317
  "promise_of_work_different_than_current_work": "Promise of work differed from current work (migration deception)",
4309
4318
  "received_things_of_value_while_missing_from_care": "Received money, drugs, or other things of value from someone while missing from care (youth)",
4310
4319
  "recent_le_engagement": "Recent law enforcement engagement",
4320
+ "recent_separation": "Recent separation from abusive partner",
4311
4321
  "recruited_by_third_party_into_cs_industry": "Recruited by another person/entity into commercial sex industry",
4312
4322
  "regular_alcohol_use": "Regular alcohol use",
4313
4323
  "relies_on_temporary_resources_for_basic_needs": "Does not consistently meet basic needs / relies on temporary resources",
@@ -4355,6 +4365,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4355
4365
  "suicidal_ideation_history": "Suicidal ideation (past)",
4356
4366
  "suicidal_ideation_recent": "Suicidal ideation (recent)",
4357
4367
  "suicide_attempt_history": "Past suicide attempt disclosed",
4368
+ "survival_sex": "Survival sex (sex exchanged to meet basic needs)",
4358
4369
  "third_party_advertises_or_posts_for_person": "Third party posts or manages the person's commercial-sex ads",
4359
4370
  "third_party_arranged_commercial_sex_acts": "Someone else arranged commercial sex acts (posting, scheduling, managing)",
4360
4371
  "threats_by_employer_or_partner": "Threats by employer/partner (general)",
@@ -4370,6 +4381,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4370
4381
  "trauma_perpetrator_is_current_manager": "Trauma perpetrator is a current manager / facilitator (trauma-bonded control)",
4371
4382
  "travel_organized_by_third_party": "Travel organized by a third party (sex provider does not control own movement)",
4372
4383
  "tricked_or_pressured_into_unwanted_acts": "Tricked or pressured into unwanted acts or activities (generic coercion)",
4384
+ "unable_to_speak_freely": "Unable to speak freely",
4373
4385
  "under_18_advertised_age": "Under 18 (ad-derived / advertised age)",
4374
4386
  "under_18_appears_underage": "Under 18 (appears underage; investigator assessment)",
4375
4387
  "under_18_known_age": "Under 18 (known age)",
@@ -4389,6 +4401,19 @@ var CVC_136_CORE_INDICATOR_LABELS = {
4389
4401
  "works_for_little_or_no_pay": "Works for little or no pay",
4390
4402
  "youth_watched_filmed_or_photographed_sexually_explicit": "Watched, filmed, or photographed in sexually explicit manner (youth)"
4391
4403
  };
4404
+ var CVC_136_CORE_INDICATOR_SUPERSEDED_BY = {
4405
+ coercive_debt_pressure_youth: "coercive_debt_pressure",
4406
+ debt_terms_deceptive_youth: "debt_terms_deceptive"
4407
+ };
4408
+ function isDeprecatedCoreIndicator(code) {
4409
+ return typeof code === "string" && Object.prototype.hasOwnProperty.call(CVC_136_CORE_INDICATOR_SUPERSEDED_BY, code);
4410
+ }
4411
+ function canonicalCoreIndicator(code) {
4412
+ return isDeprecatedCoreIndicator(code) ? CVC_136_CORE_INDICATOR_SUPERSEDED_BY[code] : code;
4413
+ }
4414
+ var ACTIVE_CVC_136_CORE_INDICATOR_VALUES = CVC_136_CORE_INDICATOR_VALUES.filter(
4415
+ (v) => !isDeprecatedCoreIndicator(v)
4416
+ );
4392
4417
  var CVC_67_HMIS_SEX = {
4393
4418
  MALE: "male",
4394
4419
  FEMALE: "female",
@@ -10033,6 +10058,7 @@ var CoreInformationScopeKeys = {
10033
10058
  screen_notes: "236-005-001-000-000-000-000",
10034
10059
  case_notes: "236-005-002-000-000-000-000",
10035
10060
  background: "236-005-003-000-000-000-000",
10061
+ session_summary: "236-005-004-000-000-000-000",
10036
10062
  health_accommodation: "236-006-000-000-000-000-000",
10037
10063
  accommodation_needs: "236-006-001-000-000-000-000",
10038
10064
  disability_subtypes: "236-006-002-000-000-000-000",
@@ -10348,7 +10374,13 @@ var CoreIndicatorKeys = {
10348
10374
  sexualized_content_in_person_performance_activity: "136-213-000-000-000-000-000",
10349
10375
  sexualized_content_online_performance_activity: "136-214-000-000-000-000-000",
10350
10376
  trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000",
10351
- active_protective_order: "136-216-000-000-000-000-000"
10377
+ active_protective_order: "136-216-000-000-000-000-000",
10378
+ disclosed_fear_at_intake: "136-217-000-000-000-000-000",
10379
+ does_not_control_housing: "136-218-000-000-000-000-000",
10380
+ oppressive_home_life: "136-219-000-000-000-000-000",
10381
+ recent_separation: "136-220-000-000-000-000-000",
10382
+ survival_sex: "136-221-000-000-000-000-000",
10383
+ unable_to_speak_freely: "136-222-000-000-000-000-000"
10352
10384
  };
10353
10385
  var RiskIdentificationMilestoneKeys = {
10354
10386
  missingness_root: "267-000-000-000-000-000-000",
@@ -38957,17 +38989,101 @@ var needsAssessmentChangeType_v1_0_0_default = {
38957
38989
  ]
38958
38990
  };
38959
38991
 
38960
- // src/cvcs/coreInformationScope.v1.0.0.json
38961
- var coreInformationScope_v1_0_0_default = {
38992
+ // src/cvcs/coreInformationScope.v1.1.0.json
38993
+ var coreInformationScope_v1_1_0_default = {
38962
38994
  domain: "core_information_scope",
38963
38995
  name: "Core Information Scope",
38964
- version: "1.0.0",
38965
- _status: "DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories / 56 units. TWO GRAINS, deliberately modelled as hierarchy: L1 categories are the POLICY grain and are NOT selectable; L2 units are the AUTHORIZATION grain and are what an ROI or a share actually authorizes. This is the axis the sibling `roi_scope` domain deliberately omits \u2014 `roi_scope` is the flat item vocabulary, and its 27 substantive keys are a strict SUBSET of the 56 units here, with no renames and no collisions. That subset relationship is what makes adopting this domain additive: every stored ROI keeps its exact recorded meaning. `safe_locations` is CANON since CVC236-AUDIT R1 (Crysta, 2026-09-08): id and label ratified and minted in the Notion codebook; the former PROVISIONAL marker is retired. PENDING canonical Notion authoring + steward ratification.",
38966
- _source: "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 55088d44 (CVC-236 v2, restructured 2026-08-14, amended 2026-10-01; read from 46a60114; structural columns cross-checked against htilabstech/prototype/Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core-information_scope \u2014 codebook.csv @ 55088d44)",
38996
+ version: "1.1.0",
38997
+ _status: 'DRAFT: canonical number 236, self-declared by the source YAML (`cvc_id: CVC-236`); CVC_INDEX.md carries no row for it yet, so the drift gate classifies it INDEX_ABSENT. Sourced from canonical CVC-236 `core_information_scope` v2 (authored 2026-08-13, restructured 2026-08-14): 12 categories / 55 live units + 2 retired tombstones. TWO GRAINS, deliberately modelled as hierarchy: L1 categories are the POLICY grain and are NOT selectable; L2 units are the AUTHORIZATION grain and are what an ROI or a share actually authorizes. This is the axis the sibling `roi_scope` domain deliberately omits \u2014 `roi_scope` is the flat item vocabulary, and every one of its 27 substantive keys resolves here, spelled identically, with no renames and no collisions. That is what makes adopting this domain a migration rather than a re-consent: a stored ROI never WIDENS. RETIRED TOMBSTONES: `screen_notes` (236-005-001, retired 2026-10-05, Narrative notes, signed Spec v2 rule 5); `background` (236-005-003, retired 2026-10-05, Narrative notes, signed Spec v2 rule 5). Each keeps its published code (never reused), is `selectable: false` + `retired: true`, and includes nothing: a stored ROI or share that names one resolves to "retired", not "unknown". Unit codes follow the generator\'s frozen ledger, not canon\'s display order: a new unit APPENDS inside its category. VERSION 1.1.0 supersedes 1.0.0 because the change is not additive (see `_supersedes`); neither version was seeded in platform-prod or platform-dev when it was minted (checked 2026-10-06), so the bump is the convention (ADR-CVC-0.8.13 Addendum 2026-10-05), not a guard-driven fix. `safe_locations` is CANON since CVC236-AUDIT R1 (Crysta, 2026-09-08): id and label ratified and minted in the Notion codebook; the former PROVISIONAL marker is retired. The Notion codebook is AHEAD of the yaml mirror on `instruments` (31 rows, acknowledged via --allow-codebook-ahead and not exported here), pending its own absorb lane. PENDING canonical Notion authoring + steward ratification.',
38998
+ _source: "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 9ef79748 (CVC-236 v2, restructured 2026-08-14, amended 2026-10-01; read from origin/main; structural columns cross-checked against htilabstech/prototype/Final CVCs/System Roles, Permissions, & Account Management (IC-66)/core-information_scope \u2014 codebook.csv @ 9ef79748; 2 retired codebook rows matched to the yaml's retired_units; 31 codebook-ahead rows under instruments acknowledged, not exported)",
38999
+ _supersedes: {
39000
+ version: "1.0.0",
39001
+ keyMap: {
39002
+ missingness_root: "missingness_root",
39003
+ unknown: "unknown",
39004
+ anonymous: "anonymous",
39005
+ data_not_collected: "data_not_collected",
39006
+ identifying: "identifying",
39007
+ names: "names",
39008
+ dob: "dob",
39009
+ addresses: "addresses",
39010
+ additional_ids: "additional_ids",
39011
+ demographics: "demographics",
39012
+ risk: "risk",
39013
+ screen_indicators: "screen_indicators",
39014
+ victimization: "victimization",
39015
+ ida_full: "ida_full",
39016
+ ida_consid: "ida_consid",
39017
+ initial_screen: "initial_screen",
39018
+ tra: "tra",
39019
+ lap: "lap",
39020
+ danger_assessment: "danger_assessment",
39021
+ injury_and_strangulation: "injury_and_strangulation",
39022
+ stalking_assessment: "stalking_assessment",
39023
+ ae_intake: "ae_intake",
39024
+ hope_scale: "hope_scale",
39025
+ assessment_records: "assessment_records",
39026
+ determinations: "determinations",
39027
+ offender_facilitator: "offender_facilitator",
39028
+ system_involvement: "system_involvement",
39029
+ derived_risk_signals: "derived_risk_signals",
39030
+ contact: "contact",
39031
+ contact_info: "contact_info",
39032
+ safe_locations: "safe_locations",
39033
+ priorities_safety: "priorities_safety",
39034
+ encounter_location: "encounter_location",
39035
+ services: "services",
39036
+ contact_history: "contact_history",
39037
+ service_history: "service_history",
39038
+ plans_goals: "plans_goals",
39039
+ notes: "notes",
39040
+ screen_notes: "screen_notes",
39041
+ case_notes: "case_notes",
39042
+ background: "background",
39043
+ health_accommodation: "health_accommodation",
39044
+ accommodation_needs: "accommodation_needs",
39045
+ disability_subtypes: "disability_subtypes",
39046
+ mental_health_status: "mental_health_status",
39047
+ substance_use_status: "substance_use_status",
39048
+ chronic_health_status: "chronic_health_status",
39049
+ hiv_status: "hiv_status",
39050
+ mental_health_screen: "mental_health_screen",
39051
+ trauma_and_coping_screen: "trauma_and_coping_screen",
39052
+ behavioral_health_intake: "behavioral_health_intake",
39053
+ immigration_legal_status: "immigration_legal_status",
39054
+ immigration_status: "immigration_status",
39055
+ uscis_alien_number: "uscis_alien_number",
39056
+ federal_protection_applications: "federal_protection_applications",
39057
+ tvap_enrollment: "tvap_enrollment",
39058
+ le_report_status: "le_report_status",
39059
+ system: "system",
39060
+ system_info: "system_info",
39061
+ network_associations: "network_associations",
39062
+ network_membership: "network_membership",
39063
+ persona_links: "persona_links",
39064
+ commercial_activity: "commercial_activity",
39065
+ ad_content: "ad_content",
39066
+ commercial_patterns: "commercial_patterns",
39067
+ investigative_work_product: "investigative_work_product",
39068
+ case_determinations: "case_determinations",
39069
+ case_lifecycle: "case_lifecycle",
39070
+ case_attachments: "case_attachments",
39071
+ object_identifiers: "object_identifiers",
39072
+ phone_identifiers: "phone_identifiers",
39073
+ object_identity_attributes: "object_identity_attributes"
39074
+ },
39075
+ retiredCodes: [],
39076
+ notes: {
39077
+ summary: "Every v1.0.0 key is still an entry in v1.1.0, at its v1.0.0 code, so `keyMap` is the identity and `retiredCodes` is empty: no code was withdrawn. Non-additive because 2 published unit(s) are now RETIRED tombstones and 1 unit(s) read narrower (notes below). Added: `session_summary` (236-005-004).",
39078
+ screen_notes: "v1.0.0 `screen_notes` was a selectable unit. Retired 2026-10-05 (Narrative notes, signed Spec v2 rule 5): The Initial Screen's notes box is an instrument note and belongs to the Initial Screen. It stays at 236-005-001 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI or share that names it narrows, never widens. Canon records that only demo data named it (Crysta 2026-10-04); the demo presets were rewritten by hand.",
39079
+ background: "v1.0.0 `background` was a selectable unit. Retired 2026-10-05 (Narrative notes, signed Spec v2 rule 5): Nothing ever captured it. It stays at 236-005-003 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI or share that names it narrows, never widens. Canon records that only demo data named it (Crysta 2026-10-04); the demo presets were rewritten by hand.",
39080
+ case_notes: "v1.0.0 `case_notes` ('Detailed case notes') keeps 236-005-002 but reads NARROWER under its new label 'Session & case notes' (renamed + narrowed 2026-10-02, Crysta; signed 2026-10-05, Narrative notes Spec v2 rule 5): every note whose home is a session of the case or the case itself, OTHER THAN the session summary, with its files. The session summary (the typed summary and each note marked 'Include in session summary') now rides the new `session_summary` unit (236-005-004), and a note written inside an instrument, in the Determination notes box, or in a notes box on another record belongs to that record. A stored ROI or share that authorized `case_notes` therefore no longer includes the session summary; whether it should also gain `session_summary` is a consent question for the consumer, not a mapping."
39081
+ }
39082
+ },
38967
39083
  levels: {
38968
39084
  "0": "Unknown or Missing",
38969
39085
  "1": "Category (policy grain, not selectable)",
38970
- "2": "Information unit (authorization grain, selectable)"
39086
+ "2": "Information unit (authorization grain; selectable unless retired)"
38971
39087
  },
38972
39088
  entries: [
38973
39089
  {
@@ -39383,10 +39499,11 @@ var coreInformationScope_v1_0_0_default = {
39383
39499
  selectable: true,
39384
39500
  parentCode: "236-002-000-000-000-000-000",
39385
39501
  childCodes: [],
39386
- definition: "Offender + facilitator records. Category `risk`. Carries TRA perpetrator records (ruled 2026-08-14): content wins \u2014 third-party identity never rides a subject-instrument disclosure silently.",
39502
+ definition: "Offender + facilitator records. Category `risk`. Carries TRA perpetrator records (ruled 2026-08-14): content wins \u2014 third-party identity never rides a subject-instrument disclosure silently. | THREAD ADDED 2026-10-01 (OFFENDER-SYSTEM-UNITS-THREAD, Crysta R1 \u2014 Nate Luginbill's Question set 2 item 4): app_relevance follows where the unit's content is captured, and Thread captures perpetrator records (identity \xB7 description \xB7 vehicle \xB7 violence history in PAVE 2.0's Thread; in the prototype a relevant person with the offender role-in-case + the Priorities Q1 source of the danger). The 2026-08-14 rule was never Thread-exempt \u2014 Thread had no box, so perpetrator identity rode under the victim's `names`; with the box it rides HERE and comes out of names (R2). The offender PROFILE never rides under system_involvement because a protection order names them (R3).",
39387
39503
  levelFloor: 3,
39388
39504
  appRelevance: [
39389
39505
  "PAVE",
39506
+ "Thread",
39390
39507
  "LEADS"
39391
39508
  ],
39392
39509
  shareableDefault: true,
@@ -39399,10 +39516,11 @@ var coreInformationScope_v1_0_0_default = {
39399
39516
  selectable: true,
39400
39517
  parentCode: "236-002-000-000-000-000-000",
39401
39518
  childCodes: [],
39402
- definition: "System involvement. Category `risk`.",
39519
+ definition: "System involvement. Category `risk`. THREAD ADDED 2026-10-01 (OFFENDER-SYSTEM-UNITS-THREAD, Crysta R1): Thread captures protection orders and system-involvement answers in PAVE 2.0; the [PAVE] flag was the record as of 2026-08-14. R3 (protection orders \u2014 canon holds, no split): a protection order is ONE record under this unit, whole \u2014 the survivor's legal protection (petitioner \xB7 court \xB7 status \xB7 expiry \xB7 violations) with the respondent's name as it appears on the order, a court document; an offender profile may REFERENCE the order (the ADR's 'offender-bundle extension' is a presentation), but the order is delivered only when this unit is granted \u2014 a reference carries no content, the referenced record rides its own unit (the 2026-10-01 safety-plan reference rule).",
39403
39520
  levelFloor: 3,
39404
39521
  appRelevance: [
39405
- "PAVE"
39522
+ "PAVE",
39523
+ "Thread"
39406
39524
  ],
39407
39525
  shareableDefault: true,
39408
39526
  specialDataType: "survivor_confidential"
@@ -39535,7 +39653,7 @@ var coreInformationScope_v1_0_0_default = {
39535
39653
  selectable: true,
39536
39654
  parentCode: "236-004-000-000-000-000-000",
39537
39655
  childCodes: [],
39538
- definition: "Contact history with this agency. Category `services`. Honest-empty (\xA7 5.4): no canonical UDD field carries the interaction register yet.",
39656
+ definition: "Contact history with this agency. Category `services`. DELIVERS since 2026-10-01 (CONTACT-HISTORY-REGISTER, Crysta R1\u2013R3 \u2014 Nate Luginbill's Question set 2 item 3; honest-empty from 2026-08-14 to that date): the register of this agency's own contacts with the person \u2014 one row per session, date \xB7 channel (CVC-47) \xB7 kind of sitting (CVC-217) \xB7 the agency/program as recorded, plus a count line \u2014 computed from the SENDING agency's session records at send time by the one as-delivered builder, never stored (UDD person.contact_history, derived \xB7 accumulating_log \xB7 IC-76; source fields capture.session_started_at \xB7 capture.service_delivery_channel [its session-record store `contact_method`] \xB7 capture.session_template). The fact of contact, not content: no notes, answers, outcomes or services \u2014 service_history carries the service instances (the Thread session-as-service row is the same session's other view). Which sessions: closed plus the sending one; drafts from other days, discarded sessions, inbound-share reviews (origin claimed_share), other agencies' sessions (knowing is not telling) and LEADS sessions never ride. No domain_map row \u2014 sessions are no-CAR facts; the coverage gate reads the crosswalk derived_units entry (field + store + builder marker). Presets: Thread risk_only_handoff (carried it throughout) \xB7 ROI full_collab gains it 2026-10-01 (derivation for veto). Smoke FLOW-381.",
39539
39657
  levelFloor: 3,
39540
39658
  appRelevance: [
39541
39659
  "PAVE",
@@ -39585,9 +39703,10 @@ var coreInformationScope_v1_0_0_default = {
39585
39703
  childCodes: [
39586
39704
  "236-005-001-000-000-000-000",
39587
39705
  "236-005-002-000-000-000-000",
39588
- "236-005-003-000-000-000-000"
39706
+ "236-005-003-000-000-000-000",
39707
+ "236-005-004-000-000-000-000"
39589
39708
  ],
39590
- definition: "Narrative notes \u2014 policy-grain category. Units under it are the authorization grain. LEADS flag dropped 2026-08-14 (all units PAVE/Thread \u2014 was an empty shell for LEADS-only agencies).",
39709
+ definition: "Narrative notes \u2014 policy-grain category. Units under it are the authorization grain. LEADS flag dropped 2026-08-14 (all units PAVE/Thread \u2014 was an empty shell for LEADS-only agencies). | NARRATIVE-NOTES 2026-10-05 (signed Spec v2, rule 5 \u2014 Crysta: 'Narrative notes - I've signed off on this spec.'): two sub-categories, Session summary and Session & case notes. It holds only the notes whose home is a session of the case or the case itself; a note written inside an instrument, in the Determination notes box, or in a notes box on another record belongs to that record.",
39591
39710
  levelFloor: 3,
39592
39711
  appRelevance: [
39593
39712
  "PAVE",
@@ -39600,26 +39719,20 @@ var coreInformationScope_v1_0_0_default = {
39600
39719
  code: "236-005-001-000-000-000-000",
39601
39720
  key: "screen_notes",
39602
39721
  title: "Screen notes",
39603
- selectable: true,
39722
+ selectable: false,
39604
39723
  parentCode: "236-005-000-000-000-000-000",
39605
39724
  childCodes: [],
39606
- definition: "Screen notes. Category `notes`.",
39607
- levelFloor: 3,
39608
- appRelevance: [
39609
- "PAVE",
39610
- "Thread"
39611
- ],
39612
- shareableDefault: true,
39613
- specialDataType: "survivor_confidential"
39725
+ definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5). The Initial Screen's notes box is an instrument note and belongs to the Initial Screen. No longer offered in share policy, internal viewing settings or a release; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
39726
+ retired: true
39614
39727
  },
39615
39728
  {
39616
39729
  code: "236-005-002-000-000-000-000",
39617
39730
  key: "case_notes",
39618
- title: "Detailed case notes",
39731
+ title: "Session & case notes",
39619
39732
  selectable: true,
39620
39733
  parentCode: "236-005-000-000-000-000-000",
39621
39734
  childCodes: [],
39622
- definition: "Detailed case notes. Category `notes`.",
39735
+ definition: "Session & case notes. Category `notes`. RENAMED + NARROWED 2026-10-02 (Crysta; was 'Detailed case notes'; the code is unchanged). Every note whose home is a session of the case or the case itself, other than the session summary, with its files. Read from the notes store, one row per note, through the note's own visibility; the session_note / log_entry claims keep their viewing rows in domain_map and are never share content.",
39623
39736
  levelFloor: 3,
39624
39737
  appRelevance: [
39625
39738
  "PAVE",
@@ -39632,10 +39745,20 @@ var coreInformationScope_v1_0_0_default = {
39632
39745
  code: "236-005-003-000-000-000-000",
39633
39746
  key: "background",
39634
39747
  title: "Background information",
39748
+ selectable: false,
39749
+ parentCode: "236-005-000-000-000-000-000",
39750
+ childCodes: [],
39751
+ definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5). Nothing ever captured it. No longer offered in share policy, internal viewing settings or a release; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
39752
+ retired: true
39753
+ },
39754
+ {
39755
+ code: "236-005-004-000-000-000-000",
39756
+ key: "session_summary",
39757
+ title: "Session summary",
39635
39758
  selectable: true,
39636
39759
  parentCode: "236-005-000-000-000-000-000",
39637
39760
  childCodes: [],
39638
- definition: "Background information. Category `notes`.",
39761
+ definition: "Session summary. Category `notes`. MINTED 2026-10-02 (Crysta: two sub-categories \u2014 'Agree'); in the apps since 2026-10-05 (NARRATIVE-NOTES). Includes the typed session summary (one note marked as the summary \u2014 it has no visibility of its own and freezes when the session is submitted) and each note whose home is that session and that the advocate marked 'Include in session summary'. A marked note from another home shows in the on-screen summary and is included in a share only with its own home, never here.",
39639
39762
  levelFloor: 3,
39640
39763
  appRelevance: [
39641
39764
  "PAVE",
@@ -40637,13 +40760,13 @@ var coreReferralOutcome_v1_0_0_default = {
40637
40760
  ]
40638
40761
  };
40639
40762
 
40640
- // src/cvcs/coreIndicators.v1.0.0.json
40641
- var coreIndicators_v1_0_0_default = {
40763
+ // src/cvcs/coreIndicators.v1.1.0.json
40764
+ var coreIndicators_v1_1_0_default = {
40642
40765
  domain: "core_indicators",
40643
40766
  name: "Core Indicators (CVC-136)",
40644
- version: "1.0.0",
40645
- _status: "CANONICAL \u2014 re-sourced from the live canonical catalog `data/core_indicators.yaml` @ prototype HEAD 622410b (214 codes; +1 vs the 0.8.14 pin 84a1b67, 0 withdrawn, plus the projected-field revisions on 136-007 / 136-094 the same delta carried), plus 2 codes that @hti/scoring (`weights/risk.weights.json` @ 9b5d654, `emits_by_code`) emits but the codebook has not yet adopted (`coercive_debt_pressure_youth`, `debt_terms_deceptive_youth`), each flagged `pendingUpstreamAdoption: true`. 216 substantive + the missingness quadruplet = 220 entries. New codes are APPENDED at 216 so every previously issued positional code stays stable.",
40646
- _source: "htilabstech/prototype@622410b data/core_indicators.yaml + htilabstech/hti-scoring@9b5d654 weights/risk.weights.json (emits_by_code)",
40767
+ version: "1.1.0",
40768
+ _status: "CANONICAL \u2014 re-sourced from the live canonical catalog `data/core_indicators.yaml` @ prototype HEAD c53378f (220 codes; +6 vs the 0.8.17 pin 622410b, 0 withdrawn upstream, plus the projected-field revision on 136-061 `exploitative_pricing_tier_low` the same delta carried), reconciled against @hti/scoring (`weights/risk.weights.json` @ 9c209cf, `emits_by_code`, 174 codes). VERSION 1.0.0 -> 1.1.0 (2026-10-06): this refresh removes `selectable` from two rows and redefines a third, so it is NOT additive and cannot reuse the published 1.0.0 content hash \u2014 the seeder's \xA79.1.2 ContentDriftError guard (scripts/seed-cvc.ts) would refuse to re-seed 1.0.0 with different content (the #188/#190 precedent; `incidentParticipationRoles` 1.1.0 is the shape). The 2 former scoring-ahead codes (`coercive_debt_pressure_youth` 136-033, `debt_terms_deceptive_youth` 136-050, formerly `pendingUpstreamAdoption: true`) are DEPRECATED, NOT REMOVED: `selectable: false`, `deprecated: true`, `supersededBy` their canonical rows `coercive_debt_pressure` (136-032) / `debt_terms_deceptive` (136-049), which upstream carries as `legacy_aliases`. hti-scoring 9c209cf no longer emits them, but PAVE 2.0 `develop` @ 07f3ccd still WRITES both from the IDA (`IDA-syn-missing_care-4i`/`4ii`, packages/api-core/src/rules/assessments/ida/emits.ts) and scores them from its 2026-07-17 vendored weights, so a stored assertion under either key must keep resolving in this SOT. Thread `develop` @ 28580ab has no writer. Their positional codes are HELD by the deprecated rows and are never reissued to another key. 220 selectable + 2 deprecated + the missingness quadruplet = 226 entries. New codes are APPENDED at 217\u2013222 so every previously issued positional code stays stable.",
40769
+ _source: "htilabstech/prototype@c53378f data/core_indicators.yaml + htilabstech/hti-scoring@9c209cf weights/risk.weights.json (emits_by_code)",
40647
40770
  levels: {
40648
40771
  "0": "Unknown or Missing",
40649
40772
  "1": "Indicator"
@@ -41120,11 +41243,12 @@ var coreIndicators_v1_0_0_default = {
41120
41243
  code: "136-033-000-000-000-000-000",
41121
41244
  key: "coercive_debt_pressure_youth",
41122
41245
  title: "Pressured to do things to pay off debt (youth missing-from-care)",
41123
- selectable: true,
41246
+ selectable: false,
41124
41247
  parentCode: null,
41125
41248
  childCodes: [],
41126
- definition: "Indication that a youth who is missing from care was pressured or coerced into doing things in order to pay off a debt. Youth-specific sibling of `coercive_debt_pressure`. PENDING UPSTREAM ADOPTION: this code is NOT yet present in the canonical `data/core_indicators.yaml` at prototype HEAD a596eb9. It is retained because @hti/scoring (the declared scoring SOT, weights/risk.weights.json @ 9b5d654) EMITS it via `emits_by_code` \u2014 scoring is ahead of the codebook here. Withdrawing it would break the scoring contract. File upstream for adoption into core_indicators.yaml.",
41127
- pendingUpstreamAdoption: true
41249
+ definition: "DEPRECATED 2026-10-06 \u2014 superseded by `coercive_debt_pressure` (136-032); the canonical catalog carries this key as a `legacy_alias` of that row and @hti/scoring 9c209cf no longer emits it. Retained read-only because PAVE 2.0 `develop` (IDA `IDA-syn-missing_care-4i`, emits.ts) still writes it and assertions stored under this key must keep resolving. Original meaning: indication that a youth who is missing from care was pressured or coerced into doing things in order to pay off a debt. Youth-specific sibling of `coercive_debt_pressure`. Do not offer for new writes; bind the canonical key.",
41250
+ deprecated: true,
41251
+ supersededBy: "coercive_debt_pressure"
41128
41252
  },
41129
41253
  {
41130
41254
  code: "136-034-000-000-000-000-000",
@@ -41342,11 +41466,12 @@ var coreIndicators_v1_0_0_default = {
41342
41466
  code: "136-050-000-000-000-000-000",
41343
41467
  key: "debt_terms_deceptive_youth",
41344
41468
  title: "Debt repayment terms differed from what was expected (youth missing-from-care)",
41345
- selectable: true,
41469
+ selectable: false,
41346
41470
  parentCode: null,
41347
41471
  childCodes: [],
41348
- definition: "Indication that, for a youth missing from care, the terms of a debt or its repayment differed from what was represented or expected. Youth-specific sibling of `debt_terms_deceptive`. PENDING UPSTREAM ADOPTION: this code is NOT yet present in the canonical `data/core_indicators.yaml` at prototype HEAD a596eb9. It is retained because @hti/scoring (the declared scoring SOT, weights/risk.weights.json @ 9b5d654) EMITS it via `emits_by_code` \u2014 scoring is ahead of the codebook here. Withdrawing it would break the scoring contract. File upstream for adoption into core_indicators.yaml.",
41349
- pendingUpstreamAdoption: true
41472
+ definition: "DEPRECATED 2026-10-06 \u2014 superseded by `debt_terms_deceptive` (136-049); the canonical catalog carries this key as a `legacy_alias` of that row and @hti/scoring 9c209cf no longer emits it. Retained read-only because PAVE 2.0 `develop` (IDA `IDA-syn-missing_care-4ii`, emits.ts) still writes it and assertions stored under this key must keep resolving. Original meaning: indication that, for a youth missing from care, the terms of a debt or its repayment differed from what was represented or expected. Youth-specific sibling of `debt_terms_deceptive`. Do not offer for new writes; bind the canonical key.",
41473
+ deprecated: true,
41474
+ supersededBy: "debt_terms_deceptive"
41350
41475
  },
41351
41476
  {
41352
41477
  code: "136-051-000-000-000-000-000",
@@ -41489,7 +41614,7 @@ var coreIndicators_v1_0_0_default = {
41489
41614
  selectable: true,
41490
41615
  parentCode: null,
41491
41616
  childCodes: [],
41492
- definition: "Ad-derived pricing tier indicates unusually low hourly price relative to local median, potentially signaling economic duress and vulnerability.",
41617
+ definition: `Ad-derived pricing tier is LOW-dominant \u2014 the person's parsed hourly rates fall under $50/hr against the pooled ad population (CVC-277 core-CS_price_tier_band; Sarah 2026-07-22 pooled baseline, about the bottom quartile) \u2014 potentially signaling economic duress and vulnerability. The SRS design framed this as "relative to the local median"; a per-market baseline is the refinement on record, not built.`,
41493
41618
  family: "unfamilied",
41494
41619
  polarity: "depends",
41495
41620
  severity: "informational",
@@ -43557,6 +43682,87 @@ TRA Phase 3 Batch B apply per recs doc \xA7 4.2 + Crysta Q-3 sign-off.`,
43557
43682
  polarity: "depends",
43558
43683
  severity: "caution",
43559
43684
  isAlert: "none"
43685
+ },
43686
+ {
43687
+ code: "136-217-000-000-000-000-000",
43688
+ key: "disclosed_fear_at_intake",
43689
+ title: "Disclosed fear of a specific person",
43690
+ selectable: true,
43691
+ parentCode: null,
43692
+ childCodes: [],
43693
+ definition: "The person has told a worker they are afraid of a named or identifiable individual \u2014 commonly a former or current partner. Distinct from concerning_mannerisms_anxious_fearful_depressed, which is affect a worker observes rather than something the person said, and from threats_of_harm, which requires a threat to have been made; fear can be current and well-founded with no fresh threat.",
43694
+ family: "lethality_dv",
43695
+ polarity: "increases_risk",
43696
+ severity: "elevated",
43697
+ isAlert: "thread_pave",
43698
+ alertWhen: "current_only"
43699
+ },
43700
+ {
43701
+ code: "136-218-000-000-000-000-000",
43702
+ key: "does_not_control_housing",
43703
+ title: "Limited independence: does not control where they live",
43704
+ selectable: true,
43705
+ parentCode: null,
43706
+ childCodes: [],
43707
+ definition: "Indication that an employer, partner, or other person decides where the person lives \u2014 housing is assigned or controlled by someone else, rather than chosen by the person.",
43708
+ family: "mechanism_control",
43709
+ polarity: "increases_risk",
43710
+ severity: "elevated",
43711
+ isAlert: "none"
43712
+ },
43713
+ {
43714
+ code: "136-219-000-000-000-000-000",
43715
+ key: "oppressive_home_life",
43716
+ title: "Oppressive, unsafe, or unstable home life",
43717
+ selectable: true,
43718
+ parentCode: null,
43719
+ childCodes: [],
43720
+ definition: "Indication that the person's current home life is oppressive, unsafe, or unstable \u2014 a present-condition vulnerability, distinct from the childhood household challenges history (VIII-B).",
43721
+ family: "vulnerability_context",
43722
+ polarity: "increases_risk",
43723
+ severity: "elevated",
43724
+ isAlert: "none"
43725
+ },
43726
+ {
43727
+ code: "136-220-000-000-000-000-000",
43728
+ key: "recent_separation",
43729
+ title: "Recent separation from abusive partner",
43730
+ selectable: true,
43731
+ parentCode: null,
43732
+ childCodes: [],
43733
+ definition: "Indication that the person has recently left or separated from an abusive partner. Campbell's Danger Assessment treats the period following separation as the highest-risk window for intimate-partner homicide \u2014 the signal is about having got out, not about current cohabitation.",
43734
+ family: "lethality_dv",
43735
+ polarity: "depends",
43736
+ severity: "elevated",
43737
+ isAlert: "thread_pave",
43738
+ alertWhen: "recency_under_year"
43739
+ },
43740
+ {
43741
+ code: "136-221-000-000-000-000-000",
43742
+ key: "survival_sex",
43743
+ title: "Survival sex (sex exchanged to meet basic needs)",
43744
+ selectable: true,
43745
+ parentCode: null,
43746
+ childCodes: [],
43747
+ definition: "Indication that the person exchanges sex acts to meet basic survival needs \u2014 housing, food, drugs, protection, or money for essentials \u2014 rather than as an income choice. A standalone activity signal that can coexist with, or exist entirely without, a trafficking determination; it asserts the circumstance of the exchange, never the determination.",
43748
+ family: "cs_industry_context",
43749
+ polarity: "depends",
43750
+ severity: "elevated",
43751
+ isAlert: "none"
43752
+ },
43753
+ {
43754
+ code: "136-222-000-000-000-000-000",
43755
+ key: "unable_to_speak_freely",
43756
+ title: "Unable to speak freely",
43757
+ selectable: true,
43758
+ parentCode: null,
43759
+ childCodes: [],
43760
+ definition: "Indication that the person is not able to speak for themselves \u2014 a third party insists on being present, answers on their behalf, or interprets for them, or the person is never encountered alone. Distinct from inability_to_account_for_self, which is about the person's own account being scripted or confused; this is about another party controlling the conversation.",
43761
+ family: "mechanism_control",
43762
+ polarity: "depends",
43763
+ severity: "elevated",
43764
+ isAlert: "thread_pave",
43765
+ alertWhen: "current_only"
43560
43766
  }
43561
43767
  ]
43562
43768
  };
@@ -56291,6 +56497,7 @@ var CVC_197_VALUES = selectableCodes(
56291
56497
  export {
56292
56498
  ACCOMMODATION_LABELS,
56293
56499
  ACCOMMODATION_OPTIONS,
56500
+ ACTIVE_CVC_136_CORE_INDICATOR_VALUES,
56294
56501
  ACTIVE_INCIDENT_PARTICIPATION_ROLE_VALUES,
56295
56502
  AGE_BIN_REPORTING,
56296
56503
  AGE_BIN_REPORTING_IS_MINOR,
@@ -56340,6 +56547,7 @@ export {
56340
56547
  CVC_136_ALERT_INDICATOR,
56341
56548
  CVC_136_CATEGORY_LABELS,
56342
56549
  CVC_136_CORE_INDICATOR_LABELS,
56550
+ CVC_136_CORE_INDICATOR_SUPERSEDED_BY,
56343
56551
  CVC_136_CORE_INDICATOR_VALUES,
56344
56552
  CVC_136_INDICATOR_CATEGORY,
56345
56553
  CVC_136_LABELS,
@@ -56771,6 +56979,7 @@ export {
56771
56979
  buildQuestionSchema,
56772
56980
  buildScoringRuleSchema,
56773
56981
  buildSectionSchema,
56982
+ canonicalCoreIndicator,
56774
56983
  canonicalIncidentParticipationRole,
56775
56984
  carCorrectionReason_v1_0_0_default as carCorrectionReasonSot,
56776
56985
  cascadeExclusions,
@@ -56791,8 +57000,8 @@ export {
56791
57000
  contactSafetyStatus_v1_0_0_default as contactSafetyStatusSot,
56792
57001
  coreDhState_v1_0_0_default as coreDhStateSot,
56793
57002
  coreFunctions_v1_0_0_default as coreFunctionsSot,
56794
- coreIndicators_v1_0_0_default as coreIndicatorsSot,
56795
- coreInformationScope_v1_0_0_default as coreInformationScopeSot,
57003
+ coreIndicators_v1_1_0_default as coreIndicatorsSot,
57004
+ coreInformationScope_v1_1_0_default as coreInformationScopeSot,
56796
57005
  coreReferralOutcome_v1_0_0_default as coreReferralOutcomeSot,
56797
57006
  countries_v1_0_0_default as countriesSot,
56798
57007
  createPlatformModels,
@@ -56875,6 +57084,7 @@ export {
56875
57084
  incomeBenefitsSources_v1_1_0_default as incomeBenefitsSourcesSot,
56876
57085
  inferenceType_v1_0_0_default as inferenceTypeSot,
56877
57086
  investigativeRequestType_v1_0_0_default as investigativeRequestTypeSot,
57087
+ isDeprecatedCoreIndicator,
56878
57088
  isDeprecatedIncidentParticipationRole,
56879
57089
  isIC56Missingness,
56880
57090
  isIC56ValidChannel,