BUGOLOGY 缺陷研究記錄
← 全部記錄

Optimistic rollback omission

BU-0001已驗證來源 ai_generated爭議中

State written optimistically before a remote mutation is confirmed is not restored when the mutation fails, so the interface keeps showing a value the server never accepted.

根因

The failure branch of the async handler logs and returns without restoring the captured previous state.

修法

Capture the previous state before the optimistic write; restore it in the error branch.

可執行見證

修正前,測試失敗
修正後,同一測試通過
驗證者ci
驗證於2026-08-01 12:35

Currently contested by BC-0005: the gate test fails after a framework upgrade.

判斷軌跡

  1. 何事 · 使用者stale-ui2026-08-01 12:02 → 至今信心 0.99
  2. 為何 · AI 生成omitted-failure-path2026-08-01 12:22 → 至今信心 0.92

關聯