Skip to content

feat(P1-10): contrôle de changement avant réveil d'agent (NE PAS FUSIONNER sans accord de Mathieu) - #228

Merged
bobdivx merged 1 commit into
mainfrom
feat/plan-p1-10-change-check
Oct 12, 2026
Merged

bobdivx merged 1 commit into
mainfrom
feat/plan-p1-10-change-check

Conversation

@bobdivx

@bobdivx bobdivx commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Plan P1-10. Ne pas fusionner ni déployer : en attente de validation par Mathieu.

  • Empreinte de l'état observé (déploiement prod, statut, brouillon, smoke) avant chaque réveil automatique (routines, crons agent, santé) ; état inchangé → exécution ignorée et journalisée.
  • Journal agent_wake_log (lancé / terminé / ignoré ×N / échec, cause, empreinte, run) + route GET /api/v1/projects/{uuid}/wake-log ; décisions P1-07 et refus de l'auto-deploy guard journalisés aussi.
  • Un échec est retenté seulement au prochain changement d'état.
  • Exécutions non surveillées : écriture distante → carte d'approbation (unattended: true), même avec grant ; le travail reste dans le brouillon.
  • UI : « Historique des réveils » dans l'onglet Crons. Android : pas de liste de crons, rien à ajouter.

Tests : replay Postgres (12 ticks identiques → 1 exécution + 11 ignorées ; changement → exécution ; échec journalisé puis retenté au changement), table de décision, déclencheurs non surveillés, unattended_run_stops_at_approval_even_with_grant, Vitest WakeLogPanel.

…al des réveils + exécutions non surveillées en brouillon
@bobdivx
bobdivx merged commit 732d88e into main Oct 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant