Skip to content

feat(review): orchestrator review persona outcomes empty replies and stats splitting (#605) - #615

Merged
dan-petty merged 2 commits into
release/v0.2.23from
feat/605-orchestrator-outcomes-empty-replies-stats
Sep 25, 2026
Merged

dan-petty merged 2 commits into
release/v0.2.23from
feat/605-orchestrator-outcomes-empty-replies-stats

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Completes Parts 2 & 3 of Issue #605:

  • Empty Findings List Support: Parses bare `[]` and markdown-fenced `[]` in `parse_review_response` (`src/devops_cli/ai/review_schema.py`) into empty `ReviewResult(findings=[], summary="")` to eliminate redundant review retry loops at `runner.py:690`.
  • Persona Reply Tracking & Legible Degradation:
    • Defined outcome constants `CONST_PERSONA_REPLY_FINDINGS`, `CONST_PERSONA_REPLY_EMPTY`, and `CONST_PERSONA_REPLY_UNPARSED` in `src/devops_cli/config/constants.py`.
    • Added `persona_replies`, `persona_outcomes`, and `unparsed_personas` fields to `ReviewProfile` (`src/devops_cli/ai/review/profile.py`) and recorded in `FileReviewPayload.ai_scratchpad`.
    • Degraded review stage to `unparsed` (if all unparsed) or `degraded` (if some unparsed) instead of marking silently as clean `reviewed`.
    • Logged unparsed persona names to console via `[bold yellow](unparsed: ...)[/bold yellow]`.
  • Persona Splitting in Review Stats: Split comma-joined persona strings (`f.persona.split(",")`) in `_tally_single_session_findings` (`src/devops_cli/commands/review.py`) before bucketing `by_persona_total` and `by_persona_invalidated`.
  • Quality Gates & Invariants: Full compliance with cyclomatic complexity $M \le 10$, nesting depth $\le 5$, consolidated structural tuple equality test assertions, and 100% pass on Gated CI (`uv run devops ci`).

Closes #605.

@dan-petty
dan-petty enabled auto-merge (squash) September 25, 2026 22:41
@dan-petty
dan-petty merged commit 6933ee9 into release/v0.2.23 Sep 25, 2026
7 checks passed
@dan-petty
dan-petty deleted the feat/605-orchestrator-outcomes-empty-replies-stats branch September 25, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant