Skip to content

How a plan runs ​

A program that runs plans is called a runner. Every runner does the same things, in the same order.

  1. It checks the plan. A plan with a problem does not run.
  2. It does the steps in order. A step starts when the one before it has passed.
  3. It tells each worker the wish. An agent is also told, before it works, what will prove its work.
  4. It asks the proofs in order. The first that refuses stops the others.
  5. Refused work goes back. It returns to who made it, with the points against it, and every proof is asked again.
  6. The person decides when it repeats. After limits.repeats refused attempts (3 when absent), the person is asked whether to go on.

Starting a run ​

A run starts when someone asks for it, unless start says otherwise:

onA run starts
askedWhen someone asks for it.
scheduleOn some days at a time, such as every Monday at 07:00.
everyEvery so many minutes.
filesWhen a file that matches one of the paths changes.
requestWhen another program asks the runner.

Limits ​

limits says how far one run may go: how many repeats (repeats), how many minutes (minutes, 60 when absent), how much one run may cost (cost) and how much all runs may cost in a month (month). A runner stops a run that reaches a limit and says why.

What a runner keeps ​

A runner keeps, for each run, what each step answered and each proof asked, with its result and points. That record is what lets anyone see that each step was proven.

See the specification of running a plan for every rule.

Code, schema and examples under the Apache License 2.0. Guide text also under CC BY 4.0.