Evidence: Block 7 ยท Service (block-7)
- block type: block
- date: 2026-08-14
- resulting state: closed/verified
- story points (combined assembled cost): 8405
- execution id: 20260814.053413.450Z-f9f1ae8a
Stories built
- Process TOML whitespace, comments, line endings, continuations, and encoding rules. (lexical-whitespace-comments) [story]
Missing context
- context: toml-v1.0.0.md
Stacked context
- compass: COMPASS.md (SP 2629)
- implements: FEATURE-Lexical-Whitespace-Comments.md (SP 618)
- context: stage_test.sh (SP 161)
- context: ARCHITECTURE_compact.md (SP 108)
- stack: go.md (SP 3646)
- stack: common_compact.md (SP 1179)
Build directory changes
- internal/toml/decode.go
- internal/toml/value_test.go
- toml-decoder
Pre-build acceptance observation
- RED: lexical-whitespace-comments-valid (FEATURE-Lexical-Whitespace-Comments.md)
intent: The implementation passes the authoritative valid TOML comment conformance slice. return code: 1 stdout: FAIL valid/comment/tricky line 16: invalid string: invalid syntax
Exit 1
input sent to parser-cmd (PID 786718): 1 โ[0m [section]#attached comment 2 โ[0m #[notsection] 3 โ[0m one = "11"#cmt 4 โ[0m two = "22#" 5 โ[0m three = '#' 6 โ[0m 7 โ[0m four = """# no comment 8 โ[0m # nor this 9 โ[0m #also not comment"""#is_comment 10 โ[0m 11 โ[0m five = 5.5#66 12 โ[0m six = 6#7 13 โ[0m 8 = "eight" 14 โ[0m #nine = 99 15 โ[0m ten = 10e2#1 16 โ[0m eleven = 1.11e1#23 17 โ[0m 18 โ[0m ["hash#tag"] 19 โ[0m "#!" = "hash bang" 20 โ[0m arr3 = [ "#", '#', """###""" ] 21 โ[0m arr4 = [ 1,# 9, 9, 22 โ[0m 2#,9 23 โ[0m ,#9 24 โ[0m 3#] 25 โ[0m ,4] 26 โ[0m arr5 = [[[[#["#"], 27 โ[0m ["#"]]]]#] 28 โ[0m ] 29 โ[0m tbl1 = { "#" = '}#'}#}}
output from parser-cmd (PID 786718) (stderr): 1 โ[0m line 16: invalid string: invalid syntax 2 โ[0m 3 โ[0m Exit 1
want: <empty>
toml-test v2.2.0 [/mnt/c/Users/barlo/projects/drydock/uat/Toml/runs/20260814.050011/build/toml/toml-decoder] [no encoder] skipped tests: 877 valid tests: 6 passed, 1 failed encoder tests: no encoder command given invalid tests: 0 passed, 0 failed stderr: harness: /home/barlo/.local/bin/toml-test toml-test v2.2.0; go1.24.6 linux/amd64; race=false; cgo=true
Traceback (most recent call last): File "lexical-whitespace-comments-valid.py", line 13, in <module> assert result.returncode == 0 ^^^^^^^^^^^^^^^^^^^^^^ AssertionError
- RED: lexical-whitespace-comments-control (FEATURE-Lexical-Whitespace-Comments.md)
intent: The implementation rejects prohibited control characters in the authoritative suite. return code: 1 stdout: FAIL invalid/control/bare-cr Expected an error, but no error was reported.
input sent to parser-cmd (PID 787081): 1 โ[0m # The following line contains a single carriage return control character 2 โ[0m
output from parser-cmd (PID 787081) (stdout): 1 โ[0m {}
want: Exit code 1
FAIL invalid/control/comment-cr Expected an error, but no error was reported.
input sent to parser-cmd (PID 787078): 1 โ[0m comment-cr = "Carriage return in comment" # a=1
output from parser-cmd (PID 787078) (stdout): 1 โ[0m { 2 โ[0m "comment-cr": {"type": "string", "value": "Carriage return in comment"} 3 โ[0m }
want: Exit code 1
FAIL invalid/control/comment-del Expected an error, but no error was reported.
input sent to parser-cmd (PID 787054): 1 โ[0m comment-del = "0x7f" #
output from parser-cmd (PID 787054) (stdout): 1 โ[0m { 2 โ[0m "comment-del": {"type": "string", "value": "0x7f"} 3 โ[0m }
want: Exit code 1
FAIL invalid/control/comment-ff Expected an error, but no error was reported.
input sent to parser-cmd (PID 786953): 1 โ[0m comment-ff = "0x7f" #
output from parser-cmd (PID 786953) (stdout): 1 โ[0m { 2 โ[0m "comment-ff": {"type": "string", "value": "0x7f"} 3 โ[0m }
want: Exit code 1
FAIL invalid/control/comment-lf Expected an error, but no error was reported.
input sent to parser-cmd (PID 786945): 1 โ[0m comment-lf = "ctrl-P" #
output from parser-cmd (PID 786945) (stdout): 1 โ[0m { 2 โ[0m "comment-lf": {"type": "string", "value": "ctrl-P"} 3 โ[0m }
want: Exit code 1
FAIL invalid/control/comment-null Expected an error, but no error was reported.
input sent to parser-cmd (PID 786955): 1 โ[0m comment-null = "null" #
output from parser-cmd (PID 786955) (stdout): 1 โ[0m { 2 โ[0m "comment-null": {"type": "string", "value": "null"} 3 โ[0m }
want: Exit code 1
FAIL invalid/control/comment-us Expected an error, but no error was reported.
input sent to parser-cmd (PID 786962): 1 โ[0m comment-us = "ctrl-_" #
output from parser-cmd (PID 786962) (stdout): 1 โ[0m { 2 โ[0m "comment-us": {"type": "string", "value": "ctrl-_"} 3 โ[0m }
want: Exit code 1
FAIL invalid/control/multi-del Expected an error, but no error was reported.
input sent to parser-cmd (PID 786958): 1 โ[0m multi-del = """null"""
output from parser-cmd (PID 786958) (stdout): 1 โ[0m { 2 โ[0m "multi-del": {"type": "string", "value": "null"} 3 โ[0m }
want: Exit code 1
FAIL invalid/control/only-ff Expected an error, but no error was reported.
input sent to parser-cmd (PID 786961): 1 โ[0m
output from parser-cmd (PID 786961) (stdout): 1 โ[0m {}
want: Exit code 1
FAIL invalid/control/only-vt Expected an error, but no error was reported.
input sent to parser-cmd (PID 786967): 1 โ[0m
output from parser-cmd (PID 786967) (stdout): 1 โ[0m {}
want: Exit code 1
FAIL invalid/control/rawmulti-del Expected an error, but no error was reported.
input sent to parser-cmd (PID 787080): 1 โ[0m rawmulti-del = '''null'''
output from parser-cmd (PID 787080) (stdout): 1 โ[0m { 2 โ[0m "rawmulti-del": {"type": "string", "value": "null"} 3 โ[0m }
want: Exit code 1
FAIL invalid/control/rawstring-del Expected an error, but no error was reported.
input sent to parser-cmd (PID 786964): 1 โ[0m rawstring-del = 'null'
output from parser-cmd (PID 786964) (stdout): 1 โ[0m { 2 โ[0m "rawstring-del": {"type": "string", "value": "null"} 3 โ[0m }
want: Exit code 1
FAIL invalid/control/string-del Expected an error, but no error was reported.
input sent to parser-cmd (PID 787072): 1 โ[0m string-del = "null"
output from parser-cmd (PID 787072) (stdout): 1 โ[0m { 2 โ[0m "string-del": {"type": "string", "value": "null"} 3 โ[0m }
want: Exit code 1
toml-test v2.2.0 [/mnt/c/Users/barlo/projects/drydock/uat/Toml/runs/20260814.050011/build/toml/toml-decoder] [no encoder] skipped tests: 852 valid tests: 0 passed, 0 failed encoder tests: no encoder command given invalid tests: 19 passed, 13 failed stderr: harness: /home/barlo/.local/bin/toml-test toml-test v2.2.0; go1.24.6 linux/amd64; race=false; cgo=true
Traceback (most recent call last): File "lexical-whitespace-comments-control.py", line 13, in <module> assert result.returncode == 0 ^^^^^^^^^^^^^^^^^^^^^^ AssertionError
- RED: lexical-whitespace-comments-encoding (FEATURE-Lexical-Whitespace-Comments.md)
intent: The implementation rejects invalid encodings in the authoritative suite. return code: 1 stdout: FAIL invalid/encoding/ideographic-space Expected an error, but no error was reported.
input sent to parser-cmd (PID 787256): 1 โ[0m # First on next line is U+3000 IDEOGRAPHIC SPACE 2 โ[0m ใfoo = "bar"
output from parser-cmd (PID 787256) (stdout): 1 โ[0m { 2 โ[0m "foo": {"type": "string", "value": "bar"} 3 โ[0m }
want: Exit code 1
toml-test v2.2.0 [/mnt/c/Users/barlo/projects/drydock/uat/Toml/runs/20260814.050011/build/toml/toml-decoder] [no encoder] skipped tests: 870 valid tests: 0 passed, 0 failed encoder tests: no encoder command given invalid tests: 13 passed, 1 failed stderr: harness: /home/barlo/.local/bin/toml-test toml-test v2.2.0; go1.24.6 linux/amd64; race=false; cgo=true
Traceback (most recent call last): File "lexical-whitespace-comments-encoding.py", line 13, in <module> assert result.returncode == 0 ^^^^^^^^^^^^^^^^^^^^^^ AssertionError
Post-build programmatic acceptance
- PASS: lexical-whitespace-comments-valid (FEATURE-Lexical-Whitespace-Comments.md)
intent: The implementation passes the authoritative valid TOML comment conformance slice. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python3 provisioning: not required return code: 0 stdout: toml-test v2.2.0 [/mnt/c/Users/barlo/projects/drydock/uat/Toml/runs/20260814.050011/build/toml/toml-decoder] [no encoder] skipped tests: 877 valid tests: 7 passed, 0 failed encoder tests: no encoder command given invalid tests: 0 passed, 0 failed stderr: harness: /home/barlo/.local/bin/toml-test toml-test v2.2.0; go1.24.6 linux/amd64; race=false; cgo=true
- PASS: lexical-whitespace-comments-control (FEATURE-Lexical-Whitespace-Comments.md)
intent: The implementation rejects prohibited control characters in the authoritative suite. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python3 provisioning: not required return code: 0 stdout: toml-test v2.2.0 [/mnt/c/Users/barlo/projects/drydock/uat/Toml/runs/20260814.050011/build/toml/toml-decoder] [no encoder] skipped tests: 852 valid tests: 0 passed, 0 failed encoder tests: no encoder command given invalid tests: 32 passed, 0 failed stderr: harness: /home/barlo/.local/bin/toml-test toml-test v2.2.0; go1.24.6 linux/amd64; race=false; cgo=true
- PASS: lexical-whitespace-comments-encoding (FEATURE-Lexical-Whitespace-Comments.md)
intent: The implementation rejects invalid encodings in the authoritative suite. target interpreter: /mnt/c/Users/barlo/projects/drydock/.venv/bin/python3 provisioning: not required return code: 0 stdout: toml-test v2.2.0 [/mnt/c/Users/barlo/projects/drydock/uat/Toml/runs/20260814.050011/build/toml/toml-decoder] [no encoder] skipped tests: 870 valid tests: 0 passed, 0 failed encoder tests: no encoder command given invalid tests: 14 passed, 0 failed stderr: harness: /home/barlo/.local/bin/toml-test toml-test v2.2.0; go1.24.6 linux/amd64; race=false; cgo=true
Build summary
RESULT: SUCCESS
FILES CHANGED:
- internal/toml/decode.go
- internal/toml/value_test.go
SUMMARY: Implemented TOML comment handling in multiline values, CRLF normalization, continuation support, UTF-8/control-character validation, TOML whitespace enforcement, and quoted-key parsing.
Acceptance slices pass: comments 7/7, controls 32/32, encoding 14/14.
BLOCKERS:
- Full suite retains unrelated pre-existing failures in tables, numeric strictness, inline tables, and key semantics.