Skip to content

feat(hookify): add boy scout triage rule for pre-existing errors#51

Merged
paulnsorensen merged 1 commit intomainfrom
paulnsorensen/hookify-boyscout-rule
Mar 11, 2026
Merged

feat(hookify): add boy scout triage rule for pre-existing errors#51
paulnsorensen merged 1 commit intomainfrom
paulnsorensen/hookify-boyscout-rule

Conversation

@paulnsorensen
Copy link
Owner

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 /lookup skill for efficient root-cause analysis. Failures caused by the agent's own changes must be fixed before stopping.

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>
Copilot AI review requested due to automatic review settings March 11, 2026 21:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 stop event 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 /lookup skill.

@paulnsorensen paulnsorensen merged commit 01a2da9 into main Mar 11, 2026
6 checks passed
@paulnsorensen paulnsorensen deleted the paulnsorensen/hookify-boyscout-rule branch March 11, 2026 21:40
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.

2 participants