Files
parking_solution/wiki/decisions/standing-decisions.md
T
julian dd2dd53d7e wiki: H.264 test on park-lab, event-driven refactor decided
- zone-anpr-poc: H.264 instead of MJPEG (load, delay, a car in the zone,
  staff traffic, bad weather); the relay-less test copy is left running
- event-driven-refactor (new): the user's decisions of 2026-11-23, what
  is not decided, what they touch in today's code; waits for the user's
  guidelines
- passage-confirmation: the 2026-11-19 phase order superseded; where the
  video work lives
- vision-hardening, zone-anpr-poc-review: on-screen label read as a
  plate (moved by the user), day-time oversized box, still pause carried
  over
- pointers on vision-service, camera-live-view, lane-presence-and-anpr-entry,
  dingtian-vs-mqtt, entry gates, standing decisions, open questions,
  overview, index

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RZgP5oZdzvo92Eouc9eRv5
2026-11-23 12:02:18 +01:00

4.7 KiB

type, tags, sources, updated, status
type tags sources updated status
decision
parking
decisions
parking-system-architecture
2026-11-23 settled

Standing Decisions (settled)

The decisions treated as settled in the design notes. (See parking-system-architecture "Summary of standing decisions".)

  • Stack: turborepo · fastify (Node) · react-vite-spa · sqlite + drizzle-orm · local-jwt-auth. All MIT/Apache/BSD — no vendor lock, no rug-pull risk (see payload-cms). Full table in technology-stack.
    • Scoped exception (2026-06-15): the opencv-anpr-service — a separate local process, not linked into the app — may use AGPL components (plate/vehicle models). The exception is bounded to that process; the Node/React app stays strictly MIT/Apache/BSD. See vision-service.
  • Platform: a dedicated, hardened Linux appliance (LUKS + GRUB password + Secure Boot), not Windows/WSL — see disk-os-hardening.
  • Desktop shell: the operator UI ships as a desktop-shell-tauri kiosk wrapper (chosen over Electron, 2026-06-21) — small footprint, no bundled Chromium to patch, and a deny-by-default native surface that fits threat-model. The shell stays thin: all privileged logic remains in fastify. One open dependency — the appliance's WebKitGTK version (see open-questions #11). Ships as a .deb (the AppImage bundles a runner's WebKitGTK and fails on the 26.04 booth — 2026-09-04); its backend address is operator-entered at runtime, not baked in; and in-app updates are an admin-only action behind the polkit password prompt (user, 2026-09-04) — never make that prompt passwordless.
  • Integrity: append-only, hash-chained, software-signed event log (append-only-event-chain) — hardware-backed signing (a non-extractable key in the tpm or a USB HSM; the atecc608 is open-questions) is the target that makes it unforgeable by a host owner (hardware-signer-options). reconciliation is the anti-fraud control; encryption protects only at-rest (see threat-model).
  • Access control: the dingtian-relay relay+input controller, on an isolated VLAN (network-isolation). Chosen because its inputs are decoupled from its relays, enabling host-in-the-loop ticket-first entry — the resolution to access-controller-button-flow. (The uhppote-controller and zkteco-controller were evaluated and rejected — kept as historical record. The esp32-custom-controller remains the documented prevention-grade alternative — the trust-boundary fork.)
  • Readers: prefer wiegand-into-controller for permit holders (autonomous); host-in-the-loop for lpr-camera/QR/pure-network readers; both can share a relay (see entry-exit-readers).

Unsettled items live in open-questions.

The server holds no video or image work; a camera is one signal among several (2026-11-23)

Decided by the user. The vision side talks to the cameras, decodes whatever they send, and produces what the rest needs. The server is agnostic about the camera side: if a signal comes from a camera, good; if not, an RF card, a barcode or a push-button ticket does the job, and the server does nothing special when a camera is blind or dead. Monitoring shows what is down and the operator raises the issue. A bus connects the vision side, the server and the booth screen. This comes with a refactor of the whole repository along an event-driven pattern, whose shape waits for the user's guidelines: event-driven-refactor. Not built.

No custom firmware on the Dingtian relay (2026-10-23)

The dingtian-relay stays stock. The vendor locks the standard SKU, the bench unit was never wired for a lock test, and the user chose to stop here: booth-PC resilience (the park-2 failures) is pursued through mini PCs, not through turning the relay board into a proxy. The relay-proxy-firmware PoC is retired; it remains a usable Dingtian emulator for the bench.

Bounded request cost, whatever the operator's data (2026-10-24)

Request handlers must do work bounded by the page they render, never by the operator's accumulated data. No per-row ledger reads in list views (fold once, price from the fold); every identity/telemetry lookup indexed; device timeouts deferred one loop turn so they cannot race a reply; evidence (snapshot) and projections written before the barrier pulse. We do not propose cleaning up or deciding about the operator's records to make the software fast — the owner runs the business, we provide the software. Origin: park-2-event-loop-stall.