A useful error record for a logistics agent must connect the failure to one shipment, one request, and the work already consumed by the agent loop. Capture request context and cumulative usage at the same boundary that records the stack trace. Otherwise, a rejected model call may be visible while the latency and token spend that preceded it disappear into aggregate charts. The implementation below uses Express, AsyncLocalStorage , and a small structured event sink; it keeps the transport repl...