@x12i/memorix-metadata 0.0.0-bootstrap.0

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 (61) hide show
  1. package/README.md +35 -0
  2. package/dist/abstracts.d.ts +98 -0
  3. package/dist/abstracts.d.ts.map +1 -0
  4. package/dist/abstracts.js +419 -0
  5. package/dist/abstracts.js.map +1 -0
  6. package/dist/fingerprint.d.ts +11 -0
  7. package/dist/fingerprint.d.ts.map +1 -0
  8. package/dist/fingerprint.js +66 -0
  9. package/dist/fingerprint.js.map +1 -0
  10. package/dist/index.d.ts +8 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +7 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/kind-fields.d.ts +13 -0
  15. package/dist/kind-fields.d.ts.map +1 -0
  16. package/dist/kind-fields.js +39 -0
  17. package/dist/kind-fields.js.map +1 -0
  18. package/dist/kinds.d.ts +21 -0
  19. package/dist/kinds.d.ts.map +1 -0
  20. package/dist/kinds.js +147 -0
  21. package/dist/kinds.js.map +1 -0
  22. package/dist/multi-agent-rule.d.ts +15 -0
  23. package/dist/multi-agent-rule.d.ts.map +1 -0
  24. package/dist/multi-agent-rule.js +30 -0
  25. package/dist/multi-agent-rule.js.map +1 -0
  26. package/dist/normalize.d.ts +26 -0
  27. package/dist/normalize.d.ts.map +1 -0
  28. package/dist/normalize.js +114 -0
  29. package/dist/normalize.js.map +1 -0
  30. package/dist/resolve.d.ts +85 -0
  31. package/dist/resolve.d.ts.map +1 -0
  32. package/dist/resolve.js +464 -0
  33. package/dist/resolve.js.map +1 -0
  34. package/dist/types.d.ts +277 -0
  35. package/dist/types.d.ts.map +1 -0
  36. package/dist/types.js +6 -0
  37. package/dist/types.js.map +1 -0
  38. package/dist/validate.d.ts +7 -0
  39. package/dist/validate.d.ts.map +1 -0
  40. package/dist/validate.js +563 -0
  41. package/dist/validate.js.map +1 -0
  42. package/examples/invalid/agent-classification.json +709 -0
  43. package/examples/invalid/broken-binding.json +688 -0
  44. package/examples/invalid/completion-mapping-with-exec-policy.json +659 -0
  45. package/examples/invalid/missing-parent.json +708 -0
  46. package/examples/invalid/operational-kind-root.json +720 -0
  47. package/examples/invalid/pipeline-unknown-service.json +611 -0
  48. package/examples/invalid/relationship-missing-rules.json +624 -0
  49. package/examples/invalid/relationship-with-storage.json +631 -0
  50. package/examples/invalid/service-with-secrets.json +679 -0
  51. package/examples/ops/normalized/pack.json +1010 -0
  52. package/examples/ops/raw/abstract-bindings.json +38 -0
  53. package/examples/ops/raw/abstract-types.json +28 -0
  54. package/examples/ops/raw/agents.json +33 -0
  55. package/examples/ops/raw/object-types.json +170 -0
  56. package/examples/ops/raw/pipelines-and-sources.json +185 -0
  57. package/examples/ops/raw/relationship-definitions.json +110 -0
  58. package/examples/ops/raw/view-definitions.json +46 -0
  59. package/examples/ops/raw/write-and-source-mappings.json +108 -0
  60. package/examples/project-ops/normalized/pack.json +944 -0
  61. package/package.json +49 -0
@@ -0,0 +1,631 @@
1
+ {
2
+ "format": "memorix-metadata/1",
3
+ "agentId": "ops",
4
+ "version": "0.1.0",
5
+ "agents": [
6
+ {
7
+ "id": "ops",
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": "project-ops",
14
+ "name": "Project Operations (child of ops)",
15
+ "description": "Inheritance smoke agent. Extends ops without replacing core definitions.",
16
+ "parentId": "ops"
17
+ }
18
+ ],
19
+ "objectTypes": [
20
+ {
21
+ "id": "employees",
22
+ "name": "Employees",
23
+ "dataCategory": "entity",
24
+ "abstractTypes": [
25
+ "People"
26
+ ],
27
+ "contentTypes": [
28
+ {
29
+ "id": "raw",
30
+ "required": true
31
+ },
32
+ {
33
+ "id": "snapshots",
34
+ "required": true
35
+ },
36
+ {
37
+ "id": "discovery",
38
+ "discriminator": {
39
+ "path": "data.discoveryType",
40
+ "required": false,
41
+ "defaultValue": "default"
42
+ }
43
+ },
44
+ {
45
+ "id": "analysis",
46
+ "discriminator": {
47
+ "path": "data.analysisType",
48
+ "required": false,
49
+ "defaultValue": "default"
50
+ }
51
+ },
52
+ {
53
+ "id": "relationships",
54
+ "notes": "Candidate store shape until Gate G4"
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "id": "contractors",
60
+ "name": "Contractors",
61
+ "dataCategory": "entity",
62
+ "abstractTypes": [
63
+ "People"
64
+ ],
65
+ "contentTypes": [
66
+ {
67
+ "id": "raw"
68
+ },
69
+ {
70
+ "id": "snapshots"
71
+ },
72
+ {
73
+ "id": "discovery",
74
+ "discriminator": {
75
+ "path": "data.discoveryType",
76
+ "required": false
77
+ }
78
+ },
79
+ {
80
+ "id": "analysis",
81
+ "discriminator": {
82
+ "path": "data.analysisType",
83
+ "required": false
84
+ }
85
+ },
86
+ {
87
+ "id": "relationships"
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "id": "work-items",
93
+ "name": "Work Items",
94
+ "dataCategory": "entity",
95
+ "abstractTypes": [
96
+ "WorkItems"
97
+ ],
98
+ "contentTypes": [
99
+ {
100
+ "id": "raw"
101
+ },
102
+ {
103
+ "id": "snapshots"
104
+ },
105
+ {
106
+ "id": "discovery",
107
+ "discriminator": {
108
+ "path": "data.discoveryType",
109
+ "required": false
110
+ }
111
+ },
112
+ {
113
+ "id": "analysis",
114
+ "discriminator": {
115
+ "path": "data.analysisType",
116
+ "required": false,
117
+ "defaultValue": "delivery-risk"
118
+ }
119
+ },
120
+ {
121
+ "id": "decisions",
122
+ "discriminator": {
123
+ "path": "data.decisionType",
124
+ "required": false,
125
+ "defaultValue": "priority"
126
+ }
127
+ },
128
+ {
129
+ "id": "workflow"
130
+ },
131
+ {
132
+ "id": "context",
133
+ "retention": "work-scoped-ttl"
134
+ },
135
+ {
136
+ "id": "relationships"
137
+ }
138
+ ],
139
+ "snapshotBuckets": {
140
+ "analytics": "optional",
141
+ "enrichment": "optional",
142
+ "insights": "optional"
143
+ }
144
+ },
145
+ {
146
+ "id": "procedures",
147
+ "name": "Procedures",
148
+ "dataCategory": "knowledge",
149
+ "abstractTypes": [
150
+ "Procedures"
151
+ ],
152
+ "contentTypes": [
153
+ {
154
+ "id": "raw"
155
+ },
156
+ {
157
+ "id": "snapshots",
158
+ "notes": "Persistent knowledge content"
159
+ },
160
+ {
161
+ "id": "relationships"
162
+ }
163
+ ],
164
+ "retention": "persistent-knowledge"
165
+ },
166
+ {
167
+ "id": "activity-events",
168
+ "name": "Activity Events",
169
+ "dataCategory": "event",
170
+ "abstractTypes": [
171
+ "ActivityEvents"
172
+ ],
173
+ "contentTypes": [
174
+ {
175
+ "id": "raw"
176
+ },
177
+ {
178
+ "id": "snapshots",
179
+ "notes": "Normalized event content"
180
+ },
181
+ {
182
+ "id": "relationships"
183
+ }
184
+ ]
185
+ }
186
+ ],
187
+ "abstractTypes": [
188
+ {
189
+ "id": "People",
190
+ "name": "People",
191
+ "meaning": "Employees and contractors who perform operational work",
192
+ "category": "entity"
193
+ },
194
+ {
195
+ "id": "WorkItems",
196
+ "name": "Work Items",
197
+ "meaning": "Units of operational work",
198
+ "category": "entity"
199
+ },
200
+ {
201
+ "id": "Procedures",
202
+ "name": "Procedures",
203
+ "meaning": "Reusable operational knowledge / playbooks",
204
+ "category": "knowledge"
205
+ },
206
+ {
207
+ "id": "ActivityEvents",
208
+ "name": "Activity Events",
209
+ "meaning": "Progress and activity reports about work items",
210
+ "category": "event"
211
+ }
212
+ ],
213
+ "abstractBindings": [
214
+ {
215
+ "id": "people-employees-contractors",
216
+ "abstractType": "People",
217
+ "concreteObjectTypes": [
218
+ "employees",
219
+ "contractors"
220
+ ],
221
+ "union": true,
222
+ "notes": "People = Employees ∪ Contractors. No abstract records exist."
223
+ },
224
+ {
225
+ "id": "work-items-concrete",
226
+ "abstractType": "WorkItems",
227
+ "concreteObjectTypes": [
228
+ "work-items"
229
+ ],
230
+ "union": false
231
+ },
232
+ {
233
+ "id": "procedures-concrete",
234
+ "abstractType": "Procedures",
235
+ "concreteObjectTypes": [
236
+ "procedures"
237
+ ],
238
+ "union": false
239
+ },
240
+ {
241
+ "id": "activity-events-concrete",
242
+ "abstractType": "ActivityEvents",
243
+ "concreteObjectTypes": [
244
+ "activity-events"
245
+ ],
246
+ "union": false
247
+ }
248
+ ],
249
+ "relationshipDefinitions": [
250
+ {
251
+ "id": "bad-rel",
252
+ "name": "Bad",
253
+ "meaning": "has storage",
254
+ "directionality": "directed",
255
+ "from": {
256
+ "abstractType": "People",
257
+ "path": "x"
258
+ },
259
+ "to": {
260
+ "abstractType": "WorkItems",
261
+ "path": "y"
262
+ },
263
+ "discoveryRules": [
264
+ {
265
+ "id": "r1",
266
+ "kind": "source-field",
267
+ "sourcePath": "x"
268
+ }
269
+ ],
270
+ "collection": "rel_links"
271
+ }
272
+ ],
273
+ "mappings": [
274
+ {
275
+ "id": "ops-source-employees-to-raw",
276
+ "sourceId": "ops-source",
277
+ "endpoint": "/employees",
278
+ "objectType": "employees",
279
+ "contentType": "raw",
280
+ "mode": "knowledge",
281
+ "map": {
282
+ "data": {
283
+ "op": "path",
284
+ "path": "$"
285
+ }
286
+ },
287
+ "purpose": "source"
288
+ },
289
+ {
290
+ "id": "ops-source-work-items-to-raw",
291
+ "sourceId": "ops-source",
292
+ "endpoint": "/work-items",
293
+ "objectType": "work-items",
294
+ "contentType": "raw",
295
+ "mode": "knowledge",
296
+ "map": {
297
+ "data": {
298
+ "op": "path",
299
+ "path": "$"
300
+ }
301
+ },
302
+ "purpose": "source"
303
+ },
304
+ {
305
+ "id": "ops-source-work-item-context",
306
+ "sourceId": "ops-source",
307
+ "endpoint": "/work-items/:id/context",
308
+ "objectType": "work-items",
309
+ "contentType": "context",
310
+ "mode": "context",
311
+ "trigger": "on-demand",
312
+ "map": {
313
+ "data": {
314
+ "op": "path",
315
+ "path": "$"
316
+ }
317
+ },
318
+ "purpose": "source"
319
+ },
320
+ {
321
+ "id": "ops-people-abstract-title",
322
+ "purpose": "abstract",
323
+ "abstractType": "People",
324
+ "objectType": "employees",
325
+ "contentType": "snapshots",
326
+ "map": {
327
+ "concept.title": {
328
+ "op": "path",
329
+ "path": "data.displayName"
330
+ }
331
+ }
332
+ },
333
+ {
334
+ "id": "ops-work-items-completion-priority",
335
+ "purpose": "completion",
336
+ "objectType": "work-items",
337
+ "contentType": "snapshots",
338
+ "map": {
339
+ "data.priority": {
340
+ "op": "default",
341
+ "value": "normal"
342
+ }
343
+ }
344
+ }
345
+ ],
346
+ "views": [
347
+ {
348
+ "id": "ops-work-items-list",
349
+ "kind": "list",
350
+ "objectType": "work-items",
351
+ "title": "Work items",
352
+ "columns": [
353
+ "concept.title",
354
+ "data.status",
355
+ "data.priority"
356
+ ]
357
+ },
358
+ {
359
+ "id": "ops-work-items-item",
360
+ "kind": "item",
361
+ "objectType": "work-items",
362
+ "title": "Work item",
363
+ "sections": [
364
+ "concept",
365
+ "data",
366
+ "workflow",
367
+ "analysis",
368
+ "decisions"
369
+ ]
370
+ },
371
+ {
372
+ "id": "ops-people-list",
373
+ "kind": "list",
374
+ "abstractType": "People",
375
+ "title": "People",
376
+ "columns": [
377
+ "concept.title",
378
+ "objectType",
379
+ "data.role"
380
+ ]
381
+ },
382
+ {
383
+ "id": "ops-work-item-expand-people",
384
+ "kind": "relationship-expansion",
385
+ "objectType": "work-items",
386
+ "relationshipDefinitionId": "people-assigned-to-work-items",
387
+ "direction": "to-from"
388
+ }
389
+ ],
390
+ "writes": [
391
+ {
392
+ "id": "ops-employees-snapshots",
393
+ "objectType": "employees",
394
+ "contentType": "snapshots",
395
+ "identity": {
396
+ "primaryKind": "employeeId",
397
+ "issuer": "ops-source"
398
+ }
399
+ },
400
+ {
401
+ "id": "ops-contractors-snapshots",
402
+ "objectType": "contractors",
403
+ "contentType": "snapshots",
404
+ "identity": {
405
+ "primaryKind": "contractorId",
406
+ "issuer": "ops-source"
407
+ }
408
+ },
409
+ {
410
+ "id": "ops-work-items-snapshots",
411
+ "objectType": "work-items",
412
+ "contentType": "snapshots",
413
+ "identity": {
414
+ "primaryKind": "workItemId",
415
+ "issuer": "ops-source"
416
+ }
417
+ },
418
+ {
419
+ "id": "ops-procedures-snapshots",
420
+ "objectType": "procedures",
421
+ "contentType": "snapshots",
422
+ "identity": {
423
+ "primaryKind": "procedureId",
424
+ "issuer": "ops-source"
425
+ }
426
+ },
427
+ {
428
+ "id": "ops-activity-events-snapshots",
429
+ "objectType": "activity-events",
430
+ "contentType": "snapshots",
431
+ "identity": {
432
+ "primaryKind": "activityEventId",
433
+ "issuer": "ops-source"
434
+ }
435
+ }
436
+ ],
437
+ "sources": [
438
+ {
439
+ "id": "ops-source",
440
+ "name": "Fieldstone ops fixture source",
441
+ "kind": "rest-fixture",
442
+ "baseUrlEnv": "OPS_SOURCE_URL",
443
+ "defaultBaseUrl": "http://127.0.0.1:7099",
444
+ "credentialRef": "ops-source-local",
445
+ "endpoints": [
446
+ "/employees",
447
+ "/contractors",
448
+ "/work-items",
449
+ "/activity-events",
450
+ "/procedures",
451
+ "/work-items/:id/context"
452
+ ]
453
+ }
454
+ ],
455
+ "services": [
456
+ {
457
+ "id": "ops-normalize",
458
+ "name": "Normalize records",
459
+ "description": "Logical normalize capability for ops knowledge pull",
460
+ "capabilities": [
461
+ "normalize"
462
+ ],
463
+ "inputs": [
464
+ {
465
+ "id": "raw-records",
466
+ "schemaRef": "memorix-record/raw"
467
+ }
468
+ ],
469
+ "outputs": [
470
+ {
471
+ "id": "normalized-records",
472
+ "schemaRef": "memorix-record/snapshots"
473
+ }
474
+ ],
475
+ "invocation": {
476
+ "kind": "worker",
477
+ "operation": "normalize"
478
+ }
479
+ },
480
+ {
481
+ "id": "ops-completion",
482
+ "name": "Field completion",
483
+ "capabilities": [
484
+ "completion"
485
+ ],
486
+ "inputs": [
487
+ {
488
+ "id": "snapshot",
489
+ "schemaRef": "memorix-record/snapshots"
490
+ }
491
+ ],
492
+ "outputs": [
493
+ {
494
+ "id": "completed",
495
+ "schemaRef": "memorix-record/snapshots"
496
+ }
497
+ ],
498
+ "invocation": {
499
+ "kind": "worker",
500
+ "operation": "complete"
501
+ }
502
+ }
503
+ ],
504
+ "pipelines": [
505
+ {
506
+ "id": "ops-knowledge-pull",
507
+ "name": "Scheduled knowledge pull from ops-source",
508
+ "trigger": "scheduled",
509
+ "mode": "knowledge",
510
+ "steps": [
511
+ {
512
+ "id": "pull",
513
+ "kind": "memory-pull",
514
+ "sourceId": "ops-source"
515
+ },
516
+ {
517
+ "id": "land-raw",
518
+ "kind": "write-raw"
519
+ },
520
+ {
521
+ "id": "normalize",
522
+ "kind": "normalize"
523
+ },
524
+ {
525
+ "id": "promote",
526
+ "kind": "promote-snapshots"
527
+ },
528
+ {
529
+ "id": "normalize-svc",
530
+ "kind": "invoke-service",
531
+ "serviceId": "ops-normalize"
532
+ },
533
+ {
534
+ "id": "complete",
535
+ "kind": "completion",
536
+ "serviceId": "ops-completion",
537
+ "mappingId": "ops-work-items-completion-priority",
538
+ "completionPolicy": {
539
+ "mode": "fill-missing",
540
+ "maxFields": 20
541
+ }
542
+ }
543
+ ]
544
+ },
545
+ {
546
+ "id": "ops-context-pull",
547
+ "name": "On-demand work-item context pull",
548
+ "trigger": "on-demand",
549
+ "mode": "context",
550
+ "steps": [
551
+ {
552
+ "id": "pull",
553
+ "kind": "memory-pull",
554
+ "sourceId": "ops-source"
555
+ },
556
+ {
557
+ "id": "land-raw",
558
+ "kind": "write-raw"
559
+ },
560
+ {
561
+ "id": "normalize-context",
562
+ "kind": "normalize-context"
563
+ },
564
+ {
565
+ "id": "ttl",
566
+ "kind": "apply-ttl"
567
+ }
568
+ ]
569
+ },
570
+ {
571
+ "id": "ops-relationship-build",
572
+ "name": "Discover and write lightweight relationships",
573
+ "trigger": "explicit",
574
+ "steps": [
575
+ {
576
+ "id": "discover",
577
+ "kind": "relationship-discover"
578
+ },
579
+ {
580
+ "id": "write",
581
+ "kind": "relationship-write"
582
+ },
583
+ {
584
+ "id": "verify",
585
+ "kind": "relationship-verify"
586
+ }
587
+ ]
588
+ },
589
+ {
590
+ "id": "ops-analysis",
591
+ "name": "Work-item analysis sibling",
592
+ "trigger": "explicit",
593
+ "steps": [
594
+ {
595
+ "id": "analyze",
596
+ "kind": "analysis"
597
+ },
598
+ {
599
+ "id": "write-sibling",
600
+ "kind": "write-content",
601
+ "contentType": "analysis"
602
+ }
603
+ ]
604
+ },
605
+ {
606
+ "id": "ops-workflow",
607
+ "name": "Work-item workflow sibling",
608
+ "trigger": "explicit",
609
+ "steps": [
610
+ {
611
+ "id": "sync-workflow",
612
+ "kind": "workflow-sync"
613
+ },
614
+ {
615
+ "id": "write-sibling",
616
+ "kind": "write-content",
617
+ "contentType": "workflow"
618
+ }
619
+ ]
620
+ }
621
+ ],
622
+ "schedules": [
623
+ {
624
+ "id": "ops-knowledge-hourly",
625
+ "pipelineId": "ops-knowledge-pull",
626
+ "cron": "0 * * * *",
627
+ "timezone": "UTC",
628
+ "enabled": true
629
+ }
630
+ ]
631
+ }