product-recognition-demo/recognization/code
tngo 890e186182 test: cover the local scale branch and the decision policy
The shipped default scale had no test: make_session only builds matcher-backend
engines, so scale == "local" in _on_classified never ran in the suite - and
that is the branch that was wrong twice (the rank re-sort, and the early return
that made the text lane's fill-in job unreachable).

Adds LocalScaleEngine, which injects the lanes' evidence into the live path, and
two live tests: a text-only read still labels the track, and a text veto blocks a
local accept. Adds DecisionPolicyTests for the veto/fill-in boundary, including
the lane-order-vs-value case that the rank re-sort broke.

Both regressions were re-injected to confirm the tests fail for the intended
reason: restoring the early return fails the fill-in test, and re-sorting the
lane output by value fails the order test. Suite 251 -> 261.
2026-09-28 22:41:24 +09:00
..
web
__init__.py
app.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
bench_engine.py
bench_identity.py
build_store_from_shelf.py
collect_shelf_images.py
detector.py
empty_shelf_detector.py
engine.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
eval_external_images.py
eval_identity.py docs: match the false-accept record to the evaluator's own columns 2026-09-28 22:36:27 +09:00
eval_live.py docs: name the local lane in the evaluators' own lane vocabulary 2026-09-28 22:34:06 +09:00
feature_matcher.py
finetune_identity.py
gallery.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
identity.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
identity_lanes.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
inventory.py
live.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
ocr.py
rebuild_catalog.py feat(eval): score the shipped local lane, and harden catalog enrollment 2026-09-28 22:33:33 +09:00
reconcile.py
record.py
shelf_map.py
stream_client.py
tag_cards.py
tags.py
test_api.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
test_engine.py test: cover the local scale branch and the decision policy 2026-09-28 22:41:24 +09:00
test_eval_live.py
test_gallery.py fix: serialize gallery inference so Metal cannot be entered twice 2026-09-28 17:22:55 +09:00
test_identity.py refactor: delete the legacy session model 2026-09-28 17:47:50 +09:00
test_live.py test: cover the local scale branch and the decision policy 2026-09-28 22:41:24 +09:00
test_ocr_tags.py
test_real_model.py
test_reconcile.py
test_record.py
test_shelf_map.py
test_tag_cards.py
test_tag_identity.py
test_tracking.py
tracking.py
train.py
transport.py