@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.
- package/authoring/tactical/wave.json +18 -18
- 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.6/craftbook.json +736 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/test.json +221 -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.5/craftbook.json +607 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/test.json +252 -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/de/dependency-upgrade/versions/1.0.6/craftbook.json +625 -0
- package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/test.json +235 -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/fl/flaky-test-fix/versions/1.0.5/craftbook.json +720 -0
- package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/test.json +239 -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/pe/perf-optimization/versions/2.0.5/craftbook.json +699 -0
- package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/test.json +235 -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.6/craftbook.json +699 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.6/test.json +241 -0
- 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/sc/schema-migration/versions/2.0.5/craftbook.json +626 -0
- package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/test.json +225 -0
- package/data/craftbook-templates/sh/ship/versions/1.1.4/craftbook.json +353 -0
- package/data/craftbook-templates/sh/ship/versions/1.1.4/test.json +235 -0
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/craftbook.json +596 -0
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/test.json +195 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/craftbook.json +596 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/test.json +221 -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,221 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "Bug fix with red-then-green proof",
|
|
4
|
+
"objective": "The craftbook drives a disciplined fix of a seeded boundary bug: a failing reproduction test written into the real test layout, the smallest change at the real defect site, a green suite afterwards, and an enforced review — all verified mechanically, including a mutant run proving the regression guard bites.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"code",
|
|
7
|
+
"bug-fix",
|
|
8
|
+
"tdd",
|
|
9
|
+
"tactical-fleet"
|
|
10
|
+
],
|
|
11
|
+
"prompt": "Use the Reproduce-Then-Fix a Bug craftbook for this: customers report that buying exactly 10 of an item does not get the bulk discount, but the pricing page promises the discount at 10 or more. The report is in source/bug-report.md. Reproduce it with a failing test first, then fix it properly.",
|
|
12
|
+
"setup": {
|
|
13
|
+
"projectName": "Orderly Pricing",
|
|
14
|
+
"about": "A tiny order-pricing module for a web shop. Tests run with `npm run test` (node --test).",
|
|
15
|
+
"files": [
|
|
16
|
+
{
|
|
17
|
+
"path": "package.json",
|
|
18
|
+
"content": "{\n \"name\": \"orderly\",\n \"private\": true,\n \"version\": \"1.0.0\",\n \"type\": \"module\",\n \"scripts\": {\n \"test\": \"node --test\"\n }\n}\n"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "src/pricing.js",
|
|
22
|
+
"content": "const BULK_THRESHOLD = 10;\nconst BULK_DISCOUNT = 0.15;\n\nexport function lineTotal(unitPrice, qty) {\n if (!Number.isFinite(unitPrice) || unitPrice < 0) throw new Error('bad unitPrice');\n if (!Number.isInteger(qty) || qty < 0) throw new Error('bad qty');\n const subtotal = unitPrice * qty;\n if (qty > BULK_THRESHOLD) {\n return round2(subtotal * (1 - BULK_DISCOUNT));\n }\n return round2(subtotal);\n}\n\nfunction round2(value) {\n return Math.round(value * 100) / 100;\n}\n"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "tests/pricing.test.mjs",
|
|
26
|
+
"content": "import assert from 'node:assert/strict';\nimport { test } from 'node:test';\nimport { lineTotal } from '../src/pricing.js';\n\ntest('small orders pay full price', () => {\n assert.equal(lineTotal(4, 5), 20);\n});\n\ntest('large orders get the bulk discount', () => {\n assert.equal(lineTotal(10, 20), 170);\n});\n\ntest('rejects bad quantities', () => {\n assert.throws(() => lineTotal(4, -1));\n});\n"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "source/bug-report.md",
|
|
30
|
+
"content": "# Bug report\n\nFrom support: \"Our pricing page says 'buy 10 or more, save 15%'. A customer bought exactly 10 units at 8.00 and was charged 80.00 - no discount. Buying 11 units gives the discount. Exactly 10 does not.\"\n\nExpected: 10 units at 8.00 with the 15% bulk discount = 68.00.\nActual: charged the full 80.00.\n"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "tests/verify-pricing.mjs",
|
|
34
|
+
"content": "import assert from 'node:assert/strict';\nimport { execFileSync } from 'node:child_process';\nimport { cpSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { lineTotal } from '../src/pricing.js';\n\n// 1) Behavior: the boundary is fixed and the neighborhood still holds.\nassert.equal(lineTotal(8, 10), 68, 'exactly 10 units must get the bulk discount');\nassert.equal(lineTotal(8, 11), 74.8, 'above the threshold keeps the discount');\nassert.equal(lineTotal(8, 9), 72, 'below the threshold pays full price');\nassert.equal(lineTotal(4, 5), 20, 'small orders unchanged');\nconsole.log('BUGFIX_ORACLE behavior ok');\n\n// 2) Regression guard bites: rebuild the tree with the ORIGINAL seeded\n// defect and the test suite must now FAIL - proof that a reproduction\n// test exists and would catch a revert. The current tree's suite must\n// pass (green after the fix).\nconst root = process.cwd();\nconst mutantRoot = join(root, '.oracle-mutant');\nrmSync(mutantRoot, { recursive: true, force: true });\nmkdirSync(join(mutantRoot, 'src'), { recursive: true });\ncpSync(join(root, 'tests'), join(mutantRoot, 'tests'), { recursive: true });\nrmSync(join(mutantRoot, 'tests', 'verify-pricing.mjs'), { force: true });\ncpSync(join(root, 'package.json'), join(mutantRoot, 'package.json'));\nconst current = readFileSync(join(root, 'src', 'pricing.js'), 'utf8');\nconst mutant = current.replace(/qty\\s*>=\\s*BULK_THRESHOLD/g, 'qty > BULK_THRESHOLD').replace(/qty\\s*>=\\s*10/g, 'qty > 10');\nassert.notEqual(mutant, current, 'could not re-seed the defect - the fix should have made the threshold inclusive');\nwriteFileSync(join(mutantRoot, 'src', 'pricing.js'), mutant);\n\nfunction runSuite(cwd) {\n try {\n execFileSync(process.execPath, ['--test'], { cwd, stdio: 'pipe', timeout: 30000 });\n return 0;\n } catch (err) {\n return typeof err.status === 'number' ? err.status : 1;\n }\n}\n\nassert.equal(runSuite(root), 0, 'the suite must be green on the fixed tree');\nconsole.log('BUGFIX_ORACLE suite green');\nassert.notEqual(runSuite(mutantRoot), 0, 'reverting the fix must make at least one test fail - the regression guard is missing or toothless');\nconsole.log('BUGFIX_ORACLE mutant caught');\nconst testFiles = readdirSync(join(root, 'tests')).filter((f) => f.endsWith('.mjs') && f !== 'verify-pricing.mjs');\nassert.ok(testFiles.length >= 1, 'test layout missing');\nconsole.log('BUGFIX_ORACLE done');\n",
|
|
35
|
+
"surface": "harness"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"craftbookParams": {
|
|
39
|
+
"scope": "Buying exactly 10 units does not get the bulk discount; see source/bug-report.md."
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"mocks": [],
|
|
43
|
+
"success": {
|
|
44
|
+
"summary": "The seeded boundary defect is fixed at the real site, the suite is green, a regression test catches a revert (mutant run), and every fleet artifact exists with honest citations.",
|
|
45
|
+
"deliverables": [
|
|
46
|
+
{
|
|
47
|
+
"path": "{{task.dir}}/repro.md",
|
|
48
|
+
"kind": "markdown-notes",
|
|
49
|
+
"artifact": true,
|
|
50
|
+
"minBytes": 500,
|
|
51
|
+
"checks": [
|
|
52
|
+
{
|
|
53
|
+
"kind": "contains",
|
|
54
|
+
"file": "{{task.dir}}/repro.md",
|
|
55
|
+
"pattern": "^##\\s+Symptom[\\s\\S]*^##\\s+Repro command[\\s\\S]*^##\\s+Expected[\\s\\S]*^##\\s+Actual[\\s\\S]*^##\\s+Red evidence",
|
|
56
|
+
"flags": "im",
|
|
57
|
+
"label": "reproduction sections in order"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "citationsResolve",
|
|
61
|
+
"file": "{{task.dir}}/repro.md",
|
|
62
|
+
"minCitations": 2,
|
|
63
|
+
"artifact": true
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"path": "{{task.dir}}/diagnosis.md",
|
|
69
|
+
"kind": "markdown-notes",
|
|
70
|
+
"artifact": true,
|
|
71
|
+
"minBytes": 600,
|
|
72
|
+
"checks": [
|
|
73
|
+
{
|
|
74
|
+
"kind": "contains",
|
|
75
|
+
"file": "{{task.dir}}/diagnosis.md",
|
|
76
|
+
"pattern": "^##\\s+Defect site[\\s\\S]*^##\\s+Causal chain[\\s\\S]*^##\\s+Siblings checked",
|
|
77
|
+
"flags": "im",
|
|
78
|
+
"label": "diagnosis sections in order"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"kind": "contains",
|
|
82
|
+
"file": "{{task.dir}}/diagnosis.md",
|
|
83
|
+
"pattern": "src/pricing\\.js",
|
|
84
|
+
"label": "names the real defect site"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"path": "{{task.dir}}/fix-notes.md",
|
|
90
|
+
"kind": "markdown-notes",
|
|
91
|
+
"artifact": true,
|
|
92
|
+
"minBytes": 700,
|
|
93
|
+
"checks": [
|
|
94
|
+
{
|
|
95
|
+
"kind": "contains",
|
|
96
|
+
"file": "{{task.dir}}/fix-notes.md",
|
|
97
|
+
"pattern": "^##\\s+Problem[\\s\\S]*^##\\s+Change[\\s\\S]*^##\\s+Files touched[\\s\\S]*^##\\s+Regression coverage[\\s\\S]*^##\\s+Risk[\\s\\S]*^##\\s+How to verify",
|
|
98
|
+
"flags": "im",
|
|
99
|
+
"label": "fix-notes sections in order"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"kind": "citationsResolve",
|
|
103
|
+
"file": "{{task.dir}}/fix-notes.md",
|
|
104
|
+
"minCitations": 2,
|
|
105
|
+
"artifact": true
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"path": "{{task.dir}}/validation.md",
|
|
111
|
+
"kind": "markdown-notes",
|
|
112
|
+
"artifact": true,
|
|
113
|
+
"minBytes": 400,
|
|
114
|
+
"checks": [
|
|
115
|
+
{
|
|
116
|
+
"kind": "contains",
|
|
117
|
+
"file": "{{task.dir}}/validation.md",
|
|
118
|
+
"pattern": "^##\\s+Repro re-run[\\s\\S]*^##\\s+Suite[\\s\\S]*^##\\s+Result",
|
|
119
|
+
"flags": "im",
|
|
120
|
+
"label": "validation sections in order"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"path": "{{task.dir}}/review.md",
|
|
126
|
+
"kind": "markdown-report",
|
|
127
|
+
"artifact": true,
|
|
128
|
+
"minBytes": 400,
|
|
129
|
+
"checks": [
|
|
130
|
+
{
|
|
131
|
+
"kind": "contains",
|
|
132
|
+
"file": "{{task.dir}}/review.md",
|
|
133
|
+
"pattern": "Verdict:\\s*(?:PASS|REVISE)",
|
|
134
|
+
"flags": "i",
|
|
135
|
+
"label": "explicit reviewer verdict"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"checks": [
|
|
141
|
+
{
|
|
142
|
+
"kind": "notContains",
|
|
143
|
+
"file": "src/pricing.js",
|
|
144
|
+
"pattern": "qty\\s*>\\s*BULK_THRESHOLD|qty\\s*>\\s*10\\b",
|
|
145
|
+
"label": "the seeded exclusive-threshold defect is gone"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"kind": "sourceParses",
|
|
149
|
+
"file": "src/pricing.js"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"kind": "nodeRuns",
|
|
153
|
+
"file": "tests/pricing.test.mjs"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"kind": "nodeScriptPasses",
|
|
157
|
+
"script": "tests/verify-pricing.mjs",
|
|
158
|
+
"timeoutMs": 60000,
|
|
159
|
+
"requiredOutput": [
|
|
160
|
+
{
|
|
161
|
+
"pattern": "BUGFIX_ORACLE behavior ok",
|
|
162
|
+
"label": "boundary behavior fixed"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"pattern": "BUGFIX_ORACLE suite green",
|
|
166
|
+
"label": "suite green on the fixed tree"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"pattern": "BUGFIX_ORACLE mutant caught",
|
|
170
|
+
"label": "regression guard catches a revert"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"taskNotes": {
|
|
176
|
+
"minBytes": 120,
|
|
177
|
+
"checks": [
|
|
178
|
+
{
|
|
179
|
+
"kind": "contains",
|
|
180
|
+
"file": "task-notes.md",
|
|
181
|
+
"pattern": "\\bDONE\\b[\\s\\S]*(npm\\s+run\\s+test|node\\s+--test)",
|
|
182
|
+
"flags": "i",
|
|
183
|
+
"label": "DONE note names the real test command"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
"taskGraph": {
|
|
188
|
+
"requireCraftbookTask": true,
|
|
189
|
+
"requireTerminalStep": true
|
|
190
|
+
},
|
|
191
|
+
"unchangedFixtures": [
|
|
192
|
+
"source/bug-report.md",
|
|
193
|
+
"package.json"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"rubric": {
|
|
197
|
+
"artifact": {
|
|
198
|
+
"path": "{{task.dir}}/fix-notes.md",
|
|
199
|
+
"kind": "markdown"
|
|
200
|
+
},
|
|
201
|
+
"axes": [
|
|
202
|
+
{
|
|
203
|
+
"name": "Repro-first discipline",
|
|
204
|
+
"description": "A failing test was genuinely written and run before the fix, in the project's real test layout, and the red evidence quotes a real run rather than a claim."
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "Fix minimality",
|
|
208
|
+
"description": "The change is the smallest correct edit at the real defect site; no special-casing of the reported input, no unrelated churn."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "Honest verification",
|
|
212
|
+
"description": "Validation re-ran the original reproduction, distinguishes verified results from anything unverified, and the review graded evidence rather than summaries."
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"qualityFocus": [
|
|
217
|
+
"red-then-green proof",
|
|
218
|
+
"real-path citations",
|
|
219
|
+
"enforced review loop"
|
|
220
|
+
]
|
|
221
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "changelog-writeup",
|
|
3
|
+
"name": "Human-Readable Changelog",
|
|
4
|
+
"description": "Turn raw commit/PR history into a human-readable changelog that users actually understand: a developer first gathers and triages the merged changes since the last release into user-facing buckets (Added, Changed, Fixed, Deprecated, Removed, Security), filtering out noise like internal refactors, then a copywriter rewrites each entry in plain, benefit-oriented language with breaking changes called out. Covers changelog, release notes, what's new, version notes, and Keep a Changelog format. Gathering and triaging before writing is the point: a small model that first separates user-facing changes from internal churn avoids the changelog that lists 'bump deps' next to a breaking API change with equal weight.\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. Gather & triage changes (developer) — collect merged changes and bucket the user-facing ones → gated on artifact `{{workPath}}/gather.md` (markdown-notes)\n2. Write the changelog (copywriter) — rewrite entries in plain, user-facing language → gated on `CHANGELOG.md` (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": "gather",
|
|
6
|
+
"triggers": [
|
|
7
|
+
"write a changelog",
|
|
8
|
+
"generate release notes",
|
|
9
|
+
"whats new writeup",
|
|
10
|
+
"changelog from commits",
|
|
11
|
+
"version notes"
|
|
12
|
+
],
|
|
13
|
+
"steps": [
|
|
14
|
+
{
|
|
15
|
+
"id": "gather",
|
|
16
|
+
"name": "Gather & triage changes",
|
|
17
|
+
"description": "collect merged changes and bucket the user-facing ones",
|
|
18
|
+
"prompt": "1) Determine the version range (since the last tag/release). 2) Collect the merged commits/PRs in that range (use git log or the available VCS tools). 3) Triage each into a Keep-a-Changelog bucket: Added, Changed, Deprecated, Removed, Fixed, Security — or DROP if it is internal-only (refactors, test/CI tweaks, dependency bumps with no user impact). 4) Flag BREAKING changes explicitly and note any required migration step. 5) For each kept change, jot the raw description and the PR/commit reference. Write an acceptance-criteria checklist (e.g. 'every user-facing change is captured'; 'internal noise is excluded'; 'changes are bucketed correctly'; 'breaking changes flagged with migration notes'; 'version and date present'). Use write_task_note for the triaged change list + checklist, and write the same to the produces path. No prose changelog yet.\n\nThe deliverable `{{workPath}}/gather.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.",
|
|
19
|
+
"suggestedRole": "developer",
|
|
20
|
+
"advanceWhen": {
|
|
21
|
+
"file": "{{workPath}}/gather.md",
|
|
22
|
+
"minBytes": 1,
|
|
23
|
+
"sniff": "nonempty",
|
|
24
|
+
"artifact": true
|
|
25
|
+
},
|
|
26
|
+
"gate": {
|
|
27
|
+
"at": "completion",
|
|
28
|
+
"checks": [
|
|
29
|
+
{
|
|
30
|
+
"kind": "minBytes",
|
|
31
|
+
"file": "{{workPath}}/gather.md",
|
|
32
|
+
"bytes": 120,
|
|
33
|
+
"artifact": true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"kind": "sniff",
|
|
37
|
+
"file": "{{workPath}}/gather.md",
|
|
38
|
+
"sniff": "nonempty",
|
|
39
|
+
"artifact": true
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"onReject": "gather",
|
|
43
|
+
"maxAttempts": 3
|
|
44
|
+
},
|
|
45
|
+
"next": "write"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "write",
|
|
49
|
+
"name": "Write the changelog",
|
|
50
|
+
"description": "rewrite entries in plain, user-facing language",
|
|
51
|
+
"prompt": "Write the changelog from the triaged list in Keep a Changelog style. 1) Header: '## [version] - YYYY-MM-DD'. 2) Group entries under the standard H3 buckets (Added/Changed/Deprecated/Removed/Fixed/Security) — include only non-empty buckets. 3) Rewrite each entry as one plain sentence focused on what the USER can now do or what changed for them, not the implementation ('Added dark mode toggle in settings', not 'Implemented theme state reducer'). 4) Put BREAKING CHANGES in a prominent callout at the top with migration instructions. 5) Keep entries terse and parallel in structure; link PRs/issues if available. Output GitHub-flavored markdown. Save to the produces path and note bucket counts.",
|
|
52
|
+
"suggestedRole": "copywriter",
|
|
53
|
+
"advanceWhen": {
|
|
54
|
+
"file": "CHANGELOG.md",
|
|
55
|
+
"minBytes": 1,
|
|
56
|
+
"sniff": "nonempty"
|
|
57
|
+
},
|
|
58
|
+
"gate": {
|
|
59
|
+
"at": "completion",
|
|
60
|
+
"checks": [
|
|
61
|
+
{
|
|
62
|
+
"kind": "minBytes",
|
|
63
|
+
"file": "CHANGELOG.md",
|
|
64
|
+
"bytes": 500
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"scripts": [
|
|
68
|
+
{
|
|
69
|
+
"name": "checkContains",
|
|
70
|
+
"scope": "standard",
|
|
71
|
+
"inputs": {
|
|
72
|
+
"file": "CHANGELOG.md",
|
|
73
|
+
"pattern": "(?:^|\\n)#{1,3}\\s+\\S",
|
|
74
|
+
"flags": "i"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"onReject": "write",
|
|
79
|
+
"maxAttempts": 4
|
|
80
|
+
},
|
|
81
|
+
"next": "evaluate"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "evaluate",
|
|
85
|
+
"name": "Evaluate",
|
|
86
|
+
"description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
|
|
87
|
+
"prompt": "Read CHANGELOG.md against the triaged list. Check EACH criterion and write PASS/FAIL: (a) every user-facing change from the triage is present; (b) internal noise (refactors, dep bumps, CI) is excluded; (c) entries are in the correct buckets; (d) breaking changes are prominently flagged with migration notes; (e) entries are in plain, user-focused language; (f) version header and date present. A changelog that dumps raw commit messages or buries a breaking change FAILS — loop back to write.\n\nThen route — this is the whole point of the loop:\n\n- **Every criterion PASSES →** call `advance_task_step({ ref, stepId: \"evaluate\", next: \"finish\" })`.\n- **Any criterion FAILS →** write the specific gaps to notes, then call `advance_task_step({ ref, stepId: \"evaluate\", next: \"write\" })` to loop back. The builder fixes exactly those gaps.\n\nNever route to `finish` while any criterion is unmet. 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). After ~3 unproductive loops, stop and report DONE_WITH_CONCERNS so the user can step in.",
|
|
88
|
+
"suggestedRole": "reviewer",
|
|
89
|
+
"consumes": [
|
|
90
|
+
{
|
|
91
|
+
"file": "CHANGELOG.md"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"next": "write"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "finish",
|
|
98
|
+
"name": "Finish",
|
|
99
|
+
"description": "All acceptance criteria met. Stamp a short summary and report DONE.",
|
|
100
|
+
"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.",
|
|
101
|
+
"suggestedRole": "developer",
|
|
102
|
+
"terminal": true
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"version": "1.0.3",
|
|
106
|
+
"releasedAt": "2026-10-31T00:00:00Z",
|
|
107
|
+
"paramSchema": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"workPath": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"title": "Working folder",
|
|
113
|
+
"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.",
|
|
114
|
+
"default": "{{task.dir}}"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"minGezelVersion": "1.26233"
|
|
119
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "User-facing changelog from seeded release notes",
|
|
4
|
+
"objective": "Measure whether the changelog-writeup craftbook filters internal noise, buckets user-facing changes, and calls out breaking changes.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"corpus"
|
|
7
|
+
],
|
|
8
|
+
"prompt": "In the `Changelog Writeup Eval` project, read `source/merged-changes.md` and write `CHANGELOG.md` for version 2.4.0 dated 2026-06-27. Include user-facing Added, Changed, Fixed, and Security buckets as appropriate, exclude internal-only noise, and put the breaking API change in a prominent migration note.",
|
|
9
|
+
"setup": {
|
|
10
|
+
"projectName": "Changelog Writeup Eval",
|
|
11
|
+
"about": "Self-contained eval project for the changelog-writeup craftbook. Source changes are in workspace/source/merged-changes.md.",
|
|
12
|
+
"missionObjectives": "Produce a plain-language Keep a Changelog style CHANGELOG.md from seeded merged changes, excluding internal noise and highlighting breaking changes.",
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "source/merged-changes.md",
|
|
16
|
+
"content": "# Merged Changes Since 2.3.0\n\n- PR #418 Added CSV export for filtered inventory reports.\n- PR #421 Changed webhook payload field `customerId` to `customer_id`; breaking for existing integrations.\n- PR #424 Fixed duplicate shipment status emails when labels were regenerated.\n- PR #425 Security: tightened SAML certificate expiry validation.\n- PR #426 Internal: refactored reducer names; no user-facing change.\n- PR #427 CI: upgraded lint runner.\n"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"worker": {
|
|
20
|
+
"name": "Maud",
|
|
21
|
+
"role": "Writer"
|
|
22
|
+
},
|
|
23
|
+
"craftbookParams": {
|
|
24
|
+
"workPath": "tasks/eval"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"mocks": [],
|
|
28
|
+
"success": {
|
|
29
|
+
"summary": "CHANGELOG.md has version/date, buckets, user-facing entries, breaking migration note, and excludes internal noise.",
|
|
30
|
+
"deliverables": [
|
|
31
|
+
{
|
|
32
|
+
"path": "CHANGELOG.md",
|
|
33
|
+
"kind": "markdown-doc",
|
|
34
|
+
"minBytes": 1200,
|
|
35
|
+
"checks": [
|
|
36
|
+
{
|
|
37
|
+
"kind": "contains",
|
|
38
|
+
"file": "CHANGELOG.md",
|
|
39
|
+
"pattern": "2\\.4\\.0|2026-06-27"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"kind": "contains",
|
|
43
|
+
"file": "CHANGELOG.md",
|
|
44
|
+
"pattern": "Added",
|
|
45
|
+
"flags": "i"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"kind": "contains",
|
|
49
|
+
"file": "CHANGELOG.md",
|
|
50
|
+
"pattern": "Changed",
|
|
51
|
+
"flags": "i"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"kind": "contains",
|
|
55
|
+
"file": "CHANGELOG.md",
|
|
56
|
+
"pattern": "Fixed",
|
|
57
|
+
"flags": "i"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "contains",
|
|
61
|
+
"file": "CHANGELOG.md",
|
|
62
|
+
"pattern": "Security",
|
|
63
|
+
"flags": "i"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"kind": "contains",
|
|
67
|
+
"file": "CHANGELOG.md",
|
|
68
|
+
"pattern": "CSV export|inventory reports",
|
|
69
|
+
"flags": "i"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"kind": "contains",
|
|
73
|
+
"file": "CHANGELOG.md",
|
|
74
|
+
"pattern": "customerId|customer_id|migration|breaking",
|
|
75
|
+
"flags": "i"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"kind": "contains",
|
|
79
|
+
"file": "CHANGELOG.md",
|
|
80
|
+
"pattern": "duplicate shipment status emails|SAML",
|
|
81
|
+
"flags": "i"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"kind": "notContains",
|
|
85
|
+
"file": "CHANGELOG.md",
|
|
86
|
+
"pattern": "reducer|lint runner|CI:",
|
|
87
|
+
"flags": "i"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"rubric": {
|
|
94
|
+
"artifact": {
|
|
95
|
+
"path": "CHANGELOG.md",
|
|
96
|
+
"kind": "markdown"
|
|
97
|
+
},
|
|
98
|
+
"axes": [
|
|
99
|
+
{
|
|
100
|
+
"name": "de-noising",
|
|
101
|
+
"description": "Internal-only, CI and lint changes are left out, and every user-facing change is in."
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "bucketing",
|
|
105
|
+
"description": "Each entry sits in the right Added, Changed, Fixed or Security bucket and is written for the people who use the product."
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "migration note",
|
|
109
|
+
"description": "The breaking API change is prominent and says exactly what a caller must change."
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"qualityFocus": [
|
|
114
|
+
"triage before writing",
|
|
115
|
+
"breaking change visibility",
|
|
116
|
+
"plain user language"
|
|
117
|
+
],
|
|
118
|
+
"extensions": {
|
|
119
|
+
"legacySimulators": [
|
|
120
|
+
{
|
|
121
|
+
"id": "changelog-writeup-fake-service-fixture",
|
|
122
|
+
"kind": "data-source",
|
|
123
|
+
"status": "implemented",
|
|
124
|
+
"description": "Seeded local fake service contract replacing live CLIs, HTTP APIs, credentials, and side effects."
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
}
|