This change is a planted bug. The promise id from a bracket label is upper-cased instead of used verbatim.
Tests! ESCAPEDexamples, full
Kiro reviewer✓ CAUGHT`_legacy_id` now <redacted> bracket labels, so `[ac-3]` becomes `AC-3` instead of being used verbatim.
AC-2 Promise id from source label
WHEN a numbered criterion carries an explicit bracket label (e.g. [AC-3]) in the source, the parser SHALL use that label verbatim as the promise id; AND WHEN no bracket label is present, the parser SHALL use the bare number (e.g. 3) as the promise id.
! ESCAPED✓ CAUGHT
This change is a planted bug. The promise id from a bracket label is upper-cased instead of used verbatim.
Tests! ESCAPEDexamples, full
Kiro reviewer✓ CAUGHT`_legacy_id` now <redacted> bracket labels, so `[ac-3]` becomes `AC-3` instead of being used verbatim.
AC-2 Promise id from source label
WHEN a numbered criterion carries an explicit bracket label (e.g. [AC-3]) in the source, the parser SHALL use that label verbatim as the promise id; AND WHEN no bracket label is present, the parser SHALL use the bare number (e.g. 3) as the promise id.
Round 2
AC-7 Empty or missing Acceptance Criteria section
WHEN a requirements.md file contains no Acceptance Criteria section, the parser SHALL return an empty promise list and one ParseWarning whose message describes the missing section.
skeleton/redrabbit/parser.py
166 index += 1167168 if not found:- result.warnings.append(ParseWarning(message=_NO_SECTION, lines=[]))169 return result170171 # Native ids must be unique across the file. A repeated number in the source (a typo
Show the answer
This change is a planted bug. A requirements file with no Acceptance Criteria section returns no promises and no ParseWarning.
Tests✓ CAUGHTexamples, full
Kiro reviewer✓ CAUGHTThe diff deletes the `ParseWarning(message=_NO_SECTION)` append in the `if not found` branch of `parse_requirements`. A document with no Acceptance Criteria section now returns zero warnings, but AC-7 requires exactly one warning describing the missing section. I read the worktree copy, which still has the line, so I judged this from the diff alone.
AC-7 Empty or missing Acceptance Criteria section
WHEN a requirements.md file contains no Acceptance Criteria section, the parser SHALL return an empty promise list and one ParseWarning whose message describes the missing section. WHEN the section is present but empty (contains only blank lines), the parser SHALL return an empty promise list and zero warnings.
! ESCAPED✓ CAUGHT
This change is a planted bug. A requirements file with no Acceptance Criteria section returns no promises and no ParseWarning.
Tests✓ CAUGHTexamples, full
Kiro reviewer✓ CAUGHTThe diff deletes the `ParseWarning(message=_NO_SECTION)` append in the `if not found` branch of `parse_requirements`. A document with no Acceptance Criteria section now returns zero warnings, but AC-7 requires exactly one warning describing the missing section. I read the worktree copy, which still has the line, so I judged this from the diff alone.
AC-7 Empty or missing Acceptance Criteria section
WHEN a requirements.md file contains no Acceptance Criteria section, the parser SHALL return an empty promise list and one ParseWarning whose message describes the missing section. WHEN the section is present but empty (contains only blank lines), the parser SHALL return an empty promise list and zero warnings.
Round 3
AC-6 Unparseable content reported, not dropped
WHEN the parser encounters content inside the Acceptance Criteria section that it cannot classify as a numbered criterion, it SHALL add a ParseWarning to the result describing the offending lines and their line numbers
skeleton/redrabbit/parser.py
- result.warnings.append(- ParseWarning(- message=f"Indented line outside any criterion: {line!r}",- lines=[number],- )- )95 index += 1
Show the answer
This change is a planted bug. An indented line that belongs to no criterion is dropped without a ParseWarning.
Tests! ESCAPEDexamples, full
Kiro reviewer✓ CAUGHTThe change removes the `ParseWarning` for an indented line with no open criterion, so `_scan` now skips that line silently. This happens at the start of the section, after a sub-heading or horizontal rule, or after an <redacted> line. AC-6 says no line from the Acceptance Criteria section may be silently discarded.
AC-6 Unparseable content reported, not dropped
WHEN the parser encounters content inside the Acceptance Criteria section that it cannot classify as a numbered criterion, it SHALL add a ParseWarning to the result describing the offending lines and their line numbers; AND it SHALL still return all promises it could successfully parse; AND it SHALL never silently discard any line from the Acceptance Criteria section. Only indented lines (lines starting with at least one whitespace character) continue a criterion; an unindented non-header line inside the Acceptance Criteria section SHALL produce a ParseWarning. The one exception is a sub-heading (a line starting with three or more # followed by whitespace) and a horizontal rule (a line of three or more -): each ends the current criterion without a warning. The requirements.md of this spec SHALL parse with zero warnings.
! ESCAPED✓ CAUGHT
This change is a planted bug. An indented line that belongs to no criterion is dropped without a ParseWarning.
Tests! ESCAPEDexamples, full
Kiro reviewer✓ CAUGHTThe change removes the `ParseWarning` for an indented line with no open criterion, so `_scan` now skips that line silently. This happens at the start of the section, after a sub-heading or horizontal rule, or after an <redacted> line. AC-6 says no line from the Acceptance Criteria section may be silently discarded.
AC-6 Unparseable content reported, not dropped
WHEN the parser encounters content inside the Acceptance Criteria section that it cannot classify as a numbered criterion, it SHALL add a ParseWarning to the result describing the offending lines and their line numbers; AND it SHALL still return all promises it could successfully parse; AND it SHALL never silently discard any line from the Acceptance Criteria section. Only indented lines (lines starting with at least one whitespace character) continue a criterion; an unindented non-header line inside the Acceptance Criteria section SHALL produce a ParseWarning. The one exception is a sub-heading (a line starting with three or more # followed by whitespace) and a horizontal rule (a line of three or more -): each ends the current criterion without a warning. The requirements.md of this spec SHALL parse with zero warnings.
Round 4
AC-6 Unparseable content reported, not dropped
WHEN the parser encounters content inside the Acceptance Criteria section that it cannot classify as a numbered criterion, it SHALL add a ParseWarning to the result describing the offending lines and their line numbers
skeleton/redrabbit/parser.py
67 if stop.match(line):68 break- if not line.strip():69+ if line.strip() == "":70 if current_id is not None:71 pending_blanks.append((line, endings[index]))72 index += 1
Show the answer
This change is clean. equivalent expression: 'not line.strip()' written as 'line.strip() == ""'
Kiro reviewerESCAPED`line.strip() == ""` is equivalent to `not line.strip()`, no behavior change
AC-6 Unparseable content reported, not dropped
WHEN the parser encounters content inside the Acceptance Criteria section that it cannot classify as a numbered criterion, it SHALL add a ParseWarning to the result describing the offending lines and their line numbers; AND it SHALL still return all promises it could successfully parse; AND it SHALL never silently discard any line from the Acceptance Criteria section. Only indented lines (lines starting with at least one whitespace character) continue a criterion; an unindented non-header line inside the Acceptance Criteria section SHALL produce a ParseWarning. The one exception is a sub-heading (a line starting with three or more # followed by whitespace) and a horizontal rule (a line of three or more -): each ends the current criterion without a warning. The requirements.md of this spec SHALL parse with zero warnings.
ESCAPEDCAUGHT
This change is clean. equivalent expression: 'not line.strip()' written as 'line.strip() == ""'
Kiro reviewerESCAPED`line.strip() == ""` is equivalent to `not line.strip()`, no behavior change
AC-6 Unparseable content reported, not dropped
WHEN the parser encounters content inside the Acceptance Criteria section that it cannot classify as a numbered criterion, it SHALL add a ParseWarning to the result describing the offending lines and their line numbers; AND it SHALL still return all promises it could successfully parse; AND it SHALL never silently discard any line from the Acceptance Criteria section. Only indented lines (lines starting with at least one whitespace character) continue a criterion; an unindented non-header line inside the Acceptance Criteria section SHALL produce a ParseWarning. The one exception is a sub-heading (a line starting with three or more # followed by whitespace) and a horizontal rule (a line of three or more -): each ends the current criterion without a warning. The requirements.md of this spec SHALL parse with zero warnings.
Your result
Tests1/3 caught on these rounds, with 99.3% line coverage. 2/6 promises guarded in all.! BLIND IN PLACES
Kiro reviewer3/3 caught on these rounds. 6/6 promises guarded in all.✓ AWAKE
False alarms0 of 8 clean changes flagged (CAUGHT). 7 answered ESCAPED, which is the right answer for a clean change. 1 answered DID_NOT_RUN, so it is not counted as an answer.
? DID_NOT_RUN The record says: reviewer marker for ctl-clean-3 missing or garbled
Line coverage of the parser
Before99.3%
After99.3%
140/141 lines ran, before and after.
Promises guarded
Before2/6! BLIND IN PLACES
After6/6✓ AWAKE
Coverage did not see the gap. The drill did.
What the records say
The same gates, on the same rounds and on every promise of the self-drill.
Tests1/3 caught on these rounds, with 99.3% line coverage. 2/6 promises guarded in all.! BLIND IN PLACES
Kiro reviewer3/3 caught on these rounds. 6/6 promises guarded in all.✓ AWAKE
False alarms0 of 8 clean changes flagged (CAUGHT). 7 answered ESCAPED, which is the right answer for a clean change. 1 answered DID_NOT_RUN, so it is not counted as an answer.
? DID_NOT_RUN The record says: reviewer marker for ctl-clean-3 missing or garbled
The rounds, as recorded (this spoils the game)
Round
Promise
Tests
Kiro reviewer
Round 1
Promise AC-2 Promise id from source label A planted bug.
Tests ! ESCAPED
Kiro reviewer ✓ CAUGHT
Round 2
Promise AC-7 Empty or missing Acceptance Criteria section A planted bug.
Tests ✓ CAUGHT
Kiro reviewer ✓ CAUGHT
Round 3
Promise AC-6 Unparseable content reported, not dropped A planted bug.
Tests ! ESCAPED
Kiro reviewer ✓ CAUGHT
Round 4
Promise AC-6 Unparseable content reported, not dropped A clean change.