Epictetus
|
ce440149f0
|
Fix arxiv/reddit timeouts: batch queries, retry logic, reduced backoff
|
2026-07-22 14:51:51 +00:00 |
|
Epictetus
|
641d531d88
|
Sprint 3: Anti-bot retrieval layer + metrics module
Anti-bot changes (all 6 adapters):
- Browser-grade User-Agent rotation (Chrome/Firefox on Linux/Windows)
- Shared browser_headers() with Accept, Accept-Language, DNT
- Session-consistent UA fingerprint (picked once, not per-request)
- jitter_sleep() replaces fixed time.sleep() on all adapters
- Exponential backoff on 429/503 already on reddit, now consistent
New shared module:
- adapters/__init__.py: browser_user_agent(), browser_headers(), jitter_sleep()
- adapters/_http.py: HTTPClient class for future browser-mode adapters
Metrics module (from Sprint 2 carry):
- oracle/metrics.py: MetricsRun for log_adapter/log_verdicts/log_scores
- oracle/weekly.py: SYSTEM HEALTH section wired to adapter_health
- oracle/cli.py: metrics subparser with --adapters/--publish/--scores/--alerts
Before: bot signatures like 'ai-oracle/0.1', 'python:athena:v0.1'
After: 'Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0'
|
2026-07-22 14:26:42 +00:00 |
|
Epictetus
|
3ec955e143
|
Sprint 2: Hermes masterclass integration — brief + weekly review modules
- oracle/brief.py: Morning intelligence briefing (CyrilXBT format)
THE ONE THING, WHAT HAPPENED, WHAT TO WATCH, FROM MEMORY, TODAY'S FOCUS
Source cooldown (72h dedup), theme clustering, signal ranking
- oracle/weekly.py: Weekly review synthesis
Signal summary, trending themes (WoW comparison), tier breakdown,
auto-generated recommendations based on patterns
- oracle/cli.py: Wired brief/weekly commands
python -m oracle brief [--max-items 8] [--max-age-h 48] [-o path] [--json]
python -m oracle weekly [--days 7] [-o path] [--json]
Integrates patterns from Hermes Agent Masterclass:
- Morning brief template structure
- Content source cooldown (no repeats within 72h)
- Weekly pattern synthesis with trend detection
- Quality gate recommendations (score thresholds, diversity alerts)
- Theme clustering for FROM MEMORY section
|
2026-07-22 13:50:03 +00:00 |
|
Epictetus
|
07c5f9a5c2
|
Sprint 0+1: Package restructure, source tiers, verdicts, multi-variant editions
- New oracle/ package (11 modules) with unified CLI (python -m oracle)
- Source tiers: Tier 1 (arxiv/github/hf), Tier 2 (rss/hn), Tier 3 (reddit)
- Composite verdicts: PUBLISH/WATCH/ARCHIVE/DROP based on signal score + age
- Content-hash dedup: SHA-256[:16] normalized, atomic at insert time
- Multi-variant editions: 4 YAML configs (default/research/devops/brief)
- Variant engine: filter → rank → render (HTML + JSON, themed)
- Per-adapter timeout (10s) + threading fallback
- Consolidated 12 root scripts → thin wrappers + oracle/ package
- Archived stale scripts (_engagement, _live_compare, reddit_proof)
- Updated .gitignore, README.md, schema.sql
|
2026-07-22 13:32:15 +00:00 |
|