Problems
Draft
This version may still change before it is published.
A checker tells each problem with a reason that does not change, the step it is about when it is about one, and a sentence. A reason is an id, so that any program can say it in the reader's language.
A file that is not JSON, has no $schema or another one, has a field this specification does not define, or has a field of the wrong type, is not a plan. A checker MUST refuse it as a whole and SHOULD say why, with the reason file.invalid.
A checker MUST find each of these problems:
| Reason | The problem |
|---|---|
file.invalid | The file is not a plan: not JSON, another $schema, a field not defined, or a wrong type. |
plan.wish | The plan does not say what the person wishes. |
plan.steps | The plan has no step, or more than 200. |
start.days | A schedule has no day. |
start.time | A schedule's time is not HH:MM from 00:00 to 23:59. |
start.minutes | A run every so many minutes is set to 0. |
start.paths | A start on files names no path. |
limits.repeats | limits.repeats is not 1 to 100. |
limits.minutes | limits.minutes is not 1 to 10080. |
limits.cost | limits.cost is not more than 0. |
limits.month | limits.month is not more than 0. |
step.id | An id is not 1 to 24 of a to z, 0 to 9 and -, or it is asked. |
step.duplicate | Two steps have the same id. |
step.do | A step does not say what to do. |
step.run | An algorithm has no command, or a step done by someone else has one. |
step.plan | A step done by a plan names none, or a step done by someone else names one. |
step.agent | A step no agent does chooses an agent, a model or tools. |
step.on_fail | A step that is not done by an algorithm has someone behind it. |
proof.missing | A step an agent does has no proof. |
proof.misplaced | A step a person or another plan does carries a proof. |
proof.count | A step has more than 8 proofs. |
proof.algorithm | A proof by an algorithm has neither a command nor needs, or has both. |
proof.agent | A proof by an agent does not say what to look for. |
proof.same_agent | The agent that does a step is the one that judges it. |
proof.fields | A proof has a field of another kind of proof. |
need.path | A need has no path, or its path is outside the folder. |
need.at_least | A need of files asks for at least 0. |
need.files | A need of names does not say which files. |
need.headings | A need of headings names no heading. |
reference.unknown | A text names something that is neither asked nor a step. |
reference.not_before | A text names its own step or a later one where it may not. |
A checker MAY also tell problems only a runner can know, such as a named agent, model or plan it does not have, with reasons of its own outside these families. A checker MAY tell the problems of references only once a plan has no other problem.