@bendyline/gilde 0.1.40 → 0.1.42

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 (150) hide show
  1. package/authoring/gstack/overlays/investigate.json +1 -0
  2. package/authoring/gstack/overlays/qa-only.json +1 -0
  3. package/authoring/gstack/wave.json +12 -2
  4. package/authoring/tactical/books/accessibility-retrofit.json +188 -0
  5. package/authoring/tactical/books/apply-review-findings.json +189 -0
  6. package/authoring/tactical/books/bug-fix-tdd.json +237 -0
  7. package/authoring/tactical/books/ci-pipeline.json +168 -0
  8. package/authoring/tactical/books/codemod-sweep.json +182 -0
  9. package/authoring/tactical/books/dependency-upgrade.json +196 -0
  10. package/authoring/tactical/books/flaky-test-fix.json +238 -0
  11. package/authoring/tactical/books/hotfix-flow.json +187 -0
  12. package/authoring/tactical/books/perf-optimization.json +219 -0
  13. package/authoring/tactical/books/refactor-module.json +217 -0
  14. package/authoring/tactical/books/schema-migration.json +192 -0
  15. package/authoring/tactical/books/test-suite-backfill.json +172 -0
  16. package/authoring/tactical/books/type-safety-pass.json +185 -0
  17. package/authoring/tactical/books/ux-update.json +178 -0
  18. package/authoring/tactical/evals/accessibility-retrofit.json +230 -0
  19. package/authoring/tactical/evals/apply-review-findings.json +290 -0
  20. package/authoring/tactical/evals/bug-fix-tdd.json +221 -0
  21. package/authoring/tactical/evals/ci-pipeline.json +227 -0
  22. package/authoring/tactical/evals/codemod-sweep.json +252 -0
  23. package/authoring/tactical/evals/dependency-upgrade.json +235 -0
  24. package/authoring/tactical/evals/flaky-test-fix.json +239 -0
  25. package/authoring/tactical/evals/hotfix-flow.json +220 -0
  26. package/authoring/tactical/evals/perf-optimization.json +235 -0
  27. package/authoring/tactical/evals/refactor-module.json +241 -0
  28. package/authoring/tactical/evals/schema-migration.json +225 -0
  29. package/authoring/tactical/evals/test-suite-backfill.json +197 -0
  30. package/authoring/tactical/evals/type-safety-pass.json +221 -0
  31. package/authoring/tactical/evals/ux-update.json +206 -0
  32. package/authoring/tactical/wave.json +89 -0
  33. package/data/chat-models/de/deepseek-r1-8b-q4/manifest.json +56 -1
  34. package/data/chat-models/gl/glm-5.2-754b-q2/manifest.json +56 -0
  35. package/data/chat-models/gp/gpt-oss-120b-q4/manifest.json +73 -1
  36. package/data/chat-models/gp/gpt-oss-20b-q4/manifest.json +77 -1
  37. package/data/chat-models/index.json +1 -1
  38. package/data/chat-models/ll/llama3.2-3b-q4/manifest.json +3 -1
  39. package/data/chat-models/mi/mistral-7b-q4/manifest.json +54 -3
  40. package/data/chat-models/mi/mistral-medium-3.5-128b-q4/manifest.json +76 -1
  41. package/data/craftbook-templates/ac/accessibility-retrofit/manifest.json +5 -4
  42. package/data/craftbook-templates/ac/accessibility-retrofit/versions/2.0.0/craftbook.json +451 -0
  43. package/data/craftbook-templates/ac/accessibility-retrofit/versions/2.0.0/test.json +231 -0
  44. package/data/craftbook-templates/al/alt-text-pass/manifest.json +5 -1
  45. package/data/craftbook-templates/ap/apply-review-findings/art.json +12 -0
  46. package/data/craftbook-templates/ap/apply-review-findings/logo.webp +0 -0
  47. package/data/craftbook-templates/ap/apply-review-findings/manifest.json +23 -0
  48. package/data/craftbook-templates/ap/apply-review-findings/versions/1.0.0/craftbook.json +436 -0
  49. package/data/craftbook-templates/ap/apply-review-findings/versions/1.0.0/test.json +291 -0
  50. package/data/craftbook-templates/br/browser-qa-audit/manifest.json +5 -1
  51. package/data/craftbook-templates/br/browser-qa-audit/versions/2.0.5/craftbook.json +438 -0
  52. package/data/craftbook-templates/br/browser-qa-audit/versions/2.0.5/test.json +379 -0
  53. package/data/craftbook-templates/bu/bug-fix-tdd/manifest.json +3 -3
  54. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.0/craftbook.json +545 -0
  55. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.0/test.json +222 -0
  56. package/data/craftbook-templates/ch/changelog-cut/manifest.json +5 -1
  57. package/data/craftbook-templates/ch/changelog-writeup/manifest.json +5 -1
  58. package/data/craftbook-templates/ci/ci-pipeline/manifest.json +5 -3
  59. package/data/craftbook-templates/ci/ci-pipeline/versions/2.0.0/craftbook.json +423 -0
  60. package/data/craftbook-templates/ci/ci-pipeline/versions/2.0.0/test.json +228 -0
  61. package/data/craftbook-templates/co/codemod-sweep/art.json +12 -0
  62. package/data/craftbook-templates/co/codemod-sweep/logo.webp +0 -0
  63. package/data/craftbook-templates/co/codemod-sweep/manifest.json +23 -0
  64. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.0/craftbook.json +441 -0
  65. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.0/test.json +253 -0
  66. package/data/craftbook-templates/de/dependency-upgrade/art.json +12 -0
  67. package/data/craftbook-templates/de/dependency-upgrade/logo.webp +0 -0
  68. package/data/craftbook-templates/de/dependency-upgrade/manifest.json +23 -0
  69. package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.0/craftbook.json +459 -0
  70. package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.0/test.json +236 -0
  71. package/data/craftbook-templates/fe/feature-flag-release/manifest.json +5 -1
  72. package/data/craftbook-templates/fe/feature-flag-rollout/manifest.json +4 -1
  73. package/data/craftbook-templates/fe/feature-flag-rollout/versions/1.1.0/craftbook.json +203 -0
  74. package/data/craftbook-templates/fe/feature-flag-rollout/versions/1.1.0/test.json +165 -0
  75. package/data/craftbook-templates/fl/flaky-test-fix/art.json +12 -0
  76. package/data/craftbook-templates/fl/flaky-test-fix/logo.webp +0 -0
  77. package/data/craftbook-templates/fl/flaky-test-fix/manifest.json +24 -0
  78. package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.0/craftbook.json +534 -0
  79. package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.0/test.json +240 -0
  80. package/data/craftbook-templates/ho/hotfix-flow/manifest.json +5 -3
  81. package/data/craftbook-templates/ho/hotfix-flow/versions/2.0.0/craftbook.json +442 -0
  82. package/data/craftbook-templates/ho/hotfix-flow/versions/2.0.0/test.json +221 -0
  83. package/data/craftbook-templates/in/investigate/manifest.json +4 -1
  84. package/data/craftbook-templates/in/investigate-root-cause/manifest.json +5 -1
  85. package/data/craftbook-templates/index.json +1 -1
  86. package/data/craftbook-templates/li/live-browser-qa/manifest.json +5 -1
  87. package/data/craftbook-templates/ni/nightly-fix-sweep/art.json +12 -0
  88. package/data/craftbook-templates/ni/nightly-fix-sweep/logo.webp +0 -0
  89. package/data/craftbook-templates/ni/nightly-fix-sweep/manifest.json +23 -0
  90. package/data/craftbook-templates/ni/nightly-fix-sweep/versions/1.0.0/craftbook.json +145 -0
  91. package/data/craftbook-templates/ni/nightly-fix-sweep/versions/1.0.0/test.json +121 -0
  92. package/data/craftbook-templates/pe/perf-audit/versions/1.1.0/craftbook.json +195 -0
  93. package/data/craftbook-templates/pe/perf-audit/versions/1.1.0/test.json +165 -0
  94. package/data/craftbook-templates/pe/perf-optimization/manifest.json +3 -3
  95. package/data/craftbook-templates/pe/perf-optimization/versions/2.0.0/craftbook.json +511 -0
  96. package/data/craftbook-templates/pe/perf-optimization/versions/2.0.0/test.json +236 -0
  97. package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.4/test.json +0 -1
  98. package/data/craftbook-templates/pu/pull-request-review/versions/1.8.0/craftbook.json +304 -0
  99. package/data/craftbook-templates/pu/pull-request-review/versions/1.8.0/test.json +144 -0
  100. package/data/craftbook-templates/qa/qa/manifest.json +3 -1
  101. package/data/craftbook-templates/re/refactor-module/manifest.json +2 -2
  102. package/data/craftbook-templates/re/refactor-module/versions/1.0.4/craftbook.json +150 -0
  103. package/data/craftbook-templates/re/refactor-module/versions/1.0.4/test.json +95 -0
  104. package/data/craftbook-templates/re/refactor-module/versions/2.0.0/craftbook.json +509 -0
  105. package/data/craftbook-templates/re/refactor-module/versions/2.0.0/test.json +242 -0
  106. package/data/craftbook-templates/re/release-notes/manifest.json +5 -1
  107. package/data/craftbook-templates/re/release-notes/versions/1.0.3/craftbook.json +220 -0
  108. package/data/craftbook-templates/re/release-notes/versions/1.0.3/test.json +114 -0
  109. package/data/craftbook-templates/re/release-pipeline-ci/manifest.json +5 -1
  110. package/data/craftbook-templates/re/release-readiness-review/versions/1.1.0/craftbook.json +192 -0
  111. package/data/craftbook-templates/re/release-readiness-review/versions/1.1.0/test.json +113 -0
  112. package/data/craftbook-templates/ro/root-cause-investigation/manifest.json +7 -1
  113. package/data/craftbook-templates/ro/root-cause-investigation/versions/2.0.5/craftbook.json +433 -0
  114. package/data/craftbook-templates/ro/root-cause-investigation/versions/2.0.5/test.json +157 -0
  115. package/data/craftbook-templates/sc/schema-migration/manifest.json +4 -4
  116. package/data/craftbook-templates/sc/schema-migration/versions/2.0.0/craftbook.json +459 -0
  117. package/data/craftbook-templates/sc/schema-migration/versions/2.0.0/test.json +226 -0
  118. package/data/craftbook-templates/te/test-coverage-review/versions/1.2.0/craftbook.json +195 -0
  119. package/data/craftbook-templates/te/test-coverage-review/versions/1.2.0/test.json +116 -0
  120. package/data/craftbook-templates/te/test-suite-backfill/manifest.json +1 -2
  121. package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.0/craftbook.json +428 -0
  122. package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.0/test.json +198 -0
  123. package/data/craftbook-templates/ty/type-safety-pass/manifest.json +3 -3
  124. package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.0/craftbook.json +428 -0
  125. package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.0/test.json +222 -0
  126. package/data/craftbook-templates/ux/ux-update/art.json +12 -0
  127. package/data/craftbook-templates/ux/ux-update/logo.webp +0 -0
  128. package/data/craftbook-templates/ux/ux-update/manifest.json +22 -0
  129. package/data/craftbook-templates/ux/ux-update/versions/1.0.0/craftbook.json +439 -0
  130. package/data/craftbook-templates/ux/ux-update/versions/1.0.0/test.json +207 -0
  131. package/data/craftbook-templates/ve/version-bump/versions/1.1.0/craftbook.json +206 -0
  132. package/data/craftbook-templates/ve/version-bump/versions/1.1.0/test.json +95 -0
  133. package/data/gezel-templates/bo/boekwachter/versions/1.1.0/about.md +29 -0
  134. package/data/gezel-templates/bo/boekwachter/versions/1.1.0/manifest.json +16 -0
  135. package/data/gezel-templates/bu/builder/versions/1.5.0/about.md +34 -0
  136. package/data/gezel-templates/bu/builder/versions/1.5.0/manifest.json +16 -0
  137. package/data/gezel-templates/de/developer/versions/1.5.0/about.md +34 -0
  138. package/data/gezel-templates/de/developer/versions/1.5.0/manifest.json +21 -0
  139. package/data/gezel-templates/index.json +1 -1
  140. package/data/gezel-templates/re/reviewer/versions/1.4.0/about.md +49 -0
  141. package/data/gezel-templates/re/reviewer/versions/1.4.0/manifest.json +21 -0
  142. package/data/project-types/index.json +1 -1
  143. package/data/project-types/so/software-project/manifest.json +20 -0
  144. package/data/project-types/so/software-project/versions/1.0.0/about.md +3 -0
  145. package/data/project-types/so/software-project/versions/1.0.0/manifest.json +41 -0
  146. package/data/project-types/so/software-project/versions/1.0.0/mission.md +4 -0
  147. package/package.json +1 -1
  148. package/schemas/craftbook-doc.schema.json +248 -0
  149. package/schemas/craftbook-template-version.schema.json +248 -0
  150. package/schemas/craftbook-test.schema.json +200 -0
@@ -0,0 +1,12 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "promptVersion": "workshop-mark-1910-v2",
4
+ "periodCue": "circa-1910-subtle",
5
+ "family": "build-repair",
6
+ "accents": [
7
+ "dusty blue",
8
+ "clay"
9
+ ],
10
+ "sourceSummary": "Implement a described interface change at the real surfaces with before/after evidence and the surrounding conventions respected.",
11
+ "styleReference": "bug-fix-tdd"
12
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "kind": "craftbook-template",
4
+ "id": "ux-update",
5
+ "name": "Implement a UX Change",
6
+ "description": "Deliver a described UX change the disciplined way: capture the before state from the real markup, make the smallest coherent change at the real sites in the product's own conventions, and prove the after state with the existing behaviors still working — under an enforced independent review.",
7
+ "role": "general",
8
+ "category": "code-build",
9
+ "tags": [
10
+ "ux",
11
+ "ui",
12
+ "frontend",
13
+ "user-experience",
14
+ "polish"
15
+ ],
16
+ "maintainer": {
17
+ "name": "Gezel"
18
+ },
19
+ "license": "MIT",
20
+ "yankedVersions": [],
21
+ "logo": "logo.webp"
22
+ }
@@ -0,0 +1,439 @@
1
+ {
2
+ "id": "ux-update",
3
+ "name": "Implement a UX Change",
4
+ "description": "Implement a UX change the way a careful product engineer would — grounded in the real code at every step, not in a redescription of it. First UNDERSTAND: restate the requested change as the user would experience it, find the involved surfaces in the actual pages, components, styles, and scripts, and capture the BEFORE state by quoting the real markup and wiring — including every behavior attached to those surfaces (handlers, keyboard shortcuts, ids, state), because each must still work afterwards. Then IMPLEMENT the smallest coherent change at those real sites, matching the surrounding product's conventions — its spacing, naming, and markup patterns — rather than inventing a new style, and moving existing behaviors with the elements rather than dropping them. Then VALIDATE by walking the changed flow and building a concrete before/after comparison grounded in the files, honest about what was inspected versus actually exercised. Finally an independent reviewer grades the delivered change as a user would judge it — request delivered, conventions respected, nothing that worked before broken — and a REVISE verdict routes the work back automatically with concrete findings. This is the fix-applying sibling of the report-only codebase UX review: that book tells you what is wrong, this one delivers the change. Works identically whether the run edits the project directly or drafts a change proposal for the user to apply.",
5
+ "plan": "Understand the request and capture the before state from the real code -> implement the smallest coherent change at the real sites in the product's own conventions -> validate the flow with a concrete before/after -> enforced independent review.",
6
+ "entryStepId": "understand",
7
+ "triggers": [
8
+ "make this ux change",
9
+ "move the button",
10
+ "improve this flow",
11
+ "update the ui"
12
+ ],
13
+ "paramSchema": {
14
+ "type": "object",
15
+ "properties": {
16
+ "scope": {
17
+ "type": "string",
18
+ "title": "The UX change",
19
+ "description": "What should change for the user, in plain words. Leave empty when the task description carries it.",
20
+ "default": ""
21
+ },
22
+ "workPath": {
23
+ "type": "string",
24
+ "title": "Working folder",
25
+ "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.",
26
+ "default": "{{task.dir}}"
27
+ }
28
+ }
29
+ },
30
+ "steps": [
31
+ {
32
+ "id": "understand",
33
+ "name": "Understand and capture the before state",
34
+ "description": "Restate the change as the user experiences it, find the real surfaces, and quote the current markup and wiring.",
35
+ "prompt": "The UX change to deliver: {{scope}}\n\nUnderstand before touching anything. Restate the requested change as the USER would experience it — what they see and do today, what they should see and do afterwards. Then find the involved surfaces in the REAL code: read the actual pages, components, styles, and scripts with `read_file` until you can point at the exact markup and wiring behind the current experience. Capture the BEFORE state from those files — quote the relevant snippets (the current markup, the handler, the shortcut wiring) so the change can later be judged against reality rather than memory. Catalogue every behavior attached to the surfaces you will touch — handlers, keyboard shortcuts, element ids other code references, state — because each of them must still work afterwards. If the request is ambiguous, record the reading you chose and why; if the described surface cannot be located in this codebase at all, say so honestly and stop rather than inventing one.\n\nWrite `{{workPath}}/before.md` with exactly these sections: `## Request` (the change in the user's terms), `## Current behavior` (what happens today, with the quoted snippets), `## Surfaces involved` (each file and the part it plays, with backtick paths). Every path you cite must be real.\n\nObservable handoff: write the completed result to `{{workPath}}/before.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.",
36
+ "suggestedRole": "product engineer",
37
+ "capabilityFloor": "small",
38
+ "advanceWhen": {
39
+ "file": "{{workPath}}/before.md",
40
+ "minBytes": 500,
41
+ "sniff": "nonempty",
42
+ "requireChange": true,
43
+ "artifact": true,
44
+ "goto": "implement"
45
+ },
46
+ "gate": {
47
+ "at": "completion",
48
+ "checks": [
49
+ {
50
+ "kind": "minBytes",
51
+ "file": "{{workPath}}/before.md",
52
+ "bytes": 500,
53
+ "artifact": true
54
+ },
55
+ {
56
+ "kind": "sniff",
57
+ "file": "{{workPath}}/before.md",
58
+ "sniff": "nonempty",
59
+ "artifact": true
60
+ },
61
+ {
62
+ "kind": "contains",
63
+ "file": "{{workPath}}/before.md",
64
+ "pattern": "^##\\s+Request",
65
+ "flags": "im",
66
+ "label": "Request section",
67
+ "artifact": true
68
+ },
69
+ {
70
+ "kind": "contains",
71
+ "file": "{{workPath}}/before.md",
72
+ "pattern": "^##\\s+Current behavior",
73
+ "flags": "im",
74
+ "label": "Current behavior section",
75
+ "artifact": true
76
+ },
77
+ {
78
+ "kind": "contains",
79
+ "file": "{{workPath}}/before.md",
80
+ "pattern": "^##\\s+Surfaces involved",
81
+ "flags": "im",
82
+ "label": "Surfaces involved section",
83
+ "artifact": true
84
+ },
85
+ {
86
+ "kind": "citationsResolve",
87
+ "file": "{{workPath}}/before.md",
88
+ "minCitations": 2,
89
+ "artifact": true
90
+ }
91
+ ],
92
+ "onReject": "understand",
93
+ "maxAttempts": 4
94
+ },
95
+ "next": "implement"
96
+ },
97
+ {
98
+ "id": "implement",
99
+ "name": "Implement the smallest coherent change",
100
+ "description": "Deliver the request at the real sites, in the product's own conventions, keeping existing behaviors wired.",
101
+ "prompt": "Read `{{workPath}}/before.md` and deliver the SMALLEST coherent change at the real sites it names — edit the actual files with `read_file` plus `write_file`/`replace_in_file`; there is no prescribed output path for the change itself. Match the surrounding product's conventions: reuse its spacing, naming, class patterns, and markup style rather than inventing a new one — open neighboring code to see how this product already does the same kind of thing. Keep every existing behavior working: the handlers, keyboard shortcuts, element ids, and state catalogued in before.md must still be wired when you are done — move them with the element rather than dropping or duplicating them. Do not smuggle in unrequested changes; polish beyond the request is scope creep, not generosity.\n\nThen write `{{workPath}}/fix-notes.md` with exactly these sections: `## Problem` (the request, one paragraph), `## Change` (what you altered and how it delivers the request), `## Files touched` (backtick path per line), `## Consistency notes` (which existing conventions you followed and where you saw them), `## Risk` (what could break; be honest about anything unverified), `## How to verify` (the exact steps a person follows to see the new experience). Before working, open `{{workPath}}/before.md` with `read_artifact`.\n\nObservable handoff: write the completed result to `{{workPath}}/fix-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.",
102
+ "suggestedRole": "frontend engineer",
103
+ "capabilityFloor": "small",
104
+ "consumes": [
105
+ {
106
+ "file": "{{workPath}}/before.md",
107
+ "artifact": true
108
+ }
109
+ ],
110
+ "advanceWhen": {
111
+ "file": "{{workPath}}/fix-notes.md",
112
+ "minBytes": 700,
113
+ "sniff": "nonempty",
114
+ "requireChange": true,
115
+ "artifact": true,
116
+ "goto": "validate"
117
+ },
118
+ "gate": {
119
+ "at": "completion",
120
+ "checks": [
121
+ {
122
+ "kind": "minBytes",
123
+ "file": "{{workPath}}/fix-notes.md",
124
+ "bytes": 700,
125
+ "artifact": true
126
+ },
127
+ {
128
+ "kind": "sniff",
129
+ "file": "{{workPath}}/fix-notes.md",
130
+ "sniff": "nonempty",
131
+ "artifact": true
132
+ },
133
+ {
134
+ "kind": "contains",
135
+ "file": "{{workPath}}/fix-notes.md",
136
+ "pattern": "^##\\s+Problem",
137
+ "flags": "im",
138
+ "label": "Problem section",
139
+ "artifact": true
140
+ },
141
+ {
142
+ "kind": "contains",
143
+ "file": "{{workPath}}/fix-notes.md",
144
+ "pattern": "^##\\s+Change",
145
+ "flags": "im",
146
+ "label": "Change section",
147
+ "artifact": true
148
+ },
149
+ {
150
+ "kind": "contains",
151
+ "file": "{{workPath}}/fix-notes.md",
152
+ "pattern": "^##\\s+Files touched",
153
+ "flags": "im",
154
+ "label": "Files touched section",
155
+ "artifact": true
156
+ },
157
+ {
158
+ "kind": "contains",
159
+ "file": "{{workPath}}/fix-notes.md",
160
+ "pattern": "^##\\s+Consistency notes",
161
+ "flags": "im",
162
+ "label": "Consistency notes section",
163
+ "artifact": true
164
+ },
165
+ {
166
+ "kind": "contains",
167
+ "file": "{{workPath}}/fix-notes.md",
168
+ "pattern": "^##\\s+Risk",
169
+ "flags": "im",
170
+ "label": "Risk section",
171
+ "artifact": true
172
+ },
173
+ {
174
+ "kind": "contains",
175
+ "file": "{{workPath}}/fix-notes.md",
176
+ "pattern": "^##\\s+How to verify",
177
+ "flags": "im",
178
+ "label": "How to verify section",
179
+ "artifact": true
180
+ },
181
+ {
182
+ "kind": "citationsResolve",
183
+ "file": "{{workPath}}/fix-notes.md",
184
+ "minCitations": 2,
185
+ "artifact": true
186
+ }
187
+ ],
188
+ "onReject": "implement",
189
+ "maxAttempts": 4
190
+ },
191
+ "next": "validate"
192
+ },
193
+ {
194
+ "id": "validate",
195
+ "name": "Validate the changed flow",
196
+ "description": "Walk the new experience and build a concrete before/after grounded in the real files.",
197
+ "prompt": "Prove the change as the user would experience it. Read `{{workPath}}/before.md` and `{{workPath}}/fix-notes.md`, then re-open the changed files with `read_file` and walk the flow: where the element lives now, what happens on each interaction, where focus goes, what each shortcut does. Build a concrete before/after comparison grounded in the real files — quote the after state next to the before state that before.md recorded. Re-check every behavior from before.md's catalogue: each handler, shortcut, and id must be verifiably still wired in the current code. Say plainly which parts you INSPECTED (read the code) versus EXERCISED (actually ran or interacted with) — anything that is neither is unverified and must be named, never claimed.\n\nWrite `{{workPath}}/validation.md` with exactly these sections: `## Before / after` (the concrete comparison, quoting both states), `## What was exercised` (inspected versus exercised, honestly), `## Result` (delivered as requested, or what remains open and why). Before working, open `{{workPath}}/before.md`, `{{workPath}}/fix-notes.md` with `read_artifact`.\n\nObservable handoff: write the completed result to `{{workPath}}/validation.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.",
198
+ "suggestedRole": "product engineer",
199
+ "capabilityFloor": "small",
200
+ "consumes": [
201
+ {
202
+ "file": "{{workPath}}/before.md",
203
+ "artifact": true
204
+ },
205
+ {
206
+ "file": "{{workPath}}/fix-notes.md",
207
+ "artifact": true
208
+ }
209
+ ],
210
+ "advanceWhen": {
211
+ "file": "{{workPath}}/validation.md",
212
+ "minBytes": 500,
213
+ "sniff": "nonempty",
214
+ "requireChange": true,
215
+ "artifact": true,
216
+ "goto": "evaluate"
217
+ },
218
+ "gate": {
219
+ "at": "completion",
220
+ "checks": [
221
+ {
222
+ "kind": "minBytes",
223
+ "file": "{{workPath}}/validation.md",
224
+ "bytes": 500,
225
+ "artifact": true
226
+ },
227
+ {
228
+ "kind": "sniff",
229
+ "file": "{{workPath}}/validation.md",
230
+ "sniff": "nonempty",
231
+ "artifact": true
232
+ },
233
+ {
234
+ "kind": "contains",
235
+ "file": "{{workPath}}/validation.md",
236
+ "pattern": "^##\\s+Before\\s*/\\s*after",
237
+ "flags": "im",
238
+ "label": "Before / after section",
239
+ "artifact": true
240
+ },
241
+ {
242
+ "kind": "contains",
243
+ "file": "{{workPath}}/validation.md",
244
+ "pattern": "^##\\s+What was exercised",
245
+ "flags": "im",
246
+ "label": "What was exercised section",
247
+ "artifact": true
248
+ },
249
+ {
250
+ "kind": "contains",
251
+ "file": "{{workPath}}/validation.md",
252
+ "pattern": "^##\\s+Result",
253
+ "flags": "im",
254
+ "label": "Result section",
255
+ "artifact": true
256
+ },
257
+ {
258
+ "kind": "citationsResolve",
259
+ "file": "{{workPath}}/validation.md",
260
+ "minCitations": 2,
261
+ "artifact": true
262
+ }
263
+ ],
264
+ "onReject": "validate",
265
+ "maxAttempts": 4
266
+ },
267
+ "next": "evaluate"
268
+ },
269
+ {
270
+ "id": "evaluate",
271
+ "name": "Evaluate the deliverable",
272
+ "description": "Independently grade the observable deliverable and route it to finish, repair, or user escalation.",
273
+ "prompt": "Review `{{workPath}}/validation.md`, `{{workPath}}/before.md`, `{{workPath}}/fix-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. The delivered change matches the request as a user would judge it — open the changed files and walk the flow; do not grade from fix-notes.md alone.\n2. The change respects the surrounding product's conventions — open neighboring code and compare naming, spacing, and markup patterns; a one-off new style where an existing pattern served does not pass.\n3. Nothing that worked before broke: every handler, keyboard shortcut, and id catalogued in before.md is still wired in the current code — check the wiring, not the claim.\n4. before.md quotes the real prior state and validation.md's before/after is grounded in the current files, not reconstructed from memory.\n5. The change is minimal: no unrequested alterations rode along with it.\n\nOpen `{{workPath}}/validation.md`, `{{workPath}}/before.md`, `{{workPath}}/fix-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.",
274
+ "suggestedRole": "ux reviewer",
275
+ "consumes": [
276
+ {
277
+ "file": "{{workPath}}/validation.md",
278
+ "artifact": true
279
+ },
280
+ {
281
+ "file": "{{workPath}}/before.md",
282
+ "artifact": true
283
+ },
284
+ {
285
+ "file": "{{workPath}}/fix-notes.md",
286
+ "artifact": true
287
+ }
288
+ ],
289
+ "gate": {
290
+ "at": "completion",
291
+ "checks": [
292
+ {
293
+ "kind": "minBytes",
294
+ "file": "{{workPath}}/review.md",
295
+ "bytes": 400,
296
+ "artifact": true
297
+ },
298
+ {
299
+ "kind": "contains",
300
+ "file": "{{workPath}}/review.md",
301
+ "pattern": "Verdict:\\s*(?:PASS|REVISE)",
302
+ "flags": "i",
303
+ "label": "explicit PASS or REVISE verdict",
304
+ "artifact": true
305
+ }
306
+ ],
307
+ "scripts": [
308
+ {
309
+ "name": "checkFixReview",
310
+ "scope": "standard",
311
+ "inputs": {
312
+ "reviewPath": "{{workPath}}/review.md",
313
+ "fixStepId": "repair"
314
+ }
315
+ }
316
+ ],
317
+ "onReject": "evaluate",
318
+ "maxAttempts": 4
319
+ },
320
+ "next": "finish"
321
+ },
322
+ {
323
+ "id": "repair",
324
+ "name": "Repair the deliverable",
325
+ "description": "Fix only the concrete gaps from the latest independent review.",
326
+ "prompt": "Read `{{workPath}}/review.md` with `read_artifact` and repair every failed criterion in `{{workPath}}/validation.md`, `{{workPath}}/before.md`, `{{workPath}}/fix-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}}/validation.md` is genuinely updated this turn so the repair is observable, then hand it back for independent evaluation.",
327
+ "suggestedRole": "frontend engineer",
328
+ "consumes": [
329
+ {
330
+ "file": "{{workPath}}/review.md",
331
+ "artifact": true
332
+ },
333
+ {
334
+ "file": "{{workPath}}/validation.md",
335
+ "artifact": true
336
+ },
337
+ {
338
+ "file": "{{workPath}}/before.md",
339
+ "artifact": true
340
+ },
341
+ {
342
+ "file": "{{workPath}}/fix-notes.md",
343
+ "artifact": true
344
+ }
345
+ ],
346
+ "advanceWhen": {
347
+ "file": "{{workPath}}/validation.md",
348
+ "minBytes": 500,
349
+ "sniff": "nonempty",
350
+ "requireChange": true,
351
+ "artifact": true,
352
+ "goto": "evaluate"
353
+ },
354
+ "gate": {
355
+ "at": "completion",
356
+ "checks": [
357
+ {
358
+ "kind": "minBytes",
359
+ "file": "{{workPath}}/validation.md",
360
+ "bytes": 500,
361
+ "artifact": true
362
+ },
363
+ {
364
+ "kind": "sniff",
365
+ "file": "{{workPath}}/validation.md",
366
+ "sniff": "nonempty",
367
+ "artifact": true
368
+ },
369
+ {
370
+ "kind": "contains",
371
+ "file": "{{workPath}}/validation.md",
372
+ "pattern": "^##\\s+Before\\s*/\\s*after",
373
+ "flags": "im",
374
+ "label": "Before / after section",
375
+ "artifact": true
376
+ },
377
+ {
378
+ "kind": "contains",
379
+ "file": "{{workPath}}/validation.md",
380
+ "pattern": "^##\\s+What was exercised",
381
+ "flags": "im",
382
+ "label": "What was exercised section",
383
+ "artifact": true
384
+ },
385
+ {
386
+ "kind": "contains",
387
+ "file": "{{workPath}}/validation.md",
388
+ "pattern": "^##\\s+Result",
389
+ "flags": "im",
390
+ "label": "Result section",
391
+ "artifact": true
392
+ },
393
+ {
394
+ "kind": "citationsResolve",
395
+ "file": "{{workPath}}/validation.md",
396
+ "minCitations": 2,
397
+ "artifact": true
398
+ }
399
+ ],
400
+ "onReject": "repair",
401
+ "maxAttempts": 4
402
+ },
403
+ "next": "evaluate"
404
+ },
405
+ {
406
+ "id": "finish",
407
+ "name": "Finish",
408
+ "description": "All deterministic and reviewer criteria passed.",
409
+ "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}}/validation.md`, `{{workPath}}/before.md`, `{{workPath}}/fix-notes.md`) and the evidence that each acceptance criterion passed. Report DONE without starting new work.",
410
+ "suggestedRole": "project lead",
411
+ "consumes": [
412
+ {
413
+ "file": "{{workPath}}/review.md",
414
+ "artifact": true
415
+ }
416
+ ],
417
+ "terminal": true
418
+ },
419
+ {
420
+ "id": "needs-user",
421
+ "name": "Escalate unresolved concerns",
422
+ "description": "The bounded repair loop ended without a defensible pass.",
423
+ "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.",
424
+ "suggestedRole": "project lead",
425
+ "consumes": [
426
+ {
427
+ "file": "{{workPath}}/review.md",
428
+ "artifact": true
429
+ }
430
+ ],
431
+ "terminal": true
432
+ }
433
+ ],
434
+ "diffpackCapable": true,
435
+ "capabilityFloor": "small",
436
+ "version": "1.0.0",
437
+ "releasedAt": "2026-08-24T00:00:00.000Z",
438
+ "minGezelVersion": "1.26236"
439
+ }