Run artifact

workspace/targets/jq/blueprint/FEATURE-FUNC-001.md

FEATURE: Lexical Variable Bindings

FieldValue
Version20260822 V1
DescriptionProvides jq lexical value bindings and variable lookup.
Depends OnARCHITECTURE.md, FEATURE-FLOW-006.md
Providesas bindings, variable lookup, lexical scope, shadowing
Consumesgenerator evaluator, parser AST

Workflow

Bindings evaluate the left-hand filter as a generator, bind each produced value lexically, and run the remainder of the expression with the original input and the active binding environment.

Programmatic Acceptance

=== AC func-001-conformance ===
Intent: The executable passes the authoritative conformance cases exercising lexical bindings and variable lookup.
Suite: scoped
Requires: executable=python3; scope=test

import json import os import subprocess import sys

SELECT = r" as \$|\$[A-Za-z]" result = subprocess.run( [sys.executable, "sources/run_conformance.py", "--select", SELECT, "--json"], capture_output=True, text=True, env={**os.environ, "JQ": f"{os.getcwd()}/jq"}, ) print(result.stdout) print(result.stderr, file=sys.stderr) report = json.loads(result.stdout) tally = report["summary"] assert sum(tally.values()) > 0 assert tally["fail"] == 0 and tally["error"] == 0 assert result.returncode == 0 === END AC func-001-conformance ===

User Acceptance

Guardrails