@bendyline/gilde 0.3.11 → 0.3.13
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/authoring/chat-models/spark-x2.6-4b-q4.json +121 -0
- package/data/chat-models/index.json +1 -1
- package/data/chat-models/raw-index.json +1 -1
- package/data/chat-models/sp/spark-x2.6-4b-q4/manifest.json +125 -0
- package/data/chat-models/sp/spark-x2.6-4b-q4/versions/1.0.0/manifest.json +15 -0
- package/data/connector-types/ai/airtable-records/art.json +17 -0
- package/data/connector-types/ai/airtable-records/logo.webp +0 -0
- package/data/connector-types/ai/airtable-records/manifest.json +2 -1
- package/data/connector-types/az/azure-monitor-logs/art.json +17 -0
- package/data/connector-types/az/azure-monitor-logs/logo.webp +0 -0
- package/data/connector-types/az/azure-monitor-logs/manifest.json +2 -1
- package/data/connector-types/bl/bluesky-posts/art.json +17 -0
- package/data/connector-types/bl/bluesky-posts/logo.webp +0 -0
- package/data/connector-types/bl/bluesky-posts/manifest.json +2 -1
- package/data/connector-types/ca/calendar-google/art.json +17 -0
- package/data/connector-types/ca/calendar-google/logo.webp +0 -0
- package/data/connector-types/ca/calendar-google/manifest.json +2 -1
- package/data/connector-types/ca/calendar-google/versions/1.0.2/manifest.json +67 -0
- package/data/connector-types/ca/calendar-microsoft/art.json +17 -0
- package/data/connector-types/ca/calendar-microsoft/logo.webp +0 -0
- package/data/connector-types/ca/calendar-microsoft/manifest.json +2 -1
- package/data/connector-types/ca/camera-local/art.json +17 -0
- package/data/connector-types/ca/camera-local/logo.webp +0 -0
- package/data/connector-types/ca/camera-local/manifest.json +2 -1
- package/data/connector-types/fi/files-google-drive/art.json +17 -0
- package/data/connector-types/fi/files-google-drive/logo.webp +0 -0
- package/data/connector-types/fi/files-google-drive/manifest.json +2 -1
- package/data/connector-types/fi/files-onedrive/art.json +17 -0
- package/data/connector-types/fi/files-onedrive/logo.webp +0 -0
- package/data/connector-types/fi/files-onedrive/manifest.json +2 -1
- package/data/connector-types/fi/files-sharepoint/art.json +17 -0
- package/data/connector-types/fi/files-sharepoint/logo.webp +0 -0
- package/data/connector-types/fi/files-sharepoint/manifest.json +2 -1
- package/data/connector-types/gi/github-issues/art.json +17 -0
- package/data/connector-types/gi/github-issues/logo.webp +0 -0
- package/data/connector-types/gi/github-issues/manifest.json +2 -1
- package/data/connector-types/gi/github-pulls/art.json +17 -0
- package/data/connector-types/gi/github-pulls/logo.webp +0 -0
- package/data/connector-types/gi/github-pulls/manifest.json +2 -1
- package/data/connector-types/gi/github-releases/art.json +17 -0
- package/data/connector-types/gi/github-releases/logo.webp +0 -0
- package/data/connector-types/gi/github-releases/manifest.json +2 -1
- package/data/connector-types/gi/github-wiki/art.json +17 -0
- package/data/connector-types/gi/github-wiki/logo.webp +0 -0
- package/data/connector-types/gi/github-wiki/manifest.json +2 -1
- package/data/connector-types/ht/http-json-rows/art.json +17 -0
- package/data/connector-types/ht/http-json-rows/logo.webp +0 -0
- package/data/connector-types/ht/http-json-rows/manifest.json +2 -1
- package/data/connector-types/in/instagram-media/art.json +17 -0
- package/data/connector-types/in/instagram-media/logo.webp +0 -0
- package/data/connector-types/in/instagram-media/manifest.json +2 -1
- package/data/connector-types/index.json +1 -1
- package/data/connector-types/li/linear-issues/art.json +17 -0
- package/data/connector-types/li/linear-issues/logo.webp +0 -0
- package/data/connector-types/li/linear-issues/manifest.json +2 -1
- package/data/connector-types/li/linkedin-posts/art.json +17 -0
- package/data/connector-types/li/linkedin-posts/logo.webp +0 -0
- package/data/connector-types/li/linkedin-posts/manifest.json +2 -1
- package/data/connector-types/ma/mail-gmail/art.json +17 -0
- package/data/connector-types/ma/mail-gmail/logo.webp +0 -0
- package/data/connector-types/ma/mail-gmail/manifest.json +2 -1
- package/data/connector-types/ma/mail-imap/art.json +17 -0
- package/data/connector-types/ma/mail-imap/logo.webp +0 -0
- package/data/connector-types/ma/mail-imap/manifest.json +2 -1
- package/data/connector-types/ma/mail-microsoft365/art.json +17 -0
- package/data/connector-types/ma/mail-microsoft365/logo.webp +0 -0
- package/data/connector-types/ma/mail-microsoft365/manifest.json +2 -1
- package/data/connector-types/ma/mail-outlook/art.json +17 -0
- package/data/connector-types/ma/mail-outlook/logo.webp +0 -0
- package/data/connector-types/ma/mail-outlook/manifest.json +2 -1
- package/data/connector-types/raw-index.json +1 -1
- package/data/connector-types/rs/rss-feed/art.json +17 -0
- package/data/connector-types/rs/rss-feed/logo.webp +0 -0
- package/data/connector-types/rs/rss-feed/manifest.json +2 -1
- package/data/connector-types/we/website/art.json +17 -0
- package/data/connector-types/we/website/logo.webp +0 -0
- package/data/connector-types/we/website/manifest.json +3 -2
- package/data/connector-types/we/website/versions/1.0.0/manifest.json +1 -1
- package/data/connector-types/x-/x-posts/art.json +17 -0
- package/data/connector-types/x-/x-posts/logo.webp +0 -0
- package/data/connector-types/x-/x-posts/manifest.json +2 -1
- package/data/connector-types/yo/youtube-videos/art.json +17 -0
- package/data/connector-types/yo/youtube-videos/logo.webp +0 -0
- package/data/connector-types/yo/youtube-videos/manifest.json +2 -1
- package/data/craftbook-templates/index.json +1 -1
- package/data/craftbook-templates/pu/pull-request-review/versions/1.9.18/craftbook.json +611 -0
- package/data/craftbook-templates/pu/pull-request-review/versions/1.9.18/test.json +156 -0
- package/data/craftbook-templates/raw-index.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "pull-request-review",
|
|
3
|
+
"name": "Pull Request Review",
|
|
4
|
+
"description": "Review a GitHub pull request from a complete, launch-time local mirror rather than a context-sized API response. The runtime resolves the PR, materializes one untruncated patch record per changed path, and publishes adaptive bounded batches plus compact scope metadata. Each child reviewer receives one exact batch. Service-observed full-read evidence and per-file observations gate its progress; the runtime publishes coverage shards, and a merge gate holds the run to the whole corpus. The final verdict stays local and cites verified code and checks.",
|
|
5
|
+
"basedOn": {
|
|
6
|
+
"name": "Gezel Code Review",
|
|
7
|
+
"url": "https://github.com/bendyline/gezel"
|
|
8
|
+
},
|
|
9
|
+
"entryStepId": "scope",
|
|
10
|
+
"triggers": [
|
|
11
|
+
"review this pr",
|
|
12
|
+
"review the current pr",
|
|
13
|
+
"review this pull request",
|
|
14
|
+
"pr review",
|
|
15
|
+
"review the github pull request"
|
|
16
|
+
],
|
|
17
|
+
"requirements": [
|
|
18
|
+
{
|
|
19
|
+
"kind": "github"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"toolsets": [
|
|
23
|
+
{
|
|
24
|
+
"toolsetId": "github",
|
|
25
|
+
"optional": true,
|
|
26
|
+
"autoAllow": true,
|
|
27
|
+
"reason": "read CI/check status and perform targeted PR verification"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"connectors": [
|
|
31
|
+
{
|
|
32
|
+
"typeId": "github-pulls",
|
|
33
|
+
"reason": "materialize the selected pull request as a complete, chunk-readable local corpus"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"paramSchema": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"workPath": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "Working folder",
|
|
42
|
+
"description": "Per-task working folder in the artifacts drawer. Defaults to this task's own folder so runs never collide; override with a stable name when you deliberately want runs to share files.",
|
|
43
|
+
"default": "{{task.dir}}"
|
|
44
|
+
},
|
|
45
|
+
"number": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"title": "Pull request number",
|
|
48
|
+
"description": "Optional PR number. Leave blank to use the open PR whose head matches the project's checked-out branch."
|
|
49
|
+
},
|
|
50
|
+
"focus": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"title": "Review focus",
|
|
53
|
+
"default": "general correctness",
|
|
54
|
+
"description": "Optional area to emphasize, e.g. security, performance, or tests."
|
|
55
|
+
},
|
|
56
|
+
"intensity": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"title": "Intensity",
|
|
59
|
+
"enum": [
|
|
60
|
+
"low",
|
|
61
|
+
"medium",
|
|
62
|
+
"high"
|
|
63
|
+
],
|
|
64
|
+
"default": "medium",
|
|
65
|
+
"squisq": {
|
|
66
|
+
"control": "segmented"
|
|
67
|
+
},
|
|
68
|
+
"description": "How deep to go on each changed-file batch. Coverage remains complete at every intensity."
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"steps": [
|
|
73
|
+
{
|
|
74
|
+
"id": "scope",
|
|
75
|
+
"name": "Map the pull request corpus",
|
|
76
|
+
"description": "Read the launch-time PR overview and compact runtime scope evidence, capture CI/check status, summarize generated files without a reviewer, and let the gate verify complete fanout batches mechanically.",
|
|
77
|
+
"prompt": "The runtime publishes complete PR batches and a compact scope summary at step entry, then advances automatically once the full-corpus batch gate approves. If this step is handed to you, deterministic setup or the gate failed. Read the named task diagnostic and {{workPath}}/pr-review/scope-data.json; never invent, rewrite, or truncate the manifest or batches. Ask for help if the source PR snapshot or runtime script is unavailable. Do not edit source or post to GitHub.",
|
|
78
|
+
"suggestedRole": "reviewer",
|
|
79
|
+
"toolPolicy": {
|
|
80
|
+
"disallowBuiltinToolsets": [
|
|
81
|
+
"ai-apps",
|
|
82
|
+
"archives",
|
|
83
|
+
"audio",
|
|
84
|
+
"browser-automation",
|
|
85
|
+
"craftbooks",
|
|
86
|
+
"data-tables",
|
|
87
|
+
"entity-intel",
|
|
88
|
+
"image-intel",
|
|
89
|
+
"images",
|
|
90
|
+
"role-delegation",
|
|
91
|
+
"role-delegation-escalation",
|
|
92
|
+
"security-intel",
|
|
93
|
+
"team-management",
|
|
94
|
+
"videos",
|
|
95
|
+
"web",
|
|
96
|
+
"workspace-fs-write"
|
|
97
|
+
],
|
|
98
|
+
"disallowToolsets": [
|
|
99
|
+
"@playwright/mcp"
|
|
100
|
+
],
|
|
101
|
+
"outputMedium": "task-note"
|
|
102
|
+
},
|
|
103
|
+
"onEnter": [
|
|
104
|
+
{
|
|
105
|
+
"name": "publishCorpusBatches",
|
|
106
|
+
"scope": "standard",
|
|
107
|
+
"inputs": {
|
|
108
|
+
"corpusDir": "{{corpusScope}}",
|
|
109
|
+
"outFile": "{{workPath}}/pr-review/batches.json",
|
|
110
|
+
"reviewOutFile": "{{workPath}}/pr-review/review-batches.json"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "publishGeneratedFileObservations",
|
|
115
|
+
"scope": "standard",
|
|
116
|
+
"inputs": {
|
|
117
|
+
"batchesFile": "{{workPath}}/pr-review/batches.json",
|
|
118
|
+
"shardDir": "{{workPath}}/pr-review"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "summarizePullRequestCorpus",
|
|
123
|
+
"scope": "standard",
|
|
124
|
+
"inputs": {
|
|
125
|
+
"manifestFile": "{{corpusScope}}/attachments/001/pr-{{number}}-files.json",
|
|
126
|
+
"batchesFile": "{{workPath}}/pr-review/batches.json",
|
|
127
|
+
"outFile": "{{workPath}}/pr-review/scope-data.json"
|
|
128
|
+
},
|
|
129
|
+
"autoAdvanceOnSuccess": true
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"advanceWhen": {
|
|
133
|
+
"file": "{{workPath}}/pr-review/batches.json",
|
|
134
|
+
"minBytes": 2,
|
|
135
|
+
"sniff": "json-valid",
|
|
136
|
+
"artifact": true
|
|
137
|
+
},
|
|
138
|
+
"gate": {
|
|
139
|
+
"at": "completion",
|
|
140
|
+
"checks": [
|
|
141
|
+
{
|
|
142
|
+
"kind": "corpusBatches",
|
|
143
|
+
"file": "{{workPath}}/pr-review/batches.json",
|
|
144
|
+
"corpusDir": "{{corpusScope}}",
|
|
145
|
+
"artifact": true
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"onReject": "scope",
|
|
149
|
+
"maxAttempts": 3
|
|
150
|
+
},
|
|
151
|
+
"next": "scan"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "scan",
|
|
155
|
+
"name": "Fan the batches out to the review crew",
|
|
156
|
+
"description": "Spawn one child reviewer per published batch. The runtime performs the fanout with no model turn; the crew is the work.",
|
|
157
|
+
"prompt": "The runtime spawns one child reviewer per entry in `{{workPath}}/pr-review/review-batches.json`, each in its own session holding only that batch's records. No turn is needed here.",
|
|
158
|
+
"suggestedRole": "reviewer",
|
|
159
|
+
"toolPolicy": {
|
|
160
|
+
"disallowBuiltinToolsets": [
|
|
161
|
+
"ai-apps",
|
|
162
|
+
"archives",
|
|
163
|
+
"artifacts",
|
|
164
|
+
"audio",
|
|
165
|
+
"browser-automation",
|
|
166
|
+
"code-execution",
|
|
167
|
+
"craftbooks",
|
|
168
|
+
"data-tables",
|
|
169
|
+
"entity-intel",
|
|
170
|
+
"image-intel",
|
|
171
|
+
"images",
|
|
172
|
+
"role-delegation",
|
|
173
|
+
"role-delegation-escalation",
|
|
174
|
+
"security-intel",
|
|
175
|
+
"team-management",
|
|
176
|
+
"videos",
|
|
177
|
+
"web",
|
|
178
|
+
"workspace-fs-write"
|
|
179
|
+
],
|
|
180
|
+
"disallowToolsets": [
|
|
181
|
+
"@playwright/mcp"
|
|
182
|
+
],
|
|
183
|
+
"outputMedium": "none"
|
|
184
|
+
},
|
|
185
|
+
"advanceWhen": {
|
|
186
|
+
"file": "{{workPath}}/pr-review/fanout.md",
|
|
187
|
+
"minBytes": 1,
|
|
188
|
+
"sniff": "nonempty",
|
|
189
|
+
"artifact": true
|
|
190
|
+
},
|
|
191
|
+
"next": "collect",
|
|
192
|
+
"spawnFanout": true
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "collect",
|
|
196
|
+
"name": "Merge the batch ledgers",
|
|
197
|
+
"description": "Wait for the crew while the runtime deterministically rebuilds the run-wide ledger from exact per-batch coverage shards, then prove both corpus completeness and shard provenance.",
|
|
198
|
+
"prompt": "The runtime has rebuilt `{{workPath}}/pr-review-coverage.json` from every valid `coverage-N.json` shard currently on disk. Do not write or edit that ledger yourself — it is deliberately runtime-owned so a large pull request never has to pass hundreds of exact paths through one model tool call.\n\nCall `advance_task_step` now. The gate will compare the ledger against the complete connector corpus and independently prove that it is exactly the union of one valid shard per published batch. If reviewers are still working, it will reject and name the missing batches; on the fresh activation the runtime will rebuild the ledger again. Do not review files yourself or add paths to close the gap. A batch that remains stuck belongs in a task note, not a fabricated coverage claim.\n\nThe ledger and shards live in the project's artifacts drawer; the shipped workspace stays untouched.",
|
|
199
|
+
"suggestedRole": "reviewer",
|
|
200
|
+
"toolPolicy": {
|
|
201
|
+
"disallowBuiltinToolsets": [
|
|
202
|
+
"ai-apps",
|
|
203
|
+
"archives",
|
|
204
|
+
"audio",
|
|
205
|
+
"browser-automation",
|
|
206
|
+
"craftbooks",
|
|
207
|
+
"data-tables",
|
|
208
|
+
"entity-intel",
|
|
209
|
+
"image-intel",
|
|
210
|
+
"images",
|
|
211
|
+
"role-delegation",
|
|
212
|
+
"role-delegation-escalation",
|
|
213
|
+
"security-intel",
|
|
214
|
+
"team-management",
|
|
215
|
+
"videos",
|
|
216
|
+
"web",
|
|
217
|
+
"workspace-fs-write"
|
|
218
|
+
],
|
|
219
|
+
"disallowToolsets": [
|
|
220
|
+
"@playwright/mcp"
|
|
221
|
+
],
|
|
222
|
+
"outputMedium": "none"
|
|
223
|
+
},
|
|
224
|
+
"onEnter": [
|
|
225
|
+
{
|
|
226
|
+
"name": "mergeCorpusCoverage",
|
|
227
|
+
"scope": "standard",
|
|
228
|
+
"inputs": {
|
|
229
|
+
"batchesFile": "{{workPath}}/pr-review/batches.json",
|
|
230
|
+
"shardDir": "{{workPath}}/pr-review",
|
|
231
|
+
"outFile": "{{workPath}}/pr-review-coverage.json",
|
|
232
|
+
"pullRequest": "{{number}}"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"advanceWhen": {
|
|
237
|
+
"file": "{{workPath}}/pr-review-coverage.json",
|
|
238
|
+
"minBytes": 2,
|
|
239
|
+
"sniff": "json-valid",
|
|
240
|
+
"artifact": true
|
|
241
|
+
},
|
|
242
|
+
"gate": {
|
|
243
|
+
"at": "completion",
|
|
244
|
+
"checks": [
|
|
245
|
+
{
|
|
246
|
+
"kind": "corpusCoverage",
|
|
247
|
+
"file": "{{workPath}}/pr-review-coverage.json",
|
|
248
|
+
"corpusDir": "{{corpusScope}}",
|
|
249
|
+
"artifact": true
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"scripts": [
|
|
253
|
+
{
|
|
254
|
+
"name": "checkCorpusCoverageProvenance",
|
|
255
|
+
"scope": "standard",
|
|
256
|
+
"inputs": {
|
|
257
|
+
"batchesFile": "{{workPath}}/pr-review/batches.json",
|
|
258
|
+
"shardDir": "{{workPath}}/pr-review",
|
|
259
|
+
"ledgerFile": "{{workPath}}/pr-review-coverage.json",
|
|
260
|
+
"pullRequest": "{{number}}"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"onReject": "collect",
|
|
265
|
+
"maxAttempts": 6
|
|
266
|
+
},
|
|
267
|
+
"next": "report"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"id": "report",
|
|
271
|
+
"name": "Synthesize the review",
|
|
272
|
+
"description": "Synthesize every batch's observations into a cited report, re-verifying cross-file claims and keeping CI status distinct from code-review judgment.",
|
|
273
|
+
"prompt": "The coverage gate has proved that every changed path in PR #{{number}} was reviewed. At step entry, the runtime read EVERY exact observations-N.md shard from the published batch array and wrote the compact artifact `{{workPath}}/pr-review/synthesis-data.json`. Read `{{workPath}}/pr-review/scope-data.json`, the mirrored PR overview record, `{{workPath}}/pr-review-coverage.json`, and `{{workPath}}/pr-review/synthesis-data.json` with read_artifact. Do not recursively list or reread all shards: the deterministic index names every batch, supplies a bounded severity-ranked `shortlist` of proved shard findings, and carries every structured cross-file question in `verificationCandidates`. Work only from those two channels; `omittedActionable` is lower-priority triage metadata, not an instruction to reopen every shard. If a shortlisted candidate has unknown severity, open THAT exact observations file for detail; never synthesize from a subset.\n\nThe script has already removed likely non-issues from the shortlist; do not reintroduce them from batch metadata. A Findings row is reserved for a confirmed defect introduced or materially worsened by this PR: never promote \"no issue\", \"no action needed\", \"acceptable as-is\", optional hardening, a TODO/comment request, an unverified hash/value, a \"needs central verification\" placeholder, a contingent claim, a style/consistency suggestion, or a hypothetical future schema change. Resolve every entry in `verificationCandidates` against the exact checkout target named by its `verify` field, and re-check every shortlisted critical or major candidate, using `stat` and narrowly ranged `read_file`/`read_files`. For source files over 8 KB always pass startLine/endLine; do not load a full giant source file. Verify definitions and route-level enforcement before alleging that an API or guard is missing, then drop unsupported claims. State a concrete trigger and definite failure mechanism as fact (\"When `publish` fails, the step still exits 0\"); if the best description still needs \"may\", \"might\", \"could\", \"possibly\", \"likely\", \"potentially\", \"consider\", or \"undefined behavior\", omit it. Reconcile duplicates and keep at most the eight strongest confirmed findings; checks, limitations, and follow-up ideas belong in the summary or are omitted, not in the findings table. If `github_check_status` is available, call it once when earlier CI was pending; otherwise mark CI unknown rather than browsing or guessing. Do not repeat an existing PR comment unless it still needs action and you say it was already raised.\n\nCite every finding as `path:line` using a changed path and the new-file line number its batch recorded (the number printed beside the patch line), and name its originating B- or V-number in Source. Promote a V-number only after checkout verification proves its concrete failure; silently drop disproved V candidates. Any critical or major finding requires `request-changes`; `approve` is valid only when the table has no critical or major rows. CI success is evidence that the checked revision compiled/tested as configured, but it does not erase logic findings. CI unknown/pending is not itself a code defect.\n\nWrite `{{workPath}}/pr-review.md` in ONE concise `write_artifact` call using exactly this skeleton:\n\n```\n# Pull Request Review — PR #{{number}}: <title>\n\n## Summary\n<2–6 sentences: what changes, overall risk, existing-comment coverage, and CI/check status. Say \"No findings.\" when there are none.>\n\nCoverage: <reviewed count>/<changed-file count> changed files across <batch count> batches.\n<When `generatedFiles` in scope-data.json is above 0, add: \"<generatedFiles> generated files (lockfiles, third-party notices) were summarized from their patches, not read line by line.\">\n\n## Findings\n| # | Severity | Source | File | Line | Finding | Recommendation |\n|---|----------|--------|------|------|---------|----------------|\n<zero to eight confirmed findings; Source is the exact B- or V-number such as B12-2 or V12-1; severities: critical, major, minor, nit. Keep the header when there are no findings.>\n\n## Verdict\nVerdict: approve\n<or> Verdict: request-changes\n<one sentence of rationale consistent with the highest severity above>\n```\n\nDo not modify source and do not call `github_pr_comment`; the report is local. If the gate rejects, repair the named gap and rewrite the whole report. After the one successful whole-file `write_artifact` call, STOP. The runtime validates the report and advances automatically; `advance_task_step` is intentionally unavailable.\n\nThese deliverables live in the project's artifacts drawer — write them with `write_artifact` and read them back with `read_artifact`; the shipped workspace stays untouched. A pull-request review never modifies project source.",
|
|
274
|
+
"suggestedRole": "reviewer",
|
|
275
|
+
"toolPolicy": {
|
|
276
|
+
"disallowBuiltinToolsets": [
|
|
277
|
+
"ai-apps",
|
|
278
|
+
"archives",
|
|
279
|
+
"audio",
|
|
280
|
+
"browser-automation",
|
|
281
|
+
"code-execution",
|
|
282
|
+
"craftbooks",
|
|
283
|
+
"data-tables",
|
|
284
|
+
"entity-intel",
|
|
285
|
+
"image-intel",
|
|
286
|
+
"images",
|
|
287
|
+
"role-delegation",
|
|
288
|
+
"role-delegation-escalation",
|
|
289
|
+
"security-intel",
|
|
290
|
+
"team-management",
|
|
291
|
+
"videos",
|
|
292
|
+
"web",
|
|
293
|
+
"workspace-fs-write"
|
|
294
|
+
],
|
|
295
|
+
"disallowToolsets": [
|
|
296
|
+
"@playwright/mcp"
|
|
297
|
+
],
|
|
298
|
+
"allowTools": [
|
|
299
|
+
"read_artifact",
|
|
300
|
+
"read_file",
|
|
301
|
+
"read_files",
|
|
302
|
+
"stat",
|
|
303
|
+
"github_check_status",
|
|
304
|
+
"write_artifact"
|
|
305
|
+
],
|
|
306
|
+
"outputMedium": "artifact"
|
|
307
|
+
},
|
|
308
|
+
"onEnter": [
|
|
309
|
+
{
|
|
310
|
+
"name": "summarizePullRequestObservations",
|
|
311
|
+
"scope": "standard",
|
|
312
|
+
"inputs": {
|
|
313
|
+
"batchesFile": "{{workPath}}/pr-review/batches.json",
|
|
314
|
+
"shardDir": "{{workPath}}/pr-review",
|
|
315
|
+
"outFile": "{{workPath}}/pr-review/synthesis-data.json"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"advanceWhen": {
|
|
320
|
+
"file": "{{workPath}}/pr-review.md",
|
|
321
|
+
"minBytes": 500,
|
|
322
|
+
"artifact": true,
|
|
323
|
+
"requireChange": false
|
|
324
|
+
},
|
|
325
|
+
"gate": {
|
|
326
|
+
"at": "completion",
|
|
327
|
+
"checks": [
|
|
328
|
+
{
|
|
329
|
+
"kind": "minBytes",
|
|
330
|
+
"file": "{{workPath}}/pr-review.md",
|
|
331
|
+
"bytes": 500,
|
|
332
|
+
"artifact": true
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"kind": "contains",
|
|
336
|
+
"file": "{{workPath}}/pr-review.md",
|
|
337
|
+
"pattern": "#\\s+Pull Request Review\\s+[—-]\\s+PR\\s+#{{number}}",
|
|
338
|
+
"label": "PR-numbered title",
|
|
339
|
+
"artifact": true
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"kind": "contains",
|
|
343
|
+
"file": "{{workPath}}/pr-review.md",
|
|
344
|
+
"pattern": "Coverage:\\s*\\d+\\s*/\\s*\\d+\\s+changed files",
|
|
345
|
+
"label": "coverage summary",
|
|
346
|
+
"artifact": true
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"kind": "contains",
|
|
350
|
+
"file": "{{workPath}}/pr-review.md",
|
|
351
|
+
"pattern": "##\\s+Summary[\\s\\S]*##\\s+Findings[\\s\\S]*##\\s+Verdict",
|
|
352
|
+
"label": "required sections",
|
|
353
|
+
"artifact": true
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"kind": "contains",
|
|
357
|
+
"file": "{{workPath}}/pr-review.md",
|
|
358
|
+
"pattern": "Verdict:\\s*(approve|request-changes)",
|
|
359
|
+
"label": "verdict line",
|
|
360
|
+
"artifact": true
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"kind": "notContains",
|
|
364
|
+
"file": "{{workPath}}/pr-review.md",
|
|
365
|
+
"pattern": "^\\|\\s*\\d+\\s*\\|[^\\n]*(?:no\\s+(?:defect|issue|finding|action\\s+needed)|acceptable\\s+as[- ]is|accept\\s+as[- ]is|worth\\s+noting|future\\s+optimization|pre[- ]existing|intentional\\s+limitation)",
|
|
366
|
+
"flags": "im",
|
|
367
|
+
"label": "findings contain only actionable defects",
|
|
368
|
+
"artifact": true
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"kind": "notContains",
|
|
372
|
+
"file": "{{workPath}}/pr-review.md",
|
|
373
|
+
"pattern": "^\\|\\s*\\d+\\s*\\|[^\\n]*(?:needs?\\s+(?:central\\s+)?verification|central\\s+verification|not\\s+audited|contingent|undefined\\s+behavior|risk\\s+(?:is\\s+)?low|\\bmay\\b|\\bmight\\b|\\bcould\\b|potential(?:ly)?|possibly|likely|consider(?:ing)?|(?:style|quoting|backslash)\\s+(?:inconsistency|concern)|standardiz(?:e|ing)|hardening\\s+suggestion|best\\s+addressed\\s+in\\s+follow[- ]ups)",
|
|
374
|
+
"flags": "im",
|
|
375
|
+
"label": "findings use verified definite mechanisms",
|
|
376
|
+
"artifact": true
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"kind": "notContains",
|
|
380
|
+
"file": "{{workPath}}/pr-review.md",
|
|
381
|
+
"pattern": "##\\s+Findings[\\s\\S]*\\|\\s*(?:critical|major)\\s*\\|[\\s\\S]*##\\s+Verdict[\\s\\S]*Verdict:\\s*approve",
|
|
382
|
+
"flags": "i",
|
|
383
|
+
"label": "verdict agrees with critical and major findings",
|
|
384
|
+
"artifact": true
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"kind": "contains",
|
|
388
|
+
"file": "{{workPath}}/pr-review.md",
|
|
389
|
+
"pattern": "\\|\\s*#\\s*\\|\\s*Severity\\s*\\|\\s*Source\\s*\\|\\s*File\\s*\\|\\s*Line\\s*\\|\\s*Finding\\s*\\|\\s*Recommendation\\s*\\|[\\s\\S]*\\|\\s*-+\\s*\\|",
|
|
390
|
+
"label": "findings table header (body rows are optional when there are no findings)",
|
|
391
|
+
"artifact": true
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
"onReject": "report",
|
|
395
|
+
"maxAttempts": 4
|
|
396
|
+
},
|
|
397
|
+
"next": "done"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"id": "done",
|
|
401
|
+
"name": "Deliver the verdict",
|
|
402
|
+
"description": "The complete-coverage report passed its gates. Summarize the verdict and point the user to the local evidence files.",
|
|
403
|
+
"prompt": "Read the artifacts `{{workPath}}/pr-review.md` and `{{workPath}}/pr-review-coverage.json` with `read_artifact`, then write one final task note with `write_task_note`: `PR #{{number}} — Verdict: <approve|request-changes> — N findings (a critical, b major, c minor, d nit) — coverage X/X` plus a one-paragraph summary. Tell the user the full local review is at `{{workPath}}/pr-review.md` in the project's artifacts drawer, the coverage ledger is beside it at `{{workPath}}/pr-review-coverage.json`, the per-batch observations are under `{{workPath}}/pr-review/`, and nothing was posted to GitHub. Then call `advance_task_step` to complete the task.",
|
|
404
|
+
"suggestedRole": "reviewer",
|
|
405
|
+
"toolPolicy": {
|
|
406
|
+
"allowTools": [
|
|
407
|
+
"read_artifact",
|
|
408
|
+
"write_task_note",
|
|
409
|
+
"advance_task_step"
|
|
410
|
+
],
|
|
411
|
+
"disallowBuiltinToolsets": [
|
|
412
|
+
"ai-apps",
|
|
413
|
+
"archives",
|
|
414
|
+
"audio",
|
|
415
|
+
"browser-automation",
|
|
416
|
+
"code-execution",
|
|
417
|
+
"craftbooks",
|
|
418
|
+
"data-tables",
|
|
419
|
+
"entity-intel",
|
|
420
|
+
"image-intel",
|
|
421
|
+
"images",
|
|
422
|
+
"role-delegation",
|
|
423
|
+
"role-delegation-escalation",
|
|
424
|
+
"security-intel",
|
|
425
|
+
"team-management",
|
|
426
|
+
"videos",
|
|
427
|
+
"web",
|
|
428
|
+
"workspace-fs-write"
|
|
429
|
+
],
|
|
430
|
+
"disallowToolsets": [
|
|
431
|
+
"@playwright/mcp"
|
|
432
|
+
],
|
|
433
|
+
"outputMedium": "task-note"
|
|
434
|
+
},
|
|
435
|
+
"gate": {
|
|
436
|
+
"at": "completion",
|
|
437
|
+
"scripts": [
|
|
438
|
+
{
|
|
439
|
+
"name": "checkTaskNoteContains",
|
|
440
|
+
"scope": "standard",
|
|
441
|
+
"inputs": {
|
|
442
|
+
"pattern": "PR\\s*#{{number}}\\s*[—-]\\s*Verdict:"
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
"onReject": "done",
|
|
447
|
+
"maxAttempts": 3
|
|
448
|
+
},
|
|
449
|
+
"terminal": true
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"spawn": {
|
|
453
|
+
"overFile": "{{workPath}}/pr-review/review-batches.json",
|
|
454
|
+
"overArtifact": true,
|
|
455
|
+
"entryStepId": "open-batch",
|
|
456
|
+
"steps": [
|
|
457
|
+
{
|
|
458
|
+
"id": "open-batch",
|
|
459
|
+
"name": "Open exact patch records for batch {{batchNumber}}",
|
|
460
|
+
"description": "Read every exact assigned artifact record before review writing is available; the service gate verifies full delivered line-range evidence.",
|
|
461
|
+
"prompt": "You own ONLY batch {{batchNumber}} of PR #{{number}}. Your assigned patch records are exactly:\n{{records}}\n\nFIRST call `read_artifacts({ paths: {{records}} })`. These are project artifacts, not checkout files. If a record is partial or tool output is truncated, a later gate-repair turn will tell you which consecutive unread line ranges to open with `read_artifact`. Do not search, list, grep, write observations, or read any other batch. After each successful read call, STOP: the runtime ends the provider turn, checks durable full-read evidence, and advances automatically once every exact record is complete. `advance_task_step` is intentionally unavailable; do not narrate, repeat the read, or request lifecycle advancement. Do not claim a read happened until the tool returned it.",
|
|
462
|
+
"suggestedRole": "reviewer",
|
|
463
|
+
"retrieval": {
|
|
464
|
+
"mode": "off"
|
|
465
|
+
},
|
|
466
|
+
"toolPolicy": {
|
|
467
|
+
"allowTools": [
|
|
468
|
+
"read_artifact",
|
|
469
|
+
"read_artifacts"
|
|
470
|
+
],
|
|
471
|
+
"disallowBuiltinToolsets": [
|
|
472
|
+
"ai-apps",
|
|
473
|
+
"archives",
|
|
474
|
+
"audio",
|
|
475
|
+
"browser-automation",
|
|
476
|
+
"code-execution",
|
|
477
|
+
"craftbooks",
|
|
478
|
+
"data-tables",
|
|
479
|
+
"doc-intel",
|
|
480
|
+
"documents",
|
|
481
|
+
"entity-intel",
|
|
482
|
+
"image-intel",
|
|
483
|
+
"images",
|
|
484
|
+
"role-delegation",
|
|
485
|
+
"role-delegation-escalation",
|
|
486
|
+
"tasks",
|
|
487
|
+
"team-management",
|
|
488
|
+
"videos",
|
|
489
|
+
"web",
|
|
490
|
+
"workspace-fs-read",
|
|
491
|
+
"workspace-fs-write"
|
|
492
|
+
],
|
|
493
|
+
"disallowTools": [
|
|
494
|
+
"list_artifacts",
|
|
495
|
+
"grep_artifact",
|
|
496
|
+
"read_doc_as_markdown",
|
|
497
|
+
"write_artifact"
|
|
498
|
+
],
|
|
499
|
+
"disallowToolsets": [
|
|
500
|
+
"@playwright/mcp"
|
|
501
|
+
],
|
|
502
|
+
"outputMedium": "none"
|
|
503
|
+
},
|
|
504
|
+
"gate": {
|
|
505
|
+
"at": "completion",
|
|
506
|
+
"checks": [
|
|
507
|
+
{
|
|
508
|
+
"kind": "corpusReadEvidence",
|
|
509
|
+
"batchesFile": "{{workPath}}/pr-review/batches.json",
|
|
510
|
+
"batchNumber": "{{batchNumber}}",
|
|
511
|
+
"artifact": true
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
"onReject": "open-batch",
|
|
515
|
+
"maxAttempts": 8
|
|
516
|
+
},
|
|
517
|
+
"next": "review-batch",
|
|
518
|
+
"promptProfile": "focused"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"id": "review-batch",
|
|
522
|
+
"name": "Review batch {{batchNumber}} of PR #{{number}}",
|
|
523
|
+
"description": "Continue from the verified open-batch read in the same task session, review one small slice of the pull-request corpus, checkpoint its observations, and let the runtime publish a coverage shard.",
|
|
524
|
+
"prompt": "You are continuing in the SAME task session that just completed open-batch for batch {{batchNumber}} of PR #{{number}} (changed-file ordinals {{start}}–{{end}}). The patch records it read are above in this conversation. Other batches belong to other reviewers. Do not edit source or post to GitHub.\n\nRecords you have fully read:\n{{records}}\n\nChanged paths in those records:\n{{paths}}\n\nLine numbers: every patch line is printed with its line number in the new file, then the diff marker. Cite a line as `path:NUMBER`, copying that printed number. Never count lines and never work a number out from a hunk header. A removed line has no number; cite the nearest numbered line.\n\n1. Review each patch for correctness, security, data loss, error handling, concurrency, compatibility, and test gaps, weighted by focus {{focus}} and intensity {{intensity}}. You have no checkout tools: judge only what the records show, and re-open a record only to check one detail.\n\n2. Sort what you find into three kinds.\n- A finding is a defect this PR introduces or worsens that the patch alone proves. Number findings B{{batchNumber}}-1 onward. Give each its `path:NUMBER`, a severity (critical, major, minor, or nit), what happens, and the fix. State what happens as fact, with its trigger: \"When `publish` fails, the step still exits 0.\" The gate rejects a finding that says may, might, could, possibly, potentially, or likely, and one that says it is not a defect (\"no issue\", \"no action needed\", \"acceptable as-is\", \"worth noting\", \"pre-existing\", \"future hardening\", \"needs verification\").\n- A verification candidate is a question whose answer is in a file outside this batch. Number candidates V{{batchNumber}}-1 onward. The final reviewer has the checkout and resolves them. Never give one a B-number.\n- A check is something you verified and found fine, or a limitation. It gets no number and no severity.\n\n3. Call `write_artifact` once to write the whole file {{workPath}}/pr-review/observations-{{batchNumber}}.md:\n- Begin with the heading “Batch {{batchNumber}} — files {{start}}–{{end}}” (#, ##, or ###).\n- Give EACH assigned path its own heading (## or ###), spelled exactly as listed. Under it say what you checked, then its findings and checks, or “Verified OK”, or “No patch available”.\n- Put findings under a `### Findings` heading, each starting on its own line as `**B{{batchNumber}}-1** — `path:NUMBER` — severity: major`.\n- Put checks under a `### Checks` heading. A finding runs until the next heading, so never continue with checks beneath a finding without that heading.\n- End with a `## Verification candidates` heading and exactly one fenced `json` block holding `{ \"verificationCandidates\": [...] }`. Use an empty array when there are none. Each entry has exactly the keys `id` (V{{batchNumber}}-1 onward, in order), `path` (an assigned path), `line` (the printed number of the line that raised the question, as a number), `severity`, `claim` (the failure, at most 400 characters), and `verify` (the exact file, symbol, or route to inspect, at most 400 characters).\n- Write code, identifiers, and strings from the patch in backticks, never in quotation marks.\n\n4. After the one `write_artifact` call, STOP. The runtime checks the file and advances when it passes; `advance_task_step` is intentionally unavailable. If the gate rejects the file, it lists each fix by number: make exactly those changes, keep everything else as it is, and write the whole file again. The patch records are still above; do not read them again unless a fix needs a line you cannot see. The runtime writes coverage-{{batchNumber}}.json itself.\n\nThese deliverables live in the project's artifacts drawer. The checkout stays untouched.",
|
|
525
|
+
"suggestedRole": "reviewer",
|
|
526
|
+
"retrieval": {
|
|
527
|
+
"mode": "off"
|
|
528
|
+
},
|
|
529
|
+
"toolPolicy": {
|
|
530
|
+
"allowTools": [
|
|
531
|
+
"read_artifact",
|
|
532
|
+
"read_artifacts",
|
|
533
|
+
"write_artifact"
|
|
534
|
+
],
|
|
535
|
+
"disallowBuiltinToolsets": [
|
|
536
|
+
"ai-apps",
|
|
537
|
+
"archives",
|
|
538
|
+
"audio",
|
|
539
|
+
"browser-automation",
|
|
540
|
+
"code-execution",
|
|
541
|
+
"craftbooks",
|
|
542
|
+
"data-tables",
|
|
543
|
+
"documents",
|
|
544
|
+
"entity-intel",
|
|
545
|
+
"image-intel",
|
|
546
|
+
"images",
|
|
547
|
+
"role-delegation",
|
|
548
|
+
"role-delegation-escalation",
|
|
549
|
+
"tasks",
|
|
550
|
+
"team-management",
|
|
551
|
+
"videos",
|
|
552
|
+
"web",
|
|
553
|
+
"workspace-fs-read",
|
|
554
|
+
"workspace-fs-write"
|
|
555
|
+
],
|
|
556
|
+
"disallowTools": [
|
|
557
|
+
"list_artifacts",
|
|
558
|
+
"grep_artifact",
|
|
559
|
+
"read_doc_as_markdown"
|
|
560
|
+
],
|
|
561
|
+
"disallowToolsets": [
|
|
562
|
+
"@playwright/mcp"
|
|
563
|
+
],
|
|
564
|
+
"outputMedium": "artifact"
|
|
565
|
+
},
|
|
566
|
+
"advanceWhen": {
|
|
567
|
+
"file": "{{workPath}}/pr-review/observations-{{batchNumber}}.md",
|
|
568
|
+
"minBytes": 200,
|
|
569
|
+
"artifact": true
|
|
570
|
+
},
|
|
571
|
+
"gate": {
|
|
572
|
+
"at": "completion",
|
|
573
|
+
"checks": [
|
|
574
|
+
{
|
|
575
|
+
"kind": "minBytes",
|
|
576
|
+
"file": "{{workPath}}/pr-review/observations-{{batchNumber}}.md",
|
|
577
|
+
"bytes": 200,
|
|
578
|
+
"artifact": true
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"kind": "corpusBatchObservations",
|
|
582
|
+
"batchesFile": "{{workPath}}/pr-review/batches.json",
|
|
583
|
+
"batchNumber": "{{batchNumber}}",
|
|
584
|
+
"file": "{{workPath}}/pr-review/observations-{{batchNumber}}.md",
|
|
585
|
+
"artifact": true,
|
|
586
|
+
"requireVerificationCandidates": true
|
|
587
|
+
}
|
|
588
|
+
],
|
|
589
|
+
"onReject": "review-batch",
|
|
590
|
+
"maxAttempts": 4
|
|
591
|
+
},
|
|
592
|
+
"onExit": [
|
|
593
|
+
{
|
|
594
|
+
"name": "publishCorpusCoverageShard",
|
|
595
|
+
"scope": "standard",
|
|
596
|
+
"inputs": {
|
|
597
|
+
"batchesFile": "{{workPath}}/pr-review/batches.json",
|
|
598
|
+
"batchNumber": "{{batchNumber}}",
|
|
599
|
+
"outFile": "{{workPath}}/pr-review/coverage-{{batchNumber}}.json"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
"terminal": true,
|
|
604
|
+
"promptProfile": "focused"
|
|
605
|
+
}
|
|
606
|
+
]
|
|
607
|
+
},
|
|
608
|
+
"version": "1.9.18",
|
|
609
|
+
"releasedAt": "2026-11-17T00:00:00Z",
|
|
610
|
+
"minGezelVersion": "1.26321"
|
|
611
|
+
}
|