@htilabs/platform-common-models 0.12.1 → 0.12.3
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/{cvcEntry-0BIB9sen.d.cts → cvcEntry-ctHTp2df.d.cts} +36 -36
- package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-ctHTp2df.d.ts} +36 -36
- package/dist/cvcs/index.cjs +245 -4
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +533 -274
- package/dist/cvcs/index.d.ts +533 -274
- package/dist/cvcs/index.js +244 -4
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +17 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +24 -3
- package/dist/enums/index.d.ts +24 -3
- package/dist/enums/index.js +16 -0
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-CDoqrfc1.d.ts → index-4DiJrn7y.d.ts} +1 -1
- package/dist/{index-Zu_mOJRn.d.cts → index-qreOzXYS.d.cts} +1 -1
- package/dist/index.cjs +317 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +310 -11
- 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/schemas/index.cjs +41 -7
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +116 -12
- package/dist/schemas/index.d.ts +116 -12
- package/dist/schemas/index.js +38 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/{cvc-Cp4uWnAa.d.cts → team-C4LJ5Tex.d.cts} +36 -1
- package/dist/{cvc-Cp4uWnAa.d.ts → team-C4LJ5Tex.d.ts} +36 -1
- package/dist/validation/index.cjs +155 -0
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +1 -1
- package/dist/validation/index.d.ts +1 -1
- package/dist/validation/index.js +153 -0
- package/dist/validation/index.js.map +1 -1
- package/package.json +27 -26
- package/src/__tests__/__snapshots__/cvc-sot.snap +8 -0
- package/src/__tests__/core-information-scope-invariant.test.ts +125 -2
- package/src/__tests__/cvc-drift-gate.test.ts +18 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +17 -0
- package/src/__tests__/cvc-structural.test.ts +5 -0
- package/src/__tests__/share-response-reason-invariant.test.ts +167 -0
- package/src/__tests__/team-directory-fields.test.ts +252 -0
- package/src/cvcs/coreInformationScope.v1.0.0.json +21 -4
- package/src/cvcs/index.ts +4 -0
- package/src/cvcs/shareResponseReason.v1.0.0.json +220 -0
- package/src/generated/cvc-enums.ts +25 -2
- package/src/index.ts +7 -0
- package/src/schemas/index.ts +8 -0
- package/src/schemas/team.ts +118 -0
- package/src/validation/index.ts +1 -0
- package/src/validation/team.ts +48 -0
package/dist/index.js
CHANGED
|
@@ -6715,8 +6715,36 @@ function buildPlatformRoleSchema() {
|
|
|
6715
6715
|
}
|
|
6716
6716
|
var _platformRoleSchema = buildPlatformRoleSchema();
|
|
6717
6717
|
|
|
6718
|
-
// src/schemas/
|
|
6718
|
+
// src/schemas/team.ts
|
|
6719
6719
|
import { Schema as Schema8 } from "mongoose";
|
|
6720
|
+
var TEAM_MODEL_NAME = "Team";
|
|
6721
|
+
var teamDirectorySchemaDefinition = {
|
|
6722
|
+
/**
|
|
6723
|
+
* The platform apps this team works in, as {@link PLATFORM_TOOL} codes
|
|
6724
|
+
* (`"PAVE"`, `"THREAD"`, `"LEADS"`, ...). The referral preset only resolves
|
|
6725
|
+
* to a team whose `apps` includes `"PAVE"`.
|
|
6726
|
+
*/
|
|
6727
|
+
apps: {
|
|
6728
|
+
type: [String],
|
|
6729
|
+
enum: [...PLATFORM_TOOL_VALUES],
|
|
6730
|
+
default: void 0
|
|
6731
|
+
},
|
|
6732
|
+
/**
|
|
6733
|
+
* The teams this team refers to, in priority order. The resolver takes the
|
|
6734
|
+
* first active target that works in PAVE and is not the sending team itself.
|
|
6735
|
+
*/
|
|
6736
|
+
canReferTo: {
|
|
6737
|
+
type: [{ type: Schema8.Types.ObjectId, ref: TEAM_MODEL_NAME }],
|
|
6738
|
+
default: void 0
|
|
6739
|
+
}
|
|
6740
|
+
};
|
|
6741
|
+
function addTeamDirectoryFields(schema) {
|
|
6742
|
+
schema.add(teamDirectorySchemaDefinition);
|
|
6743
|
+
return schema;
|
|
6744
|
+
}
|
|
6745
|
+
|
|
6746
|
+
// src/schemas/cvcRegistry.ts
|
|
6747
|
+
import { Schema as Schema9 } from "mongoose";
|
|
6720
6748
|
var cvcRegistrySchemaDefinition = {
|
|
6721
6749
|
// Versioning — semantic version of this registry bundle
|
|
6722
6750
|
version: {
|
|
@@ -6736,7 +6764,7 @@ var cvcRegistrySchemaDefinition = {
|
|
|
6736
6764
|
default: null
|
|
6737
6765
|
},
|
|
6738
6766
|
agencyId: {
|
|
6739
|
-
type:
|
|
6767
|
+
type: Schema9.Types.ObjectId,
|
|
6740
6768
|
default: null
|
|
6741
6769
|
},
|
|
6742
6770
|
// Lifecycle
|
|
@@ -6778,7 +6806,7 @@ var cvcRegistrySchemaDefinition = {
|
|
|
6778
6806
|
// include / exclude lists from its base before applying its own overrides.
|
|
6779
6807
|
// Indexed below so a base-version bump can find every dependent registry.
|
|
6780
6808
|
basedOn: {
|
|
6781
|
-
type:
|
|
6809
|
+
type: Schema9.Types.ObjectId,
|
|
6782
6810
|
default: null
|
|
6783
6811
|
}
|
|
6784
6812
|
};
|
|
@@ -6787,7 +6815,7 @@ var cvcRegistrySchemaOptions = {
|
|
|
6787
6815
|
collection: "cvc_registries"
|
|
6788
6816
|
};
|
|
6789
6817
|
function buildCvcRegistrySchema() {
|
|
6790
|
-
const schema = new
|
|
6818
|
+
const schema = new Schema9(
|
|
6791
6819
|
cvcRegistrySchemaDefinition,
|
|
6792
6820
|
cvcRegistrySchemaOptions
|
|
6793
6821
|
);
|
|
@@ -6808,7 +6836,7 @@ function buildCvcRegistrySchema() {
|
|
|
6808
6836
|
var _cvcRegistrySchema = buildCvcRegistrySchema();
|
|
6809
6837
|
|
|
6810
6838
|
// src/schemas/cvcEntry.ts
|
|
6811
|
-
import { Schema as
|
|
6839
|
+
import { Schema as Schema10 } from "mongoose";
|
|
6812
6840
|
var CVC_CODE_PATTERN = /^\d{3}(-\d{3}){6}$/;
|
|
6813
6841
|
var CVC_KEY_PATTERN = /^[a-z][a-z0-9_]*$/;
|
|
6814
6842
|
var cvcEntrySchemaDefinition = {
|
|
@@ -6874,7 +6902,7 @@ var cvcEntrySchemaDefinition = {
|
|
|
6874
6902
|
// particular CVC family — e.g. `relevantMechanisms` on service_categories
|
|
6875
6903
|
// entries (a cross-CVC reference into service_mechanisms by key).
|
|
6876
6904
|
meta: {
|
|
6877
|
-
type:
|
|
6905
|
+
type: Schema10.Types.Mixed
|
|
6878
6906
|
}
|
|
6879
6907
|
};
|
|
6880
6908
|
var cvcEntrySchemaOptions = {
|
|
@@ -6885,7 +6913,7 @@ var cvcEntrySchemaOptions = {
|
|
|
6885
6913
|
minimize: false
|
|
6886
6914
|
};
|
|
6887
6915
|
function buildCvcEntrySchema() {
|
|
6888
|
-
const schema = new
|
|
6916
|
+
const schema = new Schema10(cvcEntrySchemaDefinition, cvcEntrySchemaOptions);
|
|
6889
6917
|
schema.index(
|
|
6890
6918
|
{ domain: 1, version: 1, code: 1 },
|
|
6891
6919
|
{ unique: true }
|
|
@@ -7689,6 +7717,20 @@ var CaseShareStateKeys = {
|
|
|
7689
7717
|
declined: "925-005-000-000-000-000-000",
|
|
7690
7718
|
rejected: "925-006-000-000-000-000-000"
|
|
7691
7719
|
};
|
|
7720
|
+
var ShareResponseReasonKeys = {
|
|
7721
|
+
missingness_root: "306-000-000-000-000-000-000",
|
|
7722
|
+
unknown: "306-000-000-000-000-000-001",
|
|
7723
|
+
information_incorrect: "306-001-000-000-000-000-000",
|
|
7724
|
+
not_relevant_for_client: "306-002-000-000-000-000-000",
|
|
7725
|
+
duplicate_already_have: "306-003-000-000-000-000-000",
|
|
7726
|
+
client_declined_recording: "306-004-000-000-000-000-000",
|
|
7727
|
+
wrong_agency_service_area: "306-005-000-000-000-000-000",
|
|
7728
|
+
not_our_client: "306-006-000-000-000-000-000",
|
|
7729
|
+
sent_in_error: "306-007-000-000-000-000-000",
|
|
7730
|
+
no_capacity: "306-008-000-000-000-000-000",
|
|
7731
|
+
cannot_verify_conflicts: "306-009-000-000-000-000-000",
|
|
7732
|
+
wrong_person: "306-010-000-000-000-000-000"
|
|
7733
|
+
};
|
|
7692
7734
|
var FacilitatorEntityTypeKeys = {
|
|
7693
7735
|
missingness_root: "165-000-000-000-000-000-000",
|
|
7694
7736
|
unknown: "165-000-000-000-000-000-001",
|
|
@@ -9901,6 +9943,7 @@ var CoreInformationScopeKeys = {
|
|
|
9901
9943
|
contact: "236-003-000-000-000-000-000",
|
|
9902
9944
|
contact_info: "236-003-001-000-000-000-000",
|
|
9903
9945
|
safe_locations: "236-003-002-000-000-000-000",
|
|
9946
|
+
priorities_safety: "236-003-003-000-000-000-000",
|
|
9904
9947
|
services: "236-004-000-000-000-000-000",
|
|
9905
9948
|
contact_history: "236-004-001-000-000-000-000",
|
|
9906
9949
|
service_history: "236-004-002-000-000-000-000",
|
|
@@ -11546,6 +11589,16 @@ var CvcEnvelopeSchema = z.object({
|
|
|
11546
11589
|
entries: z.array(CvcEntrySchema)
|
|
11547
11590
|
});
|
|
11548
11591
|
|
|
11592
|
+
// src/validation/team.ts
|
|
11593
|
+
import { z as z2 } from "zod";
|
|
11594
|
+
var ObjectIdHexSchema = z2.string().regex(/^[0-9a-fA-F]{24}$/, "must be a 24-character hex ObjectId");
|
|
11595
|
+
var hasNoDuplicates = (values) => new Set(values.map((v) => v.toLowerCase())).size === values.length;
|
|
11596
|
+
var TeamAppSchema = z2.enum(PLATFORM_TOOL_VALUES);
|
|
11597
|
+
var TeamDirectoryFieldsSchema = z2.object({
|
|
11598
|
+
apps: z2.array(TeamAppSchema).refine(hasNoDuplicates, "apps must not repeat an app").optional(),
|
|
11599
|
+
canReferTo: z2.array(ObjectIdHexSchema).refine(hasNoDuplicates, "canReferTo must not repeat a team").optional()
|
|
11600
|
+
});
|
|
11601
|
+
|
|
11549
11602
|
// src/cvcs/serviceCategories.v1.0.0.json
|
|
11550
11603
|
var serviceCategories_v1_0_0_default = {
|
|
11551
11604
|
domain: "service_categories",
|
|
@@ -18935,6 +18988,228 @@ var caseShareState_v1_0_0_default = {
|
|
|
18935
18988
|
]
|
|
18936
18989
|
};
|
|
18937
18990
|
|
|
18991
|
+
// src/cvcs/shareResponseReason.v1.0.0.json
|
|
18992
|
+
var shareResponseReason_v1_0_0_default = {
|
|
18993
|
+
domain: "share_response_reason",
|
|
18994
|
+
name: "Core Share Response Reason",
|
|
18995
|
+
version: "1.0.0",
|
|
18996
|
+
_status: "CANONICAL \u2014 Notion CVC-306 `core-share_response_reason` v1.1, `vocab_status: active` (minted 2026-08-23 in the Crysta-approved steward batch; FULL AUDIT 2026-09-14, SHARING-FAMILY-AUDIT -> Active / 1.1). Exported from prototype canon @ 6c2cfc0a, where it had sat unexported. The STRUCTURED reasons a recipient gives when responding to an inbound case share: ONE codebook with per-CONTEXT selectability (`field_review` \xB7 `decline_share` \xB7 `reject_share`) carried per entry as `contexts` \u2014 a consumer building a picker for one context filters on it, never on `selectable` alone. Rulings encoded upstream (Crysta 2026-08-23): reasons are CHIPS, not prose \u2014 an optional free-text note may ride alongside, never instead (R14); reasons NEVER travel to the sender in v1 (R16); 'connected with the person and they didn't want services' is an ACCEPT + CVC-219 why-nots, never a decline (R15). WORDING (title, definition, `guidance`, `logicNotes`) is verbatim from the Notion codebook export, which the yaml mirror's own header says wins on wording; `tobyRetention` is the yaml mirror's policy-as-data column. Positional ordinals 306-001..010 are MINTED in codebook row order (the codebook's Code column carries slugs only) and FROZEN at that key assignment: a new reason appends at 306-011+, a published code is never renumbered or reused. MISSINGNESS is canon's v1.1 shape: ONE ingestion-only sentinel, UNK (key `unknown`, `canonicalCode: UNK`, `selectable: false` \u2014 canon: never a picker chip; a reason is required at the act). The codebook's archived row(s) DNC (\"Not a value; never emit\") are OMITTED entirely \u2014 no code is assigned, and none ever shipped in a platform-common release. NUMBER: self-declared `cvc_id: CVC-306` and carried by upstream CVC_INDEX.md (`core-share_response_reason`), but the cvcIndex pin (622410b) predates that row, so the drift gate files this domain INDEX_ABSENT until the next pin refresh promotes it to CANONICAL_BINDING.",
|
|
18997
|
+
_source: "htilabstech/prototype/data/cvcs/core_share_response_reason.yaml @ 6c2cfc0a + htilabstech/prototype/Final CVCs/Sharing (IC-65)/core - share_response_reason \u2014 codebook.csv @ 6c2cfc0a (Notion CVC-306 v1.1; read from origin/main)",
|
|
18998
|
+
contexts: {
|
|
18999
|
+
field_review: "Field review",
|
|
19000
|
+
decline_share: "Decline share",
|
|
19001
|
+
reject_share: "Reject share"
|
|
19002
|
+
},
|
|
19003
|
+
levels: {
|
|
19004
|
+
"0": "Unknown or Missing",
|
|
19005
|
+
"1": "Share response reason"
|
|
19006
|
+
},
|
|
19007
|
+
entries: [
|
|
19008
|
+
{
|
|
19009
|
+
code: "306-000-000-000-000-000-000",
|
|
19010
|
+
key: "missingness_root",
|
|
19011
|
+
title: "Unknown, Redacted, or Missing",
|
|
19012
|
+
selectable: false,
|
|
19013
|
+
parentCode: null,
|
|
19014
|
+
childCodes: [
|
|
19015
|
+
"306-000-000-000-000-000-001"
|
|
19016
|
+
],
|
|
19017
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data. Non-standard variant (Unknown only): canonical CVC-306 v1.1 carries ONE ingestion-only sentinel (UNK, the CVC-216 R1 shape); ANON and DNC are deliberately absent, and the codebook's DNC row is [ARCHIVED]. The sentinel is never a picker chip in any context."
|
|
19018
|
+
},
|
|
19019
|
+
{
|
|
19020
|
+
code: "306-000-000-000-000-000-001",
|
|
19021
|
+
key: "unknown",
|
|
19022
|
+
title: "Unknown",
|
|
19023
|
+
selectable: false,
|
|
19024
|
+
parentCode: "306-000-000-000-000-000-000",
|
|
19025
|
+
childCodes: [],
|
|
19026
|
+
definition: "Unknown or cannot be determined from the available information.",
|
|
19027
|
+
canonicalCode: "UNK",
|
|
19028
|
+
contexts: [],
|
|
19029
|
+
guidance: null,
|
|
19030
|
+
logicNotes: "House missingness convention (L0) \u2014 the ONE sentinel (CVC-216 R1 shape, applied 2026-09-14): reserved for ingested share responses whose source never recorded a reason. Never a picker chip in any context (a reason is required at the act). ANON and DNC deliberately absent (declared).",
|
|
19031
|
+
tobyRetention: {
|
|
19032
|
+
class: "tombstone_retain",
|
|
19033
|
+
stewardFlag: true
|
|
19034
|
+
}
|
|
19035
|
+
},
|
|
19036
|
+
{
|
|
19037
|
+
code: "306-001-000-000-000-000-000",
|
|
19038
|
+
key: "information_incorrect",
|
|
19039
|
+
title: "The information is incorrect",
|
|
19040
|
+
selectable: true,
|
|
19041
|
+
parentCode: null,
|
|
19042
|
+
childCodes: [],
|
|
19043
|
+
definition: "The value is wrong \u2014 it does not match reality as the recipient knows it.",
|
|
19044
|
+
contexts: [
|
|
19045
|
+
"field_review"
|
|
19046
|
+
],
|
|
19047
|
+
guidance: "The highest-signal code for platform accuracy learning: an explicit human judgment that the sender's record is wrong on this point.",
|
|
19048
|
+
logicNotes: "Sibling of core - record_removal_reason's created_in_error / value-incorrect family.",
|
|
19049
|
+
tobyRetention: {
|
|
19050
|
+
class: "supersede"
|
|
19051
|
+
}
|
|
19052
|
+
},
|
|
19053
|
+
{
|
|
19054
|
+
code: "306-002-000-000-000-000-000",
|
|
19055
|
+
key: "not_relevant_for_client",
|
|
19056
|
+
title: "Not relevant for my client",
|
|
19057
|
+
selectable: true,
|
|
19058
|
+
parentCode: null,
|
|
19059
|
+
childCodes: [],
|
|
19060
|
+
definition: "The information may be true, but it doesn't belong in this client's record for the services this agency provides.",
|
|
19061
|
+
contexts: [
|
|
19062
|
+
"field_review"
|
|
19063
|
+
],
|
|
19064
|
+
guidance: "Deliberately distinct from information_incorrect \u2014 relevance and accuracy must never collapse into one code (the RemoveAssetFlow lesson).",
|
|
19065
|
+
logicNotes: null,
|
|
19066
|
+
tobyRetention: {
|
|
19067
|
+
class: "tombstone_retain"
|
|
19068
|
+
}
|
|
19069
|
+
},
|
|
19070
|
+
{
|
|
19071
|
+
code: "306-003-000-000-000-000-000",
|
|
19072
|
+
key: "duplicate_already_have",
|
|
19073
|
+
title: "Duplicate of what we have",
|
|
19074
|
+
selectable: true,
|
|
19075
|
+
parentCode: null,
|
|
19076
|
+
childCodes: [],
|
|
19077
|
+
definition: "The recipient already holds this information (or this whole share duplicates one already received).",
|
|
19078
|
+
contexts: [
|
|
19079
|
+
"field_review",
|
|
19080
|
+
"decline_share"
|
|
19081
|
+
],
|
|
19082
|
+
guidance: "Field review: the incoming value adds nothing. Decline: the share as a whole duplicates a prior one.",
|
|
19083
|
+
logicNotes: null,
|
|
19084
|
+
tobyRetention: {
|
|
19085
|
+
class: "tombstone_retain",
|
|
19086
|
+
engineSignal: "same_thing"
|
|
19087
|
+
}
|
|
19088
|
+
},
|
|
19089
|
+
{
|
|
19090
|
+
code: "306-004-000-000-000-000-000",
|
|
19091
|
+
key: "client_declined_recording",
|
|
19092
|
+
title: "Client asked us not to record this",
|
|
19093
|
+
selectable: true,
|
|
19094
|
+
parentCode: null,
|
|
19095
|
+
childCodes: [],
|
|
19096
|
+
definition: "The client asked this agency not to hold this information on file.",
|
|
19097
|
+
contexts: [
|
|
19098
|
+
"field_review"
|
|
19099
|
+
],
|
|
19100
|
+
guidance: "A consent judgment, not an accuracy judgment \u2014 platform learning must never read this as evidence the value is wrong.",
|
|
19101
|
+
logicNotes: "Interacts with the subpoena-exposure balancing test (GDR \xA7 5.61): the advocate is weighing legal-harm risk against service value.",
|
|
19102
|
+
tobyRetention: {
|
|
19103
|
+
class: "inclusion_register"
|
|
19104
|
+
}
|
|
19105
|
+
},
|
|
19106
|
+
{
|
|
19107
|
+
code: "306-005-000-000-000-000-000",
|
|
19108
|
+
key: "wrong_agency_service_area",
|
|
19109
|
+
title: "Wrong agency / outside our service area",
|
|
19110
|
+
selectable: true,
|
|
19111
|
+
parentCode: null,
|
|
19112
|
+
childCodes: [],
|
|
19113
|
+
definition: "This share should not have come to this agency \u2014 wrong coverage area or wrong service type.",
|
|
19114
|
+
contexts: [
|
|
19115
|
+
"decline_share"
|
|
19116
|
+
],
|
|
19117
|
+
guidance: "Decline-only: a routing miss, decided before engaging the content.",
|
|
19118
|
+
logicNotes: null,
|
|
19119
|
+
tobyRetention: {
|
|
19120
|
+
class: "retain_event"
|
|
19121
|
+
}
|
|
19122
|
+
},
|
|
19123
|
+
{
|
|
19124
|
+
code: "306-006-000-000-000-000-000",
|
|
19125
|
+
key: "not_our_client",
|
|
19126
|
+
title: "Not our client",
|
|
19127
|
+
selectable: true,
|
|
19128
|
+
parentCode: null,
|
|
19129
|
+
childCodes: [],
|
|
19130
|
+
definition: "This person is not (and will not become) a client of this agency.",
|
|
19131
|
+
contexts: [
|
|
19132
|
+
"decline_share"
|
|
19133
|
+
],
|
|
19134
|
+
guidance: "Decline-only. NOT for the turned-away scenario \u2014 if the person was actually reached and chose no services, that's an ACCEPT with offered services + why-nots recorded.",
|
|
19135
|
+
logicNotes: null,
|
|
19136
|
+
tobyRetention: {
|
|
19137
|
+
class: "retain_event"
|
|
19138
|
+
}
|
|
19139
|
+
},
|
|
19140
|
+
{
|
|
19141
|
+
code: "306-007-000-000-000-000-000",
|
|
19142
|
+
key: "sent_in_error",
|
|
19143
|
+
title: "Sent in error",
|
|
19144
|
+
selectable: true,
|
|
19145
|
+
parentCode: null,
|
|
19146
|
+
childCodes: [],
|
|
19147
|
+
definition: "The sender shared this by mistake (confirmed with the sender or evident from the content).",
|
|
19148
|
+
contexts: [
|
|
19149
|
+
"decline_share",
|
|
19150
|
+
"reject_share"
|
|
19151
|
+
],
|
|
19152
|
+
guidance: "Available at decline (before engaging) and reject (discovered during review).",
|
|
19153
|
+
logicNotes: null,
|
|
19154
|
+
tobyRetention: {
|
|
19155
|
+
class: "retain_event"
|
|
19156
|
+
}
|
|
19157
|
+
},
|
|
19158
|
+
{
|
|
19159
|
+
code: "306-008-000-000-000-000-000",
|
|
19160
|
+
key: "no_capacity",
|
|
19161
|
+
title: "No capacity right now",
|
|
19162
|
+
selectable: true,
|
|
19163
|
+
parentCode: null,
|
|
19164
|
+
childCodes: [],
|
|
19165
|
+
definition: "The agency cannot take this on at the moment.",
|
|
19166
|
+
contexts: [
|
|
19167
|
+
"decline_share"
|
|
19168
|
+
],
|
|
19169
|
+
guidance: "Decline-only; honest operational reason \u2014 the sender can re-share later (a re-claim starts fresh).",
|
|
19170
|
+
logicNotes: null,
|
|
19171
|
+
tobyRetention: {
|
|
19172
|
+
class: "retain_event"
|
|
19173
|
+
}
|
|
19174
|
+
},
|
|
19175
|
+
{
|
|
19176
|
+
code: "306-009-000-000-000-000-000",
|
|
19177
|
+
key: "cannot_verify_conflicts",
|
|
19178
|
+
title: "Can't verify \u2014 conflicts with the client's account",
|
|
19179
|
+
selectable: true,
|
|
19180
|
+
parentCode: null,
|
|
19181
|
+
childCodes: [],
|
|
19182
|
+
definition: "The delivered content conflicts with what the client has told this agency directly, and cannot be verified.",
|
|
19183
|
+
contexts: [
|
|
19184
|
+
"reject_share"
|
|
19185
|
+
],
|
|
19186
|
+
guidance: "Reject-only: a whole-share trust judgment after review. High-signal for deconfliction/accuracy learning.",
|
|
19187
|
+
logicNotes: null,
|
|
19188
|
+
tobyRetention: {
|
|
19189
|
+
class: "retain_event"
|
|
19190
|
+
}
|
|
19191
|
+
},
|
|
19192
|
+
{
|
|
19193
|
+
code: "306-010-000-000-000-000-000",
|
|
19194
|
+
key: "wrong_person",
|
|
19195
|
+
title: "Wrong person",
|
|
19196
|
+
selectable: true,
|
|
19197
|
+
parentCode: null,
|
|
19198
|
+
childCodes: [],
|
|
19199
|
+
definition: "Review made clear the shared content is about a different person than the recipient's client.",
|
|
19200
|
+
contexts: [
|
|
19201
|
+
"reject_share"
|
|
19202
|
+
],
|
|
19203
|
+
guidance: "Reject-only. Case identity, never person identity: the fix is rejecting the share \u2014 no cross-agency person merge exists or ever will.",
|
|
19204
|
+
logicNotes: null,
|
|
19205
|
+
tobyRetention: {
|
|
19206
|
+
class: "retain_event",
|
|
19207
|
+
engineSignal: "cross_agency_wrongness"
|
|
19208
|
+
}
|
|
19209
|
+
}
|
|
19210
|
+
]
|
|
19211
|
+
};
|
|
19212
|
+
|
|
18938
19213
|
// src/cvcs/facilitatorEntityType.v1.0.0.json
|
|
18939
19214
|
var facilitatorEntityType_v1_0_0_default = {
|
|
18940
19215
|
domain: "facilitator_entity_type",
|
|
@@ -37662,8 +37937,8 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
37662
37937
|
domain: "core_information_scope",
|
|
37663
37938
|
name: "Core Information Scope",
|
|
37664
37939
|
version: "1.0.0",
|
|
37665
|
-
_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 /
|
|
37666
|
-
_source: "htilabstech/prototype
|
|
37940
|
+
_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 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 55 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 PROVISIONAL and may be re-keyed by the Notion steward batch \u2014 pin the id with the product owner before any consumer treats it as stable. PENDING canonical Notion authoring + steward ratification.",
|
|
37941
|
+
_source: "htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 285a9f1d (CVC-236 v2, restructured 2026-08-14, amended 2026-09-29; 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 @ 285a9f1d)",
|
|
37667
37942
|
levels: {
|
|
37668
37943
|
"0": "Unknown or Missing",
|
|
37669
37944
|
"1": "Category (policy grain, not selectable)",
|
|
@@ -38130,9 +38405,10 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
38130
38405
|
parentCode: null,
|
|
38131
38406
|
childCodes: [
|
|
38132
38407
|
"236-003-001-000-000-000-000",
|
|
38133
|
-
"236-003-002-000-000-000-000"
|
|
38408
|
+
"236-003-002-000-000-000-000",
|
|
38409
|
+
"236-003-003-000-000-000-000"
|
|
38134
38410
|
],
|
|
38135
|
-
definition: "Contact & safety \u2014 policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units \u2014 was an empty shell).",
|
|
38411
|
+
definition: "Contact & safety \u2014 policy-grain category. Units under it are the authorization grain. NARROWED 2026-08-14 (restructure ruling 2): contact/service history moved to the NEW services category. SUPERSEDES the 2026-08-13 deliberate-merge note; legacy `contact` grants resolve via the alias layer (CVC-69 precedent). LEADS flag dropped (no LEADS units \u2014 was an empty shell). | 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): third unit priorities_safety \u2014 the immediate-needs triage answers, one disclosure decision.",
|
|
38136
38412
|
levelFloor: 3,
|
|
38137
38413
|
appRelevance: [
|
|
38138
38414
|
"PAVE",
|
|
@@ -38174,6 +38450,22 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
38174
38450
|
specialDataType: "survivor_confidential",
|
|
38175
38451
|
platformFloor: true
|
|
38176
38452
|
},
|
|
38453
|
+
{
|
|
38454
|
+
code: "236-003-003-000-000-000-000",
|
|
38455
|
+
key: "priorities_safety",
|
|
38456
|
+
title: "Priorities & Safety (immediate needs triage)",
|
|
38457
|
+
selectable: true,
|
|
38458
|
+
parentCode: "236-003-000-000-000-000-000",
|
|
38459
|
+
childCodes: [],
|
|
38460
|
+
definition: "Priorities & Safety (immediate needs triage). Category `contact`. NEW 2026-09-29 (PRIORITIES-SAFETY-SCOPE-UNIT, Crysta R1): the completed Immediate Priorities / Priorities & Safety triage, authorized as ONE disclosure decision \u2014 Q1 immediate danger + source of the danger + harm-doer nearby + safe place to go \xB7 Q2 health needs \xB7 Q3 interpreter \xB7 Q4 urgent basic needs \xB7 Q5 transportation (method / time / pickup location) \xB7 Q6 emergency shelter \xB7 Q7 dependents at risk \xB7 Q8 other. Instrument-grain unit on the initial_screen / lap precedent (ruling 1, 2026-08-13), homed under Contact & safety because the answers that had no home are safety facts; the service instances the step derives ride services/service_history on their own. Bidirectional Thread Signal \u2194 PAVE mirror on Q1 (GDR \xA7 6.9.7) \u2014 one unit, both apps. domain_map: priorities_safety \u2192 this unit (R3 EXECUTED later the same day, PRIORITIES-SAFETY-RECORD): CVC-159 domain priorities_safety (Level 1) + monolith emitter emitPrioritiesAnswerCAR (one CAR per answered question) + UDD row capture.priorities_safety; production persistence of the answers stays with Nate under RWT-NEW-priorities-safety-record-and-udd-2026-09-29. Minted in the Notion codebook the same day; codebook row re-synced to the record 2026-09-29.",
|
|
38461
|
+
levelFloor: 3,
|
|
38462
|
+
appRelevance: [
|
|
38463
|
+
"PAVE",
|
|
38464
|
+
"Thread"
|
|
38465
|
+
],
|
|
38466
|
+
shareableDefault: true,
|
|
38467
|
+
specialDataType: "survivor_confidential"
|
|
38468
|
+
},
|
|
38177
38469
|
{
|
|
38178
38470
|
code: "236-004-000-000-000-000-000",
|
|
38179
38471
|
key: "services",
|
|
@@ -55375,6 +55667,7 @@ export {
|
|
|
55375
55667
|
SeverityFollowUpKeys,
|
|
55376
55668
|
SexProviderSubroleKeys,
|
|
55377
55669
|
SharePurposeKeys,
|
|
55670
|
+
ShareResponseReasonKeys,
|
|
55378
55671
|
SignatureMethodKeys,
|
|
55379
55672
|
SignatureTypeKeys,
|
|
55380
55673
|
SmtBodyLocationKeys,
|
|
@@ -55391,7 +55684,10 @@ export {
|
|
|
55391
55684
|
SuggestionSourceKeys,
|
|
55392
55685
|
SupportStrengthKeys,
|
|
55393
55686
|
SupportTopicKeys,
|
|
55687
|
+
TEAM_MODEL_NAME,
|
|
55394
55688
|
THREAD_INVOLVEMENT_ROLES,
|
|
55689
|
+
TeamAppSchema,
|
|
55690
|
+
TeamDirectoryFieldsSchema,
|
|
55395
55691
|
ThreadStatusKeys,
|
|
55396
55692
|
ThreadTypeKeys,
|
|
55397
55693
|
TimeScopeKeys,
|
|
@@ -55412,6 +55708,7 @@ export {
|
|
|
55412
55708
|
actionStepCompletionStatus_v1_0_0_default as actionStepCompletionStatusSot,
|
|
55413
55709
|
actionStepType_v1_0_0_default as actionStepTypeSot,
|
|
55414
55710
|
activityType_v1_0_0_default as activityTypeSot,
|
|
55711
|
+
addTeamDirectoryFields,
|
|
55415
55712
|
addressSchema,
|
|
55416
55713
|
adminRoles_v1_0_0_default as adminRolesSot,
|
|
55417
55714
|
administeringJurisdiction_v1_0_0_default as administeringJurisdictionSot,
|
|
@@ -55631,6 +55928,7 @@ export {
|
|
|
55631
55928
|
severityFollowUp_v1_0_0_default as severityFollowUpSot,
|
|
55632
55929
|
sexProviderSubrole_v1_0_0_default as sexProviderSubroleSot,
|
|
55633
55930
|
sharePurpose_v1_0_0_default as sharePurposeSot,
|
|
55931
|
+
shareResponseReason_v1_0_0_default as shareResponseReasonSot,
|
|
55634
55932
|
signatureMethod_v1_0_0_default as signatureMethodSot,
|
|
55635
55933
|
signatureType_v1_0_0_default as signatureTypeSot,
|
|
55636
55934
|
smtBodyLocation_v1_0_0_default as smtBodyLocationSot,
|
|
@@ -55648,6 +55946,7 @@ export {
|
|
|
55648
55946
|
suggestionSource_v1_0_0_default as suggestionSourceSot,
|
|
55649
55947
|
supportStrength_v1_0_0_default as supportStrengthSot,
|
|
55650
55948
|
supportTopic_v1_0_0_default as supportTopicSot,
|
|
55949
|
+
teamDirectorySchemaDefinition,
|
|
55651
55950
|
threadStatus_v1_0_0_default as threadStatusSot,
|
|
55652
55951
|
threadType_v1_0_0_default as threadTypeSot,
|
|
55653
55952
|
timeScope_v1_0_0_default as timeScopeSot,
|