Skip to content

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.

byFieldsIt passes when
algorithmrunThe command ends with 0. What it wrote is the points against the work.
algorithmneedsEverything named is in the folder. No model is asked.
agentcheck, agent, modelAnother agent finds what check says true of the work. It only reads.
personaskThe 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.

json
"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.

needFieldsIt is met when
filespath, at_leastAt least at_least files (1 when absent) match path.
folderpathThe folder exists and has something in it.
namespath, filesThe file path names each file that matches files: a caption per picture.
headingspath, headingsThe page has each heading, each with words under it.
repositorypath, branchpath 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.

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