@bendyline/gilde 0.3.0 → 0.3.2

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 (94) hide show
  1. package/authoring/tactical/wave.json +18 -18
  2. package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/craftbook.json +418 -0
  3. package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/test.json +196 -0
  4. package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/craftbook.json +432 -0
  5. package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/test.json +192 -0
  6. package/data/craftbook-templates/al/alert-rules/versions/1.0.5/craftbook.json +384 -0
  7. package/data/craftbook-templates/al/alert-rules/versions/1.0.5/test.json +145 -0
  8. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/craftbook.json +736 -0
  9. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/test.json +221 -0
  10. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/craftbook.json +799 -0
  11. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/test.json +221 -0
  12. package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/craftbook.json +119 -0
  13. package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/test.json +128 -0
  14. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/craftbook.json +607 -0
  15. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/test.json +252 -0
  16. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/craftbook.json +661 -0
  17. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/test.json +252 -0
  18. package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/craftbook.json +416 -0
  19. package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/test.json +238 -0
  20. package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/craftbook.json +494 -0
  21. package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/test.json +167 -0
  22. package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/craftbook.json +419 -0
  23. package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/test.json +172 -0
  24. package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/craftbook.json +285 -0
  25. package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/test.json +102 -0
  26. package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/craftbook.json +431 -0
  27. package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/test.json +348 -0
  28. package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/craftbook.json +452 -0
  29. package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/test.json +184 -0
  30. package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/craftbook.json +625 -0
  31. package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/test.json +235 -0
  32. package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/craftbook.json +312 -0
  33. package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/test.json +87 -0
  34. package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/craftbook.json +702 -0
  35. package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/test.json +191 -0
  36. package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/craftbook.json +720 -0
  37. package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/test.json +239 -0
  38. package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/craftbook.json +480 -0
  39. package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/test.json +176 -0
  40. package/data/craftbook-templates/in/investigate/versions/1.1.1/craftbook.json +85 -0
  41. package/data/craftbook-templates/in/investigate/versions/1.1.1/test.json +118 -0
  42. package/data/craftbook-templates/in/invoice-run/versions/1.1.9/craftbook.json +515 -0
  43. package/data/craftbook-templates/in/invoice-run/versions/1.1.9/test.json +140 -0
  44. package/data/craftbook-templates/index.json +1 -1
  45. package/data/craftbook-templates/ma/market-scan/versions/1.0.5/craftbook.json +480 -0
  46. package/data/craftbook-templates/ma/market-scan/versions/1.0.5/test.json +223 -0
  47. package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/craftbook.json +255 -0
  48. package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/test.json +140 -0
  49. package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/craftbook.json +270 -0
  50. package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/test.json +105 -0
  51. package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/craftbook.json +320 -0
  52. package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/test.json +94 -0
  53. package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/craftbook.json +699 -0
  54. package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/test.json +235 -0
  55. package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/craftbook.json +603 -0
  56. package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/test.json +266 -0
  57. package/data/craftbook-templates/pr/press-release/versions/1.0.6/craftbook.json +450 -0
  58. package/data/craftbook-templates/pr/press-release/versions/1.0.6/test.json +356 -0
  59. package/data/craftbook-templates/raw-index.json +1 -1
  60. package/data/craftbook-templates/re/refactor-module/versions/2.0.6/craftbook.json +699 -0
  61. package/data/craftbook-templates/re/refactor-module/versions/2.0.6/test.json +241 -0
  62. package/data/craftbook-templates/re/refactor-module/versions/2.0.7/craftbook.json +753 -0
  63. package/data/craftbook-templates/re/refactor-module/versions/2.0.7/test.json +241 -0
  64. package/data/craftbook-templates/re/release-notes/versions/1.0.6/craftbook.json +339 -0
  65. package/data/craftbook-templates/re/release-notes/versions/1.0.6/test.json +107 -0
  66. package/data/craftbook-templates/re/research-report/versions/1.0.6/craftbook.json +417 -0
  67. package/data/craftbook-templates/re/research-report/versions/1.0.6/test.json +183 -0
  68. package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/craftbook.json +319 -0
  69. package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/test.json +87 -0
  70. package/data/craftbook-templates/ru/runbook/versions/1.0.5/craftbook.json +491 -0
  71. package/data/craftbook-templates/ru/runbook/versions/1.0.5/test.json +118 -0
  72. package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/craftbook.json +626 -0
  73. package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/test.json +225 -0
  74. package/data/craftbook-templates/sh/ship/versions/1.1.4/craftbook.json +353 -0
  75. package/data/craftbook-templates/sh/ship/versions/1.1.4/test.json +235 -0
  76. package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/craftbook.json +596 -0
  77. package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/test.json +195 -0
  78. package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/craftbook.json +596 -0
  79. package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/test.json +221 -0
  80. package/data/craftbook-templates/we/week-plan/versions/1.0.5/craftbook.json +313 -0
  81. package/data/craftbook-templates/we/week-plan/versions/1.0.5/test.json +175 -0
  82. package/data/gezel-templates/im/image-editor/manifest.json +21 -0
  83. package/data/gezel-templates/im/image-editor/versions/1.0.0/about.md +17 -0
  84. package/data/gezel-templates/im/image-editor/versions/1.0.0/manifest.json +14 -0
  85. package/data/gezel-templates/index.json +1 -1
  86. package/data/gezel-templates/raw-index.json +1 -1
  87. package/data/image-models/fl/flux-2-klein-4b-q4/manifest.json +3 -0
  88. package/data/image-models/index.json +1 -1
  89. package/data/image-models/qw/qwen-image-edit-2511-q4/manifest.json +44 -0
  90. package/data/image-models/qw/qwen-image-edit-2511-q4/versions/1.0.0/manifest.json +36 -0
  91. package/data/image-models/raw-index.json +1 -1
  92. package/package.json +1 -1
  93. package/schemas/image-model-identity.schema.json +16 -0
  94. package/schemas/image-model-version.schema.json +1 -0
@@ -0,0 +1,450 @@
1
+ {
2
+ "id": "press-release",
3
+ "name": "Press Release",
4
+ "description": "Write a professional, AP-style press release ready to send to journalists: it first locks the news angle, the five W's, the approved quote(s), and the boilerplate, then drafts the release in the standard format — dateline, inverted-pyramid lede, supporting body, quotes, boilerplate, and media contact — then a review pass enforces newsworthiness, factual accuracy, and house style. Covers press release, news announcement, PR writing, media release, product launch announcement, and corporate communications. The scope-first ordering is essential: a small model that pins the angle and quotes before drafting avoids the soft, promotional release that buries the news and no editor will run.\n\nA gallery craftbook generated from an archetype spec. It runs\n`phase → (per-phase gate) → … → evaluate → (loop) → finish`. Each build\nphase that produces a checkable artifact is followed by a **runtime\ngate-checkpoint** — the runtime verifies the artifact and routes with no\nmodel turn, looping back to redo the phase on a miss. The final `evaluate`\nstep holds a static deliverable gate plus a reviewer QA pass. What it adds\nover the generic `build-loop`: a specialist role per phase, a\ndomain-correct ordering, and a concrete per-phase quality bar.\n\nDeliverables marked \"artifact\" land in the project's artifacts drawer (`write_artifact` / `read_artifact`), not the shipped workspace — review output is not product source.\n\nPhases:\n\n1. News scope (planner) — lock the angle, five W's, approved quotes, and boilerplate → gated on artifact `{{workPath}}/scope.md` (markdown-notes)\n2. Draft the release (copywriter) — write the release in standard inverted-pyramid format → gated on the release file (`press-release.md` unless a destination is given) (markdown-doc)\n3. Editorial review (reviewer) — enforce newsworthiness, accuracy, and AP-style format → gated on the release file (`press-release.md` unless a destination is given) (markdown-doc)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
5
+ "entryStepId": "scope",
6
+ "triggers": [
7
+ "write a press release",
8
+ "news announcement",
9
+ "media release",
10
+ "product launch pr",
11
+ "press announcement"
12
+ ],
13
+ "paramSchema": {
14
+ "type": "object",
15
+ "properties": {
16
+ "workPath": {
17
+ "type": "string",
18
+ "title": "Working folder",
19
+ "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.",
20
+ "default": "{{task.dir}}"
21
+ },
22
+ "outputPath": {
23
+ "type": "string",
24
+ "title": "Workspace output path",
25
+ "description": "Project-workspace-relative path for the finished release. Honors a destination the user names (for example out/press-release.md).",
26
+ "default": "press-release.md"
27
+ }
28
+ }
29
+ },
30
+ "contract": {
31
+ "goal": "A press release ready to send to journalists, in standard format: headline, dateline, a lede that gives the news first, an attributed quote, boilerplate, media contact and a closing ###. It reports the news in a factual voice and states only facts the person supplied.",
32
+ "deliverables": [
33
+ {
34
+ "id": "release",
35
+ "path": "{{outputPath}}",
36
+ "kind": "markdown-doc",
37
+ "description": "The finished press release in Markdown"
38
+ }
39
+ ],
40
+ "criteria": [
41
+ {
42
+ "id": "complete-release",
43
+ "kind": "acceptance",
44
+ "text": "The release is a complete document that opens with a headline",
45
+ "checks": [
46
+ {
47
+ "kind": "minBytes",
48
+ "file": "{{outputPath}}",
49
+ "bytes": 500
50
+ },
51
+ {
52
+ "kind": "contains",
53
+ "file": "{{outputPath}}",
54
+ "pattern": "(?:^|\\n)#{1,3}\\s+\\S",
55
+ "label": "a headline"
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "id": "dateline",
61
+ "kind": "acceptance",
62
+ "text": "The lede opens with a dateline: the city and state or country, then a dash (for example \"BOSTON, Mass., June 28, 2026 —\")",
63
+ "checks": [
64
+ {
65
+ "kind": "contains",
66
+ "file": "{{outputPath}}",
67
+ "pattern": "(?:^|\\n)[ \\t]*(?:\\*{1,2}|_{1,2})?(?:[A-Z][A-Za-z.'’-]*(?:[ \\t]+[A-Z][A-Za-z.'’-]*){0,3},[ \\t]*[A-Z0-9][^\\n]{0,70}?|[A-Z]{2}[A-Z.'’ -]{1,38}(?:\\([^)\\n]{1,20}\\))?)[ \\t]*(?:\\*{1,2}|_{1,2})?[ \\t]*(?:—|–|--|-[ \\t])",
68
+ "label": "a dateline opening the lede"
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ "id": "attributed-quote",
74
+ "kind": "acceptance",
75
+ "text": "It carries at least one quote attributed to a named person",
76
+ "checks": [
77
+ {
78
+ "kind": "contains",
79
+ "file": "{{outputPath}}",
80
+ "pattern": "[\"“][^\"”]{15,}[\"”][\\s>*_]*(?:—|–|--|-\\s)\\s*\\S|[\"“][^\"”]{15,}[\"”][\\s\\S]{0,160}?\\b(?:said|says|added|adds|explained|noted|according to)\\b|\\b(?:said|says|added|adds|explained|noted)\\b[\\s\\S]{0,160}?[\"“][^\"”]{15,}[\"”]",
81
+ "flags": "i",
82
+ "label": "an attributed quote"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "id": "media-contact",
88
+ "kind": "acceptance",
89
+ "text": "It gives a media contact for journalists",
90
+ "checks": [
91
+ {
92
+ "kind": "contains",
93
+ "file": "{{outputPath}}",
94
+ "pattern": "\\b(?:media|press)\\s+(?:contacts?|inquir|enquir)|(?:^|\\n)[ \\t]*(?:#{1,6}[ \\t]*|\\*\\*|__)?contacts?\\b|\\bcontact\\s*(?:info(?:rmation)?|details)?\\s*:|[\\w.+-]+@[\\w-]+(?:\\.[\\w-]+)+",
95
+ "flags": "i",
96
+ "label": "a media contact"
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "id": "end-mark",
102
+ "kind": "acceptance",
103
+ "text": "The release ends with ### on its own line",
104
+ "checks": [
105
+ {
106
+ "kind": "contains",
107
+ "file": "{{outputPath}}",
108
+ "pattern": "(?:^|\\n)[ \\t]*(?:<(?:p|div|center)[^>\\n]*>[ \\t]*)?(?:\\*\\*|__)?(?:#[ \\t]?#[ \\t]?#|\\\\#[ \\t]?\\\\#[ \\t]?\\\\#|-30-)(?:\\*\\*|__)?(?:[ \\t]*</(?:p|div|center)>)?[ \\t]*(?:\\n|$)",
109
+ "label": "a closing ### end mark"
110
+ }
111
+ ]
112
+ },
113
+ {
114
+ "id": "send-ready",
115
+ "kind": "quality",
116
+ "text": "It is ready to send: no bracketed placeholders, TBDs, citation markers or source notes left in the text",
117
+ "checks": [
118
+ {
119
+ "kind": "notContains",
120
+ "file": "{{outputPath}}",
121
+ "pattern": "\\[(?:\\d{1,3}|insert|add|your|tbd|todo|placeholder|company|name|title|date|city|quote|contact|email|phone)\\b[^\\]\\n]{0,40}\\](?!\\()|\\(sources?:|\\bTBD\\b|\\bTODO\\b|\\blorem ipsum\\b",
122
+ "flags": "i",
123
+ "label": "placeholders, citation markers or source notes"
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "id": "no-hype",
129
+ "kind": "quality",
130
+ "text": "It reports the news rather than selling it: no marketing superlatives such as \"revolutionary\", \"game-changing\" or \"world-class\"",
131
+ "checks": [
132
+ {
133
+ "kind": "notContains",
134
+ "file": "{{outputPath}}",
135
+ "pattern": "\\b(?:revolutionar(?:y|ize[sd]?|izing)|game[- ]?chang(?:er|ers|ing)|world[- ]class|best[- ]in[- ]class|cutting[- ]edge|industry[- ]leading|groundbreaking|unparalleled|state[- ]of[- ]the[- ]art)\\b",
136
+ "flags": "i",
137
+ "label": "marketing superlatives"
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "id": "news-first",
143
+ "kind": "quality",
144
+ "enforce": "advisory",
145
+ "text": "The headline is active and specific, the lede answers who, what, when and where in its first one or two sentences, and the body runs from most to least important",
146
+ "judge": {
147
+ "rubric": "Does the lede convey the news and answer who, what, when and where in its first one or two sentences, under an active, specific headline, with the body in inverted-pyramid order?"
148
+ }
149
+ },
150
+ {
151
+ "id": "supplied-facts",
152
+ "kind": "quality",
153
+ "enforce": "advisory",
154
+ "text": "Every name, title, date, figure and quote matches what the person supplied, approved quotes are verbatim, and nothing is invented",
155
+ "judge": {
156
+ "rubric": "Does every name, title, date, figure and quote in the release match the facts the person supplied, with approved quotes and boilerplate used verbatim and no invented claims?"
157
+ }
158
+ },
159
+ {
160
+ "id": "boilerplate",
161
+ "kind": "quality",
162
+ "enforce": "advisory",
163
+ "text": "It closes with the company boilerplate, under an \"About [Company]\" heading unless the person asked otherwise",
164
+ "judge": {
165
+ "rubric": "Does the release close with a short company boilerplate paragraph, under an About heading unless the person asked otherwise?"
166
+ }
167
+ }
168
+ ]
169
+ },
170
+ "steps": [
171
+ {
172
+ "id": "scope",
173
+ "name": "News scope",
174
+ "description": "lock the angle, five W's, approved quotes, and boilerplate",
175
+ "prompt": "1) State the NEWS in one sentence — the actual announcement (launch, funding, partnership, milestone) and why it is newsworthy NOW. 2) Capture the five W's: who, what, when, where, why-it-matters. 3) Draft or confirm 1-2 attributable quotes (speaker name + title) that add insight, not fluff. 4) Write the company boilerplate (2-3 sentences) and the media contact line (name, email). 5) Decide the headline (active, specific, <=12 words) and subhead. Write an acceptance-criteria checklist (e.g. 'lede answers who/what/when/where in the first 1-2 sentences'; 'inverted pyramid — most important first'; 'at least one attributed quote'; 'includes dateline, boilerplate, contact, and the ### end mark'; 'factual, non-promotional tone'). Use write_task_note for the news brief + checklist, and write the same to the produces path. No release prose yet.\n\nThe deliverable `{{workPath}}/scope.md` lands in the project's artifacts drawer — write it with `write_artifact` and read it back with `read_artifact`; the shipped workspace stays untouched.",
176
+ "suggestedRole": "planner",
177
+ "advanceWhen": {
178
+ "file": "{{workPath}}/scope.md",
179
+ "minBytes": 1,
180
+ "sniff": "nonempty",
181
+ "artifact": true
182
+ },
183
+ "gate": {
184
+ "at": "completion",
185
+ "checks": [
186
+ {
187
+ "kind": "minBytes",
188
+ "file": "{{workPath}}/scope.md",
189
+ "bytes": 120,
190
+ "artifact": true
191
+ },
192
+ {
193
+ "kind": "sniff",
194
+ "file": "{{workPath}}/scope.md",
195
+ "sniff": "nonempty",
196
+ "artifact": true
197
+ }
198
+ ],
199
+ "onReject": "scope",
200
+ "maxAttempts": 3
201
+ },
202
+ "next": "draft",
203
+ "toolPolicy": {
204
+ "disallowBuiltinToolsets": [
205
+ "ai-apps",
206
+ "archives",
207
+ "audio",
208
+ "browser-automation",
209
+ "code-execution",
210
+ "craftbooks",
211
+ "data-tables",
212
+ "entity-intel",
213
+ "git",
214
+ "image-intel",
215
+ "images",
216
+ "role-delegation",
217
+ "role-delegation-escalation",
218
+ "security-intel",
219
+ "team-management",
220
+ "videos",
221
+ "web",
222
+ "workspace-fs-write"
223
+ ],
224
+ "outputMedium": "artifact",
225
+ "additionalOutputMedia": [
226
+ "task-note"
227
+ ]
228
+ }
229
+ },
230
+ {
231
+ "id": "draft",
232
+ "name": "Draft the release",
233
+ "description": "write the release in standard inverted-pyramid format",
234
+ "prompt": "Write the press release in standard format. 1) Headline (active, specific) and an optional subhead. 2) Dateline: CITY, State, Month Day, Year — then the lede sentence answering who/what/when/where. 3) Body in inverted pyramid: most newsworthy facts first, supporting detail after, in short paragraphs. 4) Integrate the approved quote(s) with proper attribution. 5) Boilerplate paragraph ('About [Company]'). 6) Media contact block. 7) End with a centered '###'. Keep the tone factual and journalistic — report the news, do not sell it. Output as markdown. Save it to `{{outputPath}}` and note which checklist items pass.\n\nIf the task notes hold a review of an earlier pass, fix exactly the gaps it names and keep everything that already passed.",
235
+ "suggestedRole": "copywriter",
236
+ "advanceWhen": {
237
+ "file": "{{outputPath}}",
238
+ "minBytes": 1,
239
+ "sniff": "nonempty"
240
+ },
241
+ "gate": {
242
+ "at": "completion",
243
+ "checks": [
244
+ {
245
+ "kind": "minBytes",
246
+ "file": "{{outputPath}}",
247
+ "bytes": 500
248
+ }
249
+ ],
250
+ "scripts": [
251
+ {
252
+ "name": "checkContains",
253
+ "scope": "standard",
254
+ "inputs": {
255
+ "file": "{{outputPath}}",
256
+ "pattern": "(?:^|\\n)#{1,3}\\s+\\S",
257
+ "flags": "i"
258
+ }
259
+ }
260
+ ],
261
+ "onReject": "draft",
262
+ "maxAttempts": 3
263
+ },
264
+ "next": "review",
265
+ "toolPolicy": {
266
+ "disallowBuiltinToolsets": [
267
+ "ai-apps",
268
+ "archives",
269
+ "artifacts",
270
+ "audio",
271
+ "browser-automation",
272
+ "code-execution",
273
+ "craftbooks",
274
+ "data-tables",
275
+ "entity-intel",
276
+ "git",
277
+ "image-intel",
278
+ "images",
279
+ "role-delegation",
280
+ "role-delegation-escalation",
281
+ "security-intel",
282
+ "team-management",
283
+ "videos",
284
+ "web"
285
+ ],
286
+ "outputMedium": "workspace"
287
+ }
288
+ },
289
+ {
290
+ "id": "review",
291
+ "name": "Editorial review",
292
+ "description": "enforce newsworthiness, accuracy, and AP-style format",
293
+ "prompt": "Review and edit the release in place against the checklist. 1) Read the lede alone: does it convey the news and answer who/what/when/where? If it buries the news, rewrite it. 2) Confirm inverted-pyramid structure — could an editor cut from the bottom and still have a coherent story? 3) Strip promotional adjectives and marketing hype; keep it factual. 4) Verify every fact, name, title, and date; flag anything unverifiable. 5) Confirm all structural elements are present: headline, dateline, quote, boilerplate, contact, ###. Rewrite weak passages directly. Save the polished release to the produces path and note any criteria still unmet.",
294
+ "suggestedRole": "reviewer",
295
+ "advanceWhen": {
296
+ "file": "{{outputPath}}",
297
+ "minBytes": 1,
298
+ "sniff": "nonempty"
299
+ },
300
+ "gate": {
301
+ "at": "completion",
302
+ "checks": [
303
+ {
304
+ "kind": "minBytes",
305
+ "file": "{{outputPath}}",
306
+ "bytes": 500
307
+ }
308
+ ],
309
+ "scripts": [
310
+ {
311
+ "name": "checkContains",
312
+ "scope": "standard",
313
+ "inputs": {
314
+ "file": "{{outputPath}}",
315
+ "pattern": "(?:^|\\n)#{1,3}\\s+\\S",
316
+ "flags": "i"
317
+ }
318
+ }
319
+ ],
320
+ "onReject": "review",
321
+ "maxAttempts": 4
322
+ },
323
+ "next": "evaluate",
324
+ "toolPolicy": {
325
+ "disallowBuiltinToolsets": [
326
+ "ai-apps",
327
+ "archives",
328
+ "artifacts",
329
+ "audio",
330
+ "browser-automation",
331
+ "code-execution",
332
+ "craftbooks",
333
+ "data-tables",
334
+ "entity-intel",
335
+ "git",
336
+ "image-intel",
337
+ "images",
338
+ "role-delegation",
339
+ "role-delegation-escalation",
340
+ "security-intel",
341
+ "team-management",
342
+ "videos",
343
+ "web"
344
+ ],
345
+ "outputMedium": "workspace"
346
+ }
347
+ },
348
+ {
349
+ "id": "evaluate",
350
+ "name": "Evaluate",
351
+ "description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
352
+ "prompt": "Read {{outputPath}} and grade against the checklist. Check EACH and write PASS/FAIL: (a) the lede answers who/what/when/where in the first 1-2 sentences; (b) inverted-pyramid structure (most important first); (c) at least one properly attributed quote; (d) dateline, boilerplate, media contact, and a closing ### are all present; (e) factual, non-promotional tone with no unverified claims; (f) headline is active and specific. A release that reads like an ad or buries the news FAILS — loop back to draft.\n\nThen record your verdict — this is the whole point of the loop:\n\n1. If any criterion fails, first write the specific gaps to the task notes with `write_task_note`: which file, which part, and what is missing. The \"Draft the release\" step reads them when it fixes the work.\n2. When you have graded every criterion, write `{{workPath}}/verdict.md` with `write_artifact`. One line per criterion and no preamble: the criterion, its one-line reason, then PASS or FAIL as the last word on the line. Writing verdict.md completes this step.\n\nThe runtime routes on the verdict: every line PASS moves the task to \"Finish\"; any FAIL sends it back to \"Draft the release\" to fix those gaps, and a review that keeps failing pauses the task for the user. Mark a criterion PASS only when it is met. The build phase's completion gate already blocked a grossly-incomplete deliverable; your job is the judgment an automated check cannot make (does it actually work, read well, look right).",
353
+ "suggestedRole": "reviewer",
354
+ "consumes": [
355
+ {
356
+ "file": "{{outputPath}}"
357
+ }
358
+ ],
359
+ "advanceWhen": {
360
+ "file": "{{workPath}}/verdict.md",
361
+ "minBytes": 40,
362
+ "sniff": "nonempty",
363
+ "artifact": true
364
+ },
365
+ "gate": {
366
+ "at": "completion",
367
+ "checks": [
368
+ {
369
+ "kind": "contains",
370
+ "file": "{{workPath}}/verdict.md",
371
+ "pattern": "(?<!/\\s*)\\bPASS\\b(?!\\s*/)",
372
+ "label": "the verdict marks its criteria PASS",
373
+ "artifact": true
374
+ },
375
+ {
376
+ "kind": "notContains",
377
+ "file": "{{workPath}}/verdict.md",
378
+ "pattern": "(?<!/\\s*)\\bFAIL\\b(?!\\s*/)",
379
+ "label": "no criterion is marked FAIL",
380
+ "artifact": true
381
+ }
382
+ ],
383
+ "onReject": "draft",
384
+ "maxAttempts": 3
385
+ },
386
+ "next": "finish",
387
+ "toolPolicy": {
388
+ "disallowBuiltinToolsets": [
389
+ "ai-apps",
390
+ "archives",
391
+ "audio",
392
+ "browser-automation",
393
+ "code-execution",
394
+ "craftbooks",
395
+ "data-tables",
396
+ "entity-intel",
397
+ "git",
398
+ "image-intel",
399
+ "images",
400
+ "role-delegation",
401
+ "role-delegation-escalation",
402
+ "security-intel",
403
+ "team-management",
404
+ "videos",
405
+ "web",
406
+ "workspace-fs-write"
407
+ ],
408
+ "outputMedium": "artifact",
409
+ "additionalOutputMedia": [
410
+ "task-note"
411
+ ]
412
+ }
413
+ },
414
+ {
415
+ "id": "finish",
416
+ "name": "Finish",
417
+ "description": "All acceptance criteria met. Stamp a short summary and report DONE.",
418
+ "prompt": "Every acceptance criterion passed. Write a one-paragraph DONE summary to task notes via `write_task_note`: what was built, the deliverable path(s), and a one-line confirmation that each criterion is met. Then report DONE.",
419
+ "suggestedRole": "developer",
420
+ "terminal": true,
421
+ "toolPolicy": {
422
+ "disallowBuiltinToolsets": [
423
+ "ai-apps",
424
+ "archives",
425
+ "artifacts",
426
+ "audio",
427
+ "browser-automation",
428
+ "code-execution",
429
+ "craftbooks",
430
+ "data-tables",
431
+ "entity-intel",
432
+ "git",
433
+ "image-intel",
434
+ "images",
435
+ "role-delegation",
436
+ "role-delegation-escalation",
437
+ "security-intel",
438
+ "team-management",
439
+ "videos",
440
+ "web",
441
+ "workspace-fs-write"
442
+ ],
443
+ "outputMedium": "task-note"
444
+ }
445
+ }
446
+ ],
447
+ "version": "1.0.6",
448
+ "releasedAt": "2026-10-23T00:00:00Z",
449
+ "minGezelVersion": "1.26295"
450
+ }