Proofs
A proof says how the work of a step is known to be done. It is written before the work, and there are three kinds.
by | Fields | It passes when |
|---|---|---|
algorithm | run | The command ends with 0. What it wrote is the points against the work. |
algorithm | needs | Everything named is in the folder. No model is asked. |
agent | check, agent, model | Another agent finds what check says true of the work. It only reads. |
person | ask | The person approves. |
A step can have one proof or a list of up to eight. They are asked in order, and all must pass.
Cheapest first
Put the cheapest proof first: an algorithm, then an agent, then a person. A person is then asked only about work that already stands.
"proof": [
{ "by": "algorithm", "needs": [{ "need": "files", "path": "report/report.md" }] },
{ "by": "agent", "check": "Every number in the report is the same as in report/sales.csv." },
{ "by": "person", "ask": "Is this report ready to send?" }
]Needs
A proof by an algorithm can name what the work must leave in the folder, with no command to write.
need | Fields | It is met when |
|---|---|---|
files | path, at_least | At least at_least files (1 when absent) match path. |
folder | path | The folder exists and has something in it. |
names | path, files | The file path names each file that matches files: a caption per picture. |
headings | path, headings | The page has each heading, each with words under it. |
repository | path, branch | path is a version-control repository, on branch when given. |
Every path stays inside the folder, and * stands for any text within a name.
Who judges
The agent that proves a step is never the agent that did it, and it only reads: it can look at the work, not change it. That is the second rule: who makes a piece of work may check it, and never sets its measure.
See the specification of proofs for every rule.