Skip to content

Steps ​

Draft

This version may still change before it is published.

A step is one object:

FieldForMeaning
idevery stepWhat the other steps call it: 1 to 24 of a to z, 0 to 9 and -, unique in the plan, and not asked.
doevery stepWhat to do, in words. Not blank.
byevery stepWho does it: agent, algorithm, person or plan.
proofsee ProofsWhat proves the work: one proof, or a list of 1 to 8 asked in order. All MUST pass.
runalgorithm onlyThe command line. Required for an algorithm.
on_failalgorithm onlyagent: an agent is put behind the command (An algorithm's step).
agentagent onlyA named agent, from those the runner knows. Any agent the runner chooses when absent.
modelagent onlyThe model the agent uses, by a name the runner knows. The runner's default when absent.
toolsagent onlyThe only kinds of tools the agent may use (Kinds of tools). Every kind when absent.
planplan onlyThe name of another plan, which runs as this step. Required for a plan.

Who does a step ​

  • agent: an agent is asked to do what do says. Its step MUST carry a proof, since an agent does not set the measure of its own work.
  • algorithm: the command in run is the work. It did its work when it ended with the exit code 0. Its step MAY carry proofs; the command ending with 0 is always the first.
  • person: the person is asked what do says and answers with a text. A person's step MUST NOT carry a proof: their word stands.
  • plan: another plan runs as this step. Its own steps carry its proofs, so this step MUST NOT carry one. How a runner finds a plan by its name is the runner's own; a runner that reads plans from a folder SHOULD find the plan name in the file name.vpf.json.

Kinds of tools ​

KindThe agent may
readRead the folder's files and look at them.
writeWrite, change and remove the folder's files.
commandsRun commands.
internetReach the web.
screenSee and use the computer's screen, mouse and keys.

A runner MUST NOT give an agent a tool of a kind its step does not list, when the step lists kinds.

References ​

A text of a step may name what came before it:

  • {{id}} is the answer of the earlier step id.
  • {{asked}} is what the run was started with: the person's words when asked, or what the starting event carried.

Spaces inside the braces are ignored. The texts that may hold references are a step's do and run, and the run, check and ask of its proofs and the paths of their needs. A reference in do or run MUST name asked or a step written before the one it is in. A proof is asked after the work it proves, so a reference in a proof MAY also name its own step. A runner fills each reference with the text it names before the text is used.

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