@htilabs/platform-common-models 0.8.24 → 0.12.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 (91) hide show
  1. package/dist/config/index.cjs +81 -0
  2. package/dist/config/index.cjs.map +1 -1
  3. package/dist/config/index.d.cts +79 -4
  4. package/dist/config/index.d.ts +79 -4
  5. package/dist/config/index.js +79 -1
  6. package/dist/config/index.js.map +1 -1
  7. package/dist/constants/index.cjs +2 -18
  8. package/dist/constants/index.cjs.map +1 -1
  9. package/dist/constants/index.d.cts +1 -1
  10. package/dist/constants/index.d.ts +1 -1
  11. package/dist/constants/index.js +2 -18
  12. package/dist/constants/index.js.map +1 -1
  13. package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-BCj1OWqL.d.cts} +44 -44
  14. package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-BCj1OWqL.d.ts} +44 -44
  15. package/dist/cvcs/index.cjs +217 -6674
  16. package/dist/cvcs/index.cjs.map +1 -1
  17. package/dist/cvcs/index.d.cts +8057 -15024
  18. package/dist/cvcs/index.d.ts +8057 -15024
  19. package/dist/cvcs/index.js +217 -6662
  20. package/dist/cvcs/index.js.map +1 -1
  21. package/dist/{index-qreOzXYS.d.cts → index-CoVr1jIV.d.cts} +1 -1
  22. package/dist/{index-4DiJrn7y.d.ts → index-I-DiX9eQ.d.ts} +1 -1
  23. package/dist/index.cjs +230 -7217
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +26 -588
  26. package/dist/index.d.ts +26 -588
  27. package/dist/index.js +230 -7193
  28. package/dist/index.js.map +1 -1
  29. package/dist/models/index.d.cts +2 -2
  30. package/dist/models/index.d.ts +2 -2
  31. package/dist/mongo/index.cjs +1 -0
  32. package/dist/mongo/index.cjs.map +1 -1
  33. package/dist/mongo/index.js +2 -1
  34. package/dist/mongo/index.js.map +1 -1
  35. package/dist/{platform-auth-91Hcl8F8.d.cts → platform-auth-v53r3BhN.d.cts} +3 -4
  36. package/dist/{platform-auth-91Hcl8F8.d.ts → platform-auth-v53r3BhN.d.ts} +3 -4
  37. package/dist/schemas/index.cjs +1 -5
  38. package/dist/schemas/index.cjs.map +1 -1
  39. package/dist/schemas/index.d.cts +35 -35
  40. package/dist/schemas/index.d.ts +35 -35
  41. package/dist/schemas/index.js +1 -5
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/types/index.d.cts +2 -2
  44. package/dist/types/index.d.ts +2 -2
  45. package/dist/validation/index.cjs +0 -58
  46. package/dist/validation/index.cjs.map +1 -1
  47. package/dist/validation/index.d.cts +283 -82
  48. package/dist/validation/index.d.ts +283 -82
  49. package/dist/validation/index.js +0 -57
  50. package/dist/validation/index.js.map +1 -1
  51. package/package.json +22 -26
  52. package/src/__sot__/README.md +1 -36
  53. package/src/__sot__/coreIndicators.pin.json +2 -1936
  54. package/src/__sot__/cvcIndex.pin.json +4 -8
  55. package/src/__tests__/__snapshots__/cvc-sot.snap +13 -41
  56. package/src/__tests__/cvc-136-scoring-invariant.test.ts +3 -8
  57. package/src/__tests__/cvc-drift-gate.test.ts +12 -445
  58. package/src/__tests__/cvc-sot-snapshot.test.ts +11 -73
  59. package/src/__tests__/cvc-structural.test.ts +0 -14
  60. package/src/__tests__/runtime-contract-validator.test.ts +325 -1
  61. package/src/config/index.ts +189 -4
  62. package/src/constants/ic.ts +3 -120
  63. package/src/cvcs/assertionDomain.v1.1.0.json +1 -19
  64. package/src/cvcs/coreIndicators.v1.0.0.json +5 -83
  65. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +1 -11
  66. package/src/cvcs/index.ts +0 -32
  67. package/src/cvcs/personRelationships.v1.0.0.json +2 -67
  68. package/src/cvcs/relationshipConcern.v1.0.0.json +19 -28
  69. package/src/cvcs/sessionTemplate.v1.0.0.json +0 -22
  70. package/src/cvcs/sharePurpose.v1.0.0.json +12 -80
  71. package/src/generated/cvc-enums.ts +20 -606
  72. package/src/validation/index.ts +0 -1
  73. package/dist/cvc-C7qdsXYK.d.cts +0 -298
  74. package/dist/cvc-C7qdsXYK.d.ts +0 -298
  75. package/src/__sot__/coreIndicatorFields.ts +0 -331
  76. package/src/__tests__/core-information-scope-invariant.test.ts +0 -134
  77. package/src/__tests__/cvc-181-182-country-parity.test.ts +0 -163
  78. package/src/__tests__/cvc-status-parser.test.ts +0 -150
  79. package/src/cvcs/assertionStatus.v1.0.0.json +0 -80
  80. package/src/cvcs/carCorrectionReason.v1.0.0.json +0 -89
  81. package/src/cvcs/caseShareState.v1.0.0.json +0 -62
  82. package/src/cvcs/coreInformationScope.v1.0.0.json +0 -1165
  83. package/src/cvcs/countries.v1.0.0.json +0 -3077
  84. package/src/cvcs/createdBySystem.v1.0.0.json +0 -89
  85. package/src/cvcs/criminalOrgCategory.v1.0.0.json +0 -116
  86. package/src/cvcs/determinationHelperCategories.v1.0.0.json +0 -1166
  87. package/src/cvcs/minorAdultStatus.v1.0.0.json +0 -80
  88. package/src/cvcs/referralOrigin.v1.0.0.json +0 -26
  89. package/src/cvcs/riskIdentificationMilestone.v1.0.0.json +0 -109
  90. package/src/cvcs/subjectType.v1.0.0.json +0 -80
  91. package/src/validation/cvcStatus.ts +0 -209
@@ -1,150 +0,0 @@
1
- /**
2
- * CVC `_status`/`_source` provenance parser — unit tests
3
- *
4
- * Every fixture string below is copied verbatim from a real, committed SOT
5
- * file under `src/cvcs/` (not invented) — see the inline citation on each
6
- * `it()` for the source file, so a reader can `grep` back to the original.
7
- * Covers every branch `parseCvcStatus` exists to handle: the four maturity
8
- * states, the structured-object `_status` shape (11 domains), the
9
- * leading-token fallback (`share_purpose`'s "Synced…" — the one domain whose
10
- * leading word is none of the three convention keywords), the
11
- * self-contradictory `core_functions` case the parser is specifically
12
- * designed to flag, and the `prototype/data/cvcs/*.yaml` source-path
13
- * extraction.
14
- */
15
-
16
- import { describe, it, expect } from "vitest";
17
-
18
- import { parseCvcStatus } from "../validation/cvcStatus.js";
19
-
20
- describe("parseCvcStatus", () => {
21
- it("classifies a DRAFT domain (accommodation_type, src/cvcs/accommodationType.v1.0.0.json)", () => {
22
- const result = parseCvcStatus({
23
- _status:
24
- "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering; " +
25
- "codes from prototype/data/cvcs/core_accommodation_type.yaml; PENDING canonical Notion " +
26
- "authoring (PAVE Auditability backlog).",
27
- _source: "prototype/data/cvcs/core_accommodation_type.yaml",
28
- });
29
- expect(result.maturity).toBe("draft");
30
- expect(result.ambiguous).toBe(false);
31
- expect(result.sourceIsPrototype).toBe(true);
32
- expect(result.sourcePath).toBe("prototype/data/cvcs/core_accommodation_type.yaml");
33
- expect(result.rawStatus).toContain("DRAFT — TEMPORARY");
34
- });
35
-
36
- it("classifies a PROVISIONAL domain (activity_type, src/cvcs/activityType.v1.0.0.json)", () => {
37
- const result = parseCvcStatus({
38
- _status:
39
- "PROVISIONAL — net-new value-CVC not yet in Notion; provisional 900+ numbering; " +
40
- "substantive values sourced verbatim from the PAVE @pave/domain enum of the same name " +
41
- "(D10 source-from-platform-common). PENDING canonical Notion authoring + steward " +
42
- "ratification of titles/definitions.",
43
- _source: "pave-2.0/packages/domain/src/enums.ts",
44
- });
45
- expect(result.maturity).toBe("provisional");
46
- expect(result.ambiguous).toBe(false);
47
- // Cited source is a PAVE TS enum, not a prototype YAML dump.
48
- expect(result.sourceIsPrototype).toBe(false);
49
- expect(result.sourcePath).toBeNull();
50
- });
51
-
52
- it("classifies a CANONICAL provenance-note domain as its own maturity, not 'draft'/'final' (admin_roles, src/cvcs/adminRoles.v1.0.0.json)", () => {
53
- const result = parseCvcStatus({
54
- _status:
55
- "CANONICAL — imported 0.8.13 from the Notion Final CVC codebook (CVC-134 `core - admin " +
56
- "roles`, Owner Crysta Price, Status 'Drafted - Needs Review'). Administrative role " +
57
- "vocabulary for the canonical authorization model (IC-66). DISTINCT from CVC-135 " +
58
- "`user_roles` (the operational/practitioner role axis) — a person may hold both.",
59
- _source:
60
- "htilabstech/prototype@a596eb9 Final CVCs/System Roles, Permissions, & Account " +
61
- "Management (IC-66)/core - admin roles (CVC-134)",
62
- });
63
- // A "CANONICAL" leading marker is a provenance note on an ALREADY-ratified
64
- // file — kept as its own state, distinct from "final" (the absent-field
65
- // legacy case), so a caller can tell "explicitly marked ratified" apart
66
- // from "predates the convention entirely".
67
- expect(result.maturity).toBe("canonical");
68
- expect(result.ambiguous).toBe(false);
69
- expect(result.sourceIsPrototype).toBe(false);
70
- });
71
-
72
- it("classifies an absent `_status` as 'final' — legacy/unmarked, predates the convention (administering_jurisdiction, src/cvcs/administeringJurisdiction.v1.0.0.json)", () => {
73
- const result = parseCvcStatus({});
74
- expect(result.maturity).toBe("final");
75
- expect(result.rawStatus).toBeNull();
76
- expect(result.ambiguous).toBe(false);
77
- expect(result.sourceIsPrototype).toBe(false);
78
- expect(result.sourcePath).toBeNull();
79
- });
80
-
81
- it("flags the self-contradictory core_functions case as ambiguous, generically — not a special case for this one domain (src/cvcs/coreFunctions.v1.0.0.json)", () => {
82
- const result = parseCvcStatus({
83
- _status:
84
- "DRAFTED — NEEDS REVIEW: canonical Notion CVC-133 (core - functions), verified v1.0, " +
85
- "ported verbatim from the Notion codebook. Canonical numbering (133), NOT provisional. " +
86
- "Per-entry lifecycle Status (v1 / future / not-started) is carried in each definition.",
87
- _source: "Notion CVC-133 core - functions (collection://3211ef14-abcd-8024-867d-000be4b35a79)",
88
- });
89
- // Leading token "DRAFTED" still drives the primary classification…
90
- expect(result.maturity).toBe("draft");
91
- // …but the string also asserts "NOT provisional" later on, which the
92
- // parser catches generically (scans the whole string for a negated
93
- // maturity keyword) rather than via a domain-name special case, so any
94
- // future domain authored in this same self-contradictory shape is also
95
- // caught automatically.
96
- expect(result.ambiguous).toBe(true);
97
- });
98
-
99
- it("falls back to a whole-string keyword scan when the leading token is none of the three convention words (share_purpose, src/cvcs/sharePurpose.v1.0.0.json)", () => {
100
- const result = parseCvcStatus({
101
- _status:
102
- "Synced verbatim from canonical CVC-84 (renamed `core-sharing_purpose` 2026-08-19). " +
103
- "8 core rows from `core_share_purpose.yaml` + 4 LEADS-wing rows from " +
104
- "`core_share_purpose_extensions_leads.yaml`… The wing rows were RATIFIED 2026-07-03 " +
105
- "and live-synced 2026-08-19 (no longer proposal-only).",
106
- _source: "htilabstech/prototype data/cvcs/core_share_purpose.yaml + core_share_purpose_extensions_leads.yaml",
107
- });
108
- // Leading token is "Synced" — none of draft/provisional/canonical. The
109
- // body contains exactly one keyword family ("canonical"), so the parser
110
- // accepts it unambiguously rather than defaulting to "final" (which per
111
- // the module rule is reserved for an ABSENT `_status`, not merely an
112
- // unrecognized leading word on a present one).
113
- expect(result.maturity).toBe("canonical");
114
- expect(result.ambiguous).toBe(false);
115
- });
116
-
117
- it("reads the structured-object `_status` shape via its `vocabStatus` field, not the whole object (citizenship, src/cvcs/citizenship.v1.0.0.json)", () => {
118
- const result = parseCvcStatus({
119
- _status: {
120
- vocabStatus: "provisional-pending-notion-ratification",
121
- authoredBy: "platform-common 0.8.13",
122
- evidence:
123
- "prototype@a596eb9 'Final CVCs/Socioeconomic Demographics (IC-69)/Nationality & " +
124
- "Citizenship (IC-60)/core - citizenship — codebook 2.csv' (252 rows) + " +
125
- "CVC_INDEX.md:25 (core - citizenship = CVC-182, status 'Not started').",
126
- },
127
- });
128
- expect(result.maturity).toBe("provisional");
129
- expect(result.rawStatus).toBe("provisional-pending-notion-ratification");
130
- expect(result.ambiguous).toBe(false);
131
- });
132
-
133
- it("reads the structured-object `_status` shape's 'canonical' vocabStatus (person_relationships, src/cvcs/personRelationships.v1.0.0.json)", () => {
134
- const result = parseCvcStatus({
135
- _status: { vocabStatus: "canonical", authoredBy: "platform-common 0.8.14" },
136
- });
137
- expect(result.maturity).toBe("canonical");
138
- expect(result.rawStatus).toBe("canonical");
139
- expect(result.ambiguous).toBe(false);
140
- });
141
-
142
- it("ignores a non-string `_source` and a `_source` with no prototype YAML citation", () => {
143
- const noSource = parseCvcStatus({ _status: "DRAFT — x" });
144
- expect(noSource.sourceIsPrototype).toBe(false);
145
- expect(noSource.sourcePath).toBeNull();
146
-
147
- const nonStringSource = parseCvcStatus({ _status: "DRAFT — x", _source: 42 });
148
- expect(nonStringSource.sourceIsPrototype).toBe(false);
149
- });
150
- });
@@ -1,80 +0,0 @@
1
- {
2
- "domain": "assertion_status",
3
- "name": "Assertion Status",
4
- "version": "1.0.0",
5
- "_status": "PROVISIONAL — GDR §10.1 confirmed-CVC name is `core - status`, but Final CVCs/CVC_INDEX.md @ a596eb9 carries no number for it, so it parks in the provisional 900-block pending canonical Notion authoring + steward ratification. Substantive values sourced verbatim from the PAVE @pave/domain `ASSERTION_STATUSES` enum (D10 GDR §10.1 bulk publish, bead pv-pgdr-cvc-source-gdr-10-1-bulk-publish). The PAVE enum enumerates only the substantive lifecycle states, so the missingness quadruplet is added per SOT convention.",
6
- "_source": "pave-2.0/packages/domain/src/enums.ts ASSERTION_STATUSES",
7
- "levels": {
8
- "0": "Unknown or Missing",
9
- "1": "Assertion lifecycle status"
10
- },
11
- "entries": [
12
- {
13
- "code": "985-000-000-000-000-000-000",
14
- "key": "missingness_root",
15
- "title": "Unknown, Redacted, or Missing",
16
- "selectable": false,
17
- "parentCode": null,
18
- "childCodes": [
19
- "985-000-000-000-000-000-001",
20
- "985-000-000-000-000-000-002",
21
- "985-000-000-000-000-000-003"
22
- ],
23
- "definition": "Root group for values indicating absent, withheld, or uncollected data."
24
- },
25
- {
26
- "code": "985-000-000-000-000-000-001",
27
- "key": "unknown",
28
- "title": "Unknown",
29
- "selectable": true,
30
- "parentCode": "985-000-000-000-000-000-000",
31
- "childCodes": [],
32
- "definition": "The assertion status is unknown at time of entry (missingness sentinel)."
33
- },
34
- {
35
- "code": "985-000-000-000-000-000-002",
36
- "key": "anonymous",
37
- "title": "Anonymous / declined to answer",
38
- "selectable": true,
39
- "parentCode": "985-000-000-000-000-000-000",
40
- "childCodes": [],
41
- "definition": "Value is intentionally withheld, declined, or redacted."
42
- },
43
- {
44
- "code": "985-000-000-000-000-000-003",
45
- "key": "data_not_collected",
46
- "title": "Data not collected",
47
- "selectable": true,
48
- "parentCode": "985-000-000-000-000-000-000",
49
- "childCodes": [],
50
- "definition": "No attempt was made to collect the value."
51
- },
52
- {
53
- "code": "985-001-000-000-000-000-000",
54
- "key": "active",
55
- "title": "Active",
56
- "selectable": true,
57
- "parentCode": null,
58
- "childCodes": [],
59
- "definition": "In force — the current, non-superseded row for its spine partition. Emitting systems typically default new assertions to this status (e.g. PAVE's assertion factory defaults `status: \"active\"`)."
60
- },
61
- {
62
- "code": "985-002-000-000-000-000-000",
63
- "key": "superseded",
64
- "title": "Superseded",
65
- "selectable": true,
66
- "parentCode": null,
67
- "childCodes": [],
68
- "definition": "Replaced by a later assertion row in the same spine partition. When status === \"superseded\", `supersedes_assertion_id` is required per GLOBAL_DESIGN_RULES §5.5."
69
- },
70
- {
71
- "code": "985-003-000-000-000-000-000",
72
- "key": "retracted",
73
- "title": "Retracted",
74
- "selectable": true,
75
- "parentCode": null,
76
- "childCodes": [],
77
- "definition": "Withdrawn or invalidated without a replacement row — the claim is no longer asserted. Distinct from superseded (which points at a successor)."
78
- }
79
- ]
80
- }
@@ -1,89 +0,0 @@
1
- {
2
- "domain": "car_correction_reason",
3
- "name": "CAR Correction Reason",
4
- "version": "1.0.0",
5
- "_status": "DRAFT — TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering (992). Non-clinical bookkeeping/provenance vocabulary — the coded KIND of a CAR (Contextual Assertion Record) correction or retraction, engineer-direct-authored per the PAVE CVC-authoring governance steer (structural, provisional/ratify-later; FYI to Crysta, NOT Crysta-gated). The first three tokens are sourced verbatim from PAVE `@pave/domain` CAR_CORRECTION_REASONS / RETRACTION_TYPES (packages/domain/src/carGovernance.ts), themselves hoisted from packages/db/src/services/assertionRetraction.ts's documented `retractionType` set; publishing them here retires that PAVE-local const in favour of the SOT it always wanted (carGovernance.ts §'Where these labels are DERIVED' notes 'the day a CVC publishes these three the swap is one deriveLabels call'). The fourth, removed_by_recipient_curation, is added for the PAVE CaseShare received-content curation lane (bead pv-p6share-curation-retract-reason-vocab, 2026-09-18). CASING: lower_snake per the CVC key regex. PENDING canonical Notion authoring + steward ratification.",
6
- "_source": "pave-2.0/packages/domain/src/carGovernance.ts CAR_CORRECTION_REASONS; pave-2.0/packages/db/src/services/assertionRetraction.ts RetractAssertionInput.retractionType; removed_by_recipient_curation net-new for the received-content curation lane (pv-p6share-curation-retract-reason-vocab)",
7
- "levels": {
8
- "0": "Unknown or Missing",
9
- "1": "CAR correction / retraction reason (single-select per correction event)"
10
- },
11
- "entries": [
12
- {
13
- "code": "992-000-000-000-000-000-000",
14
- "key": "missingness_root",
15
- "title": "Unknown, Redacted, or Missing",
16
- "selectable": false,
17
- "parentCode": null,
18
- "childCodes": [
19
- "992-000-000-000-000-000-001",
20
- "992-000-000-000-000-000-002",
21
- "992-000-000-000-000-000-003"
22
- ],
23
- "definition": "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected). No prefer_not_to_answer — workspace standard ANON semantic rolls 'declined to answer' into the anonymous sentinel. A correction reason is always explicitly chosen in practice; the quadruplet is present per SOT convention, not because a correction is expected to be missing."
24
- },
25
- {
26
- "code": "992-000-000-000-000-000-001",
27
- "key": "unknown",
28
- "title": "Unknown",
29
- "selectable": true,
30
- "parentCode": "992-000-000-000-000-000-000",
31
- "childCodes": [],
32
- "definition": "Value is unknown at time of entry."
33
- },
34
- {
35
- "code": "992-000-000-000-000-000-002",
36
- "key": "anonymous",
37
- "title": "Anonymous / declined to answer",
38
- "selectable": true,
39
- "parentCode": "992-000-000-000-000-000-000",
40
- "childCodes": [],
41
- "definition": "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
42
- },
43
- {
44
- "code": "992-000-000-000-000-000-003",
45
- "key": "data_not_collected",
46
- "title": "Data not collected",
47
- "selectable": true,
48
- "parentCode": "992-000-000-000-000-000-000",
49
- "childCodes": [],
50
- "definition": "No attempt was made to collect the value."
51
- },
52
- {
53
- "code": "992-001-000-000-000-000-000",
54
- "key": "entered_in_error",
55
- "title": "Entered in error",
56
- "selectable": true,
57
- "parentCode": null,
58
- "childCodes": [],
59
- "definition": "The assertion should never have been recorded — it was captured by mistake (wrong subject, wrong field, an advocate mis-click, or a claim the conversation did not actually support). The row is RETRACTED, not hard-deleted: a retraction retains the row it retracts so the log of record stays forensic. The canonical 'this is not true and never was' correction."
60
- },
61
- {
62
- "code": "992-002-000-000-000-000-000",
63
- "key": "duplicate",
64
- "title": "Duplicate of another assertion",
65
- "selectable": true,
66
- "parentCode": null,
67
- "childCodes": [],
68
- "definition": "The same claim was asserted twice in the same spine partition (e.g. captured from two surfaces, or re-emitted by an ingest path that did not de-duplicate). The duplicate copy is retracted; the canonical copy remains active. Distinct from entered_in_error: the claim IS true, it is merely recorded more than once."
69
- },
70
- {
71
- "code": "992-003-000-000-000-000-000",
72
- "key": "superseded_externally",
73
- "title": "Superseded externally",
74
- "selectable": true,
75
- "parentCode": null,
76
- "childCodes": [],
77
- "definition": "The assertion is retired because a truer or more current value arrived from OUTSIDE the ordinary in-partition supersession chain (e.g. a corrected value from another system or a later disclosure that a normal supersede row could not express). Use when the successor is not itself a spine row that carries `supersedes_assertion_id`; where an in-partition successor exists, status 'superseded' with `supersedes_assertion_id` is the right shape instead."
78
- },
79
- {
80
- "code": "992-004-000-000-000-000-000",
81
- "key": "removed_by_recipient_curation",
82
- "title": "Removed by recipient curation",
83
- "selectable": true,
84
- "parentCode": null,
85
- "childCodes": [],
86
- "definition": "Recipient-side curation removal of a received (re-emitted) assertion; added for PAVE CaseShare received-content curation, 2026-09-18. A recipient agency curates a cleanly-attributed foreign re-emitted CAR (indicator / victimization / involvement) out of their own record — the claim is not asserted as false, it is simply not one this recipient chooses to carry. The row is RETRACTED with this coded, honest reason rather than silently dropped, so the received-then-removed sequence stays on the log of record and the origin's assertion is untouched. Distinct from entered_in_error (a mistaken capture) and from duplicate (a redundant copy): the assertion was validly received and validly removed by the receiving side's curation decision."
87
- }
88
- ]
89
- }
@@ -1,62 +0,0 @@
1
- {
2
- "domain": "case_share_state",
3
- "name": "Core Case Share State",
4
- "version": "1.0.0",
5
- "levels": { "1": "State" },
6
- "entries": [
7
- {
8
- "code": "925-001-000-000-000-000-000",
9
- "key": "pending",
10
- "title": "Pending",
11
- "selectable": true,
12
- "parentCode": null,
13
- "childCodes": [],
14
- "definition": "The share has been delivered to the receiving party and is awaiting a claim. No one on the receiving side has taken responsibility for it yet, and no client content has been disclosed."
15
- },
16
- {
17
- "code": "925-002-000-000-000-000-000",
18
- "key": "claimed",
19
- "title": "Claimed",
20
- "selectable": true,
21
- "parentCode": null,
22
- "childCodes": [],
23
- "definition": "A team on the receiving side has taken custody of the share but has not yet accepted it. Claiming assigns responsibility only; it discloses no client content, so a claimed share is still outstanding work rather than a completed exchange."
24
- },
25
- {
26
- "code": "925-003-000-000-000-000-000",
27
- "key": "accepted_awaiting_review",
28
- "title": "Accepted — awaiting review",
29
- "selectable": true,
30
- "parentCode": null,
31
- "childCodes": [],
32
- "definition": "The share has been accepted and its content disclosed, but one or more delivered persons matched an existing record ambiguously and are held for a human decision before the receiving record is linked."
33
- },
34
- {
35
- "code": "925-004-000-000-000-000-000",
36
- "key": "accepted",
37
- "title": "Accepted",
38
- "selectable": true,
39
- "parentCode": null,
40
- "childCodes": [],
41
- "definition": "The share has been accepted, its content disclosed, and the link to the receiving party's record written. Terminal."
42
- },
43
- {
44
- "code": "925-005-000-000-000-000-000",
45
- "key": "declined",
46
- "title": "Declined",
47
- "selectable": true,
48
- "parentCode": null,
49
- "childCodes": [],
50
- "definition": "The receiving party refused the share at the claim decision point, BEFORE its content was disclosed. Distinct from rejected: no client information was released, so the refusal carries no disclosure to account for. Terminal."
51
- },
52
- {
53
- "code": "925-006-000-000-000-000-000",
54
- "key": "rejected",
55
- "title": "Rejected",
56
- "selectable": true,
57
- "parentCode": null,
58
- "childCodes": [],
59
- "definition": "The receiving party refused the share AFTER accepting it and reviewing its content. Distinct from declined: the disclosure already occurred and remains subject to the receiving party's retention and audit obligations. Terminal."
60
- }
61
- ]
62
- }