Repository navigation
Conversation
Recognize 1. and - list markers after Jira #/* so overflow markdown strategies keep a usable AC count. Parse NFR categories with the colon inside the bold span. Signed-off-by: Benjamin Kapner <bkapner@redhat.com>
PR Summary by Qodofix: split markdown numbered and dash acceptance criteria
AI Description
Merge Risk
|
Code Review by Qodo
1. Text before a markdown numbered list is silently dropped
|
|
🤖 Finished Review · ✅ Success · Started 2:20 PM UTC · Completed 2:30 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.41 |
|
Risk Assessment: moderate (2/5) DetailsModerate risk due to changes in a protected path (scripts/utils/strat_utils.py) with medium blast radius, balanced by low churn, low author contention, and accompanying unit tests. |
ReviewFindingsHigh
Medium
Low
Labels: Bug fix to the STRAT parser. Next steps:
|
|
/fs-fix Fix only the NFR regex logic-error. Do not touch AC list splitting, do not add a tracking issue, and do not address the protected-path finding. Quote from the review: The new nfr_re makes the outside-bold colon optional ( Suggested fix: Require the colon within each alternative, accepting Keep the two valid forms this PR already covers: Add tests that:
Do not change Leave the PR description’s “opened directly as a bug fix” as-is. No new issue. |
|
🤖 Finished Fix · ✅ Success · Started 3:14 PM UTC · Completed 3:19 PM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.29 |
Require the colon inside the bold span (`*Cat:*`) or right after it (`*Cat*:`) so bare `*Note*` bullets and empty `*Security*:` bullets no longer become false NFR requirements. Add regression tests for both. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔧 Fix agent — iteration 1 (human-triggered)Fixed only the NFR regex logic-error as instructed. The regex now requires a colon inside or after the bold span, and two regression tests cover the bare and empty cases. The full suite passes (1617 passed). AC splitting, the protected-path finding, and the PR description were left alone, and no tracking issue was added. ruff and flake8 could not be run (not installed, and pre-commit needs network access), so lint was not verified. Fixed (1):
Tests: passed Finding threads:
Next steps:
Updated by fullsend fix agent |
|
🤖 Finished Review · ✅ Success · Started 3:21 PM UTC · Completed 3:27 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.99 |
|
Risk Assessment: moderate (2/5) DetailsModerate risk due to modification of protected path scripts/utils/strat_utils.py with medium blast radius, balanced by low churn, low author contention, and accompanying unit tests. |
ReviewFindingsHigh
Low
Earlier findings
Next steps:
|
|
@fege i think its ok now, please review |
|
🤖 Finished Review · ✅ Success · Started 3:53 PM UTC · Completed 4:03 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.48 |
|
Risk Assessment: moderate (2/5) DetailsModerate risk due to modification of protected path scripts/utils/strat_utils.py with medium blast radius, balanced by low churn, low author contention, and accompanying unit tests. |
ReviewFindingsHigh
Low
Next steps:
|
|
🤖 Finished Review · ✅ Success · Started 9:09 AM UTC · Completed 9:17 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.33 |
|
Risk Assessment: moderate (2/5) DetailsModerate risk due to modification of protected path scripts/utils/strat_utils.py with medium blast radius, balanced by low churn, low author contention, and accompanying unit tests. |
ReviewFindingsHigh
Low
Next steps:
|
|
/fs-fix Fix only Federico's two inline comments on Quote from Federico: This branch fires on any parse_acceptance_criteria("""h3. Acceptance Criteria The export must support:
The import must reject malformed files.""") actual: ['CSV', 'JSON The import must reject malformed files.']expected: ['The export must support: - CSV - JSON','The import must reject malformed files.']The export must support: is deleted and the import AC is merged into the last example. Only treat Second comment from Federico: Indented top-level lists still collapse. extract_jira_section returns the section .strip()ed, so the first item's leading spaces are gone while the rest keep theirs — a uniformly indented list matches only its first item: parse_acceptance_criteria("""h3. Acceptance Criteria
actual: count == 1['Given A when B then C 2. Given D when E then F 3. Given G when H then I']expected: count == 3['Given A when B then C', 'Given D when E then F', 'Given G when H then I']gate_inputs reports ac_count: 1, so (AC: #2)/#3 are rejected as out_of_range. Same for Rules:
|
|
🤖 Finished Fix · ✅ Success · Started 10:38 AM UTC · Completed 10:42 AM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.38 |
| { | ||
| "category": match.group(1).strip(), | ||
| "text": match.group(2).strip(), | ||
| "category": (match.group(1) or match.group(2)).strip(), |
There was a problem hiding this comment.
The new alternation treats a single space as the category: ([^*]+) matches " ", so this
bullet becomes an NFR with category: "":
gate_inputs("""h3. Non-Functional Requirements
* * :* Response must complete within two seconds""")["nfr_categories"]
# actual: ['']
# expected: [] # main ignored this malformed bulletEvery downstream check is keyed by category: validate_scope_coverage requires each parsed NFR
to be cited, but parse_citations can never emit a blank category, so the gate can never pass.
Require a non-space category (or skip the match when the trimmed category is empty) and add a
regression.
…ts (PR #111) Markdown 1./- items now split ACs only when the section's first non-blank line is a list marker; otherwise paragraph mode is kept so lead-in text is not dropped. Top-level items are matched at the first item's indent (read from the un-stripped section) so indented lists split fully and nested bullets fold into their parent. Jira # / * splitting is unchanged. Note: pre-commit could not fetch hook repos (network) and ruff/flake8 are not installed in the sandbox; full pytest suite passed and line length, whitespace and compile checks were done manually. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔧 Fix agent — iteration 2 (human-triggered)Restricted markdown AC list splitting to sections that open with a list and made it indent-aware; added tests with the exact expected texts. Full pytest suite passes (1623 passed). pre-commit could not fetch hooks (network) and ruff/flake8 are not installed locally; CI pre-commit should confirm lint. Fixed (3):
Tests: passed CI inspections (4):
Conflict update: skipped; strategy
|
|
🤖 Finished Review · ✅ Success · Started 10:46 AM UTC · Completed 10:53 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.05 |
|
Risk Assessment: moderate (2/5) DetailsModerate risk due to modification of protected path scripts/utils/strat_utils.py with medium blast radius, balanced by low churn, low author contention, and accompanying unit tests. |
ReviewFindingsHigh
Low
Next steps:
|
|
/fs-fix Fix only Federico's empty NFR category comment. Do not change markdown list splitting. Do not tolerate mixed sibling indent. Do not add a tracking issue. Do not address protected-path. Quote from Federico: The new alternation treats a single space as the category: gate_inputs("""h3. Non-Functional Requirements
actual: ['']expected: [] # main ignored this malformed bulletEvery downstream check is keyed by category: validate_scope_coverage requires each parsed NFR to be cited, but parse_citations can never emit a blank category, so the gate can never pass. Require a non-space category (or skip the match when the trimmed category is empty) and add a regression. Keep colon-inside-bold ( |
|
🤖 Finished Fix · ✅ Success · Started 1:06 PM UTC · Completed 1:09 PM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.28 |
Skip the NFR match when the stripped category is empty so a bullet like '* * :* text' no longer yields category '' in gate_inputs. Adds a regression test. Not addressed per instruction: mixed sibling indent tolerance in _split_markdown_list. Notes: pre-commit could not fetch hooks (network) and pytest/ruff are unavailable in the sandbox; behavior verified with a direct python check. Addresses #111 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔧 Fix agent — iteration 3 (human-triggered)Fixed the empty NFR category issue (skip blank stripped category, add regression). Declined the mixed-indent finding per human instruction; protected-path and tracking-issue items were not addressed per instruction. pre-commit (no network), pytest and ruff were unavailable in the sandbox; behavior was verified with a direct Python check and CI will run the suite. Fixed (1):
Disagreed (1):
Tests: passed CI inspections (1):
Conflict update: skipped; strategy Finding threads:
Next steps:
Updated by fullsend fix agent |
|
🤖 Finished Review · ✅ Success · Started 1:13 PM UTC · Completed 1:25 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.31 |
|
Risk Assessment: moderate (2/5) DetailsModerate risk due to modification of protected path scripts/utils/strat_utils.py with medium blast radius, balanced by low churn, low author contention, and accompanying unit tests. |
ReviewFindingsHigh
Low
Earlier findings
Next steps:
1 finding(s) below the |
| items: list[list[str]] = [] | ||
| for line in lines: | ||
| match = marker.match(line) | ||
| if match and len(match.group(1)) == top_indent: |
There was a problem hiding this comment.
[low] logic-error
_split_markdown_list only treats a marker as a sibling when its indent equals the first item's indent exactly; a list of '1. First', ' 2. Second', '3. Third' yields two ACs with Second folded into First, so AC counts and citation numbering can be wrong. Edge case, unchanged since the prior review.
Suggested fix: Decide nesting from the parent item's content indent rather than exact marker indent, and add a regression test for slightly indented siblings.
Summary
Overflow markdown strategies keep
1./-list markers after heading normalization._extract_bulleted_textsonly split on Jira#and*, so three acceptance criteria collapsed into one and citations(AC: #2)and above failed as out of range.Recognize markdown numbered and dash lists after the existing Jira markers. Also keep NFR categories written as
*Performance:*(colon inside the bold span), which were previously dropped.Related Issue
None — opened directly as a bug fix.
Possible conflict: #45 edits the same helper for a different bug (bold group headings counted as ACs). That fork last moved in September.
Changes
1./-items in_extract_bulleted_texts, after Jira#then*.#still wins when both marker styles are present.Testing
tests/unit/test_parse_strat.py).uv run --extra dev pre-commit run --all-filesmake lintVerified the new regression tests fail before the fix.
Full suite command:
uv run pytest tests/ -q --cov=scripts --cov-report=term-missing --cov-fail-under=70make lintpasses with an existing warning about the removedcontent-critical-positionrule in.skillsaw.yaml.Checklist