@actuarial-ts/data 0.7.0 → 0.7.1
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/README.md +42 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Typed ingestion, preparation, and data-review boundaries for the actuarial-ts SDK. It supports loss-run/exposure CSVs, annual claim-development adaptation, triangle assembly, and generalized diagnostic review designed to support ASOP No. 23 work.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npm install @actuarial-ts/data@0.7.
|
|
6
|
+
npm install @actuarial-ts/data@0.7.1 @actuarial-ts/core@0.7.1
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Node 20+, ESM. Responsibility for the review and resulting actuarial work remains with the actuary.
|
|
@@ -14,7 +14,7 @@ Node 20+, ESM. Responsibility for the review and resulting actuarial work remain
|
|
|
14
14
|
|
|
15
15
|
## Diagnostic run boundary
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
The example below uses the retained eager path: `validateDiagnosticRunInput` before `runValidatedMetricDiagnostics`. Validation parses the entire configuration atomically and compiles its definition; no partially validated run escapes. The compact path below uses the same input model and execution policies with a distinct evidence representation.
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
import { runValidatedMetricDiagnostics, validateDiagnosticRunInput } from "@actuarial-ts/data";
|
|
@@ -59,7 +59,46 @@ Definitions add declarative `compare`, `reconcile`, `monotonic`, `layer-order`,
|
|
|
59
59
|
|
|
60
60
|
Completed outcomes are owner-branded and include the exact prepared data, review receipt, run preset, dataset artifact, grouping, result, and two-gate receipt. Compliance provenance accepts only that completed object.
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
## Compact runs and paged review
|
|
63
|
+
|
|
64
|
+
Introduced in 0.7.0, `validateDiagnosticRunInputCompact` followed by
|
|
65
|
+
`runValidatedMetricDiagnosticsCompact` retains complete review evidence behind
|
|
66
|
+
authenticated owners. Check `outcome.status` before using a completed run: a
|
|
67
|
+
review-blocked result is `null`, while a metric-blocked outcome includes its
|
|
68
|
+
diagnostic result but still cannot authorize provenance. Neither blocked path
|
|
69
|
+
should be presented as a successfully reviewed analysis.
|
|
70
|
+
|
|
71
|
+
Compact receipts have summary checks with `findingCount`, an `evaluations`
|
|
72
|
+
store, and a `findings` store. They do not contain eager per-check finding arrays.
|
|
73
|
+
Use the store from the same receipt throughout paging:
|
|
74
|
+
|
|
75
|
+
| Need | Public API |
|
|
76
|
+
|---|---|
|
|
77
|
+
| Finding summaries without expanded source lists | `pageDiagnosticReviewFindings(receipt.findings, query)` from data |
|
|
78
|
+
| Sources for one finding's stable index | `pageDiagnosticReviewFindingSources(receipt.findings, index, query)` from data |
|
|
79
|
+
| Passed, triggered, and not-evaluated evaluation summaries | `pageDiagnosticReviewEvaluations(receipt.evaluations, query)` from core |
|
|
80
|
+
| Sources for one evaluation | `pageDiagnosticReviewEvaluationSources` from core |
|
|
81
|
+
|
|
82
|
+
Finding-source queries distinguish `context` and review `scope` sources. Page
|
|
83
|
+
results disclose totals and continuation offsets; a summary's source count is
|
|
84
|
+
not the source list. `getDiagnosticReviewFinding` and
|
|
85
|
+
`iterateDiagnosticReviewFindings` provide full individual findings when needed,
|
|
86
|
+
but can expand their source arrays. Do not collect every full finding merely to
|
|
87
|
+
paginate it afterward.
|
|
88
|
+
|
|
89
|
+
`getCompletedCompactDiagnosticRunInput` exposes the retained immutable input
|
|
90
|
+
owner for a genuine completed run. Keeping that run alive also keeps its replay
|
|
91
|
+
inputs alive; release obsolete runs when the host no longer needs them. Parsed
|
|
92
|
+
JSON, spreads, and casts cannot recreate these owners. Use
|
|
93
|
+
`createCompactDiagnosticRunIdentity` in compliance for compact completed runs;
|
|
94
|
+
the eager provenance function is not interchangeable.
|
|
95
|
+
|
|
96
|
+
See the runnable [compact adoption guide](https://github.com/yerromnitsuj/actng/blob/v0.7.1/docs/migrations/0.7-compact-diagnostics.md)
|
|
97
|
+
and [replay/resource-policy reference](https://github.com/yerromnitsuj/actng/blob/v0.7.1/docs/reference/diagnostic-replay-stream.md).
|
|
98
|
+
Compact representation preserves evidence; it is not a claim that an arbitrary
|
|
99
|
+
large dataset or host memory budget has passed acceptance.
|
|
100
|
+
|
|
101
|
+
See the [formula catalog](https://github.com/yerromnitsuj/actng/blob/v0.7.1/docs/reference/diagnostic-formulas.md) and [migration guide](https://github.com/yerromnitsuj/actng/blob/v0.7.1/docs/migrations/0.6-generalized-diagnostics.md).
|
|
63
102
|
|
|
64
103
|
## License
|
|
65
104
|
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DATA_PACKAGE_VERSION = "0.7.
|
|
1
|
+
export declare const DATA_PACKAGE_VERSION = "0.7.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const DATA_PACKAGE_VERSION = "0.7.
|
|
1
|
+
export const DATA_PACKAGE_VERSION = "0.7.1";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actuarial-ts/data",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Data ingestion and ASOP No. 23 support for actuarial-ts: loss/exposure preparation, atomic generalized diagnostic validation, declarative review, and triangle assembly.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"prepublishOnly": "node ../../tools/release/verify-release-attestation.mjs @actuarial-ts/data"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@actuarial-ts/core": "^0.7.
|
|
52
|
+
"@actuarial-ts/core": "^0.7.1",
|
|
53
53
|
"zod": "^3.25.76"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const DATA_PACKAGE_VERSION = "0.7.
|
|
1
|
+
export const DATA_PACKAGE_VERSION = "0.7.1";
|