Skip to content

fix: make Remote Config LKG writes crash-durable - #859

Closed
shameondev wants to merge 1 commit into
codex/rc-persistent-lkgfrom
codex/rc-lkg-durable-commit
Closed

fix: make Remote Config LKG writes crash-durable#859
shameondev wants to merge 1 commit into
codex/rc-persistent-lkgfrom
codex/rc-lkg-durable-commit

Conversation

@shameondev

Copy link
Copy Markdown
Contributor

Summary

  • wait for one atomic SharedPreferences disk commit before reporting Remote Config network success
  • preserve the previous committed LKG on commit failure, executor rejection, overflow, or authoritative-removal failure
  • keep single-save LRU eviction while making list reconciliation exact and atomic
  • fence identity/invalidation races and complete coalesced operations by their semantic postcondition

Reliability evidence

  • full sdk:testDebugUnitTest, detektAll, and sdk:assembleDebug pass
  • 136 focused manager/cache/durability tests pass
  • independent review covered commit failure, coalescing, bounded admission, rejected scheduling, exactly-once callbacks, identity changes, and authoritative removal

Stack

This draft is intentionally based on codex/rc-persistent-lkg / PR #857. It does not add the new Fetched/Active snapshot API; it repairs the durability boundary of the existing whole-context LKG before that cache can be reused.

@shameondev

Copy link
Copy Markdown
Contributor Author

Консолидировано в release-train PR (один PR на репозиторий). Ветка сохранена.

@shameondev shameondev closed this Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant