@bendyline/gilde 0.1.55 → 0.1.56
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/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/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,290 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "Apply review findings with a reconciled ledger",
|
|
4
|
+
"objective": "The craftbook drives a real findings pass: three seeded review findings (unvalidated numeric input, a swallowed error, a misleading error message) read from an artifacts-drawer findings file, triaged against the current code, fixed at their actual sites, and verified per finding - with behavior probes proving each one genuinely closed and the neighborhood suite still green.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"code",
|
|
7
|
+
"review-findings",
|
|
8
|
+
"bug-fix",
|
|
9
|
+
"tactical-fleet"
|
|
10
|
+
],
|
|
11
|
+
"prompt": "Use the Apply Review Findings craftbook: last week's code review left three findings in the artifacts drawer at reviews/findings.json. Triage them against the current code, fix what is real at the real sites, and account for every finding.",
|
|
12
|
+
"setup": {
|
|
13
|
+
"projectName": "Order Intake",
|
|
14
|
+
"about": "A tiny order-intake library (quantity parsing, config loading, discounts). Tests run with `npm run test` (node --test).",
|
|
15
|
+
"files": [
|
|
16
|
+
{
|
|
17
|
+
"path": "package.json",
|
|
18
|
+
"content": "{\n \"name\": \"intake\",\n \"private\": true,\n \"version\": \"1.0.0\",\n \"type\": \"module\",\n \"scripts\": {\n \"test\": \"node --test\"\n }\n}\n",
|
|
19
|
+
"modelInput": false
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "src/quantity.js",
|
|
23
|
+
"content": "export function parseQuantity(raw) {\n return parseInt(raw, 10);\n}\n\nexport function clampQuantity(qty, max) {\n return Math.min(qty, max);\n}\n"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"path": "src/config.js",
|
|
27
|
+
"content": "import { readFileSync } from 'node:fs';\n\nexport function loadConfig(path) {\n try {\n return JSON.parse(readFileSync(path, 'utf8'));\n } catch (err) {\n return {};\n }\n}\n"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "src/discount.js",
|
|
31
|
+
"content": "export function applyDiscount(total, percent) {\n if (percent < 0 || percent > 100) {\n throw new Error('quantity out of range');\n }\n return Math.round(total * (1 - percent / 100) * 100) / 100;\n}\n"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "tests/intake.test.mjs",
|
|
35
|
+
"content": "import assert from 'node:assert/strict';\nimport { test } from 'node:test';\nimport { parseQuantity } from '../src/quantity.js';\nimport { applyDiscount } from '../src/discount.js';\nimport { loadConfig } from '../src/config.js';\n\ntest('parseQuantity reads plain integers', () => {\n assert.equal(parseQuantity('3'), 3);\n assert.equal(parseQuantity('12'), 12);\n});\n\ntest('applyDiscount takes a percentage off', () => {\n assert.equal(applyDiscount(100, 10), 90);\n assert.equal(applyDiscount(80, 0), 80);\n});\n\ntest('loadConfig falls back to defaults for a missing file', () => {\n assert.deepEqual(loadConfig('no-such-config.json'), {});\n});\n",
|
|
36
|
+
"modelInput": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "reviews/findings.json",
|
|
40
|
+
"content": "[\n {\n \"id\": \"RV-1\",\n \"file\": \"src/quantity.js\",\n \"severity\": \"major\",\n \"title\": \"parseQuantity accepts invalid numeric input\",\n \"detail\": \"parseInt returns NaN for non-numeric input, and negative or zero values pass through unchecked, so downstream order math silently corrupts. parseQuantity must return only positive integers and throw a RangeError naming the rejected value for anything else.\",\n \"verify\": \"parseQuantity('abc'), parseQuantity('-2'), and parseQuantity('0') must throw; parseQuantity('3') must still return 3.\"\n },\n {\n \"id\": \"RV-2\",\n \"file\": \"src/config.js\",\n \"severity\": \"major\",\n \"title\": \"loadConfig swallows JSON syntax errors\",\n \"detail\": \"The catch returns {} for every failure, so a corrupt config file silently behaves like an empty one and a bad deploy ships. Only a missing file may fall back to {}; a parse failure must propagate to the caller.\",\n \"verify\": \"loadConfig on a file containing invalid JSON must throw; loadConfig on a missing path must still return {}.\"\n },\n {\n \"id\": \"RV-3\",\n \"file\": \"src/discount.js\",\n \"severity\": \"minor\",\n \"title\": \"applyDiscount raises a misleading error message\",\n \"detail\": \"An out-of-range percent raises 'quantity out of range', so support keeps chasing phantom quantity bugs. The message must describe the discount percent that was rejected.\",\n \"verify\": \"applyDiscount(100, 150) must throw with a message that mentions the discount or percent, not quantity.\"\n }\n]\n",
|
|
41
|
+
"surface": "artifact"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"path": "tests/verify-findings.mjs",
|
|
45
|
+
"content": "import assert from 'node:assert/strict';\nimport { execFileSync } from 'node:child_process';\nimport { rmSync, writeFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { parseQuantity } from '../src/quantity.js';\nimport { loadConfig } from '../src/config.js';\nimport { applyDiscount } from '../src/discount.js';\n\nconst root = process.cwd();\n\n// RV-1: parseQuantity accepts only positive integers, and still parses them.\nassert.equal(parseQuantity('3'), 3, \"parseQuantity('3') must still return 3\");\nassert.equal(parseQuantity('12'), 12, \"parseQuantity('12') must still return 12\");\nassert.throws(() => parseQuantity('abc'), \"parseQuantity('abc') must throw\");\nassert.throws(() => parseQuantity('-2'), \"parseQuantity('-2') must throw\");\nassert.throws(() => parseQuantity('0'), \"parseQuantity('0') must throw\");\nconsole.log('FINDINGS_ORACLE rv1 closed');\n\n// RV-2: a corrupt config raises; a missing config still falls back to {}.\nconst corruptPath = join(root, '.oracle-corrupt-config.json');\nwriteFileSync(corruptPath, '{ not json');\nassert.throws(() => loadConfig(corruptPath), 'a corrupt config must raise, not vanish into defaults');\nrmSync(corruptPath, { force: true });\nassert.deepEqual(loadConfig(join(root, 'no-such-config.json')), {}, 'a missing config must still fall back to {}');\nconsole.log('FINDINGS_ORACLE rv2 closed');\n\n// RV-3: the out-of-range message describes the discount, not the quantity.\nlet threw = false;\nlet message = '';\ntry {\n applyDiscount(100, 150);\n} catch (err) {\n threw = true;\n message = String((err && err.message) || err);\n}\nassert.ok(threw, 'applyDiscount(100, 150) must throw');\nassert.match(message, /discount|percent/i, 'the error must describe the discount percent');\nassert.ok(!/quantity/i.test(message), 'the error must not blame quantity');\nassert.equal(applyDiscount(100, 10), 90, 'valid discounts must still work');\nassert.equal(applyDiscount(80, 0), 80, 'a zero discount must still be allowed');\nconsole.log('FINDINGS_ORACLE rv3 closed');\n\n// The neighborhood suite stays green after the findings pass.\nexecFileSync(process.execPath, ['--test'], { cwd: root, stdio: 'pipe', timeout: 30000 });\nconsole.log('FINDINGS_ORACLE suite green');\nconsole.log('FINDINGS_ORACLE done');\n",
|
|
46
|
+
"surface": "harness"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"craftbookParams": {
|
|
50
|
+
"findingsPath": "reviews/findings.json"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"mocks": [],
|
|
54
|
+
"success": {
|
|
55
|
+
"summary": "All three seeded findings are genuinely closed at their real sites (validated quantity input, propagating config parse errors, an honest discount message), the neighborhood tests stay green, and the finding ids reconcile across triage, fix notes, and verification.",
|
|
56
|
+
"deliverables": [
|
|
57
|
+
{
|
|
58
|
+
"path": "{{task.dir}}/triage.md",
|
|
59
|
+
"kind": "markdown-notes",
|
|
60
|
+
"artifact": true,
|
|
61
|
+
"minBytes": 600,
|
|
62
|
+
"checks": [
|
|
63
|
+
{
|
|
64
|
+
"kind": "contains",
|
|
65
|
+
"file": "{{task.dir}}/triage.md",
|
|
66
|
+
"pattern": "^##\\s+Findings read[\\s\\S]*^##\\s+Will fix[\\s\\S]*^##\\s+Deferred[\\s\\S]*^##\\s+Clusters",
|
|
67
|
+
"flags": "im",
|
|
68
|
+
"label": "triage sections in order"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"kind": "contains",
|
|
72
|
+
"file": "{{task.dir}}/triage.md",
|
|
73
|
+
"pattern": "\\bRV-1\\b",
|
|
74
|
+
"label": "finding RV-1 triaged"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"kind": "contains",
|
|
78
|
+
"file": "{{task.dir}}/triage.md",
|
|
79
|
+
"pattern": "\\bRV-2\\b",
|
|
80
|
+
"label": "finding RV-2 triaged"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"kind": "contains",
|
|
84
|
+
"file": "{{task.dir}}/triage.md",
|
|
85
|
+
"pattern": "\\bRV-3\\b",
|
|
86
|
+
"label": "finding RV-3 triaged"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"kind": "citationsResolve",
|
|
90
|
+
"file": "{{task.dir}}/triage.md",
|
|
91
|
+
"minCitations": 2,
|
|
92
|
+
"artifact": true
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"path": "{{task.dir}}/fix-notes.md",
|
|
98
|
+
"kind": "markdown-notes",
|
|
99
|
+
"artifact": true,
|
|
100
|
+
"minBytes": 700,
|
|
101
|
+
"checks": [
|
|
102
|
+
{
|
|
103
|
+
"kind": "contains",
|
|
104
|
+
"file": "{{task.dir}}/fix-notes.md",
|
|
105
|
+
"pattern": "^##\\s+Problem[\\s\\S]*^##\\s+Change[\\s\\S]*^##\\s+Files touched[\\s\\S]*^##\\s+Per-finding disposition[\\s\\S]*^##\\s+Risk[\\s\\S]*^##\\s+How to verify",
|
|
106
|
+
"flags": "im",
|
|
107
|
+
"label": "fix-notes sections in order"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"kind": "contains",
|
|
111
|
+
"file": "{{task.dir}}/fix-notes.md",
|
|
112
|
+
"pattern": "\\bRV-1\\b",
|
|
113
|
+
"label": "disposition for RV-1"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"kind": "contains",
|
|
117
|
+
"file": "{{task.dir}}/fix-notes.md",
|
|
118
|
+
"pattern": "\\bRV-2\\b",
|
|
119
|
+
"label": "disposition for RV-2"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"kind": "contains",
|
|
123
|
+
"file": "{{task.dir}}/fix-notes.md",
|
|
124
|
+
"pattern": "\\bRV-3\\b",
|
|
125
|
+
"label": "disposition for RV-3"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"kind": "citationsResolve",
|
|
129
|
+
"file": "{{task.dir}}/fix-notes.md",
|
|
130
|
+
"minCitations": 2,
|
|
131
|
+
"artifact": true
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"path": "{{task.dir}}/validation.md",
|
|
137
|
+
"kind": "markdown-notes",
|
|
138
|
+
"artifact": true,
|
|
139
|
+
"minBytes": 450,
|
|
140
|
+
"checks": [
|
|
141
|
+
{
|
|
142
|
+
"kind": "contains",
|
|
143
|
+
"file": "{{task.dir}}/validation.md",
|
|
144
|
+
"pattern": "^##\\s+Per-finding verification[\\s\\S]*^##\\s+Result",
|
|
145
|
+
"flags": "im",
|
|
146
|
+
"label": "validation sections in order"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"kind": "contains",
|
|
150
|
+
"file": "{{task.dir}}/validation.md",
|
|
151
|
+
"pattern": "\\bRV-1\\b",
|
|
152
|
+
"label": "verification for RV-1"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "contains",
|
|
156
|
+
"file": "{{task.dir}}/validation.md",
|
|
157
|
+
"pattern": "\\bRV-2\\b",
|
|
158
|
+
"label": "verification for RV-2"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"kind": "contains",
|
|
162
|
+
"file": "{{task.dir}}/validation.md",
|
|
163
|
+
"pattern": "\\bRV-3\\b",
|
|
164
|
+
"label": "verification for RV-3"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"kind": "citationsResolve",
|
|
168
|
+
"file": "{{task.dir}}/validation.md",
|
|
169
|
+
"minCitations": 2,
|
|
170
|
+
"artifact": true
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"path": "{{task.dir}}/review.md",
|
|
176
|
+
"kind": "markdown-report",
|
|
177
|
+
"artifact": true,
|
|
178
|
+
"minBytes": 400,
|
|
179
|
+
"checks": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "contains",
|
|
182
|
+
"file": "{{task.dir}}/review.md",
|
|
183
|
+
"pattern": "Verdict:\\s*(?:PASS|REVISE)",
|
|
184
|
+
"flags": "i",
|
|
185
|
+
"label": "explicit reviewer verdict"
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"checks": [
|
|
191
|
+
{
|
|
192
|
+
"kind": "notContains",
|
|
193
|
+
"file": "src/discount.js",
|
|
194
|
+
"pattern": "quantity out of range",
|
|
195
|
+
"label": "the misleading discount message is gone (RV-3)"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "notContains",
|
|
199
|
+
"file": "src/config.js",
|
|
200
|
+
"pattern": "catch\\s*(?:\\([^)]*\\))?\\s*\\{\\s*return\\s*\\{\\s*\\}",
|
|
201
|
+
"label": "the blanket error swallow is gone (RV-2)"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"kind": "sourceParses",
|
|
205
|
+
"file": "src/quantity.js"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"kind": "sourceParses",
|
|
209
|
+
"file": "src/config.js"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "sourceParses",
|
|
213
|
+
"file": "src/discount.js"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "nodeRuns",
|
|
217
|
+
"file": "tests/intake.test.mjs",
|
|
218
|
+
"timeoutMs": 30000
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"kind": "nodeScriptPasses",
|
|
222
|
+
"script": "tests/verify-findings.mjs",
|
|
223
|
+
"timeoutMs": 60000,
|
|
224
|
+
"requiredOutput": [
|
|
225
|
+
{
|
|
226
|
+
"pattern": "FINDINGS_ORACLE rv1 closed",
|
|
227
|
+
"label": "invalid quantities are rejected (RV-1)"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"pattern": "FINDINGS_ORACLE rv2 closed",
|
|
231
|
+
"label": "corrupt configs raise, missing configs default (RV-2)"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"pattern": "FINDINGS_ORACLE rv3 closed",
|
|
235
|
+
"label": "the discount error names the discount (RV-3)"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"pattern": "FINDINGS_ORACLE suite green",
|
|
239
|
+
"label": "the neighborhood suite stays green"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"taskNotes": {
|
|
245
|
+
"minBytes": 120,
|
|
246
|
+
"checks": [
|
|
247
|
+
{
|
|
248
|
+
"kind": "contains",
|
|
249
|
+
"file": "task-notes.md",
|
|
250
|
+
"pattern": "\\bDONE\\b[\\s\\S]*validation\\.md",
|
|
251
|
+
"flags": "i",
|
|
252
|
+
"label": "DONE note names the validation deliverable"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"taskGraph": {
|
|
257
|
+
"requireCraftbookTask": true,
|
|
258
|
+
"requireTerminalStep": true
|
|
259
|
+
},
|
|
260
|
+
"unchangedFixtures": [
|
|
261
|
+
"package.json",
|
|
262
|
+
"tests/intake.test.mjs"
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
"rubric": {
|
|
266
|
+
"artifact": {
|
|
267
|
+
"path": "{{task.dir}}/fix-notes.md",
|
|
268
|
+
"kind": "markdown"
|
|
269
|
+
},
|
|
270
|
+
"axes": [
|
|
271
|
+
{
|
|
272
|
+
"name": "Triage honesty",
|
|
273
|
+
"description": "Every finding is judged against the code as it stands, with a defensible category and no invented or dropped findings."
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "Real closure",
|
|
277
|
+
"description": "Each fix lands at the actual cited site and genuinely resolves what the finding describes - validation added, errors propagated, messages made truthful - with the smallest correct change."
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "Ledger discipline",
|
|
281
|
+
"description": "The same finding ids flow through triage, fix notes, and verification with consistent outcomes, and verification honestly separates what was run from what was only read."
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
"qualityFocus": [
|
|
286
|
+
"per-finding accountability",
|
|
287
|
+
"smallest correct change",
|
|
288
|
+
"honest verification"
|
|
289
|
+
]
|
|
290
|
+
}
|
|
@@ -62,52 +62,61 @@
|
|
|
62
62
|
"file": "tasks/eval/artifact-integrity-review.md",
|
|
63
63
|
"pattern": "NO-GO|NO GO|block",
|
|
64
64
|
"flags": "i",
|
|
65
|
-
"label": "release verdict"
|
|
65
|
+
"label": "release verdict",
|
|
66
|
+
"artifact": true
|
|
66
67
|
},
|
|
67
68
|
{
|
|
68
69
|
"kind": "contains",
|
|
69
70
|
"file": "tasks/eval/artifact-integrity-review.md",
|
|
70
71
|
"pattern": "windows-installer\\.exe[\\s\\S]{0,160}(missing|not present|NO-GO)",
|
|
71
|
-
"flags": "i"
|
|
72
|
+
"flags": "i",
|
|
73
|
+
"artifact": true
|
|
72
74
|
},
|
|
73
75
|
{
|
|
74
76
|
"kind": "contains",
|
|
75
77
|
"file": "tasks/eval/artifact-integrity-review.md",
|
|
76
78
|
"pattern": "app\\.abc\\.js[\\s\\S]{0,160}(missing|broken)|app\\.def\\.js",
|
|
77
|
-
"flags": "i"
|
|
79
|
+
"flags": "i",
|
|
80
|
+
"artifact": true
|
|
78
81
|
},
|
|
79
82
|
{
|
|
80
83
|
"kind": "contains",
|
|
81
84
|
"file": "tasks/eval/artifact-integrity-review.md",
|
|
82
85
|
"pattern": "2\\.3\\.9[\\s\\S]{0,160}2\\.4\\.0|version mismatch",
|
|
83
|
-
"flags": "i"
|
|
86
|
+
"flags": "i",
|
|
87
|
+
"artifact": true
|
|
84
88
|
},
|
|
85
89
|
{
|
|
86
90
|
"kind": "contains",
|
|
87
91
|
"file": "tasks/eval/artifact-integrity-review.md",
|
|
88
92
|
"pattern": "\\.env|RETURNS_API_TOKEN|secret",
|
|
89
|
-
"flags": "i"
|
|
93
|
+
"flags": "i",
|
|
94
|
+
"artifact": true
|
|
90
95
|
},
|
|
91
96
|
{
|
|
92
97
|
"kind": "contains",
|
|
93
98
|
"file": "tasks/eval/artifact-integrity-review.md",
|
|
94
99
|
"pattern": "checksum|000000",
|
|
95
|
-
"flags": "i"
|
|
100
|
+
"flags": "i",
|
|
101
|
+
"artifact": true
|
|
96
102
|
},
|
|
97
103
|
{
|
|
98
104
|
"kind": "contains",
|
|
99
105
|
"file": "tasks/eval/artifact-integrity-review.md",
|
|
100
106
|
"pattern": "GO|NO-GO|NOT-VERIFIED",
|
|
101
107
|
"flags": "i",
|
|
102
|
-
"label": "per-artifact verdict vocabulary"
|
|
108
|
+
"label": "per-artifact verdict vocabulary",
|
|
109
|
+
"artifact": true
|
|
103
110
|
},
|
|
104
111
|
{
|
|
105
112
|
"kind": "contains",
|
|
106
113
|
"file": "tasks/eval/artifact-integrity-review.md",
|
|
107
114
|
"pattern": "Not verified|NOT-VERIFIED|platform",
|
|
108
|
-
"flags": "i"
|
|
115
|
+
"flags": "i",
|
|
116
|
+
"artifact": true
|
|
109
117
|
}
|
|
110
|
-
]
|
|
118
|
+
],
|
|
119
|
+
"artifact": true
|
|
111
120
|
}
|
|
112
121
|
]
|
|
113
122
|
},
|
|
@@ -159,21 +159,24 @@
|
|
|
159
159
|
"kind": "contains",
|
|
160
160
|
"file": "master/release-notes.md",
|
|
161
161
|
"pattern": "(?:^|\\n)#{1,3}\\s+\\S",
|
|
162
|
-
"flags": "i"
|
|
162
|
+
"flags": "i",
|
|
163
|
+
"artifact": true
|
|
163
164
|
},
|
|
164
165
|
{
|
|
165
166
|
"kind": "contains",
|
|
166
167
|
"file": "master/release-notes.md",
|
|
167
168
|
"pattern": "duration|running time",
|
|
168
169
|
"flags": "i",
|
|
169
|
-
"label": "the total running time is stated"
|
|
170
|
+
"label": "the total running time is stated",
|
|
171
|
+
"artifact": true
|
|
170
172
|
},
|
|
171
173
|
{
|
|
172
174
|
"kind": "contains",
|
|
173
175
|
"file": "master/release-notes.md",
|
|
174
176
|
"pattern": "chapter",
|
|
175
177
|
"flags": "i",
|
|
176
|
-
"label": "the chapter list is present"
|
|
178
|
+
"label": "the chapter list is present",
|
|
179
|
+
"artifact": true
|
|
177
180
|
},
|
|
178
181
|
{
|
|
179
182
|
"kind": "judge",
|
|
@@ -183,9 +186,11 @@
|
|
|
183
186
|
"master/assembly-log.json",
|
|
184
187
|
"manuscript/toc.md"
|
|
185
188
|
],
|
|
186
|
-
"label": "store-copy quality and log-true numbers"
|
|
189
|
+
"label": "store-copy quality and log-true numbers",
|
|
190
|
+
"artifact": true
|
|
187
191
|
}
|
|
188
|
-
]
|
|
192
|
+
],
|
|
193
|
+
"artifact": true
|
|
189
194
|
}
|
|
190
195
|
]
|
|
191
196
|
},
|
|
@@ -81,33 +81,39 @@
|
|
|
81
81
|
"kind": "contains",
|
|
82
82
|
"file": "tasks/eval/review.md",
|
|
83
83
|
"pattern": "(?:^|\\n)#{1,3}\\s+\\S",
|
|
84
|
-
"flags": "i"
|
|
84
|
+
"flags": "i",
|
|
85
|
+
"artifact": true
|
|
85
86
|
},
|
|
86
87
|
{
|
|
87
88
|
"kind": "contains",
|
|
88
89
|
"file": "tasks/eval/review.md",
|
|
89
90
|
"pattern": "password|hash",
|
|
90
|
-
"flags": "i"
|
|
91
|
+
"flags": "i",
|
|
92
|
+
"artifact": true
|
|
91
93
|
},
|
|
92
94
|
{
|
|
93
95
|
"kind": "contains",
|
|
94
96
|
"file": "tasks/eval/review.md",
|
|
95
97
|
"pattern": "session|expiry|expiration",
|
|
96
|
-
"flags": "i"
|
|
98
|
+
"flags": "i",
|
|
99
|
+
"artifact": true
|
|
97
100
|
},
|
|
98
101
|
{
|
|
99
102
|
"kind": "contains",
|
|
100
103
|
"file": "tasks/eval/review.md",
|
|
101
104
|
"pattern": "csrf",
|
|
102
|
-
"flags": "i"
|
|
105
|
+
"flags": "i",
|
|
106
|
+
"artifact": true
|
|
103
107
|
},
|
|
104
108
|
{
|
|
105
109
|
"kind": "contains",
|
|
106
110
|
"file": "tasks/eval/review.md",
|
|
107
111
|
"pattern": "rate limit|rate-limit|attempt",
|
|
108
|
-
"flags": "i"
|
|
112
|
+
"flags": "i",
|
|
113
|
+
"artifact": true
|
|
109
114
|
}
|
|
110
|
-
]
|
|
115
|
+
],
|
|
116
|
+
"artifact": true
|
|
111
117
|
}
|
|
112
118
|
]
|
|
113
119
|
},
|