Run artifact

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

FEATURE: Input and Diagnostics

FieldValue
Version20261028 V1
DescriptionProvide jq input, environment, location, and diagnostic filters.
Depends OnFEATURE-Traversal.md
Providesjq input and diagnostic builtins
Consumesjq traversal and streaming builtins

Purpose

Provide the input and diagnostic facilities described by the jq manual, sharing the interpreter's input stream and preserving its output stream.

Behavior

Programmatic Acceptance

=== AC input-diagnostics-corpus ===
Intent: Input exhaustion, diagnostics, and source locations execute the corresponding corpus cases.
Suite: scoped
Requires: executable=python3; scope=test
Probe: --list
Probe Count: summary

import json import os import subprocess import sys

SELECT = r"\b(?:input|debug)\b|\$loc" 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"] 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 input-diagnostics-corpus ===

User Acceptance

Guardrails