@htilabs/platform-common-models 0.14.0 → 0.17.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 (39) hide show
  1. package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-ctHTp2df.d.cts} +36 -36
  2. package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-ctHTp2df.d.ts} +36 -36
  3. package/dist/cvcs/index.cjs +184 -40
  4. package/dist/cvcs/index.cjs.map +1 -1
  5. package/dist/cvcs/index.d.cts +191 -41
  6. package/dist/cvcs/index.d.ts +191 -41
  7. package/dist/cvcs/index.js +184 -40
  8. package/dist/cvcs/index.js.map +1 -1
  9. package/dist/enums/index.cjs +3 -1
  10. package/dist/enums/index.cjs.map +1 -1
  11. package/dist/enums/index.d.cts +8 -6
  12. package/dist/enums/index.d.ts +8 -6
  13. package/dist/enums/index.js +3 -1
  14. package/dist/enums/index.js.map +1 -1
  15. package/dist/{index-CDoqrfc1.d.ts → index-4DiJrn7y.d.ts} +1 -1
  16. package/dist/{index-Zu_mOJRn.d.cts → index-qreOzXYS.d.cts} +1 -1
  17. package/dist/index.cjs +187 -41
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +187 -41
  22. package/dist/index.js.map +1 -1
  23. package/dist/models/index.d.cts +2 -2
  24. package/dist/models/index.d.ts +2 -2
  25. package/dist/schemas/index.d.cts +11 -11
  26. package/dist/schemas/index.d.ts +11 -11
  27. package/package.json +27 -26
  28. package/src/__tests__/__snapshots__/cvc-sot.snap +5 -5
  29. package/src/__tests__/core-functions-canon.test.ts +53 -0
  30. package/src/__tests__/core-information-scope-invariant.test.ts +298 -19
  31. package/src/__tests__/cvc-sot-snapshot.test.ts +19 -12
  32. package/src/__tests__/cvc-status-parser.test.ts +1 -1
  33. package/src/__tests__/cvc-structural.test.ts +3 -3
  34. package/src/__tests__/location-type-routing-invariant.test.ts +1 -1
  35. package/src/cvcs/{coreFunctions.v1.0.0.json → coreFunctions.v1.1.0.json} +11 -2
  36. package/src/cvcs/{coreInformationScope.v1.0.0.json → coreInformationScope.v1.1.0.json} +113 -22
  37. package/src/cvcs/index.ts +3 -3
  38. package/src/cvcs/{roiScope.v1.0.0.json → roiScope.v1.2.0.json} +51 -7
  39. package/src/generated/cvc-enums.ts +8 -6
@@ -46,9 +46,9 @@ __export(cvcs_exports, {
46
46
  contactLinkTypeSot: () => contactLinkType_v1_0_0_default,
47
47
  contactSafetyStatusSot: () => contactSafetyStatus_v1_0_0_default,
48
48
  coreDhStateSot: () => coreDhState_v1_0_0_default,
49
- coreFunctionsSot: () => coreFunctions_v1_0_0_default,
49
+ coreFunctionsSot: () => coreFunctions_v1_1_0_default,
50
50
  coreIndicatorsSot: () => coreIndicators_v1_1_0_default,
51
- coreInformationScopeSot: () => coreInformationScope_v1_0_0_default,
51
+ coreInformationScopeSot: () => coreInformationScope_v1_1_0_default,
52
52
  coreReferralOutcomeSot: () => coreReferralOutcome_v1_0_0_default,
53
53
  countriesSot: () => countries_v1_0_0_default,
54
54
  createdBySystemSot: () => createdBySystem_v1_0_0_default,
@@ -153,7 +153,7 @@ __export(cvcs_exports, {
153
153
  riskIdentificationMilestoneSot: () => riskIdentificationMilestone_v1_0_0_default,
154
154
  riskSeverityBandSot: () => riskSeverityBand_v1_0_0_default,
155
155
  roiMethodSot: () => roiMethod_v1_0_0_default,
156
- roiScopeSot: () => roiScope_v1_0_0_default,
156
+ roiScopeSot: () => roiScope_v1_2_0_default,
157
157
  roiStatusSot: () => roiStatus_v1_0_0_default,
158
158
  roleContextSot: () => roleContext_v1_0_0_default,
159
159
  romanticRelationshipChangeTypeSot: () => romanticRelationshipChangeType_v1_0_0_default,
@@ -26597,12 +26597,12 @@ var riskCategory_v1_0_0_default = {
26597
26597
  ]
26598
26598
  };
26599
26599
 
26600
- // src/cvcs/coreFunctions.v1.0.0.json
26601
- var coreFunctions_v1_0_0_default = {
26600
+ // src/cvcs/coreFunctions.v1.1.0.json
26601
+ var coreFunctions_v1_1_0_default = {
26602
26602
  domain: "core_functions",
26603
26603
  name: "Core Functions",
26604
- version: "1.0.0",
26605
- _status: "DRAFTED \u2014 NEEDS REVIEW: canonical Notion CVC-133 (core - functions), verified v1.0, ported verbatim from the Notion codebook. Canonical numbering (133), NOT provisional. Per-entry lifecycle Status (v1 / future / not-started) is carried in each definition.",
26604
+ version: "1.1.0",
26605
+ _status: "DRAFTED \u2014 NEEDS REVIEW: canonical Notion CVC-133 (core - functions), verified v1.0, ported verbatim from the Notion codebook. Canonical numbering (133), NOT provisional. Per-entry lifecycle Status (v1 / future / not-started) is carried in each definition. VERSION 1.1.0 (additive; ADR-CVC-0.8.13 Addendum 2026-10-05): APPENDS `note_open_departed_author` at 133-078 (added 2026-10-05 while building the Narrative notes Spec v2, rule 10; canon's own logic_notes mark the row as awaiting steward review (Crysta); canon `data/cvcs/core_functions.yaml` L68-93 @ prototype 9ef79748, unchanged at fed744f3, and the codebook_all.csv export). Default Off for Account Admin (MEM-ADM) only; bounds are not carried by this entry schema. Every 1.0.0 code and key is unchanged. Canon carries 112 functions; this SOT carries 78 \u2014 the other 34 canon rows are a separate absorb, not taken here.",
26606
26606
  _source: "Notion CVC-133 core - functions (collection://3211ef14-abcd-8024-867d-000be4b35a79)",
26607
26607
  levels: {
26608
26608
  "0": "Unknown or Missing",
@@ -27341,6 +27341,15 @@ var coreFunctions_v1_0_0_default = {
27341
27341
  parentCode: null,
27342
27342
  childCodes: [],
27343
27343
  definition: "Create, invite, deactivate, and manage user accounts within a member account or platform context. [Status: Defined; existing PAVE function. Platform: PLATFORM. User-relevant: no. Admin-relevant: yes. Category: Identity & access administration, Platform administration (HTI-only).]"
27344
+ },
27345
+ {
27346
+ code: "133-078-000-000-000-000-000",
27347
+ key: "note_open_departed_author",
27348
+ title: "Open a deactivated author's private notes",
27349
+ selectable: true,
27350
+ parentCode: null,
27351
+ childCodes: [],
27352
+ definition: `Move a deactivated author's "Private to me" notes to "Our account only", so the account can read notes whose author no longer has an account. The admin cannot read a note before opening it and cannot move it any further. [Status: Defined; new function. Platform: PAVE, THREAD. User-relevant: no. Admin-relevant: yes. Category: Account administration (member admin).]`
27344
27353
  }
27345
27354
  ]
27346
27355
  };
@@ -27481,17 +27490,101 @@ var needsAssessmentChangeType_v1_0_0_default = {
27481
27490
  ]
27482
27491
  };
27483
27492
 
27484
- // src/cvcs/coreInformationScope.v1.0.0.json
27485
- var coreInformationScope_v1_0_0_default = {
27493
+ // src/cvcs/coreInformationScope.v1.1.0.json
27494
+ var coreInformationScope_v1_1_0_default = {
27486
27495
  domain: "core_information_scope",
27487
27496
  name: "Core Information Scope",
27488
- version: "1.0.0",
27489
- _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.",
27490
- _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)",
27497
+ version: "1.1.0",
27498
+ _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.',
27499
+ _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)",
27500
+ _supersedes: {
27501
+ version: "1.0.0",
27502
+ keyMap: {
27503
+ missingness_root: "missingness_root",
27504
+ unknown: "unknown",
27505
+ anonymous: "anonymous",
27506
+ data_not_collected: "data_not_collected",
27507
+ identifying: "identifying",
27508
+ names: "names",
27509
+ dob: "dob",
27510
+ addresses: "addresses",
27511
+ additional_ids: "additional_ids",
27512
+ demographics: "demographics",
27513
+ risk: "risk",
27514
+ screen_indicators: "screen_indicators",
27515
+ victimization: "victimization",
27516
+ ida_full: "ida_full",
27517
+ ida_consid: "ida_consid",
27518
+ initial_screen: "initial_screen",
27519
+ tra: "tra",
27520
+ lap: "lap",
27521
+ danger_assessment: "danger_assessment",
27522
+ injury_and_strangulation: "injury_and_strangulation",
27523
+ stalking_assessment: "stalking_assessment",
27524
+ ae_intake: "ae_intake",
27525
+ hope_scale: "hope_scale",
27526
+ assessment_records: "assessment_records",
27527
+ determinations: "determinations",
27528
+ offender_facilitator: "offender_facilitator",
27529
+ system_involvement: "system_involvement",
27530
+ derived_risk_signals: "derived_risk_signals",
27531
+ contact: "contact",
27532
+ contact_info: "contact_info",
27533
+ safe_locations: "safe_locations",
27534
+ priorities_safety: "priorities_safety",
27535
+ encounter_location: "encounter_location",
27536
+ services: "services",
27537
+ contact_history: "contact_history",
27538
+ service_history: "service_history",
27539
+ plans_goals: "plans_goals",
27540
+ notes: "notes",
27541
+ screen_notes: "screen_notes",
27542
+ case_notes: "case_notes",
27543
+ background: "background",
27544
+ health_accommodation: "health_accommodation",
27545
+ accommodation_needs: "accommodation_needs",
27546
+ disability_subtypes: "disability_subtypes",
27547
+ mental_health_status: "mental_health_status",
27548
+ substance_use_status: "substance_use_status",
27549
+ chronic_health_status: "chronic_health_status",
27550
+ hiv_status: "hiv_status",
27551
+ mental_health_screen: "mental_health_screen",
27552
+ trauma_and_coping_screen: "trauma_and_coping_screen",
27553
+ behavioral_health_intake: "behavioral_health_intake",
27554
+ immigration_legal_status: "immigration_legal_status",
27555
+ immigration_status: "immigration_status",
27556
+ uscis_alien_number: "uscis_alien_number",
27557
+ federal_protection_applications: "federal_protection_applications",
27558
+ tvap_enrollment: "tvap_enrollment",
27559
+ le_report_status: "le_report_status",
27560
+ system: "system",
27561
+ system_info: "system_info",
27562
+ network_associations: "network_associations",
27563
+ network_membership: "network_membership",
27564
+ persona_links: "persona_links",
27565
+ commercial_activity: "commercial_activity",
27566
+ ad_content: "ad_content",
27567
+ commercial_patterns: "commercial_patterns",
27568
+ investigative_work_product: "investigative_work_product",
27569
+ case_determinations: "case_determinations",
27570
+ case_lifecycle: "case_lifecycle",
27571
+ case_attachments: "case_attachments",
27572
+ object_identifiers: "object_identifiers",
27573
+ phone_identifiers: "phone_identifiers",
27574
+ object_identity_attributes: "object_identity_attributes"
27575
+ },
27576
+ retiredCodes: [],
27577
+ notes: {
27578
+ 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).",
27579
+ 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.",
27580
+ 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.",
27581
+ 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."
27582
+ }
27583
+ },
27491
27584
  levels: {
27492
27585
  "0": "Unknown or Missing",
27493
27586
  "1": "Category (policy grain, not selectable)",
27494
- "2": "Information unit (authorization grain, selectable)"
27587
+ "2": "Information unit (authorization grain; selectable unless retired)"
27495
27588
  },
27496
27589
  entries: [
27497
27590
  {
@@ -27907,10 +28000,11 @@ var coreInformationScope_v1_0_0_default = {
27907
28000
  selectable: true,
27908
28001
  parentCode: "236-002-000-000-000-000-000",
27909
28002
  childCodes: [],
27910
- 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.",
28003
+ 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).",
27911
28004
  levelFloor: 3,
27912
28005
  appRelevance: [
27913
28006
  "PAVE",
28007
+ "Thread",
27914
28008
  "LEADS"
27915
28009
  ],
27916
28010
  shareableDefault: true,
@@ -27923,10 +28017,11 @@ var coreInformationScope_v1_0_0_default = {
27923
28017
  selectable: true,
27924
28018
  parentCode: "236-002-000-000-000-000-000",
27925
28019
  childCodes: [],
27926
- definition: "System involvement. Category `risk`.",
28020
+ 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).",
27927
28021
  levelFloor: 3,
27928
28022
  appRelevance: [
27929
- "PAVE"
28023
+ "PAVE",
28024
+ "Thread"
27930
28025
  ],
27931
28026
  shareableDefault: true,
27932
28027
  specialDataType: "survivor_confidential"
@@ -28059,7 +28154,7 @@ var coreInformationScope_v1_0_0_default = {
28059
28154
  selectable: true,
28060
28155
  parentCode: "236-004-000-000-000-000-000",
28061
28156
  childCodes: [],
28062
- definition: "Contact history with this agency. Category `services`. Honest-empty (\xA7 5.4): no canonical UDD field carries the interaction register yet.",
28157
+ 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.",
28063
28158
  levelFloor: 3,
28064
28159
  appRelevance: [
28065
28160
  "PAVE",
@@ -28109,9 +28204,10 @@ var coreInformationScope_v1_0_0_default = {
28109
28204
  childCodes: [
28110
28205
  "236-005-001-000-000-000-000",
28111
28206
  "236-005-002-000-000-000-000",
28112
- "236-005-003-000-000-000-000"
28207
+ "236-005-003-000-000-000-000",
28208
+ "236-005-004-000-000-000-000"
28113
28209
  ],
28114
- 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).",
28210
+ 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.",
28115
28211
  levelFloor: 3,
28116
28212
  appRelevance: [
28117
28213
  "PAVE",
@@ -28124,26 +28220,20 @@ var coreInformationScope_v1_0_0_default = {
28124
28220
  code: "236-005-001-000-000-000-000",
28125
28221
  key: "screen_notes",
28126
28222
  title: "Screen notes",
28127
- selectable: true,
28223
+ selectable: false,
28128
28224
  parentCode: "236-005-000-000-000-000-000",
28129
28225
  childCodes: [],
28130
- definition: "Screen notes. Category `notes`.",
28131
- levelFloor: 3,
28132
- appRelevance: [
28133
- "PAVE",
28134
- "Thread"
28135
- ],
28136
- shareableDefault: true,
28137
- specialDataType: "survivor_confidential"
28226
+ 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.",
28227
+ retired: true
28138
28228
  },
28139
28229
  {
28140
28230
  code: "236-005-002-000-000-000-000",
28141
28231
  key: "case_notes",
28142
- title: "Detailed case notes",
28232
+ title: "Session & case notes",
28143
28233
  selectable: true,
28144
28234
  parentCode: "236-005-000-000-000-000-000",
28145
28235
  childCodes: [],
28146
- definition: "Detailed case notes. Category `notes`.",
28236
+ 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.",
28147
28237
  levelFloor: 3,
28148
28238
  appRelevance: [
28149
28239
  "PAVE",
@@ -28156,10 +28246,20 @@ var coreInformationScope_v1_0_0_default = {
28156
28246
  code: "236-005-003-000-000-000-000",
28157
28247
  key: "background",
28158
28248
  title: "Background information",
28249
+ selectable: false,
28250
+ parentCode: "236-005-000-000-000-000-000",
28251
+ childCodes: [],
28252
+ 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.",
28253
+ retired: true
28254
+ },
28255
+ {
28256
+ code: "236-005-004-000-000-000-000",
28257
+ key: "session_summary",
28258
+ title: "Session summary",
28159
28259
  selectable: true,
28160
28260
  parentCode: "236-005-000-000-000-000-000",
28161
28261
  childCodes: [],
28162
- definition: "Background information. Category `notes`.",
28262
+ 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.",
28163
28263
  levelFloor: 3,
28164
28264
  appRelevance: [
28165
28265
  "PAVE",
@@ -28682,13 +28782,55 @@ var coreInformationScope_v1_0_0_default = {
28682
28782
  ]
28683
28783
  };
28684
28784
 
28685
- // src/cvcs/roiScope.v1.0.0.json
28686
- var roiScope_v1_0_0_default = {
28785
+ // src/cvcs/roiScope.v1.2.0.json
28786
+ var roiScope_v1_2_0_default = {
28687
28787
  domain: "roi_scope",
28688
28788
  name: "ROI Scope",
28689
- version: "1.1.0",
28690
- _status: "DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering. 0.8.13: COMPLETED against the canonical 27-item source. 0.8.12 shipped 15 of the canonical 27; the missing 12 are added here. Nothing PAVE shipped was invented \u2014 this was purely a gap. Canonical source: `HTI_SHARE_SCOPE_GROUPS` in HTI-LEADS-PAVE-Thread-prototype.html @ HEAD a596eb9 (7 groups x items = 27): identifying (5) + risk (4) + contact (3) + notes (3) + health_accommodation (6) + immigration_legal_status (5) + system (1). The GROUP axis (identifying / risk / contact / notes / health_accommodation / immigration_legal_status / system) is a separate presentation concern and is deliberately NOT modelled as hierarchy rows here \u2014 this CVC is the flat item vocabulary that an ROI authorizes. PENDING canonical Notion authoring + steward ratification.",
28691
- _source: "htilabstech/prototype@a596eb9 HTI-LEADS-PAVE-Thread-prototype.html HTI_SHARE_SCOPE_GROUPS",
28789
+ version: "1.2.0",
28790
+ _status: 'DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering. 0.8.13: COMPLETED against the canonical 27-item source. 0.8.12 shipped 15 of the canonical 27; the missing 12 are added here. Nothing PAVE shipped was invented \u2014 this was purely a gap. Canonical source: `HTI_SHARE_SCOPE_GROUPS` in HTI-LEADS-PAVE-Thread-prototype.html @ HEAD a596eb9 (7 groups x items = 27): identifying (5) + risk (4) + contact (3) + notes (3) + health_accommodation (6) + immigration_legal_status (5) + system (1). The GROUP axis (identifying / risk / contact / notes / health_accommodation / immigration_legal_status / system) is a separate presentation concern and is deliberately NOT modelled as hierarchy rows here \u2014 this CVC is the flat item vocabulary that an ROI authorizes. PENDING canonical Notion authoring + steward ratification. VERSION 1.2.0 supersedes 1.1.0 (co-bwc): `screen_notes` (983-012) and `background` (983-014) are RETIRED TOMBSTONES, matching CVC-236 `core_information_scope` v1.1.0 (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 that names one resolves to "retired", not "unknown". Not additive, hence the version (ADR-CVC-0.8.13 Addendum 2026-10-05; see `_supersedes`). This flat vocabulary is LEGACY: new units (e.g. `session_summary`, 236-005-004) are minted in CVC-236 only and are not mirrored here.',
28791
+ _source: "htilabstech/prototype@a596eb9 HTI-LEADS-PAVE-Thread-prototype.html HTI_SHARE_SCOPE_GROUPS; v1.2.0 retirements: htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 9ef79748 retired_units (L467)",
28792
+ _supersedes: {
28793
+ version: "1.1.0",
28794
+ keyMap: {
28795
+ missingness_root: "missingness_root",
28796
+ unknown: "unknown",
28797
+ anonymous: "anonymous",
28798
+ data_not_collected: "data_not_collected",
28799
+ names: "names",
28800
+ dob: "dob",
28801
+ addresses: "addresses",
28802
+ additional_ids: "additional_ids",
28803
+ demographics: "demographics",
28804
+ screen_indicators: "screen_indicators",
28805
+ victimization: "victimization",
28806
+ ida_full: "ida_full",
28807
+ ida_consid: "ida_consid",
28808
+ contact_info: "contact_info",
28809
+ service_history: "service_history",
28810
+ screen_notes: "screen_notes",
28811
+ case_notes: "case_notes",
28812
+ background: "background",
28813
+ system_info: "system_info",
28814
+ contact_history: "contact_history",
28815
+ accommodation_needs: "accommodation_needs",
28816
+ disability_subtypes: "disability_subtypes",
28817
+ mental_health_status: "mental_health_status",
28818
+ substance_use_status: "substance_use_status",
28819
+ chronic_health_status: "chronic_health_status",
28820
+ hiv_status: "hiv_status",
28821
+ immigration_status: "immigration_status",
28822
+ uscis_alien_number: "uscis_alien_number",
28823
+ federal_protection_applications: "federal_protection_applications",
28824
+ tvap_enrollment: "tvap_enrollment",
28825
+ le_report_status: "le_report_status"
28826
+ },
28827
+ retiredCodes: [],
28828
+ notes: {
28829
+ summary: 'Every v1.1.0 key is still an entry in v1.2.0, at its v1.1.0 code, so `keyMap` is the identity and `retiredCodes` is empty: no code was withdrawn. Non-additive because 2 published items are now RETIRED tombstones (notes below), matching CVC-236 `core_information_scope` v1.1.0, which retired the same two keys; nothing was added. Before this version the package gave two answers to "is screen_notes offerable" (co-bwc). The file was named `roiScope.v1.0.0.json` while declaring version 1.1.0 (the 0.8.13 completion); the published version superseded here is the declared 1.1.0.',
28830
+ screen_notes: "v1.1.0 `screen_notes` was a selectable item. 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 983-012 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI that names it narrows, never widens. CVC-236 v1.1.0 retired the same key (canon `data/cvcs/core_information_scope.yaml` `retired_units` L467 @ prototype 9ef79748); canon records that only demo data named it (Crysta 2026-10-04).",
28831
+ background: "v1.1.0 `background` was a selectable item. Retired 2026-10-05 (Narrative notes, signed Spec v2 rule 5): Nothing ever captured it. It stays at 983-014 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI that names it narrows, never widens. CVC-236 v1.1.0 retired the same key (canon `data/cvcs/core_information_scope.yaml` `retired_units` L467 @ prototype 9ef79748); canon records that only demo data named it (Crysta 2026-10-04)."
28832
+ }
28833
+ },
28692
28834
  levels: {
28693
28835
  "0": "Unknown or Missing",
28694
28836
  "1": "ROI scope item"
@@ -28837,10 +28979,11 @@ var roiScope_v1_0_0_default = {
28837
28979
  code: "983-012-000-000-000-000-000",
28838
28980
  key: "screen_notes",
28839
28981
  title: "Screen notes",
28840
- selectable: true,
28982
+ selectable: false,
28841
28983
  parentCode: null,
28842
28984
  childCodes: [],
28843
- definition: "Narrative notes captured during screening. Narrative-notes scope group."
28985
+ definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5), matching its CVC-236 `core_information_scope` v1.1.0 twin. The Initial Screen's notes box is an instrument note and belongs to the Initial Screen. No longer offered in an ROI; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
28986
+ retired: true
28844
28987
  },
28845
28988
  {
28846
28989
  code: "983-013-000-000-000-000-000",
@@ -28855,10 +28998,11 @@ var roiScope_v1_0_0_default = {
28855
28998
  code: "983-014-000-000-000-000-000",
28856
28999
  key: "background",
28857
29000
  title: "Background information",
28858
- selectable: true,
29001
+ selectable: false,
28859
29002
  parentCode: null,
28860
29003
  childCodes: [],
28861
- definition: "Background/narrative context about the subject. Narrative-notes scope group."
29004
+ definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5), matching its CVC-236 `core_information_scope` v1.1.0 twin. Nothing ever captured it. No longer offered in an ROI; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
29005
+ retired: true
28862
29006
  },
28863
29007
  {
28864
29008
  code: "983-015-000-000-000-000-000",