Skip to content

Feat/evals recall hardening - #2

Merged
het2576 merged 5 commits into
mainfrom
feat/evals-recall-hardening
Nov 16, 2026
Merged

het2576 merged 5 commits into
mainfrom
feat/evals-recall-hardening

Conversation

@het2576

@het2576 het2576 commented Nov 16, 2026

Copy link
Copy Markdown
Owner

No description provided.

Personalization: per-item "opened" events fired for every item whenever an
email or the dashboard loaded, so the interest vector learned "was sent", not
"was read" (v1 ranked worse than its own static-profile fallback). Signals are
now clicks, explicit up/down feedback and exposure-aware skips, with recency
decay and a smooth profile/history blend. Ranked order is persisted and shown.

Security/correctness: HMAC-signed public engagement links (sequential /r/<id>
exposed every user's saved URLs), scanner-safe feedback, SSRF guard on every
redirect hop, HTML-escaped emails, hostname-based URL classification, URL
dedupe, row-claim leases (no double processing), bounded retries, real HTTP
failure reasons, paywall-preview detection, deterministic read time, whole-
document summarization with prompt-injection framing, local-day caps, and the
Telegram "link NOT saved" false error after a successful save.

Active recall: grounded quiz cards drafted with each summary (evidence quote
verified in code), Leitner scheduling, LLM grading via /quiz and a dashboard
Recall page, retention stats.

LLM layer: single client with timeouts, retryDelay-aware retries, fail-fast on
daily caps, per-model pacing, token/latency tracing; Gemini 3.x thinking_level
instead of deprecated temperature; default model gemini-3.5-flash-lite.

Infra: Alembic migrations, 103 tests on real Postgres, CI, and an eval suite
(extraction, LLM-judged summary A/B, recall grader, closed-loop ranking sim)
with regression gates - all 8 pass; results in backend/evals/REPORT.md.
All 18 v2 docs are now scored by the title-aware judge (faithfulness 0.973,
22% of docs with any unsupported claim). Paired A/B grows from 5 to 8 docs:
v1 0.839 -> v2 0.966. Recall-card stats now cover 32 cards. All 8 gates pass.

Also fixes the K-sweep line in the report printing string keys when the
report is rebuilt from saved JSON.
All 18 docs for both prompt versions are now scored by the title-aware
judge: faithfulness v1 0.846 -> v2 0.973, docs with any unsupported claim
50% -> 22%, coverage 4.44 -> 4.72. All 8 gates pass. README cron examples
now use the X-Cron-Key header.
Found while capturing real screenshots of the dashboard:

- Skips landed two dispatches late. The send cycle infers skips before
  building the next dispatch, while the previous one is still the latest,
  and inference excluded the latest send. It now uses a 12-hour grace
  window instead, so yesterday's ignored items reach today's ranking.
  Regression test added.
- Mobile: the bottom tab bar rendered at the top of the screen (the
  header's backdrop-filter made it the containing block for the fixed
  nav), had 5 columns for 6 tabs, pushed the theme toggle to the middle,
  and there was no sign-out on phones.
- Wire rows on desktop put the status label on top of the dot and pushed
  the time onto a second line (explicit row-start, 5 columns for 6 cells).
- Signal showed raw type keys ("Hn", "Github"); it now uses the shared
  labels. Recall copy said cards unlock on "open"; they unlock on a click
  or upvote.
- scripts/demo_summary.py read a field the summarizer no longer returns;
  it now prints computed read time, the takeaway and grounded cards.
New screenshots of every dashboard page (dark, light, phone) and the email,
taken from a local demo account seeded with real pipeline outputs, with a
recall answer graded live. Adds a dashboard tour and an active-recall
section, fixes stale descriptions of engagement signals, the 15-event
threshold, cron auth and the architecture diagram, and replaces the v1
example summary with current output.
@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loop-wire Ready Ready Preview Nov 16, 2026 7:04pm UTC

@het2576
het2576 merged commit 5707465 into main Nov 16, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3e1291ee Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant