You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Data policy: decide when "no migration" ends, and plan history retention for health trends #123
Update (2026-10-07): the owner confirmed there are no users yet, so the pre-1.0 "no migration" policy is fine as it stands. Two things remain open: when the policy ends, and how much history the app keeps.
The decision
AGENTS.md: "Pre-1.0: no back-compat or migration code … change formats freely and document the reset".
ADR-0002: "rows written by an older format are dropped on load, never migrated."
That's reasonable while the only install is the owner's.
What to decide now, while it's cheap
The trigger that ends the policy. The rolling preview, the Obtainium instructions on the README and website, and five tagged betas mean anyone can install today. Pick the event — the first non-preview tag, a store listing, or the first known user — after which on-device formats carry a version, and every format change ships an importer or at least an in-app "history was reset" notice.
Record the cut-off trigger in AGENTS.md and ADR-0004.
Define retention: keep raw records for N days, then downsample to per-session and per-day summaries kept indefinitely, and have the health estimators read the summaries.
Once the cut-off passes: add a golden fixture file for each shipped format, plus a test that the current reader accepts them.
Related: #94, #112 (a slower parked cadence also stretches retention).
changed the title [-]Data policy: "no migration pre-1.0" vs a publicly distributed preview; users silently lose history and pairing[/-][+]Data policy: decide when "no migration" ends, and plan history retention for health trends[/+]on Oct 7, 2026
Closing as decided: both questions in this issue have an answer on main.
When "no migration" ends. ADR-0004, section "When 'no migration' ends" (owner decision 2026-10-16), and the same rule in AGENTS.md: the first normal release tag. Prereleases do not count. From that tag every on-device format is versioned, each change ships an importer or an in-app reset notice, and each shipped format gets a golden fixture.
Retention. ADR-0012 fixed the shape (raw window, summaries kept indefinitely, a record backstop, estimators reading summaries) and ADR-0014 chose the engine and the current numbers: car records stay for years (owner decision 2026-10-26), events.db expires after 90 days, derived.db holds the thinned long-term samples. RoomBackedRecordStoreTest proves the policy: "phone-side events expire after 90 days and car records do not" and "the car cap drops the oldest of the time span across series and leaves the events file alone".
Still open and tracked in ADR-0014, not here: owner.db, per-day rollups, and pointing the health estimators at derived.db for periods the raw window no longer covers.
Activity
[-]Data policy: "no migration pre-1.0" vs a publicly distributed preview; users silently lose history and pairing[/-][+]Data policy: decide when "no migration" ends, and plan history retention for health trends[/+]dzid26 commentedon Nov 1, 2026
Closing as decided: both questions in this issue have an answer on
main.AGENTS.md: the first normal release tag. Prereleases do not count. From that tag every on-device format is versioned, each change ships an importer or an in-app reset notice, and each shipped format gets a golden fixture.events.dbexpires after 90 days,derived.dbholds the thinned long-term samples.RoomBackedRecordStoreTestproves the policy: "phone-side events expire after 90 days and car records do not" and "the car cap drops the oldest of the time span across series and leaves the events file alone".Still open and tracked in ADR-0014, not here:
owner.db, per-day rollups, and pointing the health estimators atderived.dbfor periods the raw window no longer covers.