feat: conformité AI Act — divulgation IA, consentement, rétention, arrêt urgence

- Léa se présente comme "assistante basée sur l'intelligence artificielle"
- Dialog consentement avant enregistrement (capture écran/clavier)
- Rétention logs 180 jours (Article 12 + 26(6))
- Bouton ARRÊT D'URGENCE toujours visible (Article 14)
- Transparence mode autonome explicite (Article 50)
- Rapport conformité AI Act en français (docs/CONFORMITE_AI_ACT.md)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dom
2026-03-18 16:57:43 +01:00
parent 353c2a347e
commit f340eab628
7 changed files with 424 additions and 23 deletions

View File

@@ -14,7 +14,7 @@ import uuid
import time
import logging
import threading
from .config import SESSIONS_ROOT, AGENT_VERSION, SERVER_URL, MACHINE_ID
from .config import SESSIONS_ROOT, AGENT_VERSION, SERVER_URL, MACHINE_ID, LOG_RETENTION_DAYS
from .core.captor import EventCaptorV1
from .core.executor import ActionExecutorV1
from .network.streamer import TraceStreamer
@@ -51,7 +51,8 @@ class AgentV1:
self.session_dir = None
# Gestion du stockage local et nettoyage
self.storage = SessionStorage(SESSIONS_ROOT)
# Retention minimum 6 mois (Reglement IA, Article 12)
self.storage = SessionStorage(SESSIONS_ROOT, retention_days=LOG_RETENTION_DAYS)
threading.Thread(target=self._delayed_cleanup, daemon=True).start()
self.vision = None