Files
zarinpal-analytics-backend/tasks/ai-growth-analyst.md

11 lines
1.1 KiB
Markdown

# AI Growth Analyst Implementation Tasks
- [x] G1: Add approved spec, ADR, OpenAPI resources, event catalog, report schema, and reversible migration.
- [x] G2: Add pure tested daily aggregation, event effect, similarity, 90-day forecast, residual ranges, backtest confidence, risk, and peer-suppression logic.
- [x] G3: Add PostgreSQL report repository, fingerprint/idempotency, Redis hot cache/locks/budgets, and Tehran-day limits.
- [x] G4: Add bounded worker state machine and sanitized `GrowthAnalyticsTools` boundary.
- [x] G5: Add AvalAI Responses client, strict tool/final schemas, output validation, retry/timeout, usage metadata, and deterministic Persian fallbacks.
- [x] G6: Add authenticated create/latest/get/SSE handlers with terminal ownership, CSRF, idempotency, replay, and `429` refresh semantics.
- [x] G7: Wire configuration/composition roots, feature flag, local environment templates, retention cleanup, safe logs, and operational documentation.
- [ ] G8: Run unit/integration/contract/security/race/vet/build verification and real local PostgreSQL/Redis/API smoke without sending an AvalAI request unless a user-provided key is configured.