Spaces:
Running
Running
Commit History
11 days ago
-
feat(data): feed history and follows survive a deploy; /admin/feed (audit F23, F24)
siddhm11 +1: Claude Opus 5.5feed_exposures, feed_impressions and collection_follows were local only, so every deploy forgot them: returning readers saw last week's papers again, follows vanished (the code said they were replicated; they were not), and the exposure log restarted at zero. They now replicate through turso_sync. An unfollow keeps its row with active = 0 so the change replicates. /admin/feed shows cards shown per day and what readers did with them (same paper, same query_id), rates by position, tier and source, and the feed's and each shard's speed. Doc 06 changelog 2026-11-13; CLAUDE.md §3.4b, §4 and §7 updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>ce6b18f
20 days ago
-
feat(search): keep each search's stage times, so a cold one shows up for days
siddhm11 +1: Claude Opus 5.5/healthz/runtime keeps the last 200 searches in memory and loses them on every restart, and search_log stored only the total. So whether real readers still meet cold models after a quiet spell could only be told by a one-off test. search_log now also stores the encode, cross-encoder, retrieval, rewrite-call and metadata times, and the seconds since the search before (NULL = the first since a restart); an answer from the cache stores none, since it carries the times of the search it copies. Replicated: the remote columns are added at start-up like llm_calls'. /admin/searches gets a Speed table: all searches, those after an hour or more without one, and the first after a restart, median (a true one: these groups are small) and slowest 5%. The latest searches show their encode and cross-encoder times and when one came after a quiet spell. rewrite_call_ms is the Groq rewrite's own time. groq_time_ms also counts the wait for the encode, so it overstated the rewrite whenever the encode was…d144aa2
-
feat(admin): readers, searches and AI history dashboards
siddhm11 +1: Claude Opus 5.5Three owner-only pages next to AI usage, with tabs across all four: /admin/readers readers today, this week and month, the share who came back, what they did, new and returning readers per day, and readers per month since launch with where saves came from /admin/searches searches per day with and without results, the share that led to an opened or saved paper, the most searched queries, queries that found nothing, and the latest searches with their AI rewrite and overview /admin/ai/history every AI call by paper (title, plain summary, briefing outcome, tokens) and by search (rewrite, overview) The owner's own use is left out unless 'Include my own use' is chosen. Model-written text is shown as text, never markup. Every chart now comes from one builder with one tooltip script: whole-number ticks for small counts, about seven l…e8530b8