yarn install
yarn test # the validator's own tests
yarn validate # every example in examples/
node scripts/validate-examples.js my.json # one response
node scripts/validate-examples.js --chain rounds/ # an ordered chain of rounds
The validator checks the JSON Schema and the rules a schema cannot express. The spec marks every rule the validator checks with [V]. The rules beyond the schema are:
- the verdict agrees with the findings;
- finding ids are unique within a response;
- a finding of a deterministic gate uses a
commandorpreviewcheck; - complete coverage lists the class of every finding;
- the attempt budget is respected;
- in a chain,
attempt.nequals the round number; - a
still-open,regressedorcarriedid is consistent across a chain; - two rounds of one chain do not carry the same response
id.