@bendyline/gilde 0.3.1 → 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.
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/craftbook.json +418 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.5/test.json +196 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/craftbook.json +432 -0
- package/data/craftbook-templates/ab/ab-test-readout/versions/1.0.6/test.json +192 -0
- package/data/craftbook-templates/al/alert-rules/versions/1.0.5/craftbook.json +384 -0
- package/data/craftbook-templates/al/alert-rules/versions/1.0.5/test.json +145 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/craftbook.json +799 -0
- package/data/craftbook-templates/bu/bug-fix-tdd/versions/2.0.7/test.json +221 -0
- package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/craftbook.json +119 -0
- package/data/craftbook-templates/ch/changelog-writeup/versions/1.0.3/test.json +128 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/craftbook.json +661 -0
- package/data/craftbook-templates/co/codemod-sweep/versions/1.0.6/test.json +252 -0
- package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/craftbook.json +416 -0
- package/data/craftbook-templates/co/cohort-analysis/versions/1.0.5/test.json +238 -0
- package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/craftbook.json +494 -0
- package/data/craftbook-templates/co/content-accuracy-review/versions/1.1.2/test.json +167 -0
- package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/craftbook.json +419 -0
- package/data/craftbook-templates/co/corpus-synthesis/versions/1.0.5/test.json +172 -0
- package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/craftbook.json +285 -0
- package/data/craftbook-templates/cs/csv-transformer/versions/1.2.6/test.json +102 -0
- package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/craftbook.json +431 -0
- package/data/craftbook-templates/da/data-quality-audit/versions/1.0.5/test.json +348 -0
- package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/craftbook.json +452 -0
- package/data/craftbook-templates/de/deep-security-review/versions/1.1.5/test.json +184 -0
- package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/craftbook.json +312 -0
- package/data/craftbook-templates/di/digest-from-feeds/versions/1.0.6/test.json +87 -0
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/craftbook.json +702 -0
- package/data/craftbook-templates/en/engineering-retrospective/versions/2.0.18/test.json +191 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/craftbook.json +480 -0
- package/data/craftbook-templates/ht/html-arcade-game/versions/1.2.5/test.json +176 -0
- package/data/craftbook-templates/in/investigate/versions/1.1.1/craftbook.json +85 -0
- package/data/craftbook-templates/in/investigate/versions/1.1.1/test.json +118 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.9/craftbook.json +515 -0
- package/data/craftbook-templates/in/invoice-run/versions/1.1.9/test.json +140 -0
- package/data/craftbook-templates/index.json +1 -1
- package/data/craftbook-templates/ma/market-scan/versions/1.0.5/craftbook.json +480 -0
- package/data/craftbook-templates/ma/market-scan/versions/1.0.5/test.json +223 -0
- package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/craftbook.json +255 -0
- package/data/craftbook-templates/me/meeting-prep-brief/versions/1.0.5/test.json +140 -0
- package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/craftbook.json +270 -0
- package/data/craftbook-templates/mo/morning-brief/versions/1.0.6/test.json +105 -0
- package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/craftbook.json +320 -0
- package/data/craftbook-templates/pe/perf-audit/versions/1.1.3/test.json +94 -0
- package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/craftbook.json +603 -0
- package/data/craftbook-templates/po/powerpoint-deck/versions/1.7.19/test.json +266 -0
- package/data/craftbook-templates/pr/press-release/versions/1.0.6/craftbook.json +450 -0
- package/data/craftbook-templates/pr/press-release/versions/1.0.6/test.json +356 -0
- package/data/craftbook-templates/raw-index.json +1 -1
- package/data/craftbook-templates/re/refactor-module/versions/2.0.7/craftbook.json +753 -0
- package/data/craftbook-templates/re/refactor-module/versions/2.0.7/test.json +241 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.6/craftbook.json +339 -0
- package/data/craftbook-templates/re/release-notes/versions/1.0.6/test.json +107 -0
- package/data/craftbook-templates/re/research-report/versions/1.0.6/craftbook.json +417 -0
- package/data/craftbook-templates/re/research-report/versions/1.0.6/test.json +183 -0
- package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/craftbook.json +319 -0
- package/data/craftbook-templates/ro/rollback-plan/versions/1.0.6/test.json +87 -0
- package/data/craftbook-templates/ru/runbook/versions/1.0.5/craftbook.json +491 -0
- package/data/craftbook-templates/ru/runbook/versions/1.0.5/test.json +118 -0
- package/data/craftbook-templates/we/week-plan/versions/1.0.5/craftbook.json +313 -0
- package/data/craftbook-templates/we/week-plan/versions/1.0.5/test.json +175 -0
- package/data/gezel-templates/im/image-editor/manifest.json +21 -0
- package/data/gezel-templates/im/image-editor/versions/1.0.0/about.md +17 -0
- package/data/gezel-templates/im/image-editor/versions/1.0.0/manifest.json +14 -0
- package/data/gezel-templates/index.json +1 -1
- package/data/gezel-templates/raw-index.json +1 -1
- package/data/image-models/fl/flux-2-klein-4b-q4/manifest.json +3 -0
- package/data/image-models/index.json +1 -1
- package/data/image-models/qw/qwen-image-edit-2511-q4/manifest.json +44 -0
- package/data/image-models/qw/qwen-image-edit-2511-q4/versions/1.0.0/manifest.json +36 -0
- package/data/image-models/raw-index.json +1 -1
- package/package.json +1 -1
- package/schemas/image-model-identity.schema.json +16 -0
- package/schemas/image-model-version.schema.json +1 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "perf-audit",
|
|
3
|
+
"name": "Performance Audit",
|
|
4
|
+
"description": "Audit an application or page for performance problems with measurements, then produce a report of the highest-impact optimizations. First scopes the workloads and locks a performance budget and checklist (load time and Core Web Vitals, bundle/asset weight, render and main-thread cost, network waterfall and request count, server/query latency, memory and re-render churn), then MEASURES each against a baseline using real profiling rather than guessing, then writes a report that ranks bottlenecks by impact-vs-effort with a specific fix and the expected gain for each. Use this for a performance audit, speed optimization, finding bottlenecks, a Lighthouse-style review, reducing load time, or profiling slowness — it grounds every recommendation in a measured number and an estimated payoff, not 'it feels slow'.\n\nA gallery craftbook generated from an archetype spec. It runs\n`phase → (per-phase gate) → … → evaluate → (loop) → finish`. Each build\nphase that produces a checkable artifact is followed by a **runtime\ngate-checkpoint** — the runtime verifies the artifact and routes with no\nmodel turn, looping back to redo the phase on a miss. The final `evaluate`\nstep holds a static deliverable gate plus a reviewer QA pass. What it adds\nover the generic `build-loop`: a specialist role per phase, a\ndomain-correct ordering, and a concrete per-phase quality bar.\n\nDeliverables marked \"artifact\" land in the project's artifacts drawer (`write_artifact` / `read_artifact`), not the shipped workspace — review output is not product source.\n\nPhases:\n\n1. Scope the perf budget (reviewer) — lock workloads, a budget, and a metrics checklist → gated on artifact `{{workPath}}/scope.md` (markdown-notes)\n2. Measure the baseline (developer) — profile each workload, locate the real bottlenecks → gated on artifact `{{workPath}}/measure.md` (markdown-notes)\n3. Write the perf report (reviewer) — rank optimizations by impact vs effort → gated on artifact `{{workPath}}/perf-report.md` (markdown-report)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
|
|
5
|
+
"entryStepId": "scope",
|
|
6
|
+
"triggers": [
|
|
7
|
+
"performance audit",
|
|
8
|
+
"why is this slow",
|
|
9
|
+
"find the bottleneck",
|
|
10
|
+
"optimize load time",
|
|
11
|
+
"speed this up",
|
|
12
|
+
"profile the app"
|
|
13
|
+
],
|
|
14
|
+
"runModes": {
|
|
15
|
+
"nightShift": "supported"
|
|
16
|
+
},
|
|
17
|
+
"paramSchema": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"workPath": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"title": "Working folder",
|
|
23
|
+
"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.",
|
|
24
|
+
"default": "{{task.dir}}"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"steps": [
|
|
29
|
+
{
|
|
30
|
+
"id": "scope",
|
|
31
|
+
"name": "Scope the perf budget",
|
|
32
|
+
"description": "lock workloads, a budget, and a metrics checklist",
|
|
33
|
+
"prompt": "Step 1: Identify the workloads to audit (the slow page/route/endpoint/operation and its typical usage). Step 2: Write a performance acceptance-criteria checklist with concrete budgets, drawn from the relevant metrics: page load and Core Web Vitals (LCP < 2.5s, CLS < 0.1, INP < 200ms), total JS/CSS/image transfer weight, time-to-interactive and main-thread blocking, request count and waterfall serialization, server response and DB query latency (and N+1 detection), and memory growth / excessive re-renders for SPAs. Step 3: For each metric, set the target/budget for THIS app and note the current pain. Step 4: Decide the measurement method and environment (Lighthouse/devtools/profiler/timing logs if available; otherwise read the code and reason about asymptotic and I/O costs). Write the workloads + budgeted checklist + method to `write_task_note` AND `{{workPath}}/scope.md`. No optimizing yet — define 'fast enough' first.\n\nThe deliverable `{{workPath}}/scope.md` lands in the project's artifacts drawer — write it with `write_artifact` and read it back with `read_artifact`; the shipped workspace stays untouched.",
|
|
34
|
+
"suggestedRole": "reviewer",
|
|
35
|
+
"toolPolicy": {
|
|
36
|
+
"disallowBuiltinToolsets": [
|
|
37
|
+
"ai-apps",
|
|
38
|
+
"archives",
|
|
39
|
+
"audio",
|
|
40
|
+
"browser-automation",
|
|
41
|
+
"code-execution",
|
|
42
|
+
"craftbooks",
|
|
43
|
+
"data-tables",
|
|
44
|
+
"entity-intel",
|
|
45
|
+
"git",
|
|
46
|
+
"image-intel",
|
|
47
|
+
"images",
|
|
48
|
+
"role-delegation",
|
|
49
|
+
"role-delegation-escalation",
|
|
50
|
+
"security-intel",
|
|
51
|
+
"team-management",
|
|
52
|
+
"videos",
|
|
53
|
+
"web",
|
|
54
|
+
"workspace-fs-write"
|
|
55
|
+
],
|
|
56
|
+
"outputMedium": "artifact",
|
|
57
|
+
"additionalOutputMedia": [
|
|
58
|
+
"task-note"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"advanceWhen": {
|
|
62
|
+
"file": "{{workPath}}/scope.md",
|
|
63
|
+
"minBytes": 1,
|
|
64
|
+
"sniff": "nonempty",
|
|
65
|
+
"artifact": true
|
|
66
|
+
},
|
|
67
|
+
"gate": {
|
|
68
|
+
"at": "completion",
|
|
69
|
+
"checks": [
|
|
70
|
+
{
|
|
71
|
+
"kind": "minBytes",
|
|
72
|
+
"file": "{{workPath}}/scope.md",
|
|
73
|
+
"bytes": 120,
|
|
74
|
+
"artifact": true
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"kind": "sniff",
|
|
78
|
+
"file": "{{workPath}}/scope.md",
|
|
79
|
+
"sniff": "nonempty",
|
|
80
|
+
"artifact": true
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"onReject": "scope",
|
|
84
|
+
"maxAttempts": 3
|
|
85
|
+
},
|
|
86
|
+
"next": "measure"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "measure",
|
|
90
|
+
"name": "Measure the baseline",
|
|
91
|
+
"description": "profile each workload, locate the real bottlenecks",
|
|
92
|
+
"prompt": "Step 1: Establish a baseline by MEASURING each metric in the checklist (run Lighthouse/devtools/a profiler, time the endpoint, inspect the network waterfall and bundle, log query times). If no live env, statically analyze: bundle composition, algorithmic complexity of hot paths, query patterns, and render triggers. Step 2: For each metric over budget, drill into WHY — which asset is heaviest, which function dominates the flame chart, which query is slow or repeated, which component re-renders needlessly. Step 3: Record the actual numbers (e.g. 'LCP 4.1s; main.js is 480KB, 60% is moment.js+lodash'; 'GET /feed: 1.2s, runs 1+N queries, N≈40'). Step 4: For each bottleneck, identify the fix and ESTIMATE the expected gain and the effort. Step 5: Separate confirmed bottlenecks from suspicions you could not measure. Good looks like: every claim has a number behind it. Stage measurements to `write_task_note`. Do not write the report yet.\n\nThe deliverable `{{workPath}}/measure.md` lands in the project's artifacts drawer — write it with `write_artifact` and read it back with `read_artifact`; the shipped workspace stays untouched.",
|
|
93
|
+
"suggestedRole": "developer",
|
|
94
|
+
"toolPolicy": {
|
|
95
|
+
"disallowBuiltinToolsets": [
|
|
96
|
+
"ai-apps",
|
|
97
|
+
"archives",
|
|
98
|
+
"audio",
|
|
99
|
+
"browser-automation",
|
|
100
|
+
"code-execution",
|
|
101
|
+
"craftbooks",
|
|
102
|
+
"data-tables",
|
|
103
|
+
"entity-intel",
|
|
104
|
+
"git",
|
|
105
|
+
"image-intel",
|
|
106
|
+
"images",
|
|
107
|
+
"role-delegation",
|
|
108
|
+
"role-delegation-escalation",
|
|
109
|
+
"security-intel",
|
|
110
|
+
"team-management",
|
|
111
|
+
"videos",
|
|
112
|
+
"web",
|
|
113
|
+
"workspace-fs-write"
|
|
114
|
+
],
|
|
115
|
+
"outputMedium": "artifact",
|
|
116
|
+
"additionalOutputMedia": [
|
|
117
|
+
"task-note"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"advanceWhen": {
|
|
121
|
+
"file": "{{workPath}}/measure.md",
|
|
122
|
+
"minBytes": 1,
|
|
123
|
+
"sniff": "nonempty",
|
|
124
|
+
"artifact": true
|
|
125
|
+
},
|
|
126
|
+
"gate": {
|
|
127
|
+
"at": "completion",
|
|
128
|
+
"checks": [
|
|
129
|
+
{
|
|
130
|
+
"kind": "minBytes",
|
|
131
|
+
"file": "{{workPath}}/measure.md",
|
|
132
|
+
"bytes": 120,
|
|
133
|
+
"artifact": true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"kind": "sniff",
|
|
137
|
+
"file": "{{workPath}}/measure.md",
|
|
138
|
+
"sniff": "nonempty",
|
|
139
|
+
"artifact": true
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"onReject": "measure",
|
|
143
|
+
"maxAttempts": 3
|
|
144
|
+
},
|
|
145
|
+
"next": "report"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "report",
|
|
149
|
+
"name": "Write the perf report",
|
|
150
|
+
"description": "rank optimizations by impact vs effort",
|
|
151
|
+
"prompt": "Step 1: Open `{{workPath}}/perf-report.md` and write a '## Summary' table of each metric: budget vs measured vs PASS/FAIL. Step 2: Add a '## Recommendations' section ranked by impact-vs-effort; each entry: the bottleneck (with its measured number), the specific fix (e.g. 'code-split the editor route and lazy-load it', 'replace the 1+N with a single JOIN/batch', 'serve images as WebP at 2x and add width/height'), the ESTIMATED gain, and the effort. Step 3: Add a '## Quick wins' callout for the high-impact/low-effort items to do first. Step 4: Add a '## Needs measurement' section for suspicions not yet confirmed. Every recommendation must cite a measured number and an expected payoff — no generic 'optimize images'. On a loop-back, fix only the named gaps. `write_task_note` the report path and the count of failing metrics.\n\nThe deliverable `{{workPath}}/perf-report.md` lands in the project's artifacts drawer — write it with `write_artifact` and read it back with `read_artifact`; the shipped workspace stays untouched.",
|
|
152
|
+
"suggestedRole": "reviewer",
|
|
153
|
+
"toolPolicy": {
|
|
154
|
+
"disallowBuiltinToolsets": [
|
|
155
|
+
"ai-apps",
|
|
156
|
+
"archives",
|
|
157
|
+
"audio",
|
|
158
|
+
"browser-automation",
|
|
159
|
+
"code-execution",
|
|
160
|
+
"craftbooks",
|
|
161
|
+
"data-tables",
|
|
162
|
+
"entity-intel",
|
|
163
|
+
"git",
|
|
164
|
+
"image-intel",
|
|
165
|
+
"images",
|
|
166
|
+
"role-delegation",
|
|
167
|
+
"role-delegation-escalation",
|
|
168
|
+
"security-intel",
|
|
169
|
+
"team-management",
|
|
170
|
+
"videos",
|
|
171
|
+
"web",
|
|
172
|
+
"workspace-fs-write"
|
|
173
|
+
],
|
|
174
|
+
"outputMedium": "artifact",
|
|
175
|
+
"additionalOutputMedia": [
|
|
176
|
+
"task-note"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"advanceWhen": {
|
|
180
|
+
"file": "{{workPath}}/perf-report.md",
|
|
181
|
+
"minBytes": 1,
|
|
182
|
+
"sniff": "nonempty",
|
|
183
|
+
"requireChange": true,
|
|
184
|
+
"artifact": true
|
|
185
|
+
},
|
|
186
|
+
"gate": {
|
|
187
|
+
"at": "completion",
|
|
188
|
+
"checks": [
|
|
189
|
+
{
|
|
190
|
+
"kind": "minBytes",
|
|
191
|
+
"file": "{{workPath}}/perf-report.md",
|
|
192
|
+
"bytes": 1500,
|
|
193
|
+
"artifact": true
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"kind": "contains",
|
|
197
|
+
"file": "{{workPath}}/perf-report.md",
|
|
198
|
+
"pattern": "(?:^|\\n)#{1,3}\\s+\\S",
|
|
199
|
+
"flags": "i",
|
|
200
|
+
"label": "at least one markdown heading",
|
|
201
|
+
"artifact": true
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"kind": "citationsResolve",
|
|
205
|
+
"file": "{{workPath}}/perf-report.md",
|
|
206
|
+
"minCitations": 2,
|
|
207
|
+
"artifact": true
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"onReject": "report",
|
|
211
|
+
"maxAttempts": 4
|
|
212
|
+
},
|
|
213
|
+
"next": "evaluate"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id": "evaluate",
|
|
217
|
+
"name": "Evaluate",
|
|
218
|
+
"description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
|
|
219
|
+
"prompt": "Open `{{workPath}}/perf-report.md` with `read_artifact` first, then review it against the original scope: every claim cites a real path, the severities and priorities are defensible, and nothing important in scope was skipped. Open the underlying files for at least the top findings; do not grade from the report's own summary. If a finding cannot be verified, say so explicitly.\n\nWrite your review to the artifact `{{workPath}}/review.md` with one `write_artifact` call: what you checked, what held, what did not (as a findings table with columns `| Severity | File | Line | Problem | Fix |` when anything needs fixing), ending with exactly `Verdict: PASS` or `Verdict: REVISE`. The gate enforces the verdict: a well-formed REVISE is routed back to the `report` step automatically with your findings. On PASS, `advance_task_step` to `finish`.",
|
|
220
|
+
"suggestedRole": "reviewer",
|
|
221
|
+
"toolPolicy": {
|
|
222
|
+
"disallowBuiltinToolsets": [
|
|
223
|
+
"ai-apps",
|
|
224
|
+
"archives",
|
|
225
|
+
"audio",
|
|
226
|
+
"browser-automation",
|
|
227
|
+
"code-execution",
|
|
228
|
+
"craftbooks",
|
|
229
|
+
"data-tables",
|
|
230
|
+
"entity-intel",
|
|
231
|
+
"git",
|
|
232
|
+
"image-intel",
|
|
233
|
+
"images",
|
|
234
|
+
"role-delegation",
|
|
235
|
+
"role-delegation-escalation",
|
|
236
|
+
"security-intel",
|
|
237
|
+
"team-management",
|
|
238
|
+
"videos",
|
|
239
|
+
"web",
|
|
240
|
+
"workspace-fs-write"
|
|
241
|
+
],
|
|
242
|
+
"outputMedium": "artifact"
|
|
243
|
+
},
|
|
244
|
+
"consumes": [
|
|
245
|
+
{
|
|
246
|
+
"file": "{{workPath}}/perf-report.md",
|
|
247
|
+
"artifact": true
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"gate": {
|
|
251
|
+
"at": "completion",
|
|
252
|
+
"checks": [
|
|
253
|
+
{
|
|
254
|
+
"kind": "minBytes",
|
|
255
|
+
"file": "{{workPath}}/review.md",
|
|
256
|
+
"bytes": 300,
|
|
257
|
+
"artifact": true
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "contains",
|
|
261
|
+
"file": "{{workPath}}/review.md",
|
|
262
|
+
"pattern": "Verdict:\\s*(?:PASS|REVISE)",
|
|
263
|
+
"flags": "i",
|
|
264
|
+
"label": "explicit PASS or REVISE verdict",
|
|
265
|
+
"artifact": true
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"scripts": [
|
|
269
|
+
{
|
|
270
|
+
"name": "checkFixReview",
|
|
271
|
+
"scope": "standard",
|
|
272
|
+
"inputs": {
|
|
273
|
+
"taskRef": "{{task.ref}}",
|
|
274
|
+
"reviewPath": "{{workPath}}/review.md",
|
|
275
|
+
"fixStepId": "report"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"onReject": "evaluate",
|
|
280
|
+
"maxAttempts": 4
|
|
281
|
+
},
|
|
282
|
+
"next": "finish"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"id": "finish",
|
|
286
|
+
"name": "Finish",
|
|
287
|
+
"description": "All acceptance criteria met. Stamp a short summary and report DONE.",
|
|
288
|
+
"prompt": "Every acceptance criterion passed. Write a one-paragraph DONE summary to task notes via `write_task_note`: what was built, the deliverable path(s), and a one-line confirmation that each criterion is met. Then report DONE.",
|
|
289
|
+
"suggestedRole": "developer",
|
|
290
|
+
"toolPolicy": {
|
|
291
|
+
"disallowBuiltinToolsets": [
|
|
292
|
+
"ai-apps",
|
|
293
|
+
"archives",
|
|
294
|
+
"artifacts",
|
|
295
|
+
"audio",
|
|
296
|
+
"browser-automation",
|
|
297
|
+
"code-execution",
|
|
298
|
+
"craftbooks",
|
|
299
|
+
"data-tables",
|
|
300
|
+
"entity-intel",
|
|
301
|
+
"git",
|
|
302
|
+
"image-intel",
|
|
303
|
+
"images",
|
|
304
|
+
"role-delegation",
|
|
305
|
+
"role-delegation-escalation",
|
|
306
|
+
"security-intel",
|
|
307
|
+
"team-management",
|
|
308
|
+
"videos",
|
|
309
|
+
"web",
|
|
310
|
+
"workspace-fs-write"
|
|
311
|
+
],
|
|
312
|
+
"outputMedium": "task-note"
|
|
313
|
+
},
|
|
314
|
+
"terminal": true
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"version": "1.1.3",
|
|
318
|
+
"releasedAt": "2026-10-21T00:00:00Z",
|
|
319
|
+
"minGezelVersion": "1.26236"
|
|
320
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"mode": "workflow",
|
|
4
|
+
"title": "Performance Audit workflow processability",
|
|
5
|
+
"objective": "Prove that a medium local model can parse and execute the Performance Audit craftbook, satisfy its declared runtime gates, and reach a terminal step using only local fixtures.",
|
|
6
|
+
"prompt": "Use the `perf-audit` (Performance Audit) craftbook for this self-contained local evaluation. Open `source/craftbook-eval-brief.md` first, then follow the craftbook's actual steps and gates through its terminal step. Complete this request: Audit an application or page for performance problems with measurements, then produce a report of the highest-impact optimizations. First scopes the workloads and locks a performance budget and checklist (load time and Core Web Vitals, bundle/asset weight, render and main-thread cost, network waterfall and request count, server/query latency, memory and re-render churn), then MEASURES each against a baseline using real profiling rather than guessing, then writes a report that ranks bottlenecks by impact-vs-effort with a specific fix and the expected gain for each. Use this for a performance audit, speed optimization, finding bottlenecks, a Lighthouse-style review, reducing load time, or profiling slowness — it grounds every recommendation in a measured number and an estimated payoff, not 'it feels slow'.\n\nA gallery craftbook generated from an archetype spec. It runs\n`phase → (per-phase gate) → … → evaluate → (loop) → finish`. Each build\nphase that produces a checkable artifact is followed by a **runtime\ngate-checkpoint** — the runtime verifies the artifact and routes with no\nmodel turn, looping back to redo the phase on a miss. The final `evaluate`\nstep holds a static deliverable gate plus a reviewer QA pass. What it adds\nover the generic `build-loop`: a specialist role per phase, a\ndomain-correct ordering, and a concrete per-phase quality bar.\n\nDeliverables marked \"artifact\" land in the project's artifacts drawer (`write_artifact` / `read_artifact`), not the shipped workspace — review output is not product source.\n\nPhases:\n\n1. Scope the perf budget (reviewer) — lock workloads, a budget, and a metrics checklist → gated on artifact `{{workPath}}/scope.md` (markdown-notes)\n2. Measure the baseline (developer) — profile each workload, locate the real bottlenecks → gated on artifact `{{workPath}}/measure.md` (markdown-notes)\n3. Write the perf report (reviewer) — rank optimizations by impact vs effort → gated on artifact `{{workPath}}/perf-report.md` (markdown-report)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n Produce `measure.md` in this task's artifact working folder, `perf-report.md` in this task's artifact working folder, `review.md` in this task's artifact working folder, `scope.md` in this task's artifact working folder. Use only seeded project files and installed local simulators. Do not call a real external service, fetch live data, or claim an external side effect occurred; an explicit dry-run record is the correct result when a dependency is unavailable.",
|
|
7
|
+
"setup": {
|
|
8
|
+
"projectName": "Performance Audit Workflow Eval",
|
|
9
|
+
"about": "A hermetic workflow evaluation for the Performance Audit craftbook. No live dependency or external network is authorized.",
|
|
10
|
+
"missionObjectives": "Run the Performance Audit craftbook end to end, use the local evaluation brief and fixtures as truth, produce its declared outputs, and reach a terminal step without fabricating external effects.",
|
|
11
|
+
"managedWorkspaceWritePolicy": "allow",
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "source/craftbook-eval-brief.md",
|
|
15
|
+
"content": "# Performance Audit — local evaluation brief\n\nThis is a hermetic processability evaluation of the `perf-audit` craftbook.\nDo not contact real services, use real credentials, or fetch live data. Treat\nthe project fixtures and installed local simulators as authoritative. If a\ndependency is intentionally unavailable, document an honest dry run instead\nof claiming a real side effect.\n\n## Request\n\nAudit an application or page for performance problems with measurements, then produce a report of the highest-impact optimizations. First scopes the workloads and locks a performance budget and checklist (load time and Core Web Vitals, bundle/asset weight, render and main-thread cost, network waterfall and request count, server/query latency, memory and re-render churn), then MEASURES each against a baseline using real profiling rather than guessing, then writes a report that ranks bottlenecks by impact-vs-effort with a specific fix and the expected gain for each. Use this for a performance audit, speed optimization, finding bottlenecks, a Lighthouse-style review, reducing load time, or profiling slowness — it grounds every recommendation in a measured number and an estimated payoff, not 'it feels slow'.\n\nA gallery craftbook generated from an archetype spec. It runs\n`phase → (per-phase gate) → … → evaluate → (loop) → finish`. Each build\nphase that produces a checkable artifact is followed by a **runtime\ngate-checkpoint** — the runtime verifies the artifact and routes with no\nmodel turn, looping back to redo the phase on a miss. The final `evaluate`\nstep holds a static deliverable gate plus a reviewer QA pass. What it adds\nover the generic `build-loop`: a specialist role per phase, a\ndomain-correct ordering, and a concrete per-phase quality bar.\n\nDeliverables marked \"artifact\" land in the project's artifacts drawer (`write_artifact` / `read_artifact`), not the shipped workspace — review output is not product source.\n\nPhases:\n\n1. Scope the perf budget (reviewer) — lock workloads, a budget, and a metrics checklist → gated on artifact `{{workPath}}/scope.md` (markdown-notes)\n2. Measure the baseline (developer) — profile each workload, locate the real bottlenecks → gated on artifact `{{workPath}}/measure.md` (markdown-notes)\n3. Write the perf report (reviewer) — rank optimizations by impact vs effort → gated on artifact `{{workPath}}/perf-report.md` (markdown-report)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n\n\n## Required workflow\n\n1. Scope the perf budget\n2. Measure the baseline\n3. Write the perf report\n4. Evaluate\n5. Finish (terminal)\n\n## Declared outputs\n\n- `measure.md` in this task's artifact working folder\n- `perf-report.md` in this task's artifact working folder\n- `review.md` in this task's artifact working folder\n- `scope.md` in this task's artifact working folder\n"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"path": "source/brief.md",
|
|
19
|
+
"content": "# Performance Audit Eval Brief\n\nClient: Boreal Desk, a home-office accessories company.\nAudience: operations leads who need an artifact they can use this week.\n\nFixed source facts for grounding:\n- The returns desk pilot covered 18 SKUs.\n- Median first response improved from 18 hours to 6 hours.\n- Preventable refund leakage fell from 14.2% to 8.9%.\n- The top unresolved complaint is status silence after photo submission.\n- Required next actions are automated status emails, barcode-exception training, and a weekly Finance exception export.\n\nUse these facts when the task asks for prose, analysis, copy, UI content, or test data. Do not use live web services, real credentials, or current outside data.\n\nCraftbook under test: perf-audit - Performance Audit.\n"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"worker": {
|
|
23
|
+
"name": "Craftbook Runner",
|
|
24
|
+
"role": "Workflow Operator",
|
|
25
|
+
"about": "Execute the assigned craftbook exactly. Read local fixtures, satisfy each runtime gate, record honest dry-run evidence for unavailable dependencies, and continue until a terminal step is active or the task is complete."
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"success": {
|
|
29
|
+
"summary": "The attributed perf-audit task satisfied its own gates, produced its declared outputs, and reached a terminal step without using external services.",
|
|
30
|
+
"deliverables": [
|
|
31
|
+
{
|
|
32
|
+
"path": "{{task.dir}}/measure.md",
|
|
33
|
+
"kind": "markdown-report",
|
|
34
|
+
"artifact": true,
|
|
35
|
+
"minBytes": 120
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "{{task.dir}}/perf-report.md",
|
|
39
|
+
"kind": "markdown-report",
|
|
40
|
+
"artifact": true,
|
|
41
|
+
"minBytes": 1500
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"path": "{{task.dir}}/review.md",
|
|
45
|
+
"kind": "markdown-report",
|
|
46
|
+
"artifact": true,
|
|
47
|
+
"minBytes": 300
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"path": "{{task.dir}}/scope.md",
|
|
51
|
+
"kind": "markdown-report",
|
|
52
|
+
"artifact": true,
|
|
53
|
+
"minBytes": 120
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"taskGraph": {
|
|
57
|
+
"requireCraftbookTask": true,
|
|
58
|
+
"requireTerminalStep": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"rubric": {
|
|
62
|
+
"artifact": {
|
|
63
|
+
"path": "{{task.dir}}/measure.md",
|
|
64
|
+
"kind": "markdown"
|
|
65
|
+
},
|
|
66
|
+
"axes": [
|
|
67
|
+
{
|
|
68
|
+
"name": "workflow fidelity",
|
|
69
|
+
"description": "The result reflects the named craftbook sequence and its declared acceptance gates rather than a freehand substitute."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "usefulness",
|
|
73
|
+
"description": "The deliverable is coherent, actionable, and suitable for the craftbook purpose stated in the local brief."
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"contextNote": "Advisory only. Deterministic pass/fail comes from the craftbook runtime gates, deliverable existence, attribution, and terminal progress."
|
|
77
|
+
},
|
|
78
|
+
"qualityFocus": [
|
|
79
|
+
"real perf-audit craftbook task attribution",
|
|
80
|
+
"declared runtime gate satisfaction",
|
|
81
|
+
"terminal workflow progress",
|
|
82
|
+
"offline fixture and simulator discipline"
|
|
83
|
+
],
|
|
84
|
+
"extensions": {
|
|
85
|
+
"legacySimulators": [
|
|
86
|
+
{
|
|
87
|
+
"id": "perf-audit-fake-service-fixture",
|
|
88
|
+
"kind": "data-source",
|
|
89
|
+
"status": "implemented",
|
|
90
|
+
"description": "Seeded local fake service contract replacing live CLIs, HTTP APIs, credentials, and side effects."
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
}
|