Run artifact

workspace/targets/toml/blueprint/FEATURE-Key-Forms.md

FEATURE: Key Forms

FieldValue
Version20260814 V1
DescriptionParses bare, quoted, and dotted TOML keys.
Depends OnARCHITECTURE.md, FEATURE-Lexical-Strings.md, FEATURE-Lexical-Whitespace-Comments.md
ProvidesTOML key paths
ConsumesTOML string values, parser module boundary

Behavior

The parser recognizes non-empty bare keys, quoted keys using basic or literal string syntax, and dotted keys containing bare or quoted components. Whitespace around dotted components is ignored. Key paths create nested tables while preserving the exact decoded key names.

Programmatic Acceptance

Requires: executable=go; scope=test
Requires: executable=sh; scope=test

=== AC key-forms-valid ===
Intent: The implementation passes the authoritative valid TOML key conformance slice.
Suite: scoped

import os import subprocess import sys

result = subprocess.run( ["sh", "sources/stage_test.sh", "valid/key/*"], capture_output=True, text=True, env={**os.environ, "TOML_TEST_VERSION": "v2.2.0"}, ) print(result.stdout) print(result.stderr, file=sys.stderr) assert result.returncode == 0 === END AC key-forms-valid ===

=== AC key-forms-invalid ===
Intent: The implementation rejects malformed key forms in the authoritative suite.
Suite: scoped

import os import subprocess import sys

result = subprocess.run( ["sh", "sources/stage_test.sh", "invalid/key/*"], capture_output=True, text=True, env={**os.environ, "TOML_TEST_VERSION": "v2.2.0"}, ) print(result.stdout) print(result.stderr, file=sys.stderr) assert result.returncode == 0 === END AC key-forms-invalid ===

User Acceptance

Guardrails