Skip to content

Proofs ​

A proof is a read-only check the machine runs. A chart has three kinds, for three questions.

chart.json: proofs
json
{
  "installed": [{ "type": "agent", "id": "brief" }],
  "ready": [
    { "type": "need", "id": "channel" },
    { "type": "automation", "key": "morning-brief", "enabled": true }
  ],
  "alive": [
    {
      "id": "ran",
      "check": {
        "type": "automation",
        "key": "morning-brief",
        "ranWithinHours": 26
      },
      "every": "1h",
      "repair": ["rerun"]
    }
  ]
}

examples/chart-agent/morning-brief/chart.json#/proofs

The questionWhen it is read
installedIs it on the machine?after the parts
readyDoes it work now?at the end of the install; the release is Ready when all pass
aliveDoes it still work?on a period (every), by the guard loop

An alive proof that fails grace times in a row opens an incident: it names the repairs that may be tried. Without one, the owner is asked.

What a check may read ​

A check reads: is a program on the path, is an agent there, is a channel paired, has an automation run in the last hours, does a service answer on its port. It never returns what it read, never reads a secret, and never changes anything.

Why the run alone proves nothing ​

A program can exit 0 and leave nothing behind. Only the proof turns a part green, and only a passing proof ends an incident.

What's next

Alta OS is open source (MIT).