cold_start
cold_start
¶
Cold start detection and bootstrap for the distillation subsystem.
Day one: no traces, no benchmark. The system must not crash and must give the user a clear message about what's needed. This module provides readiness checks and the bootstrap logic.
See spec §13.
Classes¶
ReadinessResult
dataclass
¶
Result of a readiness check.
Functions¶
check_readiness
¶
check_readiness(trace_store: Any, min_traces: int = 20) -> ReadinessResult
Check if there are enough traces to run a learning session.
| PARAMETER | DESCRIPTION |
|---|---|
trace_store
|
TraceStore instance.
TYPE:
|
min_traces
|
Minimum total trace count required.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
ReadinessResult
|
|
Source code in src/openjarvis/learning/distillation/gate/cold_start.py
check_benchmark_ready
¶
check_benchmark_ready(trace_store: Any, min_feedback: float = 0.7, min_samples: int = 10) -> ReadinessResult
Check if there are enough high-feedback traces for a benchmark.
The bootstrap benchmark needs at least min_samples traces with
feedback >= min_feedback.
| PARAMETER | DESCRIPTION |
|---|---|
trace_store
|
TraceStore instance.
TYPE:
|
min_feedback
|
Minimum feedback score for benchmark-quality traces.
TYPE:
|
min_samples
|
Minimum number of high-feedback traces needed.
TYPE:
|