====================================================================
ARCHIVES_INDEX_REPORT_LotE_2025-10-12.txt
Projet : Seedbox Manager
Phase : COMPARAISON ARCHIVES + MÉMOIRE
Lot : E – Identifiés (gouvernance, roadmap, MVP, v5.0 Autobrr→Sonarr)
Date d’analyse : 2025-10-12
====================================================================

1. OBJECTIF DU LOT
------------------
Consolider les éléments “identifiés et stables” du projet :
gouvernance documentaire (OneDrive/Git), tableau de bord et roadmap par phases,
vision et périmètre du MVP “Seedbox Manager” (orchestrateur),
et formalisation de l’architecture Autobrr→Sonarr v5.0 (hybride sh+Python+SQLite).

--------------------------------------------------------------------
2. DOCUMENTS ANALYSÉS (liste)
--------------------------------------------------------------------
1) 01 - 🧭 Seedbox Manager – Tableau de bord global_…txt
2) 06 - 6️⃣ 🖥️ Développement du Seedbox Manager (MVP)_…txt
3) 99 - 📂 SeedboxManager · OneDrive + Git + Menus contextuels Windows_…txt
4) Autobrr Sonarr v5.0_…txt

--------------------------------------------------------------------
3. THÈMES TECHNIQUES IDENTIFIÉS
--------------------------------------------------------------------
A. Gouvernance & outillage documentaire
   - Arborescence OneDrive, templates de base (README, ENVIRONMENT, CHANGE_LOG),
     script d’initialisation PowerShell, conventions `.env`.
   - Consignes d’usage Windows/SMB pour éviter effets d’inodes et confusions.

B. Tableau de bord global (phases)
   - Phase 1 : Stabilisation (scripts ARR/qBittorrent, hooks Autobrr, rotation logs).
   - Phase 2 : Automatisation/Monitoring (Notifiarr, cross-seed, quotas Hot→Warm, Grafana, sauvegardes).
   - Phase 3 : MVP (backend, UI, policies, dashboard d’état).
   - Phase 4 : Sécurité & maintenance (reverse proxy, SSO, Watchtower, snapshots).

C. MVP “Seedbox Manager”
   - Backend FastAPI, UI React/Vue, découverte multi-qBittorrent, tiers Hot/Warm/Cold,
     moteur de “policies” et quotas, état temps réel / erreurs.

D. Autobrr → Sonarr v5.0 (hybride)
   - Shell POSIX `/bin/sh` en Exec Autobrr, moteur Python (bencode),
     **SQLite** locale (fallback si purge Autobrr), payload propre pour `/api/v3/release/push`.

--------------------------------------------------------------------
4. CHRONOLOGIE LOGIQUE (RECONSTITUÉE)
--------------------------------------------------------------------
PHASE 1 — Mise en place de la gouvernance (OneDrive/Git/templates).
PHASE 2 — Définition de la roadmap et des jalons (Notifiarr, cross-seed, Grafana).
PHASE 3 — Conception du MVP (orchestrateur web, politiques, UI).
PHASE 4 — Industrialisation du pipeline Autobrr→Sonarr v5.0 (hybride sh+Python+SQLite).

--------------------------------------------------------------------
5. SYNTHÈSE FONCTIONNELLE DU FLUX (v5.0)
--------------------------------------------------------------------
Autobrr (match RSS) → Exec POSIX (/bin/sh)
        → Moteur Python (lecture .torrent, méta, cache SQLite)
        → Génération payload
        → Sonarr `/api/v3/release/push` (ingestion fiabilisée)

--------------------------------------------------------------------
6. ÉTAT DES FICHIERS ET VALIDATION
--------------------------------------------------------------------
| Document                                      | Statut  | Rôle                         |
|-----------------------------------------------|---------|------------------------------|
| Tableau de bord global                        | ✅ Validé | Roadmap phasée               |
| Développement du Seedbox Manager (MVP)        | ✅ Validé | Vision produit/technique     |
| OneDrive + Git + Menus contextuels Windows    | ✅ Validé | Gouvernance & outillage      |
| Autobrr Sonarr v5.0                           | ✅ Validé | Architecture pipeline v5.0   |

--------------------------------------------------------------------
7. POINTS DE VIGILANCE
--------------------------------------------------------------------
- Unification des chemins hôte/containers (volumes `/scripts`, `.env`).
- Protection des secrets (journaux non verbeux sur API keys).
- Gestion SQLite (sauvegarde, WAL, concurrence).
- Risques SMB/Windows (ne pas travailler “à travers” la seedbox en prod).
- POSIX strict (pas de syntaxe Bash si images Alpine/BusyBox).

--------------------------------------------------------------------
8. RECOMMANDATIONS
--------------------------------------------------------------------
- Publier les documents de référence :
  GOVERNANCE_README.txt, ENVIRONMENT.txt, CHANGE_LOG.txt, COMPOSE_STANDARDS.txt.
- Spécifications techniques :
  ARR_PUSH_V5_SPEC.txt (payload, schéma DB), STATE_SCHEMA.txt, WORKFLOW_SEED_NVME_SYNOLOGY.txt.
- Produit :
  ORCHESTRATOR_MVP.txt (endpoints, modules, maquettes), MONITORING_NOTIFIARR_GRAFANA.txt.
- Opérations :
  BACKUP_STRATEGY.txt (SQLite/config), WINDOWS_CONTEXT_MENUS.ps1 (si retenu).

--------------------------------------------------------------------
9. NOTE DE CONTEXTE
--------------------------------------------------------------------
Le Lot E “identifiés” sert de base stable : il fige la gouvernance,
le plan produit et l’architecture v5.0 du pipeline Autobrr→Sonarr.
Les lots A→D expliquent l’itinéraire (essais/échecs/pivots) qui
mènent à ces décisions finalisées.

====================================================================
FIN DU RAPPORT — ARCHIVES LOT E
====================================================================
