@x12i/memorix-metadata 3.2.0 → 3.2.3

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 (38) hide show
  1. package/README.md +86 -86
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/platform-interfaces.d.ts +29 -0
  7. package/dist/platform-interfaces.d.ts.map +1 -0
  8. package/dist/platform-interfaces.js +53 -0
  9. package/dist/platform-interfaces.js.map +1 -0
  10. package/dist/resolve.d.ts.map +1 -1
  11. package/dist/resolve.js +111 -0
  12. package/dist/resolve.js.map +1 -1
  13. package/dist/types.d.ts +47 -0
  14. package/dist/types.d.ts.map +1 -1
  15. package/dist/validate.d.ts.map +1 -1
  16. package/dist/validate.js +19 -0
  17. package/dist/validate.js.map +1 -1
  18. package/examples/custom-kinds/acme-ui-tabs.pack.json +62 -62
  19. package/examples/invalid/agent-classification.json +709 -709
  20. package/examples/invalid/broken-binding.json +688 -688
  21. package/examples/invalid/completion-mapping-with-exec-policy.json +659 -659
  22. package/examples/invalid/missing-parent.json +708 -708
  23. package/examples/invalid/operational-kind-root.json +720 -720
  24. package/examples/invalid/pipeline-unknown-service.json +611 -611
  25. package/examples/invalid/relationship-missing-rules.json +624 -624
  26. package/examples/invalid/relationship-with-storage.json +631 -631
  27. package/examples/invalid/service-with-secrets.json +679 -679
  28. package/examples/knowx/normalized/pack.json +338 -11
  29. package/examples/opx/normalized/pack.json +265 -7
  30. package/examples/opx/raw/abstract-types.json +244 -244
  31. package/examples/opx/raw/agents.json +33 -33
  32. package/examples/opx/raw/object-types.json +101 -101
  33. package/examples/opx/raw/pipelines-and-sources.json +264 -233
  34. package/examples/opx/raw/relationship-definitions.json +80 -80
  35. package/examples/opx/raw/view-definitions.json +32 -32
  36. package/examples/opx/raw/write-and-source-mappings.json +223 -223
  37. package/examples/project-opx/normalized/pack.json +1036 -1036
  38. package/package.json +48 -48
@@ -28,7 +28,7 @@
28
28
  "abstractTypes": [
29
29
  "People"
30
30
  ],
31
- "notes": "Single people OT. Inside vs outside org is identity kind (concept.identifiers.primary.kind): employeeId | externalPersonId \u2014 not separate object types.",
31
+ "notes": "Single people OT. Inside vs outside org is identity kind (concept.identifiers.primary.kind): employeeId | externalPersonId — not separate object types.",
32
32
  "contentTypes": [
33
33
  {
34
34
  "id": "raw",
@@ -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,83 @@
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
+ }
158
323
  ]
159
324
  }
160
325
  ],
@@ -162,7 +327,7 @@
162
327
  {
163
328
  "id": "People",
164
329
  "name": "People",
165
- "meaning": "People who perform operational work \u2014 inside the org (employeeId) or outside (externalPersonId), distinguished by identity kind",
330
+ "meaning": "People who perform operational work — inside the org (employeeId) or outside (externalPersonId), distinguished by identity kind",
166
331
  "category": "entity",
167
332
  "properties": [
168
333
  {
@@ -225,7 +390,7 @@
225
390
  }
226
391
  ],
227
392
  "union": false,
228
- "notes": "People abstract \u2194 people OT 1:1. Inside/outside org is concept.identifiers.primary.kind (employeeId | externalPersonId), not a second OT."
393
+ "notes": "People abstract ↔ people OT 1:1. Inside/outside org is concept.identifiers.primary.kind (employeeId | externalPersonId), not a second OT."
229
394
  },
230
395
  {
231
396
  "id": "WorkItems",
@@ -398,6 +563,35 @@
398
563
  }
399
564
  ],
400
565
  "union": false
566
+ },
567
+ {
568
+ "id": "KnowledgeArtifacts",
569
+ "name": "Knowledge Artifacts",
570
+ "meaning": "Structured knowledge graphs and snapshot bags produced by analyze workers (Nexum)",
571
+ "category": "knowledge",
572
+ "properties": [
573
+ {
574
+ "id": "title",
575
+ "valueType": "string",
576
+ "required": false
577
+ }
578
+ ],
579
+ "members": [
580
+ {
581
+ "objectType": "content",
582
+ "contentType": "snapshots",
583
+ "properties": [
584
+ {
585
+ "abstractProperty": "title",
586
+ "contentType": "snapshots",
587
+ "propertyPath": "concept.title",
588
+ "concreteValueType": "string"
589
+ }
590
+ ]
591
+ }
592
+ ],
593
+ "union": false,
594
+ "notes": "Used by nexum service ports; durable apply-plan kinds use nexum-* object types (content/snapshots remains the KnowledgeArtifacts member)"
401
595
  }
402
596
  ],
403
597
  "relationshipDefinitions": [
@@ -874,7 +1068,7 @@
874
1068
  {
875
1069
  "id": "opx-enrich-priority",
876
1070
  "name": "Enrich work-item priority",
877
- "description": "Deterministic priority score draft for WorkItems. Returns a patch plan \u2014 does not persist. Pipeline write-record applies the revision-safe mutation on the concrete member.",
1071
+ "description": "Deterministic priority score draft for WorkItems. Returns a patch plan — does not persist. Pipeline write-record applies the revision-safe mutation on the concrete member.",
878
1072
  "role": "agent",
879
1073
  "capabilities": [
880
1074
  "enrich"
@@ -899,6 +1093,39 @@
899
1093
  "kind": "worker",
900
1094
  "operation": "enrich-priority"
901
1095
  }
1096
+ },
1097
+ {
1098
+ "id": "nexum",
1099
+ "name": "Nexum analyze",
1100
+ "description": "Deterministic evidence-graph draft and per-item apply plan from @x12i/nexum (zone nexum · worker :7500 · MEMORIX_NEXUM_URL). Does not persist. Pipeline write-record mode nexum applies contributions.",
1101
+ "role": "agent",
1102
+ "capabilities": [
1103
+ "analyze"
1104
+ ],
1105
+ "memorixAccess": [
1106
+ "explore"
1107
+ ],
1108
+ "inputs": [
1109
+ {
1110
+ "id": "snapshot",
1111
+ "abstractType": "KnowledgeArtifacts",
1112
+ "path": "snapshots",
1113
+ "description": "KnowledgeArtifacts projection or NexumAnalyzeRequest items"
1114
+ }
1115
+ ],
1116
+ "outputs": [
1117
+ {
1118
+ "id": "apply-plan",
1119
+ "abstractType": "KnowledgeArtifacts",
1120
+ "path": "snapshots",
1121
+ "description": "x12i-nexum/1 graph draft and replace-contribution apply plan"
1122
+ }
1123
+ ],
1124
+ "invocation": {
1125
+ "kind": "worker",
1126
+ "operation": "analyze",
1127
+ "endpointEnv": "MEMORIX_NEXUM_URL"
1128
+ }
902
1129
  }
903
1130
  ],
904
1131
  "pipelines": [
@@ -1007,7 +1234,7 @@
1007
1234
  "id": "opx-enrich-priority",
1008
1235
  "name": "Enrich WI priority (draft then write)",
1009
1236
  "trigger": "explicit",
1010
- "description": "Capture snapshot \u2192 enrich service (opx-enrich-priority) \u2192 write-record. Runtime v2 uses stepKind enrich + serviceId.",
1237
+ "description": "Capture snapshot → enrich service (opx-enrich-priority) → write-record. Runtime v2 uses stepKind enrich + serviceId.",
1011
1238
  "steps": [
1012
1239
  {
1013
1240
  "id": "enrich",
@@ -1020,6 +1247,37 @@
1020
1247
  "contentType": "snapshots"
1021
1248
  }
1022
1249
  ]
1250
+ },
1251
+ {
1252
+ "id": "opx-nexum-analyze",
1253
+ "name": "Nexum analyze + write-record",
1254
+ "trigger": "explicit",
1255
+ "description": "Invoke @x12i/nexum analyze (MEMORIX_NEXUM_URL · default :7500), then platform write-record applies proposedGraph (mode nexum). Worker drafts; Memorix persists.",
1256
+ "steps": [
1257
+ {
1258
+ "id": "analyze",
1259
+ "kind": "analyze",
1260
+ "serviceId": "nexum"
1261
+ },
1262
+ {
1263
+ "id": "write-graph",
1264
+ "kind": "write-record",
1265
+ "contentType": "snapshots",
1266
+ "portConfig": {
1267
+ "mode": "nexum"
1268
+ },
1269
+ "dependsOn": [
1270
+ "analyze"
1271
+ ],
1272
+ "inputs": [
1273
+ {
1274
+ "fromStep": "analyze",
1275
+ "key": "analyze"
1276
+ }
1277
+ ],
1278
+ "notes": "mode nexum — create-or-update contribution/node/claim records from proposedGraph"
1279
+ }
1280
+ ]
1023
1281
  }
1024
1282
  ],
1025
1283
  "schedules": [],