@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,148 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-bounds",
4
+ "title": "With the workspace scan bound lowered to 5 rows, scans over larger namespaces fail FAILED_PRECONDITION instead of truncating",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "bounds",
7
+ "actorId": "admin",
8
+ "task": {
9
+ "instruction": "Run the 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-list-error-306",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "contacts.list"
18
+ },
19
+ "outcomes": [
20
+ "tool_error"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "messages-list-error-307",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "messages.list"
33
+ },
34
+ "outcomes": [
35
+ "tool_error"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "connections-list-error-308",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "unified",
47
+ "operationId": "connections.list"
48
+ },
49
+ "outcomes": [
50
+ "tool_error"
51
+ ],
52
+ "comparison": {
53
+ "operator": "equals",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "companies-list-ok-309",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "unified",
62
+ "operationId": "companies.list"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "equals",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "contacts-create-error-310",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "unified",
77
+ "operationId": "contacts.create"
78
+ },
79
+ "outcomes": [
80
+ "tool_error"
81
+ ],
82
+ "comparison": {
83
+ "operator": "equals",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "connections-remove-error-311",
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-get-ok-312",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "unified",
107
+ "operationId": "connections.get"
108
+ },
109
+ "outcomes": [
110
+ "ok"
111
+ ],
112
+ "comparison": {
113
+ "operator": "equals",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "connections-count-313",
119
+ "kind": "state.count",
120
+ "packageId": "unified",
121
+ "namespace": "connections",
122
+ "comparison": {
123
+ "operator": "equals",
124
+ "value": 9
125
+ }
126
+ },
127
+ {
128
+ "id": "contacts-count-314",
129
+ "kind": "state.count",
130
+ "packageId": "unified",
131
+ "namespace": "contacts",
132
+ "comparison": {
133
+ "operator": "equals",
134
+ "value": 10
135
+ }
136
+ },
137
+ {
138
+ "id": "messages-count-315",
139
+ "kind": "state.count",
140
+ "packageId": "unified",
141
+ "namespace": "messages",
142
+ "comparison": {
143
+ "operator": "equals",
144
+ "value": 20
145
+ }
146
+ }
147
+ ]
148
+ }
@@ -0,0 +1,226 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "unified-connections-flow",
4
+ "title": "Connections: filters and paging, create with permission/category checks, update narrows permissions, remove cascades data",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "admin",
8
+ "task": {
9
+ "instruction": "Run the connections 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-62",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "unified",
17
+ "operationId": "connections.list"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "connections-get-ok-63",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "unified",
32
+ "operationId": "connections.get"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "connections-create-ok-64",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "unified",
47
+ "operationId": "connections.create"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "connections-update-ok-65",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "unified",
62
+ "operationId": "connections.update"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "connections-remove-ok-66",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "unified",
77
+ "operationId": "connections.remove"
78
+ },
79
+ "outcomes": [
80
+ "ok"
81
+ ],
82
+ "comparison": {
83
+ "operator": "greater_than_or_equal",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "connections-list-error-67",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "unified",
92
+ "operationId": "connections.list"
93
+ },
94
+ "outcomes": [
95
+ "tool_error"
96
+ ],
97
+ "comparison": {
98
+ "operator": "greater_than_or_equal",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "connections-create-error-68",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "unified",
107
+ "operationId": "connections.create"
108
+ },
109
+ "outcomes": [
110
+ "tool_error"
111
+ ],
112
+ "comparison": {
113
+ "operator": "greater_than_or_equal",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "connections-get-error-69",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "unified",
122
+ "operationId": "connections.get"
123
+ },
124
+ "outcomes": [
125
+ "tool_error"
126
+ ],
127
+ "comparison": {
128
+ "operator": "greater_than_or_equal",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "connections-update-error-70",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "unified",
137
+ "operationId": "connections.update"
138
+ },
139
+ "outcomes": [
140
+ "tool_error"
141
+ ],
142
+ "comparison": {
143
+ "operator": "greater_than_or_equal",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "connections-remove-error-71",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "unified",
152
+ "operationId": "connections.remove"
153
+ },
154
+ "outcomes": [
155
+ "tool_error"
156
+ ],
157
+ "comparison": {
158
+ "operator": "greater_than_or_equal",
159
+ "value": 1
160
+ }
161
+ },
162
+ {
163
+ "id": "contacts-list-error-72",
164
+ "kind": "operation.count",
165
+ "operation": {
166
+ "packageId": "unified",
167
+ "operationId": "contacts.list"
168
+ },
169
+ "outcomes": [
170
+ "tool_error"
171
+ ],
172
+ "comparison": {
173
+ "operator": "greater_than_or_equal",
174
+ "value": 1
175
+ }
176
+ },
177
+ {
178
+ "id": "contacts-create-error-73",
179
+ "kind": "operation.count",
180
+ "operation": {
181
+ "packageId": "unified",
182
+ "operationId": "contacts.create"
183
+ },
184
+ "outcomes": [
185
+ "tool_error"
186
+ ],
187
+ "comparison": {
188
+ "operator": "greater_than_or_equal",
189
+ "value": 1
190
+ }
191
+ },
192
+ {
193
+ "id": "connections-count-74",
194
+ "kind": "state.count",
195
+ "packageId": "unified",
196
+ "namespace": "connections",
197
+ "comparison": {
198
+ "operator": "equals",
199
+ "value": 9
200
+ }
201
+ },
202
+ {
203
+ "id": "contacts-count-75",
204
+ "kind": "state.count",
205
+ "packageId": "unified",
206
+ "namespace": "contacts",
207
+ "comparison": {
208
+ "operator": "equals",
209
+ "value": 10
210
+ }
211
+ },
212
+ {
213
+ "id": "object-deleted-events-76",
214
+ "kind": "event.count",
215
+ "event": {
216
+ "packageId": "unified",
217
+ "eventId": "object.deleted"
218
+ },
219
+ "phase": "emitted",
220
+ "comparison": {
221
+ "operator": "equals",
222
+ "value": 1
223
+ }
224
+ }
225
+ ]
226
+ }