Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: record the known postStreak/activeDays day-boundary divergence on the daysActive tile (#4120)

[._.]/ Adam Eivyb25e77f13f36
diff --git a/server/services/characterMetrics.js b/server/services/characterMetrics.js
index 8d26c09dc0..df3fd61e23 100644
--- a/server/services/characterMetrics.js
+++ b/server/services/characterMetrics.js
@@ -115,6 +115,14 @@ export const METRICS = [
// documents exactly what it can and cannot fix — notably that a stored bare day LABEL is
// taken as authored, because no instant survives to re-derive it from.
//
+ // KNOWN DIVERGENCE (#4211): `postStreakDays` above resolves its day keys through
+ // `postStreak.js`'s `normalizeYmd`, which still takes the UTC day (`split('T')[0]`). For
+ // the bare `YYYY-MM-DD` keys every writer has stamped since #2681 the two agree exactly;
+ // they can disagree only on a LEGACY full-ISO entry straddling UTC midnight, where this
+ // tile is the correct one and the streak is not. Aligning the shared streak helper is
+ // cross-cutting (it feeds the Progress page and the dashboard widgets too), so it is
+ // tracked separately rather than smuggled in here.
+ //
// Missing keys are a FAILED read, not an idle install: each source is validated as an
// array and a throw here lands in `readMetric`'s `unavailable`, so a shape mismatch can
// never render as a confident "0 days active" for someone with years of history.