@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,285 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "csv-transformer",
|
|
3
|
+
"name": "CSV / Tabular Transformer",
|
|
4
|
+
"description": "Reshape and convert tabular data from one schema to another: rename and reorder columns, split or merge fields, derive new columns, pivot/unpivot, change format (CSV<->JSON<->TSV), and filter rows. Locks the input and target schema and the field-by-field mapping FIRST (so the transform is a contract, not guesswork), then builds the transform and emits the output, then verifies row counts and a sample mapping. Use this for reshaping a CSV, converting data formats, remapping columns, flattening JSON to a table, or reformatting an export for another tool.\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 schema mapping (planner) — lock the input schema, target schema, and field-by-field mapping → gated on artifact `{{workPath}}/schema-scope.md` (markdown-notes)\n2. Build the transform (developer) — apply the mapping and emit the target file → gated on `data/output.csv` (data-file)\n\nThe gates never advance with an unmet criterion, and loop back to the\nowning phase to fix named gaps.\n",
|
|
5
|
+
"entryStepId": "schema-scope",
|
|
6
|
+
"triggers": [
|
|
7
|
+
"reshape a csv",
|
|
8
|
+
"convert csv to json",
|
|
9
|
+
"remap columns",
|
|
10
|
+
"transform tabular data",
|
|
11
|
+
"reformat a data export"
|
|
12
|
+
],
|
|
13
|
+
"paramSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"workPath": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"title": "Working folder",
|
|
19
|
+
"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.",
|
|
20
|
+
"default": "{{task.dir}}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"contract": {
|
|
25
|
+
"goal": "The source data reshaped into the target schema and saved as a clean table that parses, with every row accounted for.",
|
|
26
|
+
"deliverables": [
|
|
27
|
+
{
|
|
28
|
+
"id": "output",
|
|
29
|
+
"path": "data/output.csv",
|
|
30
|
+
"kind": "data-file",
|
|
31
|
+
"description": "The transformed data in the target schema, with a header row"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"criteria": [
|
|
35
|
+
{
|
|
36
|
+
"id": "parses",
|
|
37
|
+
"kind": "acceptance",
|
|
38
|
+
"text": "The output is a table with a header row and data rows, and every row has the header's columns",
|
|
39
|
+
"checks": [
|
|
40
|
+
{
|
|
41
|
+
"kind": "minBytes",
|
|
42
|
+
"file": "data/output.csv",
|
|
43
|
+
"bytes": 60
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"kind": "sniff",
|
|
47
|
+
"file": "data/output.csv",
|
|
48
|
+
"sniff": "data-table"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"kind": "csvShape",
|
|
52
|
+
"file": "data/output.csv",
|
|
53
|
+
"minRows": 1,
|
|
54
|
+
"consistentColumns": true
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "faithful",
|
|
60
|
+
"kind": "quality",
|
|
61
|
+
"enforce": "advisory",
|
|
62
|
+
"text": "It has exactly the target columns in order, the row count matches the input after the stated filters, and sampled rows map correctly",
|
|
63
|
+
"judge": {
|
|
64
|
+
"rubric": "Does the output have exactly the target columns in the specified order, a row count that reconciles with the input after the stated filters and dedup, clean types, and sampled rows that map correctly from source to target?"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"steps": [
|
|
70
|
+
{
|
|
71
|
+
"id": "schema-scope",
|
|
72
|
+
"name": "Scope the schema mapping",
|
|
73
|
+
"description": "lock the input schema, target schema, and field-by-field mapping",
|
|
74
|
+
"prompt": "Define the transform contract before writing any code. Step 1: document the INPUT schema (columns, types, format/delimiter) from a sample of the source. Step 2: document the TARGET schema (columns, types, order, output format). Step 3: write the field-by-field mapping table: each target column = which source column(s) and the transform (rename, cast, split on delimiter, concatenate, derive via formula, constant). Step 4: define row-level rules — filters to apply, dedup, how to handle missing source values, and pivot/unpivot if the shape changes. Step 5: write an acceptance-criteria checklist ('output has exactly the target columns in order', 'output parses in the target format', 'row count matches the filter rule', 'a sampled row maps correctly end-to-end', 'no data type errors'). Call write_task_note and write the mapping table + rules + checklist to {{workPath}}/schema-scope.md.\n\nThe deliverable `{{workPath}}/schema-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.",
|
|
75
|
+
"suggestedRole": "planner",
|
|
76
|
+
"advanceWhen": {
|
|
77
|
+
"file": "{{workPath}}/schema-scope.md",
|
|
78
|
+
"minBytes": 1,
|
|
79
|
+
"sniff": "nonempty",
|
|
80
|
+
"artifact": true
|
|
81
|
+
},
|
|
82
|
+
"gate": {
|
|
83
|
+
"at": "completion",
|
|
84
|
+
"checks": [
|
|
85
|
+
{
|
|
86
|
+
"kind": "minBytes",
|
|
87
|
+
"file": "{{workPath}}/schema-scope.md",
|
|
88
|
+
"bytes": 120,
|
|
89
|
+
"artifact": true
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"kind": "sniff",
|
|
93
|
+
"file": "{{workPath}}/schema-scope.md",
|
|
94
|
+
"sniff": "nonempty",
|
|
95
|
+
"artifact": true
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"onReject": "schema-scope",
|
|
99
|
+
"maxAttempts": 3
|
|
100
|
+
},
|
|
101
|
+
"next": "build",
|
|
102
|
+
"toolPolicy": {
|
|
103
|
+
"disallowBuiltinToolsets": [
|
|
104
|
+
"ai-apps",
|
|
105
|
+
"archives",
|
|
106
|
+
"audio",
|
|
107
|
+
"browser-automation",
|
|
108
|
+
"craftbooks",
|
|
109
|
+
"data-tables",
|
|
110
|
+
"entity-intel",
|
|
111
|
+
"git",
|
|
112
|
+
"image-intel",
|
|
113
|
+
"images",
|
|
114
|
+
"role-delegation",
|
|
115
|
+
"role-delegation-escalation",
|
|
116
|
+
"security-intel",
|
|
117
|
+
"team-management",
|
|
118
|
+
"videos",
|
|
119
|
+
"web",
|
|
120
|
+
"workspace-fs-write"
|
|
121
|
+
],
|
|
122
|
+
"outputMedium": "artifact",
|
|
123
|
+
"additionalOutputMedia": [
|
|
124
|
+
"task-note"
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "build",
|
|
130
|
+
"name": "Build the transform",
|
|
131
|
+
"description": "apply the mapping and emit the target file",
|
|
132
|
+
"prompt": "Implement the transform exactly to the mapping table. Step 1: read the input with the correct delimiter/encoding. Step 2: apply each target column's rule in order (rename, cast, split/join, derive, constant); reshape (pivot/unpivot) if specified. Step 3: apply row filters and dedup; track rows-in vs rows-out and the reason for any drop. Step 4: write the output to data/output.csv (or the requested format/extension) with the target columns in the exact specified order and a header row. Step 5: ensure the output parses (valid CSV/JSON) and types are clean (no '1.0' where an int is expected). On a loop-back, fix only the named gaps. Call write_task_note with the path and rows-in/rows-out.",
|
|
133
|
+
"suggestedRole": "developer",
|
|
134
|
+
"advanceWhen": {
|
|
135
|
+
"file": "data/output.csv",
|
|
136
|
+
"minBytes": 1,
|
|
137
|
+
"sniff": "nonempty"
|
|
138
|
+
},
|
|
139
|
+
"gate": {
|
|
140
|
+
"at": "completion",
|
|
141
|
+
"checks": [
|
|
142
|
+
{
|
|
143
|
+
"kind": "minBytes",
|
|
144
|
+
"file": "data/output.csv",
|
|
145
|
+
"bytes": 120
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"kind": "sniff",
|
|
149
|
+
"file": "data/output.csv",
|
|
150
|
+
"sniff": "data-table"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"onReject": "build",
|
|
154
|
+
"maxAttempts": 4
|
|
155
|
+
},
|
|
156
|
+
"next": "evaluate",
|
|
157
|
+
"toolPolicy": {
|
|
158
|
+
"disallowBuiltinToolsets": [
|
|
159
|
+
"ai-apps",
|
|
160
|
+
"archives",
|
|
161
|
+
"artifacts",
|
|
162
|
+
"audio",
|
|
163
|
+
"browser-automation",
|
|
164
|
+
"craftbooks",
|
|
165
|
+
"data-tables",
|
|
166
|
+
"entity-intel",
|
|
167
|
+
"git",
|
|
168
|
+
"image-intel",
|
|
169
|
+
"images",
|
|
170
|
+
"role-delegation",
|
|
171
|
+
"role-delegation-escalation",
|
|
172
|
+
"security-intel",
|
|
173
|
+
"team-management",
|
|
174
|
+
"videos",
|
|
175
|
+
"web"
|
|
176
|
+
],
|
|
177
|
+
"outputMedium": "workspace",
|
|
178
|
+
"additionalOutputMedia": [
|
|
179
|
+
"task-note"
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "evaluate",
|
|
185
|
+
"name": "Evaluate",
|
|
186
|
+
"description": "Grade the deliverable against every acceptance criterion. All pass → finish; any fail → loop back and fix the gap.",
|
|
187
|
+
"prompt": "Open data/output.csv and verify it matches the schema-scope contract. Step 1: confirm it parses in the target format and has EXACTLY the target columns in the specified order. Step 2: re-count the rows and reconcile against input — the count must equal input rows after the documented filter/dedup, with the delta explained. Step 3: pick 3 source rows and trace them through the mapping by hand to confirm each target field is correct end-to-end. Step 4: scan for type errors (e.g. '1.0' where an int is expected) and stray nulls the mapping didn't intend. Write PASS/FAIL per criterion; any FAIL loops back to build.\n\nThen record your verdict — this is the whole point of the loop:\n\n1. If any criterion fails, first write the specific gaps to the task notes with `write_task_note`: which file, which part, and what is missing. The \"Build the transform\" step reads them when it fixes the work.\n2. When you have graded every criterion, write `{{workPath}}/verdict.md` with `write_artifact`. One line per criterion and no preamble: the criterion, its one-line reason, then PASS or FAIL as the last word on the line. Writing verdict.md completes this step.\n\nThe runtime routes on the verdict: every line PASS moves the task to \"Finish\"; any FAIL sends it back to \"Build the transform\" to fix those gaps, and a review that keeps failing pauses the task for the user. Mark a criterion PASS only when it is met. The build phase's completion gate already blocked a grossly-incomplete deliverable; your job is the judgment an automated check cannot make (does it actually work, read well, look right).",
|
|
188
|
+
"suggestedRole": "reviewer",
|
|
189
|
+
"consumes": [
|
|
190
|
+
{
|
|
191
|
+
"file": "data/output.csv"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"advanceWhen": {
|
|
195
|
+
"file": "{{workPath}}/verdict.md",
|
|
196
|
+
"minBytes": 40,
|
|
197
|
+
"sniff": "nonempty",
|
|
198
|
+
"artifact": true
|
|
199
|
+
},
|
|
200
|
+
"gate": {
|
|
201
|
+
"at": "completion",
|
|
202
|
+
"checks": [
|
|
203
|
+
{
|
|
204
|
+
"kind": "contains",
|
|
205
|
+
"file": "{{workPath}}/verdict.md",
|
|
206
|
+
"pattern": "(?<!/\\s*)\\bPASS\\b(?!\\s*/)",
|
|
207
|
+
"label": "the verdict marks its criteria PASS",
|
|
208
|
+
"artifact": true
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"kind": "notContains",
|
|
212
|
+
"file": "{{workPath}}/verdict.md",
|
|
213
|
+
"pattern": "(?<!/\\s*)\\bFAIL\\b(?!\\s*/)",
|
|
214
|
+
"label": "no criterion is marked FAIL",
|
|
215
|
+
"artifact": true
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"onReject": "build",
|
|
219
|
+
"maxAttempts": 3
|
|
220
|
+
},
|
|
221
|
+
"next": "finish",
|
|
222
|
+
"toolPolicy": {
|
|
223
|
+
"disallowBuiltinToolsets": [
|
|
224
|
+
"ai-apps",
|
|
225
|
+
"archives",
|
|
226
|
+
"audio",
|
|
227
|
+
"browser-automation",
|
|
228
|
+
"code-execution",
|
|
229
|
+
"craftbooks",
|
|
230
|
+
"data-tables",
|
|
231
|
+
"entity-intel",
|
|
232
|
+
"git",
|
|
233
|
+
"image-intel",
|
|
234
|
+
"images",
|
|
235
|
+
"role-delegation",
|
|
236
|
+
"role-delegation-escalation",
|
|
237
|
+
"security-intel",
|
|
238
|
+
"team-management",
|
|
239
|
+
"videos",
|
|
240
|
+
"web",
|
|
241
|
+
"workspace-fs-write"
|
|
242
|
+
],
|
|
243
|
+
"outputMedium": "artifact",
|
|
244
|
+
"additionalOutputMedia": [
|
|
245
|
+
"task-note"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": "finish",
|
|
251
|
+
"name": "Finish",
|
|
252
|
+
"description": "All acceptance criteria met. Stamp a short summary and report DONE.",
|
|
253
|
+
"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.",
|
|
254
|
+
"suggestedRole": "developer",
|
|
255
|
+
"terminal": true,
|
|
256
|
+
"toolPolicy": {
|
|
257
|
+
"disallowBuiltinToolsets": [
|
|
258
|
+
"ai-apps",
|
|
259
|
+
"archives",
|
|
260
|
+
"artifacts",
|
|
261
|
+
"audio",
|
|
262
|
+
"browser-automation",
|
|
263
|
+
"code-execution",
|
|
264
|
+
"craftbooks",
|
|
265
|
+
"data-tables",
|
|
266
|
+
"entity-intel",
|
|
267
|
+
"git",
|
|
268
|
+
"image-intel",
|
|
269
|
+
"images",
|
|
270
|
+
"role-delegation",
|
|
271
|
+
"role-delegation-escalation",
|
|
272
|
+
"security-intel",
|
|
273
|
+
"team-management",
|
|
274
|
+
"videos",
|
|
275
|
+
"web",
|
|
276
|
+
"workspace-fs-write"
|
|
277
|
+
],
|
|
278
|
+
"outputMedium": "task-note"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"version": "1.2.6",
|
|
283
|
+
"releasedAt": "2026-10-23T00:00:00Z",
|
|
284
|
+
"minGezelVersion": "1.26295"
|
|
285
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "Fixture-backed CSV normalization",
|
|
4
|
+
"objective": "Measure whether the csv-transformer craftbook locks a schema mapping and produces a transformed CSV from seeded source data.",
|
|
5
|
+
"tags": [
|
|
6
|
+
"html-page"
|
|
7
|
+
],
|
|
8
|
+
"prompt": "In the `CSV Transformer Eval` project, read `data/source.csv` and write `data/output.csv`. Normalize to columns customer_id,full_name,total_cents,status. Trim whitespace, title-case names, convert dollar totals to integer cents, lowercase status, and de-duplicate by email keeping the latest row by updated_at. Keep the output sorted by customer_id.",
|
|
9
|
+
"setup": {
|
|
10
|
+
"projectName": "CSV Transformer Eval",
|
|
11
|
+
"about": "Self-contained eval project for csv-transformer. Source data is in workspace/data/source.csv and the deliverable is workspace/data/output.csv.",
|
|
12
|
+
"missionObjectives": "Transform the seeded messy CSV into a clean, sorted output CSV with normalized fields and duplicate handling.",
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "data/source.csv",
|
|
16
|
+
"content": "customer_id,email,first,last,total_usd,status,updated_at\nC-001,ada@example.com, ada ,lane,12.99, ACTIVE ,2026-02-02\nC-002,bo@example.com,bo,ng,7.50,pending,2026-02-03\nC-001,ada@example.com,Ada,Lane,14.25,active,2026-02-05\nC-003,noor@example.com,noor,shah,25.00,Paused,2026-02-04\n"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"worker": {
|
|
20
|
+
"name": "Nora",
|
|
21
|
+
"role": "Data Analyst"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"mocks": [],
|
|
25
|
+
"success": {
|
|
26
|
+
"summary": "data/output.csv has the expected normalized schema, deduped rows, integer cents, and lowercased statuses.",
|
|
27
|
+
"deliverables": [
|
|
28
|
+
{
|
|
29
|
+
"path": "data/output.csv",
|
|
30
|
+
"kind": "data-file",
|
|
31
|
+
"minBytes": 110,
|
|
32
|
+
"checks": [
|
|
33
|
+
{
|
|
34
|
+
"kind": "csvShape",
|
|
35
|
+
"file": "data/output.csv",
|
|
36
|
+
"exactColumns": [
|
|
37
|
+
"customer_id",
|
|
38
|
+
"full_name",
|
|
39
|
+
"total_cents",
|
|
40
|
+
"status"
|
|
41
|
+
],
|
|
42
|
+
"minRows": 3,
|
|
43
|
+
"consistentColumns": true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"kind": "contains",
|
|
47
|
+
"file": "data/output.csv",
|
|
48
|
+
"pattern": "C-001,\"?Ada Lane\"?,1425,active",
|
|
49
|
+
"flags": "i"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"kind": "contains",
|
|
53
|
+
"file": "data/output.csv",
|
|
54
|
+
"pattern": "C-002,\"?Bo Ng\"?,750,pending",
|
|
55
|
+
"flags": "i"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"kind": "contains",
|
|
59
|
+
"file": "data/output.csv",
|
|
60
|
+
"pattern": "C-003,\"?Noor Shah\"?,2500,paused",
|
|
61
|
+
"flags": "i"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"kind": "notContains",
|
|
65
|
+
"file": "data/output.csv",
|
|
66
|
+
"pattern": "12\\.99|14\\.25|25\\.00",
|
|
67
|
+
"flags": "i"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"rubric": {
|
|
74
|
+
"artifact": {
|
|
75
|
+
"path": "data/output.csv",
|
|
76
|
+
"kind": "text"
|
|
77
|
+
},
|
|
78
|
+
"axes": [
|
|
79
|
+
{
|
|
80
|
+
"name": "accuracy",
|
|
81
|
+
"description": "Computed figures are correct against the seeded records."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "grounding",
|
|
85
|
+
"description": "Every claim traces to the seeded data — nothing invented."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "structure",
|
|
89
|
+
"description": "Tables and sections make the analysis checkable at a glance."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "actionability",
|
|
93
|
+
"description": "Recommendations follow from the findings and are concretely doable."
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"qualityFocus": [
|
|
98
|
+
"schema mapping",
|
|
99
|
+
"dedupe rule",
|
|
100
|
+
"numeric normalization"
|
|
101
|
+
]
|
|
102
|
+
}
|