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

- block type: block
- date: 2026-10-28
- resulting state: closed/verified
- story points (combined assembled cost): 5101
- execution id: 20261028.161331.133Z-bddb1a00

## Stories built
- Evaluate basic filters as ordered generators. (core) [story]

## Acceptance tooling authorization
- FEATURE-GeneratorCore.md#core-corpus: executable=python3; scope=test; authorization=existing Target environment

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

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

## Pre-build acceptance observation
- RED: core-stream (FEATURE-GeneratorCore.md)
  intent: Identity, comma, and pipe preserve input, ordering, and multiplicity through the evaluator.
  return code: 1
  stderr:
    --- drydock: values at failure ---
      value = {'item': [1, 2]}
    --- drydock: end values ---
    Traceback (most recent call last):
      File "core-stream.py", line 6, in <module>
        assert list(evaluate(parse("., . | ."), value)) == [value, value]
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError
- GREEN (prepassed): core-lazy (FEATURE-GeneratorCore.md)
  intent: A consumer can take the first generated result without evaluating a later runtime error.
  return code: 0
- RED: core-corpus (FEATURE-GeneratorCore.md)
  intent: The basic literal and identity corpus cases execute successfully through the command interface.
  return code: 1
  stdout:
    {
      "candidate": [
        "/mnt/c/Users/barlo/projects/drydock/uat/jq/runs/20261028.145919/build/jq/jq"
      ],
      "corpus": "jq.test",
      "summary": {
        "pass": 1,
        "fail": 9,
        "error": 0,
        "skip": 0
      },
      "cases": [
        {
          "line": 8,
          "program": "true",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "true"
          ],
          "actual": [
            "null"
          ]
        },
        {
          "line": 12,
          "program": "false",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "false"
          ],
          "actual": [
            "null"
          ]
        },
        {
          "line": 16,
          "program": "null",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "null"
          ],
          "actual": [
            "42"
          ]
        },
        {
          "line": 20,
          "program": "1",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "1"
          ],
          "actual": [
            "null"
          ]
        },
        {
          "line": 25,
          "program": "-1",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "-1"
          ],
          "actual": [
            "null"
          ]
        },
        {
          "line": 48,
          "program": ".",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "\"byte order mark\""
          ],
          "actual": []
        },
        {
          "line": 243,
          "program": "1,1",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "1",
            "1"
          ],
          "actual": [
            "[]"
          ]
        },
        {
          "line": 248,
          "program": "1,.",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "1",
            "[]"
          ],
          "actual": [
            "[]"
          ]
        },
        {
          "line": 816,
          "program": "true",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "true"
          ],
          "actual": [
            "[1]"
          ]
        }
      ]
    }
    
    1 passed, 9 failed, 0 errored
  stderr:
    --- drydock: progress ---
    cases: pass=1 fail=9 error=0 skip=0 total=10 from=tally
    --- drydock: end progress ---
    --- drydock: values at failure ---
      tally = {'pass': 1, 'fail': 9, 'error': 0, 'skip': 0}
    --- drydock: end values ---
    Traceback (most recent call last):
      File "core-corpus.py", line 19, in <module>
        assert tally["fail"] == 0 and tally["error"] == 0, tally
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError: {'pass': 1, 'fail': 9, 'error': 0, 'skip': 0}

## Post-build programmatic acceptance
- PASS: core-stream (FEATURE-GeneratorCore.md)
  intent: Identity, comma, and pipe preserve input, ordering, and multiplicity through the evaluator.
  target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python
  provisioning: not required
  return code: 0
- PASS: core-lazy (FEATURE-GeneratorCore.md)
  intent: A consumer can take the first generated result without evaluating a later runtime error.
  target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python
  provisioning: not required
  return code: 0
- PASS: core-corpus (FEATURE-GeneratorCore.md)
  intent: The basic literal and identity corpus cases execute successfully through the command interface.
  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": 10,
        "fail": 0,
        "error": 0,
        "skip": 0
      },
      "cases": []
    }
    
    10 passed, 0 failed, 0 errored

## Build summary
RESULT: SUCCESS

FILES CHANGED:
- jq_interpreter/evaluator.py
- jq_interpreter/command.py
- tests/test_evaluator.py

SUMMARY:
Implemented lazy generator evaluation for identity, literals, empty, comma, pipes, negation, and runtime errors. Added compact CLI behavior, BOM input support, and tests.

Checks passed:
- `pytest -q` — 31 passed
- Evaluator acceptance assertions
- Scoped conformance — 10 passed, 0 failed, 0 errored

BLOCKERS:
- None
