@fortemi/core 2026.8.0 → 2026.9.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.
Files changed (27) hide show
  1. package/README.md +9 -1
  2. package/benchmarks/dataset-materialization/small-corpus.v1.json +12 -0
  3. package/dist/index.d.ts +1255 -134
  4. package/dist/index.js +2734 -763
  5. package/dist/index.js.map +1 -1
  6. package/package.json +13 -1
  7. package/schemas/dataset-execution-capabilities/fixtures/browser-local.json +14 -0
  8. package/schemas/dataset-execution-capabilities/fixtures/invalid-field-lineage-without-evidence.json +10 -0
  9. package/schemas/dataset-execution-capabilities/fixtures/invalid-incremental-without-checkpoint.json +10 -0
  10. package/schemas/dataset-execution-capabilities/fixtures/portable-shard.json +12 -0
  11. package/schemas/dataset-execution-capabilities/fixtures/remote-alpha.json +12 -0
  12. package/schemas/dataset-execution-capabilities/fixtures/static-cache.json +12 -0
  13. package/schemas/dataset-execution-capabilities/v1.schema.json +164 -0
  14. package/schemas/dataset-ingest/v1.schema.json +138 -0
  15. package/schemas/dataset-lineage/fixtures/golden-observed-field.json +20 -0
  16. package/schemas/dataset-lineage/v1.schema.json +126 -0
  17. package/schemas/dataset-materialization/fixtures/browser.json +11 -0
  18. package/schemas/dataset-materialization/fixtures/degraded.json +12 -0
  19. package/schemas/dataset-materialization/fixtures/deterministic.json +11 -0
  20. package/schemas/dataset-materialization/fixtures/external-adapter.json +11 -0
  21. package/schemas/dataset-materialization/fixtures/nondeterministic.json +11 -0
  22. package/schemas/dataset-materialization/fixtures/server.json +11 -0
  23. package/schemas/dataset-materialization/fixtures/supported.json +12 -0
  24. package/schemas/dataset-materialization/fixtures/unsupported.json +11 -0
  25. package/schemas/dataset-materialization/v1.schema.json +169 -0
  26. package/schemas/source-note-upsert/contract.receipt.json +78 -0
  27. package/schemas/source-note-upsert/v1.conformance.json +100 -0
@@ -0,0 +1,12 @@
1
+ {
2
+ "contract": "fortemi.dataset-materialization-profile/v1", "schemaVersion": "1.0.0",
3
+ "id": "fortemi.hybrid.preferred", "version": "1.0.0", "kind": "hybrid", "status": "supported",
4
+ "operations": ["query"], "inputTypes": ["application/fortemi-index"],
5
+ "implementation": { "id": "fortemi-hybrid", "version": "2026.8.0", "digest": "sha256:3333333333333333333333333333333333333333333333333333333333333333" },
6
+ "configurationSchema": { "type": "object" }, "requiredRuntimeCapabilities": [{ "id": "index.hybrid" }],
7
+ "optionalRuntimeCapabilities": [{ "id": "index.rerank", "fallback": ["index.lexical"] }],
8
+ "determinism": { "class": "deterministic" },
9
+ "privacy": { "behavior": "local-only", "authorizationRequired": true, "filtersBefore": ["chunking", "model-invocation", "index-persistence"] },
10
+ "resourceLimits": { "maxInputBytes": 1048576, "maxRecords": 1000, "maxConcurrency": 1 },
11
+ "output": { "dataClass": "regenerable-index", "canonicalMutation": false }
12
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "contract": "fortemi.dataset-materialization-profile/v1", "schemaVersion": "1.0.0",
3
+ "id": "fortemi.chunk.fixed", "version": "1.0.0", "kind": "chunking", "status": "supported",
4
+ "operations": ["build"], "inputTypes": ["text/plain"],
5
+ "implementation": { "id": "fixed-chunker", "version": "1.0.0", "digest": "sha256:4444444444444444444444444444444444444444444444444444444444444444" },
6
+ "configurationSchema": { "type": "object", "properties": { "size": { "type": "integer" } } }, "requiredRuntimeCapabilities": [{ "id": "index.chunk" }, { "id": "ordering.deterministic" }],
7
+ "determinism": { "class": "deterministic" },
8
+ "privacy": { "behavior": "local-only", "authorizationRequired": true, "filtersBefore": ["chunking", "model-invocation", "index-persistence"] },
9
+ "resourceLimits": { "maxInputBytes": 1048576, "maxRecords": 1000, "maxConcurrency": 1 },
10
+ "output": { "dataClass": "regenerable-index", "canonicalMutation": false }
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "contract": "fortemi.dataset-materialization-profile/v1", "schemaVersion": "1.0.0",
3
+ "id": "fortemi.external.graphrag-rs", "version": "1.0.0", "kind": "graph-retrieval", "status": "experimental",
4
+ "operations": ["build", "query"], "inputTypes": ["application/fortemi-derived-graph"],
5
+ "implementation": { "id": "graphrag-rs-adapter", "version": "0.1.0", "digest": "sha256:8888888888888888888888888888888888888888888888888888888888888888" },
6
+ "configurationSchema": { "type": "object", "additionalProperties": false }, "requiredRuntimeCapabilities": [{ "id": "index.graph" }, { "id": "lineage.relationship-evidence" }],
7
+ "determinism": { "class": "deterministic" },
8
+ "privacy": { "behavior": "policy-filtered-external", "authorizationRequired": true, "filtersBefore": ["chunking", "model-invocation", "index-persistence"] },
9
+ "resourceLimits": { "maxInputBytes": 10485760, "maxRecords": 10000, "maxConcurrency": 2 },
10
+ "output": { "dataClass": "regenerable-index", "canonicalMutation": false }
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "contract": "fortemi.dataset-materialization-profile/v1", "schemaVersion": "1.0.0",
3
+ "id": "fortemi.extract.generative", "version": "1.0.0", "kind": "entity-relationship-extraction", "status": "experimental",
4
+ "operations": ["build"], "inputTypes": ["text/plain"],
5
+ "implementation": { "id": "remote-extractor", "version": "2.1.0", "digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555", "model": { "id": "example-model", "version": "2026-08", "digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } },
6
+ "configurationSchema": { "type": "object" }, "requiredRuntimeCapabilities": [{ "id": "index.graph" }],
7
+ "determinism": { "class": "nondeterministic" },
8
+ "privacy": { "behavior": "policy-filtered-external", "authorizationRequired": true, "filtersBefore": ["chunking", "model-invocation", "index-persistence"] },
9
+ "resourceLimits": { "maxInputBytes": 262144, "maxRecords": 100, "maxConcurrency": 2, "timeoutMs": 30000 },
10
+ "output": { "dataClass": "regenerable-index", "canonicalMutation": false }
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "contract": "fortemi.dataset-materialization-profile/v1", "schemaVersion": "1.0.0",
3
+ "id": "fortemi.server.community", "version": "1.0.0", "kind": "community", "status": "supported",
4
+ "operations": ["build", "query"], "inputTypes": ["application/fortemi-graph"],
5
+ "implementation": { "id": "fortemi-server-community", "version": "2026.8.0", "digest": "sha256:7777777777777777777777777777777777777777777777777777777777777777" },
6
+ "configurationSchema": { "type": "object" }, "requiredRuntimeCapabilities": [{ "id": "index.community" }, { "id": "privacy.pre-materialization-filter" }],
7
+ "determinism": { "class": "seeded", "seedRequired": true },
8
+ "privacy": { "behavior": "policy-filtered-external", "authorizationRequired": true, "filtersBefore": ["chunking", "model-invocation", "index-persistence"] },
9
+ "resourceLimits": { "maxInputBytes": 1073741824, "maxRecords": 1000000, "maxConcurrency": 8, "maxMemoryBytes": 8589934592 },
10
+ "output": { "dataClass": "regenerable-index", "canonicalMutation": false }
11
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "contract": "fortemi.dataset-materialization-profile/v1", "schemaVersion": "1.0.0",
3
+ "id": "fortemi.lexical.default", "version": "1.0.0", "kind": "lexical", "status": "supported",
4
+ "operations": ["build", "query"], "inputTypes": ["text/plain"],
5
+ "implementation": { "id": "fortemi-core-lexical", "version": "2026.8.0", "digest": "sha256:1111111111111111111111111111111111111111111111111111111111111111" },
6
+ "configurationSchema": { "type": "object", "additionalProperties": false, "properties": { "language": { "type": "string" } } },
7
+ "requiredRuntimeCapabilities": [{ "id": "index.lexical", "minimumVersion": "1.0.0" }],
8
+ "determinism": { "class": "deterministic" },
9
+ "privacy": { "behavior": "local-only", "authorizationRequired": true, "filtersBefore": ["chunking", "model-invocation", "index-persistence"] },
10
+ "resourceLimits": { "maxInputBytes": 1048576, "maxRecords": 1000, "maxConcurrency": 1 },
11
+ "output": { "dataClass": "regenerable-index", "canonicalMutation": false }
12
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "contract": "fortemi.dataset-materialization-profile/v1", "schemaVersion": "1.0.0",
3
+ "id": "fortemi.vector.unavailable", "version": "1.0.0", "kind": "vector", "status": "unsupported",
4
+ "operations": ["build", "query"], "inputTypes": ["text/plain"],
5
+ "implementation": { "id": "none", "version": "0", "digest": "sha256:2222222222222222222222222222222222222222222222222222222222222222" },
6
+ "configurationSchema": { "type": "object" }, "requiredRuntimeCapabilities": [{ "id": "index.vector" }],
7
+ "determinism": { "class": "deterministic" },
8
+ "privacy": { "behavior": "local-only", "authorizationRequired": true, "filtersBefore": ["chunking", "model-invocation", "index-persistence"] },
9
+ "resourceLimits": { "maxInputBytes": 0, "maxRecords": 0, "maxConcurrency": 1 },
10
+ "output": { "dataClass": "regenerable-index", "canonicalMutation": false }
11
+ }
@@ -0,0 +1,169 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.fortemi.dev/dataset-materialization/v1.schema.json",
4
+ "title": "Fortemi dataset materialization profiles and evidence",
5
+ "oneOf": [
6
+ { "$ref": "#/$defs/profile" },
7
+ { "$ref": "#/$defs/receipt" },
8
+ { "$ref": "#/$defs/retrievalResponse" },
9
+ { "$ref": "#/$defs/benchmarkEvidence" }
10
+ ],
11
+ "$defs": {
12
+ "digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
13
+ "semver": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.-]+)?$" },
14
+ "implementation": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "required": ["id", "version", "digest"],
18
+ "properties": {
19
+ "id": { "type": "string", "minLength": 1 },
20
+ "version": { "type": "string", "minLength": 1 },
21
+ "digest": { "$ref": "#/$defs/digest" },
22
+ "model": {
23
+ "type": "object", "additionalProperties": false,
24
+ "required": ["id", "version", "digest"],
25
+ "properties": { "id": { "type": "string", "minLength": 1 }, "version": { "type": "string", "minLength": 1 }, "digest": { "$ref": "#/$defs/digest" } }
26
+ }
27
+ }
28
+ },
29
+ "capabilityRequirement": {
30
+ "type": "object", "additionalProperties": false, "required": ["id"],
31
+ "properties": {
32
+ "id": { "type": "string", "minLength": 1 },
33
+ "minimumVersion": { "$ref": "#/$defs/semver" },
34
+ "minimumLimits": {
35
+ "type": "object", "additionalProperties": false,
36
+ "properties": {
37
+ "maxInputBytes": { "type": "integer", "minimum": 0 }, "maxRecordBytes": { "type": "integer", "minimum": 0 },
38
+ "maxBatchRecords": { "type": "integer", "minimum": 0 }, "maxConcurrency": { "type": "integer", "minimum": 0 },
39
+ "maxPageSize": { "type": "integer", "minimum": 0 }, "maxTraversalDepth": { "type": "integer", "minimum": 0 }
40
+ }
41
+ },
42
+ "fallback": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true }
43
+ }
44
+ },
45
+ "profile": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": ["contract", "schemaVersion", "id", "version", "kind", "status", "operations", "inputTypes", "implementation", "configurationSchema", "requiredRuntimeCapabilities", "determinism", "privacy", "resourceLimits", "output"],
49
+ "properties": {
50
+ "contract": { "const": "fortemi.dataset-materialization-profile/v1" },
51
+ "schemaVersion": { "$ref": "#/$defs/semver" },
52
+ "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._/-]*$" },
53
+ "version": { "$ref": "#/$defs/semver" },
54
+ "kind": { "enum": ["chunking", "lexical", "vector", "hybrid", "rerank", "entity-relationship-extraction", "graph-retrieval", "community"] },
55
+ "status": { "enum": ["supported", "experimental", "unsupported"] },
56
+ "operations": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "enum": ["build", "query"] } },
57
+ "inputTypes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
58
+ "implementation": { "$ref": "#/$defs/implementation" },
59
+ "configurationSchema": { "type": "object" },
60
+ "requiredRuntimeCapabilities": { "type": "array", "items": { "$ref": "#/$defs/capabilityRequirement" } },
61
+ "optionalRuntimeCapabilities": { "type": "array", "items": { "$ref": "#/$defs/capabilityRequirement" } },
62
+ "determinism": {
63
+ "type": "object", "additionalProperties": false, "required": ["class"],
64
+ "properties": { "class": { "enum": ["deterministic", "seeded", "nondeterministic"] }, "seedRequired": { "type": "boolean" } },
65
+ "if": { "properties": { "class": { "const": "seeded" } } }, "then": { "required": ["seedRequired"], "properties": { "seedRequired": { "const": true } } }
66
+ },
67
+ "privacy": {
68
+ "type": "object", "additionalProperties": false, "required": ["behavior", "authorizationRequired", "filtersBefore"],
69
+ "properties": {
70
+ "behavior": { "enum": ["local-only", "policy-filtered-external"] }, "authorizationRequired": { "const": true },
71
+ "filtersBefore": { "type": "array", "uniqueItems": true, "allOf": [
72
+ { "contains": { "const": "chunking" } }, { "contains": { "const": "model-invocation" } }, { "contains": { "const": "index-persistence" } }
73
+ ], "items": { "enum": ["chunking", "model-invocation", "index-persistence"] } }
74
+ }
75
+ },
76
+ "resourceLimits": {
77
+ "type": "object", "additionalProperties": false, "required": ["maxInputBytes", "maxRecords", "maxConcurrency"],
78
+ "properties": {
79
+ "maxInputBytes": { "type": "integer", "minimum": 0 }, "maxRecords": { "type": "integer", "minimum": 0 },
80
+ "maxConcurrency": { "type": "integer", "minimum": 1 }, "maxMemoryBytes": { "type": "integer", "minimum": 0 }, "timeoutMs": { "type": "integer", "minimum": 0 }
81
+ }
82
+ },
83
+ "output": {
84
+ "type": "object", "additionalProperties": false, "required": ["dataClass", "canonicalMutation"],
85
+ "properties": { "dataClass": { "const": "regenerable-index" }, "canonicalMutation": { "const": false } }
86
+ }
87
+ }
88
+ },
89
+ "degradation": {
90
+ "type": "object", "additionalProperties": false, "required": ["requested", "reason", "changedGuarantees"],
91
+ "properties": {
92
+ "requested": { "type": "string" }, "selected": { "type": "string" },
93
+ "reason": { "enum": ["unsupported", "version-insufficient", "limit-insufficient"] },
94
+ "changedGuarantees": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } }
95
+ }
96
+ },
97
+ "runtime": {
98
+ "type": "object", "additionalProperties": false, "required": ["id", "version", "plane", "dataClass", "maturity"],
99
+ "properties": {
100
+ "id": { "type": "string" }, "version": { "type": "string" },
101
+ "plane": { "enum": ["browser-local-archive", "static-cache", "portable-shard", "server-process", "live-remote-persistence"] },
102
+ "dataClass": { "enum": ["canonical", "regenerable-index", "static-cache", "portable-projection", "remote-persistence"] },
103
+ "maturity": { "enum": ["experimental", "alpha", "beta", "stable"] }
104
+ }
105
+ },
106
+ "privacyDecision": {
107
+ "type": "object", "additionalProperties": false, "required": ["policyId", "policyVersion", "policyDigest", "allowedRecordDigests", "deniedRecordDigests", "evaluatedAt"],
108
+ "properties": {
109
+ "policyId": { "type": "string" }, "policyVersion": { "type": "string" }, "policyDigest": { "$ref": "#/$defs/digest" },
110
+ "allowedRecordDigests": { "type": "array", "items": { "$ref": "#/$defs/digest" } }, "deniedRecordDigests": { "type": "array", "items": { "$ref": "#/$defs/digest" } },
111
+ "evaluatedAt": { "type": "string", "minLength": 1 }
112
+ }
113
+ },
114
+ "artifact": {
115
+ "type": "object", "additionalProperties": false, "required": ["kind", "logicalId", "sourceRecordDigests", "digest"],
116
+ "properties": {
117
+ "kind": { "enum": ["chunk", "lexical-entry", "vector", "reranked-hit", "entity", "relationship", "graph-result", "community"] },
118
+ "logicalId": { "type": "string" }, "sourceRecordDigests": { "type": "array", "items": { "$ref": "#/$defs/digest" } },
119
+ "digest": { "$ref": "#/$defs/digest" }, "payload": {}, "score": { "type": "number" }
120
+ }
121
+ },
122
+ "receipt": {
123
+ "type": "object", "additionalProperties": false,
124
+ "required": ["contract", "schemaVersion", "receiptId", "runId", "processingRunId", "source", "schema", "profile", "runtime", "negotiation", "mode", "affected", "output", "privacy", "resources", "createdAt"],
125
+ "properties": {
126
+ "contract": { "const": "fortemi.dataset-materialization-profile/v1" }, "schemaVersion": { "$ref": "#/$defs/semver" }, "receiptId": { "$ref": "#/$defs/digest" },
127
+ "runId": { "type": "string" }, "processingRunId": { "type": "string" },
128
+ "source": { "type": "object", "additionalProperties": false, "required": ["datasetId", "revision", "digests"], "properties": { "datasetId": { "type": "string" }, "revision": { "type": "string" }, "digests": { "type": "array", "items": { "$ref": "#/$defs/digest" } } } },
129
+ "schema": { "type": "object", "additionalProperties": false, "required": ["id", "version", "digest"], "properties": { "id": { "type": "string" }, "version": { "type": "string" }, "digest": { "$ref": "#/$defs/digest" } } },
130
+ "profile": { "type": "object", "additionalProperties": false, "required": ["id", "version", "digest", "configurationDigest", "implementation"], "properties": { "id": { "type": "string" }, "version": { "type": "string" }, "digest": { "$ref": "#/$defs/digest" }, "configurationDigest": { "$ref": "#/$defs/digest" }, "implementation": { "$ref": "#/$defs/implementation" } } },
131
+ "runtime": { "$ref": "#/$defs/runtime" },
132
+ "negotiation": { "type": "object", "additionalProperties": false, "required": ["requestedProfile", "selectedProfile", "degraded", "degradations"], "properties": { "requestedProfile": { "type": "string" }, "selectedProfile": { "type": "string" }, "degraded": { "type": "boolean" }, "degradations": { "type": "array", "items": { "$ref": "#/$defs/degradation" } } } },
133
+ "mode": { "enum": ["full", "incremental"] },
134
+ "affected": { "type": "object", "additionalProperties": false, "required": ["sourceRevisions", "recordDigests", "chunkDigests"], "properties": { "sourceRevisions": { "type": "array", "items": { "type": "string" } }, "recordDigests": { "type": "array", "items": { "$ref": "#/$defs/digest" } }, "chunkDigests": { "type": "array", "items": { "$ref": "#/$defs/digest" } } } },
135
+ "output": { "type": "object", "additionalProperties": false, "required": ["counts", "digests", "aggregateDigest"], "properties": { "counts": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } }, "digests": { "type": "array", "items": { "$ref": "#/$defs/digest" } }, "aggregateDigest": { "$ref": "#/$defs/digest" } } },
136
+ "privacy": { "$ref": "#/$defs/privacyDecision" },
137
+ "resources": { "type": "object", "additionalProperties": false, "required": ["elapsedMs", "inputBytes", "modelInvocations", "persistedBytes"], "properties": { "elapsedMs": { "type": "number", "minimum": 0 }, "inputBytes": { "type": "integer", "minimum": 0 }, "peakMemoryBytes": { "type": "integer", "minimum": 0 }, "modelInvocations": { "type": "integer", "minimum": 0 }, "persistedBytes": { "type": "integer", "minimum": 0 } } },
138
+ "createdAt": { "type": "string", "minLength": 1 }
139
+ }
140
+ },
141
+ "retrievalResponse": {
142
+ "type": "object", "additionalProperties": false,
143
+ "required": ["contract", "schemaVersion", "queryId", "requestedProfile", "actualProfile", "actualBackend", "degraded", "scoreSemantics", "results", "receiptId"],
144
+ "properties": {
145
+ "contract": { "const": "fortemi.dataset-materialization-profile/v1" }, "schemaVersion": { "$ref": "#/$defs/semver" }, "queryId": { "type": "string" },
146
+ "requestedProfile": { "type": "string" }, "actualProfile": { "type": "string" },
147
+ "actualBackend": { "type": "object", "additionalProperties": false, "required": ["id", "version", "plane"], "properties": { "id": { "type": "string" }, "version": { "type": "string" }, "plane": { "enum": ["browser-local-archive", "static-cache", "portable-shard", "server-process", "live-remote-persistence"] } } },
148
+ "degraded": { "type": "boolean" }, "fallbackReason": { "type": "string" },
149
+ "scoreSemantics": { "type": "object", "additionalProperties": false, "required": ["implementationScoped", "comparableAcrossImplementations"], "properties": { "implementationScoped": { "const": true }, "comparableAcrossImplementations": { "const": false } } },
150
+ "results": { "type": "array", "items": { "$ref": "#/$defs/artifact" } }, "receiptId": { "type": "string", "minLength": 1 }
151
+ }
152
+ },
153
+ "benchmarkEvidence": {
154
+ "type": "object", "additionalProperties": false,
155
+ "required": ["contract", "schemaVersion", "evidenceType", "benchmarkId", "corpus", "hardware", "implementation", "profile", "correctness", "freshness", "measurements", "claims"],
156
+ "properties": {
157
+ "contract": { "const": "fortemi.dataset-materialization-profile/v1" }, "schemaVersion": { "$ref": "#/$defs/semver" }, "evidenceType": { "const": "benchmark" }, "benchmarkId": { "type": "string" },
158
+ "corpus": { "type": "object", "additionalProperties": false, "required": ["id", "revision", "digest", "records", "bytes"], "properties": { "id": { "type": "string" }, "revision": { "type": "string" }, "digest": { "$ref": "#/$defs/digest" }, "records": { "type": "integer", "minimum": 0 }, "bytes": { "type": "integer", "minimum": 0 } } },
159
+ "hardware": { "type": "object", "additionalProperties": false, "required": ["runtime", "cpu", "memoryBytes"], "properties": { "runtime": { "type": "string" }, "cpu": { "type": "string" }, "memoryBytes": { "type": "integer", "minimum": 0 }, "accelerator": { "type": "string" } } },
160
+ "implementation": { "$ref": "#/$defs/implementation" },
161
+ "profile": { "type": "object", "additionalProperties": false, "required": ["id", "version", "digest", "configurationDigest"], "properties": { "id": { "type": "string" }, "version": { "type": "string" }, "digest": { "$ref": "#/$defs/digest" }, "configurationDigest": { "$ref": "#/$defs/digest" } } },
162
+ "correctness": { "type": "object", "additionalProperties": false, "required": ["passed", "suite", "receiptDigest"], "properties": { "passed": { "type": "boolean" }, "suite": { "type": "string" }, "receiptDigest": { "$ref": "#/$defs/digest" } } },
163
+ "freshness": { "type": "object", "additionalProperties": false, "required": ["measuredAt", "sourceRevision"], "properties": { "measuredAt": { "type": "string" }, "sourceRevision": { "type": "string" } } },
164
+ "measurements": { "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": ["name", "value", "unit"], "properties": { "name": { "type": "string" }, "value": { "type": "number", "minimum": 0 }, "unit": { "enum": ["ms", "bytes", "records/s", "queries/s"] } } } },
165
+ "claims": { "type": "object", "additionalProperties": false, "required": ["corpusScoped", "universalScaleLimit"], "properties": { "corpusScoped": { "const": true }, "universalScaleLimit": { "const": false } } }
166
+ }
167
+ }
168
+ }
169
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "schemaVersion": "fortemi.source-note-upsert.consumer-receipt.v1",
3
+ "status": "consumer-conformance-passed",
4
+ "generatedAt": "2026-09-03T21:54:11Z",
5
+ "contract": {
6
+ "name": "source-note-upsert",
7
+ "version": "1.0.0",
8
+ "plane": "live-persistence",
9
+ "authorityRepository": "https://git.integrolabs.net/Fortemi/fortemi.git",
10
+ "authorityCommit": "d073159911e629583fd518062f2d8d247aa160e6",
11
+ "producerImplementationCommit": "54f5e64470291b06630549f5157af754ee388b7b",
12
+ "contractRevision": "1",
13
+ "requestSchemaSha256": "2461758debe121f06d78705e67f14426ea441b09ea53115fa7a168e79c83b017",
14
+ "responseSchemaSha256": "5eabe8c9974a720a943c6b5144dfae0882ff9894851a80e8742dc4fa3ef751da",
15
+ "fixture": {
16
+ "authorityPath": "contracts/source-note-upsert/conformance/v1.json",
17
+ "consumerPath": "packages/core/schemas/source-note-upsert/v1.conformance.json",
18
+ "sha256": "181b64c819c7d8d5492edbab187d71750de86c4e4bc74a2888ed5da163cb6266",
19
+ "bytes": 3440,
20
+ "cases": 7,
21
+ "byteIdentical": true
22
+ }
23
+ },
24
+ "producerEvidence": {
25
+ "repository": "Fortemi/fortemi",
26
+ "issue": "https://git.integrolabs.net/Fortemi/fortemi/issues/1090",
27
+ "commit": "54f5e64470291b06630549f5157af754ee388b7b",
28
+ "ciRun": "https://git.integrolabs.net/Fortemi/fortemi/actions/runs/51944",
29
+ "conclusion": "success",
30
+ "postgresVersion": "18.4",
31
+ "freshDestinationMigrationsPassed": true,
32
+ "sharedFixturePassed": true
33
+ },
34
+ "consumerEvidence": {
35
+ "repository": "Fortemi/fortemi-react",
36
+ "issue": "https://git.integrolabs.net/Fortemi/fortemi-react/issues/404",
37
+ "pullRequest": "https://git.integrolabs.net/Fortemi/fortemi-react/pulls/416",
38
+ "implementationCommit": "90f3341b4f4cc2463cfcd5e33bc144194fd55b0e",
39
+ "ciRun": "https://git.integrolabs.net/Fortemi/fortemi-react/actions/runs/51949",
40
+ "conclusion": "success",
41
+ "coreTestResult": {
42
+ "filesPassed": 80,
43
+ "testsPassed": 1341,
44
+ "failed": 0
45
+ },
46
+ "implementations": [
47
+ {
48
+ "id": "fortemi-react-pglite",
49
+ "cleanDestination": true,
50
+ "sharedFixturePassed": true,
51
+ "atomicRollbackPassed": true,
52
+ "memoryScopeIsolationPassed": true
53
+ },
54
+ {
55
+ "id": "fortemi-react-recordstore",
56
+ "cleanDestination": true,
57
+ "sharedFixturePassed": true,
58
+ "atomicCommitPassed": true,
59
+ "replayJournalStable": true
60
+ }
61
+ ]
62
+ },
63
+ "knowledgeShardBoundary": {
64
+ "profilesChanged": false,
65
+ "profiles": ["core-v1", "full-v1", "record-v1"],
66
+ "sourceIdentityPortable": false,
67
+ "typedLossCode": "source-identity-outside-profile",
68
+ "implementationReceiptSha256": "4018f6d1ac2640604377d34a1d0e36461e7d9a0382beca342164459cd236c6f1",
69
+ "presenceReceiptSha256": "573fc5eb0c580f90e5e7312647967af333f31c7e6986ab0f5ebc3be103b72a8b"
70
+ },
71
+ "claimBoundary": {
72
+ "exactContractOnly": true,
73
+ "fullSuiteParity": false,
74
+ "completeBackup": false,
75
+ "portableSourceIdentity": false,
76
+ "suiteAudit": "NO-GO"
77
+ }
78
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "schema": "fortemi.source-note-upsert.conformance/v1",
3
+ "contract_version": "1.0.0",
4
+ "scope": {
5
+ "tenant_id": "00000000-0000-0000-0000-000000000000",
6
+ "memory": "public"
7
+ },
8
+ "source": {
9
+ "source_namespace": "conformance.example",
10
+ "source_id": "fixture-source",
11
+ "source_schema_version": "1"
12
+ },
13
+ "cases": [
14
+ {
15
+ "id": "insert",
16
+ "request": {
17
+ "import_run_id": "run-insert",
18
+ "batch_id": "batch-insert",
19
+ "checkpoint": {"cursor": "1"},
20
+ "items": [
21
+ {
22
+ "external_id": "fixture-a",
23
+ "content": "alpha",
24
+ "content_digest": "sha256:8ed3f6ad685b959ead7022518e1af76cd816f8e8ec7ccdda1ed4018e8f2223f8",
25
+ "caller_stable_id": "018f05a7-cafe-7def-8000-000000000001",
26
+ "metadata": {"fixture": true}
27
+ }
28
+ ]
29
+ },
30
+ "expected": {"batch": "committed", "items": ["inserted"], "material_changes": 1}
31
+ },
32
+ {
33
+ "id": "exact-batch-replay",
34
+ "repeat": "insert",
35
+ "expected": {"batch": "duplicate", "items": ["unchanged"], "material_changes": 0}
36
+ },
37
+ {
38
+ "id": "changed-version",
39
+ "request": {
40
+ "import_run_id": "run-version",
41
+ "batch_id": "batch-version",
42
+ "policy": "version",
43
+ "items": [{"external_id": "fixture-a", "content": "alpha version two"}]
44
+ },
45
+ "expected": {"batch": "committed", "items": ["versioned"], "material_changes": 1}
46
+ },
47
+ {
48
+ "id": "changed-conflict",
49
+ "request": {
50
+ "import_run_id": "run-conflict",
51
+ "batch_id": "batch-conflict",
52
+ "policy": "conflict",
53
+ "items": [{"external_id": "fixture-a", "content": "must not replace"}]
54
+ },
55
+ "expected": {"batch": "committed", "items": ["conflict"], "material_changes": 0}
56
+ },
57
+ {
58
+ "id": "changed-replace",
59
+ "request": {
60
+ "import_run_id": "run-replace",
61
+ "batch_id": "batch-replace",
62
+ "policy": "replace",
63
+ "items": [{"external_id": "fixture-a", "content": "alpha replacement"}]
64
+ },
65
+ "expected": {"batch": "committed", "items": ["replaced"], "material_changes": 1}
66
+ },
67
+ {
68
+ "id": "dry-run",
69
+ "request": {
70
+ "import_run_id": "run-preview",
71
+ "batch_id": "batch-preview",
72
+ "dry_run": true,
73
+ "items": [{"external_id": "fixture-preview", "content": "preview only"}]
74
+ },
75
+ "expected": {"batch": "preview", "items": ["inserted"], "material_changes": 0}
76
+ },
77
+ {
78
+ "id": "digest-rejection",
79
+ "request": {
80
+ "import_run_id": "run-rejected",
81
+ "batch_id": "batch-rejected",
82
+ "items": [
83
+ {
84
+ "external_id": "fixture-rejected",
85
+ "content": "will not commit",
86
+ "content_digest": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
87
+ }
88
+ ]
89
+ },
90
+ "expected": {"batch": "rejected", "items": ["rejected"], "material_changes": 0, "reason_code": "content_digest_mismatch"}
91
+ }
92
+ ],
93
+ "required_invariants": [
94
+ "exact replay adds zero note, revision, activity, job, blob, outbox, and import-journal rows",
95
+ "database failure rolls back all persistence and event layers",
96
+ "equal source keys in another tenant or memory do not collide",
97
+ "operation logs and receipts exclude raw external IDs and content",
98
+ "Knowledge Shard export emits source-identity-outside-profile when identities are omitted"
99
+ ]
100
+ }