Add guided detection calibration runner
This commit is contained in:
@@ -5127,6 +5127,30 @@ Limitations:
|
||||
Next recommended pass:
|
||||
- Add a guided in-app calibration runner that can queue a small explicit threshold set for one selected raster/reference pair, reusing the existing detection and QA APIs.
|
||||
|
||||
## Sprint 134 Guided detection calibration runner (2026-07-08)
|
||||
|
||||
Changed:
|
||||
- Added an explicit guided calibration runner to Detection Lab for operator-selected confidence threshold sweeps.
|
||||
- Added frontend detection workflow state for calibration thresholds, progress rows, running state and errors.
|
||||
- The runner parses a space/comma/semicolon-separated threshold set, validates project/raster/reference/model/manifest/model-asset readiness and runs one existing `detectionApi.run` plus one existing detection QA comparison per threshold.
|
||||
- Successful threshold rows report persisted analysis run/job/quality check ids, detection count, precision, recall, F1, false positives and false negatives.
|
||||
- Added UI copy that this runs real configured YOLO jobs and QA comparisons and does not promote or mutate model files.
|
||||
- Added regression coverage in `backend/tests/test_sprint134_guided_detection_calibration_runner.py`.
|
||||
- Marked the guided calibration runner task complete in `docs/TODO.md`.
|
||||
|
||||
Tested:
|
||||
- Red step: `python -m pytest backend\tests\test_sprint134_guided_detection_calibration_runner.py -q` failed while the runner contract was absent.
|
||||
- `python -m pytest backend\tests\test_sprint134_guided_detection_calibration_runner.py -q` (`1 passed`)
|
||||
- `python -m pytest backend\tests\test_sprint133_detection_threshold_calibration_ux.py backend\tests\test_sprint134_guided_detection_calibration_runner.py backend\tests\test_sprint122_model_asset_activation_guardrails.py backend\tests\test_sprint123_raster_detection_handoff_operational.py -q` (`8 passed`)
|
||||
- `cd frontend && npm run typecheck`
|
||||
- `cd frontend && npm run build`
|
||||
|
||||
Limitations:
|
||||
- The runner is intentionally sequential and explicit. It does not schedule background batches, compare multiple AOIs at once or promote model assets/thresholds automatically.
|
||||
|
||||
Next recommended pass:
|
||||
- Add an evidence shortcut from each calibration row to the persisted QA evidence map/review flow so false positives and false negatives can be inspected faster.
|
||||
|
||||
## Sprint 117 Safe local YOLO model activation (2026-07-06)
|
||||
|
||||
Changed:
|
||||
|
||||
Reference in New Issue
Block a user