Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Build a Go/No-Go File for an Unattended AI Worker

Описание и применение

Создайте файл gates.json и скрипт runner.py, чтобы гарантировать, что автономный AI‑worker запускается только при выполнении всех предопределённых условий, предотвращая бесконтрольные процессы и скрытые расходы.

Задача

Running an AI worker unattended can lead to runaway processes, unnecessary costs, and silent failures when remote services become unavailable.

Результат

The worker runs only when all safety gates are satisfied, preventing runaway execution, ensuring cost control, and providing clear failure diagnostics.

Рабочий процесс

  • 1. Create gates.json with required parameters (heartbeat_path, max_wall_seconds, max_remote_calls, empty_output_policy, output_allowlist, stop_file, stub_command, min_free_mb, probe_attempts, probe_timeout_seconds).
  • 2. Ensure the stub command (e.g., python stub_classify.py) is available on PATH.
  • 3. Run the go/no-go checker script (runner.py) before launching the worker. It validates all gates and writes a heartbeat file.
  • 4. If the checker exits with code 0, start the worker; otherwise, abort or wait.
  • 5. The worker writes output only to allowed directories and respects the heartbeat and stop file signals.

Доказательства

The runner never calls the remote model. It only answers go or no-go for launch.

Источник

Eight gates I refuse to skip

Источник

  • Дата записи: 2026-09-16T15:30:27.680Z