@x12i/memorix-metadata 3.1.0 → 3.2.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.
@@ -60,6 +60,36 @@
60
60
  "id": "relationships",
61
61
  "notes": "Candidate store shape until Gate G4"
62
62
  }
63
+ ],
64
+ "fields": [
65
+ {
66
+ "path": "data.displayName",
67
+ "valueType": "string",
68
+ "contentType": "snapshots"
69
+ },
70
+ {
71
+ "path": "data.role",
72
+ "valueType": "string",
73
+ "contentType": "snapshots"
74
+ },
75
+ {
76
+ "path": "data.email",
77
+ "valueType": "string",
78
+ "contentType": "snapshots"
79
+ },
80
+ {
81
+ "path": "data.organization",
82
+ "valueType": "string",
83
+ "contentType": "snapshots"
84
+ },
85
+ {
86
+ "path": "data.collaboratorIds",
87
+ "valueType": "array",
88
+ "contentType": "snapshots",
89
+ "refersTo": {
90
+ "objectType": "people"
91
+ }
92
+ }
63
93
  ]
64
94
  },
65
95
  {
@@ -114,7 +144,48 @@
114
144
  "analytics": "optional",
115
145
  "enrichment": "optional",
116
146
  "insights": "optional"
117
- }
147
+ },
148
+ "fields": [
149
+ {
150
+ "path": "data.title",
151
+ "valueType": "string",
152
+ "contentType": "snapshots"
153
+ },
154
+ {
155
+ "path": "data.status",
156
+ "valueType": "string",
157
+ "contentType": "snapshots"
158
+ },
159
+ {
160
+ "path": "data.priority",
161
+ "valueType": "string",
162
+ "contentType": "snapshots"
163
+ },
164
+ {
165
+ "path": "data.assigneeId",
166
+ "valueType": "recordId",
167
+ "contentType": "snapshots",
168
+ "refersTo": {
169
+ "objectType": "people"
170
+ }
171
+ },
172
+ {
173
+ "path": "data.playbookIds",
174
+ "valueType": "array",
175
+ "contentType": "snapshots",
176
+ "refersTo": {
177
+ "objectType": "playbooks"
178
+ }
179
+ },
180
+ {
181
+ "path": "data.dependsOnIds",
182
+ "valueType": "array",
183
+ "contentType": "snapshots",
184
+ "refersTo": {
185
+ "objectType": "work-items"
186
+ }
187
+ }
188
+ ]
118
189
  },
119
190
  {
120
191
  "id": "playbooks",
@@ -135,7 +206,24 @@
135
206
  "id": "relationships"
136
207
  }
137
208
  ],
138
- "retention": "persistent-knowledge"
209
+ "retention": "persistent-knowledge",
210
+ "fields": [
211
+ {
212
+ "path": "data.name",
213
+ "valueType": "string",
214
+ "contentType": "snapshots"
215
+ },
216
+ {
217
+ "path": "data.body",
218
+ "valueType": "string",
219
+ "contentType": "snapshots"
220
+ },
221
+ {
222
+ "path": "data.contentHash",
223
+ "valueType": "string",
224
+ "contentType": "snapshots"
225
+ }
226
+ ]
139
227
  },
140
228
  {
141
229
  "id": "activity-events",
@@ -155,6 +243,195 @@
155
243
  {
156
244
  "id": "relationships"
157
245
  }
246
+ ],
247
+ "fields": [
248
+ {
249
+ "path": "data.type",
250
+ "valueType": "string",
251
+ "contentType": "snapshots"
252
+ },
253
+ {
254
+ "path": "data.message",
255
+ "valueType": "string",
256
+ "contentType": "snapshots"
257
+ },
258
+ {
259
+ "path": "data.occurredAt",
260
+ "valueType": "datetime",
261
+ "contentType": "snapshots"
262
+ },
263
+ {
264
+ "path": "data.workItemId",
265
+ "valueType": "recordId",
266
+ "contentType": "snapshots",
267
+ "refersTo": {
268
+ "objectType": "work-items"
269
+ }
270
+ },
271
+ {
272
+ "path": "data.actorId",
273
+ "valueType": "recordId",
274
+ "contentType": "snapshots",
275
+ "refersTo": {
276
+ "objectType": "people"
277
+ }
278
+ }
279
+ ]
280
+ },
281
+ {
282
+ "id": "content",
283
+ "name": "Content",
284
+ "dataCategory": "knowledge",
285
+ "abstractTypes": [
286
+ "KnowledgeArtifacts"
287
+ ],
288
+ "notes": "Knowledge graph snapshots and Nexum apply-plan records (write-record mode nexum)",
289
+ "contentTypes": [
290
+ {
291
+ "id": "raw"
292
+ },
293
+ {
294
+ "id": "snapshots",
295
+ "required": false,
296
+ "notes": "Knowledge-graph and other snapshot artififacts (data.kind: knowledge-graph)"
297
+ },
298
+ {
299
+ "id": "nexum",
300
+ "required": false,
301
+ "notes": "Optional Nexum snapshot facet; durable apply-plan kinds use nexum-* object types"
302
+ },
303
+ {
304
+ "id": "relationships"
305
+ }
306
+ ],
307
+ "fields": [
308
+ {
309
+ "path": "concept.title",
310
+ "valueType": "string",
311
+ "contentType": "snapshots"
312
+ },
313
+ {
314
+ "path": "data.title",
315
+ "valueType": "string",
316
+ "contentType": "snapshots"
317
+ },
318
+ {
319
+ "path": "data.kind",
320
+ "valueType": "string",
321
+ "contentType": "snapshots"
322
+ },
323
+ {
324
+ "path": "data.graphDraft",
325
+ "valueType": "object",
326
+ "contentType": "snapshots"
327
+ },
328
+ {
329
+ "path": "data.patchPlan",
330
+ "valueType": "object",
331
+ "contentType": "snapshots"
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "id": "nexum-contribution",
337
+ "name": "Nexum contribution",
338
+ "dataCategory": "knowledge",
339
+ "notes": "Per-source contribution envelope (write-record mode nexum). Adapter kind nexum.contribution/v1.",
340
+ "contentTypes": [
341
+ {
342
+ "id": "nexum"
343
+ }
344
+ ],
345
+ "fields": [
346
+ {
347
+ "path": "data.op",
348
+ "valueType": "string",
349
+ "contentType": "nexum"
350
+ },
351
+ {
352
+ "path": "data.kind",
353
+ "valueType": "string",
354
+ "contentType": "nexum"
355
+ },
356
+ {
357
+ "path": "data.idempotencyKey",
358
+ "valueType": "string",
359
+ "contentType": "nexum"
360
+ }
361
+ ]
362
+ },
363
+ {
364
+ "id": "nexum-node",
365
+ "name": "Nexum node",
366
+ "dataCategory": "knowledge",
367
+ "notes": "Evidence-graph node (write-record mode nexum). Adapter kind nexum.node/v1.",
368
+ "contentTypes": [
369
+ {
370
+ "id": "nexum"
371
+ }
372
+ ],
373
+ "fields": [
374
+ {
375
+ "path": "data.nodeId",
376
+ "valueType": "string",
377
+ "contentType": "nexum"
378
+ },
379
+ {
380
+ "path": "data.kind",
381
+ "valueType": "string",
382
+ "contentType": "nexum"
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "id": "nexum-node-claim",
388
+ "name": "Nexum node claim",
389
+ "dataCategory": "knowledge",
390
+ "notes": "Property claim on a node (write-record mode nexum). Adapter kind nexum.node-claim/v1.",
391
+ "contentTypes": [
392
+ {
393
+ "id": "nexum"
394
+ }
395
+ ],
396
+ "fields": [
397
+ {
398
+ "path": "data.claimId",
399
+ "valueType": "string",
400
+ "contentType": "nexum"
401
+ },
402
+ {
403
+ "path": "data.kind",
404
+ "valueType": "string",
405
+ "contentType": "nexum"
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ "id": "nexum-edge-claim",
411
+ "name": "Nexum edge claim",
412
+ "dataCategory": "knowledge",
413
+ "notes": "Edge claim (write-record mode nexum). Adapter kind nexum.edge-claim/v1.",
414
+ "contentTypes": [
415
+ {
416
+ "id": "nexum"
417
+ }
418
+ ],
419
+ "fields": [
420
+ {
421
+ "path": "data.claimId",
422
+ "valueType": "string",
423
+ "contentType": "nexum"
424
+ },
425
+ {
426
+ "path": "data.edgeId",
427
+ "valueType": "string",
428
+ "contentType": "nexum"
429
+ },
430
+ {
431
+ "path": "data.kind",
432
+ "valueType": "string",
433
+ "contentType": "nexum"
434
+ }
158
435
  ]
159
436
  }
160
437
  ],
@@ -398,6 +675,35 @@
398
675
  }
399
676
  ],
400
677
  "union": false
678
+ },
679
+ {
680
+ "id": "KnowledgeArtifacts",
681
+ "name": "Knowledge Artifacts",
682
+ "meaning": "Structured knowledge graphs and snapshot bags produced by analyze workers (Nexum)",
683
+ "category": "knowledge",
684
+ "properties": [
685
+ {
686
+ "id": "title",
687
+ "valueType": "string",
688
+ "required": false
689
+ }
690
+ ],
691
+ "members": [
692
+ {
693
+ "objectType": "content",
694
+ "contentType": "snapshots",
695
+ "properties": [
696
+ {
697
+ "abstractProperty": "title",
698
+ "contentType": "snapshots",
699
+ "propertyPath": "concept.title",
700
+ "concreteValueType": "string"
701
+ }
702
+ ]
703
+ }
704
+ ],
705
+ "union": false,
706
+ "notes": "Used by nexum service ports; durable apply-plan kinds use nexum-* object types (content/snapshots remains the KnowledgeArtifacts member)"
401
707
  }
402
708
  ],
403
709
  "relationshipDefinitions": [
@@ -673,18 +979,17 @@
673
979
  {
674
980
  "id": "opx-work-items-list",
675
981
  "kind": "list",
676
- "objectType": "work-items",
677
982
  "title": "Work items",
678
983
  "columns": [
679
984
  "concept.title",
680
985
  "data.status",
681
986
  "data.priority"
682
- ]
987
+ ],
988
+ "abstractType": "WorkItems"
683
989
  },
684
990
  {
685
991
  "id": "opx-work-items-item",
686
992
  "kind": "item",
687
- "objectType": "work-items",
688
993
  "title": "Work item",
689
994
  "sections": [
690
995
  "concept",
@@ -692,7 +997,8 @@
692
997
  "workflow",
693
998
  "analysis",
694
999
  "decisions"
695
- ]
1000
+ ],
1001
+ "abstractType": "WorkItems"
696
1002
  },
697
1003
  {
698
1004
  "id": "opx-people-list",
@@ -708,9 +1014,9 @@
708
1014
  {
709
1015
  "id": "opx-work-item-expand-people",
710
1016
  "kind": "relationship-expansion",
711
- "objectType": "work-items",
712
1017
  "relationshipDefinitionId": "people-assigned-to-work-items",
713
- "direction": "to-from"
1018
+ "direction": "to-from",
1019
+ "abstractType": "WorkItems"
714
1020
  }
715
1021
  ],
716
1022
  "writes": [
@@ -899,6 +1205,39 @@
899
1205
  "kind": "worker",
900
1206
  "operation": "enrich-priority"
901
1207
  }
1208
+ },
1209
+ {
1210
+ "id": "nexum",
1211
+ "name": "Nexum analyze",
1212
+ "description": "Deterministic evidence-graph draft and per-item apply plan from @x12i/memorix-nexum-adapter (zone nexum · worker :7500 · MEMORIX_NEXUM_URL). Successor to Graphifier — Memorix does not support the Graphifier worker or write-record mode graphifier. Does not persist. Pipeline write-record mode nexum applies contributions.",
1213
+ "role": "agent",
1214
+ "capabilities": [
1215
+ "analyze"
1216
+ ],
1217
+ "memorixAccess": [
1218
+ "explore"
1219
+ ],
1220
+ "inputs": [
1221
+ {
1222
+ "id": "snapshot",
1223
+ "abstractType": "KnowledgeArtifacts",
1224
+ "path": "snapshots",
1225
+ "description": "KnowledgeArtifacts projection or NexumAnalyzeRequest items"
1226
+ }
1227
+ ],
1228
+ "outputs": [
1229
+ {
1230
+ "id": "apply-plan",
1231
+ "abstractType": "KnowledgeArtifacts",
1232
+ "path": "snapshots",
1233
+ "description": "x12i-nexum/1 graph draft and replace-contribution apply plan"
1234
+ }
1235
+ ],
1236
+ "invocation": {
1237
+ "kind": "worker",
1238
+ "operation": "analyze",
1239
+ "endpointEnv": "MEMORIX_NEXUM_URL"
1240
+ }
902
1241
  }
903
1242
  ],
904
1243
  "pipelines": [
@@ -1020,6 +1359,37 @@
1020
1359
  "contentType": "snapshots"
1021
1360
  }
1022
1361
  ]
1362
+ },
1363
+ {
1364
+ "id": "opx-nexum-analyze",
1365
+ "name": "Nexum analyze + write-record",
1366
+ "trigger": "explicit",
1367
+ "description": "Invoke @x12i/memorix-nexum-adapter analyze (MEMORIX_NEXUM_URL · default :7500), then platform write-record applies applyPlan (mode nexum). Worker drafts; Memorix persists. Nexum is the knowledge-graph analyze path (Graphifier is not supported).",
1368
+ "steps": [
1369
+ {
1370
+ "id": "analyze",
1371
+ "kind": "analyze",
1372
+ "serviceId": "nexum"
1373
+ },
1374
+ {
1375
+ "id": "write-graph",
1376
+ "kind": "write-record",
1377
+ "contentType": "nexum",
1378
+ "portConfig": {
1379
+ "mode": "nexum"
1380
+ },
1381
+ "dependsOn": [
1382
+ "analyze"
1383
+ ],
1384
+ "inputs": [
1385
+ {
1386
+ "fromStep": "analyze",
1387
+ "key": "analyze"
1388
+ }
1389
+ ],
1390
+ "notes": "mode nexum — create-or-update contribution/node/claim records from applyPlan"
1391
+ }
1392
+ ]
1023
1393
  }
1024
1394
  ],
1025
1395
  "schedules": [],
@@ -118,6 +118,37 @@
118
118
  "contentType": "snapshots"
119
119
  }
120
120
  ]
121
+ },
122
+ {
123
+ "id": "opx-nexum-analyze",
124
+ "name": "Nexum analyze + write-record",
125
+ "trigger": "explicit",
126
+ "description": "Invoke @x12i/memorix-nexum-adapter analyze (MEMORIX_NEXUM_URL · default :7500), then platform write-record applies applyPlan (mode nexum). Worker drafts; Memorix persists. Nexum is the knowledge-graph analyze path (Graphifier is not supported).",
127
+ "steps": [
128
+ {
129
+ "id": "analyze",
130
+ "kind": "analyze",
131
+ "serviceId": "nexum"
132
+ },
133
+ {
134
+ "id": "write-graph",
135
+ "kind": "write-record",
136
+ "contentType": "nexum",
137
+ "portConfig": {
138
+ "mode": "nexum"
139
+ },
140
+ "dependsOn": [
141
+ "analyze"
142
+ ],
143
+ "inputs": [
144
+ {
145
+ "fromStep": "analyze",
146
+ "key": "analyze"
147
+ }
148
+ ],
149
+ "notes": "mode nexum — create-or-update contribution/node/claim records from applyPlan"
150
+ }
151
+ ]
121
152
  }
122
153
  ],
123
154
  "sources": [
@@ -3,14 +3,14 @@
3
3
  {
4
4
  "id": "opx-work-items-list",
5
5
  "kind": "list",
6
- "objectType": "work-items",
6
+ "abstractType": "WorkItems",
7
7
  "title": "Work items",
8
8
  "columns": ["concept.title", "data.status", "data.priority"]
9
9
  },
10
10
  {
11
11
  "id": "opx-work-items-item",
12
12
  "kind": "item",
13
- "objectType": "work-items",
13
+ "abstractType": "WorkItems",
14
14
  "title": "Work item",
15
15
  "sections": ["concept", "data", "workflow", "analysis", "decisions"]
16
16
  },
@@ -24,7 +24,7 @@
24
24
  {
25
25
  "id": "opx-work-item-expand-people",
26
26
  "kind": "relationship-expansion",
27
- "objectType": "work-items",
27
+ "abstractType": "WorkItems",
28
28
  "relationshipDefinitionId": "people-assigned-to-work-items",
29
29
  "direction": "to-from"
30
30
  }
@@ -674,7 +674,7 @@
674
674
  {
675
675
  "id": "opx-work-items-list",
676
676
  "kind": "list",
677
- "objectType": "work-items",
677
+ "abstractType": "WorkItems",
678
678
  "title": "Work items",
679
679
  "columns": [
680
680
  "concept.title",
@@ -685,7 +685,7 @@
685
685
  {
686
686
  "id": "opx-work-items-item",
687
687
  "kind": "item",
688
- "objectType": "work-items",
688
+ "abstractType": "WorkItems",
689
689
  "title": "Work item",
690
690
  "sections": [
691
691
  "concept",
@@ -709,7 +709,7 @@
709
709
  {
710
710
  "id": "opx-work-item-expand-people",
711
711
  "kind": "relationship-expansion",
712
- "objectType": "work-items",
712
+ "abstractType": "WorkItems",
713
713
  "relationshipDefinitionId": "people-assigned-to-work-items",
714
714
  "direction": "to-from"
715
715
  },
@@ -717,7 +717,7 @@
717
717
  "id": "project-opx-work-items-list",
718
718
  "kind": "list",
719
719
  "title": "Project work items",
720
- "objectType": "work-items",
720
+ "abstractType": "WorkItems",
721
721
  "extends": "opx-work-items-list"
722
722
  }
723
723
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x12i/memorix-metadata",
3
- "version": "3.1.0",
3
+ "version": "3.2.1",
4
4
  "description": "Canonical Memorix metadata contracts, effective multi-agent resolution, and metadata-only abstract unions (Phase 3).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",