Files
g2s-aggregator/spec/tasks/001_create_app_skeleton_and_config.md
T
Раис Юсупалиев ff319170a2 Init
2026-03-07 13:20:53 +03:00

2.1 KiB
Raw Blame History

id, title, status, created
id title status created
001 Create app skeleton and component configuration DONE 2026-03-07

Context

Сейчас в репозитории есть только specification-файлы, при этом spec/overview.md задаёт конкретную структуру приложения и требования к конфигурации компонентов.

Goal

Создать начальный app/ skeleton и модели конфигурации из project overview, включая отдельные секции конфигурации для Controller, Service, Business Logic, Repository, Adapter, Observability и Alerts.

Constraints

  • Соблюдать layered architecture из AGENTS.md.
  • Scope задачи: только scaffolding и configuration, без business workflows.
  • Не реализовывать provider HTTP calls, cache behavior или aggregation logic в рамках этой задачи.
  • Не изменять файлы в spec/.

Acceptance criteria

  • Структура app/ создана согласно spec/overview.md.
  • app/config.py содержит отдельные component configuration sections. Config must be a .yaml-file added to .gitignore.
  • FastAPI entrypoint существует и успешно импортирует configuration.
  • В файлах Controller, Service, Repository и Adapter отсутствуют business rules.

Definition of Done

  • Созданы обязательные директории app/ и базовые файлы.
  • Реализованы раздельные секции конфигурации по компонентам.
  • Проходит app import smoke test.
  • Изменения остаются строго в scope задачи.

Tests

  • Добавить/import smoke test для FastAPI app startup.
  • Добавить unit tests, проверяющие загрузку configuration sections из environment variables.

Commands

  • poetry run pytest tests/smoke/test_app_import.py -q
  • poetry run pytest tests/config/test_config_sections.py -q