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

View File

@@ -105,6 +105,7 @@ agent-work-orders = [
"python-dotenv>=1.1.1",
"structlog>=25.4.0",
"sse-starlette>=2.3.3",
"supabase==2.15.1",
]
# All dependencies for running unit tests locally