Rewrite CultCache as attribute-first storage

This commit is contained in:
Meta Vens 2026-05-08 01:13:15 +01:00
commit da94389ee2
29 changed files with 1496 additions and 2488 deletions

View file

@ -6,14 +6,14 @@
"required": [
"schemaVersion",
"messageId",
"documentType",
"documentKey"
"schemaId",
"recordKey"
],
"additionalProperties": false,
"properties": {
"schemaVersion": { "const": "cultnet.document_delete.v0" },
"messageId": { "type": "string", "minLength": 1 },
"documentType": { "type": "string", "minLength": 1 },
"documentKey": { "type": "string", "minLength": 1 }
"schemaId": { "type": "string", "minLength": 1 },
"recordKey": { "type": "string", "minLength": 1 }
}
}

View file

@ -4,17 +4,16 @@
"title": "CultNet Document Record",
"type": "object",
"required": [
"documentType",
"documentKey",
"schemaId",
"recordKey",
"storedAt",
"payload"
],
"additionalProperties": false,
"properties": {
"documentType": { "type": "string", "minLength": 1 },
"documentKey": { "type": "string", "minLength": 1 },
"schemaId": { "type": "string", "minLength": 1 },
"recordKey": { "type": "string", "minLength": 1 },
"storedAt": { "type": "string", "minLength": 1 },
"payloadSchemaVersion": { "type": "string", "minLength": 1 },
"payload": {},
"sourceRuntimeId": { "type": "string", "minLength": 1 },
"sourceAgentId": { "type": "string", "minLength": 1 },

View file

@ -4,18 +4,17 @@
"title": "CultNet Raw Document Record",
"type": "object",
"required": [
"documentType",
"documentKey",
"schemaId",
"recordKey",
"storedAt",
"payloadEncoding",
"payload"
],
"additionalProperties": false,
"properties": {
"documentType": { "type": "string", "minLength": 1 },
"documentKey": { "type": "string", "minLength": 1 },
"schemaId": { "type": "string", "minLength": 1 },
"recordKey": { "type": "string", "minLength": 1 },
"storedAt": { "type": "string", "minLength": 1 },
"payloadSchemaVersion": { "type": "string", "minLength": 1 },
"payloadEncoding": { "const": "messagepack" },
"payload": {
"type": "string",

View file

@ -11,11 +11,11 @@
"properties": {
"schemaVersion": { "const": "cultnet.snapshot_request.v0" },
"messageId": { "type": "string", "minLength": 1 },
"documentTypes": {
"schemaIds": {
"type": "array",
"items": { "type": "string", "minLength": 1 }
},
"documentKeys": {
"recordKeys": {
"type": "array",
"items": { "type": "string", "minLength": 1 }
}