Telemetry Freshness Policy #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a follow-up for #33
Summary
Define one shared telemetry freshness policy for the frontend instead of letting individual components invent local rules.
The current battery-popup PR is a good example of the problem:
Goal
Keep the UI showing the freshest available data without adding avoidable backend or network load, while staying consistent across components.
Proposal
Add a telemetry freshness threshold to backend bootstrap metadata.
Suggested shape:
meta.telemetry.freshness_thresholdUse that bootstrap value on the frontend as the single source of truth.
Add one shared frontend helper for telemetry freshness decisions.
Example responsibilities:
isTelemetryFresh(snapshot, threshold)telemetryAge(snapshot)telemetryFreshnessLabel(snapshot, threshold)Apply the helper consistently across UI surfaces.
Candidate surfaces:
Suggested UX Direction
Preferred default:
Two viable product directions:
Either direction is acceptable if it is shared and intentional. The important part is that it should be one app-wide rule.
Non-Goals
Implementation Notes
Acceptance Criteria
CC @notfence.