You need to review a PR that moves order processing to a background goroutine. The service runs as an HTTP application on Go 1.24 with the standard library only, with no third-party dependencies. The contract must be preserved: POST /orders accepts JSON with an idempotency_key field and returns exactly one line to stdout in the format "status=queued id=" after the request has been successfully queued for processing. Background work must finish reading and closing the request body, support cancellation via context.Context, and repeated requests with the same idempotency_key must not create duplicates. Synchronization assumptions: all shared structures are protected by a mutex; there is no additional synchronization beyond what is specified in the code. The program runs as a normal binary, testing is via go test ./..., with no external services. The PR shows changes in one handler and one small storage component.
Go 1.24, standard library only; execution mode: go test ./...; HTTP server is in-process; goroutine synchronization assumptions are explicit in code comments and rely only on mutex + context cancellation.
Use line comments to explain the problem, its impact, the fix and how to test it.