@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.
Files changed (191) hide show
  1. package/authoring/chat-models/glm-5.3-flash-320b-q2.json +129 -0
  2. package/authoring/chat-models/qwen3.8-flash-next-iq3.json +198 -0
  3. package/authoring/chat-models/qwen3.8-flash-next-iq4.json +198 -0
  4. package/authoring/gstack/wave.json +2 -2
  5. package/data/chat-models/gl/glm-5.3-flash-320b-q2/manifest.json +137 -0
  6. package/data/chat-models/gl/glm-5.3-flash-320b-q2/versions/1.0.0/manifest.json +23 -0
  7. package/data/chat-models/index.json +1 -1
  8. package/data/chat-models/qw/qwen3.8-flash-next-iq3/manifest.json +221 -0
  9. package/data/chat-models/qw/qwen3.8-flash-next-iq3/versions/1.0.0/manifest.json +36 -0
  10. package/data/chat-models/qw/qwen3.8-flash-next-iq4/manifest.json +221 -0
  11. package/data/chat-models/qw/qwen3.8-flash-next-iq4/versions/1.0.0/manifest.json +36 -0
  12. package/data/craftbook-templates/a1/a11y-audit/versions/1.1.3/test.json +16 -8
  13. package/data/craftbook-templates/ac/accessibility-retrofit/versions/2.0.2/craftbook.json +618 -0
  14. package/data/craftbook-templates/ac/accessibility-retrofit/versions/2.0.2/test.json +228 -0
  15. package/data/craftbook-templates/al/album-curate/versions/1.0.3/test.json +6 -3
  16. package/data/craftbook-templates/al/alert-rules/versions/1.0.3/test.json +8 -8
  17. package/data/craftbook-templates/an/anniversary-cut/versions/1.0.5/test.json +10 -5
  18. package/data/craftbook-templates/an/annual-document-review/versions/1.0.3/test.json +16 -8
  19. package/data/craftbook-templates/an/anomaly-scan/versions/1.0.3/test.json +12 -6
  20. package/data/craftbook-templates/ap/apply-review-findings/versions/1.0.2/craftbook.json +602 -0
  21. package/data/craftbook-templates/ap/apply-review-findings/versions/1.0.2/test.json +290 -0
  22. package/data/craftbook-templates/ar/artifact-integrity-review/versions/1.0.3/test.json +18 -9
  23. package/data/craftbook-templates/au/audiobook-master-pack/versions/1.0.5/test.json +10 -5
  24. package/data/craftbook-templates/au/auth-flow/versions/1.0.3/test.json +12 -6
  25. package/data/craftbook-templates/au/auth-flow/versions/1.0.4/craftbook.json +282 -0
  26. package/data/craftbook-templates/au/auth-flow/versions/1.0.4/test.json +143 -0
  27. package/data/craftbook-templates/au/automation-recipe/versions/1.0.3/test.json +12 -6
  28. package/data/craftbook-templates/ba/backup-routine/versions/1.0.4/craftbook.json +282 -0
  29. package/data/craftbook-templates/ba/backup-routine/versions/1.0.4/test.json +108 -0
  30. package/data/craftbook-templates/bl/blog-post/versions/1.0.3/test.json +8 -8
  31. package/data/craftbook-templates/br/branding-website/versions/1.1.3/craftbook.json +335 -0
  32. package/data/craftbook-templates/br/branding-website/versions/1.1.3/test.json +164 -0
  33. package/data/craftbook-templates/br/broadcast-announcement/versions/1.0.3/test.json +8 -8
  34. package/data/craftbook-templates/br/browser-qa-audit/versions/2.0.8/craftbook.json +621 -0
  35. package/data/craftbook-templates/br/browser-qa-audit/versions/2.0.8/test.json +376 -0
  36. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.2/craftbook.json +730 -0
  37. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.2/test.json +221 -0
  38. package/data/craftbook-templates/bu/build-loop/versions/1.1.1/test.json +8 -8
  39. package/data/craftbook-templates/ca/case-study/versions/1.0.3/test.json +8 -8
  40. package/data/craftbook-templates/ch/chapter-narration-run/versions/1.0.4/test.json +10 -5
  41. package/data/craftbook-templates/ch/character-turnaround/versions/1.0.3/test.json +25 -11
  42. package/data/craftbook-templates/ci/ci-pipeline/versions/2.0.2/craftbook.json +587 -0
  43. package/data/craftbook-templates/ci/ci-pipeline/versions/2.0.2/test.json +225 -0
  44. package/data/craftbook-templates/ci/citation-audit/versions/1.0.3/test.json +28 -14
  45. package/data/craftbook-templates/cl/cli-tool/versions/1.1.3/test.json +8 -8
  46. package/data/craftbook-templates/co/codebase-refactoring-review/versions/1.0.3/test.json +16 -8
  47. package/data/craftbook-templates/co/codebase-ux-review/versions/1.0.3/test.json +18 -9
  48. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.2/craftbook.json +605 -0
  49. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.2/test.json +252 -0
  50. package/data/craftbook-templates/co/cohort-analysis/versions/1.0.3/test.json +18 -9
  51. package/data/craftbook-templates/co/competitive-analysis/versions/1.0.3/test.json +23 -15
  52. package/data/craftbook-templates/co/content-accuracy-review/versions/1.0.3/test.json +28 -14
  53. package/data/craftbook-templates/co/content-deck/versions/1.2.3/craftbook.json +4 -4
  54. package/data/craftbook-templates/co/content-deck/versions/1.2.3/test.json +3 -0
  55. package/data/craftbook-templates/co/content-deck/versions/1.2.4/craftbook.json +341 -0
  56. package/data/craftbook-templates/co/content-deck/versions/1.2.4/test.json +169 -0
  57. package/data/craftbook-templates/co/copy-review/versions/1.0.3/test.json +14 -7
  58. package/data/craftbook-templates/co/corpus-email-digest/versions/1.2.3/craftbook.json +4 -4
  59. package/data/craftbook-templates/co/corpus-email-digest/versions/1.2.3/test.json +3 -0
  60. package/data/craftbook-templates/co/corpus-email-digest/versions/1.2.4/craftbook.json +345 -0
  61. package/data/craftbook-templates/co/corpus-email-digest/versions/1.2.4/test.json +187 -0
  62. package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.3/test.json +26 -13
  63. package/data/craftbook-templates/co/cover-letter/versions/1.0.3/test.json +8 -8
  64. package/data/craftbook-templates/cs/csv-transformer/versions/1.2.4/test.json +7 -7
  65. package/data/craftbook-templates/da/dashboard-spec/versions/1.0.3/test.json +7 -7
  66. package/data/craftbook-templates/da/data-export-migrate/versions/1.0.4/craftbook.json +285 -0
  67. package/data/craftbook-templates/da/data-export-migrate/versions/1.0.4/test.json +104 -0
  68. package/data/craftbook-templates/da/data-pipeline-etl/versions/1.0.5/craftbook.json +284 -0
  69. package/data/craftbook-templates/da/data-pipeline-etl/versions/1.0.5/test.json +162 -0
  70. package/data/craftbook-templates/da/data-quality-audit/versions/1.0.3/test.json +38 -19
  71. package/data/craftbook-templates/da/data-to-report/versions/1.0.3/test.json +12 -6
  72. package/data/craftbook-templates/db/db-index-tuning/versions/1.0.4/craftbook.json +286 -0
  73. package/data/craftbook-templates/db/db-index-tuning/versions/1.0.4/test.json +104 -0
  74. package/data/craftbook-templates/de/dependency-audit/versions/1.1.3/test.json +14 -7
  75. package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.2/craftbook.json +621 -0
  76. package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.2/test.json +235 -0
  77. package/data/craftbook-templates/de/design-review/versions/1.0.3/test.json +16 -8
  78. package/data/craftbook-templates/de/design-system-consultation/versions/2.0.8/craftbook.json +616 -0
  79. package/data/craftbook-templates/de/design-system-consultation/versions/2.0.8/test.json +201 -0
  80. package/data/craftbook-templates/do/doc-intake-pipeline/versions/1.0.4/craftbook.json +285 -0
  81. package/data/craftbook-templates/do/doc-intake-pipeline/versions/1.0.4/test.json +104 -0
  82. package/data/craftbook-templates/do/doc-rewrite/versions/1.0.3/test.json +119 -55
  83. package/data/craftbook-templates/do/dockerize-app/versions/1.0.4/craftbook.json +285 -0
  84. package/data/craftbook-templates/do/dockerize-app/versions/1.0.4/test.json +92 -0
  85. package/data/craftbook-templates/do/documentation-drift-review/versions/1.0.3/test.json +18 -9
  86. package/data/craftbook-templates/dr/draft-social-post/versions/1.0.2/craftbook.json +324 -0
  87. package/data/craftbook-templates/dr/draft-social-post/versions/1.0.2/test.json +161 -0
  88. package/data/craftbook-templates/ed/edit-notes/versions/1.0.3/test.json +11 -4
  89. package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.8/craftbook.json +566 -0
  90. package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.8/test.json +191 -0
  91. package/data/craftbook-templates/ep/episode-plan/versions/1.0.3/test.json +10 -5
  92. package/data/craftbook-templates/ex/executive-level-review/versions/2.0.7/test.json +7 -10
  93. package/data/craftbook-templates/ex/executive-level-review/versions/2.0.8/craftbook.json +595 -0
  94. package/data/craftbook-templates/ex/executive-level-review/versions/2.0.8/test.json +139 -0
  95. package/data/craftbook-templates/ex/expense-categorize/versions/1.0.4/craftbook.json +277 -0
  96. package/data/craftbook-templates/ex/expense-categorize/versions/1.0.4/test.json +104 -0
  97. package/data/craftbook-templates/fe/feature-flag-rollout/versions/1.1.2/craftbook.json +327 -0
  98. package/data/craftbook-templates/fe/feature-flag-rollout/versions/1.1.2/test.json +162 -0
  99. package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.2/craftbook.json +718 -0
  100. package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.2/test.json +239 -0
  101. package/data/craftbook-templates/fo/form-fill-batch/versions/1.0.4/craftbook.json +285 -0
  102. package/data/craftbook-templates/fo/form-fill-batch/versions/1.0.4/test.json +162 -0
  103. package/data/craftbook-templates/fo/form-wizard/versions/1.0.3/test.json +8 -8
  104. package/data/craftbook-templates/ho/holiday-card-run/versions/1.0.3/test.json +11 -4
  105. package/data/craftbook-templates/ho/hotfix-flow/versions/2.0.2/craftbook.json +610 -0
  106. package/data/craftbook-templates/ho/hotfix-flow/versions/2.0.2/test.json +220 -0
  107. package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.3/craftbook.json +343 -0
  108. package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.3/test.json +176 -0
  109. package/data/craftbook-templates/id/idea-office-hours/versions/2.0.8/craftbook.json +566 -0
  110. package/data/craftbook-templates/id/idea-office-hours/versions/2.0.8/test.json +141 -0
  111. package/data/craftbook-templates/im/image-set-index/versions/1.2.3/craftbook.json +298 -0
  112. package/data/craftbook-templates/im/image-set-index/versions/1.2.3/test.json +180 -0
  113. package/data/craftbook-templates/in/insurance-inventory/versions/1.0.3/test.json +11 -4
  114. package/data/craftbook-templates/in/interactive-quiz/versions/1.0.3/test.json +48 -23
  115. package/data/craftbook-templates/in/invitation-design/versions/1.0.3/test.json +1 -1
  116. package/data/craftbook-templates/index.json +1 -1
  117. package/data/craftbook-templates/it/item-intake/versions/1.0.3/test.json +11 -4
  118. package/data/craftbook-templates/le/lead-enrichment/versions/1.0.4/craftbook.json +277 -0
  119. package/data/craftbook-templates/le/lead-enrichment/versions/1.0.4/test.json +104 -0
  120. package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.3/test.json +16 -8
  121. package/data/craftbook-templates/me/memory-prompt-session/versions/1.0.3/test.json +3 -0
  122. package/data/craftbook-templates/mo/morning-report/versions/1.0.3/test.json +21 -9
  123. package/data/craftbook-templates/of/office-hours/versions/1.1.1/test.json +8 -8
  124. package/data/craftbook-templates/pe/perf-optimization/versions/2.0.2/craftbook.json +697 -0
  125. package/data/craftbook-templates/pe/perf-optimization/versions/2.0.2/test.json +235 -0
  126. package/data/craftbook-templates/pe/pest-diagnosis/versions/1.0.3/test.json +19 -8
  127. package/data/craftbook-templates/pl/plan/versions/1.0.2/test.json +8 -8
  128. package/data/craftbook-templates/pl/playtest-report/versions/1.0.3/test.json +17 -7
  129. package/data/craftbook-templates/pr/practice-exam/versions/1.0.3/test.json +7 -2
  130. package/data/craftbook-templates/pr/practice-session/versions/1.0.3/test.json +11 -4
  131. package/data/craftbook-templates/pu/pull-request-review/versions/1.9.2/craftbook.json +435 -0
  132. package/data/craftbook-templates/pu/pull-request-review/versions/1.9.2/test.json +141 -0
  133. package/data/craftbook-templates/qu/quarterly-summary/versions/1.0.3/test.json +16 -8
  134. package/data/craftbook-templates/re/receipt-intake/versions/1.0.3/test.json +11 -4
  135. package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.4/craftbook.json +277 -0
  136. package/data/craftbook-templates/re/receipt-ocr-ledger/versions/1.0.4/test.json +104 -0
  137. package/data/craftbook-templates/re/recipe-capture/versions/1.0.3/test.json +13 -5
  138. package/data/craftbook-templates/re/record-a-relative/versions/1.0.3/test.json +3 -0
  139. package/data/craftbook-templates/re/recurring-invoice-run/versions/1.0.4/craftbook.json +285 -0
  140. package/data/craftbook-templates/re/recurring-invoice-run/versions/1.0.4/test.json +104 -0
  141. package/data/craftbook-templates/re/refactor-module/versions/2.0.2/craftbook.json +695 -0
  142. package/data/craftbook-templates/re/refactor-module/versions/2.0.2/test.json +241 -0
  143. package/data/craftbook-templates/re/release-artifact-sanity-check/versions/1.0.4/craftbook.json +361 -0
  144. package/data/craftbook-templates/re/release-artifact-sanity-check/versions/1.0.4/test.json +138 -0
  145. package/data/craftbook-templates/re/release-notes/versions/1.0.4/test.json +8 -8
  146. package/data/craftbook-templates/re/release-notes/versions/1.0.5/craftbook.json +339 -0
  147. package/data/craftbook-templates/re/release-notes/versions/1.0.5/test.json +111 -0
  148. package/data/craftbook-templates/re/reliability-review/versions/1.0.3/test.json +16 -8
  149. package/data/craftbook-templates/re/research-report/versions/1.0.3/test.json +16 -8
  150. package/data/craftbook-templates/ro/root-cause-investigation/versions/2.0.8/craftbook.json +596 -0
  151. package/data/craftbook-templates/ro/root-cause-investigation/versions/2.0.8/test.json +157 -0
  152. package/data/craftbook-templates/ro/rough-cut-assembly/versions/1.0.4/test.json +13 -5
  153. package/data/craftbook-templates/sc/schema-migration/versions/2.0.2/craftbook.json +624 -0
  154. package/data/craftbook-templates/sc/schema-migration/versions/2.0.2/test.json +225 -0
  155. package/data/craftbook-templates/sc/script-automation/versions/1.0.4/craftbook.json +284 -0
  156. package/data/craftbook-templates/sc/script-automation/versions/1.0.4/test.json +162 -0
  157. package/data/craftbook-templates/se/security-architecture-review/versions/2.0.7/test.json +10 -13
  158. package/data/craftbook-templates/se/security-architecture-review/versions/2.0.8/craftbook.json +597 -0
  159. package/data/craftbook-templates/se/security-architecture-review/versions/2.0.8/test.json +157 -0
  160. package/data/craftbook-templates/so/social-digest/versions/1.0.3/craftbook.json +239 -0
  161. package/data/craftbook-templates/so/social-digest/versions/1.0.3/test.json +168 -0
  162. package/data/craftbook-templates/so/source-quality-audit/versions/1.0.3/test.json +25 -11
  163. package/data/craftbook-templates/sp/spec-authoring/versions/2.0.8/craftbook.json +599 -0
  164. package/data/craftbook-templates/sp/spec-authoring/versions/2.0.8/test.json +162 -0
  165. package/data/craftbook-templates/te/technical-documentation/versions/2.0.8/craftbook.json +577 -0
  166. package/data/craftbook-templates/te/technical-documentation/versions/2.0.8/test.json +174 -0
  167. package/data/craftbook-templates/te/test-coverage-review/versions/1.2.1/test.json +16 -8
  168. package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.2/craftbook.json +592 -0
  169. package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.2/test.json +195 -0
  170. package/data/craftbook-templates/th/thank-you-batch/versions/1.0.3/test.json +6 -3
  171. package/data/craftbook-templates/th/thank-you-sweep/versions/1.0.3/test.json +11 -4
  172. package/data/craftbook-templates/ti/tileset-batch/versions/1.0.3/test.json +9 -3
  173. package/data/craftbook-templates/tr/transcribe-and-shownotes/versions/1.0.3/test.json +10 -5
  174. package/data/craftbook-templates/tr/transcribe-index/versions/1.0.3/test.json +6 -3
  175. package/data/craftbook-templates/tr/translate-content/versions/1.1.3/craftbook.json +140 -0
  176. package/data/craftbook-templates/tr/translate-content/versions/1.1.3/test.json +141 -0
  177. package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.2/craftbook.json +594 -0
  178. package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.2/test.json +221 -0
  179. package/data/craftbook-templates/ux/ux-update/versions/1.0.2/craftbook.json +606 -0
  180. package/data/craftbook-templates/ux/ux-update/versions/1.0.2/test.json +206 -0
  181. package/data/craftbook-templates/we/weak-spot-drill/versions/1.0.3/test.json +11 -4
  182. package/data/craftbook-templates/we/weekly-walkthrough/versions/1.0.3/test.json +21 -9
  183. package/data/craftbook-templates/wh/whitepaper/versions/1.0.3/test.json +16 -8
  184. package/data/craftbook-templates/ye/year-in-review/versions/1.0.3/test.json +8 -4
  185. package/data/project-types/index.json +1 -1
  186. package/data/project-types/ju/just-chat/manifest.json +1 -1
  187. package/data/project-types/ju/just-chat/versions/1.0.1/about.md +5 -0
  188. package/data/project-types/ju/just-chat/versions/1.0.1/manifest.json +19 -0
  189. package/package.json +1 -1
  190. package/schemas/chat-model-identity.schema.json +27 -0
  191. package/schemas/chat-model-version.schema.json +22 -0
@@ -0,0 +1,594 @@
1
+ {
2
+ "id": "type-safety-pass",
3
+ "name": "Type-Safety Pass",
4
+ "description": "Tighten code against the unsafe patterns that turn into 3am bugs, with the improvement proven by counting rather than claiming. First AUDIT: inventory the patterns in scope WITH COUNTS gathered by a stated, repeatable method (a grep per pattern, expressions quoted) — loose equality against null or undefined, implicit string/number coercions, swallowed catches that hide real errors, untyped or unvalidated boundaries, and in TypeScript projects any-casts and ignore-comments. The audit picks the concrete targets, names which behavioral consequences of these patterns are bugs this pass is expected to fix, records the guardrail, and captures the suite green before any change. Then CHANGE: fix pattern by pattern at the real sites — and never buy a lower count by weakening the code: no deleted assertions, no silenced error paths, no bare casts, no ignore-comments; a count that falls that way is a regression wearing a metric. Then VERIFY: re-count with exactly the audit's method, quote before and after per pattern, and show the suite green. Finally an independent reviewer grades the chain — counts genuinely fell by the same method, no suppression, behavior preserved except the declared consequence fixes — and a REVISE verdict routes the work back automatically with concrete findings. Small enough to run as night-shift work. Needs a project whose tests run via `npm run test`. Works identically whether the run edits the project directly or drafts a change proposal for the user to apply.",
5
+ "plan": "Audit the unsafe patterns with counts and a stated method, pick targets, record the guardrail and a green suite -> fix pattern by pattern at the real sites without silencing anything -> re-count with the same method, quote before/after, suite green -> enforced independent review.",
6
+ "entryStepId": "audit",
7
+ "triggers": [
8
+ "tighten the types",
9
+ "kill any types",
10
+ "add type annotations",
11
+ "make this type-safe",
12
+ "fix type errors"
13
+ ],
14
+ "runModes": {
15
+ "nightShift": "supported"
16
+ },
17
+ "commands": [
18
+ {
19
+ "scope": "script",
20
+ "name": "test",
21
+ "reason": "The suite is the guardrail: it must be green before the pass starts and green at the end, so tightened checks provably did not break pinned behavior. The gates verify the green-before/green-after receipts from real runs, not the author's claims."
22
+ }
23
+ ],
24
+ "paramSchema": {
25
+ "type": "object",
26
+ "properties": {
27
+ "scope": {
28
+ "type": "string",
29
+ "title": "Where to tighten",
30
+ "description": "The module, folder, or area to audit for unsafe patterns. Leave empty when the task description already carries it.",
31
+ "default": ""
32
+ },
33
+ "workPath": {
34
+ "type": "string",
35
+ "title": "Working folder",
36
+ "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.",
37
+ "default": "{{task.dir}}"
38
+ }
39
+ }
40
+ },
41
+ "steps": [
42
+ {
43
+ "id": "audit",
44
+ "name": "Audit with counts",
45
+ "description": "Inventory the unsafe patterns in scope with counts by a stated method, pick concrete targets, record the guardrail, and capture the suite green.",
46
+ "prompt": "The area to tighten: {{scope}}\n\nInventory the unsafe patterns before fixing any of them — the improvement will be proven by re-counting later, so the counts and the exact method are the deliverable here. Read the involved source, then count each pattern class in scope with a stated, repeatable method (a grep per pattern works; quote the exact expressions you used): loose equality against null or undefined (`==`/`!=` where a strict check belongs), implicit string/number coercions (arithmetic or concatenation on values that may arrive as strings), swallowed catches (a catch that hides the error and carries on as if nothing failed), untyped or unvalidated boundaries (inputs used without a shape check), and in TypeScript projects `any`-casts and ignore-comments. Record the count per pattern and where each hit lives.\n\nPick the concrete targets for this pass and state the guardrail: which behavior is pinned by tests and must not change, and which behavioral CONSEQUENCES of these patterns are bugs this pass is expected to fix — name each one. Then find how the project runs its tests (`list_package_scripts`), run the suite with `run_package_script` (`test`), and record it green before any change; if it is already red, stop and report that honestly. If the command needs first-use approval, say so and wait rather than guessing.\n\nWrite `{{workPath}}/audit.md` with exactly these sections: `## Inventory` (counts by pattern with the exact method and grep expressions used), `## Targets` (the hits this pass will fix, with backtick paths), `## Guardrail` (what must not change, and the declared consequence fixes that may). Cite the real files with backtick paths.\n\nObservable handoff: write the completed result to `{{workPath}}/audit.md` in the project's artifacts drawer with `write_artifact`. Do not merely describe what the file would contain. Re-read it with `read_artifact` before finishing this phase and repair any incomplete sections.",
47
+ "suggestedRole": "code auditor",
48
+ "capabilityFloor": "small",
49
+ "toolPolicy": {
50
+ "disallowBuiltinToolsets": [
51
+ "ai-apps",
52
+ "archives",
53
+ "audio",
54
+ "browser-automation",
55
+ "craftbooks",
56
+ "data-tables",
57
+ "entity-intel",
58
+ "git",
59
+ "image-intel",
60
+ "images",
61
+ "role-delegation",
62
+ "role-delegation-escalation",
63
+ "security-intel",
64
+ "team-management",
65
+ "videos",
66
+ "web",
67
+ "workspace-fs-write"
68
+ ],
69
+ "outputMedium": "artifact"
70
+ },
71
+ "advanceWhen": {
72
+ "file": "{{workPath}}/audit.md",
73
+ "minBytes": 600,
74
+ "sniff": "nonempty",
75
+ "requireChange": true,
76
+ "artifact": true,
77
+ "goto": "change"
78
+ },
79
+ "gate": {
80
+ "at": "completion",
81
+ "checks": [
82
+ {
83
+ "kind": "minBytes",
84
+ "file": "{{workPath}}/audit.md",
85
+ "bytes": 600,
86
+ "artifact": true
87
+ },
88
+ {
89
+ "kind": "sniff",
90
+ "file": "{{workPath}}/audit.md",
91
+ "sniff": "nonempty",
92
+ "artifact": true
93
+ },
94
+ {
95
+ "kind": "contains",
96
+ "file": "{{workPath}}/audit.md",
97
+ "pattern": "^##\\s+Inventory[\\s\\S]*\\d",
98
+ "flags": "im",
99
+ "label": "Inventory section with counts",
100
+ "artifact": true
101
+ },
102
+ {
103
+ "kind": "contains",
104
+ "file": "{{workPath}}/audit.md",
105
+ "pattern": "^##\\s+Targets",
106
+ "flags": "im",
107
+ "label": "Targets section",
108
+ "artifact": true
109
+ },
110
+ {
111
+ "kind": "contains",
112
+ "file": "{{workPath}}/audit.md",
113
+ "pattern": "^##\\s+Guardrail",
114
+ "flags": "im",
115
+ "label": "Guardrail section",
116
+ "artifact": true
117
+ },
118
+ {
119
+ "kind": "citationsResolve",
120
+ "file": "{{workPath}}/audit.md",
121
+ "minCitations": 2,
122
+ "artifact": true
123
+ },
124
+ {
125
+ "kind": "commandEvidence",
126
+ "script": "test",
127
+ "expect": "pass",
128
+ "label": "green before the work starts"
129
+ }
130
+ ],
131
+ "onReject": "audit",
132
+ "maxAttempts": 4
133
+ },
134
+ "next": "change"
135
+ },
136
+ {
137
+ "id": "change",
138
+ "name": "Fix pattern by pattern",
139
+ "description": "Fix the targeted patterns at the real sites, never silencing a check or weakening an assertion to move a count.",
140
+ "prompt": "Read `{{workPath}}/audit.md` and fix the targeted patterns at the REAL sites with `read_file` plus `write_file`/`replace_in_file`, pattern by pattern. Replace loose equality with strict checks that state what they mean; normalize or validate values at the boundary they cross instead of coercing mid-calculation; make swallowed catches surface the error — rethrow, or report it the way the audit's guardrail declares — rather than carrying on as if nothing failed. Never buy a lower count by weakening the code: no deleting an assertion, no silencing an error path, no bare casts, and in TypeScript no `any` or ignore-comment to make a diagnostic disappear — a count that falls that way is a regression wearing a metric. Behavior changes only where the audit declared a consequence fix, and each one gets named in your notes. Run the suite with `run_package_script` (`test`) as you go and keep it green; a change that goes red gets narrowed, not stacked on. If a targeted hit turns out to be correct as written, record why and leave it — honesty beats a moved count.\n\nWrite `{{workPath}}/change-notes.md` with exactly these sections: `## Patterns addressed` (each pattern class, what the fix was, and any declared consequence fix it delivered), `## Files touched` (backtick path per line), `## Deviations` (targets handled differently than the audit planned, or `none`, honestly). Before working, open `{{workPath}}/audit.md` with `read_artifact`.\n\nObservable handoff: write the completed result to `{{workPath}}/change-notes.md` in the project's artifacts drawer with `write_artifact`. Do not merely describe what the file would contain. Re-read it with `read_artifact` before finishing this phase and repair any incomplete sections.",
141
+ "suggestedRole": "software engineer",
142
+ "capabilityFloor": "small",
143
+ "toolPolicy": {
144
+ "disallowBuiltinToolsets": [
145
+ "ai-apps",
146
+ "archives",
147
+ "audio",
148
+ "browser-automation",
149
+ "craftbooks",
150
+ "data-tables",
151
+ "entity-intel",
152
+ "git",
153
+ "image-intel",
154
+ "images",
155
+ "role-delegation",
156
+ "role-delegation-escalation",
157
+ "security-intel",
158
+ "team-management",
159
+ "videos",
160
+ "web"
161
+ ],
162
+ "outputMedium": "artifact",
163
+ "additionalOutputMedia": [
164
+ "task-note",
165
+ "workspace"
166
+ ]
167
+ },
168
+ "consumes": [
169
+ {
170
+ "file": "{{workPath}}/audit.md",
171
+ "artifact": true
172
+ }
173
+ ],
174
+ "advanceWhen": {
175
+ "file": "{{workPath}}/change-notes.md",
176
+ "minBytes": 600,
177
+ "sniff": "nonempty",
178
+ "requireChange": true,
179
+ "artifact": true,
180
+ "goto": "verify"
181
+ },
182
+ "gate": {
183
+ "at": "completion",
184
+ "checks": [
185
+ {
186
+ "kind": "minBytes",
187
+ "file": "{{workPath}}/change-notes.md",
188
+ "bytes": 600,
189
+ "artifact": true
190
+ },
191
+ {
192
+ "kind": "sniff",
193
+ "file": "{{workPath}}/change-notes.md",
194
+ "sniff": "nonempty",
195
+ "artifact": true
196
+ },
197
+ {
198
+ "kind": "contains",
199
+ "file": "{{workPath}}/change-notes.md",
200
+ "pattern": "^##\\s+Patterns addressed",
201
+ "flags": "im",
202
+ "label": "Patterns addressed section",
203
+ "artifact": true
204
+ },
205
+ {
206
+ "kind": "contains",
207
+ "file": "{{workPath}}/change-notes.md",
208
+ "pattern": "^##\\s+Files touched",
209
+ "flags": "im",
210
+ "label": "Files touched section",
211
+ "artifact": true
212
+ },
213
+ {
214
+ "kind": "contains",
215
+ "file": "{{workPath}}/change-notes.md",
216
+ "pattern": "^##\\s+Deviations",
217
+ "flags": "im",
218
+ "label": "Deviations section",
219
+ "artifact": true
220
+ },
221
+ {
222
+ "kind": "citationsResolve",
223
+ "file": "{{workPath}}/change-notes.md",
224
+ "minCitations": 2,
225
+ "artifact": true
226
+ }
227
+ ],
228
+ "onReject": "change",
229
+ "maxAttempts": 4
230
+ },
231
+ "next": "verify"
232
+ },
233
+ {
234
+ "id": "verify",
235
+ "name": "Re-count and verify",
236
+ "description": "Re-count every pattern with exactly the audit's method, quote before/after counts, and record the suite green.",
237
+ "prompt": "Prove the pass with fresh eyes. Read `{{workPath}}/audit.md` and RE-COUNT every pattern with EXACTLY the method and grep expressions it records — same expressions, same scope; a changed method voids the comparison, and if the recorded method cannot be reproduced that is a finding to report, not a license to substitute one. Quote the audit's count and the new count for each pattern side by side. Run the whole suite with `run_package_script` (`test`) and record the green result. Spot-check the fixed sites: the checks got stronger, not deleted, and no cast or ignore-comment crept in. Anything you could not actually re-run gets labeled unverified, never claimed.\n\nWrite `{{workPath}}/verification.md` with exactly these sections: `## Before / after counts` (per pattern, the audit count next to the re-count, same greps), `## Suite` (the full-suite result from the real run), `## Result` (which declared consequences are now fixed, and anything unverified). Before working, open `{{workPath}}/audit.md` with `read_artifact`.\n\nObservable handoff: write the completed result to `{{workPath}}/verification.md` in the project's artifacts drawer with `write_artifact`. Do not merely describe what the file would contain. Re-read it with `read_artifact` before finishing this phase and repair any incomplete sections.",
238
+ "suggestedRole": "software engineer",
239
+ "capabilityFloor": "small",
240
+ "toolPolicy": {
241
+ "disallowBuiltinToolsets": [
242
+ "ai-apps",
243
+ "archives",
244
+ "audio",
245
+ "browser-automation",
246
+ "craftbooks",
247
+ "data-tables",
248
+ "entity-intel",
249
+ "git",
250
+ "image-intel",
251
+ "images",
252
+ "role-delegation",
253
+ "role-delegation-escalation",
254
+ "security-intel",
255
+ "team-management",
256
+ "videos",
257
+ "web",
258
+ "workspace-fs-write"
259
+ ],
260
+ "outputMedium": "artifact"
261
+ },
262
+ "consumes": [
263
+ {
264
+ "file": "{{workPath}}/audit.md",
265
+ "artifact": true
266
+ }
267
+ ],
268
+ "advanceWhen": {
269
+ "file": "{{workPath}}/verification.md",
270
+ "minBytes": 400,
271
+ "sniff": "nonempty",
272
+ "requireChange": true,
273
+ "artifact": true,
274
+ "goto": "evaluate"
275
+ },
276
+ "gate": {
277
+ "at": "completion",
278
+ "checks": [
279
+ {
280
+ "kind": "minBytes",
281
+ "file": "{{workPath}}/verification.md",
282
+ "bytes": 400,
283
+ "artifact": true
284
+ },
285
+ {
286
+ "kind": "sniff",
287
+ "file": "{{workPath}}/verification.md",
288
+ "sniff": "nonempty",
289
+ "artifact": true
290
+ },
291
+ {
292
+ "kind": "contains",
293
+ "file": "{{workPath}}/verification.md",
294
+ "pattern": "^##\\s+Before\\s*/\\s*after counts[\\s\\S]*\\d",
295
+ "flags": "im",
296
+ "label": "Before / after counts with figures",
297
+ "artifact": true
298
+ },
299
+ {
300
+ "kind": "contains",
301
+ "file": "{{workPath}}/verification.md",
302
+ "pattern": "^##\\s+Suite",
303
+ "flags": "im",
304
+ "label": "Suite section",
305
+ "artifact": true
306
+ },
307
+ {
308
+ "kind": "contains",
309
+ "file": "{{workPath}}/verification.md",
310
+ "pattern": "^##\\s+Result",
311
+ "flags": "im",
312
+ "label": "Result section",
313
+ "artifact": true
314
+ },
315
+ {
316
+ "kind": "commandEvidence",
317
+ "script": "test",
318
+ "expect": "pass",
319
+ "label": "green after the pass (verified run receipt)"
320
+ }
321
+ ],
322
+ "onReject": "verify",
323
+ "maxAttempts": 4
324
+ },
325
+ "next": "evaluate"
326
+ },
327
+ {
328
+ "id": "evaluate",
329
+ "name": "Evaluate the deliverable",
330
+ "description": "Independently grade the observable deliverable and route it to finish, repair, or user escalation.",
331
+ "prompt": "Review `{{workPath}}/verification.md`, `{{workPath}}/audit.md`, `{{workPath}}/change-notes.md` against every criterion below. Inspect the underlying evidence files named by the workflow; do not grade from the author's summary alone.\n\n1. audit.md counts real patterns in real files with the exact method recorded (grep expressions quoted), and a green suite receipt exists from before the work started.\n2. Counts genuinely fell and the re-count method matches the audit's exactly: verification.md quotes before and after per pattern — the measured target moved against the recorded baseline using the same method.\n3. No suppression bought the improvement: open the touched files and confirm no assertion was weakened, no check deleted, no error path silenced, and no cast or ignore-comment introduced to move a count.\n4. Observable behavior unchanged (or changed only as the audit declared): each consequence fix the audit named happened and is recorded in change-notes.md, and nothing else moved.\n5. No stage left the suite red (receipts, not claims): green before the pass and green after it, from real runs.\n6. change-notes.md names every touched file (paths that exist) and records its deviations honestly, including targets left alone because they were correct as written.\n\nOpen `{{workPath}}/verification.md`, `{{workPath}}/audit.md`, `{{workPath}}/change-notes.md` with `read_artifact`. Write the evidence-backed review to `{{workPath}}/review.md` in the artifacts drawer with `write_artifact`.\n\nList the findings as a markdown table with columns `| Severity | File | Line | Problem | Fix |` (severities: critical/major/minor/nit; empty table only on PASS). Give each criterion a PASS or FAIL with a concrete path, excerpt, measurement, or observed behavior. End with exactly `Verdict: PASS` or `Verdict: REVISE`. The gate ENFORCES the verdict: a well-formed REVISE is rejected and routed back to `repair` automatically, carrying your findings — so list every finding in the table with a concrete fix. On PASS, `advance_task_step` to `finish`. Never write PASS while a criterion is unmet.",
332
+ "suggestedRole": "code-quality reviewer",
333
+ "toolPolicy": {
334
+ "disallowBuiltinToolsets": [
335
+ "ai-apps",
336
+ "archives",
337
+ "audio",
338
+ "browser-automation",
339
+ "code-execution",
340
+ "craftbooks",
341
+ "data-tables",
342
+ "entity-intel",
343
+ "git",
344
+ "image-intel",
345
+ "images",
346
+ "role-delegation",
347
+ "role-delegation-escalation",
348
+ "security-intel",
349
+ "team-management",
350
+ "videos",
351
+ "web",
352
+ "workspace-fs-write"
353
+ ],
354
+ "outputMedium": "artifact",
355
+ "additionalOutputMedia": [
356
+ "task-note"
357
+ ]
358
+ },
359
+ "consumes": [
360
+ {
361
+ "file": "{{workPath}}/verification.md",
362
+ "artifact": true
363
+ },
364
+ {
365
+ "file": "{{workPath}}/audit.md",
366
+ "artifact": true
367
+ },
368
+ {
369
+ "file": "{{workPath}}/change-notes.md",
370
+ "artifact": true
371
+ }
372
+ ],
373
+ "gate": {
374
+ "at": "completion",
375
+ "checks": [
376
+ {
377
+ "kind": "minBytes",
378
+ "file": "{{workPath}}/review.md",
379
+ "bytes": 400,
380
+ "artifact": true
381
+ },
382
+ {
383
+ "kind": "contains",
384
+ "file": "{{workPath}}/review.md",
385
+ "pattern": "Verdict:\\s*(?:PASS|REVISE)",
386
+ "flags": "i",
387
+ "label": "explicit PASS or REVISE verdict",
388
+ "artifact": true
389
+ }
390
+ ],
391
+ "scripts": [
392
+ {
393
+ "name": "checkFixReview",
394
+ "scope": "standard",
395
+ "inputs": {
396
+ "reviewPath": "{{workPath}}/review.md",
397
+ "fixStepId": "repair"
398
+ }
399
+ }
400
+ ],
401
+ "onReject": "evaluate",
402
+ "maxAttempts": 4
403
+ },
404
+ "next": "finish"
405
+ },
406
+ {
407
+ "id": "repair",
408
+ "name": "Repair the deliverable",
409
+ "description": "Fix only the concrete gaps from the latest independent review.",
410
+ "prompt": "Read `{{workPath}}/review.md` with `read_artifact` and repair every failed criterion in `{{workPath}}/verification.md`, `{{workPath}}/audit.md`, `{{workPath}}/change-notes.md`. Make changes on each file's declared surface (`write_artifact` for artifact inputs, `write_file` for workspace inputs), not in task notes or a reply. Preserve evidence that already passed. Re-run or re-check anything the reviewer found unproven. Ensure `{{workPath}}/verification.md` is genuinely updated this turn so the repair is observable, then hand it back for independent evaluation.",
411
+ "suggestedRole": "software engineer",
412
+ "toolPolicy": {
413
+ "disallowBuiltinToolsets": [
414
+ "ai-apps",
415
+ "archives",
416
+ "audio",
417
+ "browser-automation",
418
+ "craftbooks",
419
+ "data-tables",
420
+ "entity-intel",
421
+ "git",
422
+ "image-intel",
423
+ "images",
424
+ "role-delegation",
425
+ "role-delegation-escalation",
426
+ "security-intel",
427
+ "team-management",
428
+ "videos",
429
+ "web"
430
+ ],
431
+ "outputMedium": "artifact",
432
+ "additionalOutputMedia": [
433
+ "task-note",
434
+ "workspace"
435
+ ]
436
+ },
437
+ "consumes": [
438
+ {
439
+ "file": "{{workPath}}/review.md",
440
+ "artifact": true
441
+ },
442
+ {
443
+ "file": "{{workPath}}/verification.md",
444
+ "artifact": true
445
+ },
446
+ {
447
+ "file": "{{workPath}}/audit.md",
448
+ "artifact": true
449
+ },
450
+ {
451
+ "file": "{{workPath}}/change-notes.md",
452
+ "artifact": true
453
+ }
454
+ ],
455
+ "advanceWhen": {
456
+ "file": "{{workPath}}/verification.md",
457
+ "minBytes": 400,
458
+ "sniff": "nonempty",
459
+ "requireChange": true,
460
+ "artifact": true,
461
+ "goto": "evaluate"
462
+ },
463
+ "gate": {
464
+ "at": "completion",
465
+ "checks": [
466
+ {
467
+ "kind": "minBytes",
468
+ "file": "{{workPath}}/verification.md",
469
+ "bytes": 400,
470
+ "artifact": true
471
+ },
472
+ {
473
+ "kind": "sniff",
474
+ "file": "{{workPath}}/verification.md",
475
+ "sniff": "nonempty",
476
+ "artifact": true
477
+ },
478
+ {
479
+ "kind": "contains",
480
+ "file": "{{workPath}}/verification.md",
481
+ "pattern": "^##\\s+Before\\s*/\\s*after counts[\\s\\S]*\\d",
482
+ "flags": "im",
483
+ "label": "Before / after counts with figures",
484
+ "artifact": true
485
+ },
486
+ {
487
+ "kind": "contains",
488
+ "file": "{{workPath}}/verification.md",
489
+ "pattern": "^##\\s+Suite",
490
+ "flags": "im",
491
+ "label": "Suite section",
492
+ "artifact": true
493
+ },
494
+ {
495
+ "kind": "contains",
496
+ "file": "{{workPath}}/verification.md",
497
+ "pattern": "^##\\s+Result",
498
+ "flags": "im",
499
+ "label": "Result section",
500
+ "artifact": true
501
+ },
502
+ {
503
+ "kind": "commandEvidence",
504
+ "script": "test",
505
+ "expect": "pass",
506
+ "label": "green after the pass (verified run receipt)"
507
+ }
508
+ ],
509
+ "onReject": "repair",
510
+ "maxAttempts": 4
511
+ },
512
+ "next": "evaluate"
513
+ },
514
+ {
515
+ "id": "finish",
516
+ "name": "Finish",
517
+ "description": "All deterministic and reviewer criteria passed.",
518
+ "prompt": "The independent review passed. Read `{{workPath}}/review.md` with `read_artifact`, then use `write_task_note` to record a concise DONE summary with the final deliverable paths (`{{workPath}}/verification.md`, `{{workPath}}/audit.md`, `{{workPath}}/change-notes.md`) and the evidence that each acceptance criterion passed. Report DONE without starting new work.",
519
+ "suggestedRole": "project lead",
520
+ "toolPolicy": {
521
+ "disallowBuiltinToolsets": [
522
+ "ai-apps",
523
+ "archives",
524
+ "audio",
525
+ "browser-automation",
526
+ "code-execution",
527
+ "craftbooks",
528
+ "data-tables",
529
+ "entity-intel",
530
+ "git",
531
+ "image-intel",
532
+ "images",
533
+ "role-delegation",
534
+ "role-delegation-escalation",
535
+ "security-intel",
536
+ "team-management",
537
+ "videos",
538
+ "web",
539
+ "workspace-fs-write"
540
+ ],
541
+ "outputMedium": "task-note"
542
+ },
543
+ "consumes": [
544
+ {
545
+ "file": "{{workPath}}/review.md",
546
+ "artifact": true
547
+ }
548
+ ],
549
+ "terminal": true
550
+ },
551
+ {
552
+ "id": "needs-user",
553
+ "name": "Escalate unresolved concerns",
554
+ "description": "The bounded repair loop ended without a defensible pass.",
555
+ "prompt": "The deliverable did not pass after 3 review rounds. Do not claim success. Read `{{workPath}}/review.md` with `read_artifact`, then use `write_task_note` to record DONE_WITH_CONCERNS: the unmet criteria, what was attempted, the affected paths, and the smallest user decision or missing input needed to continue.",
556
+ "suggestedRole": "project lead",
557
+ "toolPolicy": {
558
+ "disallowBuiltinToolsets": [
559
+ "ai-apps",
560
+ "archives",
561
+ "audio",
562
+ "browser-automation",
563
+ "code-execution",
564
+ "craftbooks",
565
+ "data-tables",
566
+ "entity-intel",
567
+ "git",
568
+ "image-intel",
569
+ "images",
570
+ "role-delegation",
571
+ "role-delegation-escalation",
572
+ "security-intel",
573
+ "team-management",
574
+ "videos",
575
+ "web",
576
+ "workspace-fs-write"
577
+ ],
578
+ "outputMedium": "task-note"
579
+ },
580
+ "consumes": [
581
+ {
582
+ "file": "{{workPath}}/review.md",
583
+ "artifact": true
584
+ }
585
+ ],
586
+ "terminal": true
587
+ }
588
+ ],
589
+ "diffpackCapable": true,
590
+ "capabilityFloor": "small",
591
+ "version": "2.0.2",
592
+ "releasedAt": "2026-09-05T03:30:00Z",
593
+ "minGezelVersion": "1.26236"
594
+ }