feat(hookify): add boy scout triage rule for pre-existing errors#51
Merged
paulnsorensen merged 1 commit intomainfrom Mar 11, 2026
Merged
feat(hookify): add boy scout triage rule for pre-existing errors#51paulnsorensen merged 1 commit intomainfrom
paulnsorensen merged 1 commit intomainfrom
Conversation
Prevents agents from dismissing failures as pre-existing without evidence. Forces triage via /lookup sub-agent, requires proof (run test on base branch or git blame), and opens an isolated PR to fix genuinely pre-existing issues rather than ignoring them. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a new Hookify stop-event warning rule to enforce “Boy Scout” triage behavior at session end, fitting into the repo’s Claude Code guardrail/hook configuration.
Changes:
- Introduces a new Hookify
stopevent rule that warns on stop and requires evidence-based triage of any encountered failures. - Specifies a protocol for handling pre-existing vs. introduced failures, including worktree-isolated follow-up PRs and use of the
/lookupskill.
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.
Adds a global hookify stop-event rule that enforces the Boy Scout Rule: agents must triage any failures encountered during a session rather than dismissing them as pre-existing.
Agents are required to prove errors are pre-existing (run tests on base branch or show git blame evidence) before classifying them as such. Genuinely pre-existing failures must be fixed in an isolated worktree PR via a background agent using the
/lookupskill for efficient root-cause analysis. Failures caused by the agent's own changes must be fixed before stopping.