KI-3
Open · 26 July 2026KINDknown issue · jsonparser · component parser
TITLE
Set with array-index path component under an object parent produces malformed JSON output.
VIOLATED REQUIREMENTS
SYS-REQ-009 · SYS-REQ-110 · SYS-REQ-112
the approved promises this breaks
RELEVANT CODE
parser.go createInsertComponent, line 756 · Set, lines 1018-1038
where the invalid bytes are written, and where the path was never rejected
SEVERITY
high · basis: reproducer
the basis field records what earned the rating
BLAST RADIUS
3 approved requirements · 1 public API, Set · risk: data integrity
the caller gets invalid bytes back with a nil error
REPRODUCER
go test -v -run TestSetArrayIndexUnderObjectMalformedJSON_KI3 ./...
runs on the affected revision and shows the invalid output
REQUIRED BEFORE IT CAN CLOSE
the tripwire test flips to assert valid JSON · a malformed_input obligation attaches to SYS-REQ-009 · the wider defect class carries an explicit status
agreed on the record before anyone writes the fix