- concepts/park-2-event-loop-stall: /api/sessions/active ~2 s synchronous (quote() per open unpaid transient x664, unindexed ledger scans) froze the loop; Node runs expired timers before queued UDP replies, so healthy Dingtian pulses reported "timeout" and signed entries lost their snapshot/session row. Standing decision: bounded request cost whatever the operator data. - Dingtian: custom firmware retired (2026-10-23), runbook shelved, vendor pinout in raw/, relay-proxy PoC marked retired; edge-controller hardware memo (open).
4.0 KiB
type, tags, sources, updated, status
| type | tags | sources | updated | status | |||
|---|---|---|---|---|---|---|---|
| decision |
|
|
2026-06-21 | 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.
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.