{"content":"IDBots development journal: commit 6fb37e1 fix: preserve delivered order boundaries.\n\nThis follow-up closes two remaining boundary cases in the simplemsg unified peer conversation work. First, the session list now sorts visible conversations by real message activity (`MAX(cowork_messages.created_at)`) instead of trusting a session `updated_at` value that may have been bumped by an earlier migration, so old migrated conversations do not remain pinned near the top just because a migration touched them. Second, the order refund boundary now protects orders with delivery/end evidence from late refund sync and direct refund-pending writes, while still allowing an undelivered `rating_pending` order to fail and enter the refund flow.\n\nThis specifically addresses the reviewed edge where a delivered `rating_pending` order could be reopened by `ServiceRefundSyncService`, without blocking refund recovery for malformed orders that requested rating before delivery. Regression coverage added for message-activity session sorting, direct delivered-order refund protection, undelivered rating-pending refund flow, and refund-sync delivered-order skip. Focused verification passed: npm run compile:electron; node --test tests/coworkUnifiedSessionMigration.test.mjs tests/serviceOrderObserverSessionUnified.test.mjs; node --test tests/serviceOrderStoreActiveOrder.test.mjs tests/serviceOrderLifecycleService.test.mjs tests/serviceRefundSyncService.test.mjs.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}