Commit graph

9 commits

Author SHA1 Message Date
User
4f3dc39088 Pin playwright to 1.49.0 to match Dockerfile base image
The ^1.49.0 range let npm install 1.61.1 inside the v1.49.0 Playwright image,
whose bundled browsers don't match — renders failed with 'Executable doesn't
exist'. Found during docker compose verification.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 23:51:38 -07:00
User
64ffeabd49 M5: hardening — retries, per-domain rate limiting, resource limits, docs
- renderer: per-domain politeness limiter (Redis fixed window, in-memory
  fallback; over-limit requests wait bounded, 429 past deadline); render retry
  with DNS-failure fast-fail
- orchestrator: one retry on connection-level stage failures (not timeouts)
- compose: per-container CPU/memory limits; all hardening knobs env-driven
  and documented in .env.example
- README: quick start, MCP + REST usage, architecture, config, dev workflow

Verified: rate limit window enforced (3rd request waited for reset), full
scrape + MCP web_search smoke green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 22:11:28 -07:00
User
a70a6b5f5f M4: Tavily parity + MCP — /search/contents and MCP web_search/fetch_url
- pipeline.search_contents: search then render+extract all results in parallel;
  per-URL failures degrade to content:null + failed_urls instead of failing
  the request
- REST: POST /search/contents (Tavily-like full flow with trace)
- MCP server (streamable HTTP, stateless) mounted at /mcp on the orchestrator;
  tools web_search (with optional full content) and fetch_url share the exact
  pipeline + caches as REST

Verified: /search/contents end-to-end with parallel scrapes; MCP tool listing
and both tool calls via the official Python MCP client.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 22:09:00 -07:00
User
53f0d50e7a M3: search — SearXNG container, searcher service, orchestrator /search
- searcher: file-based instance list (mtime-reloaded, hand-editable), failover
  across instances, URL normalization + dedup, Redis search cache (300s TTL)
- searxng: pinned settings.yml with JSON format enabled and limiter disabled,
  secret from SEARXNG_SECRET env; wired into compose with config volume
- orchestrator: /search proxying the searcher with per-stage trace; searcher
  included in aggregated /health

Verified against a mock SearXNG: failover past a dead instance, dedup of
trailing-slash duplicates, non-http URL filtering, cache miss/hit flags.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 22:07:10 -07:00
User
56e7fa16dd M2: extraction quality — fallback extractors, thin-content detection, result cache
- extractor: trafilatura (precision) -> trafilatura (recall) -> readability-lxml
  fallback chain; longest result wins; 'thin' flag below 200 chars
- orchestrator: Redis-backed scrape-result cache keyed by URL (cache hit skips
  render entirely); thin/empty results are never cached
- /health reports orchestrator Redis reachability

Verified: HN + synthetic thin/empty/boilerplate pages; cache hit path via fakeredis.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 22:05:04 -07:00
User
e2b329b2bb M1: scrape spine — renderer, extractor, orchestrator /scrape, compose, health, render cache
- renderer: Node/Playwright, single browser + pooled contexts with concurrency
  cap and FIFO queue, Redis render cache (graceful no-op without Redis)
- extractor: FastAPI + Trafilatura, HTML -> {title, text, metadata}
- orchestrator: /scrape (render -> extract) with per-stage trace, aggregated
  /health, structured JSON logging on all services
- docker-compose for orchestrator/renderer/extractor/redis with healthchecks

Verified locally: end-to-end scrape of example.com and Wikipedia; error paths
for unreachable hosts and bad schemes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 22:02:38 -07:00
User
55317f3f75 PRD v4: MCP-first, no in-stack LLM, mechanical extraction only
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 21:57:46 -07:00
User
6d7e401188 Adding MVP section 2026-07-05 21:10:03 -07:00
User
2ca9ad2948 Initial commit: Add product requirements document 2026-07-05 20:31:44 -07:00