Evidence: Block 16 ยท Service (block-16)
- block type: block
- date: 2026-10-28
- resulting state: closed/verified
- story points (combined assembled cost): 4806
- execution id: 20261028.172550.246Z-3682ecce
Stories built
- Implement jq format and encoding filters. (formats) [story]
Acceptance tooling authorization
- FEATURE-Formats.md#formats-corpus: executable=python3; scope=test; authorization=existing Target environment
Stacked context
- stack: python_compact.md (SP 654)
- compass: COMPASS.md (SP 3420)
- implements: FEATURE-Formats.md (SP 558)
- context: ARCHITECTURE_compact.md (SP 129)
Build directory changes
- jq_interpreter/builtins.py
- jq_interpreter/evaluator.py
- jq_interpreter/parser.py
- tests/test_formats.py
Pre-build acceptance observation
- RED: formats-corpus (FEATURE-Formats.md)
intent: Format filters execute the corpus cases that exercise their encoding and interpolation behavior. 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": 7, "error": 0, "skip": 0 }, "cases": [ { "line": 72, "program": "@text,@json,([1,.]|@csv,@tsv),@html,(@uri|.,@urid),@sh,(@base64|.,@base64d)", "status": "fail", "detail": "output mismatch", "expect_failure": false, "expected": [ "\"!()<>&'\\\"\\t\"", "\"\\\"!()<>&'\\\\\\\"\\\\t\\\"\"", "\"1,\\\"!()<>&'\\\"\\\"\\t\\\"\"", "\"1\\t!()<>&'\\\"\\\\t\"", "\"!()<>&'"\\t\"", "\"%21%28%29%3C%3E%26%27%22%09\"", "\"!()<>&'\\\"\\t\"", "\"'!()<>&'\\\\''\\\"\\t'\"", "\"ISgpPD4mJyIJ\"", "\"!()<>&'\\\"\\t\"" ], "actual": [] }, { "line": 86, "program": "@base64", "status": "fail", "detail": "output mismatch", "expect_failure": false, "expected": [ "\"Zm/Ds2Jhcgo=\"" ], "actual": [] }, { "line": 90, "program": "@base64d", "status": "fail", "detail": "output mismatch", "expect_failure": false, "expected": [ "\"fo\u00f3bar\\n\"" ], "actual": [] }, { "line": 94, "program": "@uri", "status": "fail", "detail": "output mismatch", "expect_failure": false, "expected": [ "\"%CE%BC\"" ], "actual": [] }, { "line": 98, "program": "@urid", "status": "fail", "detail": "output mismatch", "expect_failure": false, "expected": [ "\"\\u03bc\"" ], "actual": [] }, { "line": 102, "program": "@html \"<b>\\(.)</b>\"", "status": "fail", "detail": "output mismatch", "expect_failure": false, "expected": [ "\"<b><script>hax</script></b>\"" ], "actual": [ "\"<b><script>hax</script></b>\"" ] }, { "line": 2548, "program": "strflocaltime(\"\" | ., @uri)", "status": "fail", "detail": "output mismatch", "expect_failure": false, "expected": [ "\"\"", "\"\"" ], "actual": [] } ] } stderr: --- drydock: progress --- cases: pass=0 fail=7 error=0 skip=0 total=7 from=tally --- drydock: end progress --- --- drydock: values at failure --- tally = {'pass': 0, 'fail': 7, 'error': 0, 'skip': 0} --- drydock: end values --- Traceback (most recent call last): File "formats-corpus.py", line 17, in <module> assert tally["fail"] == 0 and tally["error"] == 0, tally ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: {'pass': 0, 'fail': 7, 'error': 0, 'skip': 0}
Post-build programmatic acceptance
- PASS: formats-corpus (FEATURE-Formats.md)
intent: Format filters execute the corpus cases that exercise their encoding and interpolation behavior. 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": 7, "fail": 0, "error": 0, "skip": 0 }, "cases": [] }
Build summary
Implemented jq format/encoding filters and formatted-string interpolation.
Tests:
pytest -qโ passed- Scoped formats conformance โ 7 passed, 0 failed/errors
- Manual smoke checks โ passed
RESULT: SUCCESS
FILES CHANGED:
- jq_interpreter/builtins.py
- jq_interpreter/evaluator.py
- jq_interpreter/parser.py
- tests/test_formats.py
SUMMARY: Added text, JSON, HTML, URI, CSV, TSV, shell, and Base64 formats with inverse decoding, interpolation escaping, ordering preservation, and runtime validation.
BLOCKERS:
- None