[search] services/search/service.py exists but is unused — routes import internals instead #783

Closed
opened 2026-06-03 00:30:06 +02:00 by sleepy · 0 comments
Owner

Problem

services/search/service.py (95 lines) appears to be intended as the public facade for the search feature, but:

  1. routes/search_routes.py bypasses it entirely, importing directly from services.search.core and services.search.providers
  2. src/deep_research.py imports from src.search.* (the duplicate copy)
  3. No other file imports from services.search.service

AGENTS.md violation

This is related to the cross-feature coupling issue (#776) — the public interface layer exists but is not used.

Fix

  1. Ensure service.py re-exports all public API functions
  2. Update all consumers to import from service.py or __init__.py
  3. Remove private function imports from routes
## Problem `services/search/service.py` (95 lines) appears to be intended as the public facade for the search feature, but: 1. `routes/search_routes.py` bypasses it entirely, importing directly from `services.search.core` and `services.search.providers` 2. `src/deep_research.py` imports from `src.search.*` (the duplicate copy) 3. No other file imports from `services.search.service` ## AGENTS.md violation This is related to the cross-feature coupling issue (#776) — the public interface layer exists but is not used. ## Fix 1. Ensure `service.py` re-exports all public API functions 2. Update all consumers to import from `service.py` or `__init__.py` 3. Remove private function imports from routes
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sleepy/odysseus#783
No description provided.