Skip to content

feat(review): implement ReviewPipeline with preview, prepare, finaliz… - #30

Merged
codewithshinde merged 2 commits into
mainfrom
v3.8.x
Sep 16, 2026
Merged

codewithshinde merged 2 commits into
mainfrom
v3.8.x

Conversation

@codewithshinde

Copy link
Copy Markdown
Member

This pull request introduces a new deterministic code review command to the Mitii CLI, enhances documentation for the review workflow, and updates package versions. The new mitii review command enables selection and preparation of code review findings (including SARIF export) without requiring an LLM, supporting CI and host agent use cases. Documentation and help output are updated to explain the new review capabilities and clarify usage. Additionally, a third-party attribution notice is added for the review module.

Major CLI and Review Workflow Enhancements:

  • Adds a new mitii review command, supporting deterministic review preparation and SARIF export with options for preview, diff range, commit, output format, and effort level. This includes a new implementation in runReviewCommand.ts and integration into CLI argument parsing, help text, and command dispatch. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • Updates CLI documentation (apps/cli/README.md) to describe the new review command, its options, and how to use it for deterministic review and SARIF output. [1] [2]
  • Expands the main project README to highlight structured code review features and clarify the review workflow, including SARIF export and CI integration.

Documentation and Attribution:

  • Adds a third-party attribution notice for the code review module, crediting inspiration from Alibaba's open-code-review project.

CI/CD and Versioning:

  • Updates package versions to 2.9.56 in @mitii/cli, @mitii/acp, and @mitii/daemon, and updates the version badge in the main README. [1] [2] [3] [4]
  • Updates GitHub Actions workflows to add support for building on macos-15-intel (darwin-x64) in both native binaries and release pipelines. [1] [2]…e, and SARIF export functionalities
  • Added ReviewPipeline class to handle review processes including previewing, preparing, and finalizing reviews.
  • Introduced methods for selecting review files, grouping them, resolving review rules, and anchoring findings.
  • Implemented support for exporting results in SARIF format.
  • Created policies for review efforts and configurations.
  • Added tests for contract validation, grouping files, and processing findings.
  • Developed GitHub action script to post review comments based on findings.

…e, and SARIF export functionalities

- Added ReviewPipeline class to handle review processes including previewing, preparing, and finalizing reviews.
- Introduced methods for selecting review files, grouping them, resolving review rules, and anchoring findings.
- Implemented support for exporting results in SARIF format.
- Created policies for review efforts and configurations.
- Added tests for contract validation, grouping files, and processing findings.
- Developed GitHub action script to post review comments based on findings.
- Added `buildFixReviewFindingsAsk` to compile structured Mitii review findings into an Agent ask.
- Introduced `fix-review-findings` skill with specific instructions for applying localized fixes.
- Updated architecture documentation to reflect the new post-review mutation handling.
- Enhanced the host README with details about the new skill and its usage.
- Implemented tests for the new functionality to ensure correctness.
- Updated agent engine to enforce structured review requirements, ensuring `emit_review_finding` is called.
- Modified various components to support the new structured review process, including recovery messages and thresholds.
- Improved git status handling to include both staged and unstaged changes for better review context.
@codewithshinde codewithshinde self-assigned this Sep 16, 2026
@codewithshinde
codewithshinde merged commit 795f789 into main Sep 16, 2026
3 checks passed
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