Skip to content

fix(open-knowledge): add persistence staleness watchdog (PRD-7492) (#2783)#731

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jul 21, 2026
Merged

fix(open-knowledge): add persistence staleness watchdog (PRD-7492) (#2783)#731
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.

…2783)

A store cycle lost after a session's last edit had no retry of any kind:
Hocuspocus only re-arms the store debounce on a new Y.Doc update and user
docs stay resident for the server lifetime, so the live doc could stay
newer than disk for days. The watchdog sweeps loaded docs, detects memory
diverged from the persistence reconciled base past a 5-minute grace
window, and re-flushes through the normal store spine. Disk state the
base does not account for (unreconciled external edits or deletes) makes
it stand down instead of overwriting. Adds two counters and structured
warns for observability.

GitOrigin-RevId: 0ab9a871ee163f08d415f6f4c2dc18bef95cd782
@inkeep-oss-sync
inkeep-oss-sync Bot merged commit d873fe6 into main Jul 21, 2026
@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch July 21, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant