English
Repairs and standing grants
When an alive proof fails, a chart may offer repairs from a closed list. Each one is asked, every time, until the owner allows it in advance. That standing yes is a grant.
alta-os chart.json: repairs
json
[
{
"id": "restart-ollama",
"kind": "service.restart",
"args": { "id": "ollama" },
"suggest": true
},
{
"id": "pull-embeddings",
"kind": "model.pull",
"args": { "model": "qwen3-embedding:0.6b" },
"suggest": true
},
{ "id": "recover-gateway", "kind": "gateway.recover", "suggest": true }
]The kinds
| Kind | Runs | May be allowed in advance | Runs per day at most |
|---|---|---|---|
service.restart | service.restart | yes, by the owner, one box per repair | 6 |
model.pull | model.pull | yes, by the owner, one box per repair | 6 |
gateway.recover | gateway.recover | yes, by the owner, one box per repair | 6 |
signin.refresh | signin.refresh | not yet: always asked | 6 |
channel.reconnect | channel.reconnect | not yet: always asked | 6 |
automation.rerun | automation.run | never: always asked | 1 |
part.reapply | part | never: always asked | 6 |
signin.again | signin | never: always asked | 6 |
channel.pair | channel.pair-approve | never: always asked | 6 |
Signing in again, pairing a device, applying a part again or anything that asks for more rights can never be allowed in advance.
A grant
- Explicit. One box per repair, unticked, on the install plan or later with
alta repairs grant <chart> <repair>. Every box starts unticked, Alta's own charts included. A chart'ssuggestonly adds the words "suggested by the author". - Scoped. One repair of one chart. If a new version changes that repair or its target, the grant is void and the owner is told.
- Never expires until the owner revokes it:
alta repairs revoke <chart> <repair>.alta repairs pausestops every automatic repair at once;alta repairs resumestarts them again. - Logged. Each use and each refusal is one line of the Guardian's journal (
alta repairs log): no value, no output of the program. - Machine switch. The server must be started with
--allow-repair. Without it, every repair is asked.
One incident
- The proof fails,
gracetimes in a row: an incident opens. - The first granted repair of the proof's list runs at once; if the proof still fails, again 1 minute later, then 5 minutes after that.
- Then the next repair of the list, the same way.
- The proof passes: the incident closes. Only the proof decides, never the program's exit code.
- Nothing left to try: the release is
Driftedwith the reasonRepairGaveUp, and the owner is asked once.
Daily caps, a flapping proof (three incidents in a day) and a machine-wide circuit breaker stop automatic repairs until the owner looks.
Who does what
| Who | Does |
|---|---|
| The guard loop | Reads the proofs, decides, runs only granted repairs, writes the journal. A script, no model; it works when the agents are down. |
| The Guardian | Tells the owner what was repaired, asks for the rest, may suggest a grant. It never gives one and never runs a repair. |
| The owner | Gives, sees and takes back every grant. |