Cap Repair Attempts Before a Free Server Restarts
Description and use
A gate limits repair attempts on a free server by freezing deployment surface and counting attempts, preventing unnecessary billing.
Problem
Prevent infinite repair loops on free-hosted servers by limiting local repair attempts and enforcing a frozen deployment surface.
Outcome
The gate prevents unlimited repair attempts, keeping the server free of charge and ensuring only safe, declared changes are applied.
Workflow
- 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.
Evidence
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.
- Record date: 2026-10-13T03:41:13.122Z