fetch_ml/cmd
Jeremie Fraeys 3187ff26ea
refactor: complete maintainability phases 1-9 and fix all tests
Test fixes (all 41 test packages now pass):
- Fix ComputeTaskProvenance - add dataset_specs JSON output
- Fix EnforceTaskProvenance - populate all metadata fields in best-effort mode
- Fix PrewarmNextOnce - preserve prewarm state when queue empty
- Fix RunManifest directory creation in SetupJobDirectories
- Add ManifestWriter to test worker (simpleManifestWriter)
- Fix worker ID mismatch (use cfg.WorkerID)
- Fix WebSocket binary protocol responses
- Implement all WebSocket handlers: QueueJob, QueueJobWithSnapshot, StatusRequest,
  CancelJob, Prune, ValidateRequest (with run manifest validation), LogMetric,
  GetExperiment, DatasetList/Register/Info/Search

Maintainability phases completed:
- Phases 1-6: Domain types, error system, config boundaries, worker/API/queue splits
- Phase 7: TUI cleanup - reorganize model package (jobs.go, messages.go, styles.go, keys.go)
- Phase 8: MLServer unification - consolidate worker + TUI into internal/network/mlserver.go
- Phase 9: CI enforcement - add scripts/ci-checks.sh with 5 checks:
  * No internal/ -> cmd/ imports
  * domain/ has zero internal imports
  * File size limit (500 lines, rigid)
  * No circular imports
  * Package naming conventions

Documentation:
- Add docs/src/file-naming-conventions.md
- Add make ci-checks target

Lines changed: +756/-36 (WebSocket fixes), +518/-320 (TUI), +263/-20 (Phase 8-9)
2026-02-17 20:32:14 -05:00
..
api-server feat(api): refactor websocket handlers; add health and prometheus middleware 2026-01-05 12:31:07 -05:00
configlint ci: align workflows, build scripts, and docs with current architecture 2026-01-05 12:34:23 -05:00
data_manager ci: align workflows, build scripts, and docs with current architecture 2026-01-05 12:34:23 -05:00
db-utils ci: align workflows, build scripts, and docs with current architecture 2026-01-05 12:34:23 -05:00
performance-regression-detector chore(build): update build system, scripts, and additional tests 2026-02-12 12:05:55 -05:00
profiler chore(build): update build system, scripts, and additional tests 2026-02-12 12:05:55 -05:00
tui refactor: complete maintainability phases 1-9 and fix all tests 2026-02-17 20:32:14 -05:00
user_manager Fix multi-user authentication and clean up debug code 2025-12-06 12:35:32 -05:00
worker feat(worker): add integrity checks, snapshot staging, and prewarm support 2026-01-05 12:31:13 -05:00