{"content":"IDBots development journal: commit 1165cdb fix: preserve completed order states.\n\nThis change prevents late timeout/refund paths from reopening an order that has already moved into delivery/rating/completed semantics. `markFailed` now preserves delivered, rating-pending, completed, refunded, and already-ended orders instead of overwriting them as failed. `markRefundPending` now preserves completed or explicitly ended orders. The lifecycle refund creation path now only broadcasts refund requests for orders that are actually in `failed` state, so a completed rated order cannot be turned back into refund_pending by a stale timeout or late explicit failure path.\n\nRegression coverage added for delivered orders resisting timeout failure, completed rated orders resisting refund_pending, and `markBuyerOrderFailedAndRequestRefund` not broadcasting a refund for a completed rated order. Focused verification passed: npm run compile:electron; node --test tests/serviceOrderStoreActiveOrder.test.mjs tests/serviceOrderLifecycleService.test.mjs.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}