Skip to content

Structured review findings with auto gap registration#4

Merged
z23cc merged 3 commits intomainfrom
fn-3-structured-review-findings-auto-gap-add
Apr 3, 2026
Merged

Structured review findings with auto gap registration#4
z23cc merged 3 commits intomainfrom
fn-3-structured-review-findings-auto-gap-add

Conversation

@z23cc
Copy link
Copy Markdown
Owner

@z23cc z23cc commented Apr 3, 2026

Summary

Closes the loop between review findings and the gap registry. Previously review skills output issues as prose — now they produce structured <findings> JSON that's automatically parsed and registered as tracked gaps.

  • flowctl parse-findings: Extracts <findings> JSON from review output with tiered fallback (tag → regex → none). Optional --register flag auto-calls gap add with severity→priority mapping.
  • <findings> schema in all 6 review prompts: Added to RP workflow.md and Codex prompts.py for plan-review, impl-review, and epic-review.
  • Auto gap add in all fix loops: parse-findings --register wired into all 6 fix loop paths (Codex + RP × 3 review types).
  • Documentation: Full parse-findings docs in docs/flowctl.md.

Test plan

  • python3 -m pytest scripts/flowctl/tests/ — 255 passed
  • bash scripts/smoke_test.sh — 95/95 passed (5 new parse-findings tests)
  • All Python files compile cleanly

🤖 Generated with Claude Code

z23cc added 3 commits April 3, 2026 14:49
- Tiered extraction: <findings> tag, bare JSON array, code block, graceful empty
- _repair_json helper: strips fences, trailing commas, single quotes (stdlib-only)
- SEVERITY_TO_PRIORITY mapping: critical→required, major→important, minor/nitpick→nice-to-have
- --register flag auto-adds critical/major findings as gaps via cmd_gap_add
- Unknown severity defaults to "important" with warning
- Cap at 50 findings max
- 5 smoke tests: valid tag, missing tags, malformed JSON, --register, gap verification

Task: fn-3-structured-review-findings-auto-gap-add.1
- Add optional <findings> schema to plan-review, impl-review, and
  epic-review RP workflow.md Output Format sections
- Add same schema to build_review_prompt (impl + plan) and
  build_completion_review_prompt (epic) Codex prompts in prompts.py
- Schema is consistent across all 6 locations: title, severity,
  location, recommendation fields
- Findings are optional — SHIP reviews with no issues may omit

Task: fn-3-structured-review-findings-auto-gap-add.2
- Plan-review Codex + RP fix loops call parse-findings --register --source plan-review
- Impl-review Codex + RP fix loops call parse-findings --register --source impl-review
- Epic-review Codex + RP fix loops call parse-findings --register --source epic-review
- All 6 fix loops log the number of findings registered as gaps
- Add parse-findings to docs/flowctl.md Available Commands list
- Add ### parse-findings section with usage, options, extraction strategy, severity mapping

Task: fn-3-structured-review-findings-auto-gap-add.3
@z23cc z23cc merged commit 58d8e49 into main Apr 3, 2026
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