---
estimated_steps: 7
estimated_files: 7
skills_used: []
---

# T01: Preset JSON definitions + GET /engine/presets + preset wiring

1. Create engine/presets/ directory
2. Define 5 preset JSON files: sign.json, patch.json, stencil.json, detailed.json, custom.json
3. Each preset specifies: preprocessing params, vectorization mode + params, postprocessing params
4. Create engine/presets/loader.py to load presets from directory
5. Implement GET /engine/presets endpoint returning all presets
6. Wire preset selection into /engine/trace — preset params as defaults, params field overrides
7. Test: same image with different presets produces different output

## Inputs

- `GSD-INITIATE.md`
- `engine/api/routes.py`

## Expected Output

- `engine/presets/sign.json`
- `engine/presets/patch.json`
- `engine/presets/stencil.json`
- `engine/presets/detailed.json`
- `engine/presets/custom.json`
- `engine/presets/loader.py`

## Verification

cd engine && python -m pytest tests/ -v -k preset
