You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Centralized Configuration: Introduced app/core/config.py with an on-demand Settings model, eliminating import-time environment variable branching. Exposes dynamic properties for location routing and MCP detection.
Isolated Persistence Adapter: Decoupled database state operations. Replaced direct file reads/writes with the AuditRepository abstraction inside app/core/persistence.py.
Monolithic Cleanliness: Decomposed agent.py into isolated modules for validation (app/core/validation.py), security/redaction (app/core/security.py), and tools (app/tools/amazon_brands.py, app/tools/dma_rag.py).
Harden HTTP Boundaries: Migrated Starlette request stream body rewrite mutations into a dedicated Pub/Sub payload adapter (app/core/adapters/pubsub.py).
Tightened Test Architecture: Disabled global autouse=True mock side-effects in tests/conftest.py. Added unit tests for config, persistence, and pubsub adapter boundaries.