Skip to content

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:

ReasonThe problem
file.invalidThe file is not a plan: not JSON, another $schema, a field not defined, or a wrong type.
plan.wishThe plan does not say what the person wishes.
plan.stepsThe plan has no step, or more than 200.
start.daysA schedule has no day.
start.timeA schedule's time is not HH:MM from 00:00 to 23:59.
start.minutesA run every so many minutes is set to 0.
start.pathsA start on files names no path.
limits.repeatslimits.repeats is not 1 to 100.
limits.minuteslimits.minutes is not 1 to 10080.
limits.costlimits.cost is not more than 0.
limits.monthlimits.month is not more than 0.
step.idAn id is not 1 to 24 of a to z, 0 to 9 and -, or it is asked.
step.duplicateTwo steps have the same id.
step.doA step does not say what to do.
step.runAn algorithm has no command, or a step done by someone else has one.
step.planA step done by a plan names none, or a step done by someone else names one.
step.agentA step no agent does chooses an agent, a model or tools.
step.on_failA step that is not done by an algorithm has someone behind it.
proof.missingA step an agent does has no proof.
proof.misplacedA step a person or another plan does carries a proof.
proof.countA step has more than 8 proofs.
proof.algorithmA proof by an algorithm has neither a command nor needs, or has both.
proof.agentA proof by an agent does not say what to look for.
proof.same_agentThe agent that does a step is the one that judges it.
proof.fieldsA proof has a field of another kind of proof.
need.pathA need has no path, or its path is outside the folder.
need.at_leastA need of files asks for at least 0.
need.filesA need of names does not say which files.
need.headingsA need of headings names no heading.
reference.unknownA text names something that is neither asked nor a step.
reference.not_beforeA 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.

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