Repository navigation
fix(hook): include pipeline decisions in hook check - #4792
Open
Aschenbath wants to merge 1 commit into
Open
Aschenbath wants to merge 1 commit into
Aschenbath wants to merge 1 commit into
Conversation
Evaluate Claude pipeline rules before the permission/rewrite gate in the diagnostic, without writing pipeline status or executing model classifiers or tasks. Distinguish denials from no-rewrite results and correct the rewrite command help. *AI-assisted — Tool: Codex; model: unavailable; version: unavailable.*
📊 Automated PR Analysis
SummaryUpdates Review Checklist
Linked issues: #4629 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
Aschenbath
marked this pull request as ready for review
October 25, 2026 12:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rtk hook check --agent claudepreview trusted pipeline rules before the existing permission/rewrite gate. A pipeline denial or passthrough now reports its rule and origin instead of printing the ordinary rewrite. Route and swap previews follow the native hook's decision and permission gate.0, passthrough/no rewrite1, denial/invalid agent2, missing runtime classifier results3. Permission denials previously returned1. Document the behavior and correct thertk rewritehelp text, which incorrectly claimed it evaluated pipeline rules.Fixes #4629. This follows the current Claude-only pipeline scope; it does not extend pipeline execution to additional agents.
Test plan
cargo clippy --workspace --all-targets -- -D warnings, andcargo test --all --no-fail-fast— 5,221 passed, zero failed, eight existing ignored, zero name filters. Source-tree guards bind these checks to this change.AI-assisted — Tool: Codex; model: unavailable; version: unavailable.