@bendyline/gilde 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/authoring/tactical/wave.json +18 -18
  2. package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/craftbook.json +418 -0
  3. package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/test.json +196 -0
  4. package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/craftbook.json +432 -0
  5. package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/test.json +192 -0
  6. package/data/craftbook-templates/al/alert-rules/versions/1.0.5/craftbook.json +384 -0
  7. package/data/craftbook-templates/al/alert-rules/versions/1.0.5/test.json +145 -0
  8. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/craftbook.json +736 -0
  9. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.6/test.json +221 -0
  10. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/craftbook.json +799 -0
  11. package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/test.json +221 -0
  12. package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/craftbook.json +119 -0
  13. package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/test.json +128 -0
  14. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/craftbook.json +607 -0
  15. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.5/test.json +252 -0
  16. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/craftbook.json +661 -0
  17. package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/test.json +252 -0
  18. package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/craftbook.json +416 -0
  19. package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/test.json +238 -0
  20. package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/craftbook.json +494 -0
  21. package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/test.json +167 -0
  22. package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/craftbook.json +419 -0
  23. package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/test.json +172 -0
  24. package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/craftbook.json +285 -0
  25. package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/test.json +102 -0
  26. package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/craftbook.json +431 -0
  27. package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/test.json +348 -0
  28. package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/craftbook.json +452 -0
  29. package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/test.json +184 -0
  30. package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/craftbook.json +625 -0
  31. package/data/craftbook-templates/de/dependency-upgrade/versions/1.0.6/test.json +235 -0
  32. package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/craftbook.json +312 -0
  33. package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/test.json +87 -0
  34. package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/craftbook.json +702 -0
  35. package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/test.json +191 -0
  36. package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/craftbook.json +720 -0
  37. package/data/craftbook-templates/fl/flaky-test-fix/versions/1.0.5/test.json +239 -0
  38. package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/craftbook.json +480 -0
  39. package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/test.json +176 -0
  40. package/data/craftbook-templates/in/investigate/versions/1.1.1/craftbook.json +85 -0
  41. package/data/craftbook-templates/in/investigate/versions/1.1.1/test.json +118 -0
  42. package/data/craftbook-templates/in/invoice-run/versions/1.1.9/craftbook.json +515 -0
  43. package/data/craftbook-templates/in/invoice-run/versions/1.1.9/test.json +140 -0
  44. package/data/craftbook-templates/index.json +1 -1
  45. package/data/craftbook-templates/ma/market-scan/versions/1.0.5/craftbook.json +480 -0
  46. package/data/craftbook-templates/ma/market-scan/versions/1.0.5/test.json +223 -0
  47. package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/craftbook.json +255 -0
  48. package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/test.json +140 -0
  49. package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/craftbook.json +270 -0
  50. package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/test.json +105 -0
  51. package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/craftbook.json +320 -0
  52. package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/test.json +94 -0
  53. package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/craftbook.json +699 -0
  54. package/data/craftbook-templates/pe/perf-optimization/versions/2.0.5/test.json +235 -0
  55. package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/craftbook.json +603 -0
  56. package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/test.json +266 -0
  57. package/data/craftbook-templates/pr/press-release/versions/1.0.6/craftbook.json +450 -0
  58. package/data/craftbook-templates/pr/press-release/versions/1.0.6/test.json +356 -0
  59. package/data/craftbook-templates/raw-index.json +1 -1
  60. package/data/craftbook-templates/re/refactor-module/versions/2.0.6/craftbook.json +699 -0
  61. package/data/craftbook-templates/re/refactor-module/versions/2.0.6/test.json +241 -0
  62. package/data/craftbook-templates/re/refactor-module/versions/2.0.7/craftbook.json +753 -0
  63. package/data/craftbook-templates/re/refactor-module/versions/2.0.7/test.json +241 -0
  64. package/data/craftbook-templates/re/release-notes/versions/1.0.6/craftbook.json +339 -0
  65. package/data/craftbook-templates/re/release-notes/versions/1.0.6/test.json +107 -0
  66. package/data/craftbook-templates/re/research-report/versions/1.0.6/craftbook.json +417 -0
  67. package/data/craftbook-templates/re/research-report/versions/1.0.6/test.json +183 -0
  68. package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/craftbook.json +319 -0
  69. package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/test.json +87 -0
  70. package/data/craftbook-templates/ru/runbook/versions/1.0.5/craftbook.json +491 -0
  71. package/data/craftbook-templates/ru/runbook/versions/1.0.5/test.json +118 -0
  72. package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/craftbook.json +626 -0
  73. package/data/craftbook-templates/sc/schema-migration/versions/2.0.5/test.json +225 -0
  74. package/data/craftbook-templates/sh/ship/versions/1.1.4/craftbook.json +353 -0
  75. package/data/craftbook-templates/sh/ship/versions/1.1.4/test.json +235 -0
  76. package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/craftbook.json +596 -0
  77. package/data/craftbook-templates/te/test-suite-backfill/versions/2.0.6/test.json +195 -0
  78. package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/craftbook.json +596 -0
  79. package/data/craftbook-templates/ty/type-safety-pass/versions/2.0.5/test.json +221 -0
  80. package/data/craftbook-templates/we/week-plan/versions/1.0.5/craftbook.json +313 -0
  81. package/data/craftbook-templates/we/week-plan/versions/1.0.5/test.json +175 -0
  82. package/data/gezel-templates/im/image-editor/manifest.json +21 -0
  83. package/data/gezel-templates/im/image-editor/versions/1.0.0/about.md +17 -0
  84. package/data/gezel-templates/im/image-editor/versions/1.0.0/manifest.json +14 -0
  85. package/data/gezel-templates/index.json +1 -1
  86. package/data/gezel-templates/raw-index.json +1 -1
  87. package/data/image-models/fl/flux-2-klein-4b-q4/manifest.json +3 -0
  88. package/data/image-models/index.json +1 -1
  89. package/data/image-models/qw/qwen-image-edit-2511-q4/manifest.json +44 -0
  90. package/data/image-models/qw/qwen-image-edit-2511-q4/versions/1.0.0/manifest.json +36 -0
  91. package/data/image-models/raw-index.json +1 -1
  92. package/package.json +1 -1
  93. package/schemas/image-model-identity.schema.json +16 -0
  94. package/schemas/image-model-version.schema.json +1 -0
@@ -0,0 +1,238 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "title": "Retention cohort readout from event table",
4
+ "objective": "Measure whether the cohort-analysis craftbook defines retention, emits a cohort matrix, and explains trend/incomplete cohorts.",
5
+ "tags": [
6
+ "data"
7
+ ],
8
+ "prompt": "In the `Cohort Analysis Eval` project, read `data/events.csv`, define weekly signup cohorts and week-retained activity, write `data/cohorts.json`, and write `tasks/eval/readout.md` with a retention table, W1/W2 trend, best/worst cohorts, incomplete cohort caveat, and one next action. Use unique users per signup_week as cohort size. Period WN means active exactly N weeks after signup; missing activity in an observed week counts as 0, but future unobserved periods are null. Treat 2026-W23 as the latest observed activity week; therefore 2026-W22 W2 would fall in 2026-W24 and must be marked null/incomplete, not estimated. `data/cohorts.json` must be valid JSON only, with no Markdown, comments, formulas, or ratio strings, using this shape: `{ \"cohorts\": [{ \"signup_week\": \"2026-W20\", \"total_users\": 3, \"retention\": { \"W0\": 1, \"W1\": 0.67, \"W2\": 0.33 } }] }`. Use numeric decimal rates rounded to two decimals, or null for incomplete periods.",
9
+ "setup": {
10
+ "projectName": "Cohort Analysis Eval",
11
+ "about": "Self-contained eval project for cohort-analysis. User activity events are in workspace/data/events.csv.",
12
+ "missionObjectives": "Compute and explain cohort retention with precise definitions, JSON matrix, trend, caveats, and next action.",
13
+ "files": [
14
+ {
15
+ "path": "data/events.csv",
16
+ "content": "user_id,signup_week,activity_week,event\nu1,2026-W20,2026-W20,core_use\nu1,2026-W20,2026-W21,core_use\nu1,2026-W20,2026-W22,core_use\nu2,2026-W20,2026-W20,core_use\nu2,2026-W20,2026-W21,core_use\nu3,2026-W20,2026-W20,core_use\nu4,2026-W21,2026-W21,core_use\nu4,2026-W21,2026-W22,core_use\nu5,2026-W21,2026-W21,core_use\nu5,2026-W21,2026-W22,core_use\nu6,2026-W21,2026-W21,core_use\nu7,2026-W22,2026-W22,core_use\nu7,2026-W22,2026-W23,core_use\nu8,2026-W22,2026-W22,core_use\nu9,2026-W22,2026-W22,core_use\nu9,2026-W22,2026-W23,core_use\n"
17
+ }
18
+ ],
19
+ "worker": {
20
+ "name": "Joris",
21
+ "role": "Data Analyst"
22
+ },
23
+ "craftbookParams": {
24
+ "workPath": "tasks/eval"
25
+ }
26
+ },
27
+ "mocks": [],
28
+ "success": {
29
+ "summary": "workspace/readout.md and data/cohorts.json define retention, show cohort rows/periods, report trend, flag incomplete cohorts, and recommend an action.",
30
+ "deliverables": [
31
+ {
32
+ "path": "tasks/eval/readout.md",
33
+ "kind": "markdown-report",
34
+ "minBytes": 1500,
35
+ "checks": [
36
+ {
37
+ "kind": "contains",
38
+ "file": "tasks/eval/readout.md",
39
+ "pattern": "(?:^|\\n)#{1,3}\\s+\\S",
40
+ "flags": "i",
41
+ "artifact": true
42
+ },
43
+ {
44
+ "kind": "contains",
45
+ "file": "tasks/eval/readout.md",
46
+ "pattern": "cohort|retention|W0|W1|W2",
47
+ "flags": "i",
48
+ "artifact": true
49
+ },
50
+ {
51
+ "kind": "contains",
52
+ "file": "tasks/eval/readout.md",
53
+ "pattern": "2026-W20|2026-W21|2026-W22",
54
+ "flags": "i",
55
+ "artifact": true
56
+ },
57
+ {
58
+ "kind": "contains",
59
+ "file": "tasks/eval/readout.md",
60
+ "pattern": "100%|67%|66%|33%|0%|trend",
61
+ "flags": "i",
62
+ "artifact": true
63
+ },
64
+ {
65
+ "kind": "contains",
66
+ "file": "tasks/eval/readout.md",
67
+ "pattern": "incomplete|recent cohort|caveat|next action",
68
+ "flags": "i",
69
+ "artifact": true
70
+ },
71
+ {
72
+ "kind": "contains",
73
+ "file": "tasks/eval/readout.md",
74
+ "pattern": "2026-W22[\\s\\S]{0,250}(incomplete|null|not yet observed|2026-W24)",
75
+ "flags": "i",
76
+ "label": "mark W22 W2 as incomplete instead of estimating it",
77
+ "artifact": true
78
+ },
79
+ {
80
+ "kind": "contains",
81
+ "file": "tasks/eval/readout.md",
82
+ "pattern": "2026-W21[^\\n]*(?<![\\d.])0(?:\\.0+)?%?(?![\\d.])",
83
+ "flags": "i",
84
+ "label": "readout must show 2026-W21 W2 as observed zero retention",
85
+ "artifact": true
86
+ },
87
+ {
88
+ "kind": "notContains",
89
+ "file": "tasks/eval/readout.md",
90
+ "pattern": "37\\.5%|\\b4\\s+users\\b|total users\\s*\\|\\s*4|2026-W21\\s*\\|\\s*\\d+\\s*\\|[^|\\n]*\\|[^|\\n]*\\|\\s*(?:N/A|null|incomplete|—|-)\\s*(?:\\||$)|W2 for 2026-W21[^\\n]*(?:N/A|null|incomplete)|2026-W21(?:'s)?\\s+W2[^\\n]{0,40}(?:N/A|null|incomplete|not (?:yet )?observed)",
91
+ "flags": "im",
92
+ "label": "do not invent a fourth 2026-W22 user, estimate W2, or mark observed W21 W2 as incomplete",
93
+ "artifact": true
94
+ }
95
+ ],
96
+ "artifact": true
97
+ },
98
+ {
99
+ "path": "data/cohorts.json",
100
+ "kind": "json",
101
+ "minBytes": 250,
102
+ "checks": [
103
+ {
104
+ "kind": "sniff",
105
+ "file": "data/cohorts.json",
106
+ "sniff": "json-valid"
107
+ },
108
+ {
109
+ "kind": "contains",
110
+ "file": "data/cohorts.json",
111
+ "pattern": "2026-W20|2026-W21|2026-W22|W0|W1",
112
+ "flags": "i"
113
+ },
114
+ {
115
+ "kind": "jsonPathEquals",
116
+ "file": "data/cohorts.json",
117
+ "path": "cohorts[0].signup_week",
118
+ "value": "2026-W20",
119
+ "label": "first cohort must be 2026-W20"
120
+ },
121
+ {
122
+ "kind": "jsonPathEquals",
123
+ "file": "data/cohorts.json",
124
+ "path": "cohorts[0].total_users",
125
+ "value": 3,
126
+ "label": "2026-W20 has exactly 3 unique signup users"
127
+ },
128
+ {
129
+ "kind": "jsonPathEquals",
130
+ "file": "data/cohorts.json",
131
+ "path": "cohorts[0].retention.W2",
132
+ "value": 0.33,
133
+ "label": "2026-W20 W2 retention is 1/3 rounded to 0.33"
134
+ },
135
+ {
136
+ "kind": "jsonPathEquals",
137
+ "file": "data/cohorts.json",
138
+ "path": "cohorts[0].retention.W1",
139
+ "value": 0.67,
140
+ "label": "2026-W20 W1 retention is 2/3 rounded to 0.67"
141
+ },
142
+ {
143
+ "kind": "jsonPathEquals",
144
+ "file": "data/cohorts.json",
145
+ "path": "cohorts[1].signup_week",
146
+ "value": "2026-W21",
147
+ "label": "second cohort must be 2026-W21"
148
+ },
149
+ {
150
+ "kind": "jsonPathEquals",
151
+ "file": "data/cohorts.json",
152
+ "path": "cohorts[1].total_users",
153
+ "value": 3,
154
+ "label": "2026-W21 has exactly 3 unique signup users"
155
+ },
156
+ {
157
+ "kind": "jsonPathEquals",
158
+ "file": "data/cohorts.json",
159
+ "path": "cohorts[1].retention.W1",
160
+ "value": 0.67,
161
+ "label": "2026-W21 W1 retention is 2/3 because u4 and u5 were active in W22"
162
+ },
163
+ {
164
+ "kind": "jsonPathEquals",
165
+ "file": "data/cohorts.json",
166
+ "path": "cohorts[1].retention.W2",
167
+ "value": 0,
168
+ "label": "2026-W21 W2 retention is 0/3 because no W21 users were active in W23"
169
+ },
170
+ {
171
+ "kind": "jsonPathEquals",
172
+ "file": "data/cohorts.json",
173
+ "path": "cohorts[2].signup_week",
174
+ "value": "2026-W22",
175
+ "label": "third cohort must be 2026-W22"
176
+ },
177
+ {
178
+ "kind": "jsonPathEquals",
179
+ "file": "data/cohorts.json",
180
+ "path": "cohorts[2].total_users",
181
+ "value": 3,
182
+ "label": "2026-W22 has exactly 3 unique signup users"
183
+ },
184
+ {
185
+ "kind": "jsonPathEquals",
186
+ "file": "data/cohorts.json",
187
+ "path": "cohorts[2].retention.W1",
188
+ "value": 0.67,
189
+ "label": "2026-W22 W1 retention is 2/3 rounded to 0.67"
190
+ },
191
+ {
192
+ "kind": "jsonPathEquals",
193
+ "file": "data/cohorts.json",
194
+ "path": "cohorts[2].retention.W2",
195
+ "value": null,
196
+ "label": "2026-W22 W2 retention is incomplete/null because W24 is outside the observed window"
197
+ },
198
+ {
199
+ "kind": "notContains",
200
+ "file": "data/cohorts.json",
201
+ "pattern": "37\\.5|0\\.375|\"total_users\"\\s*:\\s*4",
202
+ "flags": "i",
203
+ "label": "do not invent a fourth 2026-W22 user or estimate W2"
204
+ }
205
+ ]
206
+ }
207
+ ]
208
+ },
209
+ "rubric": {
210
+ "artifact": {
211
+ "path": "tasks/eval/readout.md",
212
+ "kind": "markdown"
213
+ },
214
+ "axes": [
215
+ {
216
+ "name": "accuracy",
217
+ "description": "Computed figures are correct against the seeded records."
218
+ },
219
+ {
220
+ "name": "grounding",
221
+ "description": "Every claim traces to the seeded data — nothing invented."
222
+ },
223
+ {
224
+ "name": "structure",
225
+ "description": "Tables and sections make the analysis checkable at a glance."
226
+ },
227
+ {
228
+ "name": "actionability",
229
+ "description": "Recommendations follow from the findings and are concretely doable."
230
+ }
231
+ ]
232
+ },
233
+ "qualityFocus": [
234
+ "definition before math",
235
+ "JSON retention matrix",
236
+ "trend readout"
237
+ ]
238
+ }