Skip to content

Nearby: variety for smaller metros (press revived, topics, spread) - #19

Merged
pythonjeff merged 8 commits into
mainfrom
nearby-variety
Oct 19, 2026
Merged

pythonjeff merged 8 commits into
mainfrom
nearby-variety

Conversation

@pythonjeff

Copy link
Copy Markdown
Owner

Phase 1 of the Nearby rework. St. Louis returned only concerts: the local-press half was trusted_only and empty, Ticketmaster excluded fairs/family, one shared prompt clipped the press, and one mixed curation call picked all concerts. Fixes: untrusted press at a 0.60 floor over four queries on a 21-day window, Miscellaneous segment, per-family prompt budgets, separate event/press curation calls, topic tags with a code-enforced cap and a read-time spread, dates required on press-sourced events. Cost: Tavily 2->4 searches per metro-week, Haiku 1->2 per metro-day. Based on #18 (includes the markets fallback and the two live hotfixes). Not deployed. Phase 2 (per-user preference ranking) not built. 🤖 Generated with Claude Code

pythonjeff and others added 8 commits October 14, 2026 20:04
The route was written before the package move and its lazy import was not
converted, so it 500'd in production. Adds a route-level test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The live-scores offer block joined sports_teams as strings; a profile with
dicts there raised in _build_system, failing every reply and the morning text
for that user.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
home._fetch_prices falls back to the broad market only when nothing in the
user's topics resolved to a symbol (and they have not hidden Markets); the
morning text now requires a MARKETS bullet whenever there is a price row.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- _local_candidates: no longer trusted_only (St. Louis returned nothing, so
  every row was a concert); three queries (food, festivals by month, family),
  deduped, 700-char blurbs so the curator can lift events out of weekend roundups
- Ticketmaster: add the Miscellaneous segment (fairs, festivals, family)
- curation: topic tag per row, at most two of a topic, extract events from
  roundups; pool 10, events ahead of press in the prompt
- _spread: one of each topic before a second, so a clumped pool is varied

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…re dates on press events

Live St. Louis check: the pool now holds music, festival, comedy and a new
restaurant instead of concerts only; an already-ended festival is dated and
drops out on read.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@pythonjeff
pythonjeff merged commit 9e71e9a into main Oct 19, 2026
1 check passed
@pythonjeff
pythonjeff deleted the nearby-variety branch October 19, 2026 22:30
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