fetch_ml/docs/src
Jeremie Fraeys 6580917ba8
refactor: extract domain types and consolidate error system (Phases 1-2)
Phase 1: Extract Domain Types
=============================
- Create internal/domain/ package with canonical types:
  - domain/task.go: Task, Attempt structs
  - domain/tracking.go: TrackingConfig and MLflow/TensorBoard/Wandb configs
  - domain/dataset.go: DatasetSpec
  - domain/status.go: JobStatus constants
  - domain/errors.go: FailureClass system with classification functions
  - domain/doc.go: package documentation

- Update queue/task.go to re-export domain types (backward compatibility)
- Update TUI model/state.go to use domain types via type aliases
- Simplify TUI services: remove ~60 lines of conversion functions

Phase 2: Delete ErrorCategory System
====================================
- Remove deprecated ErrorCategory type and constants
- Remove TaskError struct and related functions
- Remove mapping functions: ClassifyError, IsRetryable, GetUserMessage, RetryDelay
- Update all queue implementations to use domain.FailureClass directly:
  - queue/metrics.go: RecordTaskFailure/Retry now take FailureClass
  - queue/queue.go: RetryTask uses domain.ClassifyFailure
  - queue/filesystem_queue.go: RetryTask and MoveToDeadLetterQueue updated
  - queue/sqlite_queue.go: RetryTask and MoveToDeadLetterQueue updated

Lines eliminated: ~190 lines of conversion and mapping code
Result: Single source of truth for domain types and error classification
2026-02-17 12:34:28 -05:00
..
adr docs: fix mermaid graphs and update outdated content 2026-02-16 20:37:38 -05:00
assets/javascripts chore: clean up temporary and build artifacts 2026-02-16 20:39:34 -05:00
_index.md docs: migrate to Hugo Book theme and publish via GitHub Pages 2026-01-05 12:22:24 -05:00
api-key-process.md docs: add comprehensive documentation with MkDocs site 2025-12-04 16:54:57 -05:00
architecture.md docs: fix mermaid graphs and update outdated content 2026-02-16 20:37:38 -05:00
cicd.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
cli-reference.md docs: remove debug command from CLI reference 2026-02-16 20:39:20 -05:00
cli-tui-ux-contract-v1.md docs: fix mermaid graphs and update outdated content 2026-02-16 20:37:38 -05:00
configuration-reference.md docs(dev): document validate workflow, CLI/TUI UX contract, and consolidate dev/testing docs 2026-01-05 12:37:46 -05:00
configuration-schema.md docs: add comprehensive documentation with MkDocs site 2025-12-04 16:54:57 -05:00
deployment.md docs(ops): consolidate deployment and performance monitoring docs for Caddy-based setup 2026-01-05 12:37:40 -05:00
dev-quick-start.md docs(dev): document validate workflow, CLI/TUI UX contract, and consolidate dev/testing docs 2026-01-05 12:37:46 -05:00
environment-variables.md docs: add comprehensive documentation with MkDocs site 2025-12-04 16:54:57 -05:00
first-experiment.md feat(experiment): improve experiment lifecycle and update first-experiment guide 2026-01-05 12:37:34 -05:00
installation.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
jupyter-workflow.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
landing.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
native-libraries.md docs: add native libraries documentation and smoke tests 2026-02-16 20:38:46 -05:00
operations.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
performance-monitoring.md refactor: extract domain types and consolidate error system (Phases 1-2) 2026-02-17 12:34:28 -05:00
queue.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
quick-start.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
redis-ha.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
release-checklist.md docs: add comprehensive documentation with MkDocs site 2025-12-04 16:54:57 -05:00
research-runner-plan.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
security.md feat(jupyter): improve runtime management and update security/workflow docs 2026-01-05 12:37:27 -05:00
smart-defaults.md docs: add comprehensive documentation with MkDocs site 2025-12-04 16:54:57 -05:00
testing.md docs(dev): document validate workflow, CLI/TUI UX contract, and consolidate dev/testing docs 2026-01-05 12:37:46 -05:00
troubleshooting.md docs(dev): document validate workflow, CLI/TUI UX contract, and consolidate dev/testing docs 2026-01-05 12:37:46 -05:00
user-permissions.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
validate.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
zig-cli.md docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00