Tavily web search to ground weekly posts in broader ecosystem context #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add web search (Tavily or equivalent allowlisted HTTPS API) so weekly posts can connect CL8Y activity to broader market/ecosystem trends, with citations. Snippets are untrusted, time-bound, and never a substitute for DEX indexer / repo primary sources.
Gap:
gaps/GAP_1788152435.mduser-facing “relevant recap”; new collector.Current codebase
Collectors are fixture JSON only (repos, dex overview, telegram, recent posts). No outbound search API.
POST_HREF_HOSTS/INDEXER_HOSTSdo not include Tavily. Untrusted wrap exists (wrap_untrusted). Numeric unsourced check does not know web-snippet numbers.Why this is needed
A sourced indexer dump without context reads as an internal changelog. Readers expect why the week matters (L1/L2, Terra Classic, listings, adjacent DeFi). Search fills that with citations, not model memory.
Constraints / guardrails
api.tavily.comonly. HTTPS, no redirects, timeout, DNS pin (security issue).TAVILY_API_KEY), never in git/MDX/logs.SourceKind::WebSearch(or similar) notonchain_authoritative.as_of.POST_HREF_HOSTS. If a Tavily URL is off-allowlist, cite insources.json/ report only, or strip to plain text in the post.Relevant files
src/collect.rssrc/allowlist.rssrc/store.rsSourceKindsrc/invariants.rssrc/numeric.rssrc/pipeline.rs.env.exampleRecommended direction
tavily.rsclient: POST search, parse results, map toSourceRecord.fixtures/happy-week/tavily.jsoncassette.Acceptance criteria
Test plan — functional paths
Test plan — attack, hack, and abuse
http://169.254.169.254/as result URL; do not fetch it; do not put it in MDX hrefs.bridge.cl8y.com.evilin snippet stripped in MDX.TAVILY_API_KEYnot in artifacts.Verification criteria
marked as related to #6
marked as related to #4
marked as related to #7