Агент v9 и run.py v2: устойчивость самообновления, диагностика, фейки (#23) #24

Merged
aep merged 14 commits from feat/23-agent-v9 into main 2026-10-14 23:51:05 +03:00
Showing only changes of commit ebbd5d74dc - Show all commits

View File

@ -556,7 +556,11 @@ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>"
def test_command_arrives_during_long_claim(self):
self.hub.claim_wait = 5.0
threading.Timer(0.3, lambda: self.hub.enqueue("ensure_fields", {"key": "AURORA-1", "duedate": "2026-10-23"})).start()
def arrive():
self.hub.enqueue("ensure_fields", {"key": "AURORA-1", "duedate": "2026-10-23"})
self.hub.claim_wait = 0 # следующий claim (после отчёта) — без ожидания
threading.Timer(0.3, arrive).start()
start = time.monotonic()
self.runner.loop()
self.assertLess(time.monotonic() - start, 4) # ответ пришёл с командой, а не по таймауту