@fortemi/core 2026.9.4 → 2026.9.6

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 (24) hide show
  1. package/dist/index.d.ts +1617 -1486
  2. package/dist/index.js +2310 -438
  3. package/dist/index.js.map +1 -1
  4. package/package.json +5 -3
  5. package/schemas/dataset-execution-capabilities/validation/1.0.1/manifest.json +29 -0
  6. package/schemas/dataset-execution-capabilities/validation/1.0.1/negotiation-vectors.json +127 -0
  7. package/schemas/dataset-execution-capabilities/validation/1.0.1/schema.json +469 -0
  8. package/schemas/dataset-execution-capabilities/validation/1.0.1/wire-vectors.json +681 -0
  9. package/schemas/metadata-search/candidate/1.0.0/README.md +36 -0
  10. package/schemas/metadata-search/candidate/1.0.0/contract.receipt.json +38 -0
  11. package/schemas/metadata-search/candidate/1.0.0/evidence-locator.schema.json +50 -0
  12. package/schemas/metadata-search/candidate/1.0.0/evidence-resolution-vectors.json +355 -0
  13. package/schemas/metadata-search/candidate/1.0.0/evidence-resolution.schema.json +25 -0
  14. package/schemas/metadata-search/candidate/1.0.0/evidence-set-vectors.json +6095 -0
  15. package/schemas/metadata-search/candidate/1.0.0/evidence-set.schema.json +21 -0
  16. package/schemas/metadata-search/candidate/1.0.0/evidence-vectors.json +1603 -0
  17. package/schemas/metadata-search/candidate/1.0.0/predicate-vectors.json +919 -0
  18. package/schemas/metadata-search/candidate/1.0.0/predicates.schema.json +287 -0
  19. package/schemas/metadata-search/candidate/1.0.0/resolution.receipt.json +44 -0
  20. package/schemas/metadata-search/candidate/1.0.0/rest.receipt.json +51 -0
  21. package/schemas/metadata-search/candidate/1.0.0/search-rest-vectors.json +28 -0
  22. package/schemas/metadata-search/candidate/1.0.0/search-rest.schema.json +318 -0
  23. package/schemas/metadata-search/candidate/1.0.0/source.receipt.json +46 -0
  24. package/schemas/metadata-search/candidate/1.0.0/sql-scope-vectors.json +894 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fortemi/core",
3
- "version": "2026.9.4",
3
+ "version": "2026.9.6",
4
4
  "description": "Browser-only knowledge management core: PGlite (PostgreSQL WASM), MCP tools, hybrid search, and profile-scoped Knowledge Shard interchange.",
5
5
  "keywords": [
6
6
  "fortemi",
@@ -53,6 +53,7 @@
53
53
  "import": "./dist/aiwg-index-shard.js"
54
54
  },
55
55
  "./schemas/dataset-execution-capabilities/v1": "./schemas/dataset-execution-capabilities/v1.schema.json",
56
+ "./schemas/dataset-execution-capabilities/validation/1.0.1": "./schemas/dataset-execution-capabilities/validation/1.0.1/schema.json",
56
57
  "./schemas/dataset-ingest/v1": "./schemas/dataset-ingest/v1.schema.json",
57
58
  "./schemas/dataset-lineage/v1": "./schemas/dataset-lineage/v1.schema.json",
58
59
  "./schemas/dataset-materialization/v1": "./schemas/dataset-materialization/v1.schema.json",
@@ -68,6 +69,7 @@
68
69
  "schemas/dataset-lineage",
69
70
  "schemas/dataset-materialization",
70
71
  "schemas/source-note-upsert",
72
+ "schemas/metadata-search/candidate",
71
73
  "benchmarks/dataset-materialization",
72
74
  "tools",
73
75
  "README.md",
@@ -89,12 +91,12 @@
89
91
  },
90
92
  "devDependencies": {
91
93
  "@types/node": "^22.0.0",
92
- "@vitest/coverage-v8": "^4.1.1",
94
+ "@vitest/coverage-v8": "4.1.1",
93
95
  "esbuild": "0.27.4",
94
96
  "fake-indexeddb": "^6.2.5",
95
97
  "tsup": "^8.3.5",
96
98
  "typescript": "^5.8.0",
97
- "vitest": "^4.1.0"
99
+ "vitest": "4.1.1"
98
100
  },
99
101
  "scripts": {
100
102
  "build": "tsup && node scripts/canonicalize-declarations.mjs dist/index.d.ts dist/aiwg-index.d.ts dist/aiwg-index-schema.d.ts dist/aiwg-index-shard.d.ts",
@@ -0,0 +1,29 @@
1
+ {
2
+ "contract": "fortemi.dataset-capability-validation/v1",
3
+ "revision": "1.0.1",
4
+ "wireContract": "fortemi.dataset-execution-capabilities/v1",
5
+ "authority": {
6
+ "repository": "Fortemi/fortemi-react",
7
+ "issue": 422
8
+ },
9
+ "files": [
10
+ {
11
+ "path": "schema.json",
12
+ "sha256": "a4e9b427da669a02e83db00d39f48c2e106770d6cd2ec1b717938c57793b754c"
13
+ },
14
+ {
15
+ "path": "negotiation-vectors.json",
16
+ "sha256": "2793990a842d5969f1f64c90170ab97ca4ffc4b93d1302a2f358fae54631a6dc"
17
+ },
18
+ {
19
+ "path": "wire-vectors.json",
20
+ "sha256": "c52d32d0b1d0d312cf8b242f11fc116c47d104a74112cbd5d0019e6d39df9744"
21
+ }
22
+ ],
23
+ "consumers": [
24
+ "Fortemi/fortemi-react Core and materialization negotiation",
25
+ "Fortemi/fortemi MCP dataset execution",
26
+ "roctinam/aiwg dataset execution"
27
+ ],
28
+ "qualification": "Core source and local built entry only; exact consumer pins and clean installed/live acceptance remain required"
29
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "revision": "1.0.1",
3
+ "authority": "Fortemi/fortemi-react#422",
4
+ "scope": "Capability SemVer negotiation, not runtime qualification",
5
+ "versions": [
6
+ {
7
+ "id": "prerelease-stable",
8
+ "offered": "1.0.0-alpha",
9
+ "minimum": "1.0.0",
10
+ "accepted": false
11
+ },
12
+ {
13
+ "id": "numeric-prerelease",
14
+ "offered": "1.0.0-beta.2",
15
+ "minimum": "1.0.0-beta.11",
16
+ "accepted": false
17
+ },
18
+ {
19
+ "id": "numeric-before-text",
20
+ "offered": "1.0.0-9",
21
+ "minimum": "1.0.0-alpha",
22
+ "accepted": false
23
+ },
24
+ {
25
+ "id": "shorter-prerelease",
26
+ "offered": "1.0.0-alpha",
27
+ "minimum": "1.0.0-alpha.1",
28
+ "accepted": false
29
+ },
30
+ {
31
+ "id": "stable-prerelease",
32
+ "offered": "1.0.0",
33
+ "minimum": "1.0.0-rc.1",
34
+ "accepted": true
35
+ },
36
+ {
37
+ "id": "build-ignored",
38
+ "offered": "1.0.0+001",
39
+ "minimum": "1.0.0+999",
40
+ "accepted": true
41
+ },
42
+ {
43
+ "id": "prerelease-and-build",
44
+ "offered": "1.0.0-alpha+001",
45
+ "minimum": "1.0.0-alpha+999",
46
+ "accepted": true
47
+ },
48
+ {
49
+ "id": "multi-digit",
50
+ "offered": "1.10.0",
51
+ "minimum": "1.9.0",
52
+ "accepted": true
53
+ },
54
+ {
55
+ "id": "ascii-order",
56
+ "offered": "1.0.0-Z",
57
+ "minimum": "1.0.0-a",
58
+ "accepted": false
59
+ },
60
+ {
61
+ "id": "large-numeric-prerelease",
62
+ "offered": "1.0.0-9007199254740992",
63
+ "minimum": "1.0.0-9007199254740993",
64
+ "accepted": false
65
+ },
66
+ {
67
+ "id": "leading-zero-core",
68
+ "offered": "01.0.0",
69
+ "minimum": "1.0.0",
70
+ "accepted": false
71
+ },
72
+ {
73
+ "id": "leading-zero-pre",
74
+ "offered": "1.0.0-01",
75
+ "minimum": "1.0.0",
76
+ "accepted": false
77
+ },
78
+ {
79
+ "id": "empty-build",
80
+ "offered": "1.0.0+",
81
+ "minimum": "1.0.0",
82
+ "accepted": false
83
+ },
84
+ {
85
+ "id": "empty-pre-segment",
86
+ "offered": "1.0.0-a..b",
87
+ "minimum": "1.0.0",
88
+ "accepted": false
89
+ },
90
+ {
91
+ "id": "unsafe-core",
92
+ "offered": "9007199254740992.0.0",
93
+ "minimum": "1.0.0",
94
+ "accepted": false
95
+ },
96
+ {
97
+ "id": "unsafe-request",
98
+ "offered": "1.0.0",
99
+ "minimum": "9007199254740992.0.0",
100
+ "accepted": false
101
+ },
102
+ {
103
+ "id": "empty-minimum",
104
+ "offered": "1.0.0",
105
+ "minimum": "",
106
+ "accepted": false
107
+ },
108
+ {
109
+ "id": "malformed-minimum",
110
+ "offered": "1.0.0",
111
+ "minimum": "broken",
112
+ "accepted": false
113
+ },
114
+ {
115
+ "id": "trailing-newline",
116
+ "offered": "1.0.0\n",
117
+ "minimum": "1.0.0",
118
+ "accepted": false
119
+ },
120
+ {
121
+ "id": "maximum-safe-core",
122
+ "offered": "9007199254740991.0.0",
123
+ "minimum": "1.0.0",
124
+ "accepted": true
125
+ }
126
+ ]
127
+ }
@@ -0,0 +1,469 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://fortemi.dev/schemas/dataset-execution-capabilities/validation/1.0.1.schema.json",
4
+ "title": "Dataset Capability Validation Revision 1.0.1 (v1 wire)",
5
+ "oneOf": [
6
+ {
7
+ "$ref": "#/$defs/descriptor"
8
+ },
9
+ {
10
+ "$ref": "#/$defs/request"
11
+ },
12
+ {
13
+ "$ref": "#/$defs/result"
14
+ }
15
+ ],
16
+ "$defs": {
17
+ "capabilityId": {
18
+ "enum": [
19
+ "ingest.full",
20
+ "ingest.snapshot",
21
+ "ingest.incremental",
22
+ "ingest.stream",
23
+ "schema.inspect",
24
+ "identity.stable-revision",
25
+ "identity.record",
26
+ "mutation.upsert",
27
+ "mutation.tombstone",
28
+ "mutation.reconcile",
29
+ "checkpoint.read",
30
+ "checkpoint.write",
31
+ "execution.cancel",
32
+ "rejection.record",
33
+ "index.lexical",
34
+ "index.chunk",
35
+ "index.vector",
36
+ "index.hybrid",
37
+ "index.rerank",
38
+ "index.graph",
39
+ "index.community",
40
+ "lineage.dataset",
41
+ "lineage.record",
42
+ "lineage.field",
43
+ "lineage.relationship-evidence",
44
+ "transaction.atomic-batch",
45
+ "privacy.pre-materialization-filter",
46
+ "pagination.cursor",
47
+ "ordering.deterministic"
48
+ ]
49
+ },
50
+ "semver": {
51
+ "type": "string",
52
+ "maxLength": 256,
53
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-((?:0|[1-9][0-9]*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\\+([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?$(?![\\s\\S])"
54
+ },
55
+ "digest": {
56
+ "type": "string",
57
+ "pattern": "^[a-z0-9]+:[a-f0-9]+$"
58
+ },
59
+ "limits": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "properties": {
63
+ "maxInputBytes": {
64
+ "type": "integer",
65
+ "minimum": 0,
66
+ "maximum": 9007199254740991
67
+ },
68
+ "maxRecordBytes": {
69
+ "type": "integer",
70
+ "minimum": 0,
71
+ "maximum": 9007199254740991
72
+ },
73
+ "maxBatchRecords": {
74
+ "type": "integer",
75
+ "minimum": 0,
76
+ "maximum": 9007199254740991
77
+ },
78
+ "maxConcurrency": {
79
+ "type": "integer",
80
+ "minimum": 0,
81
+ "maximum": 9007199254740991
82
+ },
83
+ "maxPageSize": {
84
+ "type": "integer",
85
+ "minimum": 0,
86
+ "maximum": 9007199254740991
87
+ },
88
+ "maxTraversalDepth": {
89
+ "type": "integer",
90
+ "minimum": 0,
91
+ "maximum": 9007199254740991
92
+ }
93
+ }
94
+ },
95
+ "evidence": {
96
+ "type": "object",
97
+ "additionalProperties": false,
98
+ "required": [
99
+ "id",
100
+ "kind",
101
+ "uri"
102
+ ],
103
+ "properties": {
104
+ "id": {
105
+ "type": "string",
106
+ "minLength": 1
107
+ },
108
+ "kind": {
109
+ "enum": [
110
+ "fixture",
111
+ "conformance-report",
112
+ "live-qualification"
113
+ ]
114
+ },
115
+ "uri": {
116
+ "type": "string",
117
+ "minLength": 1
118
+ },
119
+ "digest": {
120
+ "$ref": "#/$defs/digest"
121
+ }
122
+ }
123
+ },
124
+ "capability": {
125
+ "type": "object",
126
+ "additionalProperties": false,
127
+ "required": [
128
+ "id",
129
+ "version",
130
+ "status",
131
+ "evidence"
132
+ ],
133
+ "properties": {
134
+ "id": {
135
+ "$ref": "#/$defs/capabilityId"
136
+ },
137
+ "version": {
138
+ "$ref": "#/$defs/semver"
139
+ },
140
+ "status": {
141
+ "enum": [
142
+ "supported",
143
+ "experimental",
144
+ "unsupported"
145
+ ]
146
+ },
147
+ "limits": {
148
+ "$ref": "#/$defs/limits"
149
+ },
150
+ "evidence": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "string",
154
+ "minLength": 1
155
+ },
156
+ "uniqueItems": true
157
+ }
158
+ }
159
+ },
160
+ "runtime": {
161
+ "type": "object",
162
+ "additionalProperties": false,
163
+ "required": [
164
+ "id",
165
+ "version",
166
+ "plane",
167
+ "dataClass",
168
+ "maturity"
169
+ ],
170
+ "properties": {
171
+ "id": {
172
+ "type": "string",
173
+ "minLength": 1
174
+ },
175
+ "version": {
176
+ "$ref": "#/$defs/semver"
177
+ },
178
+ "plane": {
179
+ "enum": [
180
+ "browser-local-archive",
181
+ "static-cache",
182
+ "portable-shard",
183
+ "server-process",
184
+ "live-remote-persistence"
185
+ ]
186
+ },
187
+ "dataClass": {
188
+ "enum": [
189
+ "canonical",
190
+ "regenerable-index",
191
+ "static-cache",
192
+ "portable-projection",
193
+ "remote-persistence"
194
+ ]
195
+ },
196
+ "maturity": {
197
+ "enum": [
198
+ "experimental",
199
+ "alpha",
200
+ "beta",
201
+ "stable"
202
+ ]
203
+ }
204
+ }
205
+ },
206
+ "guarantees": {
207
+ "type": "object",
208
+ "additionalProperties": false,
209
+ "required": [
210
+ "transaction",
211
+ "isolation",
212
+ "durability",
213
+ "availability",
214
+ "ordering"
215
+ ],
216
+ "properties": {
217
+ "transaction": {
218
+ "enum": [
219
+ "none",
220
+ "single-record",
221
+ "atomic-batch"
222
+ ]
223
+ },
224
+ "isolation": {
225
+ "enum": [
226
+ "none",
227
+ "snapshot",
228
+ "serializable"
229
+ ]
230
+ },
231
+ "durability": {
232
+ "enum": [
233
+ "process",
234
+ "memory",
235
+ "filesystem",
236
+ "wal",
237
+ "replicated"
238
+ ]
239
+ },
240
+ "availability": {
241
+ "enum": [
242
+ "local-process",
243
+ "single-host",
244
+ "remote-service"
245
+ ]
246
+ },
247
+ "ordering": {
248
+ "enum": [
249
+ "unspecified",
250
+ "stable-identity",
251
+ "backend-cursor"
252
+ ]
253
+ }
254
+ }
255
+ },
256
+ "descriptor": {
257
+ "type": "object",
258
+ "additionalProperties": false,
259
+ "required": [
260
+ "contract",
261
+ "schemaVersion",
262
+ "runtime",
263
+ "guarantees",
264
+ "capabilities",
265
+ "evidence"
266
+ ],
267
+ "properties": {
268
+ "contract": {
269
+ "const": "fortemi.dataset-execution-capabilities/v1"
270
+ },
271
+ "schemaVersion": {
272
+ "$ref": "#/$defs/semver"
273
+ },
274
+ "runtime": {
275
+ "$ref": "#/$defs/runtime"
276
+ },
277
+ "guarantees": {
278
+ "$ref": "#/$defs/guarantees"
279
+ },
280
+ "capabilities": {
281
+ "type": "array",
282
+ "items": {
283
+ "$ref": "#/$defs/capability"
284
+ }
285
+ },
286
+ "evidence": {
287
+ "type": "array",
288
+ "items": {
289
+ "$ref": "#/$defs/evidence"
290
+ }
291
+ }
292
+ }
293
+ },
294
+ "requirement": {
295
+ "type": "object",
296
+ "additionalProperties": false,
297
+ "required": [
298
+ "id"
299
+ ],
300
+ "properties": {
301
+ "id": {
302
+ "$ref": "#/$defs/capabilityId"
303
+ },
304
+ "minimumVersion": {
305
+ "$ref": "#/$defs/semver"
306
+ },
307
+ "minimumLimits": {
308
+ "$ref": "#/$defs/limits"
309
+ }
310
+ }
311
+ },
312
+ "optionalRequirement": {
313
+ "type": "object",
314
+ "additionalProperties": false,
315
+ "required": [
316
+ "id"
317
+ ],
318
+ "properties": {
319
+ "id": {
320
+ "$ref": "#/$defs/capabilityId"
321
+ },
322
+ "minimumVersion": {
323
+ "$ref": "#/$defs/semver"
324
+ },
325
+ "minimumLimits": {
326
+ "$ref": "#/$defs/limits"
327
+ },
328
+ "fallback": {
329
+ "type": "array",
330
+ "items": {
331
+ "$ref": "#/$defs/capabilityId"
332
+ },
333
+ "uniqueItems": true
334
+ }
335
+ }
336
+ },
337
+ "request": {
338
+ "type": "object",
339
+ "additionalProperties": false,
340
+ "required": [
341
+ "contract",
342
+ "required"
343
+ ],
344
+ "properties": {
345
+ "contract": {
346
+ "const": "fortemi.dataset-execution-capabilities/v1"
347
+ },
348
+ "required": {
349
+ "type": "array",
350
+ "items": {
351
+ "$ref": "#/$defs/requirement"
352
+ }
353
+ },
354
+ "optional": {
355
+ "type": "array",
356
+ "items": {
357
+ "$ref": "#/$defs/optionalRequirement"
358
+ }
359
+ }
360
+ }
361
+ },
362
+ "diagnostic": {
363
+ "type": "object",
364
+ "additionalProperties": false,
365
+ "required": [
366
+ "code",
367
+ "message"
368
+ ],
369
+ "properties": {
370
+ "code": {
371
+ "enum": [
372
+ "CONTRACT_MAJOR_UNSUPPORTED",
373
+ "SCHEMA_VERSION_UNSUPPORTED",
374
+ "DESCRIPTOR_INVALID",
375
+ "CAPABILITY_DUPLICATE",
376
+ "CAPABILITY_INCONSISTENT",
377
+ "REQUIRED_CAPABILITY_MISSING",
378
+ "CAPABILITY_VERSION_INSUFFICIENT",
379
+ "CAPABILITY_LIMIT_INSUFFICIENT"
380
+ ]
381
+ },
382
+ "capability": {
383
+ "$ref": "#/$defs/capabilityId"
384
+ },
385
+ "path": {
386
+ "type": "string"
387
+ },
388
+ "message": {
389
+ "type": "string",
390
+ "minLength": 1
391
+ }
392
+ }
393
+ },
394
+ "degradation": {
395
+ "type": "object",
396
+ "additionalProperties": false,
397
+ "required": [
398
+ "requested",
399
+ "reason",
400
+ "changedGuarantees"
401
+ ],
402
+ "properties": {
403
+ "requested": {
404
+ "$ref": "#/$defs/capabilityId"
405
+ },
406
+ "selected": {
407
+ "$ref": "#/$defs/capabilityId"
408
+ },
409
+ "reason": {
410
+ "enum": [
411
+ "unsupported",
412
+ "version-insufficient",
413
+ "limit-insufficient"
414
+ ]
415
+ },
416
+ "changedGuarantees": {
417
+ "type": "array",
418
+ "minItems": 1,
419
+ "items": {
420
+ "type": "string",
421
+ "minLength": 1
422
+ }
423
+ }
424
+ }
425
+ },
426
+ "result": {
427
+ "type": "object",
428
+ "additionalProperties": false,
429
+ "required": [
430
+ "contract",
431
+ "accepted",
432
+ "runtime",
433
+ "selected",
434
+ "degradations",
435
+ "diagnostics"
436
+ ],
437
+ "properties": {
438
+ "contract": {
439
+ "const": "fortemi.dataset-execution-capabilities/v1"
440
+ },
441
+ "accepted": {
442
+ "type": "boolean"
443
+ },
444
+ "runtime": {
445
+ "$ref": "#/$defs/runtime"
446
+ },
447
+ "selected": {
448
+ "type": "array",
449
+ "items": {
450
+ "$ref": "#/$defs/capabilityId"
451
+ },
452
+ "uniqueItems": true
453
+ },
454
+ "degradations": {
455
+ "type": "array",
456
+ "items": {
457
+ "$ref": "#/$defs/degradation"
458
+ }
459
+ },
460
+ "diagnostics": {
461
+ "type": "array",
462
+ "items": {
463
+ "$ref": "#/$defs/diagnostic"
464
+ }
465
+ }
466
+ }
467
+ }
468
+ }
469
+ }