From 759a2796716941e1c65e41f18d415e54246beac3 Mon Sep 17 00:00:00 2001 From: Alex Musayev Date: Sun, 19 Jul 2026 01:38:50 +0300 Subject: [PATCH] Correct LlmUsage retention documentation --- app/models/llm_usage.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/llm_usage.rb b/app/models/llm_usage.rb index 523095d06..fcbd09ba4 100644 --- a/app/models/llm_usage.rb +++ b/app/models/llm_usage.rb @@ -2,9 +2,8 @@ # regardless of outcome so users see the true cost of AI features # including failed calls. class LlmUsage < ApplicationRecord - # Usage rows are subject to retention pruning, so aggregate stats in the UI - # must cover a bounded window rather than all time — all-time totals would - # silently shrink as old rows expire. + # Aggregate stats use a bounded window so recent usage remains useful even if + # a retention policy is introduced later. STATS_PERIOD = 30.days belongs_to :user