Release digest
Fixed
- PROD-SEARCH-01 (Detached Worker Trigger Path) — Smart Search now triggers
Cloud Run scraping workers after job creation in cloud mode
(
backend/services/smart_search.py).POST /api/scraping/startnow does the same and returnsworkers_triggeredfor observability (backend/scraping_api.py). - PROD-UI-SEARCH-02 (Name vs Slug Scraping State Drift) — Frontend scraping
state now preserves both
companyNameandcompanySlug, and the overview loading/polling path matches either identifier (dashboard_app/src/components/Header.jsx,dashboard_app/src/components/Overview.jsx). - PROD-TRUST-03 (Sentiment Breakdown Stuck at 0%) — Trust Score overview now
counts positive sentiment case-insensitively and preserves
regionfiltering in the same path (backend/api_repositories/review_repository.py,backend/api_services/analytics_service.py). - PROD-AI-REPORT-04 (Silent/Incorrect Analysis Path) —
Run AI Analysisnow surfaces non-2xx failures client-side and refreshes immediately on success (dashboard_app/src/components/ReportViewer.jsx). Backend analysis resolves slug/input to canonicalreviews.company_namebefore generating report content (backend/routers/analytics.py). - PROD-AI-REPORT-05 (Report Generator Exact-Match Drift) — AI report
generation now resolves input to the canonical review company name and loads
stats/reviews/aspects via
ILIKEmatching instead of brittle exactcompany_name = %squeries (backend/ai_report_generator.py). This keepsRun AI Analysisaligned with the same company corpus used by the report page metrics. - PROD-LOCAL-AUTH-05 (Misleading Local Admin Auth UX) — Admin Panel now
surfaces backend auth detail messages instead of collapsing all failures into
a generic invalid-token message, and
.env.docker.examplenow documents required local write-auth keys (ADMIN_TOKEN,INTERNAL_API_KEY). - PROD-LOCAL-AUTH-06 (Local Startup Auth Drift) —
scripts/startup.shnow loads local env files, injects write-auth env vars explicitly into backend/scraping processes, and performs an admin-auth smoke check against/api/admin/db-healthbefore continuing.backend/main.pynow loads.env,backend/.env,.env.local, andbackend/.env.localdeterministically regardless of launch cwd and logs whether write-auth is configured (without printing secrets). - PROD-LOCAL-AUTH-07 (Shell-Unsafe
.envParsing) — local startup scripts no longersource.envfiles directly. They now parse env files safely, which prevents startup failure when values contain spaces or shell-sensitive text.
Internal
- Added
tests/test_prod_search_sentiment_ai_report.py. - Targeted regression: 15 passed.
- Targeted
pre-commit run --files ...passed. - Added
docs/reports/2026-03-07_PROD_REPAIR_SEARCH_SENTIMENT_AI_REPORT.md. - Synced internal/public API docs for smart search, scraping start, and AI report behavior.