Skip to content

perf(testing): disabled test guards still start up to 3 node processes per test-file edit #6240

Closed as not planned

Description

@kyle-sexton

Problem

plugins/testing/hooks/hooks.json registers 124 entries over 7 distinct commands. With test_guards_enabled and test_judge_enabled both false, each matching test-file edit still starts up to 3 node processes before the hooks discover they are disabled.

Expected

A disabled guard costs no process launch, or one at most, per docs/conventions/hook-budget/README.md.

Related

Found during the #6225 hook-text audit (inventory, testing partition).

Activity

  1. added
    needs-triage
    on Oct 4, 2026
  2. github-actions commented on Oct 4, 2026

    @github-actions
    Contributor

    Thanks for the report. Automated triage handed this issue to a maintainer.

    Automated triage. A maintainer reviews it.

  3. added
    needs-human
    on Oct 4, 2026
  4. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner approved applying independently verified recommendations on 2026-10-12.

    • What to do about the disabled-guard launches? → Close as within budget: each disabled row is one exec-form launch and the two PostToolUse rows run in parallel
      Basis: docs/conventions/hook-budget/README.md:21-25 (exec form k=1), :32 (hooks run in parallel), :141-145 (--require-true launcher flags); https://code.claude.com/docs/en/hooks.md line 425 (if takes only a permission rule; fetched 2026-10-12); plugins/testing/.claude-plugin/plugin.json (both options default false)

    With test_guards_enabled and test_judge_enabled false (both default false), a test-file edit still starts up to 3 node launcher processes (one PreToolUse row, two PostToolUse rows) before they exit. Each launcher already exits without starting bash, and a hook if cannot read an option, so zero launches would need a mod.

    Verification notes:

    • Issue body says 124 entries over 7 commands; main has 160 rows. Risk set low because the recommended outcome is a close with no change; either fix option would touch hooks.json, a trust surface.

    Verified by an independent fresh-context check (confirmed, risk low): gh issue view 6240; plugins/testing/hooks/hooks.json via jq (groups, args, if); docs/conventions/hook-budget/README.md:19-33, 139-146; plugins/testing/.claude-plugin/plugin.json defaults false; plugins/testing/hooks/exec-bash.mjs --require-true; https://code.claude.com/docs/en/hooks.md lines 425 and 498 fetched 2026-10-12

    Admission to an agent lane stays with the work-class rules and owner ratification.

  5. added and removed
    needs-triage
    on Oct 15, 2026
  6. added theissue type on Oct 15, 2026
  7. kyle-sexton commented on Oct 18, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during backlog shaping.

    Closing as not planned. The owner decided on 2026-10-12 to close this as within the hook budget: each disabled row is one exec-form launch, the PostToolUse rows run in parallel, and zero launches would need a mod.

    Evidence:

    The owner approved this in an attended backlog-shaping session on 2026-10-17.

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

    needs-human

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions