Rectify: GitHub Mutation Guard Shell-Syntax Normalization and Diagnostic Provenance - #4583
Merged
Trecek merged 14 commits intoAug 14, 2026
Conversation
Trecek
enabled auto-merge
August 14, 2026 16:39
Trecek
deleted the
impl-rectify-github-mutation-guard-redirection-diagnostics-20260813-215742
branch
August 14, 2026 16:49
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
This PR fixes GitHub mutation classification when shell output redirection is present. Redirection operators and destinations were previously left in executable argument lists, causing valid single mutations through
gh issue edit,gh api, and mutation-bearingcurlto be misclassified as unresolved. The change structurally separates output redirection from executable argv before mutation grammar runs while preserving write-provenance facts.It also preserves classifier uncertainty provenance end to end: stable static reason codes are attached at uncertainty origins and carried through existing analysis and guard results, so expected fail-closed uncertainty is distinguishable from unexpected classifier or runtime failures. Existing safety contracts remain unchanged, including global session scope, prohibition of raw PR-review publication, and the exactly-one-proven-non-review-mutation rule.
Closes #4581
Implementation Plan
Plan file:
/home/talon/projects/generic_automation_mcp/.autoskillit/temp/rectify/rectify_github_mutation_guard_redirection_diagnostics_2026-08-13_194338.md🤖 Generated with Claude Code via AutoSkillit