@x12i/memorix-metadata 3.0.1 → 3.0.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.
- package/README.md +7 -7
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/kinds.js +1 -1
- package/dist/kinds.js.map +1 -1
- package/dist/multi-agent-rule.d.ts +3 -3
- package/dist/multi-agent-rule.d.ts.map +1 -1
- package/dist/multi-agent-rule.js +7 -7
- package/dist/multi-agent-rule.js.map +1 -1
- package/dist/normalize.d.ts +2 -2
- package/dist/normalize.d.ts.map +1 -1
- package/dist/normalize.js +13 -4
- package/dist/normalize.js.map +1 -1
- package/dist/resolve.d.ts +14 -2
- package/dist/resolve.d.ts.map +1 -1
- package/dist/resolve.js +216 -131
- package/dist/resolve.js.map +1 -1
- package/dist/streams.d.ts +17 -0
- package/dist/streams.d.ts.map +1 -0
- package/dist/streams.js +76 -0
- package/dist/streams.js.map +1 -0
- package/dist/types.d.ts +70 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +22 -2
- package/dist/types.js.map +1 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +87 -2
- package/dist/validate.js.map +1 -1
- package/examples/custom-kinds/acme-ui-tabs.pack.json +2 -2
- package/examples/invalid/agent-classification.json +45 -45
- package/examples/invalid/broken-binding.json +49 -49
- package/examples/invalid/completion-mapping-with-exec-policy.json +41 -41
- package/examples/invalid/missing-parent.json +45 -45
- package/examples/invalid/operational-kind-root.json +49 -49
- package/examples/invalid/pipeline-unknown-service.json +38 -38
- package/examples/invalid/relationship-missing-rules.json +48 -48
- package/examples/invalid/relationship-with-storage.json +48 -48
- package/examples/invalid/service-with-secrets.json +47 -47
- package/examples/knowx/normalized/pack.json +579 -0
- package/examples/{ops → opx}/normalized/pack.json +61 -61
- package/examples/{ops → opx}/raw/agents.json +8 -8
- package/examples/{ops → opx}/raw/pipelines-and-sources.json +14 -14
- package/examples/{ops → opx}/raw/relationship-definitions.json +1 -1
- package/examples/{ops → opx}/raw/view-definitions.json +4 -4
- package/examples/{ops → opx}/raw/write-and-source-mappings.json +18 -18
- package/examples/{project-ops → project-opx}/normalized/pack.json +60 -60
- package/package.json +2 -2
- /package/examples/{ops → opx}/raw/abstract-bindings.json +0 -0
- /package/examples/{ops → opx}/raw/abstract-types.json +0 -0
- /package/examples/{ops → opx}/raw/object-types.json +0 -0
|
@@ -0,0 +1,579 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "memorix-metadata/1",
|
|
3
|
+
"agentId": "knowx",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"agents": [
|
|
6
|
+
{
|
|
7
|
+
"id": "opx",
|
|
8
|
+
"name": "Operations (generic parent)",
|
|
9
|
+
"description": "Complete generic parent agent for ordinary operational work. Permanent Memorix acceptance pack.",
|
|
10
|
+
"parentId": null
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "knowx",
|
|
14
|
+
"name": "KnowX (knowledge agent)",
|
|
15
|
+
"description": "First-party KnowX agent: extract knowledge from text+source, associate to existing knowledge, associate novel knowledge to entities. Child of opx — inherits domain subjects.",
|
|
16
|
+
"parentId": "opx"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"objectTypes": [
|
|
20
|
+
{
|
|
21
|
+
"id": "employees",
|
|
22
|
+
"name": "Employees",
|
|
23
|
+
"dataCategory": "entity",
|
|
24
|
+
"abstractTypes": [
|
|
25
|
+
"People",
|
|
26
|
+
"KnowXEntity"
|
|
27
|
+
],
|
|
28
|
+
"contentTypes": [
|
|
29
|
+
{
|
|
30
|
+
"id": "raw",
|
|
31
|
+
"required": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "snapshots",
|
|
35
|
+
"required": true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "discovery",
|
|
39
|
+
"discriminator": {
|
|
40
|
+
"path": "data.discoveryType",
|
|
41
|
+
"required": false,
|
|
42
|
+
"defaultValue": "default"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "analysis",
|
|
47
|
+
"discriminator": {
|
|
48
|
+
"path": "data.analysisType",
|
|
49
|
+
"required": false,
|
|
50
|
+
"defaultValue": "default"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "relationships",
|
|
55
|
+
"notes": "Candidate store shape until Gate G4"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "knowx",
|
|
59
|
+
"notes": "KnowX NODE facet — provenance required in .data"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "contractors",
|
|
65
|
+
"name": "Contractors",
|
|
66
|
+
"dataCategory": "entity",
|
|
67
|
+
"abstractTypes": [
|
|
68
|
+
"People",
|
|
69
|
+
"KnowXEntity"
|
|
70
|
+
],
|
|
71
|
+
"contentTypes": [
|
|
72
|
+
{
|
|
73
|
+
"id": "raw"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "snapshots"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "discovery",
|
|
80
|
+
"discriminator": {
|
|
81
|
+
"path": "data.discoveryType",
|
|
82
|
+
"required": false
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "analysis",
|
|
87
|
+
"discriminator": {
|
|
88
|
+
"path": "data.analysisType",
|
|
89
|
+
"required": false
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "relationships"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "knowx",
|
|
97
|
+
"notes": "KnowX NODE facet — provenance required in .data"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "work-items",
|
|
103
|
+
"name": "Work Items",
|
|
104
|
+
"dataCategory": "entity",
|
|
105
|
+
"abstractTypes": [
|
|
106
|
+
"WorkItems",
|
|
107
|
+
"KnowXEntity"
|
|
108
|
+
],
|
|
109
|
+
"contentTypes": [
|
|
110
|
+
{
|
|
111
|
+
"id": "raw"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "snapshots"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "discovery",
|
|
118
|
+
"discriminator": {
|
|
119
|
+
"path": "data.discoveryType",
|
|
120
|
+
"required": false
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "analysis",
|
|
125
|
+
"discriminator": {
|
|
126
|
+
"path": "data.analysisType",
|
|
127
|
+
"required": false,
|
|
128
|
+
"defaultValue": "delivery-risk"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "decisions",
|
|
133
|
+
"discriminator": {
|
|
134
|
+
"path": "data.decisionType",
|
|
135
|
+
"required": false,
|
|
136
|
+
"defaultValue": "priority"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "workflow"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "context",
|
|
144
|
+
"retention": "work-scoped-ttl"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "relationships"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "knowx",
|
|
151
|
+
"notes": "KnowX NODE facet — provenance required in .data"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"snapshotBuckets": {
|
|
155
|
+
"analytics": "optional",
|
|
156
|
+
"enrichment": "optional",
|
|
157
|
+
"insights": "optional"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"id": "assertions",
|
|
162
|
+
"name": "Assertions",
|
|
163
|
+
"dataCategory": "knowledge",
|
|
164
|
+
"abstractTypes": [
|
|
165
|
+
"KnowXEntity"
|
|
166
|
+
],
|
|
167
|
+
"contentTypes": [
|
|
168
|
+
{
|
|
169
|
+
"id": "knowx",
|
|
170
|
+
"required": true,
|
|
171
|
+
"notes": "EDGE claims — data.kind EDGE; provenance mandatory"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"id": "workflow",
|
|
175
|
+
"notes": "Human review assignment sibling"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "confirmations",
|
|
179
|
+
"notes": "Accept/reject decision sibling"
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "content",
|
|
185
|
+
"name": "Content",
|
|
186
|
+
"dataCategory": "knowledge",
|
|
187
|
+
"abstractTypes": [],
|
|
188
|
+
"contentTypes": [
|
|
189
|
+
{
|
|
190
|
+
"id": "raw",
|
|
191
|
+
"required": true,
|
|
192
|
+
"notes": "Landed from knowx-source Memory pull or folder ingestion"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "snapshots",
|
|
196
|
+
"required": false,
|
|
197
|
+
"notes": "Post-processing promote after knowledge pull"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"abstractTypes": [
|
|
203
|
+
{
|
|
204
|
+
"id": "People",
|
|
205
|
+
"name": "People",
|
|
206
|
+
"meaning": "Employees and contractors who perform operational work",
|
|
207
|
+
"category": "entity",
|
|
208
|
+
"properties": [
|
|
209
|
+
{
|
|
210
|
+
"id": "title",
|
|
211
|
+
"valueType": "string",
|
|
212
|
+
"required": true
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"id": "role",
|
|
216
|
+
"valueType": "string",
|
|
217
|
+
"required": true
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"id": "lens",
|
|
221
|
+
"valueType": "string",
|
|
222
|
+
"required": false
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": "WorkItems",
|
|
228
|
+
"name": "Work Items",
|
|
229
|
+
"meaning": "Units of operational work",
|
|
230
|
+
"category": "entity"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"id": "KnowXEntity",
|
|
234
|
+
"name": "KnowX Entity",
|
|
235
|
+
"meaning": "Virtual union of subjects that carry knowx content (NODE facets and EDGE assertions). Not a collection.",
|
|
236
|
+
"category": "knowledge"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"abstractBindings": [
|
|
240
|
+
{
|
|
241
|
+
"id": "knowx-entity-union",
|
|
242
|
+
"abstractType": "KnowXEntity",
|
|
243
|
+
"concreteObjectTypes": [
|
|
244
|
+
"employees",
|
|
245
|
+
"contractors",
|
|
246
|
+
"work-items",
|
|
247
|
+
"assertions"
|
|
248
|
+
],
|
|
249
|
+
"union": true,
|
|
250
|
+
"notes": "KnowXEntity = concrete types that may wear contentType knowx. No abstract records. Writers always target concrete object types."
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"relationshipDefinitions": [
|
|
254
|
+
{
|
|
255
|
+
"id": "knowx-same-as",
|
|
256
|
+
"name": "KnowX same as",
|
|
257
|
+
"meaning": "Extracted claim matches an existing KnowX claim (classification: known)",
|
|
258
|
+
"directionality": "directed",
|
|
259
|
+
"from": {
|
|
260
|
+
"abstractType": "KnowXEntity",
|
|
261
|
+
"path": "sameAs"
|
|
262
|
+
},
|
|
263
|
+
"to": {
|
|
264
|
+
"abstractType": "KnowXEntity",
|
|
265
|
+
"path": "sameAsFrom"
|
|
266
|
+
},
|
|
267
|
+
"discoveryRules": [
|
|
268
|
+
{
|
|
269
|
+
"id": "from-associate-knowledge-known",
|
|
270
|
+
"kind": "service-plan",
|
|
271
|
+
"sourcePath": "known",
|
|
272
|
+
"notes": "Emitted by knowx-associate-knowledge relationship plans"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "knowx-supports",
|
|
278
|
+
"name": "KnowX supports",
|
|
279
|
+
"meaning": "A KnowX claim reinforces or supports another KnowX claim",
|
|
280
|
+
"directionality": "directed",
|
|
281
|
+
"from": {
|
|
282
|
+
"abstractType": "KnowXEntity",
|
|
283
|
+
"path": "supports"
|
|
284
|
+
},
|
|
285
|
+
"to": {
|
|
286
|
+
"abstractType": "KnowXEntity",
|
|
287
|
+
"path": "supportedBy"
|
|
288
|
+
},
|
|
289
|
+
"discoveryRules": [
|
|
290
|
+
{
|
|
291
|
+
"id": "from-associate-knowledge-supports",
|
|
292
|
+
"kind": "service-plan",
|
|
293
|
+
"sourcePath": "supports",
|
|
294
|
+
"notes": "Optional support links from associate-knowledge plans"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "knowx-contradicts",
|
|
300
|
+
"name": "KnowX contradicts",
|
|
301
|
+
"meaning": "A KnowX claim conflicts with an existing KnowX claim (classification: contradicts)",
|
|
302
|
+
"directionality": "directed",
|
|
303
|
+
"from": {
|
|
304
|
+
"abstractType": "KnowXEntity",
|
|
305
|
+
"path": "contradicts"
|
|
306
|
+
},
|
|
307
|
+
"to": {
|
|
308
|
+
"abstractType": "KnowXEntity",
|
|
309
|
+
"path": "contradictedBy"
|
|
310
|
+
},
|
|
311
|
+
"discoveryRules": [
|
|
312
|
+
{
|
|
313
|
+
"id": "from-associate-knowledge-contradicts",
|
|
314
|
+
"kind": "service-plan",
|
|
315
|
+
"sourcePath": "contradicts",
|
|
316
|
+
"notes": "Emitted by knowx-associate-knowledge relationship plans"
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"id": "knowx-derived-from",
|
|
322
|
+
"name": "KnowX derived from",
|
|
323
|
+
"meaning": "A KnowX claim is sourced or derived from another KnowX claim",
|
|
324
|
+
"directionality": "directed",
|
|
325
|
+
"from": {
|
|
326
|
+
"abstractType": "KnowXEntity",
|
|
327
|
+
"path": "derivedFrom"
|
|
328
|
+
},
|
|
329
|
+
"to": {
|
|
330
|
+
"abstractType": "KnowXEntity",
|
|
331
|
+
"path": "derivations"
|
|
332
|
+
},
|
|
333
|
+
"discoveryRules": [
|
|
334
|
+
{
|
|
335
|
+
"id": "from-associate-knowledge-derived",
|
|
336
|
+
"kind": "service-plan",
|
|
337
|
+
"sourcePath": "derivedFrom",
|
|
338
|
+
"notes": "Optional derivation links from associate-knowledge plans"
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": "knowx-edge-from",
|
|
344
|
+
"name": "KnowX edge from",
|
|
345
|
+
"meaning": "Structural link from an EDGE assertion to its domain from-endpoint subject",
|
|
346
|
+
"directionality": "directed",
|
|
347
|
+
"from": {
|
|
348
|
+
"abstractType": "KnowXEntity",
|
|
349
|
+
"path": "edgeFrom"
|
|
350
|
+
},
|
|
351
|
+
"to": {
|
|
352
|
+
"abstractType": "KnowXEntity",
|
|
353
|
+
"path": "incomingKnowxEdges"
|
|
354
|
+
},
|
|
355
|
+
"discoveryRules": [
|
|
356
|
+
{
|
|
357
|
+
"id": "from-edge-refs-from",
|
|
358
|
+
"kind": "knowx-refs",
|
|
359
|
+
"sourcePath": "data.refs.from",
|
|
360
|
+
"notes": "Emitted by knowx-associate-entities from EDGE refs.from"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": "knowx-edge-to",
|
|
366
|
+
"name": "KnowX edge to",
|
|
367
|
+
"meaning": "Structural link from an EDGE assertion to its domain to-endpoint subject",
|
|
368
|
+
"directionality": "directed",
|
|
369
|
+
"from": {
|
|
370
|
+
"abstractType": "KnowXEntity",
|
|
371
|
+
"path": "edgeTo"
|
|
372
|
+
},
|
|
373
|
+
"to": {
|
|
374
|
+
"abstractType": "KnowXEntity",
|
|
375
|
+
"path": "incomingKnowxEdgesTo"
|
|
376
|
+
},
|
|
377
|
+
"discoveryRules": [
|
|
378
|
+
{
|
|
379
|
+
"id": "from-edge-refs-to",
|
|
380
|
+
"kind": "knowx-refs",
|
|
381
|
+
"sourcePath": "data.refs.to",
|
|
382
|
+
"notes": "Emitted by knowx-associate-entities from EDGE refs.to"
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"mappings": [],
|
|
388
|
+
"views": [],
|
|
389
|
+
"writes": [],
|
|
390
|
+
"sources": [
|
|
391
|
+
{
|
|
392
|
+
"id": "knowx-source",
|
|
393
|
+
"name": "KnowX knowledge fixture source",
|
|
394
|
+
"kind": "rest-fixture",
|
|
395
|
+
"baseUrlEnv": "KNOWX_SOURCE_URL",
|
|
396
|
+
"defaultBaseUrl": "http://127.0.0.1:5104",
|
|
397
|
+
"credentialRef": "knowx-source-local",
|
|
398
|
+
"connectorRef": "knowx-fixture",
|
|
399
|
+
"endpoints": [
|
|
400
|
+
"/content"
|
|
401
|
+
],
|
|
402
|
+
"pagination": {
|
|
403
|
+
"style": "cursor",
|
|
404
|
+
"defaultPageSize": 50
|
|
405
|
+
},
|
|
406
|
+
"routes": [
|
|
407
|
+
{
|
|
408
|
+
"endpoint": "/content",
|
|
409
|
+
"objectType": "content",
|
|
410
|
+
"dataCategory": "knowledge",
|
|
411
|
+
"identityPath": "id",
|
|
412
|
+
"primaryKind": "contentId",
|
|
413
|
+
"modes": [
|
|
414
|
+
"knowledge"
|
|
415
|
+
],
|
|
416
|
+
"pageSize": 10
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"services": [
|
|
422
|
+
{
|
|
423
|
+
"id": "knowx-extract",
|
|
424
|
+
"name": "KnowX extract",
|
|
425
|
+
"description": "Extract KnowX NODE/EDGE drafts from text + knowledge source. Returns drafts only — does not persist. Pipeline write-record applies knowx content.",
|
|
426
|
+
"capabilities": [
|
|
427
|
+
"analyze"
|
|
428
|
+
],
|
|
429
|
+
"inputs": [
|
|
430
|
+
{
|
|
431
|
+
"id": "text",
|
|
432
|
+
"description": "Input text to analyze (inline string or resolved from source)"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"id": "knowledgeSource",
|
|
436
|
+
"description": "Exact source bytes / Memory DataRef + provenance envelope (docId, docType, retrievedAt)"
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"outputs": [
|
|
440
|
+
{
|
|
441
|
+
"id": "knowxDrafts",
|
|
442
|
+
"description": "Array of knowx content drafts (NODE facets + EDGE assertions) with mandatory provenance"
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"invocation": {
|
|
446
|
+
"kind": "worker",
|
|
447
|
+
"operation": "knowx-extract"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"id": "knowx-associate-knowledge",
|
|
452
|
+
"name": "KnowX associate knowledge",
|
|
453
|
+
"description": "Classify extracted drafts against existing KnowX scope: known, novel, contradicts. Returns classification buckets + candidate knowledge relationship plans. Does not persist.",
|
|
454
|
+
"capabilities": [
|
|
455
|
+
"analyze"
|
|
456
|
+
],
|
|
457
|
+
"inputs": [
|
|
458
|
+
{
|
|
459
|
+
"id": "drafts",
|
|
460
|
+
"description": "KnowX drafts from knowx-extract (or already written knowx content)"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"id": "existingKnowx",
|
|
464
|
+
"description": "Existing KnowXEntity scope (contentType=knowx records in org)"
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"outputs": [
|
|
468
|
+
{
|
|
469
|
+
"id": "classification",
|
|
470
|
+
"description": "{ known[], novel[], contradicts[] } draft/claim references"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"id": "relationshipPlans",
|
|
474
|
+
"description": "Candidate four-field plans for knowx-same-as / knowx-supports / knowx-contradicts / knowx-derived-from"
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"invocation": {
|
|
478
|
+
"kind": "worker",
|
|
479
|
+
"operation": "knowx-associate-knowledge"
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"id": "knowx-associate-entities",
|
|
484
|
+
"name": "KnowX associate entities",
|
|
485
|
+
"description": "Associate novel KnowX drafts to existing domain entities. Returns entity link candidate plans (knowx-edge-from/to and/or domain defs). Does not persist.",
|
|
486
|
+
"capabilities": [
|
|
487
|
+
"analyze"
|
|
488
|
+
],
|
|
489
|
+
"inputs": [
|
|
490
|
+
{
|
|
491
|
+
"id": "novelDrafts",
|
|
492
|
+
"description": "Novel KnowX drafts from knowx-associate-knowledge classification"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"id": "entityCatalog",
|
|
496
|
+
"description": "Entity subjects / abstract projections available in scope (People, WorkItems, …)"
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"outputs": [
|
|
500
|
+
{
|
|
501
|
+
"id": "entityRelationshipPlans",
|
|
502
|
+
"description": "Candidate four-field plans for knowx-edge-from / knowx-edge-to (and optional domain relationship defs)"
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
"invocation": {
|
|
506
|
+
"kind": "worker",
|
|
507
|
+
"operation": "knowx-associate-entities"
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"pipelines": [
|
|
512
|
+
{
|
|
513
|
+
"id": "knowx-knowledge-pull",
|
|
514
|
+
"name": "Scheduled knowledge pull from knowx-source",
|
|
515
|
+
"trigger": "scheduled",
|
|
516
|
+
"mode": "knowledge",
|
|
517
|
+
"steps": [
|
|
518
|
+
{
|
|
519
|
+
"id": "pull",
|
|
520
|
+
"kind": "memory-pull",
|
|
521
|
+
"sourceId": "knowx-source"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"id": "land-raw",
|
|
525
|
+
"kind": "write-raw"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"id": "normalize",
|
|
529
|
+
"kind": "normalize"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"id": "promote",
|
|
533
|
+
"kind": "promote-snapshots"
|
|
534
|
+
}
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"id": "knowx-ingest-associate",
|
|
539
|
+
"name": "KnowX ingest then associate knowledge and entities",
|
|
540
|
+
"trigger": "explicit",
|
|
541
|
+
"description": "extract → write knowx → associate-knowledge → relationship-write → associate-entities → relationship-write. Services do not persist; write-record and relationship-write do. Deterministic fixtures; no live AI required.",
|
|
542
|
+
"steps": [
|
|
543
|
+
{
|
|
544
|
+
"id": "extract",
|
|
545
|
+
"kind": "analyze",
|
|
546
|
+
"serviceId": "knowx-extract"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"id": "write-knowx",
|
|
550
|
+
"kind": "write-record",
|
|
551
|
+
"contentType": "knowx"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"id": "associate-knowledge",
|
|
555
|
+
"kind": "analyze",
|
|
556
|
+
"serviceId": "knowx-associate-knowledge"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"id": "write-knowledge-links",
|
|
560
|
+
"kind": "relationship-write",
|
|
561
|
+
"notes": "Consumes relationshipPlans → knowx-same-as / knowx-supports / knowx-contradicts / knowx-derived-from"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"id": "associate-entities",
|
|
565
|
+
"kind": "analyze",
|
|
566
|
+
"serviceId": "knowx-associate-entities"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"id": "write-entity-links",
|
|
570
|
+
"kind": "relationship-write",
|
|
571
|
+
"notes": "Consumes entityRelationshipPlans → knowx-edge-from / knowx-edge-to"
|
|
572
|
+
}
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"schedules": [],
|
|
577
|
+
"kindDeclarations": [],
|
|
578
|
+
"extensions": {}
|
|
579
|
+
}
|