Skip to content

Remove the removed block-hook-bypass guard from the secret-pattern hook's comments #15942

Description

@kyle-sexton

Parent

Refs #15666 (the map decision this implements; map #15651).

Depends on

  • none: on the frontier now

Outcome

The secret-pattern hook's comments describe its exemptions without naming block-hook-bypass, a guard that guardrails 0.52.0 removed. Two comments still say an exemption works "as block-hook-bypass exempts".

Demo: a search of the guardrails plugin's hooks for block-hook-bypass finds no comment that describes it as existing.

Decisions

  • Owner, 2026-11-13: fix the two stale comments; found while verifying a user-instruction line that cited the removed guard.
  • Comment-only: no behavior change.

Key interfaces

  • The guardrails plugin's secret-pattern-detection hook.

Done when

  • Neither comment names the removed guard; each states the exemption in its own terms or is deleted if the code already says it.
  • No other file in the plugin describes block-hook-bypass as present, outside the changelog.
  • The hook's tests pass unchanged.

Out of scope

  • Any change to what the hook scans or exempts.

Activity

  1. added
    agent-ready
    on Nov 13, 2026
  2. added theissue type on Nov 13, 2026
  3. removed
    agent-ready
    on Nov 13, 2026
  4. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: two comments in the guardrails secret-pattern hook still refer to the removed block-hook-bypass guard. The fix is to reword or delete them, with no behavior change, and to confirm no other plugin file describes the guard as present, outside the changelog. The existing hook tests should pass unchanged. The scope and done-when are exact. I found no duplicate among open issues and no merged pull request that already fixes this.

    Automated triage. A maintainer reviews it.

  5. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"ddd14de20299c439f1168f0ed3a529778bb3abaf9f1a088bbb6a404c96987486","body_sha256":"8d8996b57106ba6c30802f8781535e8646dff929aad1ecd6860c05a27b51a81a"}

  6. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions