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

- block type: block
- date: 2026-10-28
- resulting state: closed/verified
- story points (combined assembled cost): 4743
- execution id: 20261028.173429.124Z-062ea61f

## Stories built
- Implement jq date and time builtins. (dates) [story]

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

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

## Build directory changes
- jq_interpreter/builtins.py
- jq_interpreter/evaluator.py
- tests/test_dates.py

## Pre-build acceptance observation
- RED: dates-corpus (FEATURE-Dates.md)
  intent: Date parsing, formatting, and time conversion pass their executing corpus slice.
  return code: 1
  stdout:
    {
      "candidate": [
        "/mnt/c/Users/barlo/projects/drydock/uat/jq/runs/20261028.145919/build/jq/jq"
      ],
      "corpus": "jq.test",
      "summary": {
        "pass": 6,
        "fail": 8,
        "error": 0,
        "skip": 0
      },
      "cases": [
        {
          "line": 1843,
          "program": "strftime(\"%Y-%m-%dT%H:%M:%SZ\")",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "\"2015-03-05T23:51:47Z\""
          ],
          "actual": []
        },
        {
          "line": 1851,
          "program": "strftime(\"%Y-%m-%dT%H:%M:%SZ\")",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "\"2024-03-15T00:00:00Z\""
          ],
          "actual": []
        },
        {
          "line": 1855,
          "program": "mktime",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "1726876800"
          ],
          "actual": []
        },
        {
          "line": 1859,
          "program": "gmtime",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "[2015,2,5,23,51,47,4,63]"
          ],
          "actual": []
        },
        {
          "line": 1863,
          "program": "gmtime[5]",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "47.25"
          ],
          "actual": []
        },
        {
          "line": 1876,
          "program": "try mktime catch .",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "\"mktime requires parsed datetime inputs\""
          ],
          "actual": [
            "\"unknown function mktime\""
          ]
        },
        {
          "line": 1889,
          "program": "[strptime(\"%Y-%m-%dT%H:%M:%SZ\")|(.,mktime)]",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "[[2015,2,5,23,51,47,4,63],1425599507]"
          ],
          "actual": []
        },
        {
          "line": 1895,
          "program": "last(range(365 * 67)|(\"1970-03-01T01:02:03Z\"|strptime(\"%Y-%m-%dT%H:%M:%SZ\")|mktime) + (86400 * .)|strftime(\"%Y-%m-%dT%H:%M:%SZ\")|strptime(\"%Y-%m-%dT%H:%M:%SZ\"))",
          "status": "fail",
          "detail": "output mismatch",
          "expect_failure": false,
          "expected": [
            "[2037,1,11,1,2,3,3,41]"
          ],
          "actual": []
        }
      ]
    }
  stderr:
    --- drydock: progress ---
    cases: pass=6 fail=8 error=0 skip=0 total=14 from=tally
    --- drydock: end progress ---
    --- drydock: values at failure ---
      tally = {'pass': 6, 'fail': 8, 'error': 0, 'skip': 0}
    --- drydock: end values ---
    Traceback (most recent call last):
      File "dates-corpus.py", line 17, in <module>
        assert tally["fail"] == 0 and tally["error"] == 0, tally
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError: {'pass': 6, 'fail': 8, 'error': 0, 'skip': 0}

## Post-build programmatic acceptance
- PASS: dates-corpus (FEATURE-Dates.md)
  intent: Date parsing, formatting, and time conversion pass their executing corpus slice.
  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": 14,
        "fail": 0,
        "error": 0,
        "skip": 0
      },
      "cases": []
    }

## Build summary
RESULT: SUCCESS

FILES CHANGED:
- jq_interpreter/builtins.py
- jq_interpreter/evaluator.py
- tests/test_dates.py

SUMMARY:
Implemented jq date/time builtins, UTC/local conversions, aliases, fractional seconds, and error handling.

Checks passed:
- Scoped dates corpus: 14 passed
- Pytest: 164 passed

BLOCKERS:
- None
