@htilabs/platform-common-models 0.8.10 → 0.8.13
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/constants/index.cjs +133 -285
- 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 +133 -273
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +13075 -859
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +15852 -2457
- package/dist/cvcs/index.d.ts +15852 -2457
- package/dist/cvcs/index.js +13042 -859
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +14288 -1232
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1201 -108
- package/dist/index.d.ts +1201 -108
- package/dist/index.js +14229 -1219
- package/dist/index.js.map +1 -1
- package/dist/{platform-auth-BSKYSDKe.d.cts → platform-auth-BfCMuAlC.d.cts} +2 -74
- package/dist/{platform-auth-BSKYSDKe.d.ts → platform-auth-BfCMuAlC.d.ts} +2 -74
- package/dist/schemas/index.cjs +0 -152
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js +0 -152
- 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 +4 -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 +132 -32
- package/src/__tests__/cvc-136-scoring-invariant.test.ts +323 -0
- package/src/__tests__/cvc-drift-gate.test.ts +596 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +59 -7
- package/src/__tests__/cvc-structural.test.ts +47 -1
- package/src/constants/ic.ts +185 -321
- package/src/constants/service-catalog.ts +4 -2
- 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.0.0.json → assertionDomain.v1.1.0.json} +78 -96
- package/src/cvcs/{checkInPhase.v1.0.0.json → checkInPhase.v1.1.0.json} +20 -2
- package/src/cvcs/citizenship.v1.0.0.json +3062 -0
- package/src/cvcs/contactInfoTypes.v1.0.0.json +40 -40
- 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 +50 -50
- package/src/cvcs/hmisCurrentLivingSituation.v1.0.0.json +409 -0
- package/src/cvcs/homelessStatus.v1.0.0.json +27 -27
- package/src/cvcs/housingSubsidyTypes.v1.0.0.json +26 -24
- 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/index.ts +68 -1
- package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +106 -0
- package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +32 -32
- 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/radiusBucket.v1.0.0.json +23 -11
- package/src/cvcs/recencyBand.v1.0.0.json +126 -42
- package/src/cvcs/referralEntityCategory.v1.0.0.json +40 -40
- package/src/cvcs/riskCategory.v1.0.0.json +134 -0
- package/src/cvcs/riskSeverityBand.v1.0.0.json +139 -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 +2 -1
- 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 +40 -40
- 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/sourceSystem.v1.0.0.json +203 -0
- package/src/cvcs/traffickingRelevantRole.v1.0.0.json +104 -0
- package/src/cvcs/userRoles.v1.0.0.json +203 -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 +1248 -105
- package/src/services/cvcRegistryService.ts +1 -1
|
@@ -8,6 +8,46 @@
|
|
|
8
8
|
"2": "Domain"
|
|
9
9
|
},
|
|
10
10
|
"entries": [
|
|
11
|
+
{
|
|
12
|
+
"code": "149-000-000-000-000-000-000",
|
|
13
|
+
"key": "missingness_root",
|
|
14
|
+
"title": "Unknown, Redacted, or Missing",
|
|
15
|
+
"selectable": false,
|
|
16
|
+
"parentCode": null,
|
|
17
|
+
"childCodes": [
|
|
18
|
+
"149-000-000-000-000-000-001",
|
|
19
|
+
"149-000-000-000-000-000-002",
|
|
20
|
+
"149-000-000-000-000-000-003"
|
|
21
|
+
],
|
|
22
|
+
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"code": "149-000-000-000-000-000-001",
|
|
26
|
+
"key": "unknown",
|
|
27
|
+
"title": "Unknown",
|
|
28
|
+
"selectable": true,
|
|
29
|
+
"parentCode": "149-000-000-000-000-000-000",
|
|
30
|
+
"childCodes": [],
|
|
31
|
+
"definition": "Value is unknown at time of entry."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"code": "149-000-000-000-000-000-002",
|
|
35
|
+
"key": "anonymous",
|
|
36
|
+
"title": "Anonymous",
|
|
37
|
+
"selectable": true,
|
|
38
|
+
"parentCode": "149-000-000-000-000-000-000",
|
|
39
|
+
"childCodes": [],
|
|
40
|
+
"definition": "Value is intentionally withheld or redacted."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"code": "149-000-000-000-000-000-003",
|
|
44
|
+
"key": "data_not_collected",
|
|
45
|
+
"title": "Data not collected",
|
|
46
|
+
"selectable": true,
|
|
47
|
+
"parentCode": "149-000-000-000-000-000-000",
|
|
48
|
+
"childCodes": [],
|
|
49
|
+
"definition": "No attempt was made to collect the value."
|
|
50
|
+
},
|
|
11
51
|
{
|
|
12
52
|
"code": "149-001-000-000-000-000-000",
|
|
13
53
|
"key": "phone",
|
|
@@ -205,46 +245,6 @@
|
|
|
205
245
|
"parentCode": "149-004-000-000-000-000-000",
|
|
206
246
|
"childCodes": [],
|
|
207
247
|
"definition": "Social media platform not enumerated above; use with an accompanying free-text specifier when possible."
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"code": "149-000-000-000-000-000-000",
|
|
211
|
-
"key": "missingness_root",
|
|
212
|
-
"title": "Unknown, Redacted, or Missing",
|
|
213
|
-
"selectable": false,
|
|
214
|
-
"parentCode": null,
|
|
215
|
-
"childCodes": [
|
|
216
|
-
"149-000-000-000-000-000-001",
|
|
217
|
-
"149-000-000-000-000-000-002",
|
|
218
|
-
"149-000-000-000-000-000-003"
|
|
219
|
-
],
|
|
220
|
-
"definition": "Root group for values indicating absent, withheld, or uncollected data."
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"code": "149-000-000-000-000-000-001",
|
|
224
|
-
"key": "unknown",
|
|
225
|
-
"title": "Unknown",
|
|
226
|
-
"selectable": true,
|
|
227
|
-
"parentCode": "149-000-000-000-000-000-000",
|
|
228
|
-
"childCodes": [],
|
|
229
|
-
"definition": "Value is unknown at time of entry."
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"code": "149-000-000-000-000-000-002",
|
|
233
|
-
"key": "anonymous",
|
|
234
|
-
"title": "Anonymous",
|
|
235
|
-
"selectable": true,
|
|
236
|
-
"parentCode": "149-000-000-000-000-000-000",
|
|
237
|
-
"childCodes": [],
|
|
238
|
-
"definition": "Value is intentionally withheld or redacted."
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"code": "149-000-000-000-000-000-003",
|
|
242
|
-
"key": "data_not_collected",
|
|
243
|
-
"title": "Data not collected",
|
|
244
|
-
"selectable": true,
|
|
245
|
-
"parentCode": "149-000-000-000-000-000-000",
|
|
246
|
-
"childCodes": [],
|
|
247
|
-
"definition": "No attempt was made to collect the value."
|
|
248
248
|
}
|
|
249
249
|
]
|
|
250
250
|
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "dh_state",
|
|
3
|
+
"name": "Determination (Findings) State (CVC-233)",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"_status": "CANONICAL — authored 0.8.13 from `data/cvcs/core_DH_state.yaml` @ prototype HEAD a596eb9 (`cvc: core-DH_state`, `vocab_status: ready_for_dev`; Notion CVC-233; the 5-state model + the short-form codes were CONFIRMED by Crysta 2026-06-08 and RATIFIED to the short forms by Toby 2026-06-28 (option A) to match the live runtime `dh_state: \"PROV\"` + chip-canvas section H5). Lifecycle state of a determination / Findings (DH) artifact: DRAFT -> PROV -> PEND_ISS -> ISSUED -> SUPER. WHY THIS WAS MISSING UNTIL NOW: platform-common was SQUATTING on CVC-233 with `housing_subsidy_types` (whose canonical number is 194). Because slot 233 LOOKED occupied, the gap analysis never saw that `core-DH_state` was absent entirely. 0.8.13 renumbers `housing_subsidy_types` 233 -> 194 and authors this vocabulary at its correct number. This is the canonical argument for the CVC drift gate: a wrong number does not just mislabel a domain, it MASKS the absence of the domain that owns the number. INDEPENDENT AXES (load-bearing, from the canonical source): `dh_state` and CVC-138 `determination_level` (suspected / reported / disclosed / verified) are INDEPENDENT. determination_level lives on the assertion at EVERY state and escalates WITHIN `prov`; the escalation is itself a meaningful timeline event. PER-DETERMINATION, NOT PER-SUBJECT: parallel determinations coexist (a Provisional current finding alongside an Issued prior finding with a different time scope) — parallel is NOT supersession. NO \"NOT STARTED\" STATE (deliberate asymmetry vs assessment_state): a finding's ABSENCE is its not-started condition. SHARING FOR REVIEW IS NOT A STATE — it is an activity-log event; the determination stays in its current state. Entry keys are the lowercase transliterations of the ratified short codes; the canonical code is carried verbatim in `canonicalCode`. `chipPhase` / `pulses` carry the chip-taxonomy H5 mapping (only `pend_iss` pulses — it is the one state awaiting a human act). OPEN UPSTREAM (Notion-side, user-owned, per the yaml header): the Verified core-DH_state EXPORT's Code column still reads the VERBOSE forms (`provisional_finding` etc.); per option A the Notion Code column should be updated to these short codes and re-exported.",
|
|
6
|
+
"_source": "htilabstech/prototype@a596eb9 data/cvcs/core_DH_state.yaml (CVC-233, ready_for_dev) + Final CVCs/CVC_INDEX.md:31",
|
|
7
|
+
"levels": {
|
|
8
|
+
"0": "Unknown or Missing",
|
|
9
|
+
"1": "Determination (Findings) lifecycle state"
|
|
10
|
+
},
|
|
11
|
+
"entries": [
|
|
12
|
+
{
|
|
13
|
+
"code": "233-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
|
+
"233-000-000-000-000-000-001",
|
|
20
|
+
"233-000-000-000-000-000-002",
|
|
21
|
+
"233-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 yaml enumerates only the 5 substantive lifecycle states, so the quadruplet is added per SOT convention."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"code": "233-000-000-000-000-000-001",
|
|
27
|
+
"key": "unknown",
|
|
28
|
+
"title": "Unknown",
|
|
29
|
+
"selectable": true,
|
|
30
|
+
"parentCode": "233-000-000-000-000-000-000",
|
|
31
|
+
"childCodes": [],
|
|
32
|
+
"definition": "The determination's lifecycle state is unknown or cannot be determined from the available information. NOT the same as \"no determination\": per the canonical yaml there is deliberately NO \"not started\" state — a finding's ABSENCE is its not-started condition (the correct asymmetry vs assessment_state)."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "233-000-000-000-000-000-002",
|
|
36
|
+
"key": "anonymous",
|
|
37
|
+
"title": "Anonymous / declined to answer",
|
|
38
|
+
"selectable": true,
|
|
39
|
+
"parentCode": "233-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": "233-000-000-000-000-000-003",
|
|
45
|
+
"key": "data_not_collected",
|
|
46
|
+
"title": "Data not collected",
|
|
47
|
+
"selectable": true,
|
|
48
|
+
"parentCode": "233-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": "233-001-000-000-000-000-000",
|
|
54
|
+
"key": "draft",
|
|
55
|
+
"title": "Draft",
|
|
56
|
+
"selectable": true,
|
|
57
|
+
"parentCode": null,
|
|
58
|
+
"childCodes": [],
|
|
59
|
+
"definition": "The finding has been opened — subject role (victim/offender) + maybe time scope are being set — but NO determination claim exists yet (no determination_level on a finding-level assertion). Setup, not yet a claim. Editable; not of record. Phase — active (static). Visible to teammates as \"determination being set up.\"",
|
|
60
|
+
"canonicalCode": "DRAFT",
|
|
61
|
+
"chipPhase": "active",
|
|
62
|
+
"pulses": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"code": "233-002-000-000-000-000-000",
|
|
66
|
+
"key": "prov",
|
|
67
|
+
"title": "Provisional finding",
|
|
68
|
+
"selectable": true,
|
|
69
|
+
"parentCode": null,
|
|
70
|
+
"childCodes": [],
|
|
71
|
+
"definition": "A determination claim now exists (carries a determination_level — suspected/reported/disclosed) and is being substantiated — evidence anchoring, field-setting, reasoning authoring. Editable at all times; does NOT count in official stats; may sit here for weeks/months across sessions. Phase — active (static). Visible as \"trafficking determination in progress.\"",
|
|
72
|
+
"canonicalCode": "PROV",
|
|
73
|
+
"chipPhase": "active",
|
|
74
|
+
"pulses": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"code": "233-003-000-000-000-000-000",
|
|
78
|
+
"key": "pend_iss",
|
|
79
|
+
"title": "Pending issuance",
|
|
80
|
+
"selectable": true,
|
|
81
|
+
"parentCode": null,
|
|
82
|
+
"childCodes": [],
|
|
83
|
+
"definition": "Authoring is complete — the determination is fully formed and ready. Frozen from further evidence anchoring or text editing without explicitly reverting to Provisional. Awaiting the issuance act, which IS the supervisor/attorney sign-off where a 2nd-signature workflow is in play, else the author's own final issue. Phase — awaiting (PULSES — needs a human to issue / sign off).",
|
|
84
|
+
"canonicalCode": "PEND_ISS",
|
|
85
|
+
"chipPhase": "awaiting",
|
|
86
|
+
"pulses": true
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"code": "233-004-000-000-000-000-000",
|
|
90
|
+
"key": "issued",
|
|
91
|
+
"title": "Issued",
|
|
92
|
+
"selectable": true,
|
|
93
|
+
"parentCode": null,
|
|
94
|
+
"childCodes": [],
|
|
95
|
+
"definition": "Sealed, of record, counts in official stats. Outcome is one of Trafficking (sex/labor/both) · Non-trafficking exploitation · Insufficient information · Not trafficking (time-scoped — \"not trafficking\" must never globally negate future/prior episodes). A singular moment with a signature ritual; the artifact becomes the canonical court-packet view. Phase — resolved-positive (static).",
|
|
96
|
+
"canonicalCode": "ISSUED",
|
|
97
|
+
"chipPhase": "resolved-positive",
|
|
98
|
+
"pulses": false
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"code": "233-005-000-000-000-000-000",
|
|
102
|
+
"key": "super",
|
|
103
|
+
"title": "Superseded",
|
|
104
|
+
"selectable": true,
|
|
105
|
+
"parentCode": null,
|
|
106
|
+
"childCodes": [],
|
|
107
|
+
"definition": "Was Issued, then corrected via supersession. Supersession lineage is preserved (append-only); the previous issuance remains discoverable but inactive for official counts. Parallel issuances (current + prior, different time scopes) are NOT supersession. Phase — retired (static).",
|
|
108
|
+
"canonicalCode": "SUPER",
|
|
109
|
+
"chipPhase": "retired",
|
|
110
|
+
"pulses": false
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|