fetch_ml/docs
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
..
layouts docs: fix mermaid graphs and update outdated content 2026-02-16 20:37:38 -05:00
resources/_gen/assets docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
src refactor: complete maintainability phases 1-9 and fix all tests 2026-02-17 20:32:14 -05:00
static/js docs: fix mermaid graphs and update outdated content 2026-02-16 20:37:38 -05:00
.hugo_build.lock docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
go.mod docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
go.sum docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00
hugo.toml docs: comprehensive documentation updates 2026-02-12 12:05:27 -05:00