feat: add repository configuration system with defensive validation

- Add archon_configured_repositories table migration with production-ready sandbox type constraints
- Implement SupabaseWorkOrderRepository for CRUD operations with comprehensive error handling
- Add defensive validation in _row_to_model with detailed logging for invalid enum values
- Implement granular exception handling (409 duplicates, 422 validation, 502 GitHub API errors)
- Document async/await pattern for interface consistency across repository implementations
- Add Supabase health check to verify table existence
- Expand test coverage from 10 to 17 tests with error handling and edge case validation
- Add supabase dependency to agent-work-orders group
- Enable ENABLE_AGENT_WORK_ORDERS flag in docker-compose for production deployment
This commit is contained in:
Rasmus Widing
2025-10-24 20:01:15 +03:00
parent 6a8e784aab
commit 71393520dc
9 changed files with 1449 additions and 0 deletions

2
python/uv.lock generated
View File

@@ -172,6 +172,7 @@ agent-work-orders = [
{ name = "python-dotenv" },
{ name = "sse-starlette" },
{ name = "structlog" },
{ name = "supabase" },
{ name = "uvicorn" },
]
agents = [
@@ -277,6 +278,7 @@ agent-work-orders = [
{ name = "python-dotenv", specifier = ">=1.1.1" },
{ name = "sse-starlette", specifier = ">=2.3.3" },
{ name = "structlog", specifier = ">=25.4.0" },
{ name = "supabase", specifier = "==2.15.1" },
{ name = "uvicorn", specifier = ">=0.38.0" },
]
agents = [