# Evidence: Block 20 · Service (block-20)

- block type: block
- date: 2026-10-28
- resulting state: closed/verified
- story points (combined assembled cost): 4818
- execution id: 20261028.174218.760Z-cd4d60fc

## Stories built
- Implement jq input, environment, and diagnostic filters. (io) [story]

## Acceptance tooling authorization
- FEATURE-InputDiagnostics.md#input-diagnostics-corpus: executable=python3; scope=test; authorization=existing Target environment

## Stacked context
- stack: python_compact.md (SP 654)
- compass: COMPASS.md (SP 3420)
- implements: FEATURE-InputDiagnostics.md (SP 561)
- context: ARCHITECTURE_compact.md (SP 129)

## Build directory changes
- jq_interpreter/command.py
- jq_interpreter/evaluator.py
- jq_interpreter/parser.py
- tests/test_input_diagnostics.py

## Pre-build acceptance observation
- RED: input-diagnostics-corpus (FEATURE-InputDiagnostics.md)
  intent: Input exhaustion, diagnostics, and source locations execute the corresponding corpus cases.
  return code: 1
  stdout:
    {
      "candidate": [
        "/mnt/c/Users/barlo/projects/drydock/uat/jq/runs/20261028.145919/build/jq/jq"
      ],
      "corpus": "jq.test",
      "summary": {
        "pass": 0,
        "fail": 4,
        "error": 0,
        "skip": 0
      },
      "cases": [
        {
          "line": 1499,
          "program": "try error(\"\\($__loc__)\") catch .",
          "status": "fail",
          "detail": "program did not compile: expected expression at 1:14",
          "expect_failure": false,
          "expected": [
            "\"{\\\"file\\\":\\\"<top-level>\\\",\\\"line\\\":1}\""
          ],
          "actual": []
        },
        {
          "line": 2304,
          "program": "{ a, $__loc__, c }",
          "status": "fail",
          "detail": "program did not compile: invalid object key at 1:6",
          "expect_failure": false,
          "expected": [
            "{\"a\":[1,2,3],\"__loc__\":{\"file\":\"<top-level>\",\"line\":1},\"c\":{\"hi\":\"hey\"}}"
          ],
          "actual": []
        },
        {
          "line": 2337,
          "program": "try input catch .",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "\"break\""
          ],
          "actual": [
            "\"unknown function input\""
          ]
        },
        {
          "line": 2341,
          "program": "debug",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "1"
          ],
          "actual": []
        }
      ]
    }
  stderr:
    --- drydock: progress ---
    cases: pass=0 fail=4 error=0 skip=0 total=4 from=tally
    --- drydock: end progress ---
    --- drydock: values at failure ---
      tally = {'pass': 0, 'fail': 4, 'error': 0, 'skip': 0}
    --- drydock: end values ---
    Traceback (most recent call last):
      File "input-diagnostics-corpus.py", line 17, in <module>
        assert tally["fail"] == 0 and tally["error"] == 0, tally
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError: {'pass': 0, 'fail': 4, 'error': 0, 'skip': 0}

## Post-build programmatic acceptance
- PASS: input-diagnostics-corpus (FEATURE-InputDiagnostics.md)
  intent: Input exhaustion, diagnostics, and source locations execute the corresponding corpus cases.
  target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python
  provisioning: not required
  return code: 0
  stdout:
    {
      "candidate": [
        "/mnt/c/Users/barlo/projects/drydock/uat/jq/runs/20261028.145919/build/jq/jq"
      ],
      "corpus": "jq.test",
      "summary": {
        "pass": 4,
        "fail": 0,
        "error": 0,
        "skip": 0
      },
      "cases": []
    }

## Build summary
RESULT: SUCCESS

FILES CHANGED:
- jq_interpreter/command.py
- jq_interpreter/evaluator.py
- jq_interpreter/parser.py
- tests/test_input_diagnostics.py

SUMMARY:
Implemented shared `input`/`inputs`, `$ENV`, `env`, `debug`, `stderr`, and `$__loc__` support. Added regression tests.

Checks:
- `pytest -q`: passed
- Scoped conformance: 4 passed, 0 failed, 0 errored

BLOCKERS:
- None
