Cap Repair Attempts Before a Free Server Restarts
Описание и применение
Гейт ограничивает попытки ремонта на бесплатном сервере, фиксируя поверхность развертывания и количество попыток, чтобы избежать лишних расходов.
Задача
Prevent infinite repair loops on free-hosted servers by limiting local repair attempts and enforcing a frozen deployment surface.
Результат
The gate prevents unlimited repair attempts, keeping the server free of charge and ensuring only safe, declared changes are applied.
Рабочий процесс
- Freeze deployment surface in surface.json before any model call.
- Assign a change id and record it in attempts.json.
- Store raw patch suggestions next to the change id without applying them.
- Run the local gate to validate the suggestion against surface constraints.
- Apply only suggestions that pass the gate and restart the single process.
- Stop when the attempt count reaches the ceiling, shipping the last known‑good tree or reverting the change id.
Доказательства
The gate records attempts on disk, refuses a wider surface, and stops the loop before the host becomes a second product.
Two files hold the contract. surface.json freezes the command, the port, and the paths the route may touch. attempts.json counts repair rounds for one change id.
The script is a proposal. It has not been executed against a live host for this draft.
- Дата записи: 2026-10-13T03:41:13.122Z