feat(review): sample every detected car, not only ticketed entries
Build & push images / images (push) Successful in 5m20s
Build & push images / images (push) Successful in 5m20s
The entry stream for the reviewer was fed from the session-tied read only (ticket printed / exit signed). park-2 ran an afternoon with its barriers up: hundreds of camera vehicle pushes, zero tickets, zero samples. - anpr-entry: keep the best-framed vehicle of each poll loop (highest body-type confidence with a box), store that frame as a snapshot (identity pass:<id>, no session) and emit a vehicle read with the camera id — plate or no plate. One sample per detection, fire-and-forget, never on the ANPR path. - snapshot.ts: normalizedBoxes() shared by the session-tied read and the bridge; vehicle reads now carry deviceId. - review-outbox: sampleEntry(deviceId) dedups per camera for 30 s so the pass sample and a ticket entry's read (same car, seconds apart) go once. - wiki: outbox page (entry stream, troubleshooting checklist for 'nothing arrives': the month-long silence was a missing Netbird policy, not code), park-2 camera port-forward procedure (site-device-installation §7), log.
This commit is contained in:
+25
@@ -3442,3 +3442,28 @@ code, not by level: `/health` silent on both services, one request line instead
|
||||
`onError` hook so 5xx keep logging under `disableRequestLogging`), hik-alarm HIT and per-snapshot
|
||||
byte lines demoted to debug via a level on `stubLog`. Pages: [[app-logs]] §Noise cut.
|
||||
- 2026-10-08 — **stage-1167e27 never built**: the code fix and the TAG bump were pushed together, so CI tagged the image with the push head (`stage-32b4d9e`); Komodo deploy failed "not found". Re-pinned all four stacks to `stage-32b4d9e`; rule added to [[fleet-deployment-komodo]] (push code first, bump after the build).
|
||||
|
||||
## [2026-10-08] query | Review outbox never delivered — missing Netbird policy, not code
|
||||
|
||||
A month of silence from the collector: park-2 had 22 entry samples `queued`, all `fetch failed`
|
||||
(`ENOTFOUND docker-station.nb.infra`). park-2's Netbird peer list had no docker-station and vice
|
||||
versa — no policy booths → collector host. User added the access in the Netbird dashboard; the
|
||||
first package went out at its next scheduled retry (16:49Z) and the collector logged the ingest.
|
||||
Also clarified why camera traffic ≠ samples (only session-tied reads are sampled; barriers were
|
||||
open, so almost no tickets). Troubleshooting checklist added to [[vision-review-outbox]].
|
||||
|
||||
## [2026-10-08] ingest | park-2 camera port forward through the booth host (iptables)
|
||||
|
||||
8081 → entry camera 10.0.10.9:80, 8082 → exit camera 10.0.10.10:80, DNAT + SNAT + FORWARD
|
||||
ACCEPTs on park-2 (Docker's FORWARD DROP policy makes the ACCEPTs mandatory). Reachable over
|
||||
Netbird as `park-2.nb.infra:8081/8082`; public only if the router forwards to 192.168.1.101.
|
||||
Procedure, undo and the Netbird-only variant in [[site-device-installation]] §7.
|
||||
|
||||
## [2026-10-08] ingest | Review outbox: sample every detected car, not only ticketed entries
|
||||
|
||||
User: "I need every car that passes to be pushed to the server" — park-2's barriers were up, so
|
||||
hundreds of camera pushes produced no session-tied reads and no samples. The ANPR bridge now
|
||||
records one PASS sample per detection (best-framed vehicle of its poll loop → stored snapshot
|
||||
`pass:<id>` + vehicle read with `deviceId`); the Car Wash sampler dedups per camera for 30 s so a
|
||||
ticketed car is not sent twice. Also flushed park-2's 21 backed-off rows (`next_attempt_at = now`)
|
||||
so the reviewer got the day's backlog at once. Pages: [[vision-review-outbox]] §entry stream.
|
||||
|
||||
Reference in New Issue
Block a user