Repository navigation
Conversation
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords: 1
Please check the settings in the CodeRabbit UI or the
|
| Layer / File(s) | Summary |
|---|---|
Repair operations and client opening autobot-backend/utils/chromadb_store_repairs.py, autobot_shared/env_registry_knowledge.py, docs/developer/ENV_VARS.md, autobot-backend/utils/*chromadb*test.py, autobot-backend/initialization/lifespan.py |
Adds four guarded store repairs, thread and process locking, retry handling, and a configurable lock timeout. Local synchronous and asynchronous client openings now use the shared preparation path. Tests cover repairs, locks, retries, concurrency, and pickle security. |
API route updates
| Layer / File(s) | Summary |
|---|---|
Redirect helper and endpoint routes autobot_shared/api_routing/deprecated_redirects.py, autobot-backend/api/knowledge_grounding.py, autobot-backend/api/knowledge_ownership.py, autobot-backend/api/system*.py, autobot-backend/api/schemas_*.py |
Adds a helper for deprecated 308 redirects. Knowledge and cache routes use revised paths, while schema route descriptions are updated. Cache coordinator endpoints move into a separate router mounted under the system router. |
Route regression checks autobot-backend/api/doubled_prefix_routes_18722_test.py, autobot-backend/tests/api/test_knowledge_grounding.py, repo_tests/no_doubled_api_prefix_18722_test.py, repo_tests/no_duplicate_route_registration_16908_test.py, repo_tests/no_secret_passthrough_routes_17899.py |
Adds checks for redirects, query preservation, route registration, OpenAPI paths, handler responses, and anonymous access. Repository checks detect doubled API prefixes and update route registration records. |
User mode defaults
| Layer / File(s) | Summary |
|---|---|
Deployment defaults and checks .env.example, docker-compose.yml, docker/backend/entrypoint.sh, repo_tests/docker_admin_seed_18729_test.py, .github/filters/python-paths.yml, repo_tests/changes_job_equivalence_15360_test.py, repo_tests/reach_scope_claim_17844_test.py |
Documents PostgreSQL-backed user management as required, changes Docker defaults to single_company, and runs backend migrations for all modes. Repository checks scan deployment files for retired single_user defaults and validate mode defaults across Compose services. |
Frontend integrations and controls
| Layer / File(s) | Summary |
|---|---|
API requests and response mapping autobot-frontend/src/composables/transcriber/*, autobot-frontend/src/composables/useCodeIntelligence.ts, autobot-frontend/src/composables/useBrowserAutomation.ts, autobot-frontend/src/models/repositories/*, autobot-frontend/src/models/repositories/SystemRepository.ts, autobot-frontend/src/services/api.ts, autobot-frontend/src/composables/usePatternAnalysis.ts, autobot-frontend/src/__tests__/transcriber/* |
Changes AI requests to authenticated POSTs, adds single-file code scanning and codebase-wide quality-score retrieval, updates browser-session and knowledge-document requests, changes the system metrics route, and changes the storage-clear request to POST. |
View behaviour and shared data types autobot-frontend/src/views/BrowserAutomationView.vue, autobot-frontend/src/views/DevSpeedupView.vue, autobot-frontend/src/views/devSpeedupCodeAction.ts, autobot-frontend/src/views/llc/WorkItemDetail.vue, autobot-frontend/src/views/llc/workItemDetailTypes.ts, autobot-frontend/src/views/transcriber/ProjectDetailView.vue, autobot-frontend/src/components/analytics/panels/*, autobot-frontend/src/components/knowledge/* |
Adds disabled-by-default flags for selected controls and progress displays. Extracts shared interfaces for code-intelligence, knowledge-research, and work-item data. The transcriber view also updates theme-variable usage. |
SLM log forwarding
| Layer / File(s) | Summary |
|---|---|
Destination models and API operations autobot-slm-frontend/src/composables/autobotAdminModels.ts, autobot-slm-frontend/src/composables/useAutobotApi.ts |
Adds shared log-forwarding types. Destination listing expects a bare array, destination operations use names, and auto-start has a separate read operation. |
Form, settings view, translations, and tests autobot-slm-frontend/src/views/settings/admin/LogForwardingSettings.vue, autobot-slm-frontend/src/views/settings/admin/logForwardingForm.ts, autobot-slm-frontend/src/views/settings/admin/__tests__/*, autobot-slm-frontend/src/locales/*.json |
Adds shared form helpers and updates destination creation, editing, testing, and deletion. The form supports URL-based configuration and secret retention or clearing. Locales add log-forwarding messages and tests cover name-based operations and credential handling. |
Orchestration service count
| Layer / File(s) | Summary |
|---|---|
Count helper and translations autobot-slm-frontend/src/views/OrchestrationView.vue, autobot-slm-frontend/src/locales/*.json |
Adds a helper to count fleet services by node and displays the count with translated singular and plural text. |
Repository guard tooling
| Layer / File(s) | Summary |
|---|---|
Vue literal scanner and checks repo_tests/_ui_literal_scan.py, repo_tests/_ui_literal_rederive.py, repo_tests/_hardcoded_ui_literal_detect.py, repo_tests/_hardcoded_ui_literal_baseline.py, repo_tests/hardcoded_ui_literal_ratchet_12732_test.py, repo_tests/slm_frontend_bare_ui_literals_test.py, repo_tests/regex_concept_fork_guard_18093_test.py, repo_tests/_glob_declared_uncovered.py, repo_tests/reach_scope_claim_17844_test.py |
Adds Vue literal scanning, an independent regex-based derivation, per-file literal baselines, and tests for scanning boundaries and detector differences. |
Reach policy and pinned baselines repo_tests/_reach_policy*.py, repo_tests/_raw_palette_baseline.py, repo_tests/frontend_file_size_ratchet*.py, scripts/frontend_file_size_known_large.py, repo_tests/audio_extension_allowlist_test.py, repo_tests/slm_frontend_i18n_parity_test.py, repo_tests/no_duplicate_route_registration_16908_test.py |
Moves the allowance-verdict mapping into a separate module and updates repository guard thresholds and recorded baselines. |
Merge Risk: 
Moderate · previous review 3d9d5
-
The ChromaDB repair work can stall request handling for up to the lock timeout while startup indexing runs. The seq_id repair may leave legacy values stored as BLOBs. Clearing pattern storage can also clear the default scope instead of the selected source. Address these before merging. The remaining feedback concerns minor UI guards and translations.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 inconclusive Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 52.49% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 181 functions across 50 files. (35 skipped: 24 unsupported, 11 over the file limit.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Fix failing CI checks
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
|
||
| def _column_types(conn: sqlite3.Connection, table: str) -> dict: | ||
| """Column name -> declared type, in table order (``table`` is always a literal here).""" | ||
| return {row[1]: row[2] for row in conn.execute(f"PRAGMA table_info({table})")} # nosec B608 |
| logger.error("embeddings has columns %s that the rebuilt table lacks; refusing to drop them", extra) | ||
| return False | ||
| names = ", ".join(f'"{c}"' for c in new_cols if c in old_cols) | ||
| conn.execute(f"INSERT INTO embeddings_fix ({names}) SELECT {names} FROM embeddings") # nosec B608 |
There was a problem hiding this comment.
Actionable comments posted: 15
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository: mrveiss/AutoBot-AI/.coderabbit.yaml
- Review profile: ASSERTIVE
- Plan: Advanced
- Run ID:
ce905367-cb40-49bd-9cb3-bdc2898722fe
⛔ Files ignored due to path filters: 4
autobot-frontend/src/types/generated/api.tsis excluded by!**/generated/**repo_tests/python_file_size_ratchet_baseline.pyis excluded by!repo_tests/python_file_size_ratchet_baseline.pyscripts/api_wiring_baseline.txtis excluded by!**/*_baseline.txtscripts/python_file_size_known_large.pyis excluded by!scripts/python_file_size_known_large.py
📒 Files selected for processing: 85
.env.example.github/filters/python-paths.ymlautobot-backend/api/doubled_prefix_routes_18722_test.pyautobot-backend/api/knowledge_grounding.pyautobot-backend/api/knowledge_ownership.pyautobot-backend/api/schemas_knowledge.pyautobot-backend/api/schemas_system.pyautobot-backend/api/system.pyautobot-backend/api/system_cache_coordinator.pyautobot-backend/initialization/lifespan.pyautobot-backend/tests/api/test_knowledge_grounding.pyautobot-backend/utils/async_chromadb_client.pyautobot-backend/utils/chromadb_client.pyautobot-backend/utils/chromadb_client_cache_key_test.pyautobot-backend/utils/chromadb_client_hnsw_pickle_security_test.pyautobot-backend/utils/chromadb_client_local_repairs_18789_test.pyautobot-backend/utils/chromadb_store_repairs.pyautobot-backend/utils/chromadb_store_repairs_18789_test.pyautobot-frontend/src/__tests__/transcriber/ProjectDetailView.test.tsautobot-frontend/src/__tests__/transcriber/useTranscriberApi.test.tsautobot-frontend/src/components/analytics/CodebaseAnalytics.vueautobot-frontend/src/components/analytics/panels/CodebaseIntelligenceScoresPanel.vueautobot-frontend/src/components/analytics/panels/codebaseIntelligenceScoresTypes.tsautobot-frontend/src/components/knowledge/KnowledgeResearchPanel.vueautobot-frontend/src/components/knowledge/knowledgeResearchTypes.tsautobot-frontend/src/composables/analytics/useCodeIntelAnalysis.tsautobot-frontend/src/composables/transcriber/useTranscriberApi.tsautobot-frontend/src/composables/useBrowserAutomation.tsautobot-frontend/src/composables/useCodeIntelligence.tsautobot-frontend/src/composables/usePatternAnalysis.tsautobot-frontend/src/models/repositories/KnowledgeRepository.tsautobot-frontend/src/models/repositories/SystemRepository.tsautobot-frontend/src/models/repositories/knowledgeFactMapping.tsautobot-frontend/src/services/api.tsautobot-frontend/src/views/BrowserAutomationView.vueautobot-frontend/src/views/DevSpeedupView.vueautobot-frontend/src/views/devSpeedupCodeAction.tsautobot-frontend/src/views/llc/WorkItemDetail.vueautobot-frontend/src/views/llc/workItemDetailTypes.tsautobot-frontend/src/views/transcriber/ProjectDetailView.vueautobot-slm-frontend/src/composables/autobotAdminModels.tsautobot-slm-frontend/src/composables/useAutobotApi.tsautobot-slm-frontend/src/locales/ar.jsonautobot-slm-frontend/src/locales/de.jsonautobot-slm-frontend/src/locales/en.jsonautobot-slm-frontend/src/locales/es.jsonautobot-slm-frontend/src/locales/fa.jsonautobot-slm-frontend/src/locales/fr.jsonautobot-slm-frontend/src/locales/he.jsonautobot-slm-frontend/src/locales/lv.jsonautobot-slm-frontend/src/locales/pl.jsonautobot-slm-frontend/src/locales/pt.jsonautobot-slm-frontend/src/locales/ur.jsonautobot-slm-frontend/src/views/OrchestrationView.vueautobot-slm-frontend/src/views/settings/admin/LogForwardingSettings.vueautobot-slm-frontend/src/views/settings/admin/__tests__/fetchFailureStates.test.tsautobot-slm-frontend/src/views/settings/admin/__tests__/logForwardingByName.test.tsautobot-slm-frontend/src/views/settings/admin/logForwardingForm.tsautobot_shared/api_routing/deprecated_redirects.pyautobot_shared/env_registry_knowledge.pydocker-compose.ymldocker/backend/entrypoint.shdocs/developer/ENV_VARS.mdrepo_tests/_glob_declared_uncovered.pyrepo_tests/_hardcoded_ui_literal_baseline.pyrepo_tests/_hardcoded_ui_literal_detect.pyrepo_tests/_raw_palette_baseline.pyrepo_tests/_reach_policy.pyrepo_tests/_reach_policy_verdicts.pyrepo_tests/_ui_literal_rederive.pyrepo_tests/_ui_literal_scan.pyrepo_tests/audio_extension_allowlist_test.pyrepo_tests/changes_job_equivalence_15360_test.pyrepo_tests/docker_admin_seed_18729_test.pyrepo_tests/frontend_file_size_ratchet_baseline.pyrepo_tests/frontend_file_size_ratchet_test.pyrepo_tests/hardcoded_ui_literal_ratchet_12732_test.pyrepo_tests/no_doubled_api_prefix_18722_test.pyrepo_tests/no_duplicate_route_registration_16908_test.pyrepo_tests/no_secret_passthrough_routes_17899.pyrepo_tests/reach_scope_claim_17844_test.pyrepo_tests/regex_concept_fork_guard_18093_test.pyrepo_tests/slm_frontend_bare_ui_literals_test.pyrepo_tests/slm_frontend_i18n_parity_test.pyscripts/frontend_file_size_known_large.py
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
| return out | ||
|
|
||
|
|
||
| _CODE_ID = re.compile(r"^([A-Za-z][a-z0-9]*[A-Z]\w*|[A-Za-z]\w*([_-]\w+)+)$") |
|
|
||
|
|
||
| _SCRIPT_BLOCK = re.compile(r"<(script|style)\b[^>]*>.*?</\1>", re.DOTALL | re.IGNORECASE) | ||
| _SCRIPT_BODY = re.compile(r"<script\b[^>]*>(.*?)</script>", re.DOTALL | re.IGNORECASE) |
|
Superseded by the rebuilt train 33b. #18797 was taken out after it raised the shared/SLM duplication scope over its pin; the CodeQL, Semgrep and FastAPI 0.145 fixes are included there. |
|
Branch audit (zero-change deletion). This PR shows 0 changed files against |
Thinking Path
Approved PRs land together in one merge train (one full CI run). Each member is merged
--no-ffat its reviewed head; combination defects are fixed in the train.What Changed
/api/<prefix>/apiroutes served at single-prefix paths; old paths are 308 shims with Deprecation/Link (#18722)single_userdefault removed from compose, entrypoint and env example; carriers guarded (#18729)Train fixes
_reach_policy.py(at its 600-line ceiling): test(i18n): one parser detector for both apps' UI literals; a per-file ratchet on hard-coded English (#12732) #18802 moves the verdict rows to_reach_policy_verdicts.py; fix(api): doubled /api/<prefix>/api routes served at their single-prefix path; old paths 308 for one release (#18722) #18796'sdoubled-api-prefix-scanand fix(docker): autobot-worker's user-mode default is single_company too, and the guard checks every service (#18729) #18804'suser-mode-default-carriers-18729rows are placed there, andenv-file-family-18555-scankeeps its original reason text.frontend_file_size_ratchet_test.pyMAX_CEILING_TOTAL: 180776 = main 180995 − 4 (test(i18n): one parser detector for both apps' UI literals; a per-file ratchet on hard-coded English (#12732) #18802) − 138 (fix(frontend): main-GUI calls reach served routes; live features with no route are hidden behind build issues (#18730) #18755) − 77 (fix(slm-frontend): Log Forwarding works against the served shapes, keyed by name; edits never send masked credentials (#18734) #18797)._hardcoded_ui_literal_baseline.py: DevSpeedupView and LogForwardingSettings drained to 0 and leave the baseline.no_duplicate_route_registration_16908_test.pyCOMPOSING_MODULES_PIN17 → 18 and theno_secret_passthrough_routes_17899.pyrecord follow fix(api): doubled /api/<prefix>/api routes served at their single-prefix path; old paths 308 for one release (#18722) #18796's coordinator move.autobot-frontend/src/types/generated/api.tsregenerated by dispatch run 39128332522 (route paths only).slm-frontend-locale-keys3244 → 3280;audio-extension-allowlist6344 → 6382 (middle of the legal overlap [6357, 6408]; the sweep skipsrepo_tests/).Verification
repo_tests/locally at -n 8 under the machine lock: 7967 passed; every remaining failure is in the local-env baseline.detect-hardcoded-values.sh --audit-baseline: every entry matches;check-doc-references.py: all resolve;check_symbol_forks --audit-baseline: 0 stale.Model Used
Claude Opus (merge-train orchestration); Sonnet and Opus subagents for member reviews.
Issue Link
Refs #12732 #18722 #18730 #18734 #18789 #18729
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes
Changes