<requirement name="stage-scoring-instrument" stories="corpus-staging,terminal-verification">
This is the scoring instrument. It is supplied, not authored: it is staged verbatim into the
build directory, hash-verified against the import, and restored before grading. Its exit status
is the acceptance verdict.
</requirement>
<requirement name="pass-conformance-corpus" stories="lexer,parser,core,constructors,operators,control,bindings,paths,assignment,loops,conversion,collection-builtins,strings,formats,numeric,dates,traversal,io,sql,cli,scoped-integration,terminal-verification">
Run the upstream jq conformance corpus against a candidate implementation.
</requirement>
<requirement name="provide-candidate-command" stories="cli,documentation">
JQ command that runs the candidate. Required -- this harness is language-neutral
and deliberately has no default implementation language.
</requirement>
<requirement name="reject-invalid-programs" stories="lexer,parser,cli">
``expect_failure`` cases are the corpus's ``%%FAIL`` blocks. Upstream compares their
diagnostic text; this runner requires only that the candidate reject the program.
</requirement>
<requirement name="distinguish-error-exits" stories="parser,control,cli">
jq's documented exit codes, which this kit's interface contract adopts. The distinction is
#: load-bearing: the corpus's %%FAIL cases are programs that must not compile, while an ordinary
#: case may legitimately raise at run time part-way through its output and still be correct.
</requirement>
<requirement name="compare-json-values" stories="operators,core">
Structural, not textual: ``1`` and ``1.0`` are the same jq value and the corpus relies on
that. Python's ``==`` almost does this, but it also equates ``True`` with ``1`` and
``False`` with ``0``, which jq does not; booleans are therefore matched by identity of type
before anything else.
</requirement>
<unattached story="foundation"/>
</final>Run artifact