@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,528 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-write-unavailable",
4
+ "title": "Every write route answers 500 Internal Server Error before any state change while reads keep working",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "write-unavailable",
7
+ "actorId": "admin",
8
+ "task": {
9
+ "instruction": "Run the write-unavailable flow against the synthetic Unified.to Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "connections-create-error-263",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "connections.create"
18
+ },
19
+ "outcomes": [
20
+ "tool_error"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "connections-update-error-264",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "connections.update"
33
+ },
34
+ "outcomes": [
35
+ "tool_error"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "connections-remove-error-265",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "unified",
47
+ "operationId": "connections.remove"
48
+ },
49
+ "outcomes": [
50
+ "tool_error"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "contacts-create-error-266",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "unified",
62
+ "operationId": "contacts.create"
63
+ },
64
+ "outcomes": [
65
+ "tool_error"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "contacts-update-error-267",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "unified",
77
+ "operationId": "contacts.update"
78
+ },
79
+ "outcomes": [
80
+ "tool_error"
81
+ ],
82
+ "comparison": {
83
+ "operator": "greater_than_or_equal",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "contacts-remove-error-268",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "unified",
92
+ "operationId": "contacts.remove"
93
+ },
94
+ "outcomes": [
95
+ "tool_error"
96
+ ],
97
+ "comparison": {
98
+ "operator": "greater_than_or_equal",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "companies-create-error-269",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "unified",
107
+ "operationId": "companies.create"
108
+ },
109
+ "outcomes": [
110
+ "tool_error"
111
+ ],
112
+ "comparison": {
113
+ "operator": "greater_than_or_equal",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "companies-update-error-270",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "unified",
122
+ "operationId": "companies.update"
123
+ },
124
+ "outcomes": [
125
+ "tool_error"
126
+ ],
127
+ "comparison": {
128
+ "operator": "greater_than_or_equal",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "companies-remove-error-271",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "unified",
137
+ "operationId": "companies.remove"
138
+ },
139
+ "outcomes": [
140
+ "tool_error"
141
+ ],
142
+ "comparison": {
143
+ "operator": "greater_than_or_equal",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "deals-create-error-272",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "unified",
152
+ "operationId": "deals.create"
153
+ },
154
+ "outcomes": [
155
+ "tool_error"
156
+ ],
157
+ "comparison": {
158
+ "operator": "greater_than_or_equal",
159
+ "value": 1
160
+ }
161
+ },
162
+ {
163
+ "id": "deals-update-error-273",
164
+ "kind": "operation.count",
165
+ "operation": {
166
+ "packageId": "unified",
167
+ "operationId": "deals.update"
168
+ },
169
+ "outcomes": [
170
+ "tool_error"
171
+ ],
172
+ "comparison": {
173
+ "operator": "greater_than_or_equal",
174
+ "value": 1
175
+ }
176
+ },
177
+ {
178
+ "id": "deals-remove-error-274",
179
+ "kind": "operation.count",
180
+ "operation": {
181
+ "packageId": "unified",
182
+ "operationId": "deals.remove"
183
+ },
184
+ "outcomes": [
185
+ "tool_error"
186
+ ],
187
+ "comparison": {
188
+ "operator": "greater_than_or_equal",
189
+ "value": 1
190
+ }
191
+ },
192
+ {
193
+ "id": "messages-create-error-275",
194
+ "kind": "operation.count",
195
+ "operation": {
196
+ "packageId": "unified",
197
+ "operationId": "messages.create"
198
+ },
199
+ "outcomes": [
200
+ "tool_error"
201
+ ],
202
+ "comparison": {
203
+ "operator": "greater_than_or_equal",
204
+ "value": 1
205
+ }
206
+ },
207
+ {
208
+ "id": "messages-update-error-276",
209
+ "kind": "operation.count",
210
+ "operation": {
211
+ "packageId": "unified",
212
+ "operationId": "messages.update"
213
+ },
214
+ "outcomes": [
215
+ "tool_error"
216
+ ],
217
+ "comparison": {
218
+ "operator": "greater_than_or_equal",
219
+ "value": 1
220
+ }
221
+ },
222
+ {
223
+ "id": "messages-remove-error-277",
224
+ "kind": "operation.count",
225
+ "operation": {
226
+ "packageId": "unified",
227
+ "operationId": "messages.remove"
228
+ },
229
+ "outcomes": [
230
+ "tool_error"
231
+ ],
232
+ "comparison": {
233
+ "operator": "greater_than_or_equal",
234
+ "value": 1
235
+ }
236
+ },
237
+ {
238
+ "id": "connections-create-ok-278",
239
+ "kind": "operation.count",
240
+ "operation": {
241
+ "packageId": "unified",
242
+ "operationId": "connections.create"
243
+ },
244
+ "outcomes": [
245
+ "ok"
246
+ ],
247
+ "comparison": {
248
+ "operator": "equals",
249
+ "value": 0
250
+ }
251
+ },
252
+ {
253
+ "id": "connections-update-ok-279",
254
+ "kind": "operation.count",
255
+ "operation": {
256
+ "packageId": "unified",
257
+ "operationId": "connections.update"
258
+ },
259
+ "outcomes": [
260
+ "ok"
261
+ ],
262
+ "comparison": {
263
+ "operator": "equals",
264
+ "value": 0
265
+ }
266
+ },
267
+ {
268
+ "id": "connections-remove-ok-280",
269
+ "kind": "operation.count",
270
+ "operation": {
271
+ "packageId": "unified",
272
+ "operationId": "connections.remove"
273
+ },
274
+ "outcomes": [
275
+ "ok"
276
+ ],
277
+ "comparison": {
278
+ "operator": "equals",
279
+ "value": 0
280
+ }
281
+ },
282
+ {
283
+ "id": "contacts-create-ok-281",
284
+ "kind": "operation.count",
285
+ "operation": {
286
+ "packageId": "unified",
287
+ "operationId": "contacts.create"
288
+ },
289
+ "outcomes": [
290
+ "ok"
291
+ ],
292
+ "comparison": {
293
+ "operator": "equals",
294
+ "value": 0
295
+ }
296
+ },
297
+ {
298
+ "id": "contacts-update-ok-282",
299
+ "kind": "operation.count",
300
+ "operation": {
301
+ "packageId": "unified",
302
+ "operationId": "contacts.update"
303
+ },
304
+ "outcomes": [
305
+ "ok"
306
+ ],
307
+ "comparison": {
308
+ "operator": "equals",
309
+ "value": 0
310
+ }
311
+ },
312
+ {
313
+ "id": "contacts-remove-ok-283",
314
+ "kind": "operation.count",
315
+ "operation": {
316
+ "packageId": "unified",
317
+ "operationId": "contacts.remove"
318
+ },
319
+ "outcomes": [
320
+ "ok"
321
+ ],
322
+ "comparison": {
323
+ "operator": "equals",
324
+ "value": 0
325
+ }
326
+ },
327
+ {
328
+ "id": "companies-create-ok-284",
329
+ "kind": "operation.count",
330
+ "operation": {
331
+ "packageId": "unified",
332
+ "operationId": "companies.create"
333
+ },
334
+ "outcomes": [
335
+ "ok"
336
+ ],
337
+ "comparison": {
338
+ "operator": "equals",
339
+ "value": 0
340
+ }
341
+ },
342
+ {
343
+ "id": "companies-update-ok-285",
344
+ "kind": "operation.count",
345
+ "operation": {
346
+ "packageId": "unified",
347
+ "operationId": "companies.update"
348
+ },
349
+ "outcomes": [
350
+ "ok"
351
+ ],
352
+ "comparison": {
353
+ "operator": "equals",
354
+ "value": 0
355
+ }
356
+ },
357
+ {
358
+ "id": "companies-remove-ok-286",
359
+ "kind": "operation.count",
360
+ "operation": {
361
+ "packageId": "unified",
362
+ "operationId": "companies.remove"
363
+ },
364
+ "outcomes": [
365
+ "ok"
366
+ ],
367
+ "comparison": {
368
+ "operator": "equals",
369
+ "value": 0
370
+ }
371
+ },
372
+ {
373
+ "id": "deals-create-ok-287",
374
+ "kind": "operation.count",
375
+ "operation": {
376
+ "packageId": "unified",
377
+ "operationId": "deals.create"
378
+ },
379
+ "outcomes": [
380
+ "ok"
381
+ ],
382
+ "comparison": {
383
+ "operator": "equals",
384
+ "value": 0
385
+ }
386
+ },
387
+ {
388
+ "id": "deals-update-ok-288",
389
+ "kind": "operation.count",
390
+ "operation": {
391
+ "packageId": "unified",
392
+ "operationId": "deals.update"
393
+ },
394
+ "outcomes": [
395
+ "ok"
396
+ ],
397
+ "comparison": {
398
+ "operator": "equals",
399
+ "value": 0
400
+ }
401
+ },
402
+ {
403
+ "id": "deals-remove-ok-289",
404
+ "kind": "operation.count",
405
+ "operation": {
406
+ "packageId": "unified",
407
+ "operationId": "deals.remove"
408
+ },
409
+ "outcomes": [
410
+ "ok"
411
+ ],
412
+ "comparison": {
413
+ "operator": "equals",
414
+ "value": 0
415
+ }
416
+ },
417
+ {
418
+ "id": "messages-create-ok-290",
419
+ "kind": "operation.count",
420
+ "operation": {
421
+ "packageId": "unified",
422
+ "operationId": "messages.create"
423
+ },
424
+ "outcomes": [
425
+ "ok"
426
+ ],
427
+ "comparison": {
428
+ "operator": "equals",
429
+ "value": 0
430
+ }
431
+ },
432
+ {
433
+ "id": "messages-update-ok-291",
434
+ "kind": "operation.count",
435
+ "operation": {
436
+ "packageId": "unified",
437
+ "operationId": "messages.update"
438
+ },
439
+ "outcomes": [
440
+ "ok"
441
+ ],
442
+ "comparison": {
443
+ "operator": "equals",
444
+ "value": 0
445
+ }
446
+ },
447
+ {
448
+ "id": "messages-remove-ok-292",
449
+ "kind": "operation.count",
450
+ "operation": {
451
+ "packageId": "unified",
452
+ "operationId": "messages.remove"
453
+ },
454
+ "outcomes": [
455
+ "ok"
456
+ ],
457
+ "comparison": {
458
+ "operator": "equals",
459
+ "value": 0
460
+ }
461
+ },
462
+ {
463
+ "id": "contacts-list-ok-293",
464
+ "kind": "operation.count",
465
+ "operation": {
466
+ "packageId": "unified",
467
+ "operationId": "contacts.list"
468
+ },
469
+ "outcomes": [
470
+ "ok"
471
+ ],
472
+ "comparison": {
473
+ "operator": "equals",
474
+ "value": 1
475
+ }
476
+ },
477
+ {
478
+ "id": "connections-count-294",
479
+ "kind": "state.count",
480
+ "packageId": "unified",
481
+ "namespace": "connections",
482
+ "comparison": {
483
+ "operator": "equals",
484
+ "value": 9
485
+ }
486
+ },
487
+ {
488
+ "id": "contacts-count-295",
489
+ "kind": "state.count",
490
+ "packageId": "unified",
491
+ "namespace": "contacts",
492
+ "comparison": {
493
+ "operator": "equals",
494
+ "value": 10
495
+ }
496
+ },
497
+ {
498
+ "id": "companies-count-296",
499
+ "kind": "state.count",
500
+ "packageId": "unified",
501
+ "namespace": "companies",
502
+ "comparison": {
503
+ "operator": "equals",
504
+ "value": 5
505
+ }
506
+ },
507
+ {
508
+ "id": "deals-count-297",
509
+ "kind": "state.count",
510
+ "packageId": "unified",
511
+ "namespace": "deals",
512
+ "comparison": {
513
+ "operator": "equals",
514
+ "value": 6
515
+ }
516
+ },
517
+ {
518
+ "id": "messages-count-298",
519
+ "kind": "state.count",
520
+ "packageId": "unified",
521
+ "namespace": "messages",
522
+ "comparison": {
523
+ "operator": "equals",
524
+ "value": 20
525
+ }
526
+ }
527
+ ]
528
+ }