fix: treat satisfied cancelled runs as useful autonomy work #53

Merged
andrei merged 1 commit from agent-fullstack/pix-7989-fix-autonomy-run-visibility into master 2026-06-08 11:16:41 +00:00
Owner

Что сделано

  • autonomy refill теперь считает recent useful run не только по succeeded, но и по cancelled run, если у него issueCommentStatus=satisfied и связанная задача уже в terminal status.
  • добавлен regression test на кейс из PIX-7989: свежий completed autonomy-check не должен сразу порождать новый refill только потому, что persisted run остался cancelled.

Проверка

  • python3 -m pytest scripts/daemons/tests/test_autonomy_backlog_refill.py
  • live probe по PIX-7981/PIX-7982/PIX-7983: helper возвращает useful=true для всех трёх реальных runs со статусом cancelled, issueCommentStatus=satisfied, issueStatus=done.
## Что сделано - autonomy refill теперь считает recent useful run не только по `succeeded`, но и по `cancelled` run, если у него `issueCommentStatus=satisfied` и связанная задача уже в terminal status. - добавлен regression test на кейс из PIX-7989: свежий completed autonomy-check не должен сразу порождать новый refill только потому, что persisted run остался `cancelled`. ## Проверка - `python3 -m pytest scripts/daemons/tests/test_autonomy_backlog_refill.py` - live probe по `PIX-7981/PIX-7982/PIX-7983`: helper возвращает `useful=true` для всех трёх реальных runs со статусом `cancelled`, `issueCommentStatus=satisfied`, `issueStatus=done`.
fix: treat satisfied cancelled runs as useful autonomy work
All checks were successful
Agents CI / Typecheck and Build (pull_request) Successful in 2m23s
ace5059c42
andrei merged commit 5ba8164302 into master 2026-06-08 11:16:41 +00:00
andrei deleted branch agent-fullstack/pix-7989-fix-autonomy-run-visibility 2026-06-08 11:16:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
europa-tech-srl/europa-tech-agents!53
No description provided.