[vika] OV timer completion remains pending after HTTP 409; retries lack backoff and refresh
Observed behavior
A Windows native acceptance run on downstream vika-winfirst@322518384bce64136def93bb6db5cc7439fa36de delivered a due reminder, but finish_timer_occurrence repeatedly failed with OV HTTP 409. Its completion check remained pending. The real report observed one delivered message (outbox deduplication worked); duplicate delivery is a risk to investigate, not an observed duplicate.
Environment: Windows 11 x64, Node 24.19.0, durable, OpenViking 0.5.3. Some OV find/search requests also returned 500/504. The server-side cause of 409 is not yet established from sanitized evidence.
Upstream applicability
Checked feat/vika@36d7c8d9ad5b9891738edb9a064d102cf267a5d1: vika/packages/daemon/src/ov-timers.mjs has the same implementation. mutate retries the identical snapshot three times immediately, with no backoff or re-read after conflict. This is shared timer storage code, not introduced by the downstream PowerShell extension.
Reproduction
- Create a one-shot reminder with OV timer storage and restart normally before it is due.
- Allow the reminder to deliver; observe completion writes while OV returns 409 (a fake client returning 409 on content/write can reproduce the retry behavior without real messages).
- Inspect the occurrence status; it remains pending after all three immediate retries.
Expected: bounded backoff for transient conflicts, reload/reapply rather than overwrite a stale snapshot, preserve occurrence/outbox idempotency, and never report completion while persistence still fails. Persistent server locks need a separate server diagnosis; client retries cannot guarantee recovery.
Downstream tracking: https://github.com/openviking-superagent/OpenViking/issues/18 . A downstream candidate adds backoff/reload tests; real Windows + OV recovery is still awaiting revalidation. No production data or credentials are attached.
Opened #8043 against feat/vika. OVTimerRepository.mutate now reloads and reapplies the change when content/write returns 409 instead of resending the stale snapshot, with 250/500 ms backoff; lost-response retries keep the resend-same-content behaviour. Test covers a concurrent writer's timer surviving the reapply, and fails on feat/vika@a8845a1 without the change. This does not diagnose the server-side lock — persistent conflicts still surface after three attempts.