@firedrill-tools/unified 0.1.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.
Files changed (61) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +242 -0
  3. package/firedrill/agent.target.json +17 -0
  4. package/firedrill/baseline.scenario.json +5 -0
  5. package/firedrill/bounds.scenario.json +23 -0
  6. package/firedrill/conformance.suite.json +23 -0
  7. package/firedrill/large-channels.scenario.json +4251 -0
  8. package/firedrill/many-workspaces.scenario.json +1623 -0
  9. package/firedrill/rate-limited.scenario.json +11 -0
  10. package/firedrill/tools/unified/behavior.mjs +69 -0
  11. package/firedrill/tools/unified/lib/assoc.mjs +61 -0
  12. package/firedrill/tools/unified/lib/enums.mjs +14 -0
  13. package/firedrill/tools/unified/lib/errors.mjs +50 -0
  14. package/firedrill/tools/unified/lib/events.mjs +27 -0
  15. package/firedrill/tools/unified/lib/identity.mjs +59 -0
  16. package/firedrill/tools/unified/lib/query.mjs +154 -0
  17. package/firedrill/tools/unified/lib/shapes.mjs +176 -0
  18. package/firedrill/tools/unified/lib/store.mjs +75 -0
  19. package/firedrill/tools/unified/lib/time.mjs +59 -0
  20. package/firedrill/tools/unified/lib/util.mjs +92 -0
  21. package/firedrill/tools/unified/lib/validate.mjs +114 -0
  22. package/firedrill/tools/unified/lib/wire.mjs +120 -0
  23. package/firedrill/tools/unified/ops/channels.mjs +45 -0
  24. package/firedrill/tools/unified/ops/connections.mjs +151 -0
  25. package/firedrill/tools/unified/ops/crm.mjs +126 -0
  26. package/firedrill/tools/unified/ops/deals.mjs +123 -0
  27. package/firedrill/tools/unified/ops/messages.mjs +133 -0
  28. package/firedrill/tools/unified/ops/pipelines.mjs +20 -0
  29. package/firedrill/tools/unified/ops/resource.mjs +114 -0
  30. package/firedrill/tools/unified/unified.tool.json +14068 -0
  31. package/firedrill/unified-bounds.drill.json +148 -0
  32. package/firedrill/unified-connections-flow.drill.json +226 -0
  33. package/firedrill/unified-crm-flow.drill.json +576 -0
  34. package/firedrill/unified-denied.drill.json +83 -0
  35. package/firedrill/unified-error-coverage.drill.json +528 -0
  36. package/firedrill/unified-fresh-actor.drill.json +83 -0
  37. package/firedrill/unified-invalid-workspace.drill.json +933 -0
  38. package/firedrill/unified-large-channels.drill.json +68 -0
  39. package/firedrill/unified-many-workspaces.drill.json +943 -0
  40. package/firedrill/unified-mcp-core-aliases.drill.json +113 -0
  41. package/firedrill/unified-messaging-flow.drill.json +326 -0
  42. package/firedrill/unified-rate-limited.drill.json +933 -0
  43. package/firedrill/unified-scoped-token.drill.json +113 -0
  44. package/firedrill/unified-size-bounds.drill.json +263 -0
  45. package/firedrill/unified-write-committed-lost.drill.json +107 -0
  46. package/firedrill/unified-write-unavailable.drill.json +528 -0
  47. package/firedrill/world.json +2958 -0
  48. package/firedrill/write-committed-lost.scenario.json +11 -0
  49. package/firedrill/write-unavailable.scenario.json +11 -0
  50. package/firedrill.json +5 -0
  51. package/package.json +52 -0
  52. package/starter.json +2446 -0
  53. package/test/conformance.mjs +39 -0
  54. package/test/flows/connections.mjs +87 -0
  55. package/test/flows/coverage.mjs +64 -0
  56. package/test/flows/crm.mjs +124 -0
  57. package/test/flows/faults.mjs +82 -0
  58. package/test/flows/identity.mjs +84 -0
  59. package/test/flows/messaging.mjs +82 -0
  60. package/test/flows/size.mjs +71 -0
  61. package/test/lib.mjs +133 -0
@@ -0,0 +1,576 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-crm-flow",
4
+ "title": "CRM contacts, companies, deals and pipelines: paging, filters, projection, symmetric associations, stage derivation, permissions and connection states",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "admin",
8
+ "task": {
9
+ "instruction": "Run the crm flow against the synthetic Unified.to Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "contacts-list-ok-1",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "contacts.list"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "contacts-get-ok-2",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "contacts.get"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "contacts-create-ok-3",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "unified",
47
+ "operationId": "contacts.create"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "contacts-update-ok-4",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "unified",
62
+ "operationId": "contacts.update"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "contacts-remove-ok-5",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "unified",
77
+ "operationId": "contacts.remove"
78
+ },
79
+ "outcomes": [
80
+ "ok"
81
+ ],
82
+ "comparison": {
83
+ "operator": "greater_than_or_equal",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "companies-list-ok-6",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "unified",
92
+ "operationId": "companies.list"
93
+ },
94
+ "outcomes": [
95
+ "ok"
96
+ ],
97
+ "comparison": {
98
+ "operator": "greater_than_or_equal",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "companies-get-ok-7",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "unified",
107
+ "operationId": "companies.get"
108
+ },
109
+ "outcomes": [
110
+ "ok"
111
+ ],
112
+ "comparison": {
113
+ "operator": "greater_than_or_equal",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "companies-create-ok-8",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "unified",
122
+ "operationId": "companies.create"
123
+ },
124
+ "outcomes": [
125
+ "ok"
126
+ ],
127
+ "comparison": {
128
+ "operator": "greater_than_or_equal",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "companies-update-ok-9",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "unified",
137
+ "operationId": "companies.update"
138
+ },
139
+ "outcomes": [
140
+ "ok"
141
+ ],
142
+ "comparison": {
143
+ "operator": "greater_than_or_equal",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "companies-remove-ok-10",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "unified",
152
+ "operationId": "companies.remove"
153
+ },
154
+ "outcomes": [
155
+ "ok"
156
+ ],
157
+ "comparison": {
158
+ "operator": "greater_than_or_equal",
159
+ "value": 1
160
+ }
161
+ },
162
+ {
163
+ "id": "deals-list-ok-11",
164
+ "kind": "operation.count",
165
+ "operation": {
166
+ "packageId": "unified",
167
+ "operationId": "deals.list"
168
+ },
169
+ "outcomes": [
170
+ "ok"
171
+ ],
172
+ "comparison": {
173
+ "operator": "greater_than_or_equal",
174
+ "value": 1
175
+ }
176
+ },
177
+ {
178
+ "id": "deals-get-ok-12",
179
+ "kind": "operation.count",
180
+ "operation": {
181
+ "packageId": "unified",
182
+ "operationId": "deals.get"
183
+ },
184
+ "outcomes": [
185
+ "ok"
186
+ ],
187
+ "comparison": {
188
+ "operator": "greater_than_or_equal",
189
+ "value": 1
190
+ }
191
+ },
192
+ {
193
+ "id": "deals-create-ok-13",
194
+ "kind": "operation.count",
195
+ "operation": {
196
+ "packageId": "unified",
197
+ "operationId": "deals.create"
198
+ },
199
+ "outcomes": [
200
+ "ok"
201
+ ],
202
+ "comparison": {
203
+ "operator": "greater_than_or_equal",
204
+ "value": 1
205
+ }
206
+ },
207
+ {
208
+ "id": "deals-update-ok-14",
209
+ "kind": "operation.count",
210
+ "operation": {
211
+ "packageId": "unified",
212
+ "operationId": "deals.update"
213
+ },
214
+ "outcomes": [
215
+ "ok"
216
+ ],
217
+ "comparison": {
218
+ "operator": "greater_than_or_equal",
219
+ "value": 1
220
+ }
221
+ },
222
+ {
223
+ "id": "deals-remove-ok-15",
224
+ "kind": "operation.count",
225
+ "operation": {
226
+ "packageId": "unified",
227
+ "operationId": "deals.remove"
228
+ },
229
+ "outcomes": [
230
+ "ok"
231
+ ],
232
+ "comparison": {
233
+ "operator": "greater_than_or_equal",
234
+ "value": 1
235
+ }
236
+ },
237
+ {
238
+ "id": "pipelines-list-ok-16",
239
+ "kind": "operation.count",
240
+ "operation": {
241
+ "packageId": "unified",
242
+ "operationId": "pipelines.list"
243
+ },
244
+ "outcomes": [
245
+ "ok"
246
+ ],
247
+ "comparison": {
248
+ "operator": "greater_than_or_equal",
249
+ "value": 1
250
+ }
251
+ },
252
+ {
253
+ "id": "pipelines-get-ok-17",
254
+ "kind": "operation.count",
255
+ "operation": {
256
+ "packageId": "unified",
257
+ "operationId": "pipelines.get"
258
+ },
259
+ "outcomes": [
260
+ "ok"
261
+ ],
262
+ "comparison": {
263
+ "operator": "greater_than_or_equal",
264
+ "value": 1
265
+ }
266
+ },
267
+ {
268
+ "id": "contacts-list-error-18",
269
+ "kind": "operation.count",
270
+ "operation": {
271
+ "packageId": "unified",
272
+ "operationId": "contacts.list"
273
+ },
274
+ "outcomes": [
275
+ "tool_error"
276
+ ],
277
+ "comparison": {
278
+ "operator": "greater_than_or_equal",
279
+ "value": 1
280
+ }
281
+ },
282
+ {
283
+ "id": "contacts-create-error-19",
284
+ "kind": "operation.count",
285
+ "operation": {
286
+ "packageId": "unified",
287
+ "operationId": "contacts.create"
288
+ },
289
+ "outcomes": [
290
+ "tool_error"
291
+ ],
292
+ "comparison": {
293
+ "operator": "greater_than_or_equal",
294
+ "value": 1
295
+ }
296
+ },
297
+ {
298
+ "id": "deals-list-error-20",
299
+ "kind": "operation.count",
300
+ "operation": {
301
+ "packageId": "unified",
302
+ "operationId": "deals.list"
303
+ },
304
+ "outcomes": [
305
+ "tool_error"
306
+ ],
307
+ "comparison": {
308
+ "operator": "greater_than_or_equal",
309
+ "value": 1
310
+ }
311
+ },
312
+ {
313
+ "id": "deals-create-error-21",
314
+ "kind": "operation.count",
315
+ "operation": {
316
+ "packageId": "unified",
317
+ "operationId": "deals.create"
318
+ },
319
+ "outcomes": [
320
+ "tool_error"
321
+ ],
322
+ "comparison": {
323
+ "operator": "greater_than_or_equal",
324
+ "value": 1
325
+ }
326
+ },
327
+ {
328
+ "id": "contacts-get-error-22",
329
+ "kind": "operation.count",
330
+ "operation": {
331
+ "packageId": "unified",
332
+ "operationId": "contacts.get"
333
+ },
334
+ "outcomes": [
335
+ "tool_error"
336
+ ],
337
+ "comparison": {
338
+ "operator": "greater_than_or_equal",
339
+ "value": 1
340
+ }
341
+ },
342
+ {
343
+ "id": "pipelines-get-error-23",
344
+ "kind": "operation.count",
345
+ "operation": {
346
+ "packageId": "unified",
347
+ "operationId": "pipelines.get"
348
+ },
349
+ "outcomes": [
350
+ "tool_error"
351
+ ],
352
+ "comparison": {
353
+ "operator": "greater_than_or_equal",
354
+ "value": 1
355
+ }
356
+ },
357
+ {
358
+ "id": "companies-create-error-24",
359
+ "kind": "operation.count",
360
+ "operation": {
361
+ "packageId": "unified",
362
+ "operationId": "companies.create"
363
+ },
364
+ "outcomes": [
365
+ "tool_error"
366
+ ],
367
+ "comparison": {
368
+ "operator": "greater_than_or_equal",
369
+ "value": 1
370
+ }
371
+ },
372
+ {
373
+ "id": "companies-update-error-25",
374
+ "kind": "operation.count",
375
+ "operation": {
376
+ "packageId": "unified",
377
+ "operationId": "companies.update"
378
+ },
379
+ "outcomes": [
380
+ "tool_error"
381
+ ],
382
+ "comparison": {
383
+ "operator": "greater_than_or_equal",
384
+ "value": 1
385
+ }
386
+ },
387
+ {
388
+ "id": "deals-update-error-26",
389
+ "kind": "operation.count",
390
+ "operation": {
391
+ "packageId": "unified",
392
+ "operationId": "deals.update"
393
+ },
394
+ "outcomes": [
395
+ "tool_error"
396
+ ],
397
+ "comparison": {
398
+ "operator": "greater_than_or_equal",
399
+ "value": 1
400
+ }
401
+ },
402
+ {
403
+ "id": "contacts-count-27",
404
+ "kind": "state.count",
405
+ "packageId": "unified",
406
+ "namespace": "contacts",
407
+ "comparison": {
408
+ "operator": "equals",
409
+ "value": 10
410
+ }
411
+ },
412
+ {
413
+ "id": "companies-count-28",
414
+ "kind": "state.count",
415
+ "packageId": "unified",
416
+ "namespace": "companies",
417
+ "comparison": {
418
+ "operator": "equals",
419
+ "value": 5
420
+ }
421
+ },
422
+ {
423
+ "id": "deals-count-29",
424
+ "kind": "state.count",
425
+ "packageId": "unified",
426
+ "namespace": "deals",
427
+ "comparison": {
428
+ "operator": "equals",
429
+ "value": 6
430
+ }
431
+ },
432
+ {
433
+ "id": "contacts-value-30",
434
+ "kind": "state.value",
435
+ "packageId": "unified",
436
+ "namespace": "contacts",
437
+ "rowId": "68c800000000000000000201/68c800000000000000001001",
438
+ "path": [
439
+ "name"
440
+ ],
441
+ "comparison": {
442
+ "operator": "equals",
443
+ "value": "Lena Ortiz"
444
+ }
445
+ },
446
+ {
447
+ "id": "contacts-value-31",
448
+ "kind": "state.value",
449
+ "packageId": "unified",
450
+ "namespace": "contacts",
451
+ "rowId": "68c800000000000000000201/68c800000000000000000504",
452
+ "path": [
453
+ "title"
454
+ ],
455
+ "comparison": {
456
+ "operator": "equals",
457
+ "value": "Director"
458
+ }
459
+ },
460
+ {
461
+ "id": "deals-value-32",
462
+ "kind": "state.value",
463
+ "packageId": "unified",
464
+ "namespace": "deals",
465
+ "rowId": "68c800000000000000000201/68c800000000000000000601",
466
+ "path": [
467
+ "closed_at"
468
+ ],
469
+ "comparison": {
470
+ "operator": "equals",
471
+ "value": null
472
+ }
473
+ },
474
+ {
475
+ "id": "deals-value-33",
476
+ "kind": "state.value",
477
+ "packageId": "unified",
478
+ "namespace": "deals",
479
+ "rowId": "68c800000000000000000201/68c800000000000000000601",
480
+ "path": [
481
+ "probability"
482
+ ],
483
+ "comparison": {
484
+ "operator": "equals",
485
+ "value": 40
486
+ }
487
+ },
488
+ {
489
+ "id": "deals-value-34",
490
+ "kind": "state.value",
491
+ "packageId": "unified",
492
+ "namespace": "deals",
493
+ "rowId": "68c800000000000000000201/68c800000000000000000601",
494
+ "path": [
495
+ "contact_ids"
496
+ ],
497
+ "comparison": {
498
+ "operator": "equals",
499
+ "value": [
500
+ "68c800000000000000000502"
501
+ ]
502
+ }
503
+ },
504
+ {
505
+ "id": "companies-value-35",
506
+ "kind": "state.value",
507
+ "packageId": "unified",
508
+ "namespace": "companies",
509
+ "rowId": "68c800000000000000000201/68c800000000000000000402",
510
+ "path": [
511
+ "contact_ids"
512
+ ],
513
+ "comparison": {
514
+ "operator": "equals",
515
+ "value": [
516
+ "68c800000000000000000503"
517
+ ]
518
+ }
519
+ },
520
+ {
521
+ "id": "companies-value-36",
522
+ "kind": "state.value",
523
+ "packageId": "unified",
524
+ "namespace": "companies",
525
+ "rowId": "68c800000000000000000201/68c800000000000000000401",
526
+ "path": [
527
+ "contact_ids"
528
+ ],
529
+ "comparison": {
530
+ "operator": "equals",
531
+ "value": [
532
+ "68c800000000000000000502"
533
+ ]
534
+ }
535
+ },
536
+ {
537
+ "id": "object-created-events-37",
538
+ "kind": "event.count",
539
+ "event": {
540
+ "packageId": "unified",
541
+ "eventId": "object.created"
542
+ },
543
+ "phase": "emitted",
544
+ "comparison": {
545
+ "operator": "equals",
546
+ "value": 3
547
+ }
548
+ },
549
+ {
550
+ "id": "object-updated-events-38",
551
+ "kind": "event.count",
552
+ "event": {
553
+ "packageId": "unified",
554
+ "eventId": "object.updated"
555
+ },
556
+ "phase": "emitted",
557
+ "comparison": {
558
+ "operator": "greater_than_or_equal",
559
+ "value": 6
560
+ }
561
+ },
562
+ {
563
+ "id": "object-deleted-events-39",
564
+ "kind": "event.count",
565
+ "event": {
566
+ "packageId": "unified",
567
+ "eventId": "object.deleted"
568
+ },
569
+ "phase": "emitted",
570
+ "comparison": {
571
+ "operator": "equals",
572
+ "value": 3
573
+ }
574
+ }
575
+ ]
576
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-denied",
4
+ "title": "An actor without operation grants is refused by the framework before the Tool runs; provider routes still answer the envelope",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "auditor",
8
+ "task": {
9
+ "instruction": "Run the denied flow against the synthetic Unified.to Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "connections-list-denied-154",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "connections.list"
18
+ },
19
+ "outcomes": [
20
+ "denied"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "contacts-list-denied-155",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "contacts.list"
33
+ },
34
+ "outcomes": [
35
+ "denied"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "messages-create-denied-156",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "unified",
47
+ "operationId": "messages.create"
48
+ },
49
+ "outcomes": [
50
+ "denied"
51
+ ],
52
+ "comparison": {
53
+ "operator": "equals",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "messages-create-ok-157",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "unified",
62
+ "operationId": "messages.create"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "equals",
69
+ "value": 0
70
+ }
71
+ },
72
+ {
73
+ "id": "messages-count-158",
74
+ "kind": "state.count",
75
+ "packageId": "unified",
76
+ "namespace": "messages",
77
+ "comparison": {
78
+ "operator": "equals",
79
+ "value": 20
80
+ }
81
+ }
82
+ ]
83
+ }