4 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 3e3a53bf97 feat(home): the front page is live — checked events, then what the sweep just found (#134)
On 2026-10-01 the newest item on the front page was 17 days old while the
sweep found news daily (204 finds unchecked; accepting one needs a commit
and a deploy). Now:
- What changed: checked events first, then up to four finds from the last
  14 days, labelled 'Not yet checked' with Check this. Only finds whose
  headline names the bottleneck AND reports a change (lib/lead-signal.ts,
  tuned on the live queue: 68 of 203 pass; blogs, books, ads, fair
  notices, questions, social posts and URL-dated old pages do not).
- Hero: a live status line (sweep last ran, finds waiting) instead of
  'Newest record'; the unreadable diagram card is gone.
- Phone: the five doors are two columns of names, not a screen of cards.
The page reads the store per request and falls back to checked events,
saying so, when it cannot.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-01 07:19:51 -07:00
CatoandClaude Opus 5.5 0a7c308525 fix(desk): an accepted lead says so, never "not yet reviewed" (#115)
* fix(desk): an accepted lead says so, never "not yet reviewed"

leadsFor dropped the verdict, so a lead a reviewer had ACCEPTED reached the
desk and company pages labelled as unread. The verdict now travels with the
lead (leadFromRow, pure and tested): accepted leads read "Web lead ·
accepted, awaiting filing" on the desk and "Accepted lead · awaiting
filing" on company pages, and a reviewed lead is never expired.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* refactor(desk): bucketOf lives with whenLabel in lib/when.ts

Keeps lib/desk.ts under the 300-line ceiling after the verdict field.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 00:00:11 -07:00
CatoandClaude Opus 5.5 379215bca8 feat(review): unreviewed sweep leads expire after 30 days at read time (#113)
A lead nobody decides on within LEAD_EXPIRY_DAYS (30) is expired: kept in
research_sweep_candidates, never deleted or rewritten, but out of the review
queue and its freshness age. The review queue is judged on OPEN leads only —
late past 7 days (a slow reviewer, reported), stale past 31 (only a broken
expiry or queue can get there, so it still 503s).

- lib/lead-expiry.ts: the constant, the pure leadState rule and the SQL
  predicates it must agree with; method `lead-expiry` documents it
- /review, /data, /data/freshness count expired leads and link to the new
  /data/freshness/expired list
- desk and company pages label an expired lead "expired, never reviewed";
  the reader's leadMaxAgeDays window is unchanged; Ask says EXPIRED
- test/lead-expiry.test.ts: boundary, SQL/JS agreement, open-only queue and
  freshness, expired retrievable + no DELETE; each mutation-proven

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 23:02:57 -07:00
CatoandClaude Opus 5.5 a8bd9cdf84 feat(desk): a desk you control — filters, read/save/hide, rails, sweep settings, no god files (#81)
* feat(desk): make the desk controllable — filters, marks, rails, sweep settings

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(desk): reconcile with Ask — one railsOf, lead reads in sweep-queue

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(desk): whole-word rail matching; split review queue; size ratchet baseline

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(desk): trace every number to a constant; no 'analyst' wording; rebaseline sizes

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 02:28:15 -07:00