Steps
Draft
This version may still change before it is published.
A step is one object:
| Field | For | Meaning |
|---|---|---|
id | every step | What the other steps call it: 1 to 24 of a to z, 0 to 9 and -, unique in the plan, and not asked. |
do | every step | What to do, in words. Not blank. |
by | every step | Who does it: agent, algorithm, person or plan. |
proof | see Proofs | What proves the work: one proof, or a list of 1 to 8 asked in order. All MUST pass. |
run | algorithm only | The command line. Required for an algorithm. |
on_fail | algorithm only | agent: an agent is put behind the command (An algorithm's step). |
agent | agent only | A named agent, from those the runner knows. Any agent the runner chooses when absent. |
model | agent only | The model the agent uses, by a name the runner knows. The runner's default when absent. |
tools | agent only | The only kinds of tools the agent may use (Kinds of tools). Every kind when absent. |
plan | plan only | The name of another plan, which runs as this step. Required for a plan. |
Who does a step
agent: an agent is asked to do whatdosays. Its step MUST carry a proof, since an agent does not set the measure of its own work.algorithm: the command inrunis 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 whatdosays 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 plannamein the filename.vpf.json.
Kinds of tools
| Kind | The agent may |
|---|---|
read | Read the folder's files and look at them. |
write | Write, change and remove the folder's files. |
commands | Run commands. |
internet | Reach the web. |
screen | See 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 stepid.{{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.