@firedrill-tools/notion 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.
- package/LICENSE +201 -0
- package/README.md +402 -0
- package/firedrill/agent.target.json +17 -0
- package/firedrill/baseline.scenario.json +5 -0
- package/firedrill/bounded.scenario.json +19 -0
- package/firedrill/conformance.suite.json +23 -0
- package/firedrill/notion-bounded.drill.json +318 -0
- package/firedrill/notion-byte-budget.drill.json +116 -0
- package/firedrill/notion-mcp-aliases.drill.json +150 -0
- package/firedrill/notion-page-authoring.drill.json +254 -0
- package/firedrill/notion-rate-limited.drill.json +118 -0
- package/firedrill/notion-schema-growth.drill.json +88 -0
- package/firedrill/notion-scope-agent-only.drill.json +131 -0
- package/firedrill/notion-scope-auditor.drill.json +86 -0
- package/firedrill/notion-scope-board-bot.drill.json +128 -0
- package/firedrill/notion-scope-notes-bot.drill.json +303 -0
- package/firedrill/notion-scope-stranger.drill.json +773 -0
- package/firedrill/notion-task-triage.drill.json +277 -0
- package/firedrill/notion-trash-and-restore.drill.json +186 -0
- package/firedrill/notion-update-lost.drill.json +88 -0
- package/firedrill/notion-workspace-read.drill.json +258 -0
- package/firedrill/notion-write-unavailable.drill.json +161 -0
- package/firedrill/rate-limited.scenario.json +11 -0
- package/firedrill/tools/notion/app/assets/ATTRIBUTION.md +35 -0
- package/firedrill/tools/notion/app/assets/fonts/OFL.txt +93 -0
- package/firedrill/tools/notion/app/assets/fonts/inter-latin.woff2 +0 -0
- package/firedrill/tools/notion/app/assets/notion-wordmark.svg +1 -0
- package/firedrill/tools/notion/app/assets/notion.svg +1 -0
- package/firedrill/tools/notion/app/site/app.js +797 -0
- package/firedrill/tools/notion/app/site/assets/fonts/inter-latin.woff2 +0 -0
- package/firedrill/tools/notion/app/site/assets/notion-wordmark.svg +1 -0
- package/firedrill/tools/notion/app/site/assets/notion.svg +1 -0
- package/firedrill/tools/notion/app/site/chrome.js +104 -0
- package/firedrill/tools/notion/app/site/cover-picker.js +83 -0
- package/firedrill/tools/notion/app/site/database.js +648 -0
- package/firedrill/tools/notion/app/site/editors.js +320 -0
- package/firedrill/tools/notion/app/site/format-bar.js +97 -0
- package/firedrill/tools/notion/app/site/icons.js +131 -0
- package/firedrill/tools/notion/app/site/index.html +125 -0
- package/firedrill/tools/notion/app/site/page.js +826 -0
- package/firedrill/tools/notion/app/site/rich.js +159 -0
- package/firedrill/tools/notion/app/site/state.js +170 -0
- package/firedrill/tools/notion/app/site/styles.css +826 -0
- package/firedrill/tools/notion/app/site/ui.js +418 -0
- package/firedrill/tools/notion/behavior.mjs +1123 -0
- package/firedrill/tools/notion/lib/blocks.mjs +371 -0
- package/firedrill/tools/notion/lib/identity.mjs +123 -0
- package/firedrill/tools/notion/lib/ids.mjs +63 -0
- package/firedrill/tools/notion/lib/json-depth.mjs +26 -0
- package/firedrill/tools/notion/lib/markdown.mjs +381 -0
- package/firedrill/tools/notion/lib/properties.mjs +513 -0
- package/firedrill/tools/notion/lib/query.mjs +272 -0
- package/firedrill/tools/notion/lib/render.mjs +137 -0
- package/firedrill/tools/notion/lib/rich-text.mjs +134 -0
- package/firedrill/tools/notion/lib/size.mjs +44 -0
- package/firedrill/tools/notion/lib/state.mjs +192 -0
- package/firedrill/tools/notion/lib/wire.mjs +89 -0
- package/firedrill/tools/notion/notion.tool.json +9837 -0
- package/firedrill/update-lost.scenario.json +11 -0
- package/firedrill/world.json +7039 -0
- package/firedrill/write-unavailable.scenario.json +11 -0
- package/firedrill.json +5 -0
- package/package.json +63 -0
- package/starter.json +6482 -0
- package/test/conformance.mjs +1186 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "notion-page-authoring",
|
|
4
|
+
"title": "Author content: create a page with blocks, append after a sibling, update and delete blocks, edit through markdown, create and reshape a database",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "baseline",
|
|
7
|
+
"actorId": "member",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the page-authoring conformance flow against the synthetic Notion Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "pages-create-ok",
|
|
14
|
+
"kind": "operation.count",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "notion",
|
|
17
|
+
"operationId": "pages.create"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"ok"
|
|
21
|
+
],
|
|
22
|
+
"comparison": {
|
|
23
|
+
"operator": "greater_than_or_equal",
|
|
24
|
+
"value": 2
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "blocks-children-append-ok",
|
|
29
|
+
"kind": "operation.count",
|
|
30
|
+
"operation": {
|
|
31
|
+
"packageId": "notion",
|
|
32
|
+
"operationId": "blocks.children.append"
|
|
33
|
+
},
|
|
34
|
+
"outcomes": [
|
|
35
|
+
"ok"
|
|
36
|
+
],
|
|
37
|
+
"comparison": {
|
|
38
|
+
"operator": "greater_than_or_equal",
|
|
39
|
+
"value": 1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "blocks-update-ok",
|
|
44
|
+
"kind": "operation.count",
|
|
45
|
+
"operation": {
|
|
46
|
+
"packageId": "notion",
|
|
47
|
+
"operationId": "blocks.update"
|
|
48
|
+
},
|
|
49
|
+
"outcomes": [
|
|
50
|
+
"ok"
|
|
51
|
+
],
|
|
52
|
+
"comparison": {
|
|
53
|
+
"operator": "greater_than_or_equal",
|
|
54
|
+
"value": 3
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "blocks-delete-ok",
|
|
59
|
+
"kind": "operation.count",
|
|
60
|
+
"operation": {
|
|
61
|
+
"packageId": "notion",
|
|
62
|
+
"operationId": "blocks.delete"
|
|
63
|
+
},
|
|
64
|
+
"outcomes": [
|
|
65
|
+
"ok"
|
|
66
|
+
],
|
|
67
|
+
"comparison": {
|
|
68
|
+
"operator": "greater_than_or_equal",
|
|
69
|
+
"value": 1
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "pages-update-markdown-ok",
|
|
74
|
+
"kind": "operation.count",
|
|
75
|
+
"operation": {
|
|
76
|
+
"packageId": "notion",
|
|
77
|
+
"operationId": "pages.update-markdown"
|
|
78
|
+
},
|
|
79
|
+
"outcomes": [
|
|
80
|
+
"ok"
|
|
81
|
+
],
|
|
82
|
+
"comparison": {
|
|
83
|
+
"operator": "greater_than_or_equal",
|
|
84
|
+
"value": 3
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "pages-retrieve-markdown-ok",
|
|
89
|
+
"kind": "operation.count",
|
|
90
|
+
"operation": {
|
|
91
|
+
"packageId": "notion",
|
|
92
|
+
"operationId": "pages.retrieve-markdown"
|
|
93
|
+
},
|
|
94
|
+
"outcomes": [
|
|
95
|
+
"ok"
|
|
96
|
+
],
|
|
97
|
+
"comparison": {
|
|
98
|
+
"operator": "greater_than_or_equal",
|
|
99
|
+
"value": 2
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "databases-create-ok",
|
|
104
|
+
"kind": "operation.count",
|
|
105
|
+
"operation": {
|
|
106
|
+
"packageId": "notion",
|
|
107
|
+
"operationId": "databases.create"
|
|
108
|
+
},
|
|
109
|
+
"outcomes": [
|
|
110
|
+
"ok"
|
|
111
|
+
],
|
|
112
|
+
"comparison": {
|
|
113
|
+
"operator": "greater_than_or_equal",
|
|
114
|
+
"value": 1
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "data-sources-update-ok",
|
|
119
|
+
"kind": "operation.count",
|
|
120
|
+
"operation": {
|
|
121
|
+
"packageId": "notion",
|
|
122
|
+
"operationId": "data-sources.update"
|
|
123
|
+
},
|
|
124
|
+
"outcomes": [
|
|
125
|
+
"ok"
|
|
126
|
+
],
|
|
127
|
+
"comparison": {
|
|
128
|
+
"operator": "greater_than_or_equal",
|
|
129
|
+
"value": 3
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "data-sources-query-ok",
|
|
134
|
+
"kind": "operation.count",
|
|
135
|
+
"operation": {
|
|
136
|
+
"packageId": "notion",
|
|
137
|
+
"operationId": "data-sources.query"
|
|
138
|
+
},
|
|
139
|
+
"outcomes": [
|
|
140
|
+
"ok"
|
|
141
|
+
],
|
|
142
|
+
"comparison": {
|
|
143
|
+
"operator": "greater_than_or_equal",
|
|
144
|
+
"value": 1
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "append-validation-errors",
|
|
149
|
+
"kind": "operation.count",
|
|
150
|
+
"operation": {
|
|
151
|
+
"packageId": "notion",
|
|
152
|
+
"operationId": "blocks.children.append"
|
|
153
|
+
},
|
|
154
|
+
"outcomes": [
|
|
155
|
+
"tool_error"
|
|
156
|
+
],
|
|
157
|
+
"comparison": {
|
|
158
|
+
"operator": "greater_than_or_equal",
|
|
159
|
+
"value": 4
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "blocks-update-validation-errors",
|
|
164
|
+
"kind": "operation.count",
|
|
165
|
+
"operation": {
|
|
166
|
+
"packageId": "notion",
|
|
167
|
+
"operationId": "blocks.update"
|
|
168
|
+
},
|
|
169
|
+
"outcomes": [
|
|
170
|
+
"tool_error"
|
|
171
|
+
],
|
|
172
|
+
"comparison": {
|
|
173
|
+
"operator": "greater_than_or_equal",
|
|
174
|
+
"value": 1
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "markdown-validation-errors",
|
|
179
|
+
"kind": "operation.count",
|
|
180
|
+
"operation": {
|
|
181
|
+
"packageId": "notion",
|
|
182
|
+
"operationId": "pages.update-markdown"
|
|
183
|
+
},
|
|
184
|
+
"outcomes": [
|
|
185
|
+
"tool_error"
|
|
186
|
+
],
|
|
187
|
+
"comparison": {
|
|
188
|
+
"operator": "greater_than_or_equal",
|
|
189
|
+
"value": 2
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "schema-validation-errors",
|
|
194
|
+
"kind": "operation.count",
|
|
195
|
+
"operation": {
|
|
196
|
+
"packageId": "notion",
|
|
197
|
+
"operationId": "data-sources.update"
|
|
198
|
+
},
|
|
199
|
+
"outcomes": [
|
|
200
|
+
"tool_error"
|
|
201
|
+
],
|
|
202
|
+
"comparison": {
|
|
203
|
+
"operator": "greater_than_or_equal",
|
|
204
|
+
"value": 1
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "databases-plus-one",
|
|
209
|
+
"kind": "state.count",
|
|
210
|
+
"packageId": "notion",
|
|
211
|
+
"namespace": "databases",
|
|
212
|
+
"comparison": {
|
|
213
|
+
"operator": "equals",
|
|
214
|
+
"value": 4
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"id": "data-sources-plus-one",
|
|
219
|
+
"kind": "state.count",
|
|
220
|
+
"packageId": "notion",
|
|
221
|
+
"namespace": "data-sources",
|
|
222
|
+
"comparison": {
|
|
223
|
+
"operator": "equals",
|
|
224
|
+
"value": 4
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": "page-content-updated-events",
|
|
229
|
+
"kind": "event.count",
|
|
230
|
+
"event": {
|
|
231
|
+
"packageId": "notion",
|
|
232
|
+
"eventId": "page.content_updated"
|
|
233
|
+
},
|
|
234
|
+
"phase": "emitted",
|
|
235
|
+
"comparison": {
|
|
236
|
+
"operator": "greater_than_or_equal",
|
|
237
|
+
"value": 6
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"id": "page-created-events",
|
|
242
|
+
"kind": "event.count",
|
|
243
|
+
"event": {
|
|
244
|
+
"packageId": "notion",
|
|
245
|
+
"eventId": "page.created"
|
|
246
|
+
},
|
|
247
|
+
"phase": "emitted",
|
|
248
|
+
"comparison": {
|
|
249
|
+
"operator": "equals",
|
|
250
|
+
"value": 3
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "notion-rate-limited",
|
|
4
|
+
"title": "search, query, block children and page retrieval answer 429 rate_limited with Retry-After while other reads keep working",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "rate-limited",
|
|
7
|
+
"actorId": "member",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the rate-limited conformance flow against the synthetic Notion Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "search-error",
|
|
14
|
+
"kind": "operation.count",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "notion",
|
|
17
|
+
"operationId": "search"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"tool_error"
|
|
21
|
+
],
|
|
22
|
+
"comparison": {
|
|
23
|
+
"operator": "equals",
|
|
24
|
+
"value": 2
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "data-sources-query-error",
|
|
29
|
+
"kind": "operation.count",
|
|
30
|
+
"operation": {
|
|
31
|
+
"packageId": "notion",
|
|
32
|
+
"operationId": "data-sources.query"
|
|
33
|
+
},
|
|
34
|
+
"outcomes": [
|
|
35
|
+
"tool_error"
|
|
36
|
+
],
|
|
37
|
+
"comparison": {
|
|
38
|
+
"operator": "equals",
|
|
39
|
+
"value": 1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "blocks-children-list-error",
|
|
44
|
+
"kind": "operation.count",
|
|
45
|
+
"operation": {
|
|
46
|
+
"packageId": "notion",
|
|
47
|
+
"operationId": "blocks.children.list"
|
|
48
|
+
},
|
|
49
|
+
"outcomes": [
|
|
50
|
+
"tool_error"
|
|
51
|
+
],
|
|
52
|
+
"comparison": {
|
|
53
|
+
"operator": "equals",
|
|
54
|
+
"value": 1
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "pages-retrieve-error",
|
|
59
|
+
"kind": "operation.count",
|
|
60
|
+
"operation": {
|
|
61
|
+
"packageId": "notion",
|
|
62
|
+
"operationId": "pages.retrieve"
|
|
63
|
+
},
|
|
64
|
+
"outcomes": [
|
|
65
|
+
"tool_error"
|
|
66
|
+
],
|
|
67
|
+
"comparison": {
|
|
68
|
+
"operator": "equals",
|
|
69
|
+
"value": 1
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "search-never-ok",
|
|
74
|
+
"kind": "operation.count",
|
|
75
|
+
"operation": {
|
|
76
|
+
"packageId": "notion",
|
|
77
|
+
"operationId": "search"
|
|
78
|
+
},
|
|
79
|
+
"outcomes": [
|
|
80
|
+
"ok"
|
|
81
|
+
],
|
|
82
|
+
"comparison": {
|
|
83
|
+
"operator": "equals",
|
|
84
|
+
"value": 0
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "users-me-ok",
|
|
89
|
+
"kind": "operation.count",
|
|
90
|
+
"operation": {
|
|
91
|
+
"packageId": "notion",
|
|
92
|
+
"operationId": "users.me"
|
|
93
|
+
},
|
|
94
|
+
"outcomes": [
|
|
95
|
+
"ok"
|
|
96
|
+
],
|
|
97
|
+
"comparison": {
|
|
98
|
+
"operator": "greater_than_or_equal",
|
|
99
|
+
"value": 1
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "databases-retrieve-ok",
|
|
104
|
+
"kind": "operation.count",
|
|
105
|
+
"operation": {
|
|
106
|
+
"packageId": "notion",
|
|
107
|
+
"operationId": "databases.retrieve"
|
|
108
|
+
},
|
|
109
|
+
"outcomes": [
|
|
110
|
+
"ok"
|
|
111
|
+
],
|
|
112
|
+
"comparison": {
|
|
113
|
+
"operator": "greater_than_or_equal",
|
|
114
|
+
"value": 1
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "notion-schema-growth",
|
|
4
|
+
"title": "Data source schema growth is bounded by what it adds to every page: refused at limit + 1, accepted at the limit, rows stay readable",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "baseline",
|
|
7
|
+
"actorId": "member",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the schema-growth conformance flow against the synthetic Notion Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "schema-growth-refused",
|
|
14
|
+
"kind": "operation.count",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "notion",
|
|
17
|
+
"operationId": "data-sources.update"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"tool_error"
|
|
21
|
+
],
|
|
22
|
+
"comparison": {
|
|
23
|
+
"operator": "equals",
|
|
24
|
+
"value": 3
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "schema-growth-accepted-up-to-limit",
|
|
29
|
+
"kind": "operation.count",
|
|
30
|
+
"operation": {
|
|
31
|
+
"packageId": "notion",
|
|
32
|
+
"operationId": "data-sources.update"
|
|
33
|
+
},
|
|
34
|
+
"outcomes": [
|
|
35
|
+
"ok"
|
|
36
|
+
],
|
|
37
|
+
"comparison": {
|
|
38
|
+
"operator": "greater_than_or_equal",
|
|
39
|
+
"value": 2
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "database-created",
|
|
44
|
+
"kind": "operation.count",
|
|
45
|
+
"operation": {
|
|
46
|
+
"packageId": "notion",
|
|
47
|
+
"operationId": "databases.create"
|
|
48
|
+
},
|
|
49
|
+
"outcomes": [
|
|
50
|
+
"ok"
|
|
51
|
+
],
|
|
52
|
+
"comparison": {
|
|
53
|
+
"operator": "equals",
|
|
54
|
+
"value": 1
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "row-readable-after-growth",
|
|
59
|
+
"kind": "operation.count",
|
|
60
|
+
"operation": {
|
|
61
|
+
"packageId": "notion",
|
|
62
|
+
"operationId": "pages.retrieve"
|
|
63
|
+
},
|
|
64
|
+
"outcomes": [
|
|
65
|
+
"ok"
|
|
66
|
+
],
|
|
67
|
+
"comparison": {
|
|
68
|
+
"operator": "greater_than_or_equal",
|
|
69
|
+
"value": 1
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "data-source-queryable-after-growth",
|
|
74
|
+
"kind": "operation.count",
|
|
75
|
+
"operation": {
|
|
76
|
+
"packageId": "notion",
|
|
77
|
+
"operationId": "data-sources.query"
|
|
78
|
+
},
|
|
79
|
+
"outcomes": [
|
|
80
|
+
"ok"
|
|
81
|
+
],
|
|
82
|
+
"comparison": {
|
|
83
|
+
"operator": "greater_than_or_equal",
|
|
84
|
+
"value": 1
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "notion-scope-agent-only",
|
|
4
|
+
"title": "A fresh-install actor without provider attributes falls back to the first integration and its bot",
|
|
5
|
+
"targetId": "conformance-agent",
|
|
6
|
+
"scenarioId": "baseline",
|
|
7
|
+
"actorId": "agent-only",
|
|
8
|
+
"task": {
|
|
9
|
+
"instruction": "Run the scope-agent-only conformance flow against the synthetic Notion Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "users-me-ok",
|
|
14
|
+
"kind": "operation.count",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "notion",
|
|
17
|
+
"operationId": "users.me"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"ok"
|
|
21
|
+
],
|
|
22
|
+
"comparison": {
|
|
23
|
+
"operator": "greater_than_or_equal",
|
|
24
|
+
"value": 1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "workspace-context-ok",
|
|
29
|
+
"kind": "operation.count",
|
|
30
|
+
"operation": {
|
|
31
|
+
"packageId": "notion",
|
|
32
|
+
"operationId": "workspace.context"
|
|
33
|
+
},
|
|
34
|
+
"outcomes": [
|
|
35
|
+
"ok"
|
|
36
|
+
],
|
|
37
|
+
"comparison": {
|
|
38
|
+
"operator": "greater_than_or_equal",
|
|
39
|
+
"value": 1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "search-ok",
|
|
44
|
+
"kind": "operation.count",
|
|
45
|
+
"operation": {
|
|
46
|
+
"packageId": "notion",
|
|
47
|
+
"operationId": "search"
|
|
48
|
+
},
|
|
49
|
+
"outcomes": [
|
|
50
|
+
"ok"
|
|
51
|
+
],
|
|
52
|
+
"comparison": {
|
|
53
|
+
"operator": "greater_than_or_equal",
|
|
54
|
+
"value": 1
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "comments-create-ok",
|
|
59
|
+
"kind": "operation.count",
|
|
60
|
+
"operation": {
|
|
61
|
+
"packageId": "notion",
|
|
62
|
+
"operationId": "comments.create"
|
|
63
|
+
},
|
|
64
|
+
"outcomes": [
|
|
65
|
+
"ok"
|
|
66
|
+
],
|
|
67
|
+
"comparison": {
|
|
68
|
+
"operator": "greater_than_or_equal",
|
|
69
|
+
"value": 1
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "pages-create-ok",
|
|
74
|
+
"kind": "operation.count",
|
|
75
|
+
"operation": {
|
|
76
|
+
"packageId": "notion",
|
|
77
|
+
"operationId": "pages.create"
|
|
78
|
+
},
|
|
79
|
+
"outcomes": [
|
|
80
|
+
"ok"
|
|
81
|
+
],
|
|
82
|
+
"comparison": {
|
|
83
|
+
"operator": "greater_than_or_equal",
|
|
84
|
+
"value": 1
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "comment-attributed-to-bot",
|
|
89
|
+
"kind": "state.value",
|
|
90
|
+
"packageId": "notion",
|
|
91
|
+
"namespace": "comments",
|
|
92
|
+
"rowId": "fd000000-0000-4000-8000-000600001000",
|
|
93
|
+
"path": [
|
|
94
|
+
"created_by",
|
|
95
|
+
"id"
|
|
96
|
+
],
|
|
97
|
+
"comparison": {
|
|
98
|
+
"operator": "equals",
|
|
99
|
+
"value": "fd000000-0000-4000-8000-000100000006"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "page-created-by-bot",
|
|
104
|
+
"kind": "state.value",
|
|
105
|
+
"packageId": "notion",
|
|
106
|
+
"namespace": "pages",
|
|
107
|
+
"rowId": "fd000000-0000-4000-8000-000200001002",
|
|
108
|
+
"path": [
|
|
109
|
+
"created_by",
|
|
110
|
+
"id"
|
|
111
|
+
],
|
|
112
|
+
"comparison": {
|
|
113
|
+
"operator": "equals",
|
|
114
|
+
"value": "fd000000-0000-4000-8000-000100000006"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "comment-created-events",
|
|
119
|
+
"kind": "event.count",
|
|
120
|
+
"event": {
|
|
121
|
+
"packageId": "notion",
|
|
122
|
+
"eventId": "comment.created"
|
|
123
|
+
},
|
|
124
|
+
"phase": "emitted",
|
|
125
|
+
"comparison": {
|
|
126
|
+
"operator": "equals",
|
|
127
|
+
"value": 1
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "notion-scope-auditor",
|
|
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 scope-auditor conformance flow against the synthetic Notion Tool and fail loudly on any unexpected status, header or body."
|
|
10
|
+
},
|
|
11
|
+
"assertions": [
|
|
12
|
+
{
|
|
13
|
+
"id": "pages-retrieve-denied",
|
|
14
|
+
"kind": "operation.denied",
|
|
15
|
+
"operation": {
|
|
16
|
+
"packageId": "notion",
|
|
17
|
+
"operationId": "pages.retrieve"
|
|
18
|
+
},
|
|
19
|
+
"outcomes": [
|
|
20
|
+
"denied"
|
|
21
|
+
],
|
|
22
|
+
"attemptRequired": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "search-denied",
|
|
26
|
+
"kind": "operation.denied",
|
|
27
|
+
"operation": {
|
|
28
|
+
"packageId": "notion",
|
|
29
|
+
"operationId": "search"
|
|
30
|
+
},
|
|
31
|
+
"outcomes": [
|
|
32
|
+
"denied"
|
|
33
|
+
],
|
|
34
|
+
"attemptRequired": true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "pages-create-denied",
|
|
38
|
+
"kind": "operation.denied",
|
|
39
|
+
"operation": {
|
|
40
|
+
"packageId": "notion",
|
|
41
|
+
"operationId": "pages.create"
|
|
42
|
+
},
|
|
43
|
+
"outcomes": [
|
|
44
|
+
"denied"
|
|
45
|
+
],
|
|
46
|
+
"attemptRequired": true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "users-me-denied",
|
|
50
|
+
"kind": "operation.denied",
|
|
51
|
+
"operation": {
|
|
52
|
+
"packageId": "notion",
|
|
53
|
+
"operationId": "users.me"
|
|
54
|
+
},
|
|
55
|
+
"outcomes": [
|
|
56
|
+
"denied"
|
|
57
|
+
],
|
|
58
|
+
"attemptRequired": true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "pages-create-never-ok",
|
|
62
|
+
"kind": "operation.count",
|
|
63
|
+
"operation": {
|
|
64
|
+
"packageId": "notion",
|
|
65
|
+
"operationId": "pages.create"
|
|
66
|
+
},
|
|
67
|
+
"outcomes": [
|
|
68
|
+
"ok"
|
|
69
|
+
],
|
|
70
|
+
"comparison": {
|
|
71
|
+
"operator": "equals",
|
|
72
|
+
"value": 0
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "pages-unchanged",
|
|
77
|
+
"kind": "state.count",
|
|
78
|
+
"packageId": "notion",
|
|
79
|
+
"namespace": "pages",
|
|
80
|
+
"comparison": {
|
|
81
|
+
"operator": "equals",
|
|
82
|
+
"value": 28
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|