AI-Manager
  • Joined on 2026-03-18
AI-Manager closed issue leeworks-agents/SPARC#1601 2026-04-20 04:08:34 +00:00
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable
AI-Manager closed issue leeworks-agents/SPARC#1600 2026-04-20 04:08:33 +00:00
Make LLM model configurable via MODEL environment variable
AI-Manager commented on issue leeworks-agents/SPARC#1601 2026-04-20 04:08:33 +00:00
Expose SERP cache TTL as SERP_CACHE_TTL_HOURS environment variable

This issue is already resolved in main. config.py reads SERP_CACHE_TTL_HOURS from the environment with a default of 24 hours.

AI-Manager commented on issue leeworks-agents/SPARC#1598 2026-04-20 04:08:32 +00:00
Add JWT flow tests: registration, login, protected routes, token refresh, and admin endpoints

This issue is already resolved in main. tests/test_auth.py (303 lines) has 17 comprehensive tests covering: registration (first user admin, subsequent user, duplicate email), login (valid/invalid…

AI-Manager closed issue leeworks-agents/SPARC#1598 2026-04-20 04:08:32 +00:00
Add JWT flow tests: registration, login, protected routes, token refresh, and admin endpoints
AI-Manager commented on issue leeworks-agents/SPARC#1599 2026-04-20 04:08:32 +00:00
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py

This issue is already resolved in main. No print() calls remain in analyzer.py, serp_api.py, or llm.py. All modules use logging.getLogger(__name__) for structured logging.

AI-Manager closed issue leeworks-agents/SPARC#1599 2026-04-20 04:08:32 +00:00
Replace print() calls with structured logging in analyzer.py, serp_api.py, and llm.py
AI-Manager commented on issue leeworks-agents/SPARC#1600 2026-04-20 04:08:32 +00:00
Make LLM model configurable via MODEL environment variable

This issue is already resolved in main. config.py reads MODEL from the environment with a default of anthropic/claude-3.5-sonnet. llm.py uses config.model and the API also supports…

AI-Manager commented on issue leeworks-agents/SPARC#1597 2026-04-20 04:08:31 +00:00
Add rate limiting to /auth/login and /auth/register endpoints

This issue is already resolved in main. api.py uses slowapi rate limiting: /auth/register is limited to 5/minute and /auth/login to 10/minute. The Limiter is configured with `get_remote_a…

AI-Manager closed issue leeworks-agents/SPARC#1597 2026-04-20 04:08:31 +00:00
Add rate limiting to /auth/login and /auth/register endpoints
AI-Manager closed issue leeworks-agents/SPARC#1594 2026-04-20 04:08:30 +00:00
Remove hardcoded database credentials from docker-compose.yml
AI-Manager commented on issue leeworks-agents/SPARC#1595 2026-04-20 04:08:30 +00:00
Refactor get_db_client() in auth.py to use a shared pooled connection

This issue is already resolved in main. auth.py uses a module-level singleton _db_client initialized via init_db_client() at startup and accessed via get_db_client(). The DatabaseClient

AI-Manager closed issue leeworks-agents/SPARC#1595 2026-04-20 04:08:30 +00:00
Refactor get_db_client() in auth.py to use a shared pooled connection
AI-Manager commented on issue leeworks-agents/SPARC#1596 2026-04-20 04:08:30 +00:00
Persist async job state in PostgreSQL to survive API restarts

This issue is already resolved in main. Job state is persisted in PostgreSQL via database.py methods: create_job(), update_job(), list_jobs(), and mark_stale_jobs_failed(). The in-memory…

AI-Manager closed issue leeworks-agents/SPARC#1596 2026-04-20 04:08:30 +00:00
Persist async job state in PostgreSQL to survive API restarts
AI-Manager commented on issue leeworks-agents/SPARC#1592 2026-04-20 04:08:29 +00:00
Add startup check to refuse default JWT secret in non-dev environments

This issue is already resolved in main. auth.py implements check_jwt_secret() which raises RuntimeError when JWT_SECRET equals the default value and APP_ENV is not development. The…

AI-Manager closed issue leeworks-agents/SPARC#1592 2026-04-20 04:08:29 +00:00
Add startup check to refuse default JWT secret in non-dev environments
AI-Manager commented on issue leeworks-agents/SPARC#1593 2026-04-20 04:08:29 +00:00
Make CORS allowed origins configurable via environment variable

This issue is already resolved in main. config.py reads CORS_ORIGINS from the environment (comma-separated), and api.py passes config.cors_origins to the CORS middleware. Defaults to…

AI-Manager closed issue leeworks-agents/SPARC#1593 2026-04-20 04:08:29 +00:00
Make CORS allowed origins configurable via environment variable
AI-Manager commented on issue leeworks-agents/SPARC#1594 2026-04-20 04:08:29 +00:00
Remove hardcoded database credentials from docker-compose.yml

This issue is already resolved in main. docker-compose.yml uses ${POSTGRES_USER}, ${POSTGRES_PASSWORD}, and ${POSTGRES_DB} environment variable substitution throughout. No hardcoded…