@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
@@ -26391,12 +26391,12 @@ var riskCategory_v1_0_0_default = {
26391
26391
  ]
26392
26392
  };
26393
26393
 
26394
- // src/cvcs/coreFunctions.v1.0.0.json
26395
- var coreFunctions_v1_0_0_default = {
26394
+ // src/cvcs/coreFunctions.v1.1.0.json
26395
+ var coreFunctions_v1_1_0_default = {
26396
26396
  domain: "core_functions",
26397
26397
  name: "Core Functions",
26398
- version: "1.0.0",
26399
- _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.",
26398
+ version: "1.1.0",
26399
+ _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.",
26400
26400
  _source: "Notion CVC-133 core - functions (collection://3211ef14-abcd-8024-867d-000be4b35a79)",
26401
26401
  levels: {
26402
26402
  "0": "Unknown or Missing",
@@ -27135,6 +27135,15 @@ var coreFunctions_v1_0_0_default = {
27135
27135
  parentCode: null,
27136
27136
  childCodes: [],
27137
27137
  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).]"
27138
+ },
27139
+ {
27140
+ code: "133-078-000-000-000-000-000",
27141
+ key: "note_open_departed_author",
27142
+ title: "Open a deactivated author's private notes",
27143
+ selectable: true,
27144
+ parentCode: null,
27145
+ childCodes: [],
27146
+ 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).]`
27138
27147
  }
27139
27148
  ]
27140
27149
  };
@@ -27275,17 +27284,101 @@ var needsAssessmentChangeType_v1_0_0_default = {
27275
27284
  ]
27276
27285
  };
27277
27286
 
27278
- // src/cvcs/coreInformationScope.v1.0.0.json
27279
- var coreInformationScope_v1_0_0_default = {
27287
+ // src/cvcs/coreInformationScope.v1.1.0.json
27288
+ var coreInformationScope_v1_1_0_default = {
27280
27289
  domain: "core_information_scope",
27281
27290
  name: "Core Information Scope",
27282
- version: "1.0.0",
27283
- _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.",
27284
- _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)",
27291
+ version: "1.1.0",
27292
+ _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.',
27293
+ _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)",
27294
+ _supersedes: {
27295
+ version: "1.0.0",
27296
+ keyMap: {
27297
+ missingness_root: "missingness_root",
27298
+ unknown: "unknown",
27299
+ anonymous: "anonymous",
27300
+ data_not_collected: "data_not_collected",
27301
+ identifying: "identifying",
27302
+ names: "names",
27303
+ dob: "dob",
27304
+ addresses: "addresses",
27305
+ additional_ids: "additional_ids",
27306
+ demographics: "demographics",
27307
+ risk: "risk",
27308
+ screen_indicators: "screen_indicators",
27309
+ victimization: "victimization",
27310
+ ida_full: "ida_full",
27311
+ ida_consid: "ida_consid",
27312
+ initial_screen: "initial_screen",
27313
+ tra: "tra",
27314
+ lap: "lap",
27315
+ danger_assessment: "danger_assessment",
27316
+ injury_and_strangulation: "injury_and_strangulation",
27317
+ stalking_assessment: "stalking_assessment",
27318
+ ae_intake: "ae_intake",
27319
+ hope_scale: "hope_scale",
27320
+ assessment_records: "assessment_records",
27321
+ determinations: "determinations",
27322
+ offender_facilitator: "offender_facilitator",
27323
+ system_involvement: "system_involvement",
27324
+ derived_risk_signals: "derived_risk_signals",
27325
+ contact: "contact",
27326
+ contact_info: "contact_info",
27327
+ safe_locations: "safe_locations",
27328
+ priorities_safety: "priorities_safety",
27329
+ encounter_location: "encounter_location",
27330
+ services: "services",
27331
+ contact_history: "contact_history",
27332
+ service_history: "service_history",
27333
+ plans_goals: "plans_goals",
27334
+ notes: "notes",
27335
+ screen_notes: "screen_notes",
27336
+ case_notes: "case_notes",
27337
+ background: "background",
27338
+ health_accommodation: "health_accommodation",
27339
+ accommodation_needs: "accommodation_needs",
27340
+ disability_subtypes: "disability_subtypes",
27341
+ mental_health_status: "mental_health_status",
27342
+ substance_use_status: "substance_use_status",
27343
+ chronic_health_status: "chronic_health_status",
27344
+ hiv_status: "hiv_status",
27345
+ mental_health_screen: "mental_health_screen",
27346
+ trauma_and_coping_screen: "trauma_and_coping_screen",
27347
+ behavioral_health_intake: "behavioral_health_intake",
27348
+ immigration_legal_status: "immigration_legal_status",
27349
+ immigration_status: "immigration_status",
27350
+ uscis_alien_number: "uscis_alien_number",
27351
+ federal_protection_applications: "federal_protection_applications",
27352
+ tvap_enrollment: "tvap_enrollment",
27353
+ le_report_status: "le_report_status",
27354
+ system: "system",
27355
+ system_info: "system_info",
27356
+ network_associations: "network_associations",
27357
+ network_membership: "network_membership",
27358
+ persona_links: "persona_links",
27359
+ commercial_activity: "commercial_activity",
27360
+ ad_content: "ad_content",
27361
+ commercial_patterns: "commercial_patterns",
27362
+ investigative_work_product: "investigative_work_product",
27363
+ case_determinations: "case_determinations",
27364
+ case_lifecycle: "case_lifecycle",
27365
+ case_attachments: "case_attachments",
27366
+ object_identifiers: "object_identifiers",
27367
+ phone_identifiers: "phone_identifiers",
27368
+ object_identity_attributes: "object_identity_attributes"
27369
+ },
27370
+ retiredCodes: [],
27371
+ notes: {
27372
+ 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).",
27373
+ 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.",
27374
+ 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.",
27375
+ 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."
27376
+ }
27377
+ },
27285
27378
  levels: {
27286
27379
  "0": "Unknown or Missing",
27287
27380
  "1": "Category (policy grain, not selectable)",
27288
- "2": "Information unit (authorization grain, selectable)"
27381
+ "2": "Information unit (authorization grain; selectable unless retired)"
27289
27382
  },
27290
27383
  entries: [
27291
27384
  {
@@ -27701,10 +27794,11 @@ var coreInformationScope_v1_0_0_default = {
27701
27794
  selectable: true,
27702
27795
  parentCode: "236-002-000-000-000-000-000",
27703
27796
  childCodes: [],
27704
- 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.",
27797
+ 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).",
27705
27798
  levelFloor: 3,
27706
27799
  appRelevance: [
27707
27800
  "PAVE",
27801
+ "Thread",
27708
27802
  "LEADS"
27709
27803
  ],
27710
27804
  shareableDefault: true,
@@ -27717,10 +27811,11 @@ var coreInformationScope_v1_0_0_default = {
27717
27811
  selectable: true,
27718
27812
  parentCode: "236-002-000-000-000-000-000",
27719
27813
  childCodes: [],
27720
- definition: "System involvement. Category `risk`.",
27814
+ 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).",
27721
27815
  levelFloor: 3,
27722
27816
  appRelevance: [
27723
- "PAVE"
27817
+ "PAVE",
27818
+ "Thread"
27724
27819
  ],
27725
27820
  shareableDefault: true,
27726
27821
  specialDataType: "survivor_confidential"
@@ -27853,7 +27948,7 @@ var coreInformationScope_v1_0_0_default = {
27853
27948
  selectable: true,
27854
27949
  parentCode: "236-004-000-000-000-000-000",
27855
27950
  childCodes: [],
27856
- definition: "Contact history with this agency. Category `services`. Honest-empty (\xA7 5.4): no canonical UDD field carries the interaction register yet.",
27951
+ 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.",
27857
27952
  levelFloor: 3,
27858
27953
  appRelevance: [
27859
27954
  "PAVE",
@@ -27903,9 +27998,10 @@ var coreInformationScope_v1_0_0_default = {
27903
27998
  childCodes: [
27904
27999
  "236-005-001-000-000-000-000",
27905
28000
  "236-005-002-000-000-000-000",
27906
- "236-005-003-000-000-000-000"
28001
+ "236-005-003-000-000-000-000",
28002
+ "236-005-004-000-000-000-000"
27907
28003
  ],
27908
- 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).",
28004
+ 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.",
27909
28005
  levelFloor: 3,
27910
28006
  appRelevance: [
27911
28007
  "PAVE",
@@ -27918,26 +28014,20 @@ var coreInformationScope_v1_0_0_default = {
27918
28014
  code: "236-005-001-000-000-000-000",
27919
28015
  key: "screen_notes",
27920
28016
  title: "Screen notes",
27921
- selectable: true,
28017
+ selectable: false,
27922
28018
  parentCode: "236-005-000-000-000-000-000",
27923
28019
  childCodes: [],
27924
- definition: "Screen notes. Category `notes`.",
27925
- levelFloor: 3,
27926
- appRelevance: [
27927
- "PAVE",
27928
- "Thread"
27929
- ],
27930
- shareableDefault: true,
27931
- specialDataType: "survivor_confidential"
28020
+ 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.",
28021
+ retired: true
27932
28022
  },
27933
28023
  {
27934
28024
  code: "236-005-002-000-000-000-000",
27935
28025
  key: "case_notes",
27936
- title: "Detailed case notes",
28026
+ title: "Session & case notes",
27937
28027
  selectable: true,
27938
28028
  parentCode: "236-005-000-000-000-000-000",
27939
28029
  childCodes: [],
27940
- definition: "Detailed case notes. Category `notes`.",
28030
+ 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.",
27941
28031
  levelFloor: 3,
27942
28032
  appRelevance: [
27943
28033
  "PAVE",
@@ -27950,10 +28040,20 @@ var coreInformationScope_v1_0_0_default = {
27950
28040
  code: "236-005-003-000-000-000-000",
27951
28041
  key: "background",
27952
28042
  title: "Background information",
28043
+ selectable: false,
28044
+ parentCode: "236-005-000-000-000-000-000",
28045
+ childCodes: [],
28046
+ 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.",
28047
+ retired: true
28048
+ },
28049
+ {
28050
+ code: "236-005-004-000-000-000-000",
28051
+ key: "session_summary",
28052
+ title: "Session summary",
27953
28053
  selectable: true,
27954
28054
  parentCode: "236-005-000-000-000-000-000",
27955
28055
  childCodes: [],
27956
- definition: "Background information. Category `notes`.",
28056
+ 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.",
27957
28057
  levelFloor: 3,
27958
28058
  appRelevance: [
27959
28059
  "PAVE",
@@ -28476,13 +28576,55 @@ var coreInformationScope_v1_0_0_default = {
28476
28576
  ]
28477
28577
  };
28478
28578
 
28479
- // src/cvcs/roiScope.v1.0.0.json
28480
- var roiScope_v1_0_0_default = {
28579
+ // src/cvcs/roiScope.v1.2.0.json
28580
+ var roiScope_v1_2_0_default = {
28481
28581
  domain: "roi_scope",
28482
28582
  name: "ROI Scope",
28483
- version: "1.1.0",
28484
- _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.",
28485
- _source: "htilabstech/prototype@a596eb9 HTI-LEADS-PAVE-Thread-prototype.html HTI_SHARE_SCOPE_GROUPS",
28583
+ version: "1.2.0",
28584
+ _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.',
28585
+ _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)",
28586
+ _supersedes: {
28587
+ version: "1.1.0",
28588
+ keyMap: {
28589
+ missingness_root: "missingness_root",
28590
+ unknown: "unknown",
28591
+ anonymous: "anonymous",
28592
+ data_not_collected: "data_not_collected",
28593
+ names: "names",
28594
+ dob: "dob",
28595
+ addresses: "addresses",
28596
+ additional_ids: "additional_ids",
28597
+ demographics: "demographics",
28598
+ screen_indicators: "screen_indicators",
28599
+ victimization: "victimization",
28600
+ ida_full: "ida_full",
28601
+ ida_consid: "ida_consid",
28602
+ contact_info: "contact_info",
28603
+ service_history: "service_history",
28604
+ screen_notes: "screen_notes",
28605
+ case_notes: "case_notes",
28606
+ background: "background",
28607
+ system_info: "system_info",
28608
+ contact_history: "contact_history",
28609
+ accommodation_needs: "accommodation_needs",
28610
+ disability_subtypes: "disability_subtypes",
28611
+ mental_health_status: "mental_health_status",
28612
+ substance_use_status: "substance_use_status",
28613
+ chronic_health_status: "chronic_health_status",
28614
+ hiv_status: "hiv_status",
28615
+ immigration_status: "immigration_status",
28616
+ uscis_alien_number: "uscis_alien_number",
28617
+ federal_protection_applications: "federal_protection_applications",
28618
+ tvap_enrollment: "tvap_enrollment",
28619
+ le_report_status: "le_report_status"
28620
+ },
28621
+ retiredCodes: [],
28622
+ notes: {
28623
+ 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.',
28624
+ 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).",
28625
+ 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)."
28626
+ }
28627
+ },
28486
28628
  levels: {
28487
28629
  "0": "Unknown or Missing",
28488
28630
  "1": "ROI scope item"
@@ -28631,10 +28773,11 @@ var roiScope_v1_0_0_default = {
28631
28773
  code: "983-012-000-000-000-000-000",
28632
28774
  key: "screen_notes",
28633
28775
  title: "Screen notes",
28634
- selectable: true,
28776
+ selectable: false,
28635
28777
  parentCode: null,
28636
28778
  childCodes: [],
28637
- definition: "Narrative notes captured during screening. Narrative-notes scope group."
28779
+ 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.",
28780
+ retired: true
28638
28781
  },
28639
28782
  {
28640
28783
  code: "983-013-000-000-000-000-000",
@@ -28649,10 +28792,11 @@ var roiScope_v1_0_0_default = {
28649
28792
  code: "983-014-000-000-000-000-000",
28650
28793
  key: "background",
28651
28794
  title: "Background information",
28652
- selectable: true,
28795
+ selectable: false,
28653
28796
  parentCode: null,
28654
28797
  childCodes: [],
28655
- definition: "Background/narrative context about the subject. Narrative-notes scope group."
28798
+ 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.",
28799
+ retired: true
28656
28800
  },
28657
28801
  {
28658
28802
  code: "983-015-000-000-000-000-000",
@@ -44709,9 +44853,9 @@ export {
44709
44853
  contactLinkType_v1_0_0_default as contactLinkTypeSot,
44710
44854
  contactSafetyStatus_v1_0_0_default as contactSafetyStatusSot,
44711
44855
  coreDhState_v1_0_0_default as coreDhStateSot,
44712
- coreFunctions_v1_0_0_default as coreFunctionsSot,
44856
+ coreFunctions_v1_1_0_default as coreFunctionsSot,
44713
44857
  coreIndicators_v1_1_0_default as coreIndicatorsSot,
44714
- coreInformationScope_v1_0_0_default as coreInformationScopeSot,
44858
+ coreInformationScope_v1_1_0_default as coreInformationScopeSot,
44715
44859
  coreReferralOutcome_v1_0_0_default as coreReferralOutcomeSot,
44716
44860
  countries_v1_0_0_default as countriesSot,
44717
44861
  createdBySystem_v1_0_0_default as createdBySystemSot,
@@ -44816,7 +44960,7 @@ export {
44816
44960
  riskIdentificationMilestone_v1_0_0_default as riskIdentificationMilestoneSot,
44817
44961
  riskSeverityBand_v1_0_0_default as riskSeverityBandSot,
44818
44962
  roiMethod_v1_0_0_default as roiMethodSot,
44819
- roiScope_v1_0_0_default as roiScopeSot,
44963
+ roiScope_v1_2_0_default as roiScopeSot,
44820
44964
  roiStatus_v1_0_0_default as roiStatusSot,
44821
44965
  roleContext_v1_0_0_default as roleContextSot,
44822
44966
  romanticRelationshipChangeType_v1_0_0_default as romanticRelationshipChangeTypeSot,