Coverage for retraining/__init__.py: 100%
11 statements
« prev ^ index » next coverage.py v7.17.3, created at 2026-11-22 12:55 +0000
« prev ^ index » next coverage.py v7.17.3, created at 2026-11-22 12:55 +0000
1from .artifacts import (
2 ACTIVE_ARTIFACT_FILES,
3 ALL_TRACKED_FILES,
4 OPTIONAL_GATING_FILES,
5 OPTIONAL_MULTITASK_FILES,
6 OPTIONAL_SEQUENCE_FILES,
7 OPTIONAL_STRATEGY_SELECTOR_FILES,
8 OPTIONAL_TOPOLOGY_FILES,
9 REQUIRED_CANDIDATE_FILES,
10 candidate_dir,
11 check_gating_artifacts,
12 check_multitask_artifacts,
13 check_required_artifacts,
14 check_sequence_artifacts,
15 check_strategy_selector_artifacts,
16 check_topology_artifacts,
17 compute_artifact_hashes,
18 copy_backtest_report_to_active,
19 copy_candidate_to_active,
20 restore_active_from_version,
21)
22from .backtest_gate import compare_backtests
23from .lean_backtest import find_lean_binary, run_lean_backtest
24from .planning import (
25 cooldown_remaining_seconds,
26 evaluate_retraining_plan,
27 min_observations_satisfied,
28 select_candidate_trigger,
29)
30from .postgres_registry import (
31 count_experience_events,
32 ensure_schema,
33 fetch_active_model_version,
34 fetch_latest_candidate_version,
35 fetch_latest_retraining_event,
36 fetch_model_version,
37 fetch_recent_retraining_events,
38 fetch_retraining_event,
39 fetch_rollback_candidates,
40 fetch_stale_active_events,
41 insert_model_version,
42 insert_retraining_event,
43 promote_model_version,
44 update_model_version_status,
45 update_retraining_event_status,
46)
47from .status_export import build_status_view, write_status_file
48from .validation_gate import compute_overfitting_gap, evaluate_validation_gate
49from .vault_client import commit_candidate_to_vault, parse_vault_commit_hash, run_av_command
50from .vault_commands import build_av_add_command, build_av_commit_command, build_av_push_command, build_commit_plan
51from .worker import RetrainingWorker
53__all__ = [
54 "ACTIVE_ARTIFACT_FILES",
55 "ALL_TRACKED_FILES",
56 "OPTIONAL_GATING_FILES",
57 "OPTIONAL_MULTITASK_FILES",
58 "OPTIONAL_SEQUENCE_FILES",
59 "OPTIONAL_STRATEGY_SELECTOR_FILES",
60 "OPTIONAL_TOPOLOGY_FILES",
61 "REQUIRED_CANDIDATE_FILES",
62 "candidate_dir",
63 "check_gating_artifacts",
64 "check_multitask_artifacts",
65 "check_required_artifacts",
66 "check_sequence_artifacts",
67 "check_strategy_selector_artifacts",
68 "check_topology_artifacts",
69 "compute_artifact_hashes",
70 "copy_backtest_report_to_active",
71 "copy_candidate_to_active",
72 "restore_active_from_version",
73 "compare_backtests",
74 "find_lean_binary",
75 "run_lean_backtest",
76 "cooldown_remaining_seconds",
77 "evaluate_retraining_plan",
78 "min_observations_satisfied",
79 "select_candidate_trigger",
80 "count_experience_events",
81 "ensure_schema",
82 "fetch_active_model_version",
83 "fetch_latest_candidate_version",
84 "fetch_latest_retraining_event",
85 "fetch_model_version",
86 "fetch_recent_retraining_events",
87 "fetch_retraining_event",
88 "fetch_rollback_candidates",
89 "fetch_stale_active_events",
90 "insert_model_version",
91 "insert_retraining_event",
92 "promote_model_version",
93 "update_model_version_status",
94 "update_retraining_event_status",
95 "build_status_view",
96 "write_status_file",
97 "compute_overfitting_gap",
98 "evaluate_validation_gate",
99 "commit_candidate_to_vault",
100 "parse_vault_commit_hash",
101 "run_av_command",
102 "build_av_add_command",
103 "build_av_commit_command",
104 "build_av_push_command",
105 "build_commit_plan",
106 "RetrainingWorker",
107]