Skip to content

Remove filesystem agent registry, rely solely on persistence#7

Closed
Kaiohz wants to merge 1 commit intomainfrom
remove-filesystem-agent-registry
Closed

Remove filesystem agent registry, rely solely on persistence#7
Kaiohz wants to merge 1 commit intomainfrom
remove-filesystem-agent-registry

Conversation

@Kaiohz
Copy link
Copy Markdown
Contributor

@Kaiohz Kaiohz commented Apr 5, 2026

Changes

  • Remove DeepAgentRegistry (filesystem-based) — PersistentAgentRegistry (MinIO + PostgreSQL) is now the sole registry
  • Remove seed_builtin_agents() — agents are created/managed exclusively via REST API (POST /api/v1/agents)
  • Remove LoadAgentConfigUseCase — dead code with no route consumer
  • Remove agents_dir setting and COPY agents/ from Dockerfile
  • Add _require_agent_registry() guard — persistence is now mandatory, app fails fast if unavailable

Files deleted (6)

  • src/infrastructure/deepagent/registry.py
  • src/application/use_cases/seed_agents.py
  • src/application/use_cases/load_agent_config.py
  • tests/unit/test_registry.py
  • tests/unit/test_seed_agents.py
  • tests/unit/test_load_agent_config_use_case.py

Test plan

  • 218 unit tests passing
  • SonarQube: 0 issues, 88.7% coverage
  • Trivy: 0 vulnerabilities
  • QA full stack (docker compose): 44/44 endpoint tests passed
  • Linter (ruff): clean
  • Code review: approved

Remove DeepAgentRegistry, seed_builtin_agents(), and LoadAgentConfigUseCase.
Agents are now managed exclusively via REST API (POST /api/v1/agents) with
MinIO + PostgreSQL persistence. Startup fails fast if persistence is unavailable.

- Delete DeepAgentRegistry (src/infrastructure/deepagent/registry.py)
- Delete SeedAgentsUseCase and LoadAgentConfigUseCase + their tests
- Remove agents_dir from Settings, remove COPY agents/ from Dockerfile
- Add _require_agent_registry() guard in dependencies.py
- Migrate test_routes.py to PersistentAgentRegistry
- Migrate test_thread_management.py to mock AgentRegistry
- Update README documentation

218 tests passing, 0 SonarQube issues, 88.7% coverage, 0 Trivy findings.
@Kaiohz Kaiohz closed this Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant