Skip to content

fix(runtime-host): serve revision-consistent Usage snapshots - #4068

Open
Sun-GLiang wants to merge 1 commit into
apache:mainfrom
Sun-GLiang:fix/4058-usage-snapshot-consistency
Open

fix(runtime-host): serve revision-consistent Usage snapshots#4068
Sun-GLiang wants to merge 1 commit into
apache:mainfrom
Sun-GLiang:fix/4058-usage-snapshot-consistency

Conversation

@Sun-GLiang

Copy link
Copy Markdown
Contributor

Summary

  • capture legacy telemetry, canonical model-call attempts, tool activity, and pricing in one repaired SQLite snapshot
  • add opaque revision-pinned Usage snapshot pages with bounded TTL, LRU retention, activity caps, and typed revision changes
  • make Desktop load all Usage authorities as one unit with strict page validation and three bounded full retries
  • raise the Runtime Host compatibility epoch to 60 and cover old peers, Host replacement, and two-client UDS behavior

Reuse

  • reuses the existing Usage merge and projection paths
  • shares the existing 48 KiB bounded-page fitter across legacy Usage, pricing, and snapshot pages
  • keeps the existing reconnectable IPC replacement window and renderer/preload interface

Verification

  • npm test --workspace @maka/storage
  • npm test --workspace @maka/runtime-host
  • npm test --workspace @maka/desktop
  • npm run typecheck
  • npm run format:check
  • npm run lint

Fixes #4058

@github-actions github-actions Bot added the effort/XL Over 1000 readable lines label Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/XL Over 1000 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(runtime-host): serve one revision-consistent Usage snapshot

1 participant