# 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.
