Skip to content

store: last-known-good snapshot fallback (kills 'Awaiting samples' after first publish)#1188

Merged
Flotapponnier merged 1 commit into
devfrom
feat/lkg-snapshot-fallback
Jul 15, 2026
Merged

store: last-known-good snapshot fallback (kills 'Awaiting samples' after first publish)#1188
Flotapponnier merged 1 commit into
devfrom
feat/lkg-snapshot-fallback

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

publishSnapshot writes a no-TTL lkg copy on every success; readMaterialized falls back to it when the fresh pointer/blob path misses (worker outage > blob TTL, DEL race, transient redis error). A bench that has published once never collapses to the awaiting placeholder again; LiveIndicator keys off lastRunAt so lkg-served pages show the honest Stale badge.

Independent review: SHIP. tsc clean, 95 tests pass. Notes: Redis footprint ~doubles (bounded, worker-only sig set); lkg keys orphan on spec deletion (same as pointer keys, cleanup script someday).

…t publish)

publishSnapshot writes an lkg copy without TTL on every success;
readMaterialized falls back to it when the pointer/blob pair misses
(worker outage past blob TTL, DEL race, transient). dataAsOf keeps the
freshness badge honest about age. LKG write is best-effort and never
fails the publish.
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