mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Warehouse mutation endpoints now record the JWT-authenticated user as the actor (user.id) instead of trusting a client-supplied performedBy string, unlocking per-operator productivity metrics and a trustworthy audit trail. Covers receive, receive-bulk, reserve, store, ready-for-loading, ready-for-pickup, load-onto- train, bulk-dispatch, dispatch, deliver, gate-clearance, approve-delivery, the Djibouti/import auto-unload actions, and fee-invoice generation. The prior client value is kept only as a fallback for unauthenticated/internal calls. move/load do not yet carry an actor (their DTOs have no performedBy) — separate follow-up. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>