TASK-003B: JSON Recipe Catalog Infrastructure
AI Execution Profile
- Model class:
Balanced - Reasoning effort:
Medium
Scope
- implement the folder-backed JSON recipe catalog in infrastructure
- keep the recipe folder path configurable for tests and local development
- parse and validate recipe files
- skip invalid or unreadable files without crashing the app
- produce enough diagnostics or logs for file and validation failures
Copy/Paste Prompt
text
Implement only TASK-003B: JSON Recipe Catalog Infrastructure.
Read first:
- docs/specs/SLICE-003-json-recipe-file-management.md
- docs/adrs/ADR-003-use-json-recipe-catalog-before-in-app-editor.md
- docs/tasks/slice-003/TASK-003B-json-recipe-catalog-infrastructure.md
Goal:
- Build the infrastructure implementation for a configurable folder-backed JSON recipe catalog.
Scope:
- Implement file discovery in a configured recipe folder.
- Parse JSON recipe files into existing runtime recipe contracts.
- Validate required fields and scan point structure.
- Skip invalid files safely and report failures through logs or diagnostics-friendly outputs.
Do not:
- Wire startup services yet
- Update the UI yet
- Add in-app editing
Important:
- Invalid files must not crash the app
- Keep the behavior deterministic so tests can assert catalog ordering and outcomes