feat: template-based code generation — reliability 5% → 79%
Template assembly guarantees structural correctness:
- Imports from template (LLM can't break them)
- export default router guaranteed
- _phoenix metadata injected by pipeline
- SQL double-quote repair (date("now") → date('now'))
The LLM generates business logic; the template ensures it compiles.
15/19 tests pass consistently across clean bootstraps.
Also: eval tests updated for v2 spec (/projects not /categories,
/tasks not /todos), arch/runtime split applied throughout pipeline.