@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.
- package/dist/config/index.cjs +85 -0
- package/dist/config/index.cjs.map +1 -1
- package/dist/config/index.d.cts +94 -4
- package/dist/config/index.d.ts +94 -4
- package/dist/config/index.js +81 -1
- package/dist/config/index.js.map +1 -1
- package/dist/constants/index.cjs +456 -181
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +453 -169
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +15331 -801
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +18167 -2208
- package/dist/cvcs/index.d.ts +18167 -2208
- package/dist/cvcs/index.js +15282 -801
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-Zu_mOJRn.d.cts → index-CoVr1jIV.d.cts} +1 -1
- package/dist/{index-CDoqrfc1.d.ts → index-I-DiX9eQ.d.ts} +1 -1
- package/dist/index.cjs +17070 -1056
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1638 -12
- package/dist/index.d.ts +1638 -12
- package/dist/index.js +16969 -1043
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/mongo/index.cjs +384 -0
- package/dist/mongo/index.cjs.map +1 -0
- package/dist/mongo/index.d.cts +221 -0
- package/dist/mongo/index.d.ts +221 -0
- package/dist/mongo/index.js +352 -0
- package/dist/mongo/index.js.map +1 -0
- package/dist/{platform-auth-XVB9aHqR.d.cts → platform-auth-v53r3BhN.d.cts} +19 -75
- package/dist/{platform-auth-XVB9aHqR.d.ts → platform-auth-v53r3BhN.d.ts} +19 -75
- package/dist/schemas/index.cjs +25 -156
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/dist/schemas/index.js +25 -156
- package/dist/schemas/index.js.map +1 -1
- package/dist/services/index.cjs +0 -3
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +0 -3
- package/dist/services/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +9 -1
- package/src/__sot__/README.md +56 -0
- package/src/__sot__/coreIndicators.pin.json +215 -0
- package/src/__sot__/cvcIndex.pin.json +268 -0
- package/src/__sot__/scoringEmits.pin.json +176 -0
- package/src/__tests__/__snapshots__/cvc-sot.snap +227 -35
- package/src/__tests__/cvc-136-scoring-invariant.test.ts +323 -0
- package/src/__tests__/cvc-drift-gate.test.ts +603 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +122 -11
- package/src/__tests__/cvc-structural.test.ts +56 -1
- package/src/__tests__/mongo-verifier.test.ts +502 -0
- package/src/__tests__/runtime-contract-validator.test.ts +325 -1
- package/src/config/index.ts +197 -6
- package/src/constants/ic.ts +512 -206
- package/src/constants/service-catalog.ts +4 -2
- package/src/cvcs/activityType.v1.0.0.json +143 -0
- package/src/cvcs/adminRoles.v1.0.0.json +153 -0
- package/src/cvcs/administeringJurisdiction.v1.0.0.json +40 -40
- package/src/cvcs/ageBinReporting.v1.0.0.json +40 -40
- package/src/cvcs/assertionDomain.v1.1.0.json +629 -0
- package/src/cvcs/{checkInPhase.v1.0.0.json → checkInPhase.v1.1.0.json} +20 -2
- package/src/cvcs/childChangeType.v1.0.0.json +152 -0
- package/src/cvcs/citizenship.v1.0.0.json +3062 -0
- package/src/cvcs/contactInfoTypes.v1.0.0.json +40 -40
- package/src/cvcs/contactLinkType.v1.0.0.json +89 -0
- package/src/cvcs/coreDhState.v1.0.0.json +113 -0
- package/src/cvcs/coreFunctions.v1.0.0.json +746 -0
- package/src/cvcs/coreIndicators.v1.0.0.json +2840 -0
- package/src/cvcs/coreReferralOutcome.v1.0.0.json +71 -0
- package/src/cvcs/employmentStatus.v1.0.0.json +60 -60
- package/src/cvcs/exploitationType.v1.0.0.json +106 -0
- package/src/cvcs/facilitatorEntityType.v1.0.0.json +40 -40
- package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +55 -46
- package/src/cvcs/hivStatus.v1.0.0.json +71 -0
- package/src/cvcs/hmisCurrentLivingSituation.v1.0.0.json +409 -0
- package/src/cvcs/hmisRelationshipToHoh.v1.0.0.json +104 -0
- package/src/cvcs/homelessStatus.v1.0.0.json +27 -27
- package/src/cvcs/housingSubsidyTypes.v1.0.0.json +161 -0
- package/src/cvcs/htType.v1.0.0.json +87 -0
- package/src/cvcs/identificationStatus.v1.0.0.json +18 -0
- package/src/cvcs/immigrationLegalStatusChangeType.v1.0.0.json +143 -0
- package/src/cvcs/incarcerationEpisodeType.v1.0.0.json +106 -0
- package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +40 -40
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +40 -40
- package/src/cvcs/incomeBenefitsSources.v1.0.0.json +31 -2
- package/src/cvcs/index.ts +106 -1
- package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +28 -18
- package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +32 -32
- package/src/cvcs/livingSituation.v1.0.0.json +213 -0
- package/src/cvcs/mentalHealthStatus.v1.0.0.json +71 -0
- package/src/cvcs/militaryBranch.v1.0.0.json +20 -20
- package/src/cvcs/militaryStatus.v1.0.0.json +20 -20
- package/src/cvcs/nameType.v1.0.0.json +40 -40
- package/src/cvcs/needsAssessmentChangeType.v1.0.0.json +134 -0
- package/src/cvcs/offenderStatus.v1.0.0.json +40 -40
- package/src/cvcs/offenderStatusFamily.v1.0.0.json +36 -36
- package/src/cvcs/poPetitionBasis.v1.0.0.json +96 -0
- package/src/cvcs/poStatus.v1.0.0.json +144 -0
- package/src/cvcs/poViolationStatus.v1.0.0.json +76 -0
- package/src/cvcs/programEnrollmentChangeType.v1.0.0.json +134 -0
- package/src/cvcs/provenanceSourceId.v1.0.0.json +134 -0
- package/src/cvcs/radiusBucket.v1.0.0.json +110 -0
- package/src/cvcs/recencyBand.v1.0.0.json +104 -39
- package/src/cvcs/referralEntityCategory.v1.0.0.json +40 -40
- package/src/cvcs/relationshipConcern.v1.0.0.json +114 -0
- package/src/cvcs/riskCategory.v1.0.0.json +134 -0
- package/src/cvcs/riskSeverityBand.v1.0.0.json +139 -0
- package/src/cvcs/roiMethod.v1.0.0.json +107 -0
- package/src/cvcs/roiScope.v1.0.0.json +296 -0
- package/src/cvcs/roiStatus.v1.0.0.json +106 -0
- package/src/cvcs/romanticRelationshipChangeType.v1.0.0.json +162 -0
- package/src/cvcs/serviceAudience.v1.0.0.json +96 -0
- package/src/cvcs/serviceCategories.v1.0.0.json +44 -44
- package/src/cvcs/serviceDeliveryChannel.v1.0.0.json +147 -0
- package/src/cvcs/serviceMechanisms.v1.0.0.json +36 -36
- package/src/cvcs/serviceStates.v1.0.0.json +55 -33
- package/src/cvcs/sessionNoteVisibility.v1.0.0.json +80 -0
- package/src/cvcs/sessionTemplate.v1.0.0.json +261 -0
- package/src/cvcs/sexProviderSubrole.v1.0.0.json +35 -28
- package/src/cvcs/smtType.v1.0.0.json +40 -40
- package/src/cvcs/sourceCategory.v1.1.0.json +8 -1
- package/src/cvcs/sourceInstrument.v1.0.0.json +458 -0
- package/src/cvcs/sourceSubtype.v1.1.0.json +36 -0
- package/src/cvcs/sourceSystem.v1.0.0.json +203 -0
- package/src/cvcs/specialNeedsDisabilities.v1.0.0.json +143 -0
- package/src/cvcs/suggestionSource.v1.0.0.json +71 -0
- package/src/cvcs/traffickingRelevantRole.v1.0.0.json +104 -0
- package/src/cvcs/userRoles.v1.0.0.json +203 -0
- package/src/cvcs/verificationMethod.v1.0.0.json +18 -0
- package/src/cvcs/victimAbuseTypes.v1.0.0.json +276 -0
- package/src/cvcs/victimStatusFamily.v1.0.0.json +40 -40
- package/src/cvcs/whyNots.v1.0.0.json +385 -0
- package/src/generated/cvc-enums.ts +1729 -7
- package/src/mongo/catalog.ts +65 -0
- package/src/mongo/contract.ts +157 -0
- package/src/mongo/index.ts +343 -0
- package/src/mongo/similarity.ts +133 -0
- package/src/mongo/uri.ts +53 -0
- package/src/services/cvcRegistryService.ts +1 -1
- package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-BCj1OWqL.d.cts} +8 -8
- package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-BCj1OWqL.d.ts} +8 -8
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "relationship_concern",
|
|
3
|
+
"name": "Core Relationship Concern (PROVISIONAL CVC-231 — pending codebook ratification)",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"levels": {
|
|
6
|
+
"0": "Unknown or Missing",
|
|
7
|
+
"1": "Relationship concern"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"code": "231-000-000-000-000-000-000",
|
|
12
|
+
"key": "missingness_root",
|
|
13
|
+
"title": "Unknown, Redacted, or Missing",
|
|
14
|
+
"selectable": false,
|
|
15
|
+
"parentCode": null,
|
|
16
|
+
"childCodes": [
|
|
17
|
+
"231-000-000-000-000-000-001",
|
|
18
|
+
"231-000-000-000-000-000-002",
|
|
19
|
+
"231-000-000-000-000-000-003"
|
|
20
|
+
],
|
|
21
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"code": "231-000-000-000-000-000-001",
|
|
25
|
+
"key": "unknown",
|
|
26
|
+
"title": "Unknown",
|
|
27
|
+
"selectable": true,
|
|
28
|
+
"parentCode": "231-000-000-000-000-000-000",
|
|
29
|
+
"childCodes": [],
|
|
30
|
+
"definition": "The relationship concern is unknown or cannot be determined from the available information."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"code": "231-000-000-000-000-000-002",
|
|
34
|
+
"key": "anonymous",
|
|
35
|
+
"title": "Anonymous / declined to answer",
|
|
36
|
+
"selectable": true,
|
|
37
|
+
"parentCode": "231-000-000-000-000-000-000",
|
|
38
|
+
"childCodes": [],
|
|
39
|
+
"definition": "The relationship concern may be withheld by preference or due to redaction; identity is anonymous or redacted."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"code": "231-000-000-000-000-000-003",
|
|
43
|
+
"key": "data_not_collected",
|
|
44
|
+
"title": "Data not collected",
|
|
45
|
+
"selectable": true,
|
|
46
|
+
"parentCode": "231-000-000-000-000-000-000",
|
|
47
|
+
"childCodes": [],
|
|
48
|
+
"definition": "No attempt was made to collect the relationship concern."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "231-001-000-000-000-000-000",
|
|
52
|
+
"key": "appears_controlling",
|
|
53
|
+
"title": "Appears controlling",
|
|
54
|
+
"selectable": true,
|
|
55
|
+
"parentCode": null,
|
|
56
|
+
"childCodes": [],
|
|
57
|
+
"definition": "Employer, intimate partner, or family member who appears controlling in relation to the subject."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"code": "231-002-000-000-000-000-000",
|
|
61
|
+
"key": "is_much_older",
|
|
62
|
+
"title": "Is much older (age-disparate)",
|
|
63
|
+
"selectable": true,
|
|
64
|
+
"parentCode": null,
|
|
65
|
+
"childCodes": [],
|
|
66
|
+
"definition": "Significant age disparity in the relationship — a vulnerability signal, especially for youth."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"code": "231-003-000-000-000-000-000",
|
|
70
|
+
"key": "physically_abusive",
|
|
71
|
+
"title": "Physically abusive",
|
|
72
|
+
"selectable": true,
|
|
73
|
+
"parentCode": null,
|
|
74
|
+
"childCodes": [],
|
|
75
|
+
"definition": "Reports of physical harm or abuse from this person toward the subject."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"code": "231-004-000-000-000-000-000",
|
|
79
|
+
"key": "emotionally_abusive",
|
|
80
|
+
"title": "Emotionally abusive / threatening",
|
|
81
|
+
"selectable": true,
|
|
82
|
+
"parentCode": null,
|
|
83
|
+
"childCodes": [],
|
|
84
|
+
"definition": "Emotional abuse, threats, or intimidation by this person toward the subject."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"code": "231-005-000-000-000-000-000",
|
|
88
|
+
"key": "has_legal_involvement",
|
|
89
|
+
"title": "Has relevant legal involvement",
|
|
90
|
+
"selectable": true,
|
|
91
|
+
"parentCode": null,
|
|
92
|
+
"childCodes": [],
|
|
93
|
+
"definition": "This person has a legal case, protective order, or criminal history relevant to the subject's situation."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"code": "231-006-000-000-000-000-000",
|
|
97
|
+
"key": "is_known_trafficker_or_suspect",
|
|
98
|
+
"title": "Is known or suspected trafficker",
|
|
99
|
+
"selectable": true,
|
|
100
|
+
"parentCode": null,
|
|
101
|
+
"childCodes": [],
|
|
102
|
+
"definition": "This person is suspected or confirmed as a trafficker in relation to the subject. Complements (does not replace) role assignment via Add-Person."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"code": "231-007-000-000-000-000-000",
|
|
106
|
+
"key": "other_concern",
|
|
107
|
+
"title": "Other concern",
|
|
108
|
+
"selectable": true,
|
|
109
|
+
"parentCode": null,
|
|
110
|
+
"childCodes": [],
|
|
111
|
+
"definition": "Catch-all for concerns not covered by the other codes. Requires accompanying free-text explanation; prefer a specific code whenever one applies."
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "risk_category",
|
|
3
|
+
"name": "Risk Category",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; codes/labels sourced verbatim from @hti/scoring (declared SOT) weights/risk.weights.json @ 9b5d654; NAMES ONLY per ADR-CONTRACT-scoring-vocab-model-boundary (weights/cutoffs/leaf-scales stay in @hti/scoring). PENDING canonical Notion authoring + steward ratification.",
|
|
6
|
+
"_source": "htilabstech/hti-scoring@9b5d654 weights/risk.weights.json",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "Risk assessment category"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "980-000-000-000-000-000-000",
|
|
14
|
+
"key": "missingness_root",
|
|
15
|
+
"title": "Unknown, Redacted, or Missing",
|
|
16
|
+
"selectable": false,
|
|
17
|
+
"parentCode": null,
|
|
18
|
+
"childCodes": [
|
|
19
|
+
"980-000-000-000-000-000-001",
|
|
20
|
+
"980-000-000-000-000-000-002",
|
|
21
|
+
"980-000-000-000-000-000-003"
|
|
22
|
+
],
|
|
23
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected) under the workspace standard ANON semantic. The @hti/scoring artifact enumerates only the substantive values, so the triplet is added per SOT convention."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "980-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "980-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "Risk category is unknown at time of entry (missingness sentinel)."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "980-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "980-000-000-000-000-000-000",
|
|
40
|
+
"childCodes": [],
|
|
41
|
+
"definition": "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"code": "980-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "980-000-000-000-000-000-000",
|
|
49
|
+
"childCodes": [],
|
|
50
|
+
"definition": "No attempt was made to collect the value. System-only sentinel per GLOBAL_DESIGN_RULES."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"code": "980-001-000-000-000-000-000",
|
|
54
|
+
"key": "cat_i",
|
|
55
|
+
"title": "Qualifying Activity?",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "Canonical @hti/scoring category id: `I`. Gating question: is this person engaged in a qualifying activity — a commercial sex act (18 U.S.C. § 1591(e)(3)) or labor/services performed for another's benefit (18 U.S.C. § 1589) — at the time of assessment? Treated as a boolean, not a 0–10 score. We treat 'yes' as confirmed if any source is at disclosed-or-better strength. Descriptive, per CVC-231 § II: activity coding answers 'what happened?', not 'does this legally equal trafficking?'. Why it matters: A confirmed 'yes' is what makes every other row on this page trafficking-relevant. Without it, the same signals describe something else. The arm that confirmed it (commercial sex vs labor/services) is shown on the gate read. (Display metadata only — the category's weight and aggregation fn stay in @hti/scoring weights/risk.weights.json.)"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"code": "980-002-000-000-000-000-000",
|
|
63
|
+
"key": "cat_ii",
|
|
64
|
+
"title": "Lack of Ability to Legally Consent",
|
|
65
|
+
"selectable": true,
|
|
66
|
+
"parentCode": null,
|
|
67
|
+
"childCodes": [],
|
|
68
|
+
"definition": "Canonical @hti/scoring category id: `II`. Captures factors that compromise the person's capacity to legally consent to commercial sex: minor age, substance dependence, cognitive disability, active mental health crisis. Why it matters: If a person can't legally consent — because they're a minor or have impaired capacity — commercial sex transactions involving them are trafficking by definition, regardless of other evidence. (Display metadata only — the category's weight and aggregation fn stay in @hti/scoring weights/risk.weights.json.)"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "980-003-000-000-000-000-000",
|
|
72
|
+
"key": "cat_iii",
|
|
73
|
+
"title": "Entry / Recruitment",
|
|
74
|
+
"selectable": true,
|
|
75
|
+
"parentCode": null,
|
|
76
|
+
"childCodes": [],
|
|
77
|
+
"definition": "Canonical @hti/scoring category id: `III`. What we know about how the person first entered the qualifying activity — the commercial sex industry (§ 1591) or the compelled labor/services arrangement (§ 1589): age at entry, recruitment pathway, migration/recruitment debt, survival-driven start. Why it matters: Entry as a minor, entry driven by deception, recruitment, or debt, or entry out of survival — any of these means the activity started on coercive or exploitative footing, whichever arm it belongs to. (Display metadata only — the category's weight and aggregation fn stay in @hti/scoring weights/risk.weights.json.)"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"code": "980-004-000-000-000-000-000",
|
|
81
|
+
"key": "cat_iv",
|
|
82
|
+
"title": "Lack of Autonomy",
|
|
83
|
+
"selectable": true,
|
|
84
|
+
"parentCode": null,
|
|
85
|
+
"childCodes": [],
|
|
86
|
+
"definition": "Canonical @hti/scoring category id: `IV`. The likelihood of third-party involvement (manager, recruiter, other facilitator) and the severity of that involvement. Includes not being in control of your documents, schedule, or who you see. Why it matters: Signals that someone else controls the work — shared phones, third-party posting, fixed schedules — are how trafficking tends to look in practice. (Display metadata only — the category's weight and aggregation fn stay in @hti/scoring weights/risk.weights.json.)"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"code": "980-005-000-000-000-000-000",
|
|
90
|
+
"key": "cat_v",
|
|
91
|
+
"title": "Fraud & financial exploitation",
|
|
92
|
+
"selectable": true,
|
|
93
|
+
"parentCode": null,
|
|
94
|
+
"childCodes": [],
|
|
95
|
+
"definition": "Canonical @hti/scoring category id: `V`. Whether the person has been misled, lied to, or financially exploited by someone benefiting from their being in the industry. How much of their pay do they keep? Does that match what was promised? Why it matters: Withheld earnings, debt bondage, and broken promises about pay are core trafficking mechanisms — they're how 'I'll work for a while' becomes 'I can't leave'. (Display metadata only — the category's weight and aggregation fn stay in @hti/scoring weights/risk.weights.json.)"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"code": "980-006-000-000-000-000-000",
|
|
99
|
+
"key": "cat_vi",
|
|
100
|
+
"title": "Concerning working conditions",
|
|
101
|
+
"selectable": true,
|
|
102
|
+
"parentCode": null,
|
|
103
|
+
"childCodes": [],
|
|
104
|
+
"definition": "Canonical @hti/scoring category id: `VI`. Features of the work environment and advertisements that correlate with exploitation: availability patterns, dangerous services, price anomalies, substance references, outcall-only arrangements. Why it matters: Exploitative or dangerous conditions — always-available, dangerous services, quota-driven, substance-involved — predict vulnerability, whether through trafficking or survival-driven work. (Display metadata only — the category's weight and aggregation fn stay in @hti/scoring weights/risk.weights.json.)"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"code": "980-007-000-000-000-000-000",
|
|
108
|
+
"key": "cat_vii",
|
|
109
|
+
"title": "Constrained ability to exit",
|
|
110
|
+
"selectable": true,
|
|
111
|
+
"parentCode": null,
|
|
112
|
+
"childCodes": [],
|
|
113
|
+
"definition": "Canonical @hti/scoring category id: `VII`. Barriers to leaving: abusive or controlling relationships, withheld identification, dependence on the income for survival, threats, criminal records used as leverage, isolation from support. Why it matters: The harder it is for someone to walk away, the more exploitable they are — abusive relationships, lost ID, survival dependence. This is what 'coercion' looks like operationally. (Display metadata only — the category's weight and aggregation fn stay in @hti/scoring weights/risk.weights.json.)"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"code": "980-008-000-000-000-000-000",
|
|
117
|
+
"key": "cat_viii",
|
|
118
|
+
"title": "General Vulnerabilities",
|
|
119
|
+
"selectable": true,
|
|
120
|
+
"parentCode": null,
|
|
121
|
+
"childCodes": [],
|
|
122
|
+
"definition": "Canonical @hti/scoring category id: `VIII`. Background vulnerabilities that traffickers often take advantage of: prior traumas, behavioral/health risks, length of time in the industry, social isolation, economic hardship, LGBTQ+ status, age. Why it matters: Homelessness, isolation, prior trauma, and economic hardship are the background conditions traffickers look for and leverage. (Display metadata only — the category's weight and aggregation fn stay in @hti/scoring weights/risk.weights.json.)"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"code": "980-009-000-000-000-000-000",
|
|
126
|
+
"key": "cat_ix",
|
|
127
|
+
"title": "Network characteristics",
|
|
128
|
+
"selectable": true,
|
|
129
|
+
"parentCode": null,
|
|
130
|
+
"childCodes": [],
|
|
131
|
+
"definition": "Canonical @hti/scoring category id: `IX`. Structural properties of the social and ad network around the person: shared identifiers across many providers, proximity to known facilitators, geographic clustering. Why it matters: If a person was a trafficker in one situation, others connected to them are at higher risk. A person's network — who they share contacts, ads, or geography with — moves their score. (Display metadata only — the category's weight and aggregation fn stay in @hti/scoring weights/risk.weights.json.)"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "risk_severity_band",
|
|
3
|
+
"name": "Core Risk Severity Band (CVC-238)",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"_status": "CANONICAL — VERIFIED. Replaces the WITHDRAWN provisional `risk_band` (CVC-981, shipped in 0.8.11), which duplicated this vocabulary under an invented number AND dropped its load-bearing thresholds. Sourced from `data/cvcs/core_risk_severity_band.yaml` @ prototype HEAD a596eb9 (vocab_status: verified; Notion CVC-238, Owner Crysta Price, Verification 'Verified', Status 'Ready for dev'). IMPORTED FROM THE YAML MIRROR, NOT THE FINAL CSV EXPORT: the Final export's Code column is corrupted with a leading em-dash (`—risk-1` … `—risk-5`); the yaml is clean. KEY SYSTEM: CVC entry keys must match /^[a-z][a-z0-9_]*$/, so the canonical hyphenated codes `risk-1`…`risk-5` are carried verbatim in the `canonicalCode` field and the keys are their underscore transliterations `risk_1`…`risk_5`. THRESHOLDS ARE LOAD-BEARING and are carried here (`lowerBand` 0/20/40/60/80): the milestone band-crossing trigger reads them (upward crossings only). Internal scale is 0–100; the leads-app / prototype display scale is 0–10 (x10). RECONCILED with @hti/scoring @ 9b5d654 `weights/risk.weights.json` `bands` = {severe: 8.0, elevated: 6.0, review: 4.0, watch: 2.0} on the 0–10 DISPLAY scale — these AGREE with CVC-238's `lowerBand` 80/60/40/20 on the 0–100 internal scale (x10), and the band NAMES agree exactly (stable/watch/review/elevated/severe). `stable` is the terminal else-branch and correctly has no cutoff of its own. NO DISAGREEMENT. Cutoffs remain CALIBRATION owned by @hti/scoring and may be recalibrated without a CVC change; the values recorded here are the canonical codebook's own, per ADR-CONTRACT-scoring-vocab-model-boundary. ONE scale applied at TWO scopes: per-person AGGREGATE band (the weighted rollup) and per-indicator ATOMIC severity.",
|
|
6
|
+
"_source": "htilabstech/prototype@a596eb9 data/cvcs/core_risk_severity_band.yaml (CVC-238, verified) + Final CVCs/Risk Signal & Severity (CVC-238)/",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "Risk severity band"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "238-000-000-000-000-000-000",
|
|
14
|
+
"key": "missingness_root",
|
|
15
|
+
"title": "Unknown, Redacted, or Missing",
|
|
16
|
+
"selectable": false,
|
|
17
|
+
"parentCode": null,
|
|
18
|
+
"childCodes": [
|
|
19
|
+
"238-000-000-000-000-000-001",
|
|
20
|
+
"238-000-000-000-000-000-002",
|
|
21
|
+
"238-000-000-000-000-000-003"
|
|
22
|
+
],
|
|
23
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected) under the workspace standard ANON semantic. The canonical export carries a single L0 `UNK`; the anonymous / data_not_collected sentinels are added per SOT convention."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "238-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "238-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"canonicalCode": "UNK",
|
|
33
|
+
"definition": "Unknown or cannot be determined from the available information. NOT a safe default: do not treat as a neutral “safe” value in a derived current status, do not persist as a long-term state, and consider excluding from training labels — trigger a follow-up prompt instead. Distinct from `risk_1` (Stable): an unscored subject has no band, it is not banded low."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"code": "238-000-000-000-000-000-002",
|
|
37
|
+
"key": "anonymous",
|
|
38
|
+
"title": "Anonymous / declined to answer",
|
|
39
|
+
"selectable": true,
|
|
40
|
+
"parentCode": "238-000-000-000-000-000-000",
|
|
41
|
+
"childCodes": [],
|
|
42
|
+
"definition": "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"code": "238-000-000-000-000-000-003",
|
|
46
|
+
"key": "data_not_collected",
|
|
47
|
+
"title": "Data not collected",
|
|
48
|
+
"selectable": true,
|
|
49
|
+
"parentCode": "238-000-000-000-000-000-000",
|
|
50
|
+
"childCodes": [],
|
|
51
|
+
"definition": "No attempt was made to collect the value. System-only sentinel per GLOBAL_DESIGN_RULES."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"code": "238-001-000-000-000-000-000",
|
|
55
|
+
"key": "risk_1",
|
|
56
|
+
"title": "Stable",
|
|
57
|
+
"selectable": true,
|
|
58
|
+
"parentCode": null,
|
|
59
|
+
"childCodes": [],
|
|
60
|
+
"definition": "Stable — band 1 of the canonical five-tier risk severity scale (CVC-238). Internal score range 0 – 19 (0–100); display range 0.0 – 1.9 (0–10). As an indicator severity: Protective / autonomy — chooses own clients, sets own schedule. Floor band. Stable is PROTECTIVE, not merely “absent” (load-bearing): the floor explicitly means reassuring/autonomy signals, so they render green and actually pull the score down rather than reading as a neutral zero. NOT a missingness value — an unscored subject is not banded at all (use the missingness quadruplet).",
|
|
61
|
+
"canonicalCode": "risk-1",
|
|
62
|
+
"ordinal": 1,
|
|
63
|
+
"lowerBand": 0,
|
|
64
|
+
"bandRangeInternal": "0 – 19",
|
|
65
|
+
"bandRangeDisplay": "0.0 – 1.9",
|
|
66
|
+
"asIndicator": "Protective / autonomy — chooses own clients, sets own schedule",
|
|
67
|
+
"descriptorVictim": "Few indicators present. Routine follow-up.",
|
|
68
|
+
"descriptorOffender": "Few indicators present. Routine follow-up."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "238-002-000-000-000-000-000",
|
|
72
|
+
"key": "risk_2",
|
|
73
|
+
"title": "Watch",
|
|
74
|
+
"selectable": true,
|
|
75
|
+
"parentCode": null,
|
|
76
|
+
"childCodes": [],
|
|
77
|
+
"definition": "Watch — band 2 of the canonical five-tier risk severity scale (CVC-238). Internal score range 20 – 39 (0–100); display range 2.0 – 3.9 (0–10). As an indicator severity: Low-severity context signal.",
|
|
78
|
+
"canonicalCode": "risk-2",
|
|
79
|
+
"ordinal": 2,
|
|
80
|
+
"lowerBand": 20,
|
|
81
|
+
"bandRangeInternal": "20 – 39",
|
|
82
|
+
"bandRangeDisplay": "2.0 – 3.9",
|
|
83
|
+
"asIndicator": "Low-severity context signal",
|
|
84
|
+
"descriptorVictim": "Some signals worth noting. Keep a light watch.",
|
|
85
|
+
"descriptorOffender": "Some signals worth noting. Keep a light watch."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"code": "238-003-000-000-000-000-000",
|
|
89
|
+
"key": "risk_3",
|
|
90
|
+
"title": "Review",
|
|
91
|
+
"selectable": true,
|
|
92
|
+
"parentCode": null,
|
|
93
|
+
"childCodes": [],
|
|
94
|
+
"definition": "Review — band 3 of the canonical five-tier risk severity scale (CVC-238). Internal score range 40 – 59 (0–100); display range 4.0 – 5.9 (0–10). As an indicator severity: Contextual vulnerability — homelessness, isolation, in CS industry.",
|
|
95
|
+
"canonicalCode": "risk-3",
|
|
96
|
+
"ordinal": 3,
|
|
97
|
+
"lowerBand": 40,
|
|
98
|
+
"bandRangeInternal": "40 – 59",
|
|
99
|
+
"bandRangeDisplay": "4.0 – 5.9",
|
|
100
|
+
"asIndicator": "Contextual vulnerability — homelessness, isolation, in CS industry",
|
|
101
|
+
"descriptorVictim": "Indicators present but mixed. Worth a closer look.",
|
|
102
|
+
"descriptorOffender": "Indicators present but mixed. Worth a closer look."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"code": "238-004-000-000-000-000-000",
|
|
106
|
+
"key": "risk_4",
|
|
107
|
+
"title": "Elevated",
|
|
108
|
+
"selectable": true,
|
|
109
|
+
"parentCode": null,
|
|
110
|
+
"childCodes": [],
|
|
111
|
+
"definition": "Elevated — band 4 of the canonical five-tier risk severity scale (CVC-238). Internal score range 60 – 79 (0–100); display range 6.0 – 7.9 (0–10). As an indicator severity: Control / coercion mechanism — debt, no ID, “turned out”.",
|
|
112
|
+
"canonicalCode": "risk-4",
|
|
113
|
+
"ordinal": 4,
|
|
114
|
+
"lowerBand": 60,
|
|
115
|
+
"bandRangeInternal": "60 – 79",
|
|
116
|
+
"bandRangeDisplay": "6.0 – 7.9",
|
|
117
|
+
"asIndicator": "Control / coercion mechanism — debt, no ID, “turned out”",
|
|
118
|
+
"descriptorVictim": "Converging signals. Prioritise and plan a response.",
|
|
119
|
+
"descriptorOffender": "Converging signals. Prioritise and plan a response."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"code": "238-005-000-000-000-000-000",
|
|
123
|
+
"key": "risk_5",
|
|
124
|
+
"title": "Severe",
|
|
125
|
+
"selectable": true,
|
|
126
|
+
"parentCode": null,
|
|
127
|
+
"childCodes": [],
|
|
128
|
+
"definition": "Severe — band 5 of the canonical five-tier risk severity scale (CVC-238). Internal score range 80 – 100 (0–100); display range 8.0 – 10.0 (0–10). As an indicator severity: Confirmed harm / coercion — forced sex act, strangulation.",
|
|
129
|
+
"canonicalCode": "risk-5",
|
|
130
|
+
"ordinal": 5,
|
|
131
|
+
"lowerBand": 80,
|
|
132
|
+
"bandRangeInternal": "80 – 100",
|
|
133
|
+
"bandRangeDisplay": "8.0 – 10.0",
|
|
134
|
+
"asIndicator": "Confirmed harm / coercion — forced sex act, strangulation",
|
|
135
|
+
"descriptorVictim": "Strong, consistent indicators. Act now.",
|
|
136
|
+
"descriptorOffender": "Strong, converging facilitation evidence. Act now."
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "roi_method",
|
|
3
|
+
"name": "roiMethod",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"_status": "PROVISIONAL — net-new value-CVC not yet in Notion; provisional 900+ numbering; substantive values sourced verbatim from the PAVE @pave/domain enum of the same name (D10 source-from-platform-common). PENDING canonical Notion authoring + steward ratification of titles/definitions.",
|
|
6
|
+
"_source": "pave-2.0/packages/domain/src/enums.ts",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "ROI delivery method"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "970-000-000-000-000-000-000",
|
|
14
|
+
"key": "missingness_root",
|
|
15
|
+
"title": "Unknown, Redacted, or Missing",
|
|
16
|
+
"selectable": false,
|
|
17
|
+
"parentCode": null,
|
|
18
|
+
"childCodes": [
|
|
19
|
+
"970-000-000-000-000-000-001",
|
|
20
|
+
"970-000-000-000-000-000-002",
|
|
21
|
+
"970-000-000-000-000-000-003"
|
|
22
|
+
],
|
|
23
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "970-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "970-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "The roi_method is unknown or cannot be determined."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "970-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "970-000-000-000-000-000-000",
|
|
40
|
+
"childCodes": [],
|
|
41
|
+
"definition": "Value is intentionally withheld, declined, or redacted."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"code": "970-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "970-000-000-000-000-000-000",
|
|
49
|
+
"childCodes": [],
|
|
50
|
+
"definition": "No attempt was made to collect the value."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"code": "970-001-000-000-000-000-000",
|
|
54
|
+
"key": "thread_caseshare",
|
|
55
|
+
"title": "Thread CaseShare",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "ROI delivered via a Thread CaseShare."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"code": "970-002-000-000-000-000-000",
|
|
63
|
+
"key": "thread_magic_link",
|
|
64
|
+
"title": "Thread magic link",
|
|
65
|
+
"selectable": true,
|
|
66
|
+
"parentCode": null,
|
|
67
|
+
"childCodes": [],
|
|
68
|
+
"definition": "ROI delivered via a Thread magic-link referral."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "970-003-000-000-000-000-000",
|
|
72
|
+
"key": "email",
|
|
73
|
+
"title": "Email",
|
|
74
|
+
"selectable": true,
|
|
75
|
+
"parentCode": null,
|
|
76
|
+
"childCodes": [],
|
|
77
|
+
"definition": "ROI delivered by email."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"code": "970-004-000-000-000-000-000",
|
|
81
|
+
"key": "fax",
|
|
82
|
+
"title": "Fax",
|
|
83
|
+
"selectable": true,
|
|
84
|
+
"parentCode": null,
|
|
85
|
+
"childCodes": [],
|
|
86
|
+
"definition": "ROI delivered by fax."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"code": "970-005-000-000-000-000-000",
|
|
90
|
+
"key": "secure_portal",
|
|
91
|
+
"title": "Secure portal",
|
|
92
|
+
"selectable": true,
|
|
93
|
+
"parentCode": null,
|
|
94
|
+
"childCodes": [],
|
|
95
|
+
"definition": "ROI delivered via a secure portal."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"code": "970-006-000-000-000-000-000",
|
|
99
|
+
"key": "in_person",
|
|
100
|
+
"title": "In person",
|
|
101
|
+
"selectable": true,
|
|
102
|
+
"parentCode": null,
|
|
103
|
+
"childCodes": [],
|
|
104
|
+
"definition": "ROI delivered in person."
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|