backend · git:20261119.92f0209 · 2026-11-19 · sha256 4bbc66e0e4f8539f

backend git:20261119.92f0209A

Immutable. This exact content never changes and is served at /api/v1/blob/4bbc66e0e4f8539f.

---
applyTo: "main.py,server.py,src/**/*.py,data_provider/**/*.py,api/**/*.py,bot/**/*.py,tests/**/*.py"
---

# Backend Instructions

- Preserve current pipeline boundaries and reuse existing services, repositories, schemas, and fallback logic instead of creating parallel paths.
- Assess Web/Desktop compatibility for configuration, CLI, schedule, API, auth and report changes. Update `.env.example` when environment configuration changes.
- Changes in `data_provider/` must preserve provider priority, normalization behavior, timeout/retry expectations, and graceful degradation.
- Prefer `./scripts/ci_gate.sh` when feasible; otherwise run `python -m py_compile` on changed files plus the closest deterministic tests.
- Do not let a single provider, notification channel, or optional integration failure break the main analysis flow unless the requirement explicitly demands fail-fast behavior.