[habit][library] Habit: the local day with rollover, days read, the forgiving weekly streak, the reminder schedule, medals as a pure function of the log; sessions carry their UTC offset

This commit is contained in:
2026-11-17 11:58:09 +01:00
parent b9462af39f
commit 9a2ba174ce
15 changed files with 822 additions and 9 deletions
+1
View File
@@ -83,6 +83,7 @@ pub fn op(r: &mut Rng, dev: &str, n: usize) -> Op {
},
13 => Op::Return { loan: format!("l-{dev}-{}", n.saturating_sub(1 + r.below(4) as usize)), date },
14 => Op::Session {
offset_min: None,
id: format!("s-{dev}-{n}"),
book,
start: 1000,