@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,235 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "Vendored dependency upgrade with staged receipts",
|
|
4
|
+
"objective": "The craftbook drives a staged upgrade of a vendored library across a breaking major: a recorded green suite before any change, the v2 API adopted at both real call sites with behavior preserved against the v1 reference, an honest stage record, and an enforced review - all verified mechanically, including a resolved-module check proving the call sites genuinely run v2.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"code",
|
|
7
|
+
"dependency-upgrade",
|
|
8
|
+
"tactical-fleet"
|
|
9
|
+
],
|
|
10
|
+
"prompt": "Use the Upgrade a Dependency craftbook for this: upgrade our vendored markdownlite library from 1.4.2 to the staged 2.0.0 copy. The vendoring convention and the v2 changelog are in VENDORING.md, and the request is in source/upgrade-request.md. Rendering behavior must not change - adapt the call sites to the new API rather than accepting the new defaults.",
|
|
11
|
+
"setup": {
|
|
12
|
+
"projectName": "Relay Notes",
|
|
13
|
+
"about": "A tiny note-rendering module for a team relay tool. Dependencies are vendored under lib/vendored/ per VENDORING.md. Tests run with `npm run test` (node --test).",
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "package.json",
|
|
17
|
+
"content": "{\n \"name\": \"relay-notes\",\n \"private\": true,\n \"version\": \"1.0.0\",\n \"type\": \"module\",\n \"scripts\": {\n \"test\": \"node --test\"\n }\n}\n"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"path": "lib/vendored/markdownlite.js",
|
|
21
|
+
"content": "// markdownlite 1.4.2 (vendored - see VENDORING.md)\nexport function parse(text) {\n const lines = String(text).split(/\\r?\\n/);\n const out = [];\n for (const line of lines) {\n const t = line.trim();\n if (t === '') continue;\n const h = /^(#{1,3})\\s+(.*)$/.exec(t);\n if (h) {\n out.push(`<h${h[1].length}>${inline(h[2])}</h${h[1].length}>`);\n } else {\n out.push(`<p>${inline(t)}</p>`);\n }\n }\n return out.join('\\n');\n}\n\nfunction inline(text) {\n return text.replace(/\\*([^*]+)\\*/g, '<em>$1</em>');\n}\n"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "lib/vendored/v2/markdownlite.js",
|
|
25
|
+
"content": "// markdownlite 2.0.0 (vendored staging copy - see VENDORING.md)\nexport function parseDoc(text, options = {}) {\n const wrapParagraphs = options.wrapParagraphs ?? false;\n const lines = String(text).split(/\\r?\\n/);\n const out = [];\n for (const line of lines) {\n const t = line.trim();\n if (t === '') continue;\n const h = /^(#{1,3})\\s+(.*)$/.exec(t);\n if (h) {\n out.push(`<h${h[1].length}>${inline(h[2])}</h${h[1].length}>`);\n } else {\n out.push(wrapParagraphs ? `<p>${inline(t)}</p>` : inline(t));\n }\n }\n return out.join('\\n');\n}\n\nfunction inline(text) {\n return text.replace(/\\*([^*]+)\\*/g, '<em>$1</em>');\n}\n"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "src/render-note.js",
|
|
29
|
+
"content": "import { parse } from '../lib/vendored/markdownlite.js';\n\nexport function renderNote(note) {\n return `<h2>${note.title}</h2>\\n${parse(note.body)}`;\n}\n"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "src/render-digest.js",
|
|
33
|
+
"content": "import { parse } from '../lib/vendored/markdownlite.js';\n\nexport function renderDigest(notes) {\n return notes\n .map((note) => `<section>\\n<h2>${note.title}</h2>\\n${parse(note.body)}\\n</section>`)\n .join('\\n');\n}\n"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "tests/render-note.test.mjs",
|
|
37
|
+
"content": "import assert from 'node:assert/strict';\nimport { test } from 'node:test';\nimport { renderNote } from '../src/render-note.js';\n\ntest('renders the body as wrapped paragraphs', () => {\n assert.equal(\n renderNote({ title: 'Standup', body: 'we shipped the *fast* path' }),\n '<h2>Standup</h2>\\n<p>we shipped the <em>fast</em> path</p>',\n );\n});\n\ntest('renders headings inside the body', () => {\n assert.equal(\n renderNote({ title: 'Plan', body: '# Goals\\nship it' }),\n '<h2>Plan</h2>\\n<h1>Goals</h1>\\n<p>ship it</p>',\n );\n});\n"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "tests/render-digest.test.mjs",
|
|
41
|
+
"content": "import assert from 'node:assert/strict';\nimport { test } from 'node:test';\nimport { renderDigest } from '../src/render-digest.js';\n\ntest('joins every note as a wrapped section', () => {\n const html = renderDigest([\n { title: 'One', body: 'first' },\n { title: 'Two', body: 'second line' },\n ]);\n assert.equal(\n html,\n '<section>\\n<h2>One</h2>\\n<p>first</p>\\n</section>\\n<section>\\n<h2>Two</h2>\\n<p>second line</p>\\n</section>',\n );\n});\n"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"path": "VENDORING.md",
|
|
45
|
+
"content": "# Vendoring convention\n\nThis project vendors small dependencies directly under `lib/vendored/` instead\nof installing them from a registry. Each vendored library is a single file named\nafter the package. Upgrades arrive as a staged copy in a version subfolder\n(for example `lib/vendored/v2/`) so the switch is an explicit, reviewable\nchange: move the staged copy into place (or point the imports at it), adapt the\ncall sites, and remove the staging folder when the switch is complete.\n\n## markdownlite\n\nCurrent vendored version: 1.4.2 at `lib/vendored/markdownlite.js`.\nStaged upgrade: 2.0.0 at `lib/vendored/v2/markdownlite.js`.\n\n### markdownlite 2.0.0 changelog\n\n- BREAKING: `parse(text)` is renamed to `parseDoc(text, options)`.\n- BREAKING: plain lines are no longer wrapped in `<p>` by default. Paragraph\n wrapping is now opt-in: pass `{ wrapParagraphs: true }` to keep the 1.x\n output.\n- Heading and emphasis handling are unchanged.\n"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "source/upgrade-request.md",
|
|
49
|
+
"content": "# Upgrade request\n\nPlease move us from vendored markdownlite 1.4.2 to the staged 2.0.0 copy.\nThe v2 changelog is in VENDORING.md. Rendering behavior must not change:\nnotes and digests must produce exactly the same HTML as today, so adapt the\ncall sites to the new API rather than accepting the new defaults.\n"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "tests/verify-upgrade.mjs",
|
|
53
|
+
"content": "import assert from 'node:assert/strict';\nimport { execFileSync } from 'node:child_process';\nimport { readFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { pathToFileURL } from 'node:url';\n\nconst root = process.cwd();\n\n// 1) Both call sites moved off the removed v1 API and resolve to a v2 module.\n// Accepted either way: v2 copied into place at lib/vendored/markdownlite.js,\n// or imports repointed at the staged v2 file.\nconst callSites = ['src/render-note.js', 'src/render-digest.js'];\nfor (const file of callSites) {\n const source = readFileSync(join(root, file), 'utf8');\n assert.ok(/\\bparseDoc\\s*\\(/.test(source), `${file} must call the v2 parseDoc API`);\n assert.ok(!/\\bparse\\s*\\(/.test(source), `${file} still calls the removed v1 parse API`);\n const spec = /import\\s*\\{[^}]*\\}\\s*from\\s*['\"]([^'\"]*markdownlite[^'\"]*)['\"]/.exec(source);\n assert.ok(spec, `${file} must import the vendored markdownlite module`);\n const mod = await import(new URL(spec[1], pathToFileURL(join(root, file))).href);\n assert.equal(typeof mod.parseDoc, 'function', `${file} must resolve to markdownlite v2 (parseDoc export)`);\n assert.equal(mod.parse, undefined, `${file} resolves to a module that still exports the removed v1 parse API`);\n}\nconsole.log('DEPUPGRADE_ORACLE call sites adapted');\n\n// 2) Behavior is unchanged against the v1 reference output.\nconst { renderNote } = await import(pathToFileURL(join(root, 'src/render-note.js')).href);\nconst { renderDigest } = await import(pathToFileURL(join(root, 'src/render-digest.js')).href);\nassert.equal(\n renderNote({ title: 'Standup', body: 'we shipped the *fast* path' }),\n '<h2>Standup</h2>\\n<p>we shipped the <em>fast</em> path</p>',\n 'renderNote must keep wrapping paragraphs after the upgrade',\n);\nassert.equal(\n renderNote({ title: 'Plan', body: '# Goals\\nship it' }),\n '<h2>Plan</h2>\\n<h1>Goals</h1>\\n<p>ship it</p>',\n 'renderNote must keep heading handling after the upgrade',\n);\nassert.equal(\n renderDigest([\n { title: 'One', body: 'first' },\n { title: 'Two', body: 'second line' },\n ]),\n '<section>\\n<h2>One</h2>\\n<p>first</p>\\n</section>\\n<section>\\n<h2>Two</h2>\\n<p>second line</p>\\n</section>',\n 'renderDigest must keep its exact output after the upgrade',\n);\nconsole.log('DEPUPGRADE_ORACLE behavior ok');\n\n// 3) The suite is green on the upgraded tree, and the seeded tests survive.\nreadFileSync(join(root, 'tests/render-note.test.mjs'));\nreadFileSync(join(root, 'tests/render-digest.test.mjs'));\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}\nassert.equal(runSuite(root), 0, 'the suite must be green on the upgraded tree');\nconsole.log('DEPUPGRADE_ORACLE suite green');\nconsole.log('DEPUPGRADE_ORACLE done');\n",
|
|
54
|
+
"surface": "harness"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"craftbookParams": {
|
|
58
|
+
"scope": "Upgrade the vendored markdownlite from 1.4.2 to the staged 2.0.0 copy per VENDORING.md; rendering behavior must not change."
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"mocks": [],
|
|
62
|
+
"success": {
|
|
63
|
+
"summary": "The vendored library runs at v2 through both call sites (either moved into place or repointed), every adaptation preserves the exact v1 rendering behavior, the suite is green, and every fleet artifact exists with honest receipts.",
|
|
64
|
+
"deliverables": [
|
|
65
|
+
{
|
|
66
|
+
"path": "{{task.dir}}/survey.md",
|
|
67
|
+
"kind": "markdown-notes",
|
|
68
|
+
"artifact": true,
|
|
69
|
+
"minBytes": 600,
|
|
70
|
+
"checks": [
|
|
71
|
+
{
|
|
72
|
+
"kind": "contains",
|
|
73
|
+
"file": "{{task.dir}}/survey.md",
|
|
74
|
+
"pattern": "^##\\s+Current state[\\s\\S]*^##\\s+Candidates[\\s\\S]*^##\\s+Breaking-change notes[\\s\\S]*^##\\s+Stage plan",
|
|
75
|
+
"flags": "im",
|
|
76
|
+
"label": "survey sections in order"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"kind": "contains",
|
|
80
|
+
"file": "{{task.dir}}/survey.md",
|
|
81
|
+
"pattern": "parseDoc",
|
|
82
|
+
"label": "names the real v2 API change from the local changelog"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"kind": "citationsResolve",
|
|
86
|
+
"file": "{{task.dir}}/survey.md",
|
|
87
|
+
"minCitations": 2,
|
|
88
|
+
"artifact": true
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"path": "{{task.dir}}/change-notes.md",
|
|
94
|
+
"kind": "markdown-notes",
|
|
95
|
+
"artifact": true,
|
|
96
|
+
"minBytes": 700,
|
|
97
|
+
"checks": [
|
|
98
|
+
{
|
|
99
|
+
"kind": "contains",
|
|
100
|
+
"file": "{{task.dir}}/change-notes.md",
|
|
101
|
+
"pattern": "^##\\s+Stages executed[\\s\\S]*^##\\s+Files touched[\\s\\S]*^##\\s+Adaptations[\\s\\S]*^##\\s+Reverted stages",
|
|
102
|
+
"flags": "im",
|
|
103
|
+
"label": "change-notes sections in order"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"kind": "citationsResolve",
|
|
107
|
+
"file": "{{task.dir}}/change-notes.md",
|
|
108
|
+
"minCitations": 2,
|
|
109
|
+
"artifact": true
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"path": "{{task.dir}}/verification.md",
|
|
115
|
+
"kind": "markdown-notes",
|
|
116
|
+
"artifact": true,
|
|
117
|
+
"minBytes": 450,
|
|
118
|
+
"checks": [
|
|
119
|
+
{
|
|
120
|
+
"kind": "contains",
|
|
121
|
+
"file": "{{task.dir}}/verification.md",
|
|
122
|
+
"pattern": "^##\\s+Suite[\\s\\S]*^##\\s+Adaptations verified[\\s\\S]*^##\\s+Rollback[\\s\\S]*^##\\s+Result",
|
|
123
|
+
"flags": "im",
|
|
124
|
+
"label": "verification sections in order"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"path": "{{task.dir}}/review.md",
|
|
130
|
+
"kind": "markdown-report",
|
|
131
|
+
"artifact": true,
|
|
132
|
+
"minBytes": 400,
|
|
133
|
+
"checks": [
|
|
134
|
+
{
|
|
135
|
+
"kind": "contains",
|
|
136
|
+
"file": "{{task.dir}}/review.md",
|
|
137
|
+
"pattern": "Verdict:\\s*(?:PASS|REVISE)",
|
|
138
|
+
"flags": "i",
|
|
139
|
+
"label": "explicit reviewer verdict"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"checks": [
|
|
145
|
+
{
|
|
146
|
+
"kind": "notContains",
|
|
147
|
+
"file": "src/render-note.js",
|
|
148
|
+
"pattern": "\\bparse\\s*\\(|import\\s*\\{[^}]*\\bparse\\b[^}]*\\}",
|
|
149
|
+
"label": "the removed v1 parse API is gone from the note call site"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"kind": "notContains",
|
|
153
|
+
"file": "src/render-digest.js",
|
|
154
|
+
"pattern": "\\bparse\\s*\\(|import\\s*\\{[^}]*\\bparse\\b[^}]*\\}",
|
|
155
|
+
"label": "the removed v1 parse API is gone from the digest call site"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"kind": "sourceParses",
|
|
159
|
+
"file": "src/render-note.js"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"kind": "sourceParses",
|
|
163
|
+
"file": "src/render-digest.js"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"kind": "nodeRuns",
|
|
167
|
+
"file": "tests/render-note.test.mjs"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"kind": "nodeScriptPasses",
|
|
171
|
+
"script": "tests/verify-upgrade.mjs",
|
|
172
|
+
"timeoutMs": 60000,
|
|
173
|
+
"requiredOutput": [
|
|
174
|
+
{
|
|
175
|
+
"pattern": "DEPUPGRADE_ORACLE call sites adapted",
|
|
176
|
+
"label": "both call sites run the v2 API"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"pattern": "DEPUPGRADE_ORACLE behavior ok",
|
|
180
|
+
"label": "rendering behavior preserved against the v1 reference"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"pattern": "DEPUPGRADE_ORACLE suite green",
|
|
184
|
+
"label": "suite green on the upgraded tree"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"taskNotes": {
|
|
190
|
+
"minBytes": 120,
|
|
191
|
+
"checks": [
|
|
192
|
+
{
|
|
193
|
+
"kind": "contains",
|
|
194
|
+
"file": "task-notes.md",
|
|
195
|
+
"pattern": "\\bDONE\\b[\\s\\S]*(npm\\s+run\\s+test|node\\s+--test)",
|
|
196
|
+
"flags": "i",
|
|
197
|
+
"label": "DONE note names the real test command"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"taskGraph": {
|
|
202
|
+
"requireCraftbookTask": true,
|
|
203
|
+
"requireTerminalStep": true
|
|
204
|
+
},
|
|
205
|
+
"unchangedFixtures": [
|
|
206
|
+
"source/upgrade-request.md",
|
|
207
|
+
"package.json"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"rubric": {
|
|
211
|
+
"artifact": {
|
|
212
|
+
"path": "{{task.dir}}/change-notes.md",
|
|
213
|
+
"kind": "markdown"
|
|
214
|
+
},
|
|
215
|
+
"axes": [
|
|
216
|
+
{
|
|
217
|
+
"name": "Staged discipline",
|
|
218
|
+
"description": "The work ran as ordered stages with the suite genuinely run before the first change and between stages, and the record distinguishes executed stages from reverted or deferred ones."
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "Local evidence honesty",
|
|
222
|
+
"description": "Breaking-change notes come from sources actually read in the repository (VENDORING.md, the staged v2 file), with nothing presented as a release note that was invented."
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "Adaptation fidelity",
|
|
226
|
+
"description": "Call sites were adapted at their real locations to preserve exact rendering behavior under the v2 API, rather than accepting changed defaults or weakening tests."
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
"qualityFocus": [
|
|
231
|
+
"staged upgrades with receipts",
|
|
232
|
+
"local breaking-change evidence",
|
|
233
|
+
"honest reverts"
|
|
234
|
+
]
|
|
235
|
+
}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "digest-from-feeds",
|
|
3
|
+
"name": "RSS / Feed Digest",
|
|
4
|
+
"description": "Build a recurring digest from RSS/Atom feeds or news sources: fetch the latest items in the window, dedupe and cluster by topic, then write a scannable digest with one-line takes and source links. Scopes the feed list and digest format FIRST (which feeds, the time window, topic sections, item cap, ranking signal), then a developer fetches and normalizes the feed items into a deduped item list, then a copywriter writes the curated digest from those items only. Scoping sources and the window before fetching is what keeps the digest fresh, deduped, and within length instead of an unranked firehose. Use for RSS digests, news roundups, feed summaries, content curation, and recurring reading digests.\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. Source scope (planner) — lock the feeds, window, sections, and item cap → gated on artifact `{{workPath}}/source-scope.md` (markdown-notes)\n2. Gather feed items (developer) — fetch, normalize, dedupe items into an item list → gated on artifact `{{workPath}}/gather.md` (markdown-notes)\n3. Write the digest (copywriter) — compose the curated digest from gathered items → gated on `digest.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": "source-scope",
|
|
6
|
+
"triggers": [
|
|
7
|
+
"rss digest",
|
|
8
|
+
"news roundup",
|
|
9
|
+
"feed summary",
|
|
10
|
+
"summarize these feeds",
|
|
11
|
+
"curated reading digest"
|
|
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
|
+
"steps": [
|
|
25
|
+
{
|
|
26
|
+
"id": "source-scope",
|
|
27
|
+
"name": "Source scope",
|
|
28
|
+
"description": "lock the feeds, window, sections, and item cap",
|
|
29
|
+
"prompt": "Define the digest contract before fetching. (1) Lock the feed/source list (the RSS/Atom URLs or named sources). (2) Set the time window (only items published within it) and the topic sections the digest groups into. (3) Set a per-section item cap and an overall cap, plus a ranking signal for which items make the cut (recency, source weight, or keyword relevance to a stated interest). (4) Define the per-item format: a tight one-line take + a source link + publish date. (5) Define the dedupe rule (same story across feeds collapses to one, by URL or title similarity). Write an acceptance-criteria checklist ('only items within the window', 'duplicates across feeds collapsed', 'each item has a working source link + date', 'per-section and overall caps respected', 'every item traces to a fetched feed item — nothing invented', 'scannable in under two minutes') plus the source list + format to {{workPath}}/source-scope.md via write_task_note AND the produces path.\n\nThe deliverable `{{workPath}}/source-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.",
|
|
30
|
+
"suggestedRole": "planner",
|
|
31
|
+
"toolPolicy": {
|
|
32
|
+
"disallowBuiltinToolsets": [
|
|
33
|
+
"ai-apps",
|
|
34
|
+
"archives",
|
|
35
|
+
"audio",
|
|
36
|
+
"browser-automation",
|
|
37
|
+
"code-execution",
|
|
38
|
+
"craftbooks",
|
|
39
|
+
"data-tables",
|
|
40
|
+
"entity-intel",
|
|
41
|
+
"git",
|
|
42
|
+
"image-intel",
|
|
43
|
+
"images",
|
|
44
|
+
"role-delegation",
|
|
45
|
+
"role-delegation-escalation",
|
|
46
|
+
"security-intel",
|
|
47
|
+
"team-management",
|
|
48
|
+
"videos",
|
|
49
|
+
"web",
|
|
50
|
+
"workspace-fs-write"
|
|
51
|
+
],
|
|
52
|
+
"outputMedium": "artifact",
|
|
53
|
+
"additionalOutputMedia": [
|
|
54
|
+
"task-note"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"advanceWhen": {
|
|
58
|
+
"file": "{{workPath}}/source-scope.md",
|
|
59
|
+
"minBytes": 1,
|
|
60
|
+
"sniff": "nonempty",
|
|
61
|
+
"artifact": true
|
|
62
|
+
},
|
|
63
|
+
"gate": {
|
|
64
|
+
"at": "completion",
|
|
65
|
+
"checks": [
|
|
66
|
+
{
|
|
67
|
+
"kind": "minBytes",
|
|
68
|
+
"file": "{{workPath}}/source-scope.md",
|
|
69
|
+
"bytes": 120,
|
|
70
|
+
"artifact": true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"kind": "sniff",
|
|
74
|
+
"file": "{{workPath}}/source-scope.md",
|
|
75
|
+
"sniff": "nonempty",
|
|
76
|
+
"artifact": true
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"onReject": "source-scope",
|
|
80
|
+
"maxAttempts": 3
|
|
81
|
+
},
|
|
82
|
+
"next": "gather"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"id": "gather",
|
|
86
|
+
"name": "Gather feed items",
|
|
87
|
+
"description": "fetch, normalize, dedupe items into an item list",
|
|
88
|
+
"prompt": "Fetch and normalize the feeds into {{workPath}}/gather.md. (1) Retrieve each feed (via the fetch/web tool); parse out item title, link, publish date, and a short excerpt. (2) Drop items outside the locked window. (3) Apply the dedupe rule — collapse the same story appearing in multiple feeds to a single entry, keeping the best source link. (4) Tag each surviving item with its target section and a ranking score per the locked signal. (5) Sort within each section by the ranking signal and keep within the caps; record the dropped count. Capture this as a structured, attributed list — title, link, date, section, score — NOT prose, and verify every link is a real URL from the feed. If a feed is unreachable, note it explicitly. Write the item list via write_task_note and end with per-section counts.\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.",
|
|
89
|
+
"suggestedRole": "developer",
|
|
90
|
+
"toolPolicy": {
|
|
91
|
+
"disallowBuiltinToolsets": [
|
|
92
|
+
"ai-apps",
|
|
93
|
+
"archives",
|
|
94
|
+
"audio",
|
|
95
|
+
"browser-automation",
|
|
96
|
+
"code-execution",
|
|
97
|
+
"craftbooks",
|
|
98
|
+
"data-tables",
|
|
99
|
+
"entity-intel",
|
|
100
|
+
"git",
|
|
101
|
+
"image-intel",
|
|
102
|
+
"images",
|
|
103
|
+
"role-delegation",
|
|
104
|
+
"role-delegation-escalation",
|
|
105
|
+
"security-intel",
|
|
106
|
+
"team-management",
|
|
107
|
+
"videos",
|
|
108
|
+
"web",
|
|
109
|
+
"workspace-fs-write"
|
|
110
|
+
],
|
|
111
|
+
"outputMedium": "artifact",
|
|
112
|
+
"additionalOutputMedia": [
|
|
113
|
+
"task-note"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"advanceWhen": {
|
|
117
|
+
"file": "{{workPath}}/gather.md",
|
|
118
|
+
"minBytes": 1,
|
|
119
|
+
"sniff": "nonempty",
|
|
120
|
+
"artifact": true
|
|
121
|
+
},
|
|
122
|
+
"gate": {
|
|
123
|
+
"at": "completion",
|
|
124
|
+
"checks": [
|
|
125
|
+
{
|
|
126
|
+
"kind": "minBytes",
|
|
127
|
+
"file": "{{workPath}}/gather.md",
|
|
128
|
+
"bytes": 120,
|
|
129
|
+
"artifact": true
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "sniff",
|
|
133
|
+
"file": "{{workPath}}/gather.md",
|
|
134
|
+
"sniff": "nonempty",
|
|
135
|
+
"artifact": true
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"onReject": "gather",
|
|
139
|
+
"maxAttempts": 3
|
|
140
|
+
},
|
|
141
|
+
"next": "write"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"id": "write",
|
|
145
|
+
"name": "Write the digest",
|
|
146
|
+
"description": "compose the curated digest from gathered items",
|
|
147
|
+
"prompt": "Write digest.md from {{workPath}}/gather.md only. (1) Open with a one-line 'what mattered' summary of the period. (2) One section per topic in the locked order; under each, the capped items as a one-line take + linked title + date. Each take is a genuine, specific summary of the item — not a restated headline, not invented detail. (3) Respect the per-section and overall caps; if a section has no in-window items, omit it. (4) Keep the whole thing skimmable in under two minutes. Use only items present in the gather file with their real links — invent nothing. On a loop-back fix only the flagged sections. Write the path and item count to notes via write_task_note.\n\nBefore working, open the artifact input `{{workPath}}/gather.md` with `read_artifact`; do not look for it in the workspace.",
|
|
148
|
+
"suggestedRole": "copywriter",
|
|
149
|
+
"toolPolicy": {
|
|
150
|
+
"disallowBuiltinToolsets": [
|
|
151
|
+
"ai-apps",
|
|
152
|
+
"archives",
|
|
153
|
+
"audio",
|
|
154
|
+
"browser-automation",
|
|
155
|
+
"code-execution",
|
|
156
|
+
"craftbooks",
|
|
157
|
+
"data-tables",
|
|
158
|
+
"entity-intel",
|
|
159
|
+
"git",
|
|
160
|
+
"image-intel",
|
|
161
|
+
"images",
|
|
162
|
+
"role-delegation",
|
|
163
|
+
"role-delegation-escalation",
|
|
164
|
+
"security-intel",
|
|
165
|
+
"team-management",
|
|
166
|
+
"videos",
|
|
167
|
+
"web"
|
|
168
|
+
],
|
|
169
|
+
"outputMedium": "workspace",
|
|
170
|
+
"additionalOutputMedia": [
|
|
171
|
+
"task-note"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"consumes": [
|
|
175
|
+
{
|
|
176
|
+
"file": "{{workPath}}/gather.md",
|
|
177
|
+
"artifact": true
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"advanceWhen": {
|
|
181
|
+
"file": "digest.md",
|
|
182
|
+
"minBytes": 1,
|
|
183
|
+
"sniff": "nonempty"
|
|
184
|
+
},
|
|
185
|
+
"gate": {
|
|
186
|
+
"at": "completion",
|
|
187
|
+
"checks": [
|
|
188
|
+
{
|
|
189
|
+
"kind": "minBytes",
|
|
190
|
+
"file": "digest.md",
|
|
191
|
+
"bytes": 500
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"scripts": [
|
|
195
|
+
{
|
|
196
|
+
"name": "checkContains",
|
|
197
|
+
"scope": "standard",
|
|
198
|
+
"inputs": {
|
|
199
|
+
"file": "digest.md",
|
|
200
|
+
"pattern": "(?:^|\\n)#{1,3}\\s+\\S",
|
|
201
|
+
"flags": "i"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"onReject": "write",
|
|
206
|
+
"maxAttempts": 4
|
|
207
|
+
},
|
|
208
|
+
"next": "evaluate"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id": "evaluate",
|
|
212
|
+
"name": "Evaluate",
|
|
213
|
+
"description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
|
|
214
|
+
"prompt": "QA digest.md against the locked criteria. (1) Confirm every item appears in {{workPath}}/gather.md with a real source link and an in-window date; FAIL on any invented item or out-of-window entry. (2) Confirm duplicates across feeds were collapsed (no two entries for the same story). (3) Confirm per-section and overall caps are respected. (4) Read 3 one-line takes — are they real summaries of the linked item, not just the headline echoed, and accurate? (5) Confirm it is genuinely scannable. Write PASS/FAIL per criterion with specifics.\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 digest\" 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 digest\" 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).",
|
|
215
|
+
"suggestedRole": "reviewer",
|
|
216
|
+
"toolPolicy": {
|
|
217
|
+
"disallowBuiltinToolsets": [
|
|
218
|
+
"ai-apps",
|
|
219
|
+
"archives",
|
|
220
|
+
"audio",
|
|
221
|
+
"browser-automation",
|
|
222
|
+
"code-execution",
|
|
223
|
+
"craftbooks",
|
|
224
|
+
"data-tables",
|
|
225
|
+
"entity-intel",
|
|
226
|
+
"git",
|
|
227
|
+
"image-intel",
|
|
228
|
+
"images",
|
|
229
|
+
"role-delegation",
|
|
230
|
+
"role-delegation-escalation",
|
|
231
|
+
"security-intel",
|
|
232
|
+
"team-management",
|
|
233
|
+
"videos",
|
|
234
|
+
"web",
|
|
235
|
+
"workspace-fs-write"
|
|
236
|
+
],
|
|
237
|
+
"outputMedium": "artifact",
|
|
238
|
+
"additionalOutputMedia": [
|
|
239
|
+
"task-note"
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
"consumes": [
|
|
243
|
+
{
|
|
244
|
+
"file": "digest.md"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"advanceWhen": {
|
|
248
|
+
"file": "{{workPath}}/verdict.md",
|
|
249
|
+
"minBytes": 40,
|
|
250
|
+
"sniff": "nonempty",
|
|
251
|
+
"artifact": true
|
|
252
|
+
},
|
|
253
|
+
"gate": {
|
|
254
|
+
"at": "completion",
|
|
255
|
+
"checks": [
|
|
256
|
+
{
|
|
257
|
+
"kind": "contains",
|
|
258
|
+
"file": "{{workPath}}/verdict.md",
|
|
259
|
+
"pattern": "(?<!/\\s*)\\bPASS\\b(?!\\s*/)",
|
|
260
|
+
"label": "the verdict marks its criteria PASS",
|
|
261
|
+
"artifact": true
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"kind": "notContains",
|
|
265
|
+
"file": "{{workPath}}/verdict.md",
|
|
266
|
+
"pattern": "(?<!/\\s*)\\bFAIL\\b(?!\\s*/)",
|
|
267
|
+
"label": "no criterion is marked FAIL",
|
|
268
|
+
"artifact": true
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"onReject": "write",
|
|
272
|
+
"maxAttempts": 3
|
|
273
|
+
},
|
|
274
|
+
"next": "finish"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "finish",
|
|
278
|
+
"name": "Finish",
|
|
279
|
+
"description": "All acceptance criteria met. Stamp a short summary and report DONE.",
|
|
280
|
+
"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.",
|
|
281
|
+
"suggestedRole": "developer",
|
|
282
|
+
"toolPolicy": {
|
|
283
|
+
"disallowBuiltinToolsets": [
|
|
284
|
+
"ai-apps",
|
|
285
|
+
"archives",
|
|
286
|
+
"artifacts",
|
|
287
|
+
"audio",
|
|
288
|
+
"browser-automation",
|
|
289
|
+
"code-execution",
|
|
290
|
+
"craftbooks",
|
|
291
|
+
"data-tables",
|
|
292
|
+
"entity-intel",
|
|
293
|
+
"git",
|
|
294
|
+
"image-intel",
|
|
295
|
+
"images",
|
|
296
|
+
"role-delegation",
|
|
297
|
+
"role-delegation-escalation",
|
|
298
|
+
"security-intel",
|
|
299
|
+
"team-management",
|
|
300
|
+
"videos",
|
|
301
|
+
"web",
|
|
302
|
+
"workspace-fs-write"
|
|
303
|
+
],
|
|
304
|
+
"outputMedium": "task-note"
|
|
305
|
+
},
|
|
306
|
+
"terminal": true
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"version": "1.0.6",
|
|
310
|
+
"releasedAt": "2026-10-21T00:00:00Z",
|
|
311
|
+
"minGezelVersion": "1.26233"
|
|
312
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"mode": "workflow",
|
|
4
|
+
"title": "RSS / Feed Digest workflow processability",
|
|
5
|
+
"objective": "Prove that a medium local model can parse and execute the RSS / Feed Digest craftbook, satisfy its declared runtime gates, and reach a terminal step using only local fixtures.",
|
|
6
|
+
"prompt": "Use the `digest-from-feeds` (RSS / Feed Digest) craftbook for this self-contained local evaluation. Open `source/craftbook-eval-brief.md` first, then follow the craftbook's actual steps and gates through its terminal step. Complete this request: Build a recurring digest from RSS/Atom feeds or news sources: fetch the latest items in the window, dedupe and cluster by topic, then write a scannable digest with one-line takes and source links. Scopes the feed list and digest format FIRST (which feeds, the time window, topic sections, item cap, ranking signal), then a developer fetches and normalizes the feed items into a deduped item list, then a copywriter writes the curated digest from those items only. Scoping sources and the window before fetching is what keeps the digest fresh, deduped, and within length instead of an unranked firehose. Use for RSS digests, news roundups, feed summaries, content curation, and recurring reading digests.\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. Source scope (planner) — lock the feeds, window, sections, and item cap → gated on artifact `{{workPath}}/source-scope.md` (markdown-notes)\n2. Gather feed items (developer) — fetch, normalize, dedupe items into an item list → gated on artifact `{{workPath}}/gather.md` (markdown-notes)\n3. Write the digest (copywriter) — compose the curated digest from gathered items → gated on `digest.md` (markdown-doc)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n Produce `gather.md` in this task's artifact working folder, `source-scope.md` in this task's artifact working folder, `digest.md`. Use only seeded project files and installed local simulators. Do not call a real external service, fetch live data, or claim an external side effect occurred; an explicit dry-run record is the correct result when a dependency is unavailable.",
|
|
7
|
+
"setup": {
|
|
8
|
+
"projectName": "RSS / Feed Digest Workflow Eval",
|
|
9
|
+
"about": "A hermetic workflow evaluation for the RSS / Feed Digest craftbook. No live dependency or external network is authorized.",
|
|
10
|
+
"missionObjectives": "Run the RSS / Feed Digest craftbook end to end, use the local evaluation brief and fixtures as truth, produce its declared outputs, and reach a terminal step without fabricating external effects.",
|
|
11
|
+
"managedWorkspaceWritePolicy": "allow",
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "source/craftbook-eval-brief.md",
|
|
15
|
+
"content": "# RSS / Feed Digest — local evaluation brief\n\nThis is a hermetic processability evaluation of the `digest-from-feeds` craftbook.\nDo not contact real services, use real credentials, or fetch live data. Treat\nthe project fixtures and installed local simulators as authoritative. If a\ndependency is intentionally unavailable, document an honest dry run instead\nof claiming a real side effect.\n\n## Request\n\nBuild a recurring digest from RSS/Atom feeds or news sources: fetch the latest items in the window, dedupe and cluster by topic, then write a scannable digest with one-line takes and source links. Scopes the feed list and digest format FIRST (which feeds, the time window, topic sections, item cap, ranking signal), then a developer fetches and normalizes the feed items into a deduped item list, then a copywriter writes the curated digest from those items only. Scoping sources and the window before fetching is what keeps the digest fresh, deduped, and within length instead of an unranked firehose. Use for RSS digests, news roundups, feed summaries, content curation, and recurring reading digests.\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. Source scope (planner) — lock the feeds, window, sections, and item cap → gated on artifact `{{workPath}}/source-scope.md` (markdown-notes)\n2. Gather feed items (developer) — fetch, normalize, dedupe items into an item list → gated on artifact `{{workPath}}/gather.md` (markdown-notes)\n3. Write the digest (copywriter) — compose the curated digest from gathered items → gated on `digest.md` (markdown-doc)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n\n\n## Required workflow\n\n1. Source scope\n2. Gather feed items\n3. Write the digest\n4. Evaluate\n5. Finish (terminal)\n\n## Declared outputs\n\n- `gather.md` in this task's artifact working folder\n- `source-scope.md` in this task's artifact working folder\n- `digest.md`\n"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"path": "source/brief.md",
|
|
19
|
+
"content": "# RSS / Feed Digest Eval Brief\n\nClient: Boreal Desk, a home-office accessories company.\nAudience: operations leads who need an artifact they can use this week.\n\nFixed source facts for grounding:\n- The returns desk pilot covered 18 SKUs.\n- Median first response improved from 18 hours to 6 hours.\n- Preventable refund leakage fell from 14.2% to 8.9%.\n- The top unresolved complaint is status silence after photo submission.\n- Required next actions are automated status emails, barcode-exception training, and a weekly Finance exception export.\n\nUse these facts when the task asks for prose, analysis, copy, UI content, or test data. Do not use live web services, real credentials, or current outside data.\n\nCraftbook under test: digest-from-feeds - RSS / Feed Digest.\n"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"worker": {
|
|
23
|
+
"name": "Craftbook Runner",
|
|
24
|
+
"role": "Workflow Operator",
|
|
25
|
+
"about": "Execute the assigned craftbook exactly. Read local fixtures, satisfy each runtime gate, record honest dry-run evidence for unavailable dependencies, and continue until a terminal step is active or the task is complete."
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"success": {
|
|
29
|
+
"summary": "The attributed digest-from-feeds task satisfied its own gates, produced its declared outputs, and reached a terminal step without using external services.",
|
|
30
|
+
"deliverables": [
|
|
31
|
+
{
|
|
32
|
+
"path": "{{task.dir}}/gather.md",
|
|
33
|
+
"kind": "markdown-report",
|
|
34
|
+
"artifact": true,
|
|
35
|
+
"minBytes": 120
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "{{task.dir}}/source-scope.md",
|
|
39
|
+
"kind": "markdown-report",
|
|
40
|
+
"artifact": true,
|
|
41
|
+
"minBytes": 120
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"path": "digest.md",
|
|
45
|
+
"kind": "markdown-report",
|
|
46
|
+
"minBytes": 500
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"taskGraph": {
|
|
50
|
+
"requireCraftbookTask": true,
|
|
51
|
+
"requireTerminalStep": true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"rubric": {
|
|
55
|
+
"artifact": {
|
|
56
|
+
"path": "{{task.dir}}/gather.md",
|
|
57
|
+
"kind": "markdown"
|
|
58
|
+
},
|
|
59
|
+
"axes": [
|
|
60
|
+
{
|
|
61
|
+
"name": "workflow fidelity",
|
|
62
|
+
"description": "The result reflects the named craftbook sequence and its declared acceptance gates rather than a freehand substitute."
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "usefulness",
|
|
66
|
+
"description": "The deliverable is coherent, actionable, and suitable for the craftbook purpose stated in the local brief."
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"contextNote": "Advisory only. Deterministic pass/fail comes from the craftbook runtime gates, deliverable existence, attribution, and terminal progress."
|
|
70
|
+
},
|
|
71
|
+
"qualityFocus": [
|
|
72
|
+
"real digest-from-feeds craftbook task attribution",
|
|
73
|
+
"declared runtime gate satisfaction",
|
|
74
|
+
"terminal workflow progress",
|
|
75
|
+
"offline fixture and simulator discipline"
|
|
76
|
+
],
|
|
77
|
+
"extensions": {
|
|
78
|
+
"legacySimulators": [
|
|
79
|
+
{
|
|
80
|
+
"id": "digest-from-feeds-fake-service-fixture",
|
|
81
|
+
"kind": "data-source",
|
|
82
|
+
"status": "implemented",
|
|
83
|
+
"description": "Seeded local fake service contract replacing live CLIs, HTTP APIs, credentials, and side effects."
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|