rdev/internal/service
jordan 53862c773b fix: resolve systemic debt in worker and skeleton templates
Worker template fixes:
- Replace panic() with logger.Error() + os.Exit(1) for config errors
- Remove double-timeout application (context + middleware)
- Add error message truncation to prevent log bloat
- Use named constants for shutdown grace period and stale check interval

Skeleton pkg/auth fixes:
- Fix error wrapping to use %w consistently in jwt.go
- Add GetUserOrError() as safe alternative to MustGetUser() panic

Skeleton pkg/queue fixes:
- Check RowsAffected() errors instead of ignoring them
- Add input validation to EnqueueWithOptions (require job type, cap retries)
- Add log truncation for error messages
- Fix inaccurate doc comment claiming exponential backoff

Worker timeout consolidation:
- Add internal/worker/timeouts.go with named constants
- Migrate all workers to use timeout constants

Cleanup:
- Remove obsolete slack-preparation-thoughts.md files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 23:44:55 -07:00
..
apikey_service_test.go feat: Add CI pipeline proxy, DNS alias management, and worker executor system 2026-01-27 21:05:28 -07:00
apikey_service.go feat: Add CI pipeline proxy, DNS alias management, and worker executor system 2026-01-27 21:05:28 -07:00
build_progress_test.go chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
build_progress.go chore: prepare for composable monorepo template implementation 2026-01-31 11:39:28 -07:00
build_service_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
build_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
component_deploy.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
component_infra.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
component_listing.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
component_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
component_updates.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
component.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
diagnostics_service_test.go feat: add diagnostics endpoint and external health monitoring 2026-02-03 19:10:56 -07:00
diagnostics_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
mock_test.go feat: add work task error classification and user-facing error codes 2026-02-03 00:07:34 -07:00
operation_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
project_infra_crud.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
project_infra_domains.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
project_infra.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
project_service_agent.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
project_service_commands.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
project_service_queue.go feat: Add multi-provider code agent interface with Claude Code and OpenCode adapters 2026-01-27 09:25:51 -07:00
project_service_test.go feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
project_service.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
sdlc_callback_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_callback.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_generate_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_generate.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_orchestrator_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_orchestrator.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_service_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
verify_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
work_service_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
work_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
worker_service_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
worker_service.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00