Run artifact

workspace/targets/jq/blueprint/FEATURE-Documentation.md

FEATURE: Usage Documentation

FieldValue
Version20261028 V1
DescriptionDocument the standalone command and its verification interface.
Depends OnFEATURE-Command.md
Providesjq usage documentation
Consumes./jq -c

Purpose and behavior

Deliver a concise application-root README describing ./jq -c '<program>', JSON input on standard input, compact JSON values on standard output, the completion, compilation-error, and runtime-error exit codes 0, 3, and 5, and the supplied sh sources/full_test.sh verification command. Diagnostics are written to standard error.

Programmatic Acceptance

=== AC documented-command ===
Intent: The documented command accepts JSON input and returns the input value as JSON.
Requires: executable=python3; scope=test

import json import subprocess import sys

value = {"items": [1, 2]} result = subprocess.run( ["./jq", "-c", "."], input=json.dumps(value), capture_output=True, text=True ) print(result.stdout) print(result.stderr, file=sys.stderr) assert result.returncode == 0 assert json.loads(result.stdout) == value === END AC documented-command ===

=== AC documented-corpus ===
Intent: The documented command passes an executing slice of identity filters.
Suite: scoped
Requires: executable=python3; scope=test
Probe: --list
Probe Count: summary

import json import os import subprocess import sys

SELECT = r"^\.$" result = subprocess.run( [sys.executable, "sources/run_conformance.py", "--select", SELECT, "--json"], capture_output=True, text=True, env={**os.environ, "JQ": os.path.abspath("jq")}, ) print(result.stdout) print(result.stderr, file=sys.stderr) report = json.loads(result.stdout) tally = report["summary"] print(f"{tally['pass']} passed, {tally['fail']} failed, {tally['error']} errored") assert sum(tally.values()) > 0, f"selector matched no case: {SELECT}" assert tally["fail"] == 0 and tally["error"] == 0, tally assert result.returncode == 0, result.returncode === END AC documented-corpus ===

User Acceptance

Guardrails