Skip to content

Feat/evals recall hardening - #1

Closed
het2576 wants to merge 3 commits into
mainfrom
feat/evals-recall-hardening
Closed

het2576 wants to merge 3 commits into
mainfrom
feat/evals-recall-hardening

Conversation

@het2576

@het2576 het2576 commented Nov 16, 2026

Copy link
Copy Markdown
Owner

No description provided.

het2576 and others added 3 commits November 16, 2026 01:08
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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 Error Error Nov 16, 2026 6:18pm UTC

@het2576 het2576 closed this Nov 16, 2026

This branch had an error being deployed

1 failed deployment
Preview — 466685a6 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