fix: gross-based batch discard, direction-correct event logs, wire CSV logger
ci / smoke (push) Canceled after 0s

This commit is contained in:
andrew committed 2026-09-28 12:08:37 +07:00
1 parent 508bee736d
commit d3357fccef
8 files changed
+200 -22

No files matched your search

+7 -1
View File
@@ -10,7 +10,7 @@ version tags are cut in this repo — POC stage, `main` is the release line).
- **DO-gated manual batch mode** (`auto` default · `do_manual` · legacy `manual`):
smartphone photo capture → OCR draft → plate-grouped start gates → net
expected/counted on live panel → stop soft-warn + force → discard only when
**both** `net_sack` and `net_box` are 0.
**both** gross `count` and `box_loading` are 0.
- `config.yaml` `batch.default_mode` + `do:` block; `DoConfig` in
`src/config_loader.py`; runtime `$OUTPUT_DIR/do_settings.json`.
- `delivery_orders` table + additive `batches` columns (`plate`, `do_numbers`,
@@ -40,6 +40,12 @@ version tags are cut in this repo — POC stage, `main` is the release line).
and persists sack `unloading` for net-at-stop.
- Finalize discard rule (dashboard stop **and** `predict.py` `finalize_batch`):
keep row if **either** net ≠ 0 (box-only batches no longer dropped).
- Batch discard rule now gross-based: drop only when `count == 0` **and**
`box_loading == 0` (was both nets 0 — kept rows like `count=0, unloading=7`).
- Event log wording: `masuk`/`keluar` now match event direction (unloading no
longer logged as `masuk`, `TOTAL` line follows direction); wired the
existing-but-unused `src/logger.py` `CSVLogger` into `predict.py`
(`batch_summary.csv`, `sack_events.csv` under `output.dir`).
## 2026-09-18 — Config tuning: Sack confidence and batch timeout