You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(review): remediate markdown formatting issues and unbalanced code blocks in review reports #250
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingstype/bugType bug: the code does not do what it must
Investigation of review.md reports generated in .data/reviews revealed several severe Markdown formatting bugs:
Unbalanced Code Blocks in Fix Recommendations: In src/devops_cli/ai/review/pipeline.py, f.fix is unconditionally wrapped in triple backticks (\n{f.fix}\n). When f.fix already contains code fences or multiline markdown from LLM output, this results in unbalanced code fences (odd fence count) that swallow all subsequent sections (detailed findings, external dependencies, and network references tables) into an unclosed monospace block.
Broken Pattern Themes & Dangling Brackets in Executive Summary: In src/devops_cli/ai/review/stages/reporting.py, _derive_finding_theme splits naively on [:\-\(], slicing inside scanner tags (e.g. [DRY-RUN], [GITLEAKS:simulated-secret], [B602]) or CLI flags (e.g. --allow-blocked-state), producing unclosed brackets (**[DRY**:) and unclosed backticks.
Inline Backtick Collisions: Blindly wrapping rep.title in backticks when rep.title already contains inline code backticks results in broken nested backticks.
Markdown Asterisk Collisions: Raw Python parameters (e.g. **kwargs) in findings collide with bold markdown syntax (****kwargs****).
Remediation Plan
Guard f.fix code block formatting: inspect existing code fences, balance code blocks, and use +1$ backticks or render clean fenced blocks without nesting.
Robustly derive finding themes by stripping scanner bracket prefixes cleanly rather than splitting across internal punctuation.
Ensure balanced backticks, brackets, and asterisks across all generated tables and markdown summaries.
Add comprehensive test coverage verifying Markdown balance (equal number of opening/closing fences, valid table column counts, and zero unclosed formatting markers) across all review markdown output.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingstype/bugType bug: the code does not do what it must
Activity
fix(review): remediate markdown formatting issues and unbalanced code…
feat(release): v0.2.20 (#244)