Run artifact

workspace/targets/jq/blueprint/FEATURE-FLOW-002.md

FEATURE: Boolean and Alternative Operators

FieldValue
Version20220822 V1
DescriptionProvide jq Boolean, negation, defined-or, and defined-or assignment operators.
Depends OnARCHITECTURE.md, FEATURE-FLOW-001.md
Providesand, or, not, defined-or, defined-or assignment
Consumesordered generator evaluator, truthiness and comparison

Intent

Implement and, or, not, //, and //= with jq truthiness and generator-aware short-circuiting. False and null are falsey; all other values are truthy. Alternative expressions must emit all valid left-hand outputs or fall back to the right-hand generator.

Programmatic Acceptance

=== AC flow-002-conformance ===
Intent: The implementation passes the authoritative corpus slice covering Boolean and alternative operators.
Suite: scoped
Requires: executable=python3; scope=test

import json import os import subprocess import sys

select = r"and|or|not|//" 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) summary = report["summary"] assert sum(summary.values()) > 0 assert summary["fail"] == 0 and summary["error"] == 0 assert result.returncode == 0 === END AC flow-002-conformance ===

User Acceptance

Guardrails