@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,107 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "title": "Public release notes from noisy change inventory",
4
+ "objective": "Measure whether the release-notes craftbook gathers, de-noises, classifies, and writes benefit-led release notes with breaking changes up front.",
5
+ "tags": [
6
+ "corpus"
7
+ ],
8
+ "prompt": "In the `Release Notes Eval` project, read `source/change-inventory.md` and write `release-notes.md` for HarborCRM 3.8.0 dated 2026-06-28. Include Highlights, Breaking Changes / Upgrade Notes, Features, Improvements, and Bug Fixes. Preserve PR references, exclude internal-only noise, and make the breaking config action impossible to miss.",
9
+ "setup": {
10
+ "projectName": "Release Notes Eval",
11
+ "about": "Self-contained eval project for release-notes. The raw change inventory is seeded in workspace/source/change-inventory.md.",
12
+ "missionObjectives": "Write public release notes from a noisy change inventory, preserving user-facing changes and references while excluding internal-only noise.",
13
+ "files": [
14
+ {
15
+ "path": "source/change-inventory.md",
16
+ "content": "# HarborCRM 3.8.0 change inventory\n\n- PR #812 Feature: adds saved invoice filters for finance teams.\n- PR #817 Improvement: webhook retry queue now shows next retry time in the admin panel.\n- PR #823 Breaking: integrations must rename env var `HC_WEBHOOK_SECRET` to `PAYMENTS_WEBHOOK_SECRET` before deploy.\n- PR #829 Bug fix: fixes duplicate customer merge suggestions after CSV import.\n- PR #831 Internal: renamed reducer files in the billing package.\n- PR #832 CI-only: upgraded lint runner and prettier config.\n- PR #835 Dependency bump only: patch-level dev dependency update.\n"
17
+ }
18
+ ],
19
+ "worker": {
20
+ "name": "Rina",
21
+ "role": "Copywriter"
22
+ }
23
+ },
24
+ "mocks": [],
25
+ "success": {
26
+ "summary": "release-notes.md has version/date, public sections, PR references, all user-facing changes, a prominent breaking action, and excludes internal/CI/dependency noise.",
27
+ "deliverables": [
28
+ {
29
+ "path": "release-notes.md",
30
+ "kind": "markdown-doc",
31
+ "minBytes": 1500,
32
+ "checks": [
33
+ {
34
+ "kind": "contains",
35
+ "file": "release-notes.md",
36
+ "pattern": "HarborCRM|3\\.8\\.0|2026-06-28"
37
+ },
38
+ {
39
+ "kind": "contains",
40
+ "file": "release-notes.md",
41
+ "pattern": "Highlights|Breaking Changes|Upgrade Notes|Features|Improvements|Bug Fixes",
42
+ "flags": "i"
43
+ },
44
+ {
45
+ "kind": "contains",
46
+ "file": "release-notes.md",
47
+ "pattern": "#812|#817|#823|#829",
48
+ "flags": "i"
49
+ },
50
+ {
51
+ "kind": "contains",
52
+ "file": "release-notes.md",
53
+ "pattern": "saved invoice filters|retry queue|duplicate customer merge",
54
+ "flags": "i"
55
+ },
56
+ {
57
+ "kind": "contains",
58
+ "file": "release-notes.md",
59
+ "pattern": "HC_WEBHOOK_SECRET|PAYMENTS_WEBHOOK_SECRET|before deploy|breaking",
60
+ "flags": "i"
61
+ },
62
+ {
63
+ "kind": "notContains",
64
+ "file": "release-notes.md",
65
+ "pattern": "reducer|lint runner|prettier|dependency bump|#831|#832|#835",
66
+ "flags": "i"
67
+ }
68
+ ]
69
+ }
70
+ ]
71
+ },
72
+ "rubric": {
73
+ "artifact": {
74
+ "path": "release-notes.md",
75
+ "kind": "markdown"
76
+ },
77
+ "axes": [
78
+ {
79
+ "name": "de-noising",
80
+ "description": "Internal-only, CI, lint and dependency changes are left out, and every user-facing change is in."
81
+ },
82
+ {
83
+ "name": "benefit-led writing",
84
+ "description": "Each note says in plain language what a user can now do or what got better, and keeps its PR reference."
85
+ },
86
+ {
87
+ "name": "breaking-change visibility",
88
+ "description": "The breaking webhook-secret change sits near the top with the exact action an operator must take before deploying."
89
+ }
90
+ ]
91
+ },
92
+ "qualityFocus": [
93
+ "de-noising",
94
+ "benefit-led notes",
95
+ "breaking action visibility"
96
+ ],
97
+ "extensions": {
98
+ "legacySimulators": [
99
+ {
100
+ "id": "release-notes-fake-service-fixture",
101
+ "kind": "data-source",
102
+ "status": "implemented",
103
+ "description": "Seeded local fake service contract replacing live CLIs, HTTP APIs, credentials, and side effects."
104
+ }
105
+ ]
106
+ }
107
+ }
@@ -0,0 +1,417 @@
1
+ {
2
+ "id": "research-report",
3
+ "name": "Cited Research Report",
4
+ "description": "Produce a rigorously cited research report that answers a specific question end to end: a planner first decomposes the question into sub-questions and locks the scope, then a researcher gathers and logs primary and secondary sources with inline citations, then a copywriter writes a structured markdown report (executive summary, findings, evidence, limitations, references). The ordering matters because a small model that writes before scoping rambles and a model that writes without a source log fabricates citations; locking sub-questions and a source table first turns the report into a fill-in-the-evidence exercise. Use this for literature-backed analysis, deep dives, investigative write-ups, background research, and any 'find out and write it up with sources' task where every claim must trace to a citation.\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. Question scope (planner) — decompose the question into sub-questions + lock scope → gated on artifact `{{workPath}}/question-scope.md` (markdown-notes)\n2. Research & source log (researcher) — gather sources, log each with a citation key + key facts → gated on artifact `{{workPath}}/sources.md` (markdown-notes)\n3. Write the report (copywriter) — write the cited markdown report to the locked structure → gated on artifact `{{workPath}}/report.md` (markdown-report)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
5
+ "entryStepId": "question-scope",
6
+ "triggers": [
7
+ "write a research report",
8
+ "research this question with sources",
9
+ "cited report",
10
+ "deep dive on a topic",
11
+ "investigate and write it up"
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
+ "askUser": false
22
+ },
23
+ "topic": {
24
+ "type": "string",
25
+ "title": "Topic",
26
+ "description": "The subject, audience, and any details you want the crew to include.",
27
+ "fromMessage": true
28
+ }
29
+ }
30
+ },
31
+ "contract": {
32
+ "goal": "A structured markdown report that answers the question asked, where every figure, date and quote is cited to a source the crew read and appears in that source.",
33
+ "deliverables": [
34
+ {
35
+ "id": "report",
36
+ "path": "{{workPath}}/report.md",
37
+ "artifact": true,
38
+ "kind": "markdown-report",
39
+ "description": "The cited report: the answer up front, the findings with their evidence, what the evidence cannot show, and the sources it cites"
40
+ }
41
+ ],
42
+ "grounding": {
43
+ "citationStyle": "any"
44
+ },
45
+ "criteria": [
46
+ {
47
+ "id": "substantial",
48
+ "kind": "acceptance",
49
+ "text": "The report is a full document organized under section headings",
50
+ "checks": [
51
+ {
52
+ "kind": "minBytes",
53
+ "file": "{{workPath}}/report.md",
54
+ "bytes": 1500,
55
+ "artifact": true
56
+ },
57
+ {
58
+ "kind": "contains",
59
+ "file": "{{workPath}}/report.md",
60
+ "pattern": "(?:^|\\n)#{1,3}\\s+\\S",
61
+ "label": "section headings",
62
+ "artifact": true
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "id": "references",
68
+ "kind": "acceptance",
69
+ "text": "It lists the sources it cites in a Sources or References section",
70
+ "checks": [
71
+ {
72
+ "kind": "contains",
73
+ "file": "{{workPath}}/report.md",
74
+ "pattern": "(?:^|\\n)#{1,6}\\s*(?:sources|references|works cited|bibliography)\\b",
75
+ "flags": "i",
76
+ "label": "a Sources or References section",
77
+ "artifact": true
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "id": "cited",
83
+ "kind": "quality",
84
+ "text": "Its claims cite at least three sources, and every cited file exists",
85
+ "checks": [
86
+ {
87
+ "kind": "citationsResolve",
88
+ "file": "{{workPath}}/report.md",
89
+ "minCitations": 3,
90
+ "artifact": true
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "id": "grounded",
96
+ "kind": "quality",
97
+ "text": "Every number, date and quote appears in the source it cites; nothing checkable is stated that no source shows",
98
+ "checks": [
99
+ {
100
+ "kind": "claimsGrounded",
101
+ "file": "{{workPath}}/report.md",
102
+ "artifact": true
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "id": "limits",
108
+ "kind": "quality",
109
+ "text": "It says what the evidence cannot show",
110
+ "checks": [
111
+ {
112
+ "kind": "contains",
113
+ "file": "{{workPath}}/report.md",
114
+ "pattern": "limitation|caveat|uncertain|cannot (?:show|tell|confirm|establish)|not (?:shown|established|measured)|open question|no data",
115
+ "flags": "i",
116
+ "label": "a statement of what the evidence cannot show",
117
+ "artifact": true
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "id": "answers",
123
+ "kind": "quality",
124
+ "enforce": "advisory",
125
+ "text": "It answers the question it was asked in its opening section, for the audience named",
126
+ "judge": {
127
+ "rubric": "Does the report answer the question it was asked in its opening section, in terms the named audience can act on?"
128
+ }
129
+ }
130
+ ]
131
+ },
132
+ "steps": [
133
+ {
134
+ "id": "question-scope",
135
+ "name": "Question scope",
136
+ "description": "decompose the question into sub-questions + lock scope",
137
+ "prompt": "1. Restate the research question in one precise sentence; if it is vague, narrow it to something answerable (define the entity, timeframe, geography, and metric). 2. Decompose it into 3-6 sub-questions that, answered together, fully answer the main question. 3. Decide the report structure: executive summary, one section per sub-question, a limitations section, and a references list. 4. Decide source standards: how many independent sources minimum (aim 5+), what counts as authoritative for this topic, and the recency window. 5. Write an acceptance-criteria checklist (e.g. 'every sub-question has a dedicated section', 'every factual claim has an inline citation [n]', 'at least 5 distinct sources in references', 'an explicit limitations/uncertainty section exists', 'executive summary is <=150 words and states the bottom line'). Good looks like a checklist a grader could mechanically apply. 6. Record key decisions (the narrowed question, the sub-questions, the recency window). Call write_task_note with the sub-questions + checklist + decisions, and also write the same content to {{workPath}}/question-scope.md.\n\nThe deliverable `{{workPath}}/question-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.",
138
+ "suggestedRole": "planner",
139
+ "advanceWhen": {
140
+ "file": "{{workPath}}/question-scope.md",
141
+ "minBytes": 1,
142
+ "sniff": "nonempty",
143
+ "artifact": true
144
+ },
145
+ "gate": {
146
+ "at": "completion",
147
+ "checks": [
148
+ {
149
+ "kind": "minBytes",
150
+ "file": "{{workPath}}/question-scope.md",
151
+ "bytes": 120,
152
+ "artifact": true
153
+ },
154
+ {
155
+ "kind": "sniff",
156
+ "file": "{{workPath}}/question-scope.md",
157
+ "sniff": "nonempty",
158
+ "artifact": true
159
+ }
160
+ ],
161
+ "onReject": "question-scope",
162
+ "maxAttempts": 3
163
+ },
164
+ "next": "research",
165
+ "toolPolicy": {
166
+ "disallowBuiltinToolsets": [
167
+ "ai-apps",
168
+ "archives",
169
+ "audio",
170
+ "browser-automation",
171
+ "code-execution",
172
+ "craftbooks",
173
+ "data-tables",
174
+ "entity-intel",
175
+ "git",
176
+ "image-intel",
177
+ "images",
178
+ "role-delegation",
179
+ "role-delegation-escalation",
180
+ "security-intel",
181
+ "team-management",
182
+ "videos",
183
+ "web",
184
+ "workspace-fs-write"
185
+ ],
186
+ "outputMedium": "artifact",
187
+ "additionalOutputMedia": [
188
+ "task-note"
189
+ ]
190
+ }
191
+ },
192
+ {
193
+ "id": "research",
194
+ "name": "Research & source log",
195
+ "description": "gather sources, log each with a citation key + key facts",
196
+ "prompt": "1. For each sub-question from the scope, find authoritative sources (prefer primary sources, official data, and reputable secondary sources within the recency window). 2. For every source, append an entry to {{workPath}}/sources.md with: a citation key [n], title, author/publisher, date, URL or locator, and 1-3 bullet facts you extracted with the exact figure or quote. 3. Cross-check any surprising or load-bearing fact against a second independent source and note the agreement or conflict. 4. Flag every claim you could NOT verify as UNVERIFIED so the writer does not state it as fact. 5. Aim to exceed the minimum source count and cover every sub-question; do not pad with low-quality sources. Good looks like a source log dense enough that the writer never needs to invent a fact. Keep {{workPath}}/sources.md as the single source of truth; do not write prose yet.\n\nThe deliverable `{{workPath}}/sources.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.",
197
+ "suggestedRole": "researcher",
198
+ "advanceWhen": {
199
+ "file": "{{workPath}}/sources.md",
200
+ "minBytes": 1,
201
+ "sniff": "nonempty",
202
+ "artifact": true
203
+ },
204
+ "gate": {
205
+ "at": "completion",
206
+ "checks": [
207
+ {
208
+ "kind": "minBytes",
209
+ "file": "{{workPath}}/sources.md",
210
+ "bytes": 120,
211
+ "artifact": true
212
+ },
213
+ {
214
+ "kind": "sniff",
215
+ "file": "{{workPath}}/sources.md",
216
+ "sniff": "nonempty",
217
+ "artifact": true
218
+ }
219
+ ],
220
+ "onReject": "research",
221
+ "maxAttempts": 3
222
+ },
223
+ "next": "write",
224
+ "toolPolicy": {
225
+ "disallowBuiltinToolsets": [
226
+ "ai-apps",
227
+ "archives",
228
+ "audio",
229
+ "browser-automation",
230
+ "code-execution",
231
+ "craftbooks",
232
+ "data-tables",
233
+ "entity-intel",
234
+ "git",
235
+ "image-intel",
236
+ "images",
237
+ "role-delegation",
238
+ "role-delegation-escalation",
239
+ "security-intel",
240
+ "team-management",
241
+ "videos",
242
+ "workspace-fs-write"
243
+ ],
244
+ "outputMedium": "artifact"
245
+ }
246
+ },
247
+ {
248
+ "id": "write",
249
+ "name": "Write the report",
250
+ "description": "write the cited markdown report to the locked structure",
251
+ "prompt": "1. Write {{workPath}}/report.md following the locked structure exactly: title, an executive summary <=150 words that states the bottom-line answer, one section per sub-question, a limitations section, and a numbered References list. 2. Every factual claim gets an inline citation [n] keyed to the references; do NOT state any UNVERIFIED claim as fact (hedge it or drop it). 3. Build the References list directly from {{workPath}}/sources.md so every [n] resolves and no citation is invented. 4. Lead each section with the answer, then the evidence; keep prose tight and skimmable with subheadings. 5. On a loop-back, fix only the gaps the reviewer named and do not regress sections that already passed. 6. Call write_task_note with the report path and which criteria now pass.\n\nBefore working, open the artifact input `{{workPath}}/sources.md` with `read_artifact`; do not look for it in the workspace.\n\nThe deliverable `{{workPath}}/report.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.",
252
+ "suggestedRole": "copywriter",
253
+ "consumes": [
254
+ {
255
+ "file": "{{workPath}}/sources.md",
256
+ "artifact": true
257
+ }
258
+ ],
259
+ "advanceWhen": {
260
+ "file": "{{workPath}}/report.md",
261
+ "minBytes": 1,
262
+ "sniff": "nonempty",
263
+ "artifact": true
264
+ },
265
+ "gate": {
266
+ "at": "completion",
267
+ "checks": [
268
+ {
269
+ "kind": "minBytes",
270
+ "file": "{{workPath}}/report.md",
271
+ "bytes": 1500,
272
+ "artifact": true
273
+ },
274
+ {
275
+ "kind": "contains",
276
+ "file": "{{workPath}}/report.md",
277
+ "pattern": "(?:^|\\n)#{1,3}\\s+\\S",
278
+ "flags": "i",
279
+ "label": "at least one markdown heading",
280
+ "artifact": true
281
+ }
282
+ ],
283
+ "onReject": "write",
284
+ "maxAttempts": 4
285
+ },
286
+ "next": "evaluate",
287
+ "toolPolicy": {
288
+ "disallowBuiltinToolsets": [
289
+ "ai-apps",
290
+ "archives",
291
+ "audio",
292
+ "browser-automation",
293
+ "code-execution",
294
+ "craftbooks",
295
+ "data-tables",
296
+ "entity-intel",
297
+ "git",
298
+ "image-intel",
299
+ "images",
300
+ "role-delegation",
301
+ "role-delegation-escalation",
302
+ "security-intel",
303
+ "team-management",
304
+ "videos",
305
+ "web",
306
+ "workspace-fs-write"
307
+ ],
308
+ "outputMedium": "artifact",
309
+ "additionalOutputMedia": [
310
+ "task-note"
311
+ ]
312
+ }
313
+ },
314
+ {
315
+ "id": "evaluate",
316
+ "name": "Evaluate",
317
+ "description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
318
+ "prompt": "Open {{workPath}}/report.md and check EACH acceptance criterion, writing PASS/FAIL per criterion: (1) every sub-question from {{workPath}}/question-scope.md has a dedicated section; (2) every factual claim carries an inline citation [n] and every [n] resolves to a References entry; (3) there are at least the minimum distinct sources and they meet the authority/recency bar; (4) an explicit limitations/uncertainty section exists; (5) the executive summary is <=150 words and states the bottom line; (6) spot-check 3 citations against {{workPath}}/sources.md to confirm the claim matches the logged fact and nothing was fabricated. A report that reads well but invents or mismatches a citation FAILS.\n\nThe deliverable lives in the project's artifacts drawer — open `{{workPath}}/report.md` with `read_artifact`, not `read_file`.\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 \"Write the report\" 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 \"Write the report\" 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).",
319
+ "suggestedRole": "reviewer",
320
+ "consumes": [
321
+ {
322
+ "file": "{{workPath}}/report.md",
323
+ "artifact": true
324
+ }
325
+ ],
326
+ "advanceWhen": {
327
+ "file": "{{workPath}}/verdict.md",
328
+ "minBytes": 40,
329
+ "sniff": "nonempty",
330
+ "artifact": true
331
+ },
332
+ "gate": {
333
+ "at": "completion",
334
+ "checks": [
335
+ {
336
+ "kind": "contains",
337
+ "file": "{{workPath}}/verdict.md",
338
+ "pattern": "(?<!/\\s*)\\bPASS\\b(?!\\s*/)",
339
+ "label": "the verdict marks its criteria PASS",
340
+ "artifact": true
341
+ },
342
+ {
343
+ "kind": "notContains",
344
+ "file": "{{workPath}}/verdict.md",
345
+ "pattern": "(?<!/\\s*)\\bFAIL\\b(?!\\s*/)",
346
+ "label": "no criterion is marked FAIL",
347
+ "artifact": true
348
+ }
349
+ ],
350
+ "onReject": "write",
351
+ "maxAttempts": 3
352
+ },
353
+ "next": "finish",
354
+ "toolPolicy": {
355
+ "disallowBuiltinToolsets": [
356
+ "ai-apps",
357
+ "archives",
358
+ "audio",
359
+ "browser-automation",
360
+ "code-execution",
361
+ "craftbooks",
362
+ "data-tables",
363
+ "entity-intel",
364
+ "git",
365
+ "image-intel",
366
+ "images",
367
+ "role-delegation",
368
+ "role-delegation-escalation",
369
+ "security-intel",
370
+ "team-management",
371
+ "videos",
372
+ "web",
373
+ "workspace-fs-write"
374
+ ],
375
+ "outputMedium": "artifact",
376
+ "additionalOutputMedia": [
377
+ "task-note"
378
+ ]
379
+ }
380
+ },
381
+ {
382
+ "id": "finish",
383
+ "name": "Finish",
384
+ "description": "All acceptance criteria met. Stamp a short summary and report DONE.",
385
+ "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.",
386
+ "suggestedRole": "developer",
387
+ "terminal": true,
388
+ "toolPolicy": {
389
+ "disallowBuiltinToolsets": [
390
+ "ai-apps",
391
+ "archives",
392
+ "artifacts",
393
+ "audio",
394
+ "browser-automation",
395
+ "code-execution",
396
+ "craftbooks",
397
+ "data-tables",
398
+ "entity-intel",
399
+ "git",
400
+ "image-intel",
401
+ "images",
402
+ "role-delegation",
403
+ "role-delegation-escalation",
404
+ "security-intel",
405
+ "team-management",
406
+ "videos",
407
+ "web",
408
+ "workspace-fs-write"
409
+ ],
410
+ "outputMedium": "task-note"
411
+ }
412
+ }
413
+ ],
414
+ "version": "1.0.6",
415
+ "releasedAt": "2026-10-23T00:00:00Z",
416
+ "minGezelVersion": "1.26295"
417
+ }