fix(review): accept repo-scoped review corrections #204
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review!204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "process-pilens-deferred-format-guardrail"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
safe_commitandsafe_pushPi tools that stage only explicit files, preserve hooks/signing, validate Forgejo push destinations, reject main pushes, and block unsafe push URLs/pathspecs/pre-staged commitsbashexecution by default and guide agents to add or modify reviewed typed Pi tools under RGR/tests/review for missing executable capabilitieslefthook.ymlpre-commit hook that runs fullnix flake check, expose lefthook from the Nix dev shell, auto-install hooks fromnix develop, and have the Pi session-start guardrail ensurelefthook installis rundocs: apply threat model markdown formattingwhen the PR body has substantiveSummaryplusVerification/Whycontent, even if the cheap-tier metadata checker false-negatives themVerification
git diff --check origin/main...HEADnix develop -c cargo nextest run -p ar-review pr_metadatanix develop -c cargo nextest run -p ar-chatnix develop -c cargo fmt --all -- --checknix develop -c cargo clippy -p ar-chat -p ar-review --all-targets -- -D warningsnix develop -c cargo clippy -p ar-chat --all-targets -- -D warningsnode tests/release_tooling/pi_guardrails_contract_test.mjsGIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=commit.gpgSign GIT_CONFIG_VALUE_0=false tests/release_tooling/release_script_flake_test.sh test_pi_guardrails_route_git_commit_and_push_through_safe_toolsGIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=commit.gpgSign GIT_CONFIG_VALUE_0=false tests/release_tooling/release_script_flake_test.sh test_pi_guardrails_deny_bash_and_route_capabilities_through_reviewed_toolsnix flake checksuccessfully while creating commits04e898c,606f3db, andc3dd58bThe PR introduces a new guardrail for pi-lens deferred formatting/autofix, requiring a follow-up turn after write/edit work. This change aims to ensure that the post-hook working tree is reviewed and verified before any commit, push, or PR creation.
Walkthrough
toolchain_status, review the post-hook diff, and rerun relevant verification before proceeding with commit, push, or PR creation.New commits pushed, approval review dismissed automatically according to repository settings
docs: add pi-lens finalize guardrailto fix(review): accept metadata corrections and pi-lens guardrailThis PR introduces a new feature to handle user corrections for metadata review failures, allowing unscoped conventional commit titles if the PR body is substantive. It also updates the metadata validation logic and adds relevant tests. The changes appear well-integrated and safe to merge.
Walkthrough
Δ since
edd0822:ReviewCorrectioncommand to handle user corrections for metadata review failures.parse_review_correctionfunction to extract corrections from user comments.handle_review_correctionto update learning store and post approval reviews.New commits pushed, approval review dismissed automatically according to repository settings
fix(review): accept metadata corrections and pi-lens guardrailto fix(review): accept repo-scoped review correctionsThe PR expands the handling of review corrections to include repository-specific context and broader correction keywords. It appears safe to merge, but ensure that the changes align with the intended functionality and documentation.
Walkthrough
Δ since
9ebed52:ReviewCorrectioncommand to handle broader cases, removing specific checks for metadata failures.New commits pushed, approval review dismissed automatically according to repository settings
The PR introduces a deferred-finalize guardrail for pi-lens, integrates
lefthookinto the development workflow, and updates PR title validation to accept unscoped conventional titles. It also enhances the handling of review corrections by storing them as repository-specific learnings. The changes appear safe to merge.Walkthrough
Δ since
cfe55bd:lefthookis installed at session start, aligning Pi sessions with the dev shell setup.lefthookin the development environment and ensured its installation duringnix develop.nix flake check.nix developenables the versionedlefthookpre-commit format guardrail.New commits pushed, approval review dismissed automatically according to repository settings
The changes primarily involve refactoring and reformatting the
flake.nixfile to improve readability and maintainability. The modifications appear safe to merge as they do not alter the core functionality.Walkthrough
Δ since
04e898c: