Some checks failed
security-audit / Bandit (scan statique) (push) Successful in 14s
security-audit / pip-audit (CVE dépendances) (push) Successful in 12s
security-audit / Scan secrets (grep) (push) Successful in 9s
tests / Lint (ruff + black) (push) Successful in 15s
tests / Tests sécurité (critique) (push) Has been cancelled
tests / Tests unitaires (sans GPU) (push) Has been cancelled
Vrais bugs corrigés :
- core/execution/target_resolver.py : suppression de 5 lignes de dead code
après return (vestige de refacto incomplète référençant des params
jamais assignés à self : similarity_threshold, use_spatial_fallback)
- agent_v0/agent_v1/core/executor.py:2180 : variable `prefill` référencée
mais jamais définie. Initialisation explicite ajoutée en amont
(conditionnée sur _is_thinking_popup, cohérent avec l'append du message)
Fichier supprimé :
- core/security/input_validator_new.py : contenu corrompu (texte inversé,
artefact de copier-coller), jamais importé nulle part, 550 erreurs ruff
à lui seul
Workflow CI :
- Exclusions ajoutées pour dossiers legacy connus cassés :
- agent_v0/deploy/windows_client/ (clone obsolète)
- tests/property/ (cf. MEMORY.md — imports cassés)
- tests/integration/test_visual_rpa_checkpoint.py (VisualMetadata
inexistant, déjà documenté)
Résultat : "ruff All checks passed!" sur core/ agent_v0/ tests/
(avec E9,F63,F7,F82 — syntax + undefined critiques).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
40 lines
973 B
Desktop File
40 lines
973 B
Desktop File
[Unit]
|
|
Description=RPA Vision V3 - Streaming Server (FastAPI, port 5005)
|
|
Documentation=https://lea.labs.laurinebazin.design
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
# ---- Runtime ----
|
|
User=dom
|
|
Group=dom
|
|
WorkingDirectory=/home/dom/ai/rpa_vision_v3
|
|
EnvironmentFile=/home/dom/ai/rpa_vision_v3/.env.local
|
|
Environment="PYTHONUNBUFFERED=1"
|
|
Environment="RPA_SERVICE_NAME=rpa-streaming"
|
|
|
|
# Lancement via le module Python (même commande que svc.sh)
|
|
ExecStart=/home/dom/ai/rpa_vision_v3/.venv/bin/python3 -m agent_v0.server_v1.api_stream
|
|
|
|
# ---- Resilience ----
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
TimeoutStopSec=30
|
|
# Envoyer SIGTERM d'abord, puis SIGKILL après TimeoutStopSec
|
|
KillMode=mixed
|
|
KillSignal=SIGTERM
|
|
|
|
# ---- Hardening (raisonnable pour un poste de dev/prod) ----
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
|
|
# Logs -> journald
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=rpa-streaming
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|