@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,113 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-scoped-token",
4
+ "title": "A connection-scoped key sees one connection; others answer 404 and creating connections answers 403",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "scoped",
8
+ "task": {
9
+ "instruction": "Run the scoped 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-ok-84",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "connections.list"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "messages-list-ok-85",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "messages.list"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "connections-create-error-86",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "unified",
47
+ "operationId": "connections.create"
48
+ },
49
+ "outcomes": [
50
+ "tool_error"
51
+ ],
52
+ "comparison": {
53
+ "operator": "equals",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "connections-get-error-87",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "unified",
62
+ "operationId": "connections.get"
63
+ },
64
+ "outcomes": [
65
+ "tool_error"
66
+ ],
67
+ "comparison": {
68
+ "operator": "equals",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "contacts-list-error-88",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "unified",
77
+ "operationId": "contacts.list"
78
+ },
79
+ "outcomes": [
80
+ "tool_error"
81
+ ],
82
+ "comparison": {
83
+ "operator": "equals",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "connections-remove-error-89",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "unified",
92
+ "operationId": "connections.remove"
93
+ },
94
+ "outcomes": [
95
+ "tool_error"
96
+ ],
97
+ "comparison": {
98
+ "operator": "equals",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "connections-count-90",
104
+ "kind": "state.count",
105
+ "packageId": "unified",
106
+ "namespace": "connections",
107
+ "comparison": {
108
+ "operator": "equals",
109
+ "value": 9
110
+ }
111
+ }
112
+ ]
113
+ }
@@ -0,0 +1,263 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-size-bounds",
4
+ "title": "Schema bounds, prototype keys, long unknown keys, the 900 KB page budget in UTF-8 bytes (contact raw, company and deal text, CJK messages), long and repeated query parameters",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "admin",
8
+ "task": {
9
+ "instruction": "Run the size-bounds flow against the synthetic Unified.to Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "contacts-create-error-384",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "contacts.create"
18
+ },
19
+ "outcomes": [
20
+ "tool_error"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 7
25
+ }
26
+ },
27
+ {
28
+ "id": "contacts-create-ok-385",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "contacts.create"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 60
40
+ }
41
+ },
42
+ {
43
+ "id": "companies-create-ok-386",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "unified",
47
+ "operationId": "companies.create"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "equals",
54
+ "value": 50
55
+ }
56
+ },
57
+ {
58
+ "id": "deals-create-ok-387",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "unified",
62
+ "operationId": "deals.create"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "equals",
69
+ "value": 50
70
+ }
71
+ },
72
+ {
73
+ "id": "messages-create-ok-388",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "unified",
77
+ "operationId": "messages.create"
78
+ },
79
+ "outcomes": [
80
+ "ok"
81
+ ],
82
+ "comparison": {
83
+ "operator": "equals",
84
+ "value": 16
85
+ }
86
+ },
87
+ {
88
+ "id": "contacts-list-error-389",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "unified",
92
+ "operationId": "contacts.list"
93
+ },
94
+ "outcomes": [
95
+ "tool_error"
96
+ ],
97
+ "comparison": {
98
+ "operator": "greater_than_or_equal",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "companies-list-error-390",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "unified",
107
+ "operationId": "companies.list"
108
+ },
109
+ "outcomes": [
110
+ "tool_error"
111
+ ],
112
+ "comparison": {
113
+ "operator": "greater_than_or_equal",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "deals-list-error-391",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "unified",
122
+ "operationId": "deals.list"
123
+ },
124
+ "outcomes": [
125
+ "tool_error"
126
+ ],
127
+ "comparison": {
128
+ "operator": "greater_than_or_equal",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "messages-list-error-392",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "unified",
137
+ "operationId": "messages.list"
138
+ },
139
+ "outcomes": [
140
+ "tool_error"
141
+ ],
142
+ "comparison": {
143
+ "operator": "greater_than_or_equal",
144
+ "value": 3
145
+ }
146
+ },
147
+ {
148
+ "id": "contacts-list-ok-393",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "unified",
152
+ "operationId": "contacts.list"
153
+ },
154
+ "outcomes": [
155
+ "ok"
156
+ ],
157
+ "comparison": {
158
+ "operator": "greater_than_or_equal",
159
+ "value": 3
160
+ }
161
+ },
162
+ {
163
+ "id": "companies-list-ok-394",
164
+ "kind": "operation.count",
165
+ "operation": {
166
+ "packageId": "unified",
167
+ "operationId": "companies.list"
168
+ },
169
+ "outcomes": [
170
+ "ok"
171
+ ],
172
+ "comparison": {
173
+ "operator": "greater_than_or_equal",
174
+ "value": 2
175
+ }
176
+ },
177
+ {
178
+ "id": "deals-list-ok-395",
179
+ "kind": "operation.count",
180
+ "operation": {
181
+ "packageId": "unified",
182
+ "operationId": "deals.list"
183
+ },
184
+ "outcomes": [
185
+ "ok"
186
+ ],
187
+ "comparison": {
188
+ "operator": "greater_than_or_equal",
189
+ "value": 2
190
+ }
191
+ },
192
+ {
193
+ "id": "messages-list-ok-396",
194
+ "kind": "operation.count",
195
+ "operation": {
196
+ "packageId": "unified",
197
+ "operationId": "messages.list"
198
+ },
199
+ "outcomes": [
200
+ "ok"
201
+ ],
202
+ "comparison": {
203
+ "operator": "greater_than_or_equal",
204
+ "value": 2
205
+ }
206
+ },
207
+ {
208
+ "id": "contacts-get-ok-397",
209
+ "kind": "operation.count",
210
+ "operation": {
211
+ "packageId": "unified",
212
+ "operationId": "contacts.get"
213
+ },
214
+ "outcomes": [
215
+ "ok"
216
+ ],
217
+ "comparison": {
218
+ "operator": "greater_than_or_equal",
219
+ "value": 1
220
+ }
221
+ },
222
+ {
223
+ "id": "contacts-count-398",
224
+ "kind": "state.count",
225
+ "packageId": "unified",
226
+ "namespace": "contacts",
227
+ "comparison": {
228
+ "operator": "equals",
229
+ "value": 70
230
+ }
231
+ },
232
+ {
233
+ "id": "companies-count-399",
234
+ "kind": "state.count",
235
+ "packageId": "unified",
236
+ "namespace": "companies",
237
+ "comparison": {
238
+ "operator": "equals",
239
+ "value": 55
240
+ }
241
+ },
242
+ {
243
+ "id": "deals-count-400",
244
+ "kind": "state.count",
245
+ "packageId": "unified",
246
+ "namespace": "deals",
247
+ "comparison": {
248
+ "operator": "equals",
249
+ "value": 56
250
+ }
251
+ },
252
+ {
253
+ "id": "messages-count-401",
254
+ "kind": "state.count",
255
+ "packageId": "unified",
256
+ "namespace": "messages",
257
+ "comparison": {
258
+ "operator": "equals",
259
+ "value": 36
260
+ }
261
+ }
262
+ ]
263
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-write-committed-lost",
4
+ "title": "messages.create commits the message and its events but answers 500; a blind retry creates a duplicate",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "write-committed-lost",
7
+ "actorId": "admin",
8
+ "task": {
9
+ "instruction": "Run the write-committed-lost flow against the synthetic Unified.to Tool and fail loudly on any unexpected status, header or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "messages-create-error-299",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "messages.create"
18
+ },
19
+ "outcomes": [
20
+ "tool_error"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 2
25
+ }
26
+ },
27
+ {
28
+ "id": "messages-create-ok-300",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "messages.create"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 0
40
+ }
41
+ },
42
+ {
43
+ "id": "messages-count-301",
44
+ "kind": "state.count",
45
+ "packageId": "unified",
46
+ "namespace": "messages",
47
+ "comparison": {
48
+ "operator": "equals",
49
+ "value": 22
50
+ }
51
+ },
52
+ {
53
+ "id": "messages-value-302",
54
+ "kind": "state.value",
55
+ "packageId": "unified",
56
+ "namespace": "messages",
57
+ "rowId": "68c800000000000000000203/68c800000000000000001001",
58
+ "path": [
59
+ "message"
60
+ ],
61
+ "comparison": {
62
+ "operator": "equals",
63
+ "value": "Ship it"
64
+ }
65
+ },
66
+ {
67
+ "id": "messages-value-303",
68
+ "kind": "state.value",
69
+ "packageId": "unified",
70
+ "namespace": "messages",
71
+ "rowId": "68c800000000000000000203/68c800000000000000001002",
72
+ "path": [
73
+ "message"
74
+ ],
75
+ "comparison": {
76
+ "operator": "equals",
77
+ "value": "Ship it"
78
+ }
79
+ },
80
+ {
81
+ "id": "object-created-events-304",
82
+ "kind": "event.count",
83
+ "event": {
84
+ "packageId": "unified",
85
+ "eventId": "object.created"
86
+ },
87
+ "phase": "emitted",
88
+ "comparison": {
89
+ "operator": "equals",
90
+ "value": 2
91
+ }
92
+ },
93
+ {
94
+ "id": "object-updated-events-305",
95
+ "kind": "event.count",
96
+ "event": {
97
+ "packageId": "unified",
98
+ "eventId": "object.updated"
99
+ },
100
+ "phase": "emitted",
101
+ "comparison": {
102
+ "operator": "equals",
103
+ "value": 2
104
+ }
105
+ }
106
+ ]
107
+ }