@bendyline/gilde 0.3.1 → 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.
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/craftbook.json +418 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/test.json +196 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/craftbook.json +432 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/test.json +192 -0
- package/data/craftbook-templates/al/alert-rules/versions/1.0.5/craftbook.json +384 -0
- package/data/craftbook-templates/al/alert-rules/versions/1.0.5/test.json +145 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/craftbook.json +799 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/test.json +221 -0
- package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/craftbook.json +119 -0
- package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/test.json +128 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/craftbook.json +661 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/test.json +252 -0
- package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/craftbook.json +416 -0
- package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/test.json +238 -0
- package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/craftbook.json +494 -0
- package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/test.json +167 -0
- package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/craftbook.json +419 -0
- package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/test.json +172 -0
- package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/craftbook.json +285 -0
- package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/test.json +102 -0
- package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/craftbook.json +431 -0
- package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/test.json +348 -0
- package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/craftbook.json +452 -0
- package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/test.json +184 -0
- package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/craftbook.json +312 -0
- package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/test.json +87 -0
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/craftbook.json +702 -0
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/test.json +191 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/craftbook.json +480 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/test.json +176 -0
- package/data/craftbook-templates/in/investigate/versions/1.1.1/craftbook.json +85 -0
- package/data/craftbook-templates/in/investigate/versions/1.1.1/test.json +118 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.9/craftbook.json +515 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.9/test.json +140 -0
- package/data/craftbook-templates/index.json +1 -1
- package/data/craftbook-templates/ma/market-scan/versions/1.0.5/craftbook.json +480 -0
- package/data/craftbook-templates/ma/market-scan/versions/1.0.5/test.json +223 -0
- package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/craftbook.json +255 -0
- package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/test.json +140 -0
- package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/craftbook.json +270 -0
- package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/test.json +105 -0
- package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/craftbook.json +320 -0
- package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/test.json +94 -0
- package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/craftbook.json +603 -0
- package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/test.json +266 -0
- package/data/craftbook-templates/pr/press-release/versions/1.0.6/craftbook.json +450 -0
- package/data/craftbook-templates/pr/press-release/versions/1.0.6/test.json +356 -0
- package/data/craftbook-templates/raw-index.json +1 -1
- package/data/craftbook-templates/re/refactor-module/versions/2.0.7/craftbook.json +753 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.7/test.json +241 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.6/craftbook.json +339 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.6/test.json +107 -0
- package/data/craftbook-templates/re/research-report/versions/1.0.6/craftbook.json +417 -0
- package/data/craftbook-templates/re/research-report/versions/1.0.6/test.json +183 -0
- package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/craftbook.json +319 -0
- package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/test.json +87 -0
- package/data/craftbook-templates/ru/runbook/versions/1.0.5/craftbook.json +491 -0
- package/data/craftbook-templates/ru/runbook/versions/1.0.5/test.json +118 -0
- package/data/craftbook-templates/we/week-plan/versions/1.0.5/craftbook.json +313 -0
- package/data/craftbook-templates/we/week-plan/versions/1.0.5/test.json +175 -0
- package/data/gezel-templates/im/image-editor/manifest.json +21 -0
- package/data/gezel-templates/im/image-editor/versions/1.0.0/about.md +17 -0
- package/data/gezel-templates/im/image-editor/versions/1.0.0/manifest.json +14 -0
- package/data/gezel-templates/index.json +1 -1
- package/data/gezel-templates/raw-index.json +1 -1
- package/data/image-models/fl/flux-2-klein-4b-q4/manifest.json +3 -0
- package/data/image-models/index.json +1 -1
- package/data/image-models/qw/qwen-image-edit-2511-q4/manifest.json +44 -0
- package/data/image-models/qw/qwen-image-edit-2511-q4/versions/1.0.0/manifest.json +36 -0
- package/data/image-models/raw-index.json +1 -1
- package/package.json +1 -1
- package/schemas/image-model-identity.schema.json +16 -0
- package/schemas/image-model-version.schema.json +1 -0
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "corpus-synthesis",
|
|
3
|
+
"name": "Corpus Synthesis",
|
|
4
|
+
"description": "Read a provided corpus of documents and synthesize it into a single coherent overview: a planner sets the synthesis question and the extraction schema, a researcher reads every document and extracts structured notes keyed back to each source, and a copywriter synthesizes the extracts into a unified narrative organized by idea rather than by document. The ordering matters because synthesizing before reading everything privileges the first few documents, and a write-up keyed to documents instead of ideas just summarizes each file; locking a synthesis question and per-document extraction first guarantees full coverage and a real cross-document synthesis. Use this for synthesizing a folder of docs/notes/papers, 'pull together everything we know about X', cross-document summaries, knowledge consolidation, and meeting/research-note synthesis.\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. Scope the synthesis (planner) — synthesis question + per-document extraction schema → gated on artifact `{{workPath}}/scope.md` (markdown-notes)\n2. Read & extract (researcher) — structured extract per document, keyed to the source → gated on artifact `{{workPath}}/extracts.md` (markdown-notes)\n3. Synthesize (copywriter) — unified narrative organized by idea, citing sources → gated on artifact `{{workPath}}/synthesis.md` (markdown-report)\n\nSource discipline:\n\n- Synthesize only claims that appear in the supplied corpus or extraction notes.\n- Preserve source ids such as `[1]`, `[2]`, `[3]`, and `[4]` on synthesized points so readers can trace them.\n- Do not invent systems, timelines, metrics, risks, or implementation details to make the report longer.\n- When the corpus leaves a gap, name it as an open question instead of filling it with plausible detail.\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
|
+
"synthesize these documents",
|
|
8
|
+
"pull together everything on",
|
|
9
|
+
"summarize this corpus",
|
|
10
|
+
"consolidate these notes",
|
|
11
|
+
"cross-document summary"
|
|
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
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"contract": {
|
|
25
|
+
"goal": "One synthesis of the supplied documents, organized by idea rather than by document, that answers the synthesis question, surfaces contradictions and open questions, and cites the document behind every point.",
|
|
26
|
+
"deliverables": [
|
|
27
|
+
{
|
|
28
|
+
"id": "synthesis",
|
|
29
|
+
"path": "{{workPath}}/synthesis.md",
|
|
30
|
+
"artifact": true,
|
|
31
|
+
"kind": "markdown-report",
|
|
32
|
+
"description": "The synthesis: a short answer up front, one section per theme, an open questions and contradictions section, and a Sources key that maps each [n] to its document"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"grounding": {
|
|
36
|
+
"citationStyle": "numbered"
|
|
37
|
+
},
|
|
38
|
+
"criteria": [
|
|
39
|
+
{
|
|
40
|
+
"id": "substantial",
|
|
41
|
+
"kind": "acceptance",
|
|
42
|
+
"text": "The synthesis is a full document organized under several section headings",
|
|
43
|
+
"checks": [
|
|
44
|
+
{
|
|
45
|
+
"kind": "minBytes",
|
|
46
|
+
"file": "{{workPath}}/synthesis.md",
|
|
47
|
+
"bytes": 1500,
|
|
48
|
+
"artifact": true
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"kind": "contains",
|
|
52
|
+
"file": "{{workPath}}/synthesis.md",
|
|
53
|
+
"pattern": "(?:^|\\n)#{1,3}\\s+\\S[\\s\\S]*\\n#{1,3}\\s+\\S[\\s\\S]*\\n#{1,3}\\s+\\S",
|
|
54
|
+
"label": "at least three section headings",
|
|
55
|
+
"artifact": true
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "open-questions",
|
|
61
|
+
"kind": "acceptance",
|
|
62
|
+
"text": "It has a section on the open questions and contradictions across the documents",
|
|
63
|
+
"checks": [
|
|
64
|
+
{
|
|
65
|
+
"kind": "contains",
|
|
66
|
+
"file": "{{workPath}}/synthesis.md",
|
|
67
|
+
"pattern": "^#{1,4}\\s+[^\\n]*\\b(?:open questions?|contradict|tension|disagree|conflict|gaps?\\b|unknowns?|unresolved)",
|
|
68
|
+
"flags": "im",
|
|
69
|
+
"label": "an open questions or contradictions section",
|
|
70
|
+
"artifact": true
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "source-key",
|
|
76
|
+
"kind": "acceptance",
|
|
77
|
+
"text": "It ends with a Sources section that maps each [n] to the path of the document it stands for",
|
|
78
|
+
"checks": [
|
|
79
|
+
{
|
|
80
|
+
"kind": "contains",
|
|
81
|
+
"file": "{{workPath}}/synthesis.md",
|
|
82
|
+
"pattern": "(?:^|\\n)#{1,6}\\s*(?:sources|references|citations|works cited|bibliography)\\b",
|
|
83
|
+
"flags": "i",
|
|
84
|
+
"label": "a Sources or References section",
|
|
85
|
+
"artifact": true
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "cited",
|
|
91
|
+
"kind": "quality",
|
|
92
|
+
"text": "Its points cite at least two documents, and every cited file exists",
|
|
93
|
+
"checks": [
|
|
94
|
+
{
|
|
95
|
+
"kind": "citationsResolve",
|
|
96
|
+
"file": "{{workPath}}/synthesis.md",
|
|
97
|
+
"minCitations": 2,
|
|
98
|
+
"artifact": true
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "grounded",
|
|
104
|
+
"kind": "quality",
|
|
105
|
+
"text": "Every number, date and quote appears in the document it cites; nothing checkable is asserted that the documents do not show",
|
|
106
|
+
"checks": [
|
|
107
|
+
{
|
|
108
|
+
"kind": "claimsGrounded",
|
|
109
|
+
"file": "{{workPath}}/synthesis.md",
|
|
110
|
+
"artifact": true
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": "coverage",
|
|
116
|
+
"kind": "quality",
|
|
117
|
+
"enforce": "advisory",
|
|
118
|
+
"text": "Every document in the corpus was read and is cited somewhere in the synthesis",
|
|
119
|
+
"judge": {
|
|
120
|
+
"rubric": "Does the synthesis draw on and cite every document in the corpus, rather than leaning on the first few?"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "by-idea",
|
|
125
|
+
"kind": "quality",
|
|
126
|
+
"enforce": "advisory",
|
|
127
|
+
"text": "It opens with a one-paragraph answer and weaves the documents together by theme, rather than summarizing each file in turn",
|
|
128
|
+
"judge": {
|
|
129
|
+
"rubric": "Does the synthesis open with a direct answer and organize its body by idea across documents, rather than as a file-by-file summary?"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"steps": [
|
|
135
|
+
{
|
|
136
|
+
"id": "scope",
|
|
137
|
+
"name": "Scope the synthesis",
|
|
138
|
+
"description": "synthesis question + per-document extraction schema",
|
|
139
|
+
"prompt": "1. List the corpus (every document/file in scope) and state the synthesis question in one sentence — what unified understanding the output must deliver. 2. Define a per-document extraction schema: for each doc capture source id, key claims/findings, relevant data points, and any stance or contradiction. 3. Decide the output structure: organize by theme/idea (3-6 themes), not by document, plus an open-questions/contradictions section. 4. Write an acceptance-criteria checklist (e.g. 'every document in the corpus is read and extracted', 'output is organized by theme not by file', 'each synthesized point cites the document(s) it came from', 'contradictions across documents are surfaced', 'nothing is asserted that is not in the corpus'). 5. Record decisions. Call write_task_note with the corpus list, schema, themes, and checklist; write the same to {{workPath}}/scope.md.\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.",
|
|
140
|
+
"suggestedRole": "planner",
|
|
141
|
+
"advanceWhen": {
|
|
142
|
+
"file": "{{workPath}}/scope.md",
|
|
143
|
+
"minBytes": 1,
|
|
144
|
+
"sniff": "nonempty",
|
|
145
|
+
"artifact": true
|
|
146
|
+
},
|
|
147
|
+
"gate": {
|
|
148
|
+
"at": "completion",
|
|
149
|
+
"checks": [
|
|
150
|
+
{
|
|
151
|
+
"kind": "minBytes",
|
|
152
|
+
"file": "{{workPath}}/scope.md",
|
|
153
|
+
"bytes": 120,
|
|
154
|
+
"artifact": true
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"kind": "sniff",
|
|
158
|
+
"file": "{{workPath}}/scope.md",
|
|
159
|
+
"sniff": "nonempty",
|
|
160
|
+
"artifact": true
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"onReject": "scope",
|
|
164
|
+
"maxAttempts": 3
|
|
165
|
+
},
|
|
166
|
+
"next": "read",
|
|
167
|
+
"toolPolicy": {
|
|
168
|
+
"disallowBuiltinToolsets": [
|
|
169
|
+
"ai-apps",
|
|
170
|
+
"archives",
|
|
171
|
+
"audio",
|
|
172
|
+
"browser-automation",
|
|
173
|
+
"code-execution",
|
|
174
|
+
"craftbooks",
|
|
175
|
+
"data-tables",
|
|
176
|
+
"entity-intel",
|
|
177
|
+
"git",
|
|
178
|
+
"image-intel",
|
|
179
|
+
"images",
|
|
180
|
+
"role-delegation",
|
|
181
|
+
"role-delegation-escalation",
|
|
182
|
+
"security-intel",
|
|
183
|
+
"team-management",
|
|
184
|
+
"videos",
|
|
185
|
+
"web",
|
|
186
|
+
"workspace-fs-write"
|
|
187
|
+
],
|
|
188
|
+
"outputMedium": "artifact",
|
|
189
|
+
"additionalOutputMedia": [
|
|
190
|
+
"task-note"
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "read",
|
|
196
|
+
"name": "Read & extract",
|
|
197
|
+
"description": "structured extract per document, keyed to the source",
|
|
198
|
+
"prompt": "1. Open and read EVERY document in the corpus — do not skip or sample. 2. For each, append an extract block to {{workPath}}/extracts.md following the schema: source id [n], its key claims/findings, supporting data points (with the figure), and any stance or point where it conflicts with another document. 3. Tag each extract with which output theme(s) it speaks to. 4. As you read, note explicit cross-document agreements and contradictions. 5. Stay faithful to the source — capture what the document says, not your opinion, and quote load-bearing passages. Good looks like an extract file complete enough that the writer never reopens the originals. Do not write the synthesis yet.\n\nThe deliverable `{{workPath}}/extracts.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.",
|
|
199
|
+
"suggestedRole": "researcher",
|
|
200
|
+
"advanceWhen": {
|
|
201
|
+
"file": "{{workPath}}/extracts.md",
|
|
202
|
+
"minBytes": 1,
|
|
203
|
+
"sniff": "nonempty",
|
|
204
|
+
"artifact": true
|
|
205
|
+
},
|
|
206
|
+
"gate": {
|
|
207
|
+
"at": "completion",
|
|
208
|
+
"checks": [
|
|
209
|
+
{
|
|
210
|
+
"kind": "minBytes",
|
|
211
|
+
"file": "{{workPath}}/extracts.md",
|
|
212
|
+
"bytes": 120,
|
|
213
|
+
"artifact": true
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "sniff",
|
|
217
|
+
"file": "{{workPath}}/extracts.md",
|
|
218
|
+
"sniff": "nonempty",
|
|
219
|
+
"artifact": true
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"onReject": "read",
|
|
223
|
+
"maxAttempts": 3
|
|
224
|
+
},
|
|
225
|
+
"next": "synthesize",
|
|
226
|
+
"toolPolicy": {
|
|
227
|
+
"disallowBuiltinToolsets": [
|
|
228
|
+
"ai-apps",
|
|
229
|
+
"archives",
|
|
230
|
+
"audio",
|
|
231
|
+
"browser-automation",
|
|
232
|
+
"code-execution",
|
|
233
|
+
"craftbooks",
|
|
234
|
+
"data-tables",
|
|
235
|
+
"entity-intel",
|
|
236
|
+
"git",
|
|
237
|
+
"image-intel",
|
|
238
|
+
"images",
|
|
239
|
+
"role-delegation",
|
|
240
|
+
"role-delegation-escalation",
|
|
241
|
+
"security-intel",
|
|
242
|
+
"team-management",
|
|
243
|
+
"videos",
|
|
244
|
+
"workspace-fs-write"
|
|
245
|
+
],
|
|
246
|
+
"outputMedium": "artifact"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": "synthesize",
|
|
251
|
+
"name": "Synthesize",
|
|
252
|
+
"description": "unified narrative organized by idea, citing sources",
|
|
253
|
+
"prompt": "1. Write {{workPath}}/synthesis.md organized by the locked themes (one section each), weaving together what the documents collectively say. 2. Each synthesized point cites the document(s) [n] it draws from so a reader can trace it. 3. Open with a 1-paragraph answer to the synthesis question, then the thematic body, then an 'Open questions & contradictions' section that surfaces where the corpus disagrees or leaves gaps. 4. Synthesize across documents — do NOT produce a per-file summary list. 5. Assert only what the corpus supports (from {{workPath}}/extracts.md). 6. Add a source key so every [n] maps to a document. 7. On a loop-back, fix only the named gaps. 8. Call write_task_note with the synthesis path and which criteria now pass.\n\nBefore working, open the artifact input `{{workPath}}/extracts.md` with `read_artifact`; do not look for it in the workspace.\n\nThe deliverable `{{workPath}}/synthesis.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.",
|
|
254
|
+
"suggestedRole": "copywriter",
|
|
255
|
+
"consumes": [
|
|
256
|
+
{
|
|
257
|
+
"file": "{{workPath}}/extracts.md",
|
|
258
|
+
"artifact": true
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"advanceWhen": {
|
|
262
|
+
"file": "{{workPath}}/synthesis.md",
|
|
263
|
+
"minBytes": 1,
|
|
264
|
+
"sniff": "nonempty",
|
|
265
|
+
"artifact": true
|
|
266
|
+
},
|
|
267
|
+
"gate": {
|
|
268
|
+
"at": "completion",
|
|
269
|
+
"checks": [
|
|
270
|
+
{
|
|
271
|
+
"kind": "minBytes",
|
|
272
|
+
"file": "{{workPath}}/synthesis.md",
|
|
273
|
+
"bytes": 1500,
|
|
274
|
+
"artifact": true
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"kind": "contains",
|
|
278
|
+
"file": "{{workPath}}/synthesis.md",
|
|
279
|
+
"pattern": "(?:^|\\n)#{1,3}\\s+\\S",
|
|
280
|
+
"flags": "i",
|
|
281
|
+
"label": "at least one markdown heading",
|
|
282
|
+
"artifact": true
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"onReject": "synthesize",
|
|
286
|
+
"maxAttempts": 4
|
|
287
|
+
},
|
|
288
|
+
"next": "evaluate",
|
|
289
|
+
"toolPolicy": {
|
|
290
|
+
"disallowBuiltinToolsets": [
|
|
291
|
+
"ai-apps",
|
|
292
|
+
"archives",
|
|
293
|
+
"audio",
|
|
294
|
+
"browser-automation",
|
|
295
|
+
"code-execution",
|
|
296
|
+
"craftbooks",
|
|
297
|
+
"data-tables",
|
|
298
|
+
"entity-intel",
|
|
299
|
+
"git",
|
|
300
|
+
"image-intel",
|
|
301
|
+
"images",
|
|
302
|
+
"role-delegation",
|
|
303
|
+
"role-delegation-escalation",
|
|
304
|
+
"security-intel",
|
|
305
|
+
"team-management",
|
|
306
|
+
"videos",
|
|
307
|
+
"web",
|
|
308
|
+
"workspace-fs-write"
|
|
309
|
+
],
|
|
310
|
+
"outputMedium": "artifact",
|
|
311
|
+
"additionalOutputMedia": [
|
|
312
|
+
"task-note"
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"id": "evaluate",
|
|
318
|
+
"name": "Evaluate",
|
|
319
|
+
"description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
|
|
320
|
+
"prompt": "Open {{workPath}}/synthesis.md and check EACH criterion PASS/FAIL: (1) every document in {{workPath}}/scope.md appears in {{workPath}}/extracts.md (full coverage) and is cited somewhere in the synthesis; (2) the output is organized by theme, not file-by-file; (3) each synthesized point cites its source document(s); (4) an open-questions/contradictions section surfaces real cross-document disagreement; (5) spot-check 3 points against {{workPath}}/extracts.md to confirm nothing was asserted beyond the corpus. A per-file summary list, or a synthesis missing documents, FAILS.\n\nThe deliverable lives in the project's artifacts drawer — open `{{workPath}}/synthesis.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 \"Synthesize\" 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 \"Synthesize\" 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).",
|
|
321
|
+
"suggestedRole": "reviewer",
|
|
322
|
+
"consumes": [
|
|
323
|
+
{
|
|
324
|
+
"file": "{{workPath}}/synthesis.md",
|
|
325
|
+
"artifact": true
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"advanceWhen": {
|
|
329
|
+
"file": "{{workPath}}/verdict.md",
|
|
330
|
+
"minBytes": 40,
|
|
331
|
+
"sniff": "nonempty",
|
|
332
|
+
"artifact": true
|
|
333
|
+
},
|
|
334
|
+
"gate": {
|
|
335
|
+
"at": "completion",
|
|
336
|
+
"checks": [
|
|
337
|
+
{
|
|
338
|
+
"kind": "contains",
|
|
339
|
+
"file": "{{workPath}}/verdict.md",
|
|
340
|
+
"pattern": "(?<!/\\s*)\\bPASS\\b(?!\\s*/)",
|
|
341
|
+
"label": "the verdict marks its criteria PASS",
|
|
342
|
+
"artifact": true
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"kind": "notContains",
|
|
346
|
+
"file": "{{workPath}}/verdict.md",
|
|
347
|
+
"pattern": "(?<!/\\s*)\\bFAIL\\b(?!\\s*/)",
|
|
348
|
+
"label": "no criterion is marked FAIL",
|
|
349
|
+
"artifact": true
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"onReject": "synthesize",
|
|
353
|
+
"maxAttempts": 3
|
|
354
|
+
},
|
|
355
|
+
"next": "finish",
|
|
356
|
+
"toolPolicy": {
|
|
357
|
+
"disallowBuiltinToolsets": [
|
|
358
|
+
"ai-apps",
|
|
359
|
+
"archives",
|
|
360
|
+
"audio",
|
|
361
|
+
"browser-automation",
|
|
362
|
+
"code-execution",
|
|
363
|
+
"craftbooks",
|
|
364
|
+
"data-tables",
|
|
365
|
+
"entity-intel",
|
|
366
|
+
"git",
|
|
367
|
+
"image-intel",
|
|
368
|
+
"images",
|
|
369
|
+
"role-delegation",
|
|
370
|
+
"role-delegation-escalation",
|
|
371
|
+
"security-intel",
|
|
372
|
+
"team-management",
|
|
373
|
+
"videos",
|
|
374
|
+
"web",
|
|
375
|
+
"workspace-fs-write"
|
|
376
|
+
],
|
|
377
|
+
"outputMedium": "artifact",
|
|
378
|
+
"additionalOutputMedia": [
|
|
379
|
+
"task-note"
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"id": "finish",
|
|
385
|
+
"name": "Finish",
|
|
386
|
+
"description": "All acceptance criteria met. Stamp a short summary and report DONE.",
|
|
387
|
+
"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.",
|
|
388
|
+
"suggestedRole": "developer",
|
|
389
|
+
"terminal": true,
|
|
390
|
+
"toolPolicy": {
|
|
391
|
+
"disallowBuiltinToolsets": [
|
|
392
|
+
"ai-apps",
|
|
393
|
+
"archives",
|
|
394
|
+
"artifacts",
|
|
395
|
+
"audio",
|
|
396
|
+
"browser-automation",
|
|
397
|
+
"code-execution",
|
|
398
|
+
"craftbooks",
|
|
399
|
+
"data-tables",
|
|
400
|
+
"entity-intel",
|
|
401
|
+
"git",
|
|
402
|
+
"image-intel",
|
|
403
|
+
"images",
|
|
404
|
+
"role-delegation",
|
|
405
|
+
"role-delegation-escalation",
|
|
406
|
+
"security-intel",
|
|
407
|
+
"team-management",
|
|
408
|
+
"videos",
|
|
409
|
+
"web",
|
|
410
|
+
"workspace-fs-write"
|
|
411
|
+
],
|
|
412
|
+
"outputMedium": "task-note"
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"version": "1.0.5",
|
|
417
|
+
"releasedAt": "2026-10-23T00:00:00Z",
|
|
418
|
+
"minGezelVersion": "1.26295"
|
|
419
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "Cross-document synthesis from four notes",
|
|
4
|
+
"objective": "Measure whether the corpus-synthesis craftbook reads every document, organizes by theme, cites sources, and surfaces contradictions.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"data"
|
|
7
|
+
],
|
|
8
|
+
"prompt": "In the `Corpus Synthesis Eval` project, read every file under `source/corpus/` and write `tasks/eval/synthesis.md` answering: what should HarborCRM change before expanding guided returns intake? Organize by theme, cite sources [1]-[4], surface contradictions/open questions, and do not write a file-by-file summary. Use only facts from the four seeded notes. Do not invent inventory systems, product defects, return-rate targets, accounting treatments, SLA durations, or operational details beyond the corpus.",
|
|
9
|
+
"setup": {
|
|
10
|
+
"projectName": "Corpus Synthesis Eval",
|
|
11
|
+
"about": "Self-contained eval project for corpus-synthesis. Four short source documents are in workspace/source/corpus.",
|
|
12
|
+
"missionObjectives": "Synthesize all seeded documents into a thematic answer with source citations, contradictions, and open questions.",
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "source/corpus/1-support.md",
|
|
16
|
+
"content": "[1] Support notes: Guided intake reduced repetitive questions, but status silence after photo submission is now the top complaint. Agents want auto-status emails and clearer reason codes."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "source/corpus/2-warehouse.md",
|
|
20
|
+
"content": "[2] Warehouse notes: barcode exceptions slow return processing. Training is needed before national rollout. Monday mornings breach SLA when photo review queue is full."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"path": "source/corpus/3-finance.md",
|
|
24
|
+
"content": "[3] Finance notes: refund leakage fell from 14.2% to 8.9%, but Finance requires a weekly exception export before approving automation."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "source/corpus/4-product.md",
|
|
28
|
+
"content": "[4] Product notes: West warehouse expansion is preferred for 30 days. Product wants to defer national rollout until exports are reliable, while Sales wants a July national launch."
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"worker": {
|
|
32
|
+
"name": "Maren",
|
|
33
|
+
"role": "Research Synthesizer"
|
|
34
|
+
},
|
|
35
|
+
"craftbookParams": {
|
|
36
|
+
"workPath": "tasks/eval"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"mocks": [],
|
|
40
|
+
"success": {
|
|
41
|
+
"summary": "workspace/synthesis.md is organized by theme, cites all four source docs, surfaces contradictions/open questions, and avoids per-file summaries.",
|
|
42
|
+
"deliverables": [
|
|
43
|
+
{
|
|
44
|
+
"path": "tasks/eval/synthesis.md",
|
|
45
|
+
"kind": "markdown-report",
|
|
46
|
+
"minBytes": 1700,
|
|
47
|
+
"checks": [
|
|
48
|
+
{
|
|
49
|
+
"kind": "contains",
|
|
50
|
+
"file": "tasks/eval/synthesis.md",
|
|
51
|
+
"pattern": "(?:^|\\n)#{1,3}\\s+\\S",
|
|
52
|
+
"flags": "i",
|
|
53
|
+
"artifact": true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"kind": "contains",
|
|
57
|
+
"file": "tasks/eval/synthesis.md",
|
|
58
|
+
"pattern": "\\[1\\]|\\[2\\]|\\[3\\]|\\[4\\]",
|
|
59
|
+
"flags": "i",
|
|
60
|
+
"artifact": true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"kind": "contains",
|
|
64
|
+
"file": "tasks/eval/synthesis.md",
|
|
65
|
+
"pattern": "status silence|barcode|Finance|exception export|West warehouse",
|
|
66
|
+
"flags": "i",
|
|
67
|
+
"artifact": true
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"kind": "contains",
|
|
71
|
+
"file": "tasks/eval/synthesis.md",
|
|
72
|
+
"pattern": "status silence[\\s\\S]{0,400}auto-status emails|auto-status emails[\\s\\S]{0,400}status silence|reason codes",
|
|
73
|
+
"flags": "i",
|
|
74
|
+
"label": "include support status-silence and auto-status/reason-code needs",
|
|
75
|
+
"artifact": true
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"kind": "contains",
|
|
79
|
+
"file": "tasks/eval/synthesis.md",
|
|
80
|
+
"pattern": "barcode[\\s\\S]{0,400}training|training[\\s\\S]{0,400}barcode|Monday[\\s\\S]{0,250}SLA",
|
|
81
|
+
"flags": "i",
|
|
82
|
+
"label": "include warehouse barcode training or Monday SLA risk",
|
|
83
|
+
"artifact": true
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"kind": "contains",
|
|
87
|
+
"file": "tasks/eval/synthesis.md",
|
|
88
|
+
"pattern": "Finance[\\s\\S]{0,400}weekly exception export|weekly exception export[\\s\\S]{0,400}Finance",
|
|
89
|
+
"flags": "i",
|
|
90
|
+
"label": "include Finance weekly exception export approval dependency",
|
|
91
|
+
"artifact": true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"kind": "contains",
|
|
95
|
+
"file": "tasks/eval/synthesis.md",
|
|
96
|
+
"pattern": "West warehouse[\\s\\S]{0,400}30[ -]?days?|30[ -]?days?[\\s\\S]{0,400}West warehouse",
|
|
97
|
+
"flags": "i",
|
|
98
|
+
"label": "include the 30-day West warehouse expansion recommendation",
|
|
99
|
+
"artifact": true
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"kind": "contains",
|
|
103
|
+
"file": "tasks/eval/synthesis.md",
|
|
104
|
+
"pattern": "Sales[\\s\\S]{0,500}July[\\s\\S]{0,500}(Product|defer|contradiction|trade-off)|Product[\\s\\S]{0,500}(Sales|July)",
|
|
105
|
+
"flags": "i",
|
|
106
|
+
"label": "surface Product vs Sales rollout tension",
|
|
107
|
+
"artifact": true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"kind": "contains",
|
|
111
|
+
"file": "tasks/eval/synthesis.md",
|
|
112
|
+
"pattern": "theme|recommendation|open questions|contradictions|trade-off",
|
|
113
|
+
"flags": "i",
|
|
114
|
+
"artifact": true
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"kind": "contains",
|
|
118
|
+
"file": "tasks/eval/synthesis.md",
|
|
119
|
+
"pattern": "14\\.2%|8\\.9%|30 days|July",
|
|
120
|
+
"flags": "i",
|
|
121
|
+
"artifact": true
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"kind": "notContains",
|
|
125
|
+
"file": "tasks/eval/synthesis.md",
|
|
126
|
+
"pattern": "Document 1 summary|File 1 summary|source-by-source",
|
|
127
|
+
"flags": "i",
|
|
128
|
+
"artifact": true
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"kind": "notContains",
|
|
132
|
+
"file": "tasks/eval/synthesis.md",
|
|
133
|
+
"pattern": "PLM|resalable|restocking fees|warranty budget|target return rate|defect rate|returned goods inventory|dynamic fee|slotting|inventory management|SLA[^\\n]{0,120}30 days|30 days[^\\n]{0,120}SLA",
|
|
134
|
+
"flags": "i",
|
|
135
|
+
"label": "do not invent systems, accounting treatments, defect metrics, or SLA durations beyond the seeded corpus",
|
|
136
|
+
"artifact": true
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"artifact": true
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"rubric": {
|
|
144
|
+
"artifact": {
|
|
145
|
+
"path": "tasks/eval/synthesis.md",
|
|
146
|
+
"kind": "markdown"
|
|
147
|
+
},
|
|
148
|
+
"axes": [
|
|
149
|
+
{
|
|
150
|
+
"name": "accuracy",
|
|
151
|
+
"description": "Computed figures are correct against the seeded records."
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "grounding",
|
|
155
|
+
"description": "Every claim traces to the seeded data — nothing invented."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "structure",
|
|
159
|
+
"description": "Tables and sections make the analysis checkable at a glance."
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "actionability",
|
|
163
|
+
"description": "Recommendations follow from the findings and are concretely doable."
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"qualityFocus": [
|
|
168
|
+
"full corpus coverage",
|
|
169
|
+
"theme synthesis",
|
|
170
|
+
"source citations"
|
|
171
|
+
]
|
|
172
|
+
}
|