Technical Debt — My Orders, Order Details & Track Shipment Gaps

By Engineering Team•October 11, 2026•3 min read
Metadata Details
System Name ui-application — My Orders, Order Details & Track Shipment
Document ID TD-2026-ORD-001
Author Engineering Team
Status Open

TD-33 — Cancel Order is a UI stub with no backend behind it

Status: Open Severity: Medium Affected component: ui-application — order_details/my_orders features Evidence: The Cancel Order action is present in the UI but has no corresponding order-service RPC or shop-service resolver implementing it — order-service’s own CLAUDE.md and 06-microservices/order-service.md both list cancellation as future scope. Impact: A shopper who taps Cancel Order gets no real cancellation; the action either does nothing or shows a placeholder, which can read as a bug rather than an unbuilt feature. Remediation direction: Scope and build the cancellation flow (order-service RPC, shop-service resolver, saga/compensation handling for any already-reserved inventory or captured payment) as its own feature, out of this document set’s scope per BRD-030. Related requirement: BRD-030 (Out of Scope — cancellation)

TD-34 — Download Invoice is a UI stub with no backend behind it

Status: Open Severity: Low Affected component: ui-application — order_details feature Evidence: The Download Invoice action exists in the UI with no corresponding backend endpoint to generate or retrieve an invoice document. Impact: A shopper attempting to download an invoice gets no real file. Remediation direction: Scope as its own feature once invoice generation (likely via document-service or a dedicated PDF-rendering step) is designed. Related requirement: BRD-030 (Out of Scope — invoice download)

TD-35 — Track Shipment’s SSE client has no automatic reconnect

Status: Open Severity: Medium Affected component: ui-application — order_tracking feature, ShipmentTrackingStreamService Evidence: The SSE client opens a single connection on screen entry and has no reconnect/backoff logic if that connection drops — a dropped network briefly interrupting the stream leaves the screen stale until the shopper manually leaves and re-opens it. Impact: A shopper on an unreliable connection can see a shipment’s progress silently stop updating with no visible indication that the stream has died. Remediation direction: Add reconnect-with-backoff to ShipmentTrackingStreamService, re-triggering the catch-up-then-subscribe sequence on reconnect so no events are missed across the gap. Related requirement: SR-031 NFR-04

TD-36 — shipment-service’s SSE broker is single-instance with no cross-replica replay

Status: Open Severity: Medium Affected component: shipment-service — in-memory tracking broker Evidence: The broker holding live per-order subscriptions is in-process; 06-microservices/shipment-service.md’s own “Real-time tracking — SSE” section already self-flags this: “no replay across replicas if this service ever scales beyond one instance.” Impact: If shipment-service is ever scaled to more than one replica, a shopper’s stream connection can silently miss events delivered to a sibling instance, with no error surfaced. Remediation direction: Move the broker to a shared backing store (e.g. a Pub/Sub-fanout or Redis-backed channel) before scaling shipment-service beyond one instance. Related requirement: SR-031 NFR-05

TD-37 — Vestigial sagaOrderId parameter in the tracking flow

Status: Open Severity: Low Affected component: ui-application — order_tracking feature Evidence: A sagaOrderId parameter is threaded through the tracking screen’s setup but is not actually used by the SSE stream path documented here (the stream is scoped by the order’s own identifier, not a saga identifier). Impact: Dead parameter increases reading/maintenance cost with no functional effect; low risk of confusing a future contributor into thinking it’s load-bearing. Remediation direction: Remove the unused parameter once confirmed there is no remaining call site depending on it. Related requirement: SR-031 FR-12

TD-38 — order-service’s own documentation claims order detail/history retrieval is future scope — it is not

Status: Open Severity: Low Affected component: order-service/CLAUDE.md, 06-microservices/order-service.md Evidence: Both files’ Responsibilities/Responsibility sections state that “order detail retrieval, order history/listing… are future scope.” This is contradicted by OrderQueryService’s GetOrder/ListOrders methods, which are fully implemented and are exactly what shop-service calls to serve My Orders and Order Details (SR-031 FR-01, FR-05). order-service/CLAUDE.md’s gRPC-contract table also describes its own GetAddressSnapshots RPC as “future scope — needed once order detail retrieval is implemented,” which is additionally misleading: order detail retrieval is implemented, but it resolves addresses by calling pii-service directly rather than via this RPC (see TD-00025’s sibling note in Architecture-00026’s gap section). Impact: A future contributor reading either file would wrongly conclude order detail/history retrieval doesn’t exist yet, and might re-implement it or miss that GetAddressSnapshots is effectively unused. Remediation direction: Correct both files’ claims in the same change that introduces this document set — see the “Corrections made” note below. Related requirement: SR-031 FR-05, FR-07

Corrections made: order-service/CLAUDE.md’s Responsibilities section and 06-microservices/order-service.md’s Responsibility section were corrected in this same change to state that order detail retrieval and order history/listing are implemented (cancellation/refund and payment-gateway capture remain genuinely future scope), and order-service/CLAUDE.md’s GetAddressSnapshots row was corrected to note it is not actually called by shop-service’s order-detail flow, which resolves addresses via pii-service directly instead.