trails/openspec
Ullrich Schäfer 977e0d8f5f
openspec: propose profile-stats (profile roll-ups)
Lifetime totals (count · distance · ascent · elapsed time) + a last-4-weeks
count on the profile, viewer-scoped (public-only for visitors, full for the
owner).

Design records the cost decision: compute on the fly with a single aggregate
over stored columns on the owner_id-leading indexes (cheap even for power
users) — no cache table, no schema change — with a documented escape hatch to
a user_activity_stats cache if profiling ever shows it's hot.

Validates with `openspec validate --strict`. Specs only; no code.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 06:56:06 +02:00
..
changes openspec: propose profile-stats (profile roll-ups) 2026-06-13 06:56:06 +02:00
specs openspec: archive the detail catch-up changes, sync specs 2026-06-12 15:58:17 +02:00
CAPABILITIES.md openspec: archive the detail catch-up changes, sync specs 2026-06-12 15:58:17 +02:00