@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-
|
|
1
|
+
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-ctHTp2df.js';
|
|
2
2
|
import * as mongoose from 'mongoose';
|
|
3
3
|
import { HydratedDocument, Connection, Model } from 'mongoose';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-
|
|
1
|
+
import { F as Form, l as buildFormSchema, h as Section, q as buildSectionSchema, Q as Question, o as buildQuestionSchema, f as ScoringRule, p as buildScoringRuleSchema, P as PlatformFunction, m as buildPlatformFunctionSchema, d as PlatformRole, n as buildPlatformRoleSchema, b as CvcRegistry, k as buildCvcRegistrySchema, a as CvcEntry, j as buildCvcEntrySchema } from './cvcEntry-ctHTp2df.cjs';
|
|
2
2
|
import * as mongoose from 'mongoose';
|
|
3
3
|
import { HydratedDocument, Connection, Model } from 'mongoose';
|
|
4
4
|
|
package/dist/index.cjs
CHANGED
|
@@ -440,6 +440,7 @@ __export(src_exports, {
|
|
|
440
440
|
SeverityFollowUpKeys: () => SeverityFollowUpKeys,
|
|
441
441
|
SexProviderSubroleKeys: () => SexProviderSubroleKeys,
|
|
442
442
|
SharePurposeKeys: () => SharePurposeKeys,
|
|
443
|
+
ShareResponseReasonKeys: () => ShareResponseReasonKeys,
|
|
443
444
|
SignatureMethodKeys: () => SignatureMethodKeys,
|
|
444
445
|
SignatureTypeKeys: () => SignatureTypeKeys,
|
|
445
446
|
SmtBodyLocationKeys: () => SmtBodyLocationKeys,
|
|
@@ -456,7 +457,10 @@ __export(src_exports, {
|
|
|
456
457
|
SuggestionSourceKeys: () => SuggestionSourceKeys,
|
|
457
458
|
SupportStrengthKeys: () => SupportStrengthKeys,
|
|
458
459
|
SupportTopicKeys: () => SupportTopicKeys,
|
|
460
|
+
TEAM_MODEL_NAME: () => TEAM_MODEL_NAME,
|
|
459
461
|
THREAD_INVOLVEMENT_ROLES: () => THREAD_INVOLVEMENT_ROLES,
|
|
462
|
+
TeamAppSchema: () => TeamAppSchema,
|
|
463
|
+
TeamDirectoryFieldsSchema: () => TeamDirectoryFieldsSchema,
|
|
460
464
|
ThreadStatusKeys: () => ThreadStatusKeys,
|
|
461
465
|
ThreadTypeKeys: () => ThreadTypeKeys,
|
|
462
466
|
TimeScopeKeys: () => TimeScopeKeys,
|
|
@@ -477,6 +481,7 @@ __export(src_exports, {
|
|
|
477
481
|
actionStepCompletionStatusSot: () => actionStepCompletionStatus_v1_0_0_default,
|
|
478
482
|
actionStepTypeSot: () => actionStepType_v1_0_0_default,
|
|
479
483
|
activityTypeSot: () => activityType_v1_0_0_default,
|
|
484
|
+
addTeamDirectoryFields: () => addTeamDirectoryFields,
|
|
480
485
|
addressSchema: () => addressSchema,
|
|
481
486
|
adminRolesSot: () => adminRoles_v1_0_0_default,
|
|
482
487
|
administeringJurisdictionSot: () => administeringJurisdiction_v1_0_0_default,
|
|
@@ -696,6 +701,7 @@ __export(src_exports, {
|
|
|
696
701
|
severityFollowUpSot: () => severityFollowUp_v1_0_0_default,
|
|
697
702
|
sexProviderSubroleSot: () => sexProviderSubrole_v1_0_0_default,
|
|
698
703
|
sharePurposeSot: () => sharePurpose_v1_0_0_default,
|
|
704
|
+
shareResponseReasonSot: () => shareResponseReason_v1_0_0_default,
|
|
699
705
|
signatureMethodSot: () => signatureMethod_v1_0_0_default,
|
|
700
706
|
signatureTypeSot: () => signatureType_v1_0_0_default,
|
|
701
707
|
smtBodyLocationSot: () => smtBodyLocation_v1_0_0_default,
|
|
@@ -713,6 +719,7 @@ __export(src_exports, {
|
|
|
713
719
|
suggestionSourceSot: () => suggestionSource_v1_0_0_default,
|
|
714
720
|
supportStrengthSot: () => supportStrength_v1_0_0_default,
|
|
715
721
|
supportTopicSot: () => supportTopic_v1_0_0_default,
|
|
722
|
+
teamDirectorySchemaDefinition: () => teamDirectorySchemaDefinition,
|
|
716
723
|
threadStatusSot: () => threadStatus_v1_0_0_default,
|
|
717
724
|
threadTypeSot: () => threadType_v1_0_0_default,
|
|
718
725
|
timeScopeSot: () => timeScope_v1_0_0_default,
|
|
@@ -7440,8 +7447,36 @@ function buildPlatformRoleSchema() {
|
|
|
7440
7447
|
}
|
|
7441
7448
|
var _platformRoleSchema = buildPlatformRoleSchema();
|
|
7442
7449
|
|
|
7443
|
-
// src/schemas/
|
|
7450
|
+
// src/schemas/team.ts
|
|
7444
7451
|
var import_mongoose8 = require("mongoose");
|
|
7452
|
+
var TEAM_MODEL_NAME = "Team";
|
|
7453
|
+
var teamDirectorySchemaDefinition = {
|
|
7454
|
+
/**
|
|
7455
|
+
* The platform apps this team works in, as {@link PLATFORM_TOOL} codes
|
|
7456
|
+
* (`"PAVE"`, `"THREAD"`, `"LEADS"`, ...). The referral preset only resolves
|
|
7457
|
+
* to a team whose `apps` includes `"PAVE"`.
|
|
7458
|
+
*/
|
|
7459
|
+
apps: {
|
|
7460
|
+
type: [String],
|
|
7461
|
+
enum: [...PLATFORM_TOOL_VALUES],
|
|
7462
|
+
default: void 0
|
|
7463
|
+
},
|
|
7464
|
+
/**
|
|
7465
|
+
* The teams this team refers to, in priority order. The resolver takes the
|
|
7466
|
+
* first active target that works in PAVE and is not the sending team itself.
|
|
7467
|
+
*/
|
|
7468
|
+
canReferTo: {
|
|
7469
|
+
type: [{ type: import_mongoose8.Schema.Types.ObjectId, ref: TEAM_MODEL_NAME }],
|
|
7470
|
+
default: void 0
|
|
7471
|
+
}
|
|
7472
|
+
};
|
|
7473
|
+
function addTeamDirectoryFields(schema) {
|
|
7474
|
+
schema.add(teamDirectorySchemaDefinition);
|
|
7475
|
+
return schema;
|
|
7476
|
+
}
|
|
7477
|
+
|
|
7478
|
+
// src/schemas/cvcRegistry.ts
|
|
7479
|
+
var import_mongoose9 = require("mongoose");
|
|
7445
7480
|
var cvcRegistrySchemaDefinition = {
|
|
7446
7481
|
// Versioning — semantic version of this registry bundle
|
|
7447
7482
|
version: {
|
|
@@ -7461,7 +7496,7 @@ var cvcRegistrySchemaDefinition = {
|
|
|
7461
7496
|
default: null
|
|
7462
7497
|
},
|
|
7463
7498
|
agencyId: {
|
|
7464
|
-
type:
|
|
7499
|
+
type: import_mongoose9.Schema.Types.ObjectId,
|
|
7465
7500
|
default: null
|
|
7466
7501
|
},
|
|
7467
7502
|
// Lifecycle
|
|
@@ -7503,7 +7538,7 @@ var cvcRegistrySchemaDefinition = {
|
|
|
7503
7538
|
// include / exclude lists from its base before applying its own overrides.
|
|
7504
7539
|
// Indexed below so a base-version bump can find every dependent registry.
|
|
7505
7540
|
basedOn: {
|
|
7506
|
-
type:
|
|
7541
|
+
type: import_mongoose9.Schema.Types.ObjectId,
|
|
7507
7542
|
default: null
|
|
7508
7543
|
}
|
|
7509
7544
|
};
|
|
@@ -7512,7 +7547,7 @@ var cvcRegistrySchemaOptions = {
|
|
|
7512
7547
|
collection: "cvc_registries"
|
|
7513
7548
|
};
|
|
7514
7549
|
function buildCvcRegistrySchema() {
|
|
7515
|
-
const schema = new
|
|
7550
|
+
const schema = new import_mongoose9.Schema(
|
|
7516
7551
|
cvcRegistrySchemaDefinition,
|
|
7517
7552
|
cvcRegistrySchemaOptions
|
|
7518
7553
|
);
|
|
@@ -7533,7 +7568,7 @@ function buildCvcRegistrySchema() {
|
|
|
7533
7568
|
var _cvcRegistrySchema = buildCvcRegistrySchema();
|
|
7534
7569
|
|
|
7535
7570
|
// src/schemas/cvcEntry.ts
|
|
7536
|
-
var
|
|
7571
|
+
var import_mongoose10 = require("mongoose");
|
|
7537
7572
|
var CVC_CODE_PATTERN = /^\d{3}(-\d{3}){6}$/;
|
|
7538
7573
|
var CVC_KEY_PATTERN = /^[a-z][a-z0-9_]*$/;
|
|
7539
7574
|
var cvcEntrySchemaDefinition = {
|
|
@@ -7599,7 +7634,7 @@ var cvcEntrySchemaDefinition = {
|
|
|
7599
7634
|
// particular CVC family — e.g. `relevantMechanisms` on service_categories
|
|
7600
7635
|
// entries (a cross-CVC reference into service_mechanisms by key).
|
|
7601
7636
|
meta: {
|
|
7602
|
-
type:
|
|
7637
|
+
type: import_mongoose10.Schema.Types.Mixed
|
|
7603
7638
|
}
|
|
7604
7639
|
};
|
|
7605
7640
|
var cvcEntrySchemaOptions = {
|
|
@@ -7610,7 +7645,7 @@ var cvcEntrySchemaOptions = {
|
|
|
7610
7645
|
minimize: false
|
|
7611
7646
|
};
|
|
7612
7647
|
function buildCvcEntrySchema() {
|
|
7613
|
-
const schema = new
|
|
7648
|
+
const schema = new import_mongoose10.Schema(cvcEntrySchemaDefinition, cvcEntrySchemaOptions);
|
|
7614
7649
|
schema.index(
|
|
7615
7650
|
{ domain: 1, version: 1, code: 1 },
|
|
7616
7651
|
{ unique: true }
|
|
@@ -8414,6 +8449,20 @@ var CaseShareStateKeys = {
|
|
|
8414
8449
|
declined: "925-005-000-000-000-000-000",
|
|
8415
8450
|
rejected: "925-006-000-000-000-000-000"
|
|
8416
8451
|
};
|
|
8452
|
+
var ShareResponseReasonKeys = {
|
|
8453
|
+
missingness_root: "306-000-000-000-000-000-000",
|
|
8454
|
+
unknown: "306-000-000-000-000-000-001",
|
|
8455
|
+
information_incorrect: "306-001-000-000-000-000-000",
|
|
8456
|
+
not_relevant_for_client: "306-002-000-000-000-000-000",
|
|
8457
|
+
duplicate_already_have: "306-003-000-000-000-000-000",
|
|
8458
|
+
client_declined_recording: "306-004-000-000-000-000-000",
|
|
8459
|
+
wrong_agency_service_area: "306-005-000-000-000-000-000",
|
|
8460
|
+
not_our_client: "306-006-000-000-000-000-000",
|
|
8461
|
+
sent_in_error: "306-007-000-000-000-000-000",
|
|
8462
|
+
no_capacity: "306-008-000-000-000-000-000",
|
|
8463
|
+
cannot_verify_conflicts: "306-009-000-000-000-000-000",
|
|
8464
|
+
wrong_person: "306-010-000-000-000-000-000"
|
|
8465
|
+
};
|
|
8417
8466
|
var FacilitatorEntityTypeKeys = {
|
|
8418
8467
|
missingness_root: "165-000-000-000-000-000-000",
|
|
8419
8468
|
unknown: "165-000-000-000-000-000-001",
|
|
@@ -10626,6 +10675,7 @@ var CoreInformationScopeKeys = {
|
|
|
10626
10675
|
contact: "236-003-000-000-000-000-000",
|
|
10627
10676
|
contact_info: "236-003-001-000-000-000-000",
|
|
10628
10677
|
safe_locations: "236-003-002-000-000-000-000",
|
|
10678
|
+
priorities_safety: "236-003-003-000-000-000-000",
|
|
10629
10679
|
services: "236-004-000-000-000-000-000",
|
|
10630
10680
|
contact_history: "236-004-001-000-000-000-000",
|
|
10631
10681
|
service_history: "236-004-002-000-000-000-000",
|
|
@@ -12271,6 +12321,16 @@ var CvcEnvelopeSchema = import_zod.z.object({
|
|
|
12271
12321
|
entries: import_zod.z.array(CvcEntrySchema)
|
|
12272
12322
|
});
|
|
12273
12323
|
|
|
12324
|
+
// src/validation/team.ts
|
|
12325
|
+
var import_zod2 = require("zod");
|
|
12326
|
+
var ObjectIdHexSchema = import_zod2.z.string().regex(/^[0-9a-fA-F]{24}$/, "must be a 24-character hex ObjectId");
|
|
12327
|
+
var hasNoDuplicates = (values) => new Set(values.map((v) => v.toLowerCase())).size === values.length;
|
|
12328
|
+
var TeamAppSchema = import_zod2.z.enum(PLATFORM_TOOL_VALUES);
|
|
12329
|
+
var TeamDirectoryFieldsSchema = import_zod2.z.object({
|
|
12330
|
+
apps: import_zod2.z.array(TeamAppSchema).refine(hasNoDuplicates, "apps must not repeat an app").optional(),
|
|
12331
|
+
canReferTo: import_zod2.z.array(ObjectIdHexSchema).refine(hasNoDuplicates, "canReferTo must not repeat a team").optional()
|
|
12332
|
+
});
|
|
12333
|
+
|
|
12274
12334
|
// src/cvcs/serviceCategories.v1.0.0.json
|
|
12275
12335
|
var serviceCategories_v1_0_0_default = {
|
|
12276
12336
|
domain: "service_categories",
|
|
@@ -19660,6 +19720,228 @@ var caseShareState_v1_0_0_default = {
|
|
|
19660
19720
|
]
|
|
19661
19721
|
};
|
|
19662
19722
|
|
|
19723
|
+
// src/cvcs/shareResponseReason.v1.0.0.json
|
|
19724
|
+
var shareResponseReason_v1_0_0_default = {
|
|
19725
|
+
domain: "share_response_reason",
|
|
19726
|
+
name: "Core Share Response Reason",
|
|
19727
|
+
version: "1.0.0",
|
|
19728
|
+
_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.",
|
|
19729
|
+
_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)",
|
|
19730
|
+
contexts: {
|
|
19731
|
+
field_review: "Field review",
|
|
19732
|
+
decline_share: "Decline share",
|
|
19733
|
+
reject_share: "Reject share"
|
|
19734
|
+
},
|
|
19735
|
+
levels: {
|
|
19736
|
+
"0": "Unknown or Missing",
|
|
19737
|
+
"1": "Share response reason"
|
|
19738
|
+
},
|
|
19739
|
+
entries: [
|
|
19740
|
+
{
|
|
19741
|
+
code: "306-000-000-000-000-000-000",
|
|
19742
|
+
key: "missingness_root",
|
|
19743
|
+
title: "Unknown, Redacted, or Missing",
|
|
19744
|
+
selectable: false,
|
|
19745
|
+
parentCode: null,
|
|
19746
|
+
childCodes: [
|
|
19747
|
+
"306-000-000-000-000-000-001"
|
|
19748
|
+
],
|
|
19749
|
+
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."
|
|
19750
|
+
},
|
|
19751
|
+
{
|
|
19752
|
+
code: "306-000-000-000-000-000-001",
|
|
19753
|
+
key: "unknown",
|
|
19754
|
+
title: "Unknown",
|
|
19755
|
+
selectable: false,
|
|
19756
|
+
parentCode: "306-000-000-000-000-000-000",
|
|
19757
|
+
childCodes: [],
|
|
19758
|
+
definition: "Unknown or cannot be determined from the available information.",
|
|
19759
|
+
canonicalCode: "UNK",
|
|
19760
|
+
contexts: [],
|
|
19761
|
+
guidance: null,
|
|
19762
|
+
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).",
|
|
19763
|
+
tobyRetention: {
|
|
19764
|
+
class: "tombstone_retain",
|
|
19765
|
+
stewardFlag: true
|
|
19766
|
+
}
|
|
19767
|
+
},
|
|
19768
|
+
{
|
|
19769
|
+
code: "306-001-000-000-000-000-000",
|
|
19770
|
+
key: "information_incorrect",
|
|
19771
|
+
title: "The information is incorrect",
|
|
19772
|
+
selectable: true,
|
|
19773
|
+
parentCode: null,
|
|
19774
|
+
childCodes: [],
|
|
19775
|
+
definition: "The value is wrong \u2014 it does not match reality as the recipient knows it.",
|
|
19776
|
+
contexts: [
|
|
19777
|
+
"field_review"
|
|
19778
|
+
],
|
|
19779
|
+
guidance: "The highest-signal code for platform accuracy learning: an explicit human judgment that the sender's record is wrong on this point.",
|
|
19780
|
+
logicNotes: "Sibling of core - record_removal_reason's created_in_error / value-incorrect family.",
|
|
19781
|
+
tobyRetention: {
|
|
19782
|
+
class: "supersede"
|
|
19783
|
+
}
|
|
19784
|
+
},
|
|
19785
|
+
{
|
|
19786
|
+
code: "306-002-000-000-000-000-000",
|
|
19787
|
+
key: "not_relevant_for_client",
|
|
19788
|
+
title: "Not relevant for my client",
|
|
19789
|
+
selectable: true,
|
|
19790
|
+
parentCode: null,
|
|
19791
|
+
childCodes: [],
|
|
19792
|
+
definition: "The information may be true, but it doesn't belong in this client's record for the services this agency provides.",
|
|
19793
|
+
contexts: [
|
|
19794
|
+
"field_review"
|
|
19795
|
+
],
|
|
19796
|
+
guidance: "Deliberately distinct from information_incorrect \u2014 relevance and accuracy must never collapse into one code (the RemoveAssetFlow lesson).",
|
|
19797
|
+
logicNotes: null,
|
|
19798
|
+
tobyRetention: {
|
|
19799
|
+
class: "tombstone_retain"
|
|
19800
|
+
}
|
|
19801
|
+
},
|
|
19802
|
+
{
|
|
19803
|
+
code: "306-003-000-000-000-000-000",
|
|
19804
|
+
key: "duplicate_already_have",
|
|
19805
|
+
title: "Duplicate of what we have",
|
|
19806
|
+
selectable: true,
|
|
19807
|
+
parentCode: null,
|
|
19808
|
+
childCodes: [],
|
|
19809
|
+
definition: "The recipient already holds this information (or this whole share duplicates one already received).",
|
|
19810
|
+
contexts: [
|
|
19811
|
+
"field_review",
|
|
19812
|
+
"decline_share"
|
|
19813
|
+
],
|
|
19814
|
+
guidance: "Field review: the incoming value adds nothing. Decline: the share as a whole duplicates a prior one.",
|
|
19815
|
+
logicNotes: null,
|
|
19816
|
+
tobyRetention: {
|
|
19817
|
+
class: "tombstone_retain",
|
|
19818
|
+
engineSignal: "same_thing"
|
|
19819
|
+
}
|
|
19820
|
+
},
|
|
19821
|
+
{
|
|
19822
|
+
code: "306-004-000-000-000-000-000",
|
|
19823
|
+
key: "client_declined_recording",
|
|
19824
|
+
title: "Client asked us not to record this",
|
|
19825
|
+
selectable: true,
|
|
19826
|
+
parentCode: null,
|
|
19827
|
+
childCodes: [],
|
|
19828
|
+
definition: "The client asked this agency not to hold this information on file.",
|
|
19829
|
+
contexts: [
|
|
19830
|
+
"field_review"
|
|
19831
|
+
],
|
|
19832
|
+
guidance: "A consent judgment, not an accuracy judgment \u2014 platform learning must never read this as evidence the value is wrong.",
|
|
19833
|
+
logicNotes: "Interacts with the subpoena-exposure balancing test (GDR \xA7 5.61): the advocate is weighing legal-harm risk against service value.",
|
|
19834
|
+
tobyRetention: {
|
|
19835
|
+
class: "inclusion_register"
|
|
19836
|
+
}
|
|
19837
|
+
},
|
|
19838
|
+
{
|
|
19839
|
+
code: "306-005-000-000-000-000-000",
|
|
19840
|
+
key: "wrong_agency_service_area",
|
|
19841
|
+
title: "Wrong agency / outside our service area",
|
|
19842
|
+
selectable: true,
|
|
19843
|
+
parentCode: null,
|
|
19844
|
+
childCodes: [],
|
|
19845
|
+
definition: "This share should not have come to this agency \u2014 wrong coverage area or wrong service type.",
|
|
19846
|
+
contexts: [
|
|
19847
|
+
"decline_share"
|
|
19848
|
+
],
|
|
19849
|
+
guidance: "Decline-only: a routing miss, decided before engaging the content.",
|
|
19850
|
+
logicNotes: null,
|
|
19851
|
+
tobyRetention: {
|
|
19852
|
+
class: "retain_event"
|
|
19853
|
+
}
|
|
19854
|
+
},
|
|
19855
|
+
{
|
|
19856
|
+
code: "306-006-000-000-000-000-000",
|
|
19857
|
+
key: "not_our_client",
|
|
19858
|
+
title: "Not our client",
|
|
19859
|
+
selectable: true,
|
|
19860
|
+
parentCode: null,
|
|
19861
|
+
childCodes: [],
|
|
19862
|
+
definition: "This person is not (and will not become) a client of this agency.",
|
|
19863
|
+
contexts: [
|
|
19864
|
+
"decline_share"
|
|
19865
|
+
],
|
|
19866
|
+
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.",
|
|
19867
|
+
logicNotes: null,
|
|
19868
|
+
tobyRetention: {
|
|
19869
|
+
class: "retain_event"
|
|
19870
|
+
}
|
|
19871
|
+
},
|
|
19872
|
+
{
|
|
19873
|
+
code: "306-007-000-000-000-000-000",
|
|
19874
|
+
key: "sent_in_error",
|
|
19875
|
+
title: "Sent in error",
|
|
19876
|
+
selectable: true,
|
|
19877
|
+
parentCode: null,
|
|
19878
|
+
childCodes: [],
|
|
19879
|
+
definition: "The sender shared this by mistake (confirmed with the sender or evident from the content).",
|
|
19880
|
+
contexts: [
|
|
19881
|
+
"decline_share",
|
|
19882
|
+
"reject_share"
|
|
19883
|
+
],
|
|
19884
|
+
guidance: "Available at decline (before engaging) and reject (discovered during review).",
|
|
19885
|
+
logicNotes: null,
|
|
19886
|
+
tobyRetention: {
|
|
19887
|
+
class: "retain_event"
|
|
19888
|
+
}
|
|
19889
|
+
},
|
|
19890
|
+
{
|
|
19891
|
+
code: "306-008-000-000-000-000-000",
|
|
19892
|
+
key: "no_capacity",
|
|
19893
|
+
title: "No capacity right now",
|
|
19894
|
+
selectable: true,
|
|
19895
|
+
parentCode: null,
|
|
19896
|
+
childCodes: [],
|
|
19897
|
+
definition: "The agency cannot take this on at the moment.",
|
|
19898
|
+
contexts: [
|
|
19899
|
+
"decline_share"
|
|
19900
|
+
],
|
|
19901
|
+
guidance: "Decline-only; honest operational reason \u2014 the sender can re-share later (a re-claim starts fresh).",
|
|
19902
|
+
logicNotes: null,
|
|
19903
|
+
tobyRetention: {
|
|
19904
|
+
class: "retain_event"
|
|
19905
|
+
}
|
|
19906
|
+
},
|
|
19907
|
+
{
|
|
19908
|
+
code: "306-009-000-000-000-000-000",
|
|
19909
|
+
key: "cannot_verify_conflicts",
|
|
19910
|
+
title: "Can't verify \u2014 conflicts with the client's account",
|
|
19911
|
+
selectable: true,
|
|
19912
|
+
parentCode: null,
|
|
19913
|
+
childCodes: [],
|
|
19914
|
+
definition: "The delivered content conflicts with what the client has told this agency directly, and cannot be verified.",
|
|
19915
|
+
contexts: [
|
|
19916
|
+
"reject_share"
|
|
19917
|
+
],
|
|
19918
|
+
guidance: "Reject-only: a whole-share trust judgment after review. High-signal for deconfliction/accuracy learning.",
|
|
19919
|
+
logicNotes: null,
|
|
19920
|
+
tobyRetention: {
|
|
19921
|
+
class: "retain_event"
|
|
19922
|
+
}
|
|
19923
|
+
},
|
|
19924
|
+
{
|
|
19925
|
+
code: "306-010-000-000-000-000-000",
|
|
19926
|
+
key: "wrong_person",
|
|
19927
|
+
title: "Wrong person",
|
|
19928
|
+
selectable: true,
|
|
19929
|
+
parentCode: null,
|
|
19930
|
+
childCodes: [],
|
|
19931
|
+
definition: "Review made clear the shared content is about a different person than the recipient's client.",
|
|
19932
|
+
contexts: [
|
|
19933
|
+
"reject_share"
|
|
19934
|
+
],
|
|
19935
|
+
guidance: "Reject-only. Case identity, never person identity: the fix is rejecting the share \u2014 no cross-agency person merge exists or ever will.",
|
|
19936
|
+
logicNotes: null,
|
|
19937
|
+
tobyRetention: {
|
|
19938
|
+
class: "retain_event",
|
|
19939
|
+
engineSignal: "cross_agency_wrongness"
|
|
19940
|
+
}
|
|
19941
|
+
}
|
|
19942
|
+
]
|
|
19943
|
+
};
|
|
19944
|
+
|
|
19663
19945
|
// src/cvcs/facilitatorEntityType.v1.0.0.json
|
|
19664
19946
|
var facilitatorEntityType_v1_0_0_default = {
|
|
19665
19947
|
domain: "facilitator_entity_type",
|
|
@@ -38387,8 +38669,8 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
38387
38669
|
domain: "core_information_scope",
|
|
38388
38670
|
name: "Core Information Scope",
|
|
38389
38671
|
version: "1.0.0",
|
|
38390
|
-
_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 /
|
|
38391
|
-
_source: "htilabstech/prototype
|
|
38672
|
+
_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.",
|
|
38673
|
+
_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)",
|
|
38392
38674
|
levels: {
|
|
38393
38675
|
"0": "Unknown or Missing",
|
|
38394
38676
|
"1": "Category (policy grain, not selectable)",
|
|
@@ -38855,9 +39137,10 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
38855
39137
|
parentCode: null,
|
|
38856
39138
|
childCodes: [
|
|
38857
39139
|
"236-003-001-000-000-000-000",
|
|
38858
|
-
"236-003-002-000-000-000-000"
|
|
39140
|
+
"236-003-002-000-000-000-000",
|
|
39141
|
+
"236-003-003-000-000-000-000"
|
|
38859
39142
|
],
|
|
38860
|
-
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).",
|
|
39143
|
+
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.",
|
|
38861
39144
|
levelFloor: 3,
|
|
38862
39145
|
appRelevance: [
|
|
38863
39146
|
"PAVE",
|
|
@@ -38899,6 +39182,22 @@ var coreInformationScope_v1_0_0_default = {
|
|
|
38899
39182
|
specialDataType: "survivor_confidential",
|
|
38900
39183
|
platformFloor: true
|
|
38901
39184
|
},
|
|
39185
|
+
{
|
|
39186
|
+
code: "236-003-003-000-000-000-000",
|
|
39187
|
+
key: "priorities_safety",
|
|
39188
|
+
title: "Priorities & Safety (immediate needs triage)",
|
|
39189
|
+
selectable: true,
|
|
39190
|
+
parentCode: "236-003-000-000-000-000-000",
|
|
39191
|
+
childCodes: [],
|
|
39192
|
+
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.",
|
|
39193
|
+
levelFloor: 3,
|
|
39194
|
+
appRelevance: [
|
|
39195
|
+
"PAVE",
|
|
39196
|
+
"Thread"
|
|
39197
|
+
],
|
|
39198
|
+
shareableDefault: true,
|
|
39199
|
+
specialDataType: "survivor_confidential"
|
|
39200
|
+
},
|
|
38902
39201
|
{
|
|
38903
39202
|
code: "236-004-000-000-000-000-000",
|
|
38904
39203
|
key: "services",
|
|
@@ -56101,6 +56400,7 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
56101
56400
|
SeverityFollowUpKeys,
|
|
56102
56401
|
SexProviderSubroleKeys,
|
|
56103
56402
|
SharePurposeKeys,
|
|
56403
|
+
ShareResponseReasonKeys,
|
|
56104
56404
|
SignatureMethodKeys,
|
|
56105
56405
|
SignatureTypeKeys,
|
|
56106
56406
|
SmtBodyLocationKeys,
|
|
@@ -56117,7 +56417,10 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
56117
56417
|
SuggestionSourceKeys,
|
|
56118
56418
|
SupportStrengthKeys,
|
|
56119
56419
|
SupportTopicKeys,
|
|
56420
|
+
TEAM_MODEL_NAME,
|
|
56120
56421
|
THREAD_INVOLVEMENT_ROLES,
|
|
56422
|
+
TeamAppSchema,
|
|
56423
|
+
TeamDirectoryFieldsSchema,
|
|
56121
56424
|
ThreadStatusKeys,
|
|
56122
56425
|
ThreadTypeKeys,
|
|
56123
56426
|
TimeScopeKeys,
|
|
@@ -56138,6 +56441,7 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
56138
56441
|
actionStepCompletionStatusSot,
|
|
56139
56442
|
actionStepTypeSot,
|
|
56140
56443
|
activityTypeSot,
|
|
56444
|
+
addTeamDirectoryFields,
|
|
56141
56445
|
addressSchema,
|
|
56142
56446
|
adminRolesSot,
|
|
56143
56447
|
administeringJurisdictionSot,
|
|
@@ -56357,6 +56661,7 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
56357
56661
|
severityFollowUpSot,
|
|
56358
56662
|
sexProviderSubroleSot,
|
|
56359
56663
|
sharePurposeSot,
|
|
56664
|
+
shareResponseReasonSot,
|
|
56360
56665
|
signatureMethodSot,
|
|
56361
56666
|
signatureTypeSot,
|
|
56362
56667
|
smtBodyLocationSot,
|
|
@@ -56374,6 +56679,7 @@ var CVC_197_VALUES = selectableCodes(
|
|
|
56374
56679
|
suggestionSourceSot,
|
|
56375
56680
|
supportStrengthSot,
|
|
56376
56681
|
supportTopicSot,
|
|
56682
|
+
teamDirectorySchemaDefinition,
|
|
56377
56683
|
threadStatusSot,
|
|
56378
56684
|
threadTypeSot,
|
|
56379
56685
|
timeScopeSot,
|