Files
athena-oracle/pipeline.py
T
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

28 lines
692 B
Python

#!/usr/bin/env python3
"""Thin wrapper — delegates to oracle.cli ingest subcommand.
Kept for backward compatibility with existing cron/calls.
"""
import sys
import os
sys.path.insert(0, os.path.dirname(__file__))
# Translate old args to new CLI format
args = sys.argv[1:]
cli_args = ["ingest"]
for i, arg in enumerate(args):
if arg in ("--sources", "--limit"):
cli_args.append(arg)
if i + 1 < len(args):
cli_args.append(args[i + 1])
elif arg == "--dry-run":
cli_args.append("--dry-run")
elif arg == "--verify":
pass # verify handled internally
from oracle.cli import main as cli_main
sys.argv = ["oracle"] + cli_args
cli_main()