fix: address track1-worker-compromise verify findings

- restore a verified row by fact: three variants give ready, otherwise
  failed with a known code instead of ready without content
- check trigger functions are not SECURITY DEFINER and pin search_path
- record the working stand comparison, the permanent drill lock file and
  the remaining SeaweedFS details

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 05:50:36 +03:00
co-authored by Claude Opus 5.5
parent 55959e3805
commit 5a9721876e
15 changed files with 299 additions and 56 deletions
+7 -1
View File
@@ -286,7 +286,13 @@ def stand_problem() -> str | None:
class Guard:
"""Блокировка прогона и уборка: один прогон на машину."""
"""Блокировка прогона и уборка: один прогон на машину.
Файл блокировки `$TMPDIR/mtusi-track1.lock` постоянный и уборкой не
удаляется: удалённый файл под `flock` второго прогона дал бы третьему
новый inode и вторую блокировку рядом с действующей. Остатком он не
считается — шаблон каталогов прогона `mtusi-track1-*` его не захватывает.
"""
def __init__(self) -> None:
self.path = Path(tempfile.gettempdir()) / LOCK_NAME