Torrent Arsenal — P2P Sovereign Download Engine
محرّك تنزيل P2P سيادي: VPN-إجباري (صفر تسريب) + فحص SHA256 + توجيه بالحجم (ضخم→R2/B200، صغير→قرص) + never-stop. الغرض: نماذج مفتوحة الأوزان uncensored/abliterated المحذوفة من HF + datasets أكاديمية ضخمة (Academic Torrents) — دفاعي/أكاديمي مشروع.
الخط الأحمر
- كل peer-traffic عبر VPN egress (gluetun-tr). ❌ لا اتصال P2P بـ IP السيرفر المكشوف (درس 08-24).
- نماذج مفتوحة الأوزان (Apache/MIT) + datasets أكاديمية فقط. ❌ لا محتوى مقرصن تجاري.
- الضخم (>20GB) يُبثّ مباشرة لـ R2/B200، لا يملأ القرص.
الأدوات
python3 skills/torrent-arsenal/torrent.py selftest
python3 skills/torrent-arsenal/torrent.py vpn-check
python3 skills/torrent-arsenal/torrent.py meta "<magnet|file.torrent>"
python3 skills/torrent-arsenal/torrent.py download "<magnet>" [--dest DIR] [--force]
python3 skills/torrent-arsenal/torrent.py stream-r2 "<local_file>"
python3 skills/torrent-arsenal/torrent.py search-academic "<query>" [--limit N]
python3 skills/torrent-arsenal/torrent.py sha256 "<file>"python3 skills/torrent-arsenal/model_rescue.py selftest
python3 skills/torrent-arsenal/model_rescue.py scan # watch HF removals
python3 skills/torrent-arsenal/model_rescue.py find "<model_id>"
python3 skills/torrent-arsenal/model_rescue.py add "<model_id>"
المحرّك (never-stop)
aria2c (BT مفعّل، DHT+trackers، all-proxy=VPN) أساس → libtorrent (metadata/magnet معقّد) → webtorrent ملاذ.التكامل
- uncensored-cloud-gpu: النماذج المنزّلة → B200 (vLLM/llama.cpp).
- liberation_router: طبقة محلية من النماذج المحذوفة.
- deep-research/medical: datasets Academic Torrents.
- Mirror-Watch: حارس يرصد حذف HF ويلتقط magnet قبل الاختفاء (السبق).
ENV
TORRENT_VPN_PROXY (افتراضي http://gluetun-tr:8888) · TORRENT_DL_DIR · TORRENT_BIG_GB (20) · TORRENT_TIMEOUT (7200)Cross-Arsenal Bridge (التكامل العبقري)
python3 skills/torrent-arsenal/arsenal_bridge.py dataset-for "<q>" --domain research|medical|legal|vision|nlp
python3 skills/torrent-arsenal/arsenal_bridge.py model-to-gpu "<magnet|model>" # pipeline -> R2 -> B200 vLLM
python3 skills/torrent-arsenal/arsenal_bridge.py resilient-fetch "<resource>" # 8th never-stop layer for No-Fail Net
python3 skills/torrent-arsenal/arsenal_bridge.py registry # unified catalog of fetched models+datasets
- IDEA1 Dataset-to-Research: academic corpora -> in-depth-research / rag-knowledge-base / medical-arsenal / legal-rag.
- IDEA2 Model-to-B200: torrent -> R2 -> B200 vLLM -> liberation_router local uncensored tier (zero-API).
- IDEA3 Resilient-fetch: torrent = 8th never-stop layer under No-Fail Net for huge blocked legal resources.
- IDEA4 Unified registry: dedup catalog of everything fetched (feeds portal).
الطبقات الثلاث الجديدة (2026-10-07 — صفر سلبيات، نقد 8 مستويات)
IPFS (gateway-only، صفر daemon/منفذ، VPN، 6 gateways never-stop)
python3 skills/torrent-arsenal/ipfs_bridge.py selftest|head <CID>|fetch <CID> [--name]
Usenet/NZB (inert بلا اشتراك = صفر سلبية؛ جاهز عند USENET_SERVER/USER/PASS)
python3 skills/torrent-arsenal/usenet_bridge.py status|test-conn|fetch <nzb>
Cloud Seedbox (RunPod on-demand: نزّل فائق السرعة -> R2 -> destroy؛ صفر تكلفة دائمة)
python3 skills/torrent-arsenal/seedbox.py plan <magnet|CID>|ready
Unified auto-route (CID->IPFS, magnet->torrent, .nzb->usenet, huge->seedbox)
python3 skills/torrent-arsenal/arsenal_bridge.py unified-fetch <resource>
- IPFS: datasets/models علمية تُنشر عليه؛ fetch عبر بوابات عامة+VPN، big->R2/B200.
- Usenet: طبقة SSL مشفّرة عالية السرعة، inert حتى توفّر provider (nntplib أُزيل من py3.13 — nzbget عند التفعيل).
- Seedbox: B200/RunPod on-demand لتنزيل الضخم فائق السرعة ثم stream R2 (أسرع 10-100× من VPN الحاوية).