@bendyline/gilde 0.1.55 → 0.1.57
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/chat-models/glm-5.3-flash-320b-q2.json +129 -0
- package/authoring/chat-models/qwen3.8-flash-next-iq3.json +198 -0
- package/authoring/chat-models/qwen3.8-flash-next-iq4.json +198 -0
- package/authoring/gstack/wave.json +2 -2
- package/data/chat-models/gl/glm-5.3-flash-320b-q2/manifest.json +137 -0
- package/data/chat-models/gl/glm-5.3-flash-320b-q2/versions/1.0.0/manifest.json +23 -0
- package/data/chat-models/index.json +1 -1
- package/data/chat-models/qw/qwen3.8-flash-next-iq3/manifest.json +221 -0
- package/data/chat-models/qw/qwen3.8-flash-next-iq3/versions/1.0.0/manifest.json +36 -0
- package/data/chat-models/qw/qwen3.8-flash-next-iq4/manifest.json +221 -0
- package/data/chat-models/qw/qwen3.8-flash-next-iq4/versions/1.0.0/manifest.json +36 -0
- package/data/craftbook-templates/a1/a11y-audit/versions/1.1.3/test.json +16 -8
- package/data/craftbook-templates/ac/accessibility-retrofit/versions/2.0.2/craftbook.json +618 -0
- package/data/craftbook-templates/ac/accessibility-retrofit/versions/2.0.2/test.json +228 -0
- package/data/craftbook-templates/al/album-curate/versions/1.0.3/test.json +6 -3
- package/data/craftbook-templates/al/alert-rules/versions/1.0.3/test.json +8 -8
- package/data/craftbook-templates/an/anniversary-cut/versions/1.0.5/test.json +10 -5
- package/data/craftbook-templates/an/annual-document-review/versions/1.0.3/test.json +16 -8
- package/data/craftbook-templates/an/anomaly-scan/versions/1.0.3/test.json +12 -6
- package/data/craftbook-templates/ap/apply-review-findings/versions/1.0.2/craftbook.json +602 -0
- package/data/craftbook-templates/ap/apply-review-findings/versions/1.0.2/test.json +290 -0
- package/data/craftbook-templates/ar/artifact-integrity-review/versions/1.0.3/test.json +18 -9
- package/data/craftbook-templates/au/audiobook-master-pack/versions/1.0.5/test.json +10 -5
- package/data/craftbook-templates/au/auth-flow/versions/1.0.3/test.json +12 -6
- package/data/craftbook-templates/au/auth-flow/versions/1.0.4/craftbook.json +282 -0
- package/data/craftbook-templates/au/auth-flow/versions/1.0.4/test.json +143 -0
- package/data/craftbook-templates/au/automation-recipe/versions/1.0.3/test.json +12 -6
- package/data/craftbook-templates/ba/backup-routine/versions/1.0.4/craftbook.json +282 -0
- package/data/craftbook-templates/ba/backup-routine/versions/1.0.4/test.json +108 -0
- package/data/craftbook-templates/bl/blog-post/versions/1.0.3/test.json +8 -8
- package/data/craftbook-templates/br/branding-website/versions/1.1.3/craftbook.json +335 -0
- package/data/craftbook-templates/br/branding-website/versions/1.1.3/test.json +164 -0
- package/data/craftbook-templates/br/broadcast-announcement/versions/1.0.3/test.json +8 -8
- package/data/craftbook-templates/br/browser-qa-audit/versions/2.0.8/craftbook.json +621 -0
- package/data/craftbook-templates/br/browser-qa-audit/versions/2.0.8/test.json +376 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.2/craftbook.json +730 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.2/test.json +221 -0
- package/data/craftbook-templates/bu/build-loop/versions/1.1.1/test.json +8 -8
- package/data/craftbook-templates/ca/case-study/versions/1.0.3/test.json +8 -8
- package/data/craftbook-templates/ch/chapter-narration-run/versions/1.0.4/test.json +10 -5
- package/data/craftbook-templates/ch/character-turnaround/versions/1.0.3/test.json +25 -11
- package/data/craftbook-templates/ci/ci-pipeline/versions/2.0.2/craftbook.json +587 -0
- package/data/craftbook-templates/ci/ci-pipeline/versions/2.0.2/test.json +225 -0
- package/data/craftbook-templates/ci/citation-audit/versions/1.0.3/test.json +28 -14
- package/data/craftbook-templates/cl/cli-tool/versions/1.1.3/test.json +8 -8
- package/data/craftbook-templates/co/codebase-refactoring-review/versions/1.0.3/test.json +16 -8
- package/data/craftbook-templates/co/codebase-ux-review/versions/1.0.3/test.json +18 -9
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.2/craftbook.json +605 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.2/test.json +252 -0
- package/data/craftbook-templates/co/cohort-analysis/versions/1.0.3/test.json +18 -9
- package/data/craftbook-templates/co/competitive-analysis/versions/1.0.3/test.json +23 -15
- package/data/craftbook-templates/co/content-accuracy-review/versions/1.0.3/test.json +28 -14
- package/data/craftbook-templates/co/content-deck/versions/1.2.3/craftbook.json +4 -4
- package/data/craftbook-templates/co/content-deck/versions/1.2.3/test.json +3 -0
- package/data/craftbook-templates/co/content-deck/versions/1.2.4/craftbook.json +341 -0
- package/data/craftbook-templates/co/content-deck/versions/1.2.4/test.json +169 -0
- package/data/craftbook-templates/co/copy-review/versions/1.0.3/test.json +14 -7
- package/data/craftbook-templates/co/corpus-email-digest/versions/1.2.3/craftbook.json +4 -4
- package/data/craftbook-templates/co/corpus-email-digest/versions/1.2.3/test.json +3 -0
- package/data/craftbook-templates/co/corpus-email-digest/versions/1.2.4/craftbook.json +345 -0
- package/data/craftbook-templates/co/corpus-email-digest/versions/1.2.4/test.json +187 -0
- package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.3/test.json +26 -13
- package/data/craftbook-templates/co/cover-letter/versions/1.0.3/test.json +8 -8
- package/data/craftbook-templates/cs/csv-transformer/versions/1.2.4/test.json +7 -7
- package/data/craftbook-templates/da/dashboard-spec/versions/1.0.3/test.json +7 -7
- package/data/craftbook-templates/da/data-export-migrate/versions/1.0.4/craftbook.json +285 -0
- package/data/craftbook-templates/da/data-export-migrate/versions/1.0.4/test.json +104 -0
- package/data/craftbook-templates/da/data-pipeline-etl/versions/1.0.5/craftbook.json +284 -0
- package/data/craftbook-templates/da/data-pipeline-etl/versions/1.0.5/test.json +162 -0
- package/data/craftbook-templates/da/data-quality-audit/versions/1.0.3/test.json +38 -19
- package/data/craftbook-templates/da/data-to-report/versions/1.0.3/test.json +12 -6
- package/data/craftbook-templates/db/db-index-tuning/versions/1.0.4/craftbook.json +286 -0
- package/data/craftbook-templates/db/db-index-tuning/versions/1.0.4/test.json +104 -0
- package/data/craftbook-templates/de/dependency-audit/versions/1.1.3/test.json +14 -7
- package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.2/craftbook.json +621 -0
- package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.2/test.json +235 -0
- package/data/craftbook-templates/de/design-review/versions/1.0.3/test.json +16 -8
- package/data/craftbook-templates/de/design-system-consultation/versions/2.0.8/craftbook.json +616 -0
- package/data/craftbook-templates/de/design-system-consultation/versions/2.0.8/test.json +201 -0
- package/data/craftbook-templates/do/doc-intake-pipeline/versions/1.0.4/craftbook.json +285 -0
- package/data/craftbook-templates/do/doc-intake-pipeline/versions/1.0.4/test.json +104 -0
- package/data/craftbook-templates/do/doc-rewrite/versions/1.0.3/test.json +119 -55
- package/data/craftbook-templates/do/dockerize-app/versions/1.0.4/craftbook.json +285 -0
- package/data/craftbook-templates/do/dockerize-app/versions/1.0.4/test.json +92 -0
- package/data/craftbook-templates/do/documentation-drift-review/versions/1.0.3/test.json +18 -9
- package/data/craftbook-templates/dr/draft-social-post/versions/1.0.2/craftbook.json +324 -0
- package/data/craftbook-templates/dr/draft-social-post/versions/1.0.2/test.json +161 -0
- package/data/craftbook-templates/ed/edit-notes/versions/1.0.3/test.json +11 -4
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.8/craftbook.json +566 -0
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.8/test.json +191 -0
- package/data/craftbook-templates/ep/episode-plan/versions/1.0.3/test.json +10 -5
- package/data/craftbook-templates/ex/executive-level-review/versions/2.0.7/test.json +7 -10
- package/data/craftbook-templates/ex/executive-level-review/versions/2.0.8/craftbook.json +595 -0
- package/data/craftbook-templates/ex/executive-level-review/versions/2.0.8/test.json +139 -0
- package/data/craftbook-templates/ex/expense-categorize/versions/1.0.4/craftbook.json +277 -0
- package/data/craftbook-templates/ex/expense-categorize/versions/1.0.4/test.json +104 -0
- package/data/craftbook-templates/fe/feature-flag-rollout/versions/1.1.2/craftbook.json +327 -0
- package/data/craftbook-templates/fe/feature-flag-rollout/versions/1.1.2/test.json +162 -0
- package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.2/craftbook.json +718 -0
- package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.2/test.json +239 -0
- package/data/craftbook-templates/fo/form-fill-batch/versions/1.0.4/craftbook.json +285 -0
- package/data/craftbook-templates/fo/form-fill-batch/versions/1.0.4/test.json +162 -0
- package/data/craftbook-templates/fo/form-wizard/versions/1.0.3/test.json +8 -8
- package/data/craftbook-templates/ho/holiday-card-run/versions/1.0.3/test.json +11 -4
- package/data/craftbook-templates/ho/hotfix-flow/versions/2.0.2/craftbook.json +610 -0
- package/data/craftbook-templates/ho/hotfix-flow/versions/2.0.2/test.json +220 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.3/craftbook.json +343 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.3/test.json +176 -0
- package/data/craftbook-templates/id/idea-office-hours/versions/2.0.8/craftbook.json +566 -0
- package/data/craftbook-templates/id/idea-office-hours/versions/2.0.8/test.json +141 -0
- package/data/craftbook-templates/im/image-set-index/versions/1.2.3/craftbook.json +298 -0
- package/data/craftbook-templates/im/image-set-index/versions/1.2.3/test.json +180 -0
- package/data/craftbook-templates/in/insurance-inventory/versions/1.0.3/test.json +11 -4
- package/data/craftbook-templates/in/interactive-quiz/versions/1.0.3/test.json +48 -23
- package/data/craftbook-templates/in/invitation-design/versions/1.0.3/test.json +1 -1
- package/data/craftbook-templates/index.json +1 -1
- package/data/craftbook-templates/it/item-intake/versions/1.0.3/test.json +11 -4
- package/data/craftbook-templates/le/lead-enrichment/versions/1.0.4/craftbook.json +277 -0
- package/data/craftbook-templates/le/lead-enrichment/versions/1.0.4/test.json +104 -0
- package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.3/test.json +16 -8
- package/data/craftbook-templates/me/memory-prompt-session/versions/1.0.3/test.json +3 -0
- package/data/craftbook-templates/mo/morning-report/versions/1.0.3/test.json +21 -9
- package/data/craftbook-templates/of/office-hours/versions/1.1.1/test.json +8 -8
- package/data/craftbook-templates/pe/perf-optimization/versions/2.0.2/craftbook.json +697 -0
- package/data/craftbook-templates/pe/perf-optimization/versions/2.0.2/test.json +235 -0
- package/data/craftbook-templates/pe/pest-diagnosis/versions/1.0.3/test.json +19 -8
- package/data/craftbook-templates/pl/plan/versions/1.0.2/test.json +8 -8
- package/data/craftbook-templates/pl/playtest-report/versions/1.0.3/test.json +17 -7
- package/data/craftbook-templates/pr/practice-exam/versions/1.0.3/test.json +7 -2
- package/data/craftbook-templates/pr/practice-session/versions/1.0.3/test.json +11 -4
- package/data/craftbook-templates/pu/pull-request-review/versions/1.9.2/craftbook.json +435 -0
- package/data/craftbook-templates/pu/pull-request-review/versions/1.9.2/test.json +141 -0
- package/data/craftbook-templates/qu/quarterly-summary/versions/1.0.3/test.json +16 -8
- package/data/craftbook-templates/re/receipt-intake/versions/1.0.3/test.json +11 -4
- package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.4/craftbook.json +277 -0
- package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.4/test.json +104 -0
- package/data/craftbook-templates/re/recipe-capture/versions/1.0.3/test.json +13 -5
- package/data/craftbook-templates/re/record-a-relative/versions/1.0.3/test.json +3 -0
- package/data/craftbook-templates/re/recurring-invoice-run/versions/1.0.4/craftbook.json +285 -0
- package/data/craftbook-templates/re/recurring-invoice-run/versions/1.0.4/test.json +104 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.2/craftbook.json +695 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.2/test.json +241 -0
- package/data/craftbook-templates/re/release-artifact-sanity-check/versions/1.0.4/craftbook.json +361 -0
- package/data/craftbook-templates/re/release-artifact-sanity-check/versions/1.0.4/test.json +138 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.4/test.json +8 -8
- package/data/craftbook-templates/re/release-notes/versions/1.0.5/craftbook.json +339 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.5/test.json +111 -0
- package/data/craftbook-templates/re/reliability-review/versions/1.0.3/test.json +16 -8
- package/data/craftbook-templates/re/research-report/versions/1.0.3/test.json +16 -8
- package/data/craftbook-templates/ro/root-cause-investigation/versions/2.0.8/craftbook.json +596 -0
- package/data/craftbook-templates/ro/root-cause-investigation/versions/2.0.8/test.json +157 -0
- package/data/craftbook-templates/ro/rough-cut-assembly/versions/1.0.4/test.json +13 -5
- package/data/craftbook-templates/sc/schema-migration/versions/2.0.2/craftbook.json +624 -0
- package/data/craftbook-templates/sc/schema-migration/versions/2.0.2/test.json +225 -0
- package/data/craftbook-templates/sc/script-automation/versions/1.0.4/craftbook.json +284 -0
- package/data/craftbook-templates/sc/script-automation/versions/1.0.4/test.json +162 -0
- package/data/craftbook-templates/se/security-architecture-review/versions/2.0.7/test.json +10 -13
- package/data/craftbook-templates/se/security-architecture-review/versions/2.0.8/craftbook.json +597 -0
- package/data/craftbook-templates/se/security-architecture-review/versions/2.0.8/test.json +157 -0
- package/data/craftbook-templates/so/social-digest/versions/1.0.3/craftbook.json +239 -0
- package/data/craftbook-templates/so/social-digest/versions/1.0.3/test.json +168 -0
- package/data/craftbook-templates/so/source-quality-audit/versions/1.0.3/test.json +25 -11
- package/data/craftbook-templates/sp/spec-authoring/versions/2.0.8/craftbook.json +599 -0
- package/data/craftbook-templates/sp/spec-authoring/versions/2.0.8/test.json +162 -0
- package/data/craftbook-templates/te/technical-documentation/versions/2.0.8/craftbook.json +577 -0
- package/data/craftbook-templates/te/technical-documentation/versions/2.0.8/test.json +174 -0
- package/data/craftbook-templates/te/test-coverage-review/versions/1.2.1/test.json +16 -8
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.2/craftbook.json +592 -0
- package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.2/test.json +195 -0
- package/data/craftbook-templates/th/thank-you-batch/versions/1.0.3/test.json +6 -3
- package/data/craftbook-templates/th/thank-you-sweep/versions/1.0.3/test.json +11 -4
- package/data/craftbook-templates/ti/tileset-batch/versions/1.0.3/test.json +9 -3
- package/data/craftbook-templates/tr/transcribe-and-shownotes/versions/1.0.3/test.json +10 -5
- package/data/craftbook-templates/tr/transcribe-index/versions/1.0.3/test.json +6 -3
- package/data/craftbook-templates/tr/translate-content/versions/1.1.3/craftbook.json +140 -0
- package/data/craftbook-templates/tr/translate-content/versions/1.1.3/test.json +141 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.2/craftbook.json +594 -0
- package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.2/test.json +221 -0
- package/data/craftbook-templates/ux/ux-update/versions/1.0.2/craftbook.json +606 -0
- package/data/craftbook-templates/ux/ux-update/versions/1.0.2/test.json +206 -0
- package/data/craftbook-templates/we/weak-spot-drill/versions/1.0.3/test.json +11 -4
- package/data/craftbook-templates/we/weekly-walkthrough/versions/1.0.3/test.json +21 -9
- package/data/craftbook-templates/wh/whitepaper/versions/1.0.3/test.json +16 -8
- package/data/craftbook-templates/ye/year-in-review/versions/1.0.3/test.json +8 -4
- package/data/project-types/index.json +1 -1
- package/data/project-types/ju/just-chat/manifest.json +1 -1
- package/data/project-types/ju/just-chat/versions/1.0.1/about.md +5 -0
- package/data/project-types/ju/just-chat/versions/1.0.1/manifest.json +19 -0
- package/package.json +1 -1
- package/schemas/chat-model-identity.schema.json +27 -0
- package/schemas/chat-model-version.schema.json +22 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "Repo-wide rename sweep with reconciled counts",
|
|
4
|
+
"objective": "The craftbook drives a complete mechanical rename of fetchUserData to loadUser across a small repo whose sites include a re-export and a template-literal log string, with a changelog legitimately excluded as history - verified mechanically by a residual scan, behavior probes on every site, and a green suite.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"code",
|
|
7
|
+
"codemod",
|
|
8
|
+
"rename",
|
|
9
|
+
"tactical-fleet"
|
|
10
|
+
],
|
|
11
|
+
"prompt": "Use the Codemod Sweep craftbook for this: rename fetchUserData to loadUser across the whole repo - the export, the re-export, every import and call site, and log strings that mention the old name. CHANGELOG.md is history and keeps the old name. The brief is in source/rename-brief.md. No behavior change.",
|
|
12
|
+
"setup": {
|
|
13
|
+
"projectName": "Profile Cards",
|
|
14
|
+
"about": "A tiny profile-rendering module with an in-memory user store. Tests run with `npm run test` (node --test).",
|
|
15
|
+
"files": [
|
|
16
|
+
{
|
|
17
|
+
"path": "package.json",
|
|
18
|
+
"content": "{\n \"name\": \"profile-cards\",\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/api.js",
|
|
22
|
+
"content": "const USERS = new Map([\n [1, { id: 1, name: 'Ada' }],\n [2, { id: 2, name: 'Grace' }],\n]);\n\nexport function fetchUserData(id) {\n const user = USERS.get(id);\n if (!user) throw new Error(`no user ${id}`);\n return { ...user };\n}\n"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "src/index.js",
|
|
26
|
+
"content": "export { fetchUserData } from './api.js';\n"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "src/log.js",
|
|
30
|
+
"content": "export const lines = [];\n\nexport function logLine(line) {\n lines.push(line);\n}\n"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "src/profile.js",
|
|
34
|
+
"content": "import { fetchUserData } from './api.js';\nimport { logLine } from './log.js';\n\nexport function profileSummary(id) {\n const user = fetchUserData(id);\n logLine(`fetchUserData resolved user ${user.id}`);\n return `${user.name} (#${user.id})`;\n}\n"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "tests/profile.test.mjs",
|
|
38
|
+
"content": "import assert from 'node:assert/strict';\nimport { test } from 'node:test';\nimport { fetchUserData } from '../src/index.js';\nimport { lines } from '../src/log.js';\nimport { profileSummary } from '../src/profile.js';\n\ntest('profileSummary renders the user line', () => {\n assert.equal(profileSummary(1), 'Ada (#1)');\n});\n\ntest('profileSummary logs the lookup', () => {\n profileSummary(2);\n assert.ok(lines.some((line) => line.includes('resolved user 2')));\n});\n\ntest('the re-export serves the same function', () => {\n assert.equal(fetchUserData(1).name, 'Ada');\n});\n"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"path": "CHANGELOG.md",
|
|
42
|
+
"content": "# Changelog\n\n## 1.2.0\n\n- fetchUserData now copies the record before returning it, so callers can\n mutate the result safely.\n\n## 1.0.0\n\n- Initial release with fetchUserData and the profile summary renderer.\n"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "source/rename-brief.md",
|
|
46
|
+
"content": "# Rename brief: fetchUserData -> loadUser\n\nThe function does not fetch anything remote any more, so the name misleads.\nRename `fetchUserData` to `loadUser` everywhere it appears: the export, the\nre-export, every import and call site, and log strings that mention the old\nname - the log lines should follow the rename too.\n\nDo not rewrite history: `CHANGELOG.md` keeps the old name, because it records\nwhat past releases were actually called.\n\nNo behavior change: same records returned, same summary strings, same number\nof log lines.\n"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"path": "tests/verify-sweep.mjs",
|
|
50
|
+
"content": "import assert from 'node:assert/strict';\nimport { execFileSync } from 'node:child_process';\nimport { readFileSync, readdirSync, statSync } from 'node:fs';\nimport { join, relative } from 'node:path';\nimport { pathToFileURL } from 'node:url';\n\nconst root = process.cwd();\n\n// 1) Residual scan: zero mentions of the old name outside the excluded\n// history (CHANGELOG.md), the briefing material (source/), and\n// harness-owned files.\nconst SKIP_FILES = new Set(['CHANGELOG.md', 'task-notes.md', 'task-graph.md', 'tests/verify-sweep.mjs']);\nconst SKIP_DIRS = new Set(['node_modules', 'source']);\nconst hits = [];\nfunction scan(dir) {\n for (const entry of readdirSync(dir)) {\n if (entry.startsWith('.')) continue;\n const full = join(dir, entry);\n const rel = relative(root, full).split('\\\\').join('/');\n const stat = statSync(full);\n if (stat.isDirectory()) {\n if (SKIP_DIRS.has(entry)) continue;\n scan(full);\n continue;\n }\n if (SKIP_FILES.has(rel)) continue;\n if (!/\\.(js|mjs|cjs|json|md|txt)$/.test(entry)) continue;\n if (/\\bfetchUserData\\b/.test(readFileSync(full, 'utf8'))) hits.push(rel);\n }\n}\nscan(root);\nassert.deepEqual(hits, [], `the old name survives outside the exclusions in: ${hits.join(', ')}`);\nconsole.log('CODEMOD_ORACLE residual scan clean');\n\n// 2) Every site behaves under the new name, including the tricky ones.\nconst api = await import(pathToFileURL(join(root, 'src/api.js')).href);\nassert.equal(typeof api.loadUser, 'function', 'src/api.js must export loadUser');\nassert.equal(api.fetchUserData, undefined, 'src/api.js still exports the old name');\nconst index = await import(pathToFileURL(join(root, 'src/index.js')).href);\nassert.equal(typeof index.loadUser, 'function', 'src/index.js must re-export loadUser');\nassert.equal(index.fetchUserData, undefined, 'src/index.js still re-exports the old name');\nassert.equal(index.loadUser(1).name, 'Ada', 'the re-exported loadUser must return the same records');\nconst { profileSummary } = await import(pathToFileURL(join(root, 'src/profile.js')).href);\nconst { lines } = await import(pathToFileURL(join(root, 'src/log.js')).href);\nassert.equal(profileSummary(1), 'Ada (#1)', 'profileSummary behavior must be unchanged');\nassert.ok(\n lines.some((line) => line.includes('loadUser resolved user 1')),\n 'the log string must follow the rename',\n);\nassert.ok(\n !lines.some((line) => line.includes('fetchUserData')),\n 'a log string still mentions the old name',\n);\nconsole.log('CODEMOD_ORACLE behavior ok');\n\n// 3) History kept: the excluded changelog still records the old name.\nassert.ok(\n /\\bfetchUserData\\b/.test(readFileSync(join(root, 'CHANGELOG.md'), 'utf8')),\n 'CHANGELOG.md must keep the historical name',\n);\nconsole.log('CODEMOD_ORACLE history kept');\n\n// 4) The suite is green after the sweep, and the seeded test file survives.\nreadFileSync(join(root, 'tests/profile.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 after the sweep');\nconsole.log('CODEMOD_ORACLE suite green');\nconsole.log('CODEMOD_ORACLE done');\n",
|
|
51
|
+
"surface": "harness"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"craftbookParams": {
|
|
55
|
+
"scope": "Rename fetchUserData to loadUser everywhere, including log strings that mention it; CHANGELOG.md keeps the historical name; no behavior change. See source/rename-brief.md."
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"mocks": [],
|
|
59
|
+
"success": {
|
|
60
|
+
"summary": "Zero references to the old name remain outside the excluded changelog and brief, every site (including the re-export and the log string) behaves under the new name, the suite is green, and every fleet artifact exists with counts that reconcile.",
|
|
61
|
+
"deliverables": [
|
|
62
|
+
{
|
|
63
|
+
"path": "{{task.dir}}/sites.md",
|
|
64
|
+
"kind": "markdown-notes",
|
|
65
|
+
"artifact": true,
|
|
66
|
+
"minBytes": 500,
|
|
67
|
+
"checks": [
|
|
68
|
+
{
|
|
69
|
+
"kind": "contains",
|
|
70
|
+
"file": "{{task.dir}}/sites.md",
|
|
71
|
+
"pattern": "^##\\s+Pattern[\\s\\S]*^##\\s+Sites found[\\s\\S]*^##\\s+Exclusions",
|
|
72
|
+
"flags": "im",
|
|
73
|
+
"label": "sites sections in order"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"kind": "contains",
|
|
77
|
+
"file": "{{task.dir}}/sites.md",
|
|
78
|
+
"pattern": "src/index\\.js",
|
|
79
|
+
"label": "found the re-export site"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"kind": "citationsResolve",
|
|
83
|
+
"file": "{{task.dir}}/sites.md",
|
|
84
|
+
"minCitations": 2,
|
|
85
|
+
"artifact": true
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "{{task.dir}}/change-notes.md",
|
|
91
|
+
"kind": "markdown-notes",
|
|
92
|
+
"artifact": true,
|
|
93
|
+
"minBytes": 500,
|
|
94
|
+
"checks": [
|
|
95
|
+
{
|
|
96
|
+
"kind": "contains",
|
|
97
|
+
"file": "{{task.dir}}/change-notes.md",
|
|
98
|
+
"pattern": "^##\\s+Sites changed[\\s\\S]*^##\\s+Files touched[\\s\\S]*^##\\s+Invariants held",
|
|
99
|
+
"flags": "im",
|
|
100
|
+
"label": "change-notes sections in order"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"kind": "citationsResolve",
|
|
104
|
+
"file": "{{task.dir}}/change-notes.md",
|
|
105
|
+
"minCitations": 2,
|
|
106
|
+
"artifact": true
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"path": "{{task.dir}}/verification.md",
|
|
112
|
+
"kind": "markdown-notes",
|
|
113
|
+
"artifact": true,
|
|
114
|
+
"minBytes": 450,
|
|
115
|
+
"checks": [
|
|
116
|
+
{
|
|
117
|
+
"kind": "contains",
|
|
118
|
+
"file": "{{task.dir}}/verification.md",
|
|
119
|
+
"pattern": "^##\\s+Residual scan[\\s\\S]*^##\\s+Counts reconciled[\\s\\S]*^##\\s+Suite[\\s\\S]*^##\\s+Result",
|
|
120
|
+
"flags": "im",
|
|
121
|
+
"label": "verification sections in order"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"path": "{{task.dir}}/review.md",
|
|
127
|
+
"kind": "markdown-report",
|
|
128
|
+
"artifact": true,
|
|
129
|
+
"minBytes": 400,
|
|
130
|
+
"checks": [
|
|
131
|
+
{
|
|
132
|
+
"kind": "contains",
|
|
133
|
+
"file": "{{task.dir}}/review.md",
|
|
134
|
+
"pattern": "Verdict:\\s*(?:PASS|REVISE)",
|
|
135
|
+
"flags": "i",
|
|
136
|
+
"label": "explicit reviewer verdict"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"checks": [
|
|
142
|
+
{
|
|
143
|
+
"kind": "notContains",
|
|
144
|
+
"file": "src/api.js",
|
|
145
|
+
"pattern": "\\bfetchUserData\\b",
|
|
146
|
+
"label": "the old name is gone from the definition site"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"kind": "notContains",
|
|
150
|
+
"file": "src/index.js",
|
|
151
|
+
"pattern": "\\bfetchUserData\\b",
|
|
152
|
+
"label": "the old name is gone from the re-export site"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "notContains",
|
|
156
|
+
"file": "src/profile.js",
|
|
157
|
+
"pattern": "\\bfetchUserData\\b",
|
|
158
|
+
"label": "the old name is gone from the call site and its log string"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"kind": "notContains",
|
|
162
|
+
"file": "tests/profile.test.mjs",
|
|
163
|
+
"pattern": "\\bfetchUserData\\b",
|
|
164
|
+
"label": "the old name is gone from the test call sites"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"kind": "contains",
|
|
168
|
+
"file": "CHANGELOG.md",
|
|
169
|
+
"pattern": "\\bfetchUserData\\b",
|
|
170
|
+
"label": "the excluded changelog keeps the historical name"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"kind": "sourceParses",
|
|
174
|
+
"file": "src/api.js"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"kind": "sourceParses",
|
|
178
|
+
"file": "src/profile.js"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"kind": "nodeRuns",
|
|
182
|
+
"file": "tests/profile.test.mjs"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "nodeScriptPasses",
|
|
186
|
+
"script": "tests/verify-sweep.mjs",
|
|
187
|
+
"timeoutMs": 60000,
|
|
188
|
+
"requiredOutput": [
|
|
189
|
+
{
|
|
190
|
+
"pattern": "CODEMOD_ORACLE residual scan clean",
|
|
191
|
+
"label": "zero un-excluded sites remain"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"pattern": "CODEMOD_ORACLE behavior ok",
|
|
195
|
+
"label": "every site behaves under the new name"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"pattern": "CODEMOD_ORACLE suite green",
|
|
199
|
+
"label": "suite green after the sweep"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"taskNotes": {
|
|
205
|
+
"minBytes": 120,
|
|
206
|
+
"checks": [
|
|
207
|
+
{
|
|
208
|
+
"kind": "contains",
|
|
209
|
+
"file": "task-notes.md",
|
|
210
|
+
"pattern": "\\bDONE\\b[\\s\\S]*(npm\\s+run\\s+test|node\\s+--test)",
|
|
211
|
+
"flags": "i",
|
|
212
|
+
"label": "DONE note names the real test command"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"taskGraph": {
|
|
217
|
+
"requireCraftbookTask": true,
|
|
218
|
+
"requireTerminalStep": true
|
|
219
|
+
},
|
|
220
|
+
"unchangedFixtures": [
|
|
221
|
+
"CHANGELOG.md",
|
|
222
|
+
"source/rename-brief.md",
|
|
223
|
+
"package.json",
|
|
224
|
+
"src/log.js"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"rubric": {
|
|
228
|
+
"artifact": {
|
|
229
|
+
"path": "{{task.dir}}/verification.md",
|
|
230
|
+
"kind": "markdown"
|
|
231
|
+
},
|
|
232
|
+
"axes": [
|
|
233
|
+
{
|
|
234
|
+
"name": "Enumeration completeness",
|
|
235
|
+
"description": "Every site was found by real searches before any edit - the definition, the re-export, the imports and call sites, and the log string - with the changelog excluded for a stated reason rather than missed."
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "Invariant discipline",
|
|
239
|
+
"description": "The change stayed mechanical: nothing changed beyond the declared rename, the excluded files are untouched, and behavior is identical."
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "Reconciled verification",
|
|
243
|
+
"description": "The residual re-scan is quoted with its result, the found/changed/excluded counts add up exactly, and the suite run backing the green claim is real."
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
"qualityFocus": [
|
|
248
|
+
"sweep completeness",
|
|
249
|
+
"count reconciliation",
|
|
250
|
+
"behavior invariants"
|
|
251
|
+
]
|
|
252
|
+
}
|
|
@@ -37,54 +37,63 @@
|
|
|
37
37
|
"kind": "contains",
|
|
38
38
|
"file": "tasks/eval/readout.md",
|
|
39
39
|
"pattern": "(?:^|\\n)#{1,3}\\s+\\S",
|
|
40
|
-
"flags": "i"
|
|
40
|
+
"flags": "i",
|
|
41
|
+
"artifact": true
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
"kind": "contains",
|
|
44
45
|
"file": "tasks/eval/readout.md",
|
|
45
46
|
"pattern": "cohort|retention|W0|W1|W2",
|
|
46
|
-
"flags": "i"
|
|
47
|
+
"flags": "i",
|
|
48
|
+
"artifact": true
|
|
47
49
|
},
|
|
48
50
|
{
|
|
49
51
|
"kind": "contains",
|
|
50
52
|
"file": "tasks/eval/readout.md",
|
|
51
53
|
"pattern": "2026-W20|2026-W21|2026-W22",
|
|
52
|
-
"flags": "i"
|
|
54
|
+
"flags": "i",
|
|
55
|
+
"artifact": true
|
|
53
56
|
},
|
|
54
57
|
{
|
|
55
58
|
"kind": "contains",
|
|
56
59
|
"file": "tasks/eval/readout.md",
|
|
57
60
|
"pattern": "100%|67%|66%|33%|0%|trend",
|
|
58
|
-
"flags": "i"
|
|
61
|
+
"flags": "i",
|
|
62
|
+
"artifact": true
|
|
59
63
|
},
|
|
60
64
|
{
|
|
61
65
|
"kind": "contains",
|
|
62
66
|
"file": "tasks/eval/readout.md",
|
|
63
67
|
"pattern": "incomplete|recent cohort|caveat|next action",
|
|
64
|
-
"flags": "i"
|
|
68
|
+
"flags": "i",
|
|
69
|
+
"artifact": true
|
|
65
70
|
},
|
|
66
71
|
{
|
|
67
72
|
"kind": "contains",
|
|
68
73
|
"file": "tasks/eval/readout.md",
|
|
69
74
|
"pattern": "2026-W22[\\s\\S]{0,250}(incomplete|null|not yet observed|2026-W24)",
|
|
70
75
|
"flags": "i",
|
|
71
|
-
"label": "mark W22 W2 as incomplete instead of estimating it"
|
|
76
|
+
"label": "mark W22 W2 as incomplete instead of estimating it",
|
|
77
|
+
"artifact": true
|
|
72
78
|
},
|
|
73
79
|
{
|
|
74
80
|
"kind": "contains",
|
|
75
81
|
"file": "tasks/eval/readout.md",
|
|
76
82
|
"pattern": "2026-W21[^\\n]*(?:0%|0\\.00)",
|
|
77
83
|
"flags": "i",
|
|
78
|
-
"label": "readout must show 2026-W21 W2 as observed zero retention"
|
|
84
|
+
"label": "readout must show 2026-W21 W2 as observed zero retention",
|
|
85
|
+
"artifact": true
|
|
79
86
|
},
|
|
80
87
|
{
|
|
81
88
|
"kind": "notContains",
|
|
82
89
|
"file": "tasks/eval/readout.md",
|
|
83
90
|
"pattern": "37\\.5%|\\b4\\s+users\\b|total users\\s*\\|\\s*4|2026-W21[^\\n]*(?:N/A|null|incomplete)|W2 for 2026-W21[^\\n]*(?:N/A|null|incomplete)",
|
|
84
91
|
"flags": "i",
|
|
85
|
-
"label": "do not invent a fourth 2026-W22 user, estimate W2, or mark observed W21 W2 as incomplete"
|
|
92
|
+
"label": "do not invent a fourth 2026-W22 user, estimate W2, or mark observed W21 W2 as incomplete",
|
|
93
|
+
"artifact": true
|
|
86
94
|
}
|
|
87
|
-
]
|
|
95
|
+
],
|
|
96
|
+
"artifact": true
|
|
88
97
|
},
|
|
89
98
|
{
|
|
90
99
|
"path": "data/cohorts.json",
|
|
@@ -36,44 +36,52 @@
|
|
|
36
36
|
{
|
|
37
37
|
"kind": "contains",
|
|
38
38
|
"file": "tasks/eval/analysis.md",
|
|
39
|
-
"pattern": "HarborCRM|AtlasOps|Deskline|RelayFlow"
|
|
39
|
+
"pattern": "HarborCRM|AtlasOps|Deskline|RelayFlow",
|
|
40
|
+
"artifact": true
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
43
|
"kind": "contains",
|
|
43
44
|
"file": "tasks/eval/analysis.md",
|
|
44
45
|
"pattern": "target customer|pricing|automation|integration|reporting|weakness",
|
|
45
|
-
"flags": "i"
|
|
46
|
+
"flags": "i",
|
|
47
|
+
"artifact": true
|
|
46
48
|
},
|
|
47
49
|
{
|
|
48
50
|
"kind": "contains",
|
|
49
51
|
"file": "tasks/eval/analysis.md",
|
|
50
52
|
"pattern": "\\|.*\\|.*\\|",
|
|
51
|
-
"flags": "m"
|
|
53
|
+
"flags": "m",
|
|
54
|
+
"artifact": true
|
|
52
55
|
},
|
|
53
56
|
{
|
|
54
57
|
"kind": "contains",
|
|
55
58
|
"file": "tasks/eval/analysis.md",
|
|
56
|
-
"pattern": "\\[1\\]|\\[2\\]|\\[3\\]|\\[4\\]"
|
|
59
|
+
"pattern": "\\[1\\]|\\[2\\]|\\[3\\]|\\[4\\]",
|
|
60
|
+
"artifact": true
|
|
57
61
|
},
|
|
58
62
|
{
|
|
59
63
|
"kind": "contains",
|
|
60
64
|
"file": "tasks/eval/analysis.md",
|
|
61
65
|
"pattern": "competitive gap|gap|recommendation|compete",
|
|
62
|
-
"flags": "i"
|
|
66
|
+
"flags": "i",
|
|
67
|
+
"artifact": true
|
|
63
68
|
},
|
|
64
69
|
{
|
|
65
70
|
"kind": "contains",
|
|
66
71
|
"file": "tasks/eval/analysis.md",
|
|
67
72
|
"pattern": "EDI|QuickBooks|NetSuite|AI email|carrier tracking",
|
|
68
|
-
"flags": "i"
|
|
73
|
+
"flags": "i",
|
|
74
|
+
"artifact": true
|
|
69
75
|
},
|
|
70
76
|
{
|
|
71
77
|
"kind": "notContains",
|
|
72
78
|
"file": "tasks/eval/analysis.md",
|
|
73
79
|
"pattern": "TBD|unknown|not available",
|
|
74
|
-
"flags": "i"
|
|
80
|
+
"flags": "i",
|
|
81
|
+
"artifact": true
|
|
75
82
|
}
|
|
76
|
-
]
|
|
83
|
+
],
|
|
84
|
+
"artifact": true
|
|
77
85
|
}
|
|
78
86
|
]
|
|
79
87
|
},
|
|
@@ -84,20 +92,20 @@
|
|
|
84
92
|
},
|
|
85
93
|
"axes": [
|
|
86
94
|
{
|
|
87
|
-
"name": "
|
|
88
|
-
"description": "
|
|
95
|
+
"name": "accuracy",
|
|
96
|
+
"description": "Computed figures are correct against the seeded records."
|
|
89
97
|
},
|
|
90
98
|
{
|
|
91
99
|
"name": "grounding",
|
|
92
|
-
"description": "
|
|
100
|
+
"description": "Every claim traces to the seeded data — nothing invented."
|
|
93
101
|
},
|
|
94
102
|
{
|
|
95
|
-
"name": "
|
|
96
|
-
"description": "
|
|
103
|
+
"name": "structure",
|
|
104
|
+
"description": "Tables and sections make the analysis checkable at a glance."
|
|
97
105
|
},
|
|
98
106
|
{
|
|
99
|
-
"name": "
|
|
100
|
-
"description": "
|
|
107
|
+
"name": "actionability",
|
|
108
|
+
"description": "Recommendations follow from the findings and are concretely doable."
|
|
101
109
|
}
|
|
102
110
|
]
|
|
103
111
|
},
|
|
@@ -41,82 +41,96 @@
|
|
|
41
41
|
"kind": "contains",
|
|
42
42
|
"file": "tasks/eval/accuracy-review.md",
|
|
43
43
|
"pattern": "(?:^|\\n)#{1,3}\\s+\\S",
|
|
44
|
-
"flags": "i"
|
|
44
|
+
"flags": "i",
|
|
45
|
+
"artifact": true
|
|
45
46
|
},
|
|
46
47
|
{
|
|
47
48
|
"kind": "contains",
|
|
48
49
|
"file": "tasks/eval/accuracy-review.md",
|
|
49
50
|
"pattern": "TRUE|FALSE|MISLEADING|UNVERIFIABLE|trust rating",
|
|
50
|
-
"flags": "i"
|
|
51
|
+
"flags": "i",
|
|
52
|
+
"artifact": true
|
|
51
53
|
},
|
|
52
54
|
{
|
|
53
55
|
"kind": "contains",
|
|
54
56
|
"file": "tasks/eval/accuracy-review.md",
|
|
55
57
|
"pattern": "February|March|all SKUs|18 home-office",
|
|
56
|
-
"flags": "i"
|
|
58
|
+
"flags": "i",
|
|
59
|
+
"artifact": true
|
|
57
60
|
},
|
|
58
61
|
{
|
|
59
62
|
"kind": "contains",
|
|
60
63
|
"file": "tasks/eval/accuracy-review.md",
|
|
61
64
|
"pattern": "18\\s*hours|4\\s*hours|6\\s*hours|14\\.2%|8\\.9%|21%",
|
|
62
|
-
"flags": "i"
|
|
65
|
+
"flags": "i",
|
|
66
|
+
"artifact": true
|
|
63
67
|
},
|
|
64
68
|
{
|
|
65
69
|
"kind": "contains",
|
|
66
70
|
"file": "tasks/eval/accuracy-review.md",
|
|
67
71
|
"pattern": "correction|correct statement|source|evidence",
|
|
68
|
-
"flags": "i"
|
|
72
|
+
"flags": "i",
|
|
73
|
+
"artifact": true
|
|
69
74
|
},
|
|
70
75
|
{
|
|
71
76
|
"kind": "contains",
|
|
72
77
|
"file": "tasks/eval/accuracy-review.md",
|
|
73
78
|
"pattern": "guarantees national rollout|proposed for July",
|
|
74
|
-
"flags": "i"
|
|
79
|
+
"flags": "i",
|
|
80
|
+
"artifact": true
|
|
75
81
|
},
|
|
76
82
|
{
|
|
77
83
|
"kind": "contains",
|
|
78
84
|
"file": "tasks/eval/accuracy-review.md",
|
|
79
85
|
"pattern": "February[\\s\\S]{0,250}False|False[\\s\\S]{0,250}February",
|
|
80
|
-
"flags": "i"
|
|
86
|
+
"flags": "i",
|
|
87
|
+
"artifact": true
|
|
81
88
|
},
|
|
82
89
|
{
|
|
83
90
|
"kind": "contains",
|
|
84
91
|
"file": "tasks/eval/accuracy-review.md",
|
|
85
92
|
"pattern": "all SKUs[\\s\\S]{0,250}False|False[\\s\\S]{0,250}all SKUs",
|
|
86
|
-
"flags": "i"
|
|
93
|
+
"flags": "i",
|
|
94
|
+
"artifact": true
|
|
87
95
|
},
|
|
88
96
|
{
|
|
89
97
|
"kind": "contains",
|
|
90
98
|
"file": "tasks/eval/accuracy-review.md",
|
|
91
99
|
"pattern": "4\\s*hours[\\s\\S]{0,250}(False|Misleading)|(False|Misleading)[\\s\\S]{0,250}4\\s*hours",
|
|
92
|
-
"flags": "i"
|
|
100
|
+
"flags": "i",
|
|
101
|
+
"artifact": true
|
|
93
102
|
},
|
|
94
103
|
{
|
|
95
104
|
"kind": "contains",
|
|
96
105
|
"file": "tasks/eval/accuracy-review.md",
|
|
97
106
|
"pattern": "14\\.2%[\\s\\S]{0,250}True|8\\.9%[\\s\\S]{0,250}True|True[\\s\\S]{0,250}14\\.2%",
|
|
98
|
-
"flags": "i"
|
|
107
|
+
"flags": "i",
|
|
108
|
+
"artifact": true
|
|
99
109
|
},
|
|
100
110
|
{
|
|
101
111
|
"kind": "contains",
|
|
102
112
|
"file": "tasks/eval/accuracy-review.md",
|
|
103
113
|
"pattern": "21%[\\s\\S]{0,250}True|True[\\s\\S]{0,250}21%",
|
|
104
|
-
"flags": "i"
|
|
114
|
+
"flags": "i",
|
|
115
|
+
"artifact": true
|
|
105
116
|
},
|
|
106
117
|
{
|
|
107
118
|
"kind": "contains",
|
|
108
119
|
"file": "tasks/eval/accuracy-review.md",
|
|
109
120
|
"pattern": "guarantees[\\s\\S]{0,300}(False|Misleading)|(False|Misleading)[\\s\\S]{0,300}guarantees",
|
|
110
|
-
"flags": "i"
|
|
121
|
+
"flags": "i",
|
|
122
|
+
"artifact": true
|
|
111
123
|
},
|
|
112
124
|
{
|
|
113
125
|
"kind": "notContains",
|
|
114
126
|
"file": "tasks/eval/accuracy-review.md",
|
|
115
127
|
"pattern": "Q3|AlphaCorp|enterprise software|cash reserve|dominant market|CEO announced|RESTful API|stress tests",
|
|
116
128
|
"flags": "i",
|
|
117
|
-
"label": "do not invent review claims or evidence beyond the seeded article"
|
|
129
|
+
"label": "do not invent review claims or evidence beyond the seeded article",
|
|
130
|
+
"artifact": true
|
|
118
131
|
}
|
|
119
|
-
]
|
|
132
|
+
],
|
|
133
|
+
"artifact": true
|
|
120
134
|
}
|
|
121
135
|
]
|
|
122
136
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "content-deck",
|
|
3
3
|
"name": "Slide Deck from Content",
|
|
4
|
-
"description": "Turn a body of source content into a presentation deck. Outlines the narrative first, designs a consistent slide look, then builds the deck (HTML slides), evaluating for narrative flow and visual consistency.\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. Outline the deck (planner) — narrative arc + per-slide bullets from the source → gated on artifact `
|
|
4
|
+
"description": "Turn a body of source content into a presentation deck. Outlines the narrative first, designs a consistent slide look, then builds the deck (HTML slides), evaluating for narrative flow and visual consistency.\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. Outline the deck (planner) — narrative arc + per-slide bullets from the source → gated on artifact `{{workPath}}/outline.md` (markdown-notes)\n2. Slide design (designer) — a consistent slide template + palette → gated on artifact `{{workPath}}/design-system.md` (markdown-notes)\n3. Build the deck (developer) — generate the slides to the template → gated on `index.html` (slide-deck)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
|
|
5
5
|
"entryStepId": "outline",
|
|
6
6
|
"triggers": [
|
|
7
7
|
"slide deck",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"suggestedRole": "designer",
|
|
102
102
|
"consumes": [
|
|
103
103
|
{
|
|
104
|
-
"file": "
|
|
104
|
+
"file": "{{workPath}}/outline.md",
|
|
105
105
|
"artifact": true
|
|
106
106
|
}
|
|
107
107
|
],
|
|
@@ -179,11 +179,11 @@
|
|
|
179
179
|
"suggestedRole": "developer",
|
|
180
180
|
"consumes": [
|
|
181
181
|
{
|
|
182
|
-
"file": "
|
|
182
|
+
"file": "{{workPath}}/outline.md",
|
|
183
183
|
"artifact": true
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
"file": "
|
|
186
|
+
"file": "{{workPath}}/design-system.md",
|
|
187
187
|
"artifact": true
|
|
188
188
|
}
|
|
189
189
|
],
|