@firedrill-tools/slack 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 (58) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +369 -0
  3. package/firedrill/agent.target.json +17 -0
  4. package/firedrill/baseline.scenario.json +5 -0
  5. package/firedrill/bounds.scenario.json +112 -0
  6. package/firedrill/conformance.suite.json +21 -0
  7. package/firedrill/history-unavailable.scenario.json +11 -0
  8. package/firedrill/open-long-handles.scenario.json +263 -0
  9. package/firedrill/open-member-bound.scenario.json +24 -0
  10. package/firedrill/post-rate-limited.scenario.json +11 -0
  11. package/firedrill/response-budget.scenario.json +24 -0
  12. package/firedrill/slack-bounds.drill.json +428 -0
  13. package/firedrill/slack-denied.drill.json +74 -0
  14. package/firedrill/slack-fresh-install.drill.json +132 -0
  15. package/firedrill/slack-history-unavailable.drill.json +83 -0
  16. package/firedrill/slack-invalid-auth.drill.json +408 -0
  17. package/firedrill/slack-mcp-aliases.drill.json +219 -0
  18. package/firedrill/slack-open-long-handles.drill.json +82 -0
  19. package/firedrill/slack-open-member-bound.drill.json +135 -0
  20. package/firedrill/slack-post-rate-limited.drill.json +96 -0
  21. package/firedrill/slack-response-budget.drill.json +118 -0
  22. package/firedrill/slack-thread-many-repliers.drill.json +100 -0
  23. package/firedrill/slack-ts-sequence-full.drill.json +165 -0
  24. package/firedrill/slack-visibility.drill.json +110 -0
  25. package/firedrill/slack-web-api-flow.drill.json +896 -0
  26. package/firedrill/thread-many-repliers.scenario.json +79 -0
  27. package/firedrill/tools/slack/app/assets/ATTRIBUTION.md +40 -0
  28. package/firedrill/tools/slack/app/assets/fonts/OFL.txt +93 -0
  29. package/firedrill/tools/slack/app/assets/fonts/lato-latin-400.woff2 +0 -0
  30. package/firedrill/tools/slack/app/assets/fonts/lato-latin-700.woff2 +0 -0
  31. package/firedrill/tools/slack/app/assets/fonts/lato-latin-900.woff2 +0 -0
  32. package/firedrill/tools/slack/app/assets/slack-wordmark.svg +1 -0
  33. package/firedrill/tools/slack/app/assets/slack.svg +1 -0
  34. package/firedrill/tools/slack/app/site/app.js +2202 -0
  35. package/firedrill/tools/slack/app/site/assets/fonts/lato-latin-400.woff2 +0 -0
  36. package/firedrill/tools/slack/app/site/assets/fonts/lato-latin-700.woff2 +0 -0
  37. package/firedrill/tools/slack/app/site/assets/fonts/lato-latin-900.woff2 +0 -0
  38. package/firedrill/tools/slack/app/site/assets/slack-wordmark.svg +1 -0
  39. package/firedrill/tools/slack/app/site/assets/slack.svg +1 -0
  40. package/firedrill/tools/slack/app/site/chrome.css +73 -0
  41. package/firedrill/tools/slack/app/site/chrome.js +96 -0
  42. package/firedrill/tools/slack/app/site/icons.js +96 -0
  43. package/firedrill/tools/slack/app/site/index.html +253 -0
  44. package/firedrill/tools/slack/app/site/styles.css +2719 -0
  45. package/firedrill/tools/slack/app/site/ui.js +491 -0
  46. package/firedrill/tools/slack/behavior.mjs +1171 -0
  47. package/firedrill/tools/slack/lib/access.mjs +138 -0
  48. package/firedrill/tools/slack/lib/budget.mjs +67 -0
  49. package/firedrill/tools/slack/lib/ids.mjs +146 -0
  50. package/firedrill/tools/slack/lib/search.mjs +172 -0
  51. package/firedrill/tools/slack/lib/wire.mjs +144 -0
  52. package/firedrill/tools/slack/slack.tool.json +6114 -0
  53. package/firedrill/ts-sequence-full.scenario.json +38 -0
  54. package/firedrill/world.json +2008 -0
  55. package/firedrill.json +5 -0
  56. package/package.json +62 -0
  57. package/starter.json +1562 -0
  58. package/test/conformance.mjs +1166 -0
@@ -0,0 +1,428 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "slack-bounds",
4
+ "title": "Every bounded read and pins.add answer 400 too_many_rows once the workspace's limits sit below its rows; by-id reads and writes keep working and refused calls store nothing",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "bounds",
7
+ "actorId": "member",
8
+ "task": {
9
+ "instruction": "Run the bounds conformance flow against the synthetic Slack Tool and fail loudly on any unexpected status or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "users-list-refused",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "slack",
17
+ "operationId": "users.list"
18
+ },
19
+ "outcomes": [
20
+ "tool_error"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "conversations-list-refused",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "slack",
32
+ "operationId": "conversations.list"
33
+ },
34
+ "outcomes": [
35
+ "tool_error"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "conversations-info-refused",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "slack",
47
+ "operationId": "conversations.info"
48
+ },
49
+ "outcomes": [
50
+ "tool_error"
51
+ ],
52
+ "comparison": {
53
+ "operator": "equals",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "conversations-members-refused",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "slack",
62
+ "operationId": "conversations.members"
63
+ },
64
+ "outcomes": [
65
+ "tool_error"
66
+ ],
67
+ "comparison": {
68
+ "operator": "equals",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "conversations-create-refused",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "slack",
77
+ "operationId": "conversations.create"
78
+ },
79
+ "outcomes": [
80
+ "tool_error"
81
+ ],
82
+ "comparison": {
83
+ "operator": "equals",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "conversations-join-refused",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "slack",
92
+ "operationId": "conversations.join"
93
+ },
94
+ "outcomes": [
95
+ "tool_error"
96
+ ],
97
+ "comparison": {
98
+ "operator": "equals",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "conversations-invite-refused",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "slack",
107
+ "operationId": "conversations.invite"
108
+ },
109
+ "outcomes": [
110
+ "tool_error"
111
+ ],
112
+ "comparison": {
113
+ "operator": "equals",
114
+ "value": 1
115
+ }
116
+ },
117
+ {
118
+ "id": "conversations-open-refused",
119
+ "kind": "operation.count",
120
+ "operation": {
121
+ "packageId": "slack",
122
+ "operationId": "conversations.open"
123
+ },
124
+ "outcomes": [
125
+ "tool_error"
126
+ ],
127
+ "comparison": {
128
+ "operator": "equals",
129
+ "value": 1
130
+ }
131
+ },
132
+ {
133
+ "id": "conversations-set-topic-refused",
134
+ "kind": "operation.count",
135
+ "operation": {
136
+ "packageId": "slack",
137
+ "operationId": "conversations.set-topic"
138
+ },
139
+ "outcomes": [
140
+ "tool_error"
141
+ ],
142
+ "comparison": {
143
+ "operator": "equals",
144
+ "value": 1
145
+ }
146
+ },
147
+ {
148
+ "id": "conversations-history-refused",
149
+ "kind": "operation.count",
150
+ "operation": {
151
+ "packageId": "slack",
152
+ "operationId": "conversations.history"
153
+ },
154
+ "outcomes": [
155
+ "tool_error"
156
+ ],
157
+ "comparison": {
158
+ "operator": "equals",
159
+ "value": 2
160
+ }
161
+ },
162
+ {
163
+ "id": "conversations-replies-refused",
164
+ "kind": "operation.count",
165
+ "operation": {
166
+ "packageId": "slack",
167
+ "operationId": "conversations.replies"
168
+ },
169
+ "outcomes": [
170
+ "tool_error"
171
+ ],
172
+ "comparison": {
173
+ "operator": "equals",
174
+ "value": 1
175
+ }
176
+ },
177
+ {
178
+ "id": "chat-delete-refused",
179
+ "kind": "operation.count",
180
+ "operation": {
181
+ "packageId": "slack",
182
+ "operationId": "chat.delete"
183
+ },
184
+ "outcomes": [
185
+ "tool_error"
186
+ ],
187
+ "comparison": {
188
+ "operator": "equals",
189
+ "value": 1
190
+ }
191
+ },
192
+ {
193
+ "id": "chat-post-message-full-thread-refused",
194
+ "kind": "operation.count",
195
+ "operation": {
196
+ "packageId": "slack",
197
+ "operationId": "chat.post-message"
198
+ },
199
+ "outcomes": [
200
+ "tool_error"
201
+ ],
202
+ "comparison": {
203
+ "operator": "equals",
204
+ "value": 1
205
+ }
206
+ },
207
+ {
208
+ "id": "chat-reply-full-thread-refused",
209
+ "kind": "operation.count",
210
+ "operation": {
211
+ "packageId": "slack",
212
+ "operationId": "chat.reply"
213
+ },
214
+ "outcomes": [
215
+ "tool_error"
216
+ ],
217
+ "comparison": {
218
+ "operator": "equals",
219
+ "value": 1
220
+ }
221
+ },
222
+ {
223
+ "id": "pins-add-refused",
224
+ "kind": "operation.count",
225
+ "operation": {
226
+ "packageId": "slack",
227
+ "operationId": "pins.add"
228
+ },
229
+ "outcomes": [
230
+ "tool_error"
231
+ ],
232
+ "comparison": {
233
+ "operator": "equals",
234
+ "value": 1
235
+ }
236
+ },
237
+ {
238
+ "id": "pins-list-refused",
239
+ "kind": "operation.count",
240
+ "operation": {
241
+ "packageId": "slack",
242
+ "operationId": "pins.list"
243
+ },
244
+ "outcomes": [
245
+ "tool_error"
246
+ ],
247
+ "comparison": {
248
+ "operator": "equals",
249
+ "value": 1
250
+ }
251
+ },
252
+ {
253
+ "id": "search-messages-refused",
254
+ "kind": "operation.count",
255
+ "operation": {
256
+ "packageId": "slack",
257
+ "operationId": "search.messages"
258
+ },
259
+ "outcomes": [
260
+ "tool_error"
261
+ ],
262
+ "comparison": {
263
+ "operator": "equals",
264
+ "value": 1
265
+ }
266
+ },
267
+ {
268
+ "id": "conversations-list-never-ok",
269
+ "kind": "operation.count",
270
+ "operation": {
271
+ "packageId": "slack",
272
+ "operationId": "conversations.list"
273
+ },
274
+ "outcomes": [
275
+ "ok"
276
+ ],
277
+ "comparison": {
278
+ "operator": "equals",
279
+ "value": 0
280
+ }
281
+ },
282
+ {
283
+ "id": "auth-ok",
284
+ "kind": "operation.count",
285
+ "operation": {
286
+ "packageId": "slack",
287
+ "operationId": "auth.test"
288
+ },
289
+ "outcomes": [
290
+ "ok"
291
+ ],
292
+ "comparison": {
293
+ "operator": "greater_than_or_equal",
294
+ "value": 1
295
+ }
296
+ },
297
+ {
298
+ "id": "users-info-ok",
299
+ "kind": "operation.count",
300
+ "operation": {
301
+ "packageId": "slack",
302
+ "operationId": "users.info"
303
+ },
304
+ "outcomes": [
305
+ "ok"
306
+ ],
307
+ "comparison": {
308
+ "operator": "greater_than_or_equal",
309
+ "value": 1
310
+ }
311
+ },
312
+ {
313
+ "id": "info-by-id-ok",
314
+ "kind": "operation.count",
315
+ "operation": {
316
+ "packageId": "slack",
317
+ "operationId": "conversations.info"
318
+ },
319
+ "outcomes": [
320
+ "ok"
321
+ ],
322
+ "comparison": {
323
+ "operator": "equals",
324
+ "value": 1
325
+ }
326
+ },
327
+ {
328
+ "id": "post-ok",
329
+ "kind": "operation.count",
330
+ "operation": {
331
+ "packageId": "slack",
332
+ "operationId": "chat.post-message"
333
+ },
334
+ "outcomes": [
335
+ "ok"
336
+ ],
337
+ "comparison": {
338
+ "operator": "equals",
339
+ "value": 1
340
+ }
341
+ },
342
+ {
343
+ "id": "update-ok",
344
+ "kind": "operation.count",
345
+ "operation": {
346
+ "packageId": "slack",
347
+ "operationId": "chat.update"
348
+ },
349
+ "outcomes": [
350
+ "ok"
351
+ ],
352
+ "comparison": {
353
+ "operator": "equals",
354
+ "value": 1
355
+ }
356
+ },
357
+ {
358
+ "id": "reaction-ok",
359
+ "kind": "operation.count",
360
+ "operation": {
361
+ "packageId": "slack",
362
+ "operationId": "reactions.add"
363
+ },
364
+ "outcomes": [
365
+ "ok"
366
+ ],
367
+ "comparison": {
368
+ "operator": "equals",
369
+ "value": 1
370
+ }
371
+ },
372
+ {
373
+ "id": "unpin-ok",
374
+ "kind": "operation.count",
375
+ "operation": {
376
+ "packageId": "slack",
377
+ "operationId": "pins.remove"
378
+ },
379
+ "outcomes": [
380
+ "ok"
381
+ ],
382
+ "comparison": {
383
+ "operator": "equals",
384
+ "value": 1
385
+ }
386
+ },
387
+ {
388
+ "id": "messages-one-posted",
389
+ "kind": "state.count",
390
+ "packageId": "slack",
391
+ "namespace": "messages",
392
+ "comparison": {
393
+ "operator": "equals",
394
+ "value": 40
395
+ }
396
+ },
397
+ {
398
+ "id": "memberships-intact",
399
+ "kind": "state.count",
400
+ "packageId": "slack",
401
+ "namespace": "memberships",
402
+ "comparison": {
403
+ "operator": "equals",
404
+ "value": 30
405
+ }
406
+ },
407
+ {
408
+ "id": "conversations-intact",
409
+ "kind": "state.count",
410
+ "packageId": "slack",
411
+ "namespace": "conversations",
412
+ "comparison": {
413
+ "operator": "equals",
414
+ "value": 10
415
+ }
416
+ },
417
+ {
418
+ "id": "pins-after-unpin",
419
+ "kind": "state.count",
420
+ "packageId": "slack",
421
+ "namespace": "pins",
422
+ "comparison": {
423
+ "operator": "equals",
424
+ "value": 2
425
+ }
426
+ }
427
+ ]
428
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "slack-denied",
4
+ "title": "An actor without grants is denied by the framework over HTTP and MCP",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "auditor",
8
+ "task": {
9
+ "instruction": "Run the denied conformance flow against the synthetic Slack Tool and fail loudly on any unexpected status or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "auth-denied",
14
+ "kind": "operation.denied",
15
+ "operation": {
16
+ "packageId": "slack",
17
+ "operationId": "auth.test"
18
+ },
19
+ "outcomes": [
20
+ "denied"
21
+ ],
22
+ "attemptRequired": true
23
+ },
24
+ {
25
+ "id": "post-denied",
26
+ "kind": "operation.denied",
27
+ "operation": {
28
+ "packageId": "slack",
29
+ "operationId": "chat.post-message"
30
+ },
31
+ "outcomes": [
32
+ "denied"
33
+ ],
34
+ "attemptRequired": true
35
+ },
36
+ {
37
+ "id": "list-denied",
38
+ "kind": "operation.denied",
39
+ "operation": {
40
+ "packageId": "slack",
41
+ "operationId": "conversations.list"
42
+ },
43
+ "outcomes": [
44
+ "denied"
45
+ ],
46
+ "attemptRequired": true
47
+ },
48
+ {
49
+ "id": "nothing-posted",
50
+ "kind": "operation.count",
51
+ "operation": {
52
+ "packageId": "slack",
53
+ "operationId": "chat.post-message"
54
+ },
55
+ "outcomes": [
56
+ "ok"
57
+ ],
58
+ "comparison": {
59
+ "operator": "equals",
60
+ "value": 0
61
+ }
62
+ },
63
+ {
64
+ "id": "messages-untouched",
65
+ "kind": "state.count",
66
+ "packageId": "slack",
67
+ "namespace": "messages",
68
+ "comparison": {
69
+ "operator": "equals",
70
+ "value": 38
71
+ }
72
+ }
73
+ ]
74
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "slack-fresh-install",
4
+ "title": "An actor without identity attributes acts as the first active human member (Dana): auth.test, profile, listing, private history and posting all work as her",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "baseline",
7
+ "actorId": "newcomer",
8
+ "task": {
9
+ "instruction": "Run the fresh-install conformance flow against the synthetic Slack Tool and fail loudly on any unexpected status or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "auth-ok",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "slack",
17
+ "operationId": "auth.test"
18
+ },
19
+ "outcomes": [
20
+ "ok"
21
+ ],
22
+ "comparison": {
23
+ "operator": "greater_than_or_equal",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "profile-ok",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "slack",
32
+ "operationId": "users.profile.get"
33
+ },
34
+ "outcomes": [
35
+ "ok"
36
+ ],
37
+ "comparison": {
38
+ "operator": "greater_than_or_equal",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "list-ok",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "slack",
47
+ "operationId": "conversations.list"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "history-ok",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "slack",
62
+ "operationId": "conversations.history"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "users-list-ok",
74
+ "kind": "operation.count",
75
+ "operation": {
76
+ "packageId": "slack",
77
+ "operationId": "users.list"
78
+ },
79
+ "outcomes": [
80
+ "ok"
81
+ ],
82
+ "comparison": {
83
+ "operator": "greater_than_or_equal",
84
+ "value": 1
85
+ }
86
+ },
87
+ {
88
+ "id": "post-ok",
89
+ "kind": "operation.count",
90
+ "operation": {
91
+ "packageId": "slack",
92
+ "operationId": "chat.post-message"
93
+ },
94
+ "outcomes": [
95
+ "ok"
96
+ ],
97
+ "comparison": {
98
+ "operator": "equals",
99
+ "value": 1
100
+ }
101
+ },
102
+ {
103
+ "id": "never-invalid-auth",
104
+ "kind": "operation.count",
105
+ "operation": {
106
+ "packageId": "slack",
107
+ "operationId": "auth.test"
108
+ },
109
+ "outcomes": [
110
+ "tool_error"
111
+ ],
112
+ "comparison": {
113
+ "operator": "equals",
114
+ "value": 0
115
+ }
116
+ },
117
+ {
118
+ "id": "posted-as-dana",
119
+ "kind": "state.value",
120
+ "packageId": "slack",
121
+ "namespace": "messages",
122
+ "rowId": "C01GENERAL1:1789376400.000001",
123
+ "path": [
124
+ "user"
125
+ ],
126
+ "comparison": {
127
+ "operator": "equals",
128
+ "value": "U01DANA0001"
129
+ }
130
+ }
131
+ ]
132
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "slack-history-unavailable",
4
+ "title": "History and search return 503 while replies, info and pins still work",
5
+ "targetId": "conformance-agent",
6
+ "scenarioId": "history-unavailable",
7
+ "actorId": "member",
8
+ "task": {
9
+ "instruction": "Run the history-unavailable conformance flow against the synthetic Slack Tool and fail loudly on any unexpected status or body."
10
+ },
11
+ "assertions": [
12
+ {
13
+ "id": "history-unavailable",
14
+ "kind": "operation.count",
15
+ "operation": {
16
+ "packageId": "slack",
17
+ "operationId": "conversations.history"
18
+ },
19
+ "outcomes": [
20
+ "tool_error"
21
+ ],
22
+ "comparison": {
23
+ "operator": "equals",
24
+ "value": 1
25
+ }
26
+ },
27
+ {
28
+ "id": "search-unavailable",
29
+ "kind": "operation.count",
30
+ "operation": {
31
+ "packageId": "slack",
32
+ "operationId": "search.messages"
33
+ },
34
+ "outcomes": [
35
+ "tool_error"
36
+ ],
37
+ "comparison": {
38
+ "operator": "equals",
39
+ "value": 1
40
+ }
41
+ },
42
+ {
43
+ "id": "replies-ok",
44
+ "kind": "operation.count",
45
+ "operation": {
46
+ "packageId": "slack",
47
+ "operationId": "conversations.replies"
48
+ },
49
+ "outcomes": [
50
+ "ok"
51
+ ],
52
+ "comparison": {
53
+ "operator": "greater_than_or_equal",
54
+ "value": 1
55
+ }
56
+ },
57
+ {
58
+ "id": "pins-ok",
59
+ "kind": "operation.count",
60
+ "operation": {
61
+ "packageId": "slack",
62
+ "operationId": "pins.list"
63
+ },
64
+ "outcomes": [
65
+ "ok"
66
+ ],
67
+ "comparison": {
68
+ "operator": "greater_than_or_equal",
69
+ "value": 1
70
+ }
71
+ },
72
+ {
73
+ "id": "messages-untouched",
74
+ "kind": "state.count",
75
+ "packageId": "slack",
76
+ "namespace": "messages",
77
+ "comparison": {
78
+ "operator": "equals",
79
+ "value": 38
80
+ }
81
+ }
82
+ ]
83
+ }