@conarium-ai/core 0.2.30 → 0.2.31
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/LIMITATIONS.md +5 -5
- package/LIMITATIONS.tr.md +5 -5
- package/README.md +17 -4
- package/bin/conarium-anchor-service.mjs +22 -3
- package/bin/conarium-doctor.mjs +28 -18
- package/bin/conarium-token-sync.mjs +54 -0
- package/deploy/anchor-service/README.md +3 -0
- package/deploy/anchor-service/conarium-token-sync.service +14 -0
- package/deploy/anchor-service/conarium-token-sync.timer +11 -0
- package/dist/anchor-service.d.ts +10 -0
- package/dist/anchor-service.d.ts.map +1 -1
- package/dist/anchor-service.js +33 -6
- package/dist/anchor-service.js.map +1 -1
- package/dist/governance.d.ts.map +1 -1
- package/dist/governance.js +69 -14
- package/dist/governance.js.map +1 -1
- package/dist/masking-cost.d.ts +1 -1
- package/dist/masking-cost.js +4 -4
- package/dist/masking-cost.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/docs/BENCHMARK.md +49 -35
- package/docs/PRICING.md +41 -0
- package/docs/RECEIPT-SPEC.md +1 -0
- package/docs/benchmarks/latest.json +1662 -1662
- package/docs/benchmarks/masking-cost-threshold.json +2 -2
- package/docs/benchmarks/masking-cpu-summary.json +25 -0
- package/docs/benchmarks/masking-identity-after.json +66 -0
- package/docs/benchmarks/masking-identity-before.json +66 -0
- package/docs/benchmarks/masking-profile-100.json +22 -0
- package/docs/benchmarks/masking-profile-500.json +22 -0
- package/docs/benchmarks/masking-profile-5000.json +22 -0
- package/docs/benchmarks/overhead-20260818T1842Z-win32-before.json +539 -0
- package/docs/benchmarks/overhead-20260818T1852Z-win32.json +539 -0
- package/docs/benchmarks/overhead-20260818T2120Z-win32-09b2100.json +2310 -0
- package/docs/benchmarks/overhead-20260818T2145Z-win32-46acd75.json +2310 -0
- package/docs/claims/reviews/0.2.31.md +76 -0
- package/package.json +3 -1
- package/scripts/profile-masking-carryover.mjs +140 -0
- package/scripts/profile-masking-once.mjs +79 -0
- package/scripts/snapshot-masking-identity.mjs +62 -0
- package/scripts/summarize-cpuprofile.mjs +24 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"warnAbove":
|
|
2
|
+
"warnAbove": 500,
|
|
3
3
|
"unit": "maxRows",
|
|
4
|
-
"source": "docs/BENCHMARK.md 2026-08-
|
|
4
|
+
"source": "docs/BENCHMARK.md 2026-08-18T2145Z win32/Node 24/Postgres 16.15 same-limit partial: maxRows 100 overhead p50=2.670ms; 500=8.801ms; 5000=92.929ms. 500 is the last measured cap still in the low-millisecond band. Default maxRows is 100, so the default does not warn.",
|
|
5
5
|
"notASecurityGate": true
|
|
6
6
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"before": {
|
|
3
|
+
"file": "docs/benchmarks/masking-5000-partial.cpuprofile",
|
|
4
|
+
"command": "node --cpu-prof scripts/profile-masking-once.mjs partial 5000",
|
|
5
|
+
"wallMs": 17346,
|
|
6
|
+
"totalHits": 10949,
|
|
7
|
+
"top": [
|
|
8
|
+
{ "hits": 4555, "pct": 41.6, "fn": "redactKnownValues", "at": "src/governance.ts:143 → dist/governance.js:71" },
|
|
9
|
+
{ "hits": 471, "pct": 4.3, "fn": "knownValueMatchers map new RegExp", "at": "src/governance.ts:140 → dist/governance.js:69" },
|
|
10
|
+
{ "hits": 50, "pct": 0.5, "fn": "maskPII", "at": "dist/governance.js:387" }
|
|
11
|
+
],
|
|
12
|
+
"note": "Individual RegExp:(?<![\\p{L}\\p{N}])user-NNNN@example\\.com(?![\\p{L}\\p{N}]) frames also appear. carry hits = 0."
|
|
13
|
+
},
|
|
14
|
+
"after": {
|
|
15
|
+
"file": "docs/benchmarks/masking-5000-partial-after.cpuprofile",
|
|
16
|
+
"command": "node --cpu-prof scripts/profile-masking-once.mjs partial 5000",
|
|
17
|
+
"wallMs": 90.1,
|
|
18
|
+
"totalHits": 125,
|
|
19
|
+
"top": [
|
|
20
|
+
{ "hits": 9, "pct": 7.2, "fn": "maskPII", "at": "dist/governance.js:430" },
|
|
21
|
+
{ "hits": 5, "pct": 4.0, "fn": "masksColumn / match", "at": "dist/governance.js:414 / :22" }
|
|
22
|
+
],
|
|
23
|
+
"note": "redactKnownValues is absent from the top 25. Hottest product frame is maskPII."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"label": "after",
|
|
3
|
+
"node": "v24.5.0",
|
|
4
|
+
"sizes": {
|
|
5
|
+
"100": {
|
|
6
|
+
"sha256": "663aa1ac732db6cec31bf49f76eda41ade4dd92be1b02d4d029a2dd768b02db1",
|
|
7
|
+
"maskedCount": 100,
|
|
8
|
+
"byClass": {},
|
|
9
|
+
"maskedFields": [
|
|
10
|
+
"email"
|
|
11
|
+
],
|
|
12
|
+
"sampleRow": {
|
|
13
|
+
"id": 1,
|
|
14
|
+
"name": "user-1",
|
|
15
|
+
"email": "[MASKED_PII]",
|
|
16
|
+
"note": "note 1"
|
|
17
|
+
},
|
|
18
|
+
"lastRow": {
|
|
19
|
+
"id": 100,
|
|
20
|
+
"name": "user-100",
|
|
21
|
+
"email": "[MASKED_PII]",
|
|
22
|
+
"note": "note 100"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"500": {
|
|
26
|
+
"sha256": "cc40a1d21354aac1ecee7aeee680481fad3cfa9181494471c5cfd5ea91338a09",
|
|
27
|
+
"maskedCount": 500,
|
|
28
|
+
"byClass": {},
|
|
29
|
+
"maskedFields": [
|
|
30
|
+
"email"
|
|
31
|
+
],
|
|
32
|
+
"sampleRow": {
|
|
33
|
+
"id": 1,
|
|
34
|
+
"name": "user-1",
|
|
35
|
+
"email": "[MASKED_PII]",
|
|
36
|
+
"note": "note 1"
|
|
37
|
+
},
|
|
38
|
+
"lastRow": {
|
|
39
|
+
"id": 500,
|
|
40
|
+
"name": "user-500",
|
|
41
|
+
"email": "[MASKED_PII]",
|
|
42
|
+
"note": "note 500"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"5000": {
|
|
46
|
+
"sha256": "66271d594c206667b32656913e4595c4df4247786316c814212cf99016045453",
|
|
47
|
+
"maskedCount": 5000,
|
|
48
|
+
"byClass": {},
|
|
49
|
+
"maskedFields": [
|
|
50
|
+
"email"
|
|
51
|
+
],
|
|
52
|
+
"sampleRow": {
|
|
53
|
+
"id": 1,
|
|
54
|
+
"name": "user-1",
|
|
55
|
+
"email": "[MASKED_PII]",
|
|
56
|
+
"note": "note 1"
|
|
57
|
+
},
|
|
58
|
+
"lastRow": {
|
|
59
|
+
"id": 5000,
|
|
60
|
+
"name": "user-5000",
|
|
61
|
+
"email": "[MASKED_PII]",
|
|
62
|
+
"note": "note 5000"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"label": "before",
|
|
3
|
+
"node": "v24.5.0",
|
|
4
|
+
"sizes": {
|
|
5
|
+
"100": {
|
|
6
|
+
"sha256": "663aa1ac732db6cec31bf49f76eda41ade4dd92be1b02d4d029a2dd768b02db1",
|
|
7
|
+
"maskedCount": 100,
|
|
8
|
+
"byClass": {},
|
|
9
|
+
"maskedFields": [
|
|
10
|
+
"email"
|
|
11
|
+
],
|
|
12
|
+
"sampleRow": {
|
|
13
|
+
"id": 1,
|
|
14
|
+
"name": "user-1",
|
|
15
|
+
"email": "[MASKED_PII]",
|
|
16
|
+
"note": "note 1"
|
|
17
|
+
},
|
|
18
|
+
"lastRow": {
|
|
19
|
+
"id": 100,
|
|
20
|
+
"name": "user-100",
|
|
21
|
+
"email": "[MASKED_PII]",
|
|
22
|
+
"note": "note 100"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"500": {
|
|
26
|
+
"sha256": "cc40a1d21354aac1ecee7aeee680481fad3cfa9181494471c5cfd5ea91338a09",
|
|
27
|
+
"maskedCount": 500,
|
|
28
|
+
"byClass": {},
|
|
29
|
+
"maskedFields": [
|
|
30
|
+
"email"
|
|
31
|
+
],
|
|
32
|
+
"sampleRow": {
|
|
33
|
+
"id": 1,
|
|
34
|
+
"name": "user-1",
|
|
35
|
+
"email": "[MASKED_PII]",
|
|
36
|
+
"note": "note 1"
|
|
37
|
+
},
|
|
38
|
+
"lastRow": {
|
|
39
|
+
"id": 500,
|
|
40
|
+
"name": "user-500",
|
|
41
|
+
"email": "[MASKED_PII]",
|
|
42
|
+
"note": "note 500"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"5000": {
|
|
46
|
+
"sha256": "66271d594c206667b32656913e4595c4df4247786316c814212cf99016045453",
|
|
47
|
+
"maskedCount": 5000,
|
|
48
|
+
"byClass": {},
|
|
49
|
+
"maskedFields": [
|
|
50
|
+
"email"
|
|
51
|
+
],
|
|
52
|
+
"sampleRow": {
|
|
53
|
+
"id": 1,
|
|
54
|
+
"name": "user-1",
|
|
55
|
+
"email": "[MASKED_PII]",
|
|
56
|
+
"note": "note 1"
|
|
57
|
+
},
|
|
58
|
+
"lastRow": {
|
|
59
|
+
"id": 5000,
|
|
60
|
+
"name": "user-5000",
|
|
61
|
+
"email": "[MASKED_PII]",
|
|
62
|
+
"note": "note 5000"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"n": 100,
|
|
3
|
+
"node": "v24.5.0",
|
|
4
|
+
"compileMatchersMs": 14.668999999999997,
|
|
5
|
+
"matcherCount": 100,
|
|
6
|
+
"oneRowTwoFieldsCarryMs": 34.46809999999999,
|
|
7
|
+
"allRowsCarryOnlyMs": 4.512200000000007,
|
|
8
|
+
"carryHits": 0,
|
|
9
|
+
"fullRedactPartialMs": 3.496200000000016,
|
|
10
|
+
"fullRedactAllowMs": 2.9661000000000115,
|
|
11
|
+
"impliedCarryPerRowMs": 0.04512200000000007,
|
|
12
|
+
"impliedIfLinearFrom100": 4.512200000000007,
|
|
13
|
+
"quadraticSignature": {
|
|
14
|
+
"matchers": 100,
|
|
15
|
+
"fieldsPerRow": 2,
|
|
16
|
+
"replaceCalls": 20000
|
|
17
|
+
},
|
|
18
|
+
"maskedCountPartial": 100,
|
|
19
|
+
"maskedCountAllow": 100,
|
|
20
|
+
"byClassPartial": {},
|
|
21
|
+
"byClassAllow": {}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"n": 500,
|
|
3
|
+
"node": "v24.5.0",
|
|
4
|
+
"compileMatchersMs": 59.74849999999999,
|
|
5
|
+
"matcherCount": 500,
|
|
6
|
+
"oneRowTwoFieldsCarryMs": 179.6691,
|
|
7
|
+
"allRowsCarryOnlyMs": 44.293000000000006,
|
|
8
|
+
"carryHits": 0,
|
|
9
|
+
"fullRedactPartialMs": 68.38190000000009,
|
|
10
|
+
"fullRedactAllowMs": 59.54060000000004,
|
|
11
|
+
"impliedCarryPerRowMs": 0.08858600000000001,
|
|
12
|
+
"impliedIfLinearFrom100": 8.858600000000001,
|
|
13
|
+
"quadraticSignature": {
|
|
14
|
+
"matchers": 500,
|
|
15
|
+
"fieldsPerRow": 2,
|
|
16
|
+
"replaceCalls": 500000
|
|
17
|
+
},
|
|
18
|
+
"maskedCountPartial": 500,
|
|
19
|
+
"maskedCountAllow": 500,
|
|
20
|
+
"byClassPartial": {},
|
|
21
|
+
"byClassAllow": {}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"n": 5000,
|
|
3
|
+
"node": "v24.5.0",
|
|
4
|
+
"compileMatchersMs": 697.0434,
|
|
5
|
+
"matcherCount": 5000,
|
|
6
|
+
"oneRowTwoFieldsCarryMs": 1807.2923,
|
|
7
|
+
"allRowsCarryOnlyMs": 8234.3677,
|
|
8
|
+
"carryHits": 0,
|
|
9
|
+
"fullRedactPartialMs": 9188.780600000002,
|
|
10
|
+
"fullRedactAllowMs": 8780.109500000006,
|
|
11
|
+
"impliedCarryPerRowMs": 1.64687354,
|
|
12
|
+
"impliedIfLinearFrom100": 164.687354,
|
|
13
|
+
"quadraticSignature": {
|
|
14
|
+
"matchers": 5000,
|
|
15
|
+
"fieldsPerRow": 2,
|
|
16
|
+
"replaceCalls": 50000000
|
|
17
|
+
},
|
|
18
|
+
"maskedCountPartial": 5000,
|
|
19
|
+
"maskedCountAllow": 5000,
|
|
20
|
+
"byClassPartial": {},
|
|
21
|
+
"byClassAllow": {}
|
|
22
|
+
}
|