product-recognition-demo/recognization/code
kiyo9w eca03e0c91
Some checks failed
tests / model-free (pull_request) Has been cancelled
refactor: delete the legacy session model
Two session models shared one process. `/v1/*` and `/v1/stream` are the live
one; `/api/sessions*` and `/api/compare_live_vs_still` were the earlier model,
still constructed on every `create_app()` through `build_legacy_scans` even
though nothing called them. The web client and `stream_client.py` speak only
`/v1`.

Deleted: `observe.py` (ScanService/PerceptionService/PerceptionAdapter),
`yolo_adapter.py` (imported only by the legacy builder), `pipeline.py` and
`test_suite.py` (the old single-image CLI, reachable only from each other),
`test_observe.py` (its Session* tests), the eight legacy route handlers,
`build_legacy_scans` with its two facades, `create_fastapi_app`, and the
`scans` parameter on `create_app`.

`IdentityRankingTests` moved to `test_identity.py` before `test_observe.py` was
deleted: those five ranking rules are the live path's contract, not the legacy
model's. `test_api.py` keeps every `/v1` and WebSocket test.

Verified: 246 tests OK (2 skipped), and a route dump of a freshly built app
shows no `/api/*` path with all nine `/v1` routes and the WebSocket intact.
2026-09-28 17:47:50 +09:00
..
web
__init__.py
app.py refactor: delete the legacy session model 2026-09-28 17:47:50 +09:00
bench_engine.py
bench_identity.py
build_store_from_shelf.py fix: require explicit safe shelf enrollment paths 2026-09-28 13:41:43 +09:00
collect_shelf_images.py
detector.py
empty_shelf_detector.py
engine.py perf: reuse sample dimensions and catalog digest 2026-09-28 14:06:34 +09:00
eval_external_images.py
eval_live.py fix: record and require the walk identity backend 2026-09-28 14:42:03 +09:00
feature_matcher.py
finetune_identity.py fix: refuse unavailable gallery and pin head trainer 2026-09-28 14:41:57 +09:00
gallery.py fix: serialize gallery inference so Metal cannot be entered twice 2026-09-28 17:22:55 +09:00
identity.py
inventory.py
live.py fix: gate the live cosine aggregate at the gallery's own line 2026-09-28 17:36:43 +09:00
ocr.py feat: add bounded crop evidence and keyed gallery cache 2026-09-28 15:49:34 +09:00
reconcile.py
record.py fix: record and require the walk identity backend 2026-09-28 14:42:03 +09:00
shelf_map.py
stream_client.py
tag_cards.py
tags.py fix: bind tag projection to each frame origin 2026-09-28 14:41:49 +09:00
test_api.py refactor: delete the legacy session model 2026-09-28 17:47:50 +09:00
test_engine.py fix: refuse unavailable gallery and pin head trainer 2026-09-28 14:41:57 +09:00
test_eval_live.py fix: record and require the walk identity backend 2026-09-28 14:42:03 +09:00
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 fix: gate the live cosine aggregate at the gallery's own line 2026-09-28 17:36:43 +09:00
test_ocr_tags.py fix: bind tag projection to each frame origin 2026-09-28 14:41:49 +09:00
test_real_model.py
test_reconcile.py
test_record.py fix: record and require the walk identity backend 2026-09-28 14:42:03 +09:00
test_shelf_map.py
test_tag_cards.py
test_tag_identity.py
test_tracking.py
tracking.py
train.py
transport.py fix: guard reserved sessions and bounded response state 2026-09-28 13:41:35 +09:00